summaryrefslogtreecommitdiff
path: root/lib/fcntl.in.h
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:11 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-05 10:08:11 +0900
commit1478f6ab011981e9a986c0c30da680635d3e77bf (patch)
tree09df64443790232e7104322e4ec8d0d4ef32d308 /lib/fcntl.in.h
parent1d8b652baba3df2da0eb42560205cab2ccb360e9 (diff)
downloadwget-1478f6ab011981e9a986c0c30da680635d3e77bf.tar.gz
wget-1478f6ab011981e9a986c0c30da680635d3e77bf.tar.bz2
wget-1478f6ab011981e9a986c0c30da680635d3e77bf.zip
Imported Upstream version 1.15upstream/1.15
Diffstat (limited to 'lib/fcntl.in.h')
-rw-r--r--lib/fcntl.in.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h
index 76e12f7..1e45a65 100644
--- a/lib/fcntl.in.h
+++ b/lib/fcntl.in.h
@@ -1,6 +1,6 @@
/* Like <fcntl.h>, but with non-working flags defined to 0.
- Copyright (C) 2006-2012 Free Software Foundation, Inc.
+ Copyright (C) 2006-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -216,6 +216,10 @@ _GL_WARN_ON_USE (openat, "openat is not portable - "
# define O_EXEC O_RDONLY /* This is often close enough in older systems. */
#endif
+#ifndef O_IGNORE_CTTY
+# define O_IGNORE_CTTY 0
+#endif
+
#ifndef O_NDELAY
# define O_NDELAY 0
#endif
@@ -249,10 +253,18 @@ _GL_WARN_ON_USE (openat, "openat is not portable - "
# define O_NOFOLLOW 0
#endif
+#ifndef O_NOLINK
+# define O_NOLINK 0
+#endif
+
#ifndef O_NOLINKS
# define O_NOLINKS 0
#endif
+#ifndef O_NOTRANS
+# define O_NOTRANS 0
+#endif
+
#ifndef O_RSYNC
# define O_RSYNC 0
#endif
@@ -269,7 +281,7 @@ _GL_WARN_ON_USE (openat, "openat is not portable - "
# define O_TTY_INIT 0
#endif
-#if O_ACCMODE != (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH)
+#if ~O_ACCMODE & (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH)
# undef O_ACCMODE
# define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR | O_EXEC | O_SEARCH)
#endif