largefile-dump-support-20020118
authorNickolai Zeldovich <kolya@mit.edu>
Fri, 18 Jan 2002 18:47:00 +0000 (18:47 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 18 Jan 2002 18:47:00 +0000 (18:47 +0000)
64bit file support for vos dump

src/cf/osconf.m4
src/usd/usd_file.c

index 1276238..91cd836 100644 (file)
@@ -47,7 +47,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
-               XCFLAGS="-O2"
+               XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
                YACC="bison -y"
                ;;
 
@@ -58,7 +58,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
-               XCFLAGS="-O2"
+               XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
                YACC="bison -y"
                ;;
 
@@ -147,7 +147,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
-               XCFLAGS="-O2"
+               XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
                YACC="bison -y"
                ;;
 
@@ -158,6 +158,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
+               XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
                ;;
        
        i386_obsd29)
@@ -180,7 +181,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
-               XCFLAGS="-O2"
+               XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
                YACC="bison -y"
                ;;
 
@@ -214,7 +215,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
-               XCFLAGS="-O2"
+               XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
                YACC="bison -y"
                ;;
 
@@ -225,7 +226,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
-               XCFLAGS="-O2"
+               XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
                YACC="bison -y"
                ;;
 
@@ -255,7 +256,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
-               XCFLAGS="-O -g"
+               XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
                YACC="bison -y"
                ;;
 
@@ -270,7 +271,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
-               XCFLAGS="-O -g"
+               XCFLAGS="-O -g -D_LARGEFILE64_SOURCE"
                YACC="bison -y"
                ;;
 
@@ -339,7 +340,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
-               XCFLAGS="-O2"
+               XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
                YACC="bison -y"
                ;;
 
@@ -350,7 +351,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
-               XCFLAGS="-O2"
+               XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
                YACC="bison -y"
                ;;
 
@@ -361,7 +362,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O2 -Dlinux -DLINUX_PAM -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
                TXLIBS="/usr/lib/libncurses.so"
-               XCFLAGS="-O2"
+               XCFLAGS="-O2 -D_LARGEFILE64_SOURCE"
                YACC="bison -y"
                ;;
 
index e3f5718..4c05ddf 100644 (file)
@@ -349,7 +349,7 @@ static int usd_FileOpen(
        oflags |= O_CREAT;
 
 #ifdef O_LARGEFILE
-    fd = open64(path, oflags, mode);
+    fd = open64(path, oflags | O_LARGEFILE, mode);
 #else /* O_LARGEFILE */
     fd = open(path, oflags, mode);
 #endif /* O_LARGEFILE */