Skip to content

Commit

Permalink
Define _AT_NULL_PATHNAME_ALLOWED
Browse files Browse the repository at this point in the history
Cygwin needs an internal flag to allow specifying an empty pathname
in utimesat (GLIBC extension). We define it in _default_fcntl.h to
make sure we never introduce a value collision accidentally.
While at it, define the values as 16 bit hex values.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
github-cygwin authored and dscho committed Aug 9, 2023
1 parent d66c2dd commit 4448cc0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions newlib/libc/include/sys/_default_fcntl.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,13 @@ extern "C" {
#define AT_FDCWD -2

/* Flag values for faccessat2) et al. */
#define AT_EACCESS 1
#define AT_SYMLINK_NOFOLLOW 2
#define AT_SYMLINK_FOLLOW 4
#define AT_REMOVEDIR 8
#define AT_EACCESS 0x0001
#define AT_SYMLINK_NOFOLLOW 0x0002
#define AT_SYMLINK_FOLLOW 0x0004
#define AT_REMOVEDIR 0x0008
#if __GNU_VISIBLE
#define AT_EMPTY_PATH 16
#define AT_EMPTY_PATH 0x0010
#define _AT_NULL_PATHNAME_ALLOWED 0x4000 /* Internal flag used by futimesat */
#endif
#endif

Expand Down

0 comments on commit 4448cc0

Please sign in to comment.