olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1330705-1.patch

00db10
commit ffdd31816a67f48697ea4d6b852e58d2886d42ca
00db10
Author: Andreas Schwab <schwab@suse.de>
00db10
Date:   Wed Sep 11 11:15:45 2013 +0200
00db10
00db10
    Add O_TMPFILE to <fcntl.h>
00db10
00db10
diff --git a/ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h b/ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
00db10
index 2e31691..02c9a7f 100644
00db10
--- a/ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
00db10
+++ b/ports/sysdeps/unix/sysv/linux/alpha/bits/fcntl.h
00db10
@@ -36,6 +36,7 @@
00db10
 #define __O_DIRECT	02000000 /* Direct disk access.  */
00db10
 #define __O_NOATIME	04000000 /* Do not set atime.  */
00db10
 #define __O_PATH	040000000 /* Resolve pathname but do not open file.  */
00db10
+#define __O_TMPFILE	0100100000 /* Atomically create nameless file.  */
00db10
 
00db10
 /* Not necessary, files are always with 64bit off_t.  */
00db10
 #define __O_LARGEFILE	0
00db10
diff --git a/ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h b/ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
00db10
index 744548a..76faa40 100644
00db10
--- a/ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
00db10
+++ b/ports/sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
00db10
@@ -37,6 +37,7 @@
00db10
 #define __O_CLOEXEC	010000000 /* Set close_on_exec.  */
00db10
 #define __O_NOATIME	004000000 /* Do not set atime.  */
00db10
 #define __O_PATH        020000000
00db10
+#define __O_TMPFILE     040010000 /* Atomically create nameless file. */
00db10
 
00db10
 #define __O_LARGEFILE	00004000
00db10
 
00db10
diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
00db10
index b5929bd..9b0421e 100644
00db10
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
00db10
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
00db10
@@ -96,6 +96,9 @@
00db10
 #ifndef __O_DSYNC
00db10
 # define __O_DSYNC	 010000
00db10
 #endif
00db10
+#ifndef __O_TMPFILE
00db10
+# define __O_TMPFILE   020200000
00db10
+#endif
00db10
 
00db10
 #ifndef F_GETLK
00db10
 # ifndef __USE_FILE_OFFSET64
00db10
@@ -128,6 +131,7 @@
00db10
 # define O_DIRECT	__O_DIRECT	/* Direct disk access.	*/
00db10
 # define O_NOATIME	__O_NOATIME	/* Do not set atime.  */
00db10
 # define O_PATH		__O_PATH	/* Resolve pathname but do not open file.  */
00db10
+# define O_TMPFILE	__O_TMPFILE	/* Atomically create nameless file.  */
00db10
 #endif
00db10
 
00db10
 /* For now, Linux has no separate synchronicitiy options for read
00db10
diff --git a/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h b/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
00db10
index 01084bb..f384bc7 100644
00db10
--- a/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
00db10
+++ b/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h
00db10
@@ -39,6 +39,7 @@
00db10
 #define __O_DIRECT	0x100000 /* direct disk access hint */
00db10
 #define __O_NOATIME	0x200000 /* Do not set atime.  */
00db10
 #define __O_PATH	0x1000000 /* Resolve pathname but do not open file.  */
00db10
+#define __O_TMPFILE	0x2010000 /* Atomically create nameless file.  */
00db10
 
00db10
 #if __WORDSIZE == 64
00db10
 # define __O_LARGEFILE	0