Browse Source

move O_PATH definition back to arch bits

while it's the same for all presently supported archs, it differs at
least on sparc, and conceptually it's no less arch-specific than the
other O_* macros. O_SEARCH and O_EXEC are still defined in terms of
O_PATH in the main fcntl.h.
master
Rich Felker 12 years ago
parent
commit
fd427c4eae
  1. 1
      arch/arm/bits/fcntl.h
  2. 1
      arch/i386/bits/fcntl.h
  3. 1
      arch/microblaze/bits/fcntl.h
  4. 1
      arch/mips/bits/fcntl.h
  5. 1
      arch/or1k/bits/fcntl.h
  6. 1
      arch/powerpc/bits/fcntl.h
  7. 1
      arch/sh/bits/fcntl.h
  8. 1
      arch/x32/bits/fcntl.h
  9. 1
      arch/x86_64/bits/fcntl.h
  10. 5
      include/fcntl.h

1
arch/arm/bits/fcntl.h

@ -15,6 +15,7 @@
#define O_DIRECT 0200000
#define O_LARGEFILE 0400000
#define O_NOATIME 01000000
#define O_PATH 010000000
#define O_TMPFILE 020040000
#define O_NDELAY O_NONBLOCK

1
arch/i386/bits/fcntl.h

@ -15,6 +15,7 @@
#define O_DIRECT 040000
#define O_LARGEFILE 0100000
#define O_NOATIME 01000000
#define O_PATH 010000000
#define O_TMPFILE 020200000
#define O_NDELAY O_NONBLOCK

1
arch/microblaze/bits/fcntl.h

@ -15,6 +15,7 @@
#define O_DIRECT 040000
#define O_LARGEFILE 0100000
#define O_NOATIME 01000000
#define O_PATH 010000000
#define O_TMPFILE 020200000
#define O_NDELAY O_NONBLOCK

1
arch/mips/bits/fcntl.h

@ -15,6 +15,7 @@
#define O_DIRECT 0100000
#define O_LARGEFILE 020000
#define O_NOATIME 01000000
#define O_PATH 010000000
#define O_TMPFILE 020200000
#define O_NDELAY O_NONBLOCK

1
arch/or1k/bits/fcntl.h

@ -15,6 +15,7 @@
#define O_DIRECT 040000
#define O_LARGEFILE 0100000
#define O_NOATIME 01000000
#define O_PATH 010000000
#define O_TMPFILE 020200000
#define O_NDELAY O_NONBLOCK

1
arch/powerpc/bits/fcntl.h

@ -15,6 +15,7 @@
#define O_DIRECT 0400000
#define O_LARGEFILE 0200000
#define O_NOATIME 01000000
#define O_PATH 010000000
#define O_TMPFILE 020040000
#define O_NDELAY O_NONBLOCK

1
arch/sh/bits/fcntl.h

@ -15,6 +15,7 @@
#define O_DIRECT 040000
#define O_LARGEFILE 0100000
#define O_NOATIME 01000000
#define O_PATH 010000000
#define O_TMPFILE 020200000
#define O_NDELAY O_NONBLOCK

1
arch/x32/bits/fcntl.h

@ -15,6 +15,7 @@
#define O_DIRECT 040000
#define O_LARGEFILE 0
#define O_NOATIME 01000000
#define O_PATH 010000000
#define O_TMPFILE 020200000
#define O_NDELAY O_NONBLOCK

1
arch/x86_64/bits/fcntl.h

@ -15,6 +15,7 @@
#define O_DIRECT 040000
#define O_LARGEFILE 0
#define O_NOATIME 01000000
#define O_PATH 010000000
#define O_TMPFILE 020200000
#define O_NDELAY O_NONBLOCK

5
include/fcntl.h

@ -37,9 +37,8 @@ int openat(int, const char *, int, ...);
int posix_fadvise(int, off_t, off_t, int);
int posix_fallocate(int, off_t, off_t);
#define O_SEARCH 010000000
#define O_EXEC 010000000
#define O_PATH 010000000
#define O_SEARCH O_PATH
#define O_EXEC O_PATH
#define O_ACCMODE (03|O_SEARCH)
#define O_RDONLY 00

Loading…
Cancel
Save