This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.17-352-g39120df

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  39120df9b9e2ad9674c0d6265757a7a68e10051f (commit)
      from  664a9ce4ca40feabff781fff044c93a43ae15b59 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------;a=commitdiff;h=39120df9b9e2ad9674c0d6265757a7a68e10051f

commit 39120df9b9e2ad9674c0d6265757a7a68e10051f
Author: Patsy Franklin <>
Date:   Wed Mar 6 12:54:10 2013 -0500

    T_REMOVEDIR and AT_EACCESS have the same value.
    Add comments to fcntl.h explaining why AT_REMOVEDIR
    and AT_EACCESS can have the same value.

diff --git a/ChangeLog b/ChangeLog
index a175d61..c82ed84 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-03-06  Patsy Franklin  <>
+	* io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
 2013-03-06  Andreas Jaeger  <>
 	* sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
diff --git a/io/fcntl.h b/io/fcntl.h
index 61834ce..14ccae0 100644
--- a/io/fcntl.h
+++ b/io/fcntl.h
@@ -129,6 +129,12 @@ typedef __pid_t pid_t;
 # define SEEK_END	2	/* Seek from end of file.  */
 #endif	/* XPG */
+/* The constants AT_REMOVEDIR and AT_EACCESS have the same value.  AT_EASSESS
+   is meaningful only to faccessat, while AT_REMOVEDIR is meaningful only to
+   unlinkat.  The two functions do completely different things and therefore,
+   the flags can be allowed to overlap.  For example, passing AT_REMOVEDIR to
+   faccessat would be undefined behavior and thus treating it equivalent to
+   AT_EACCESS is valid undefined behavior.  */
 #ifdef __USE_ATFILE
 # define AT_FDCWD		-100	/* Special value used to indicate
 					   the *at functions should use the


Summary of changes:
 ChangeLog  |    4 ++++
 io/fcntl.h |    6 ++++++
 2 files changed, 10 insertions(+), 0 deletions(-)

GNU C Library master sources

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]