mirror of https://gitee.com/Nocallback/glibc.git
Browse Source
2003-09-02 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo and rt_sigpending. * sysdeps/unix/sysv/linux/alpha/sigaction.c (__syscall_rt_sigaction): New prototype. * sysdeps/unix/sysv/linux/arm/syscalls.list (__syscall_*): Remove unused __syscall_ stubs. * sysdeps/unix/sysv/linux/arm/Makefile (sysdep_routines): Remove rt_*. * sysdeps/unix/sysv/linux/cris/Makefile: Removed. * sysdeps/unix/sysv/linux/mips/mips64/syscalls.list (__syscall_recvfrom, __syscall_sendto): Remove unused aliases. * sysdeps/unix/sysv/linux/mips/syscalls.list (__syscall_*): Remove unused __syscall_ stubs. * sysdeps/unix/sysv/linux/mips/Makefile (sysdep_routines): Remove rt_*. * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (__syscall_*): Remove unused __syscall_ stubs. * sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list (__syscall_*): Likewise. * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines): Remove rt_*. * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list (__syscall_*): Remove unused __syscall_ stubs. * sysdeps/unix/sysv/linux/sh/Makefile (sysdep_routines): Remove rt_*. * sysdeps/unix/sysv/linux/rt_sigaction.c: Removed. * sysdeps/unix/sysv/linux/rt_sigpending.c: Removed. * sysdeps/unix/sysv/linux/rt_sigprocmask.c: Removed. * sysdeps/unix/sysv/linux/rt_sigqueueinfo.c: Removed. * sysdeps/unix/sysv/linux/rt_sigreturn.c: Removed. * sysdeps/unix/sysv/linux/rt_sigsuspend.c: Removed. * sysdeps/unix/sysv/linux/rt_sigtimedwait.c: Removed. * sysdeps/unix/sysv/linux/s_pread64.c: Removed. * sysdeps/unix/sysv/linux/s_pwrite64.c: Removed. * sysdeps/unix/sysv/linux/alpha/gethostname.c: Remove unused __syscall_* prototypes. * sysdeps/unix/sysv/linux/alpha/ipc_priv.h: Likewise. * sysdeps/unix/sysv/linux/alpha/msgctl.c: Likewise. * sysdeps/unix/sysv/linux/alpha/semctl.c: Likewise. * sysdeps/unix/sysv/linux/alpha/shmctl.c: Likewise. * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/i386/chown.c: Likewise. * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise. * sysdeps/unix/sysv/linux/i386/fcntl.c: Likewise. * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise. * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise. * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise. * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise. * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise. * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/getrlimit.c: Likewise. * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise. * sysdeps/unix/sysv/linux/i386/lockf64.c: Likewise. * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise. * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise. * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise. * sysdeps/unix/sysv/linux/i386/setregid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setreuid.c: Likewise. * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise. * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/ia64/fxstat.c: Likewise. * sysdeps/unix/sysv/linux/ia64/lxstat.c: Likewise. * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/ia64/sigpending.c: Likewise. * sysdeps/unix/sysv/linux/ia64/sigprocmask.c: Likewise. * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: Likewise. * sysdeps/unix/sysv/linux/ia64/xstat.c: Likewise. * sysdeps/unix/sysv/linux/m68k/chown.c: Likewise. * sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise. * sysdeps/unix/sysv/linux/mips/pread.c: Likewise. * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise. * sysdeps/unix/sysv/linux/mips/ptrace.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise. * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise. * sysdeps/unix/sysv/linux/mips/ustat.c: Likewise. * sysdeps/unix/sysv/linux/mips/xmknod.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise. * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/xstat.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/fxstat.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/lxstat.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c: Likewise. * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise. * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Likewise. * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/pwrite.c: Likewise. * sysdeps/unix/sysv/linux/execve.c: Likewise. * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise. * sysdeps/unix/sysv/linux/reboot.c: Likewise. * sysdeps/unix/sysv/linux/_exit.c: Likewise. * sysdeps/unix/sysv/linux/ftruncate64.c: Likewise. * sysdeps/unix/sysv/linux/pwrite64.c: Likewise. * sysdeps/unix/sysv/linux/fxstat64.c: Likewise. * sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise. * sysdeps/unix/sysv/linux/readahead.c: Likewise. * sysdeps/unix/sysv/linux/getcwd.c: Likewise. * sysdeps/unix/sysv/linux/sigwait.c: Likewise. * sysdeps/unix/sysv/linux/getdents.c: Likewise. * sysdeps/unix/sysv/linux/readv.c: Likewise. * sysdeps/unix/sysv/linux/getpriority.c: Likewise. * sysdeps/unix/sysv/linux/sigaction.c: Likewise. * sysdeps/unix/sysv/linux/ipc_priv.h: Likewise. * sysdeps/unix/sysv/linux/llseek.c: Likewise. * sysdeps/unix/sysv/linux/sysctl.c: Likewise. * sysdeps/unix/sysv/linux/lxstat64.c: Likewise. * sysdeps/unix/sysv/linux/mmap64.c: Likewise. * sysdeps/unix/sysv/linux/ustat.c: Likewise. * sysdeps/unix/sysv/linux/poll.c: Likewise. * sysdeps/unix/sysv/linux/pread64.c: Likewise. * sysdeps/unix/sysv/linux/writev.c: Likewise. * sysdeps/unix/sysv/linux/pread.c: Likewise. * sysdeps/unix/sysv/linux/ptrace.c: Likewise. * sysdeps/unix/sysv/linux/sigpending.c: Likewise. * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise. * sysdeps/unix/sysv/linux/sigqueue.c: Likewise. * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise. * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise. * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise. * sysdeps/unix/sysv/linux/truncate64.c: Likewise. * sysdeps/unix/sysv/linux/xmknod.c: Likewise. * sysdeps/unix/sysv/linux/xstat64.c: Likewise. 2003-09-02 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Revert last change. * sysdeps/unix/sysv/linux/powerpc/syscalls.list: New file. * sysdeps/unix/sysv/linux/sparc/syscalls.list: New file. * stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions. * intl/loadmsgcat.c: For _LIBC, call not cancelable versions of open, close, and read.cvs/fedora-2_3-branch
147 changed files with 1126 additions and 826 deletions
@ -0,0 +1,6 @@ |
|||
libpthread { |
|||
GLIBC_2.3.3 { |
|||
# Changed PTHREAD_STACK_MIN. |
|||
pthread_attr_setstack; pthread_attr_setstacksize; |
|||
} |
|||
} |
|||
@ -0,0 +1,86 @@ |
|||
/* Minimum guaranteed maximum values for system limits. Linux/Alpha version.
|
|||
Copyright (C) 1993-1998, 2000, 2002, 2003 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 |
|||
modify it under the terms of the GNU Lesser General Public License as |
|||
published by the Free Software Foundation; either version 2.1 of the |
|||
License, or (at your option) any later version. |
|||
|
|||
The GNU C Library is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|||
Lesser General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Lesser General Public |
|||
License along with the GNU C Library; see the file COPYING.LIB. If not, |
|||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|||
Boston, MA 02111-1307, USA. */ |
|||
|
|||
/* The kernel header pollutes the namespace with the NR_OPEN symbol
|
|||
and defines LINK_MAX although filesystems have different maxima. A |
|||
similar thing is true for OPEN_MAX: the limit can be changed at |
|||
runtime and therefore the macro must not be defined. Remove this |
|||
after including the header if necessary. */ |
|||
#ifndef NR_OPEN |
|||
# define __undef_NR_OPEN |
|||
#endif |
|||
#ifndef LINK_MAX |
|||
# define __undef_LINK_MAX |
|||
#endif |
|||
#ifndef OPEN_MAX |
|||
# define __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The kernel sources contain a file with all the needed information. */ |
|||
#include <linux/limits.h> |
|||
|
|||
/* Have to remove NR_OPEN? */ |
|||
#ifdef __undef_NR_OPEN |
|||
# undef NR_OPEN |
|||
# undef __undef_NR_OPEN |
|||
#endif |
|||
/* Have to remove LINK_MAX? */ |
|||
#ifdef __undef_LINK_MAX |
|||
# undef LINK_MAX |
|||
# undef __undef_LINK_MAX |
|||
#endif |
|||
/* Have to remove OPEN_MAX? */ |
|||
#ifdef __undef_OPEN_MAX |
|||
# undef OPEN_MAX |
|||
# undef __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The number of data keys per process. */ |
|||
#define _POSIX_THREAD_KEYS_MAX 128 |
|||
/* This is the value this implementation supports. */ |
|||
#define PTHREAD_KEYS_MAX 1024 |
|||
|
|||
/* Controlling the iterations of destructors for thread-specific data. */ |
|||
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 |
|||
/* Number of iterations this implementation does. */ |
|||
#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS |
|||
|
|||
/* The number of threads per process. */ |
|||
#define _POSIX_THREAD_THREADS_MAX 64 |
|||
/* This is the value this implementation supports. */ |
|||
#define PTHREAD_THREADS_MAX 16384 |
|||
|
|||
/* Maximum amount by which a process can descrease its asynchronous I/O
|
|||
priority level. */ |
|||
#define AIO_PRIO_DELTA_MAX 20 |
|||
|
|||
/* Minimum size for a thread. We are free to choose a reasonable value. */ |
|||
#define PTHREAD_STACK_MIN 24576 |
|||
|
|||
/* Maximum number of POSIX timers available. */ |
|||
#define TIMER_MAX 256 |
|||
|
|||
/* Maximum number of timer expiration overruns. */ |
|||
#define DELAYTIMER_MAX 2147483647 |
|||
|
|||
/* Maximum tty name length. */ |
|||
#define TTY_NAME_MAX 32 |
|||
|
|||
/* Maximum login name length. This is arbitrary. */ |
|||
#define LOGIN_NAME_MAX 256 |
|||
@ -0,0 +1,6 @@ |
|||
libpthread { |
|||
GLIBC_2.3.3 { |
|||
# Changed PTHREAD_STACK_MIN. |
|||
pthread_attr_setstack; pthread_attr_setstacksize; |
|||
} |
|||
} |
|||
@ -0,0 +1,86 @@ |
|||
/* Minimum guaranteed maximum values for system limits. Linux/Alpha version.
|
|||
Copyright (C) 1993-1998, 2000, 2002, 2003 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 |
|||
modify it under the terms of the GNU Lesser General Public License as |
|||
published by the Free Software Foundation; either version 2.1 of the |
|||
License, or (at your option) any later version. |
|||
|
|||
The GNU C Library is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|||
Lesser General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Lesser General Public |
|||
License along with the GNU C Library; see the file COPYING.LIB. If not, |
|||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|||
Boston, MA 02111-1307, USA. */ |
|||
|
|||
/* The kernel header pollutes the namespace with the NR_OPEN symbol
|
|||
and defines LINK_MAX although filesystems have different maxima. A |
|||
similar thing is true for OPEN_MAX: the limit can be changed at |
|||
runtime and therefore the macro must not be defined. Remove this |
|||
after including the header if necessary. */ |
|||
#ifndef NR_OPEN |
|||
# define __undef_NR_OPEN |
|||
#endif |
|||
#ifndef LINK_MAX |
|||
# define __undef_LINK_MAX |
|||
#endif |
|||
#ifndef OPEN_MAX |
|||
# define __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The kernel sources contain a file with all the needed information. */ |
|||
#include <linux/limits.h> |
|||
|
|||
/* Have to remove NR_OPEN? */ |
|||
#ifdef __undef_NR_OPEN |
|||
# undef NR_OPEN |
|||
# undef __undef_NR_OPEN |
|||
#endif |
|||
/* Have to remove LINK_MAX? */ |
|||
#ifdef __undef_LINK_MAX |
|||
# undef LINK_MAX |
|||
# undef __undef_LINK_MAX |
|||
#endif |
|||
/* Have to remove OPEN_MAX? */ |
|||
#ifdef __undef_OPEN_MAX |
|||
# undef OPEN_MAX |
|||
# undef __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The number of data keys per process. */ |
|||
#define _POSIX_THREAD_KEYS_MAX 128 |
|||
/* This is the value this implementation supports. */ |
|||
#define PTHREAD_KEYS_MAX 1024 |
|||
|
|||
/* Controlling the iterations of destructors for thread-specific data. */ |
|||
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 |
|||
/* Number of iterations this implementation does. */ |
|||
#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS |
|||
|
|||
/* The number of threads per process. */ |
|||
#define _POSIX_THREAD_THREADS_MAX 64 |
|||
/* This is the value this implementation supports. */ |
|||
#define PTHREAD_THREADS_MAX 16384 |
|||
|
|||
/* Maximum amount by which a process can descrease its asynchronous I/O
|
|||
priority level. */ |
|||
#define AIO_PRIO_DELTA_MAX 20 |
|||
|
|||
/* Minimum size for a thread. We are free to choose a reasonable value. */ |
|||
#define PTHREAD_STACK_MIN 196608 |
|||
|
|||
/* Maximum number of POSIX timers available. */ |
|||
#define TIMER_MAX 256 |
|||
|
|||
/* Maximum number of timer expiration overruns. */ |
|||
#define DELAYTIMER_MAX 2147483647 |
|||
|
|||
/* Maximum tty name length. */ |
|||
#define TTY_NAME_MAX 32 |
|||
|
|||
/* Maximum login name length. This is arbitrary. */ |
|||
#define LOGIN_NAME_MAX 256 |
|||
@ -0,0 +1,6 @@ |
|||
libpthread { |
|||
GLIBC_2.3.3 { |
|||
# Changed PTHREAD_STACK_MIN. |
|||
pthread_attr_setstack; pthread_attr_setstacksize; |
|||
} |
|||
} |
|||
@ -0,0 +1,86 @@ |
|||
/* Minimum guaranteed maximum values for system limits. Linux/SPARC version.
|
|||
Copyright (C) 1993-1998, 2000, 2002, 2003 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 |
|||
modify it under the terms of the GNU Lesser General Public License as |
|||
published by the Free Software Foundation; either version 2.1 of the |
|||
License, or (at your option) any later version. |
|||
|
|||
The GNU C Library is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|||
Lesser General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Lesser General Public |
|||
License along with the GNU C Library; see the file COPYING.LIB. If not, |
|||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|||
Boston, MA 02111-1307, USA. */ |
|||
|
|||
/* The kernel header pollutes the namespace with the NR_OPEN symbol
|
|||
and defines LINK_MAX although filesystems have different maxima. A |
|||
similar thing is true for OPEN_MAX: the limit can be changed at |
|||
runtime and therefore the macro must not be defined. Remove this |
|||
after including the header if necessary. */ |
|||
#ifndef NR_OPEN |
|||
# define __undef_NR_OPEN |
|||
#endif |
|||
#ifndef LINK_MAX |
|||
# define __undef_LINK_MAX |
|||
#endif |
|||
#ifndef OPEN_MAX |
|||
# define __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The kernel sources contain a file with all the needed information. */ |
|||
#include <linux/limits.h> |
|||
|
|||
/* Have to remove NR_OPEN? */ |
|||
#ifdef __undef_NR_OPEN |
|||
# undef NR_OPEN |
|||
# undef __undef_NR_OPEN |
|||
#endif |
|||
/* Have to remove LINK_MAX? */ |
|||
#ifdef __undef_LINK_MAX |
|||
# undef LINK_MAX |
|||
# undef __undef_LINK_MAX |
|||
#endif |
|||
/* Have to remove OPEN_MAX? */ |
|||
#ifdef __undef_OPEN_MAX |
|||
# undef OPEN_MAX |
|||
# undef __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The number of data keys per process. */ |
|||
#define _POSIX_THREAD_KEYS_MAX 128 |
|||
/* This is the value this implementation supports. */ |
|||
#define PTHREAD_KEYS_MAX 1024 |
|||
|
|||
/* Controlling the iterations of destructors for thread-specific data. */ |
|||
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 |
|||
/* Number of iterations this implementation does. */ |
|||
#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS |
|||
|
|||
/* The number of threads per process. */ |
|||
#define _POSIX_THREAD_THREADS_MAX 64 |
|||
/* This is the value this implementation supports. */ |
|||
#define PTHREAD_THREADS_MAX 16384 |
|||
|
|||
/* Maximum amount by which a process can descrease its asynchronous I/O
|
|||
priority level. */ |
|||
#define AIO_PRIO_DELTA_MAX 20 |
|||
|
|||
/* Minimum size for a thread. We are free to choose a reasonable value. */ |
|||
#define PTHREAD_STACK_MIN 24576 |
|||
|
|||
/* Maximum number of POSIX timers available. */ |
|||
#define TIMER_MAX 256 |
|||
|
|||
/* Maximum number of timer expiration overruns. */ |
|||
#define DELAYTIMER_MAX 2147483647 |
|||
|
|||
/* Maximum tty name length. */ |
|||
#define TTY_NAME_MAX 32 |
|||
|
|||
/* Maximum login name length. This is arbitrary. */ |
|||
#define LOGIN_NAME_MAX 256 |
|||
@ -0,0 +1,83 @@ |
|||
/* Minimum guaranteed maximum values for system limits. Linux/Alpha version.
|
|||
Copyright (C) 1993-1998, 2000, 2002, 2003 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 |
|||
modify it under the terms of the GNU Library General Public License as |
|||
published by the Free Software Foundation; either version 2 of the |
|||
License, or (at your option) any later version. |
|||
|
|||
The GNU C Library is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|||
Library General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Library General Public |
|||
License along with the GNU C Library; see the file COPYING.LIB. If not, |
|||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|||
Boston, MA 02111-1307, USA. */ |
|||
|
|||
/* The kernel header pollutes the namespace with the NR_OPEN symbol
|
|||
and defines LINK_MAX although filesystems have different maxima. A |
|||
similar thing is true for OPEN_MAX: the limit can be changed at |
|||
runtime and therefore the macro must not be defined. Remove this |
|||
after including the header if necessary. */ |
|||
#ifndef NR_OPEN |
|||
# define __undef_NR_OPEN |
|||
#endif |
|||
#ifndef LINK_MAX |
|||
# define __undef_LINK_MAX |
|||
#endif |
|||
#ifndef OPEN_MAX |
|||
# define __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The kernel sources contain a file with all the needed information. */ |
|||
#include <linux/limits.h> |
|||
|
|||
/* Have to remove NR_OPEN? */ |
|||
#ifdef __undef_NR_OPEN |
|||
# undef NR_OPEN |
|||
# undef __undef_NR_OPEN |
|||
#endif |
|||
/* Have to remove LINK_MAX? */ |
|||
#ifdef __undef_LINK_MAX |
|||
# undef LINK_MAX |
|||
# undef __undef_LINK_MAX |
|||
#endif |
|||
/* Have to remove OPEN_MAX? */ |
|||
#ifdef __undef_OPEN_MAX |
|||
# undef OPEN_MAX |
|||
# undef __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The number of data keys per process. */ |
|||
#define _POSIX_THREAD_KEYS_MAX 128 |
|||
/* This is the value this implementation supports. */ |
|||
#define PTHREAD_KEYS_MAX 1024 |
|||
|
|||
/* Controlling the iterations of destructors for thread-specific data. */ |
|||
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 |
|||
/* Number of iterations this implementation does. */ |
|||
#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS |
|||
|
|||
/* The number of threads per process. */ |
|||
#define _POSIX_THREAD_THREADS_MAX 64 |
|||
/* We have no predefined limit on the number of threads. */ |
|||
#undef PTHREAD_THREADS_MAX |
|||
|
|||
/* Maximum amount by which a process can descrease its asynchronous I/O
|
|||
priority level. */ |
|||
#define AIO_PRIO_DELTA_MAX 20 |
|||
|
|||
/* Minimum size for a thread. We are free to choose a reasonable value. */ |
|||
#define PTHREAD_STACK_MIN 24576 |
|||
|
|||
/* Maximum number of timer expiration overruns. */ |
|||
#define DELAYTIMER_MAX 2147483647 |
|||
|
|||
/* Maximum tty name length. */ |
|||
#define TTY_NAME_MAX 32 |
|||
|
|||
/* Maximum login name length. This is arbitrary. */ |
|||
#define LOGIN_NAME_MAX 256 |
|||
@ -0,0 +1,83 @@ |
|||
/* Minimum guaranteed maximum values for system limits. Linux/IA-64 version.
|
|||
Copyright (C) 1993-1998, 2000, 2002, 2003 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 |
|||
modify it under the terms of the GNU Library General Public License as |
|||
published by the Free Software Foundation; either version 2 of the |
|||
License, or (at your option) any later version. |
|||
|
|||
The GNU C Library is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|||
Library General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Library General Public |
|||
License along with the GNU C Library; see the file COPYING.LIB. If not, |
|||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|||
Boston, MA 02111-1307, USA. */ |
|||
|
|||
/* The kernel header pollutes the namespace with the NR_OPEN symbol
|
|||
and defines LINK_MAX although filesystems have different maxima. A |
|||
similar thing is true for OPEN_MAX: the limit can be changed at |
|||
runtime and therefore the macro must not be defined. Remove this |
|||
after including the header if necessary. */ |
|||
#ifndef NR_OPEN |
|||
# define __undef_NR_OPEN |
|||
#endif |
|||
#ifndef LINK_MAX |
|||
# define __undef_LINK_MAX |
|||
#endif |
|||
#ifndef OPEN_MAX |
|||
# define __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The kernel sources contain a file with all the needed information. */ |
|||
#include <linux/limits.h> |
|||
|
|||
/* Have to remove NR_OPEN? */ |
|||
#ifdef __undef_NR_OPEN |
|||
# undef NR_OPEN |
|||
# undef __undef_NR_OPEN |
|||
#endif |
|||
/* Have to remove LINK_MAX? */ |
|||
#ifdef __undef_LINK_MAX |
|||
# undef LINK_MAX |
|||
# undef __undef_LINK_MAX |
|||
#endif |
|||
/* Have to remove OPEN_MAX? */ |
|||
#ifdef __undef_OPEN_MAX |
|||
# undef OPEN_MAX |
|||
# undef __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The number of data keys per process. */ |
|||
#define _POSIX_THREAD_KEYS_MAX 128 |
|||
/* This is the value this implementation supports. */ |
|||
#define PTHREAD_KEYS_MAX 1024 |
|||
|
|||
/* Controlling the iterations of destructors for thread-specific data. */ |
|||
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 |
|||
/* Number of iterations this implementation does. */ |
|||
#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS |
|||
|
|||
/* The number of threads per process. */ |
|||
#define _POSIX_THREAD_THREADS_MAX 64 |
|||
/* We have no predefined limit on the number of threads. */ |
|||
#undef PTHREAD_THREADS_MAX |
|||
|
|||
/* Maximum amount by which a process can descrease its asynchronous I/O
|
|||
priority level. */ |
|||
#define AIO_PRIO_DELTA_MAX 20 |
|||
|
|||
/* Minimum size for a thread. We are free to choose a reasonable value. */ |
|||
#define PTHREAD_STACK_MIN 196608 |
|||
|
|||
/* Maximum number of timer expiration overruns. */ |
|||
#define DELAYTIMER_MAX 2147483647 |
|||
|
|||
/* Maximum tty name length. */ |
|||
#define TTY_NAME_MAX 32 |
|||
|
|||
/* Maximum login name length. This is arbitrary. */ |
|||
#define LOGIN_NAME_MAX 256 |
|||
@ -0,0 +1,6 @@ |
|||
libpthread { |
|||
GLIBC_2.3.3 { |
|||
# Changed PTHREAD_STACK_MIN. |
|||
pthread_attr_setstack; pthread_attr_setstacksize; |
|||
} |
|||
} |
|||
@ -0,0 +1,83 @@ |
|||
/* Minimum guaranteed maximum values for system limits. Linux/SPARC version.
|
|||
Copyright (C) 1993-1998, 2000, 2002, 2003 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 |
|||
modify it under the terms of the GNU Library General Public License as |
|||
published by the Free Software Foundation; either version 2 of the |
|||
License, or (at your option) any later version. |
|||
|
|||
The GNU C Library is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|||
Library General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Library General Public |
|||
License along with the GNU C Library; see the file COPYING.LIB. If not, |
|||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|||
Boston, MA 02111-1307, USA. */ |
|||
|
|||
/* The kernel header pollutes the namespace with the NR_OPEN symbol
|
|||
and defines LINK_MAX although filesystems have different maxima. A |
|||
similar thing is true for OPEN_MAX: the limit can be changed at |
|||
runtime and therefore the macro must not be defined. Remove this |
|||
after including the header if necessary. */ |
|||
#ifndef NR_OPEN |
|||
# define __undef_NR_OPEN |
|||
#endif |
|||
#ifndef LINK_MAX |
|||
# define __undef_LINK_MAX |
|||
#endif |
|||
#ifndef OPEN_MAX |
|||
# define __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The kernel sources contain a file with all the needed information. */ |
|||
#include <linux/limits.h> |
|||
|
|||
/* Have to remove NR_OPEN? */ |
|||
#ifdef __undef_NR_OPEN |
|||
# undef NR_OPEN |
|||
# undef __undef_NR_OPEN |
|||
#endif |
|||
/* Have to remove LINK_MAX? */ |
|||
#ifdef __undef_LINK_MAX |
|||
# undef LINK_MAX |
|||
# undef __undef_LINK_MAX |
|||
#endif |
|||
/* Have to remove OPEN_MAX? */ |
|||
#ifdef __undef_OPEN_MAX |
|||
# undef OPEN_MAX |
|||
# undef __undef_OPEN_MAX |
|||
#endif |
|||
|
|||
/* The number of data keys per process. */ |
|||
#define _POSIX_THREAD_KEYS_MAX 128 |
|||
/* This is the value this implementation supports. */ |
|||
#define PTHREAD_KEYS_MAX 1024 |
|||
|
|||
/* Controlling the iterations of destructors for thread-specific data. */ |
|||
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 |
|||
/* Number of iterations this implementation does. */ |
|||
#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS |
|||
|
|||
/* The number of threads per process. */ |
|||
#define _POSIX_THREAD_THREADS_MAX 64 |
|||
/* We have no predefined limit on the number of threads. */ |
|||
#undef PTHREAD_THREADS_MAX |
|||
|
|||
/* Maximum amount by which a process can descrease its asynchronous I/O
|
|||
priority level. */ |
|||
#define AIO_PRIO_DELTA_MAX 20 |
|||
|
|||
/* Minimum size for a thread. We are free to choose a reasonable value. */ |
|||
#define PTHREAD_STACK_MIN 24576 |
|||
|
|||
/* Maximum number of timer expiration overruns. */ |
|||
#define DELAYTIMER_MAX 2147483647 |
|||
|
|||
/* Maximum tty name length. */ |
|||
#define TTY_NAME_MAX 32 |
|||
|
|||
/* Maximum login name length. This is arbitrary. */ |
|||
#define LOGIN_NAME_MAX 256 |
|||
@ -0,0 +1,156 @@ |
|||
/* Copyright (C) 2003 Free Software Foundation, Inc.
|
|||
This file is part of the GNU C Library. |
|||
Contributed by Jakub Jelinek <jakub@redhat.com>, 2003. |
|||
|
|||
The GNU C Library is free software; you can redistribute it and/or |
|||
modify it under the terms of the GNU Lesser General Public |
|||
License as published by the Free Software Foundation; either |
|||
version 2.1 of the License, or (at your option) any later version. |
|||
|
|||
The GNU C Library is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|||
Lesser General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Lesser General Public |
|||
License along with the GNU C Library; if not, write to the Free |
|||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
|||
02111-1307 USA. */ |
|||
|
|||
/* Test whether it is possible to create a thread with PTHREAD_STACK_MIN
|
|||
stack size. */ |
|||
|
|||
#include <pthread.h> |
|||
#include <stdlib.h> |
|||
#include <stdio.h> |
|||
|
|||
int seen; |
|||
|
|||
void *tf (void *p) |
|||
{ |
|||
++seen; |
|||
return NULL; |
|||
} |
|||
|
|||
static int |
|||
do_test (void) |
|||
{ |
|||
pthread_attr_t attr; |
|||
pthread_attr_init (&attr); |
|||
|
|||
int result = 0; |
|||
int res = pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN); |
|||
if (res) |
|||
{ |
|||
printf ("pthread_attr_setstacksize failed %d\n", res); |
|||
result = 1; |
|||
} |
|||
|
|||
/* Create the thread. */ |
|||
pthread_t th; |
|||
res = pthread_create (&th, &attr, tf, NULL); |
|||
if (res) |
|||
{ |
|||
printf ("pthread_create failed %d\n", res); |
|||
result = 1; |
|||
} |
|||
else |
|||
{ |
|||
res = pthread_join (th, NULL); |
|||
if (res) |
|||
{ |
|||
printf ("pthread_join failed %d\n", res); |
|||
result = 1; |
|||
} |
|||
} |
|||
|
|||
if (seen != 1) |
|||
{ |
|||
printf ("seen %d != 1\n", seen); |
|||
result = 1; |
|||
} |
|||
|
|||
return result; |
|||
} |
|||
|
|||
|
|||
#define TEST_FUNCTION do_test () |
|||
#include "../test-skeleton.c" |
|||
/* Copyright (C) 2003 Free Software Foundation, Inc.
|
|||
This file is part of the GNU C Library. |
|||
Contributed by Jakub Jelinek <jakub@redhat.com>, 2003. |
|||
|
|||
The GNU C Library is free software; you can redistribute it and/or |
|||
modify it under the terms of the GNU Lesser General Public |
|||
License as published by the Free Software Foundation; either |
|||
version 2.1 of the License, or (at your option) any later version. |
|||
|
|||
The GNU C Library is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|||
Lesser General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU Lesser General Public |
|||
License along with the GNU C Library; if not, write to the Free |
|||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
|||
02111-1307 USA. */ |
|||
|
|||
/* Test whether it is possible to create a thread with PTHREAD_STACK_MIN
|
|||
stack size. */ |
|||
|
|||
#include <pthread.h> |
|||
#include <stdlib.h> |
|||
#include <stdio.h> |
|||
|
|||
int seen; |
|||
|
|||
void *tf (void *p) |
|||
{ |
|||
++seen; |
|||
return NULL; |
|||
} |
|||
|
|||
int |
|||
do_test (void) |
|||
{ |
|||
pthread_attr_t attr; |
|||
pthread_attr_init (&attr); |
|||
|
|||
int result = 0; |
|||
int res = pthread_attr_setstacksize (&attr, PTHREAD_STACK_MIN); |
|||
if (res) |
|||
{ |
|||
printf ("pthread_attr_setstacksize failed %d\n", res); |
|||
result = 1; |
|||
} |
|||
|
|||
/* Create the thread. */ |
|||
pthread_t th; |
|||
res = pthread_create (&th, &attr, tf, NULL); |
|||
if (res) |
|||
{ |
|||
printf ("pthread_create failed %d\n", res); |
|||
result = 1; |
|||
} |
|||
else |
|||
{ |
|||
res = pthread_join (th, NULL); |
|||
if (res) |
|||
{ |
|||
printf ("pthread_join failed %d\n", res); |
|||
result = 1; |
|||
} |
|||
} |
|||
|
|||
if (seen != 1) |
|||
{ |
|||
printf ("seen %d != 1\n", seen); |
|||
result = 1; |
|||
} |
|||
|
|||
return result; |
|||
} |
|||
|
|||
|
|||
#define TEST_FUNCTION do_test () |
|||
#include "../test-skeleton.c" |
|||
@ -1,16 +1,5 @@ |
|||
# File name Caller Syscall name # args Strong name Weak names |
|||
|
|||
s_getgroups getgroups getgroups 2 __syscall_getgroups |
|||
s_llseek llseek _llseek 5 __syscall__llseek |
|||
s_setfsgid setfsgid setfsgid 1 __syscall_setfsgid |
|||
s_setfsuid setfsuid setfsuid 1 __syscall_setfsuid |
|||
s_setgid setgid setgid 1 __syscall_setgid |
|||
s_setgroups setgroups setgroups 2 __syscall_setgroups |
|||
s_setregid setregid setregid 2 __syscall_setregid |
|||
s_setresgid setresgid setresgid 3 __syscall_setresgid |
|||
s_setresuid setresuid setresuid 3 __syscall_setresuid |
|||
s_setreuid setreuid setreuid 2 __syscall_setreuid |
|||
s_setuid setuid setuid 1 __syscall_setuid |
|||
syscall - syscall 7 syscall |
|||
oldgetrlimit EXTRA getrlimit i:ip __old_getrlimit getrlimit@GLIBC_2.0 |
|||
oldsetrlimit EXTRA setrlimit i:ip __old_setrlimit setrlimit@GLIBC_2.0 |
|||
|
|||
@ -1,4 +0,0 @@ |
|||
ifeq ($(subdir),signal) |
|||
sysdep_routines += rt_sigsuspend rt_sigprocmask rt_sigtimedwait \
|
|||
rt_sigqueueinfo rt_sigaction rt_sigpending |
|||
endif |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue