I propose to add O_NOATIME to glibc. It's in Linux 2.6.8 now. Ok to commit? Andreas 2004-08-23 Andreas Jaeger [BZ #341] * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOATIME): Define. * sysdeps/unix/sysv/linux/arm/bits/fcntl.h (O_NOATIME): Likewise. * sysdeps/unix/sysv/linux/cris/bits/fcntl.h (O_NOATIME): Likewise. * sysdeps/unix/sysv/linux/hppa/bits/fcntl.h (O_NOATIME): Likewise. * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (O_NOATIME): Likewise. * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_NOATIME): Likewise. * sysdeps/unix/sysv/linux/m68k/bits/fcntl.h (O_NOATIME): Likewise. * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_NOATIME): Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h (O_NOATIME): Likewise. * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_NOATIME): Likewise. * sysdeps/unix/sysv/linux/sh/bits/fcntl.h (O_NOATIME): Likewise. * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_NOATIME): Likewise. * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h (O_NOATIME): Likewise. ============================================================ Index: sysdeps/unix/sysv/linux/alpha/bits/fcntl.h --- sysdeps/unix/sysv/linux/alpha/bits/fcntl.h 3 May 2004 21:39:38 -0000 1.17 +++ sysdeps/unix/sysv/linux/alpha/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -47,6 +47,7 @@ # define O_DIRECT 040000 /* Direct disk access. */ # define O_DIRECTORY 0100000 /* Must be a directory. */ # define O_NOFOLLOW 0200000 /* Do not follow links. */ +# define O_NOATIME 04000000 /* Do not set atime. */ #endif #ifdef __USE_LARGEFILE64 ============================================================ Index: sysdeps/unix/sysv/linux/arm/bits/fcntl.h --- sysdeps/unix/sysv/linux/arm/bits/fcntl.h 3 May 2004 21:39:39 -0000 1.7 +++ sysdeps/unix/sysv/linux/arm/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -45,6 +45,7 @@ # define O_DIRECTORY 040000 /* Must be a directory. */ # define O_NOFOLLOW 0100000 /* Do not follow links. */ # define O_DIRECT 0200000 /* Direct disk access. */ +# define O_NOATIME 01000000 /* Do not set atime. */ #endif #ifdef __USE_LARGEFILE64 ============================================================ Index: sysdeps/unix/sysv/linux/cris/bits/fcntl.h --- sysdeps/unix/sysv/linux/cris/bits/fcntl.h 3 May 2004 21:39:38 -0000 1.4 +++ sysdeps/unix/sysv/linux/cris/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -46,6 +46,7 @@ # define O_DIRECT 040000 /* Direct disk access. */ # define O_DIRECTORY 0200000 /* Must be a directory. */ # define O_NOFOLLOW 0400000 /* Do not follow links. */ +# define O_NOATIME 01000000 /* Do not set atime. */ #endif /* For now Linux has synchronisity options for data and read operations. ============================================================ Index: sysdeps/unix/sysv/linux/hppa/bits/fcntl.h --- sysdeps/unix/sysv/linux/hppa/bits/fcntl.h 3 May 2004 21:39:39 -0000 1.6 +++ sysdeps/unix/sysv/linux/hppa/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -47,6 +47,7 @@ # define O_DIRECT 00040000 /* direct disk access hint - currently ignored */ # define O_DIRECTORY 00010000 /* must be a directory */ # define O_NOFOLLOW 00000200 /* don't follow links */ +# define O_NOATIME 04000000 /* Do not set atime. */ #endif #ifdef __USE_LARGEFILE64 ============================================================ Index: sysdeps/unix/sysv/linux/i386/bits/fcntl.h --- sysdeps/unix/sysv/linux/i386/bits/fcntl.h 3 May 2004 21:39:38 -0000 1.12 +++ sysdeps/unix/sysv/linux/i386/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -46,6 +46,7 @@ # define O_DIRECT 040000 /* Direct disk access. */ # define O_DIRECTORY 0200000 /* Must be a directory. */ # define O_NOFOLLOW 0400000 /* Do not follow links. */ +# define O_NOATIME 01000000 /* Do not set atime. */ #endif /* For now Linux has synchronisity options for data and read operations. ============================================================ Index: sysdeps/unix/sysv/linux/ia64/bits/fcntl.h --- sysdeps/unix/sysv/linux/ia64/bits/fcntl.h 3 May 2004 21:39:39 -0000 1.7 +++ sysdeps/unix/sysv/linux/ia64/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -43,8 +43,9 @@ #define O_DIRECT 040000 #ifdef __USE_GNU -#define O_DIRECTORY 0200000 /* must be a directory */ -#define O_NOFOLLOW 0400000 /* don't follow links */ +# define O_DIRECTORY 0200000 /* must be a directory */ +# define O_NOFOLLOW 0400000 /* don't follow links */ +# define O_NOATIME 01000000 /* Do not set atime. */ #endif #ifdef __USE_LARGEFILE64 ============================================================ Index: sysdeps/unix/sysv/linux/m68k/bits/fcntl.h --- sysdeps/unix/sysv/linux/m68k/bits/fcntl.h 3 May 2004 21:39:39 -0000 1.6 +++ sysdeps/unix/sysv/linux/m68k/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -45,6 +45,7 @@ # define O_DIRECTORY 040000 /* Must be a directory. */ # define O_NOFOLLOW 0100000 /* Do not follow links. */ # define O_DIRECT 0200000 /* Direct disk access. */ +# define O_NOATIME 01000000 /* Do not set atime. */ #endif /* For now Linux has synchronisity options for data and read operations. ============================================================ Index: sysdeps/unix/sysv/linux/mips/bits/fcntl.h --- sysdeps/unix/sysv/linux/mips/bits/fcntl.h 20 Jul 2004 16:35:29 -0000 1.19 +++ sysdeps/unix/sysv/linux/mips/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -49,6 +49,7 @@ # define O_NOFOLLOW 0x20000 /* Do not follow links. */ # define O_DIRECT 0x8000 /* Direct disk access hint. */ # define O_DIRECTORY 0x10000 /* Must be a directory. */ +# define O_NOATIME 0x40000 /* Do not set atime. */ #endif #define O_NDELAY O_NONBLOCK ============================================================ Index: sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h --- sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h 3 May 2004 21:39:38 -0000 1.11 +++ sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -46,6 +46,7 @@ # define O_DIRECT 0400000 /* Direct disk access. */ # define O_DIRECTORY 040000 /* Must be a directory. */ # define O_NOFOLLOW 0100000 /* Do not follow links. */ +# define O_NOATIME 01000000 /* Do not set atime. */ #endif #ifdef __USE_LARGEFILE64 ============================================================ Index: sysdeps/unix/sysv/linux/s390/bits/fcntl.h --- sysdeps/unix/sysv/linux/s390/bits/fcntl.h 3 May 2004 21:39:38 -0000 1.8 +++ sysdeps/unix/sysv/linux/s390/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -45,6 +45,7 @@ # define O_DIRECT 040000 /* Direct disk access. */ # define O_DIRECTORY 0200000 /* Must be a directory. */ # define O_NOFOLLOW 0400000 /* Do not follow links. */ +# define O_NOATIME 01000000 /* Do not set atime. */ #endif #ifdef __USE_LARGEFILE64 ============================================================ Index: sysdeps/unix/sysv/linux/sh/bits/fcntl.h --- sysdeps/unix/sysv/linux/sh/bits/fcntl.h 3 May 2004 21:39:38 -0000 1.4 +++ sysdeps/unix/sysv/linux/sh/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -46,6 +46,7 @@ # define O_DIRECT 040000 /* Direct disk access. */ # define O_DIRECTORY 0200000 /* Must be a directory. */ # define O_NOFOLLOW 0400000 /* Do not follow links. */ +# define O_NOATIME 01000000 /* Do not set atime. */ #endif /* For now Linux has synchronisity options for data and read operations. ============================================================ Index: sysdeps/unix/sysv/linux/sparc/bits/fcntl.h --- sysdeps/unix/sysv/linux/sparc/bits/fcntl.h 3 May 2004 21:39:38 -0000 1.21 +++ sysdeps/unix/sysv/linux/sparc/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -45,6 +45,7 @@ # define O_DIRECTORY 0x10000 /* must be a directory */ # define O_NOFOLLOW 0x20000 /* don't follow links */ # define O_DIRECT 0x100000 /* direct disk access hint */ +# define O_NOATIME 0x200000 /* Do not set atime. */ #endif #ifdef __USE_LARGEFILE64 ============================================================ Index: sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h --- sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h 27 Jun 2004 20:47:52 -0000 1.5 +++ sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h 23 Aug 2004 06:50:56 -0000 @@ -46,6 +46,7 @@ # define O_DIRECT 040000 /* Direct disk access. */ # define O_DIRECTORY 0200000 /* Must be a directory. */ # define O_NOFOLLOW 0400000 /* Do not follow links. */ +# define O_NOATIME 01000000 /* Do not set atime. */ #endif /* For now Linux has synchronisity options for data and read operations. -- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SUSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126