From: Andreas Jaeger <aj@suse.de>
To: GNU libc hackers <libc-hacker@sources.redhat.com>
Subject: O_NOATIME for glibc
Date: Mon, 23 Aug 2004 06:55:00 -0000 [thread overview]
Message-ID: <hok6vqibw4.fsf@reger.suse.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 8756 bytes --]
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 <aj@suse.de>
[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
[-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --]
next reply other threads:[~2004-08-23 6:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-23 6:55 Andreas Jaeger [this message]
2004-08-23 7:24 ` Ulrich Drepper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=hok6vqibw4.fsf@reger.suse.de \
--to=aj@suse.de \
--cc=libc-hacker@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).