]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Updated to fedora-glibc-20080328T1347 cvs/fedora-glibc-2_7_90-13
authorJakub Jelinek <jakub@redhat.com>
Fri, 28 Mar 2008 14:06:00 +0000 (14:06 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 28 Mar 2008 14:06:00 +0000 (14:06 +0000)
21 files changed:
ChangeLog
fedora/branch.mk
fedora/glibc.spec.in
fedora/glibc_post_upgrade.c
nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/alpha/bits/local_lim.h
nptl/sysdeps/unix/sysv/linux/bits/local_lim.h
nptl/sysdeps/unix/sysv/linux/ia64/bits/local_lim.h
nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h
nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h
posix/gai.conf
sysdeps/posix/getaddrinfo.c
sysdeps/unix/sysv/linux/alpha/syscalls.list
sysdeps/unix/sysv/linux/bits/local_lim.h
sysdeps/unix/sysv/linux/ia64/syscalls.list
sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list
sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list
sysdeps/unix/sysv/linux/sys/param.h
sysdeps/unix/sysv/linux/sysconf.c
sysdeps/unix/sysv/linux/wordsize-64/syscalls.list
sysdeps/unix/sysv/linux/x86_64/syscalls.list

index ac94fbd9eb3a07b81c5db2a77fc8e94024b286ed..ec004b1f4f9c12ac650c9c5597bc514efba2306f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,31 @@
+2008-03-27  Jakub Jelinek  <jakub@redhat.com>
+
+       * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Add open
+       and creat system calls.
+       * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove open system
+       call.
+       * sysdeps/unix/sysv/linux/ia64/syscalls.list: Remove open and creat
+       system calls.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Likewise.
+       * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
+
+2008-03-27  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
+       <linux/limits.h> has defined it.
+       * sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
+       ARG_MAX value and prevent ARG_MAX from being defined by the kernel
+       headers.
+       * sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
+       it instead of ARG_MAX.
+
+2008-03-25  Jakub Jelinek  <jakub@redhat.com>
+
+       * posix/gai.conf: Fix comment for scope nullbits.
+       * sysdeps/posix/getaddrinfo.c (gaiconf_init): If /bits is not present,
+       default to 128 bits for v4 mapped addresses.
+
 2008-03-07  Martin Schwidefsky  <schwidefsky@de.ibm.com>
 
        * sysdeps/s390/fpu/fegetenv.c (fegetenv): Remove PTRACE_PEEKUSER
index 3a8066a6a90f74568a8670fe8e9586a2ac511d1c..a5124e44db6da6f86e5b88516f42f1445982636a 100644 (file)
@@ -3,5 +3,5 @@ glibc-branch := fedora
 glibc-base := HEAD
 DIST_BRANCH := devel
 COLLECTION := dist-f8
-fedora-sync-date := 2008-03-26 10:41 UTC
-fedora-sync-tag := fedora-glibc-20080326T1041
+fedora-sync-date := 2008-03-28 13:47 UTC
+fedora-sync-tag := fedora-glibc-20080328T1347
index 4763a69a0549c201a3cc4c896e8d21827d291e0e..cc6bc3970ebfc84127f2b6ee12b83c0090d70774 100644 (file)
@@ -19,7 +19,7 @@
 Summary: The GNU libc libraries
 Name: glibc
 Version: @glibcversion@
-Release: 12
+Release: 13
 # GPLv2+ is used in a bunch of programs, LGPLv2+ is used for libraries.
 # Things that are linked directly into dynamically linked programs
 # and shared libraries (e.g. crt files, lib*_nonshared.a) have an additional
@@ -976,6 +976,15 @@ rm -f *.filelist*
 %endif
 
 %changelog
+* Fri Mar 28 2008 Jakub Jelinek <jakub@redhat.com> 2.7.90-13
+- update to trunk
+  - don't define ARG_MAX in <limits.h>, as it is no longer
+    constant - use sysconf (_SC_ARG_MAX) to get the current
+    argument size limit
+  - fix build on sparc64
+- only service sshd condrestart if /etc/rc.d/init.d/sshd exists
+  (#428859)
+
 * Wed Mar 26 2008 Jakub Jelinek <jakub@redhat.com> 2.7.90-12
 - update to trunk
   - new CLONE_* flags in <sched.h> (#438542)
index 150b9495acade5c951c9afa8e49bd58586825a1c..d73096cdec95f4e4b04bdd3527a2ec4f97e578ab 100644 (file)
@@ -182,6 +182,7 @@ main (void)
   /* Check if we can safely condrestart sshd.  */
   if (access ("/sbin/service", X_OK) == 0
       && access ("/usr/sbin/sshd", X_OK) == 0
+      && access ("/etc/rc.d/init.d/sshd", X_OK) == 0
       && access ("/bin/bash", X_OK) == 0)
     {
       if (check_elf ("/usr/sbin/sshd"))
index 4af41097ff8eaf5d7a845b83b9b4b94ef8d33750..528e42840e73d1d7acc591f319ba897ca8a80b9e 100644 (file)
@@ -1,3 +1,12 @@
+2008-03-27  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
+       <linux/limits.h> has defined it.
+       * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Likewise.
+
 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
 
        * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Use __ASSEMBLER__ instead
index 9b27b1ff487fb6a0fc4c5fd35715b26f1cb87bbd..a7c9740a0ab48624d64f3d9bf6cd31f7e261d135 100644 (file)
@@ -1,5 +1,5 @@
 /* Minimum guaranteed maximum values for system limits.  Linux/Alpha version.
-   Copyright (C) 1993-1998,2000,2002,2003,2004 Free Software Foundation, Inc.
+   Copyright (C) 1993-1998,2000,2002-2004,2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,6 +31,9 @@
 #ifndef OPEN_MAX
 # define __undef_OPEN_MAX
 #endif
+#ifndef ARG_MAX
+# define __undef_ARG_MAX
+#endif
 
 /* The kernel sources contain a file with all the needed information.  */
 #include <linux/limits.h>
 # undef OPEN_MAX
 # undef __undef_OPEN_MAX
 #endif
+/* Have to remove ARG_MAX?  */
+#ifdef __undef_ARG_MAX
+# undef ARG_MAX
+# undef __undef_ARG_MAX
+#endif
 
 /* The number of data keys per process.  */
 #define _POSIX_THREAD_KEYS_MAX 128
index 4b7b29787e97244e11fa7812b416ca598690ad04..8f0df4f92cdb8754794b57d3493f85831409075c 100644 (file)
@@ -1,5 +1,5 @@
 /* Minimum guaranteed maximum values for system limits.  Linux version.
-   Copyright (C) 1993-1998,2000,2002,2003,2004 Free Software Foundation, Inc.
+   Copyright (C) 1993-1998,2000,2002-2004,2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,6 +31,9 @@
 #ifndef OPEN_MAX
 # define __undef_OPEN_MAX
 #endif
+#ifndef ARG_MAX
+# define __undef_ARG_MAX
+#endif
 
 /* The kernel sources contain a file with all the needed information.  */
 #include <linux/limits.h>
 # undef OPEN_MAX
 # undef __undef_OPEN_MAX
 #endif
+/* Have to remove ARG_MAX?  */
+#ifdef __undef_ARG_MAX
+# undef ARG_MAX
+# undef __undef_ARG_MAX
+#endif
 
 /* The number of data keys per process.  */
 #define _POSIX_THREAD_KEYS_MAX 128
index 83db31efcbe05a86b9c7edd54db9c45a28de1c0f..4b8a0350427fd492a687a063475dd77597ae23a0 100644 (file)
@@ -1,5 +1,5 @@
 /* Minimum guaranteed maximum values for system limits.  Linux/IA-64 version.
-   Copyright (C) 1993-1998,2000,2002,2003,2004 Free Software Foundation, Inc.
+   Copyright (C) 1993-1998,2000,2002-2004,2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,6 +31,9 @@
 #ifndef OPEN_MAX
 # define __undef_OPEN_MAX
 #endif
+#ifndef ARG_MAX
+# define __undef_ARG_MAX
+#endif
 
 /* The kernel sources contain a file with all the needed information.  */
 #include <linux/limits.h>
 # undef OPEN_MAX
 # undef __undef_OPEN_MAX
 #endif
+/* Have to remove ARG_MAX?  */
+#ifdef __undef_ARG_MAX
+# undef ARG_MAX
+# undef __undef_ARG_MAX
+#endif
 
 /* The number of data keys per process.  */
 #define _POSIX_THREAD_KEYS_MAX 128
index 02e2d17343d6c0e1cd0268c1fa39a9898e775788..8b836a989aa72a69bc1528f0d9f27bad983cff3b 100644 (file)
@@ -1,5 +1,6 @@
 /* Minimum guaranteed maximum values for system limits.  Linux/PPC version.
-   Copyright (C) 1993-1998,2000,2002-2004,2006 Free Software Foundation, Inc.
+   Copyright (C) 1993-1998,2000,2002-2004,2006,2008
+   Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,6 +32,9 @@
 #ifndef OPEN_MAX
 # define __undef_OPEN_MAX
 #endif
+#ifndef ARG_MAX
+# define __undef_ARG_MAX
+#endif
 
 /* The kernel sources contain a file with all the needed information.  */
 #include <linux/limits.h>
 # undef OPEN_MAX
 # undef __undef_OPEN_MAX
 #endif
+/* Have to remove ARG_MAX?  */
+#ifdef __undef_ARG_MAX
+# undef ARG_MAX
+# undef __undef_ARG_MAX
+#endif
 
 /* The number of data keys per process.  */
 #define _POSIX_THREAD_KEYS_MAX 128
index 2576f121c34a2e7754df9d40ed4ad35b7fb6d69b..6e356031d3e9bdf2ee78b48527d1f4c36ac2836c 100644 (file)
@@ -1,5 +1,5 @@
 /* Minimum guaranteed maximum values for system limits.  Linux/SPARC version.
-   Copyright (C) 1993-1998,2000,2002,2003,2004 Free Software Foundation, Inc.
+   Copyright (C) 1993-1998,2000,2002-2004,2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,6 +31,9 @@
 #ifndef OPEN_MAX
 # define __undef_OPEN_MAX
 #endif
+#ifndef ARG_MAX
+# define __undef_ARG_MAX
+#endif
 
 /* The kernel sources contain a file with all the needed information.  */
 #include <linux/limits.h>
 # undef OPEN_MAX
 # undef __undef_OPEN_MAX
 #endif
+/* Have to remove ARG_MAX?  */
+#ifdef __undef_ARG_MAX
+# undef ARG_MAX
+# undef __undef_ARG_MAX
+#endif
 
 /* The number of data keys per process.  */
 #define _POSIX_THREAD_KEYS_MAX 128
index b4abfc1f90e26a59f2359211c7653b36a1d07812..3dba1a905d52a44e6d379dda9122bc02b80b1041 100644 (file)
@@ -65,4 +65,4 @@
 #scopev4 ::ffff:10.0.0.0/104     5
 #scopev4 ::ffff:172.16.0.0/108   5
 #scopev4 ::ffff:192.168.0.0/112  5
-#scopev4 ::ffff:0.0.0.0          14
+#scopev4 ::ffff:0.0.0.0/96       14
index fb18bba47d94480539c32b4f6026d3b7f6bb8d0a..9a27efdf83cbee3b624e04e3a99cfc827b63d68e 100644 (file)
@@ -1775,6 +1775,7 @@ gaiconf_init (void)
                    *cp++ = '\0';
                  if (inet_pton (AF_INET6, val1, &prefix))
                    {
+                     bits = 128;
                      if (IN6_IS_ADDR_V4MAPPED (&prefix)
                          && (cp == NULL
                              || (bits = strtoul (cp, &endp, 10)) != ULONG_MAX
index 7b3f2335667b08abe7402a0251731008deabda4f..de2c3ceac028e2a15838a610d3e41db9d21e7465 100644 (file)
@@ -17,8 +17,6 @@ sigstack      -       sigstack        2       sigstack
 vfork          -       vfork           0       __vfork         vfork
 
 getpriority    -       getpriority     i:ii    __getpriority   getpriority
-open           -       open            Ci:siv  __libc_open     __open open !__libc_open64 __open64 open64
-open64         open    -
 
 # proper socket implementations:
 accept         -       accept          Ci:iBN  __libc_accept   __accept accept
index 54a51ee766c193ce250da54833e10f54d013817c..ea2cd446d8434cc6e7db8e1f024574c095d500a6 100644 (file)
@@ -1,5 +1,5 @@
 /* Minimum guaranteed maximum values for system limits.  Linux version.
-   Copyright (C) 1993-1998, 2000, 2003, 2004 Free Software Foundation, Inc.
+   Copyright (C) 1993-1998,2000,2003,2004,2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,6 +31,9 @@
 #ifndef OPEN_MAX
 # define __undef_OPEN_MAX
 #endif
+#ifndef ARG_MAX
+# define __undef_ARG_MAX
+#endif
 
 /* The kernel sources contain a file with all the needed information.  */
 #include <linux/limits.h>
 # undef OPEN_MAX
 # undef __undef_OPEN_MAX
 #endif
+/* Have to remove ARG_MAX?  */
+#ifdef __undef_ARG_MAX
+# undef ARG_MAX
+# undef __undef_ARG_MAX
+#endif
 
 /* Maximum amount by which a process can descrease its asynchronous I/O
    priority level.  */
index 582492706e8933d7dcd509109fb217d464458bee..c55c70ef5417a0a5df5586012b712babe01be8c4 100644 (file)
@@ -4,9 +4,6 @@ umount2         -       umount          2       __umount2       umount2
 
 getpriority    -       getpriority     i:ii    __getpriority   getpriority
 
-creat          -       creat           Ci:si   __libc_creat    creat creat64
-open           -       open            Ci:siv  __libc_open     __open open __open64 open64
-
 # semaphore and shm system calls
 msgctl         -       msgctl          i:iip   __msgctl        msgctl
 msgget         -       msgget          i:ii    __msgget        msgget
index 320c40da64663e90508a4f0cefc185fc976ee594..aee60bf9d5d9447c487e0d03940cfad2a1c5e3c9 100644 (file)
@@ -1,5 +1,3 @@
 # File name    Caller  Syscall name    # args  Strong name     Weak names
 
-creat          -       creat           Ci:si   __libc_creat    creat creat64
 getrlimit      -       ugetrlimit      i:ip    __getrlimit     getrlimit getrlimit64
-open           -       open            Ci:siv  __libc_open     __open open __open64 open64
index 684999913bfd6527eeb87545a1641ed358b78109..791ab9ba52117093c7a7841174b404d3acb62b3a 100644 (file)
@@ -2,9 +2,6 @@
 
 vfork          -       vfork           0       __vfork         vfork
 
-creat          -       creat           Ci:si   __libc_creat    creat creat64
-open           -       open            Ci:siv  __libc_open     __open open __open64 open64
-
 # semaphore and shm system calls
 msgctl         -       msgctl          i:iip   __msgctl        msgctl
 msgget         -       msgget          i:ii    __msgget        msgget
index 0b0424eb90ff7138b0f7c028f819752c296c3b0c..19c119a2c895d74a7d5aa2f94e0e123a6b5e596c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995,1996,1997,2000,2001,2003 Free Software Foundation, Inc.
+/* Copyright (C) 1995-1997,2000,2001,2003,2008 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #ifndef _SYS_PARAM_H
 #define _SYS_PARAM_H   1
 
+#ifndef ARG_MAX
+# define __undef_ARG_MAX
+#endif
+
 #include <limits.h>
 #include <linux/limits.h>
 #include <linux/param.h>
 
+/* The kernel headers defines ARG_MAX.  The value is wrong, though.  */
+#ifndef __undef_ARG_MAX
+# undef ARG_MAX
+# undef __undef_ARG_MAX
+#endif
+
 /* BSD names for some <limits.h> values.  */
 
 #define        NBBY            CHAR_BIT
 #endif
 #define        MAXSYMLINKS     20
 #define        CANBSIZ         MAX_CANON
-#define        NCARGS          ARG_MAX
 #define MAXPATHLEN     PATH_MAX
-/* The following is not really correct but it is a value we used for a
+/* The following are not really correct but it is a value we used for a
    long time and which seems to be usable.  People should not use NOFILE
-   anyway.  */
+   and NCARGS anyway.  */
 #define NOFILE         256
+#define        NCARGS          131072
 
 
 #include <sys/types.h>
index ab9cddc3060f67a732c6ae410cd4de2ca2c2c3f5..f4e36e0c6f0f5c9e1b4e7e642c594f471786f0c7 100644 (file)
 #include <not-cancel.h>
 #include <ldsodefs.h>
 
+/* Legacy value of ARG_MAX.  The macro is now not defined since the
+   actual value varies based on the stack size.  */
+#define legacy_ARG_MAX 131072
+
+
 static long int posix_sysconf (int name);
 
 
@@ -83,10 +88,10 @@ __sysconf (int name)
          /* Use getrlimit to get the stack limit.  */
          struct rlimit rlimit;
          if (__getrlimit (RLIMIT_STACK, &rlimit) == 0)
-           return MAX (ARG_MAX, rlimit.rlim_cur / 4);
+           return MAX (legacy_ARG_MAX, rlimit.rlim_cur / 4);
        }
 
-      return ARG_MAX;
+      return legacy_ARG_MAX;
 
     case _SC_NGROUPS_MAX:
       /* Try to read the information from the /proc/sys/kernel/ngroups_max
index d377db968763173b0e9340102c72c754f2a9b6ef..60915507b5a08f00bd73ae601aa4a86e2bea69ce 100644 (file)
@@ -15,3 +15,5 @@ setrlimit     -       setrlimit       i:ip    __setrlimit     setrlimit setrlimit64
 readahead      -       readahead       i:iii   __readahead     readahead
 sendfile       -       sendfile        i:iipi  sendfile        sendfile64
 sync_file_range        -       sync_file_range i:iiii  sync_file_range
+creat          -       creat           Ci:si   __libc_creat    creat creat64
+open           -       open            Ci:siv  __libc_open     __open open __open64 open64
index a3d3d6cf92492d61562cf00d45407238388370ac..3e231a0b61d10ffc4f9f7efa705401451072c133 100644 (file)
@@ -1,13 +1,11 @@
 # File name    Caller  Syscall name    # args  Strong name     Weak names
 
 arch_prctl     EXTRA   arch_prctl      i:ii    __arch_prctl    arch_prctl
-creat          -       creat           Ci:si   __libc_creat    creat creat64
 modify_ldt     EXTRA   modify_ldt      i:ipi   __modify_ldt    modify_ldt
 msgctl         -       msgctl          i:iip   __msgctl        msgctl
 msgget         -       msgget          i:ii    __msgget        msgget
 msgrcv         -       msgrcv          Ci:ibnii __msgrcv       msgrcv
 msgsnd         -       msgsnd          Ci:ibni __msgsnd        msgsnd
-open           -       open            Ci:siv  __libc_open     __open open __open64 open64
 shmat          -       shmat           i:ipi   __shmat         shmat
 shmctl         -       shmctl          i:iip   __shmctl        shmctl
 shmdt          -       shmdt           i:s     __shmdt         shmdt