]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Sync with Linux 3.8
authorAndreas Jaeger <aj@suse.de>
Wed, 6 Mar 2013 15:35:19 +0000 (16:35 +0100)
committerAndreas Jaeger <aj@suse.de>
Wed, 6 Mar 2013 15:35:19 +0000 (16:35 +0100)
25 files changed:
ChangeLog
ports/ChangeLog.alpha
ports/ChangeLog.hppa
ports/ChangeLog.ia64
ports/ChangeLog.mips
ports/sysdeps/unix/sysv/linux/alpha/bits/mman.h
ports/sysdeps/unix/sysv/linux/alpha/bits/msq.h
ports/sysdeps/unix/sysv/linux/generic/bits/msq.h
ports/sysdeps/unix/sysv/linux/hppa/bits/mman.h
ports/sysdeps/unix/sysv/linux/hppa/bits/msq.h
ports/sysdeps/unix/sysv/linux/ia64/bits/msq.h
ports/sysdeps/unix/sysv/linux/mips/bits/msq.h
sysdeps/unix/sysv/linux/bits/mman-linux.h
sysdeps/unix/sysv/linux/bits/msq.h
sysdeps/unix/sysv/linux/internal_statvfs.c
sysdeps/unix/sysv/linux/linux_fsinfo.h
sysdeps/unix/sysv/linux/pathconf.c
sysdeps/unix/sysv/linux/powerpc/bits/msq.h
sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
sysdeps/unix/sysv/linux/s390/bits/msq.h
sysdeps/unix/sysv/linux/s390/sys/ptrace.h
sysdeps/unix/sysv/linux/sparc/bits/msq.h
sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
sysdeps/unix/sysv/linux/sys/ptrace.h
sysdeps/unix/sysv/linux/x86/bits/msq.h

index cfda9f4523d9dc7251d47d906e1ecc844fae6962..4d018e8ca140dfea54598a8f07ad1ce4b833dffa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,41 @@
+2013-03-06  Andreas Jaeger  <aj@suse.de>
+
+       * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
+       (MAP_HUGE_MASK): Define.
+
+       * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
+       Define.
+       (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
+       * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
+       Define.
+       (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
+       * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
+       Define.
+       (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
+       * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
+       Define.
+       (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
+
+       * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
+       * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
+       * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
+       * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
+       * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
+       * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
+
+       * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
+       Handle f2fs.
+
+       * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
+       Handle f2fs and efivarfs.
+
+       * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
+       f2fs.
+
+       * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
+       (EFIVARFS_MAGIC): Add.
+       (F2FS_LINK_MAX): Add.
+
 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
 
        * stdio-common/vfprintf.c: Replace __builtin_expect with
index 2814559a09b11e236a5f16767d0440e11dd89261..9a77d276abf3d359bb2ddec1725c136317eac912 100644 (file)
@@ -1,3 +1,9 @@
+2013-03-06  Andreas Jaeger  <aj@suse.de>
+
+       * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MAP_HUGE_MASK)
+       (MAP_HUGE_SHIFT): Define.
+       * sysdeps/unix/sysv/linux/alpha/bits/msq.h (MSG_COPY): Define.
+
 2013-02-19  Richard Henderson  <rth@redhat.com>
 
        [BZ #14920]
index 6314f1269abbe91496c721f01b73bc211943e96f..0610c177d99a853cc49a2e11b6fa68c9b46a21bc 100644 (file)
@@ -1,3 +1,9 @@
+2013-03-06  Andreas Jaeger  <aj@suse.de>
+
+       * sysdeps/unix/sysv/linux/hppa/bits/msq.h (MSG_COPY): Define.
+       * ports/sysdeps/unix/sysv/linux/hppa/bits/mman.h (MAP_HUGE_MASK)
+       (MAP_HUGE_SHIFT): Define.
+
 2013-02-14  Carlos O'Donell  <carlos@redhat.com>
 
        * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c
index d9fda457fca83685e9f39718d9f0e828d778844d..e1835604e22c81a8dbe0f2e686f47774b0e822e1 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-06  Andreas Jaeger  <aj@suse.de>
+
+       * sysdeps/unix/sysv/linux/ia64/bits/msq.h (MSG_COPY): Define.
+       (MSG_EXCEPT): Make conditional on __USE_GNU.
+
 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Add
index 251806572dde317d89230344c966c23cf676b965..fe95254604d7ba1f22dfdf416090b1512d2c176b 100644 (file)
@@ -1,3 +1,7 @@
+2013-03-06  Andreas Jaeger  <aj@suse.de>
+
+       * sysdeps/unix/sysv/linux/mips/bits/msq.h (MSG_COPY): Define.
+
 2013-02-27  Chung-Lin Tang  <cltang@codesourcery.com>
             Maciej W. Rozycki  <macro@codesourcery.com>
             Maxim Kuvyrkov  <maxim@codesourcery.com>
index 2238c2c72b8384544763ee6361872f11f8f5e917..c51b05d37ff5542731106f26e19177c273f54d66 100644 (file)
@@ -51,6 +51,9 @@
 # define MAP_FILE        0
 # define MAP_ANONYMOUS   0x10          /* Don't use a file.  */
 # define MAP_ANON        MAP_ANONYMOUS
+/* When MAP_HUGETLB is set bits [26:31] encode the log2 of the huge page size.  */
+# define MAP_HUGE_SHIFT          26
+# define MAP_HUGE_MASK   0x3f
 #endif
 
 /* Not used by Linux, but here to make sure we don't clash with
index 1b07465d45fd027a7a3dd662f0aa9d7d07aa452c..8bb057b4ee273ecec03c7063a65406e37921cefd 100644 (file)
@@ -25,6 +25,7 @@
 #define MSG_NOERROR    010000  /* no error if message is too big */
 #ifdef __USE_GNU
 # define MSG_EXCEPT    020000  /* recv any msg except of specified type */
+# define MSG_COPY      040000  /* copy (not remove) all queue messages */
 #endif
 
 /* Types used in the structure definition.  */
index 87f37b4d6502df59e567852883df407eb3bf184c..49cbf0611d8694c597fdfdaa3169f9729406b11c 100644 (file)
@@ -27,6 +27,7 @@
 #define MSG_NOERROR    010000  /* no error if message is too big */
 #ifdef __USE_GNU
 # define MSG_EXCEPT    020000  /* recv any msg except of specified type */
+# define MSG_COPY      040000  /* copy (not remove) all queue messages */
 #endif
 
 /* Types used in the structure definition.  */
index c216ddb1fc755a48d75d1b72d3cb647fa60af0bc..2835b0ff0778960af0665524cd13ecad05c9f704 100644 (file)
@@ -44,6 +44,9 @@
 # define MAP_ANONYMOUS 0x10            /* Don't use a file */
 # define MAP_ANON      MAP_ANONYMOUS
 # define MAP_VARIABLE  0
+/* When MAP_HUGETLB is set bits [26:31] encode the log2 of the huge page size.  */
+# define MAP_HUGE_SHIFT        26
+# define MAP_HUGE_MASK 0x3f
 #endif
 
 /* These are Linux-specific.  */
index e56286b283a6845a08968cf3700f72cdd87886c4..ac35f510b532b49011ce8f16c6c996e695ece2f5 100644 (file)
@@ -26,6 +26,7 @@
 #define MSG_NOERROR    010000  /* no error if message is too big */
 #ifdef __USE_GNU
 # define MSG_EXCEPT    020000  /* recv any msg except of specified type */
+# define MSG_COPY      040000  /* copy (not remove) all queue messages */
 #endif
 
 /* Types used in the structure definition.  */
index 68d3ed7929b37f1435599926bfed416bcfb2bb0e..8519390c48e0c1c2924a7e52f89711736148cd61 100644 (file)
 
 /* Define options for message queue functions.  */
 #define MSG_NOERROR    010000  /* no error if message is too big */
-#define MSG_EXCEPT     020000  /* recv any msg except of specified type */
-
+#ifdef __USE_GNU
+# define MSG_EXCEPT    020000  /* recv any msg except of specified type */
+# define MSG_COPY      040000  /* copy (not remove) all queue messages */
+#endif
 
 /* Structure of record for one message inside the kernel.
    The type `struct __msg' is opaque.  */
index 8439069cd70304f8cbcc4bafc41981be651faa45..e814bc722f157e420bf9f76f39ca2f18b72a29bb 100644 (file)
@@ -25,6 +25,7 @@
 #define MSG_NOERROR    010000  /* no error if message is too big */
 #ifdef __USE_GNU
 # define MSG_EXCEPT    020000  /* recv any msg except of specified type */
+# define MSG_COPY      040000  /* copy (not remove) all queue messages */
 #endif
 
 /* Types used in the structure definition.  */
index 6c06069cdcbf2f76cfce80c5f45cb6a99de64c9e..27d2dc41c4b4359ac627d8e627ff8aba518d34a8 100644 (file)
@@ -51,6 +51,9 @@
 # define MAP_FILE      0
 # define MAP_ANONYMOUS 0x20            /* Don't use a file.  */
 # define MAP_ANON      MAP_ANONYMOUS
+/* When MAP_HUGETLB is set bits [26:31] encode the log2 of the huge page size.  */
+# define MAP_HUGE_SHIFT        26
+# define MAP_HUGE_MASK 0x3f
 #endif
 
 /* Flags to `msync'.  */
index bd005fb10e4909faf98ce4bc5647ffcaaabd9b69..8f6eb8a7d0becade8437793ea32231f88d82d864 100644 (file)
@@ -25,6 +25,7 @@
 #define MSG_NOERROR    010000  /* no error if message is too big */
 #ifdef __USE_GNU
 # define MSG_EXCEPT    020000  /* recv any msg except of specified type */
+# define MSG_COPY      040000  /* copy (not remove) all queue messages */
 #endif
 
 /* Types used in the structure definition.  */
index 4cd4f042c90a744027a349e5dc6dba0d63a50399..45a66b83d5746305c988d419b4ddc4367e07adc0 100644 (file)
@@ -117,6 +117,12 @@ __statvfs_getflags (const char *name, int fstype, struct stat64 *st)
     case LUSTRE_SUPER_MAGIC:
       fsname = "lustre";
       break;
+    case F2FS_SUPER_MAGIC:
+      fsname = "f2fs";
+      break;
+    case EFIVARFS_MAGIC:
+      fsname = "efivarfs";
+      break;
     }
 
   FILE *mtab = __setmntent ("/proc/mounts", "r");
index 1bcd9e2b278469c553f06b67a27872615cb8cc15..2312b4702ad4b789af20bbf084cf774460839322 100644 (file)
 #define EFS_SUPER_MAGIC                0x414a53
 #define EFS_MAGIC              0x072959
 
+/* Constants that identifies the `evivar' filesystem.  */
+#define EFIVARFS_MAGIC         0xde5e81e4
+
 /* Constant that identifies the `ext2' and `ext3' filesystems.  */
 #define EXT2_SUPER_MAGIC       0xef53
 
+/* Constant that identifies the `f2fs' filesystem.  */
+#define F2FS_SUPER_MAGIC       0xf2f52010
+
 /* Constant that identifies the `hpfs' filesystem.  */
 #define HPFS_SUPER_MAGIC       0xf995e849
 
 #define COH_LINK_MAX           10000
 #define EXT2_LINK_MAX          32000
 #define EXT4_LINK_MAX          65000
+#define F2FS_LINK_MAX          32000
 #define LUSTRE_LINK_MAX                EXT4_LINK_MAX
 #define MINIX2_LINK_MAX                65530
 #define MINIX_LINK_MAX         250
index e86925f7d6ec6086e32a41e767fee2ba91d459fb..edc691e9669b0be171a0b483bd0044342a806300 100644 (file)
@@ -168,6 +168,9 @@ __statfs_link_max (int result, const struct statfs *fsbuf, const char *file,
         the hard way.  */
       return distinguish_extX (fsbuf, file, fd);
 
+    case F2FS_SUPER_MAGIC:
+      return F2FS_LINK_MAX;
+
     case MINIX_SUPER_MAGIC:
     case MINIX_SUPER_MAGIC2:
       return MINIX_LINK_MAX;
@@ -221,6 +224,9 @@ __statfs_filesize_max (int result, const struct statfs *fsbuf)
 
   switch (fsbuf->f_type)
     {
+    case F2FS_SUPER_MAGIC:
+      return 256;
+
     case BTRFS_SUPER_MAGIC:
       return 255;
 
index b9811c65672c2842557091c865d6566a8f3820a9..59147c268ca1bcf725f0f28f0683ee7a5ba097a6 100644 (file)
@@ -25,6 +25,7 @@
 #define MSG_NOERROR    010000  /* no error if message is too big */
 #ifdef __USE_GNU
 # define MSG_EXCEPT    020000  /* recv any msg except of specified type */
+# define MSG_COPY      040000  /* copy (not remove) all queue messages */
 #endif
 
 /* Types used in the structure definition.  */
index dfda1c889deeec0b69365e97b49a965be88c0958..e6e916b0f24aca0b4ede24f5b5b0896839c71d04 100644 (file)
@@ -136,7 +136,8 @@ enum __ptrace_setoptions
   PTRACE_O_TRACEVFORKDONE = 0x00000020,
   PTRACE_O_TRACEEXIT   = 0x00000040,
   PTRACE_O_TRACESECCOMP = 0x00000080,
-  PTRACE_O_MASK                = 0x000000ff
+  PTRACE_O_EXITKILL    = 0x00100000,
+  PTRACE_O_MASK                = 0x001000ff
 };
 
 /* Wait extended result codes for the above trace options.  */
index 5a1f6b29e18fd0988f3a553ac873d1ca262de2bd..a5eaf89ddf8eb9825f7f656d9acae42da1d06eed 100644 (file)
@@ -26,6 +26,7 @@
 #define MSG_NOERROR    010000  /* no error if message is too big */
 #ifdef __USE_GNU
 # define MSG_EXCEPT    020000  /* recv any msg except of specified type */
+# define MSG_COPY      040000  /* copy (not remove) all queue messages */
 #endif
 
 /* Types used in the structure definition.  */
index b9062dc1aef246216af95f1b99614370d8596e5f..ca2ebb9590f58621f83e38aef0395d6b41aae8df 100644 (file)
@@ -175,7 +175,8 @@ enum __ptrace_setoptions
   PTRACE_O_TRACEVFORKDONE = 0x00000020,
   PTRACE_O_TRACEEXIT   = 0x00000040,
   PTRACE_O_TRACESECCOMP = 0x00000080,
-  PTRACE_O_MASK                = 0x000000ff
+  PTRACE_O_EXITKILL    = 0x00100000,
+  PTRACE_O_MASK                = 0x001000ff
 };
 
 /* Wait extended result codes for the above trace options.  */
index 84c4b858b749f529756cfbd99c3e5b3763e9b240..0a0192732cd67544e77f6aa57f8dd663010c2130 100644 (file)
@@ -26,6 +26,7 @@
 #define MSG_NOERROR    010000  /* no error if message is too big */
 #ifdef __USE_GNU
 # define MSG_EXCEPT    020000  /* recv any msg except of specified type */
+# define MSG_COPY      040000  /* copy (not remove) all queue messages */
 #endif
 
 /* Types used in the structure definition.  */
index bd6fd536d704a7d8918d184332b8bdbff832aab9..7ba8f5f254f8c793aece04a8b1a887303f0f8d57 100644 (file)
@@ -219,7 +219,8 @@ enum __ptrace_setoptions
   PTRACE_O_TRACEVFORKDONE = 0x00000020,
   PTRACE_O_TRACEEXIT   = 0x00000040,
   PTRACE_O_TRACESECCOMP = 0x00000080,
-  PTRACE_O_MASK                = 0x000000ff
+  PTRACE_O_EXITKILL    = 0x00100000,
+  PTRACE_O_MASK                = 0x001000ff
 };
 
 /* Wait extended result codes for the above trace options.  */
index d04fab599d97ad929236da6d44378ae1437f2216..08709bf64cf48c40bbbf6cfa21affee196a5f39f 100644 (file)
@@ -166,7 +166,8 @@ enum __ptrace_setoptions
   PTRACE_O_TRACEVFORKDONE = 0x00000020,
   PTRACE_O_TRACEEXIT   = 0x00000040,
   PTRACE_O_TRACESECCOMP = 0x00000080,
-  PTRACE_O_MASK                = 0x000000ff
+  PTRACE_O_EXITKILL    = 0x00100000,
+  PTRACE_O_MASK                = 0x001000ff
 };
 
 /* Wait extended result codes for the above trace options.  */
index ef5cc386817964170414d2f295848be97075217c..9355e465d531b48cd2447843921ff8c6b33196e3 100644 (file)
@@ -25,6 +25,7 @@
 #define MSG_NOERROR    010000  /* no error if message is too big */
 #ifdef __USE_GNU
 # define MSG_EXCEPT    020000  /* recv any msg except of specified type */
+# define MSG_COPY      040000  /* copy (not remove) all queue messages */
 #endif
 
 /* Types used in the structure definition.  */