submitted-bits-fcntl_h-at
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 15 Mar 2022 22:48:49 +0000 (22:48 +0000)
committerAurelien Jarno <aurel32@debian.org>
Tue, 15 Mar 2022 22:48:49 +0000 (22:48 +0000)
2012-10-08  Wookey  <wookey@wookware.org>

        * include AT_* defines in sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h

2009-11-19  Aurelien Jarno  <aurelien@aurel32.net>

* io/fcntl.h: Move AT_* defines to...
* sysdeps/mach/hurd/bits/fcntl.h: ...here.
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: ...here.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: ...here.
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: ...here.
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: ...here.
* sysdeps/unix/sysv/linux/x86/bits/fcntl.h: ...here.

2009-11-19  Aurelien Jarno  <aurelien@aurel32.net>

* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define AT_*
constants.
* sysdeps/unix/sysv/linux/arm/bits/fcntl.h: Define AT_*
constants.
* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h: Define AT_*
constants.
* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Define AT_*
constants.
* sysdeps/unix/sysv/linux/m68k/bits/fcntl.h: Define AT_*
constants.
* sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Define AT_*
constants.

Gbp-Pq: Topic any
Gbp-Pq: Name submitted-bits-fcntl_h-at.diff

io/fcntl.h
sysdeps/mach/hurd/bits/fcntl.h
sysdeps/unix/sysv/linux/bits/fcntl-linux.h

index 6b0e9fa1fa2a2d8872b1adb5c0861410756a9e52..36a5e6bc45bf492c434cce39ac88e54fe9c5c5b2 100644 (file)
@@ -139,33 +139,6 @@ 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_EACCESS
-   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
-                                          current working directory. */
-# define AT_SYMLINK_NOFOLLOW   0x100   /* Do not follow symbolic links.  */
-# define AT_REMOVEDIR          0x200   /* Remove directory instead of
-                                          unlinking file.  */
-# define AT_SYMLINK_FOLLOW     0x400   /* Follow symbolic links.  */
-# ifdef __USE_GNU
-#  define AT_NO_AUTOMOUNT      0x800   /* Suppress terminal automount
-                                          traversal.  */
-#  define AT_EMPTY_PATH                0x1000  /* Allow empty relative pathname.  */
-#  define AT_STATX_SYNC_TYPE   0x6000
-#  define AT_STATX_SYNC_AS_STAT        0x0000
-#  define AT_STATX_FORCE_SYNC  0x2000
-#  define AT_STATX_DONT_SYNC   0x4000
-# endif
-# define AT_EACCESS            0x200   /* Test access permitted for
-                                          effective IDs, not real IDs.  */
-#endif
-
 /* Do the file control operation described by CMD on FD.
    The remaining arguments are interpreted depending on CMD.
 
index ef9b5011670966ac4ad71eae424ea7e52bd27b66..102d0c2657971c91ce2edf7759fe7fec63b7c77d 100644 (file)
@@ -228,3 +228,25 @@ struct flock64
 # define POSIX_FADV_DONTNEED   4 /* Don't need these pages.  */
 # define POSIX_FADV_NOREUSE    5 /* Data will be accessed once.  */
 #endif
+
+/* Values for `*at' functions.  */
+#ifdef __USE_ATFILE
+# define AT_FDCWD              -100    /* Special value used to indicate
+                                          the *at functions should use the
+                                          current working directory. */
+# define AT_SYMLINK_NOFOLLOW   0x100   /* Do not follow symbolic links.  */
+# define AT_REMOVEDIR          0x200   /* Remove directory instead of
+                                          unlinking file.  */
+# define AT_SYMLINK_FOLLOW     0x400   /* Follow symbolic links.  */
+# ifdef __USE_GNU
+#  define AT_NO_AUTOMOUNT      0x800   /* Suppress terminal automount
+                                          traversal.  */
+#  define AT_EMPTY_PATH                0x1000  /* Allow empty relative pathname.  */
+#  define AT_STATX_SYNC_TYPE   0x6000
+#  define AT_STATX_SYNC_AS_STAT        0x0000
+#  define AT_STATX_FORCE_SYNC  0x2000
+#  define AT_STATX_DONT_SYNC   0x4000
+# endif
+# define AT_EACCESS            0x200   /* Test access permitted for
+                                          effective IDs, not real IDs.  */
+#endif
index 269494261e2a768ae157c3a668de2608a556f44d..983cd46044b3960d07f9c9c719109e725df84609 100644 (file)
@@ -359,6 +359,28 @@ struct file_handle
 # define MAX_HANDLE_SZ 128
 #endif
 
+/* Values for `*at' functions.  */
+#ifdef __USE_ATFILE
+# define AT_FDCWD              -100    /* Special value used to indicate
+                                          the *at functions should use the
+                                          current working directory. */
+# define AT_SYMLINK_NOFOLLOW   0x100   /* Do not follow symbolic links.  */
+# define AT_REMOVEDIR          0x200   /* Remove directory instead of
+                                          unlinking file.  */
+# define AT_SYMLINK_FOLLOW     0x400   /* Follow symbolic links.  */
+# ifdef __USE_GNU
+#  define AT_NO_AUTOMOUNT      0x800   /* Suppress terminal automount
+                                          traversal.  */
+#  define AT_EMPTY_PATH                0x1000  /* Allow empty relative pathname.  */
+#  define AT_STATX_SYNC_TYPE   0x6000
+#  define AT_STATX_SYNC_AS_STAT        0x0000
+#  define AT_STATX_FORCE_SYNC  0x2000
+#  define AT_STATX_DONT_SYNC   0x4000
+# endif
+# define AT_EACCESS            0x200   /* Test access permitted for
+                                          effective IDs, not real IDs.  */
+#endif
+
 __BEGIN_DECLS
 
 #ifdef __USE_GNU