Skip to content

Commit

Permalink
Define O_PATH.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Apr 1, 2011
1 parent 3167dad commit 658e451
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
2011-04-01 Ulrich Drepper <drepper@gmail.com>

* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.

* io/Makefile: Compile fallocate.c, fallocate64.c, and
sync_file_range.c with -fexceptions.
* sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
Expand Down
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/i386/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#ifdef __USE_GNU
# define O_DIRECT 040000 /* Direct disk access. */
# define O_NOATIME 01000000 /* Do not set atime. */
# define O_PATH 010000000 /* Resolve pathname but do not open file. */
#endif

/* For now Linux has synchronisity options for data and read operations.
Expand Down
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/ia64/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#ifdef __USE_GNU
# define O_DIRECT 040000
# define O_NOATIME 01000000 /* Do not set atime. */
# define O_PATH 010000000 /* Resolve pathname but do not open file. */
#endif

#ifdef __USE_LARGEFILE64
Expand Down
3 changes: 2 additions & 1 deletion sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* O_*, F_*, FD_* bit values for Linux/PowerPC.
Copyright (C) 1995-1998, 2000, 2003, 2004, 2006, 2007, 2009, 2010
Copyright (C) 1995-1998, 2000, 2003, 2004, 2006, 2007, 2009, 2010, 2011
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Expand Down Expand Up @@ -53,6 +53,7 @@
#ifdef __USE_GNU
# define O_DIRECT 0400000 /* Direct disk access. */
# define O_NOATIME 01000000 /* Do not set atime. */
# define O_PATH 010000000 /* Resolve pathname but do not open file. */
#endif

#ifdef __USE_LARGEFILE64
Expand Down
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/s390/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#ifdef __USE_GNU
# define O_DIRECT 040000 /* Direct disk access. */
# define O_NOATIME 01000000 /* Do not set atime. */
# define O_PATH 010000000 /* Resolve pathname but do not open file. */
#endif

#ifdef __USE_LARGEFILE64
Expand Down
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/sh/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#ifdef __USE_GNU
# define O_DIRECT 040000 /* Direct disk access. */
# define O_NOATIME 01000000 /* Do not set atime. */
# define O_PATH 010000000 /* Resolve pathname but do not open file. */
#endif

/* For now Linux has synchronisity options for data and read operations.
Expand Down
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#ifdef __USE_GNU
# define O_DIRECT 0x100000 /* direct disk access hint */
# define O_NOATIME 0x200000 /* Do not set atime. */
# define O_PATH 0x1000000 /* Resolve pathname but do not open file. */
#endif

#ifdef __USE_LARGEFILE64
Expand Down
1 change: 1 addition & 0 deletions sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#ifdef __USE_GNU
# define O_DIRECT 040000 /* Direct disk access. */
# define O_NOATIME 01000000 /* Do not set atime. */
# define O_PATH 010000000 /* Resolve pathname but do not open file. */
#endif

/* For now Linux has synchronisity options for data and read operations.
Expand Down

0 comments on commit 658e451

Please sign in to comment.