forked from pool/glibc
Andreas Schwab
66993bce55
- fcntl-o-tmpfile.patch: Add O_TMPFILE to <fcntl.h> (bnc#837965) - strcoll-overflow.patch: Update to latest version OBS-URL: https://build.opensuse.org/request/show/198529 OBS-URL: https://build.opensuse.org/package/show/Base:System/glibc?expand=0&rev=307
59 lines
2.5 KiB
Diff
59 lines
2.5 KiB
Diff
Index: glibc-2.18/ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
|
|
===================================================================
|
|
--- glibc-2.18.orig/ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
|
|
+++ glibc-2.18/ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
|
|
@@ -36,6 +36,7 @@
|
|
#define __O_DIRECT 02000000 /* Direct disk access. */
|
|
#define __O_NOATIME 04000000 /* Do not set atime. */
|
|
#define __O_PATH 040000000 /* Resolve pathname but do not open file. */
|
|
+#define __O_TMPFILE 0100100000 /* Atomically create nameless file. */
|
|
|
|
/* Not necessary, files are always with 64bit off_t. */
|
|
#define __O_LARGEFILE 0
|
|
Index: glibc-2.18/ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
|
|
===================================================================
|
|
--- glibc-2.18.orig/ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
|
|
+++ glibc-2.18/ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
|
|
@@ -37,6 +37,7 @@
|
|
#define __O_CLOEXEC 010000000 /* Set close_on_exec. */
|
|
#define __O_NOATIME 004000000 /* Do not set atime. */
|
|
#define __O_PATH 020000000
|
|
+#define __O_TMPFILE 040010000 /* Atomically create nameless file. */
|
|
|
|
#define __O_LARGEFILE 00004000
|
|
|
|
Index: glibc-2.18/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
|
|
===================================================================
|
|
--- glibc-2.18.orig/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
|
|
+++ glibc-2.18/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
|
|
@@ -96,6 +96,9 @@
|
|
#ifndef __O_DSYNC
|
|
# define __O_DSYNC 010000
|
|
#endif
|
|
+#ifndef __O_TMPFILE
|
|
+# define __O_TMPFILE 020200000
|
|
+#endif
|
|
|
|
#ifndef F_GETLK
|
|
# ifndef __USE_FILE_OFFSET64
|
|
@@ -128,6 +131,7 @@
|
|
# define O_DIRECT __O_DIRECT /* Direct disk access. */
|
|
# define O_NOATIME __O_NOATIME /* Do not set atime. */
|
|
# define O_PATH __O_PATH /* Resolve pathname but do not open file. */
|
|
+# define O_TMPFILE __O_TMPFILE /* Atomically create nameless file. */
|
|
#endif
|
|
|
|
/* For now, Linux has no separate synchronicitiy options for read
|
|
Index: glibc-2.18/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
|
|
===================================================================
|
|
--- glibc-2.18.orig/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
|
|
+++ glibc-2.18/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
|
|
@@ -39,6 +39,7 @@
|
|
#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. */
|
|
+#define __O_TMPFILE 0x2010000 /* Atomically create nameless file. */
|
|
|
|
#if __WORDSIZE == 64
|
|
# define __O_LARGEFILE 0
|