Whamcloud - gitweb
ChangeLog, chattr.c, lsattr.c:
authorTheodore Ts'o <tytso@mit.edu>
Thu, 8 Feb 2001 03:06:43 +0000 (03:06 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 8 Feb 2001 03:06:43 +0000 (03:06 +0000)
  chattr.c, lsattr.c: Define the _LARGEFILE64_SOURCE to force the use of
  the LFS so that lstat will work on large files.

misc/ChangeLog
misc/chattr.c
misc/lsattr.c

index 10e5e9d..1d02bf5 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-07  Theodore Tso  <tytso@valinux.com>
+
+       * chattr.c, lsattr.c: Define the _LARGEFILE64_SOURCE to force the
+               use of the LFS so that lstat will work on large files.
+
 2001-01-17  Theodore Ts'o  <tytso@valinux.com>
 
        * tune2fs.c, mke2fs.c, tune2fs.8.in, mke2fs.8.in: Change user
index f0301e6..d5449f3 100644 (file)
@@ -18,6 +18,9 @@
  * 98/12/29    - Display version info only when -V specified (G M Sipe)
  */
 
+#define _LARGEFILE64_SOURCE
+#define _FILE_OFFSET_BITS 64
+
 #include <sys/types.h>
 #include <dirent.h>
 #include <fcntl.h>
index 857c481..3fadeb2 100644 (file)
@@ -17,6 +17,9 @@
  * 98/12/29    - Display version info only when -V specified (G M Sipe)
  */
 
+#define _LARGEFILE64_SOURCE
+#define _FILE_OFFSET_BITS 64
+
 #include <sys/types.h>
 #include <dirent.h>
 #ifdef HAVE_ERRNO_H