* fhandler.h (fhandler_base::issymlink): New method.
* syscalls.cc (open): Handle O_NOFOLLOW flag. * include/fcntl.h (_FNOFOLLOW): New define. (O_NOFOLLOW): Ditto. * include/cygwin/version.h: Bump API minor number.
This commit is contained in:
@ -283,12 +283,13 @@ details. */
|
||||
147: Eliminate problematic d_ino from dirent structure. unsetenv now returns
|
||||
int, as per linux.
|
||||
148: Add open(2) flags O_SYNC, O_RSYNC, O_DSYNC and O_DIRECT.
|
||||
149: Add open(2) flag O_NOFOLLOW.
|
||||
*/
|
||||
|
||||
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
|
||||
|
||||
#define CYGWIN_VERSION_API_MAJOR 0
|
||||
#define CYGWIN_VERSION_API_MINOR 148
|
||||
#define CYGWIN_VERSION_API_MINOR 149
|
||||
|
||||
/* There is also a compatibity version number associated with the
|
||||
shared memory regions. It is incremented when incompatible
|
||||
|
@ -16,8 +16,10 @@ details. */
|
||||
|
||||
/* sys/fcntl defines values up to 0x40000 (O_NOINHERIT). */
|
||||
#define _FDIRECT 0x80000
|
||||
#define _FNOFOLLOW 0x100000
|
||||
|
||||
#define O_DIRECT _FDIRECT
|
||||
#define O_NOFOLLOW _FNOFOLLOW
|
||||
#define O_DSYNC _FSYNC
|
||||
#define O_RSYNC _FSYNC
|
||||
|
||||
|
Reference in New Issue
Block a user