mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 08:11:08 +00:00
Update.
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.
This commit is contained in:
parent
e29ef64706
commit
4a244f0dce
151
ChangeLog
151
ChangeLog
@ -1,5 +1,156 @@
|
||||
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.
|
||||
|
||||
2003-09-02 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* stdio-common/Makefile (CFLAGS-vprintf.c): Add -fexceptions.
|
||||
|
||||
* intl/loadmsgcat.c: For _LIBC, call not cancelable versions of
|
||||
open, close, and read.
|
||||
|
||||
* sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Also define
|
||||
*_nocancel name.
|
||||
|
||||
|
@ -1,5 +1,20 @@
|
||||
2003-09-02 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file.
|
||||
* sysdeps/unix/sysv/linux/alpha/Versions: New file.
|
||||
* sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file.
|
||||
* sysdeps/unix/sysv/linux/ia64/Versions: New file.
|
||||
* sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file.
|
||||
* sysdeps/unix/sysv/linux/sparc/Versions: New file.
|
||||
* attr.c (__old_pthread_attr_setstacksize,
|
||||
__old_pthread_attr_setstack): New functions.
|
||||
(pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export
|
||||
as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1.
|
||||
(pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export
|
||||
as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2.
|
||||
* tststack.c: Include limits.h and sys/param.h.
|
||||
(main): Set size to MAX (70 * 1024, PTHREAD_STACK_MIN).
|
||||
|
||||
* barrier.c (__pthread_barrierattr_getpshared): Always
|
||||
return PTHREAD_PROCESS_PRIVATE.
|
||||
(pthread_barrierattr_setpshared): Return EINVAL if pshared
|
||||
|
@ -220,7 +220,44 @@ int __pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
|
||||
attr->__stacksize = stacksize;
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if PTHREAD_STACK_MIN == 16384
|
||||
weak_alias (__pthread_attr_setstacksize, pthread_attr_setstacksize)
|
||||
#else
|
||||
versioned_symbol (libpthread, __pthread_attr_setstacksize,
|
||||
pthread_attr_setstacksize, GLIBC_2_3_3);
|
||||
|
||||
# if SHLIB_COMPAT(libpthread, GLIBC_2_1, GLIBC_2_3_3)
|
||||
|
||||
int __old_pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize)
|
||||
{
|
||||
# ifdef FLOATING_STACKS
|
||||
/* We have to check against the maximum allowed stack size. This is no
|
||||
problem if the manager is already started and we determined it. If
|
||||
this hasn't happened, we have to find the limit outself. */
|
||||
if (__pthread_max_stacksize == 0)
|
||||
__pthread_init_max_stacksize ();
|
||||
|
||||
if (stacksize > __pthread_max_stacksize)
|
||||
return EINVAL;
|
||||
# else
|
||||
/* We have a fixed size limit. */
|
||||
if (stacksize > STACK_SIZE)
|
||||
return EINVAL;
|
||||
# endif
|
||||
|
||||
/* We don't accept value smaller than old PTHREAD_STACK_MIN. */
|
||||
if (stacksize < 16384)
|
||||
return EINVAL;
|
||||
|
||||
attr->__stacksize = stacksize;
|
||||
return 0;
|
||||
}
|
||||
compat_symbol (libpthread, __old_pthread_attr_setstacksize,
|
||||
pthread_attr_setstacksize, GLIBC_2_1);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
int __pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize)
|
||||
{
|
||||
@ -251,7 +288,41 @@ int __pthread_attr_setstack (pthread_attr_t *attr, void *stackaddr,
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
#if PTHREAD_STACK_MIN == 16384
|
||||
weak_alias (__pthread_attr_setstack, pthread_attr_setstack)
|
||||
#else
|
||||
versioned_symbol (libpthread, __pthread_attr_setstack, pthread_attr_setstack,
|
||||
GLIBC_2_3_3);
|
||||
# if SHLIB_COMPAT(libpthread, GLIBC_2_2, GLIBC_2_3_3)
|
||||
int __old_pthread_attr_setstack (pthread_attr_t *attr, void *stackaddr,
|
||||
size_t stacksize)
|
||||
{
|
||||
int err;
|
||||
|
||||
if ((((uintptr_t) stackaddr)
|
||||
& (__alignof__ (struct _pthread_descr_struct) - 1)) != 0)
|
||||
err = EINVAL;
|
||||
else
|
||||
err = __old_pthread_attr_setstacksize (attr, stacksize);
|
||||
if (err == 0)
|
||||
{
|
||||
# ifndef _STACK_GROWS_UP
|
||||
attr->__stackaddr = (char *) stackaddr + stacksize;
|
||||
# else
|
||||
attr->__stackaddr = stackaddr;
|
||||
# endif
|
||||
attr->__stackaddr_set = 1;
|
||||
}
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
compat_symbol (libpthread, __old_pthread_attr_setstack, pthread_attr_setstack,
|
||||
GLIBC_2_2);
|
||||
|
||||
# endif
|
||||
#endif
|
||||
|
||||
int __pthread_attr_getstack (const pthread_attr_t *attr, void **stackaddr,
|
||||
size_t *stacksize)
|
||||
|
6
linuxthreads/sysdeps/unix/sysv/linux/alpha/Versions
Normal file
6
linuxthreads/sysdeps/unix/sysv/linux/alpha/Versions
Normal file
@ -0,0 +1,6 @@
|
||||
libpthread {
|
||||
GLIBC_2.3.3 {
|
||||
# Changed PTHREAD_STACK_MIN.
|
||||
pthread_attr_setstack; pthread_attr_setstacksize;
|
||||
}
|
||||
}
|
86
linuxthreads/sysdeps/unix/sysv/linux/alpha/bits/local_lim.h
Normal file
86
linuxthreads/sysdeps/unix/sysv/linux/alpha/bits/local_lim.h
Normal file
@ -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
|
6
linuxthreads/sysdeps/unix/sysv/linux/ia64/Versions
Normal file
6
linuxthreads/sysdeps/unix/sysv/linux/ia64/Versions
Normal file
@ -0,0 +1,6 @@
|
||||
libpthread {
|
||||
GLIBC_2.3.3 {
|
||||
# Changed PTHREAD_STACK_MIN.
|
||||
pthread_attr_setstack; pthread_attr_setstacksize;
|
||||
}
|
||||
}
|
86
linuxthreads/sysdeps/unix/sysv/linux/ia64/bits/local_lim.h
Normal file
86
linuxthreads/sysdeps/unix/sysv/linux/ia64/bits/local_lim.h
Normal file
@ -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
|
6
linuxthreads/sysdeps/unix/sysv/linux/sparc/Versions
Normal file
6
linuxthreads/sysdeps/unix/sysv/linux/sparc/Versions
Normal file
@ -0,0 +1,6 @@
|
||||
libpthread {
|
||||
GLIBC_2.3.3 {
|
||||
# Changed PTHREAD_STACK_MIN.
|
||||
pthread_attr_setstack; pthread_attr_setstacksize;
|
||||
}
|
||||
}
|
86
linuxthreads/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h
Normal file
86
linuxthreads/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h
Normal file
@ -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
|
@ -1,5 +1,5 @@
|
||||
/* Tests for variable stack size handling.
|
||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000, 2003 Free Software Foundation, Inc.
|
||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2000.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -20,6 +20,8 @@
|
||||
#include <pthread.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
#include <sys/param.h>
|
||||
|
||||
static void *f1 (void *);
|
||||
static void *f2 (void *);
|
||||
@ -34,7 +36,7 @@ main (void)
|
||||
void *res2;
|
||||
|
||||
pthread_attr_init (&attr);
|
||||
if (pthread_attr_setstacksize (&attr, 70*1024) != 0)
|
||||
if (pthread_attr_setstacksize (&attr, MAX (70*1024, PTHREAD_STACK_MIN)) != 0)
|
||||
{
|
||||
puts ("invalid stack size");
|
||||
return 1;
|
||||
|
@ -1,5 +1,24 @@
|
||||
2003-09-02 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: New file.
|
||||
* sysdeps/unix/sysv/linux/ia64/Versions (libpthread): Export
|
||||
pthread_attr_setstack and pthread_attr_setstacksize @@GLIBC_2.3.3.
|
||||
* sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: New file.
|
||||
* sysdeps/unix/sysv/linux/alpha/Versions: New file.
|
||||
* sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: New file.
|
||||
* sysdeps/unix/sysv/linux/sparc/Versions: New file.
|
||||
* pthread_attr_setstack.c (__old_pthread_attr_setstack): New function.
|
||||
(pthread_attr_setstack): If PTHREAD_STACK_MIN != 16384, export
|
||||
as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.2.
|
||||
* pthread_attr_setstacksize.c (__old_pthread_attr_setstacksize): New
|
||||
function.
|
||||
(pthread_attr_setstacksize): If PTHREAD_STACK_MIN != 16384, export
|
||||
as @@GLIBC_2.3.2 and also export compatibility @GLIBC_2.1.
|
||||
* Makefile (tests): Add tst-stack2.
|
||||
* tst-stack2.c: New test.
|
||||
* tst-stack1.c: Include limits.h and sys/param.h.
|
||||
(do_test): Set size to MAX (4 * getpagesize (), PTHREAD_STACK_MIN).
|
||||
|
||||
* pthread_condattr_setpshared.c: Include errno.h.
|
||||
(pthread_condattr_setpshared): Return EINVAL if pshared
|
||||
is neither PTHREAD_PROCESS_PRIVATE nor PTHREAD_PROCESS_SHARED.
|
||||
@ -25,7 +44,6 @@
|
||||
* sysdeps/unix/sysv/linux/powerpc/not-cancel.h: New file.
|
||||
* sysdeps/unix/sysv/linux/sparc/not-cancel.h: New file.
|
||||
|
||||
|
||||
* sysdeps/unix/sysv/linux/x86_64/not-cancel.h: Fix a typo.
|
||||
|
||||
2003-09-02 Ulrich Drepper <drepper@redhat.com>
|
||||
|
@ -223,7 +223,7 @@ tests = tst-attr1 tst-attr2 \
|
||||
tst-exec1 tst-exec2 tst-exec3 tst-exec4 \
|
||||
tst-exit1 \
|
||||
tst-stdio1 tst-stdio2 \
|
||||
tst-stack1 \
|
||||
tst-stack1 tst-stack2 \
|
||||
tst-unload \
|
||||
tst-dlsym1 \
|
||||
tst-sysconf \
|
||||
|
@ -48,4 +48,44 @@ __pthread_attr_setstack (attr, stackaddr, stacksize)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if PTHREAD_STACK_MIN == 16384
|
||||
strong_alias (__pthread_attr_setstack, pthread_attr_setstack)
|
||||
#else
|
||||
# include <shlib-compat.h>
|
||||
versioned_symbol (libpthread, __pthread_attr_setstack, pthread_attr_setstack,
|
||||
GLIBC_2_3_3);
|
||||
|
||||
# if SHLIB_COMPAT(libpthread, GLIBC_2_2, GLIBC_2_3_3)
|
||||
|
||||
int
|
||||
__old_pthread_attr_setstack (attr, stackaddr, stacksize)
|
||||
pthread_attr_t *attr;
|
||||
void *stackaddr;
|
||||
size_t stacksize;
|
||||
{
|
||||
struct pthread_attr *iattr;
|
||||
|
||||
assert (sizeof (*attr) >= sizeof (struct pthread_attr));
|
||||
iattr = (struct pthread_attr *) attr;
|
||||
|
||||
/* Catch invalid sizes. */
|
||||
if (stacksize < 16384)
|
||||
return EINVAL;
|
||||
|
||||
# ifdef EXTRA_PARAM_CHECKS
|
||||
EXTRA_PARAM_CHECKS;
|
||||
# endif
|
||||
|
||||
iattr->stacksize = stacksize;
|
||||
iattr->stackaddr = (char *) stackaddr + stacksize;
|
||||
iattr->flags |= ATTR_FLAG_STACKADDR;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
compat_symbol (libpthread, __old_pthread_attr_setstack, pthread_attr_setstack,
|
||||
GLIBC_2_2);
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||
|
||||
@ -41,4 +41,37 @@ __pthread_attr_setstacksize (attr, stacksize)
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if PTHREAD_STACK_MIN == 16384
|
||||
strong_alias (__pthread_attr_setstacksize, pthread_attr_setstacksize)
|
||||
#else
|
||||
# include <shlib-compat.h>
|
||||
versioned_symbol (libpthread, __pthread_attr_setstacksize,
|
||||
pthread_attr_setstacksize, GLIBC_2_3_3);
|
||||
|
||||
# if SHLIB_COMPAT(libpthread, GLIBC_2_1, GLIBC_2_3_3)
|
||||
|
||||
int
|
||||
__old_pthread_attr_setstacksize (attr, stacksize)
|
||||
pthread_attr_t *attr;
|
||||
size_t stacksize;
|
||||
{
|
||||
struct pthread_attr *iattr;
|
||||
|
||||
assert (sizeof (*attr) >= sizeof (struct pthread_attr));
|
||||
iattr = (struct pthread_attr *) attr;
|
||||
|
||||
/* Catch invalid sizes. */
|
||||
if (stacksize < 16384)
|
||||
return EINVAL;
|
||||
|
||||
iattr->stacksize = stacksize;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
compat_symbol (libpthread, __old_pthread_attr_setstacksize,
|
||||
pthread_attr_setstacksize, GLIBC_2_1);
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
@ -1,3 +1,9 @@
|
||||
libpthread {
|
||||
GLIBC_2.3.3 {
|
||||
# Changed PTHREAD_STACK_MIN.
|
||||
pthread_attr_setstack; pthread_attr_setstacksize;
|
||||
}
|
||||
}
|
||||
librt {
|
||||
GLIBC_2.3.3 {
|
||||
# Changed timer_t.
|
||||
|
83
nptl/sysdeps/unix/sysv/linux/alpha/bits/local_lim.h
Normal file
83
nptl/sysdeps/unix/sysv/linux/alpha/bits/local_lim.h
Normal file
@ -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
|
@ -1,3 +1,9 @@
|
||||
libpthread {
|
||||
GLIBC_2.3.3 {
|
||||
# Changed PTHREAD_STACK_MIN.
|
||||
pthread_attr_setstack; pthread_attr_setstacksize;
|
||||
}
|
||||
}
|
||||
librt {
|
||||
GLIBC_2.3.3 {
|
||||
# Changed timer_t.
|
||||
|
83
nptl/sysdeps/unix/sysv/linux/ia64/bits/local_lim.h
Normal file
83
nptl/sysdeps/unix/sysv/linux/ia64/bits/local_lim.h
Normal file
@ -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
|
6
nptl/sysdeps/unix/sysv/linux/sparc/Versions
Normal file
6
nptl/sysdeps/unix/sysv/linux/sparc/Versions
Normal file
@ -0,0 +1,6 @@
|
||||
libpthread {
|
||||
GLIBC_2.3.3 {
|
||||
# Changed PTHREAD_STACK_MIN.
|
||||
pthread_attr_setstack; pthread_attr_setstacksize;
|
||||
}
|
||||
}
|
83
nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h
Normal file
83
nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h
Normal file
@ -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
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||
|
||||
@ -17,9 +17,11 @@
|
||||
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
||||
02111-1307 USA. */
|
||||
|
||||
#include <limits.h>
|
||||
#include <pthread.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/param.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
@ -74,7 +76,7 @@ do_test (void)
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
size = 4 * getpagesize ();
|
||||
size = MAX (4 * getpagesize (), PTHREAD_STACK_MIN);
|
||||
if (posix_memalign (&stack, getpagesize (), size) != 0)
|
||||
{
|
||||
puts ("out of memory while allocating the stack memory");
|
||||
|
156
nptl/tst-stack2.c
Normal file
156
nptl/tst-stack2.c
Normal file
@ -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,4 +1,4 @@
|
||||
/* Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 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
|
||||
@ -22,9 +22,6 @@
|
||||
#include <sysdep.h>
|
||||
#include <abort-instr.h>
|
||||
|
||||
extern void __syscall_exit_group (int status);
|
||||
extern void __syscall_exit (int status);
|
||||
|
||||
|
||||
void
|
||||
_exit (status)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1997, 1998, 1999, 2000, 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
|
||||
@ -28,8 +28,6 @@
|
||||
#include "aio_misc.h"
|
||||
|
||||
#ifdef __NR_rt_sigqueueinfo
|
||||
extern int __syscall_rt_sigqueueinfo (int, int, siginfo_t *__unbounded);
|
||||
|
||||
|
||||
/* Return any pending signal or wait for one for the given time. */
|
||||
int
|
||||
|
@ -20,6 +20,5 @@ CFLAGS-ioperm.c = -Wa,-mev6
|
||||
endif
|
||||
|
||||
ifeq ($(subdir),signal)
|
||||
sysdep_routines += rt_sigsuspend rt_sigprocmask rt_sigtimedwait \
|
||||
rt_sigqueueinfo rt_sigaction rt_sigpending
|
||||
sysdep_routines += rt_sigaction
|
||||
endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2001, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2001
|
||||
|
||||
@ -25,9 +25,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <bp-checks.h>
|
||||
|
||||
extern int __syscall_gethostname (char *name, size_t len);
|
||||
|
||||
|
||||
int
|
||||
__gethostname (char *name, size_t len)
|
||||
{
|
||||
|
@ -32,15 +32,7 @@ struct __old_ipc_perm
|
||||
};
|
||||
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
/* The actual system call: all functions are multiplexed by this. */
|
||||
extern int __syscall_ipc (int __call, int __first, int __second,
|
||||
int __third, void *__ptr);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
/* The codes for the functions to use the multiplexer `__syscall_ipc'. */
|
||||
/* The codes for the functions to use the ipc syscall multiplexer. */
|
||||
#define IPCOP_semop 1
|
||||
#define IPCOP_semget 2
|
||||
#define IPCOP_semctl 3
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995, 1997, 1998, 2000, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
|
||||
|
||||
@ -45,8 +45,6 @@ struct __old_msqid_ds
|
||||
__ipc_pid_t msg_lrpid; /* pid of last msgrcv() */
|
||||
};
|
||||
|
||||
extern int __syscall_msgctl (int, int, void *);
|
||||
|
||||
/* Allows to control internal state and destruction of message queue
|
||||
objects. */
|
||||
int __new_msgctl (int, int, struct msqid_ds *);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995, 1997, 1998, 2000, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
|
||||
|
||||
@ -52,8 +52,6 @@ union semun
|
||||
#include <bp-checks.h>
|
||||
#include <bp-semctl.h> /* definition of CHECK_SEMCTL needs union semum */
|
||||
|
||||
extern int __syscall_semctl (int, int, int, void *);
|
||||
|
||||
/* Return identifier for array of NSEMS semaphores associated with
|
||||
KEY. */
|
||||
int __new_semctl (int semid, int semnum, int cmd, ...);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995, 1997, 1998, 2000, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
|
||||
|
||||
@ -53,8 +53,6 @@ struct __old_shminfo
|
||||
int shmall;
|
||||
};
|
||||
|
||||
extern int __syscall_shmctl (int, int, void *);
|
||||
|
||||
/* Provide operations to control over shared memory segments. */
|
||||
int __new_shmctl (int, int, struct shmid_ds *);
|
||||
|
||||
|
@ -30,4 +30,7 @@
|
||||
? __syscall_rt_sigaction(args) \
|
||||
: INLINE_SYSCALL1(name, nr, args))
|
||||
|
||||
extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded,
|
||||
struct kernel_sigaction *__unbounded, size_t);
|
||||
|
||||
#include <sysdeps/unix/sysv/linux/sigaction.c>
|
||||
|
@ -4,9 +4,7 @@ sysdep_headers += sys/elf.h sys/io.h
|
||||
endif
|
||||
|
||||
ifeq ($(subdir),signal)
|
||||
sysdep_routines += rt_sigsuspend rt_sigprocmask rt_sigtimedwait \
|
||||
rt_sigqueueinfo rt_sigaction rt_sigpending \
|
||||
sigrestorer
|
||||
sysdep_routines += sigrestorer
|
||||
endif
|
||||
|
||||
ifeq ($(subdir),resource)
|
||||
|
@ -29,11 +29,6 @@
|
||||
translate it here. */
|
||||
#include <kernel_sigaction.h>
|
||||
|
||||
extern int __syscall_sigaction (int, const struct old_kernel_sigaction *__unbounded,
|
||||
struct old_kernel_sigaction *__unbounded);
|
||||
extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded,
|
||||
struct kernel_sigaction *__unbounded, size_t);
|
||||
|
||||
/* The variable is shared between all wrappers around signal handling
|
||||
functions which have RT equivalents. */
|
||||
int __libc_missing_rt_sigs;
|
||||
|
@ -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
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1999, 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
|
||||
@ -24,11 +24,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <bp-checks.h>
|
||||
|
||||
extern int __syscall_execve (const char *__unbounded file,
|
||||
char *__unbounded const *__unbounded argv,
|
||||
char *__unbounded const *__unbounded envp);
|
||||
|
||||
|
||||
int
|
||||
__execve (file, argv, envp)
|
||||
const char *file;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1997,1998,1999,2000,2001,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
|
||||
@ -32,9 +32,6 @@
|
||||
extern int __have_no_truncate64;
|
||||
#endif
|
||||
|
||||
/* The order of hight, low depends on endianness. */
|
||||
extern int __syscall_ftruncate64 (int fd, int high_length, int low_length);
|
||||
|
||||
|
||||
/* Truncate the file FD refers to to LENGTH bytes. */
|
||||
int
|
||||
|
@ -32,10 +32,7 @@
|
||||
# include <xstatconv.h>
|
||||
#endif
|
||||
|
||||
extern int __syscall_fstat (int, struct kernel_stat *__unbounded);
|
||||
|
||||
#ifdef __NR_fstat64
|
||||
extern int __syscall_fstat64 (int, struct stat64 *__unbounded);
|
||||
# if __ASSUME_STAT64_SYSCALL == 0
|
||||
/* The variable is shared between all wrappers around *stat64 calls. */
|
||||
extern int __have_no_stat64;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2001 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2001, 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
|
||||
@ -28,8 +28,6 @@
|
||||
#include "gai_misc.h"
|
||||
|
||||
#ifdef __NR_rt_sigqueueinfo
|
||||
extern int __syscall_rt_sigqueueinfo (int, int, siginfo_t *__unbounded);
|
||||
|
||||
|
||||
/* Return any pending signal or wait for one for the given time. */
|
||||
int
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Determine current working directory. Linux version.
|
||||
Copyright (C) 1997, 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 1997,1998,1999,2000,2002,2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
||||
|
||||
@ -35,7 +35,6 @@
|
||||
/* Kernel 2.1.92 introduced a third way to get the current working
|
||||
directory: a syscall. We've got to be careful that even when
|
||||
compiling under 2.1.92+ the libc still runs under older kernels. */
|
||||
extern int __syscall_getcwd (char *__unbounded buf, unsigned long size);
|
||||
# define no_syscall_getcwd 0
|
||||
# define have_new_dcache 1
|
||||
/* This is a trick since we don't define generic_getcwd. */
|
||||
@ -52,7 +51,6 @@ static char *generic_getcwd (char *buf, size_t size) internal_function;
|
||||
/* Kernel 2.1.92 introduced a third way to get the current working
|
||||
directory: a syscall. We've got to be careful that even when
|
||||
compiling under 2.1.92+ the libc still runs under older kernels. */
|
||||
extern int __syscall_getcwd (char *__unbounded buf, unsigned long size);
|
||||
static int no_syscall_getcwd;
|
||||
static int have_new_dcache;
|
||||
# else
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1993, 1995-2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1993, 1995-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
|
||||
@ -48,9 +48,6 @@ extern int __have_no_getdents64;
|
||||
|
||||
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
|
||||
|
||||
extern int __syscall_getdents (int fd, char *__unbounded buf, unsigned int nbytes);
|
||||
extern int __syscall_getdents64 (int fd, char *__unbounded buf, unsigned int nbytes);
|
||||
|
||||
/* For Linux we need a special version of this file since the
|
||||
definition of `struct dirent' is not the same for the kernel and
|
||||
the libc. There is one additional field which might be introduced
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* getpriority for Linux.
|
||||
Copyright (C) 1996,98,2000,02 Free Software Foundation, Inc.
|
||||
Copyright (C) 1996,98,2000,02,03 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
|
||||
@ -23,9 +23,7 @@
|
||||
#include <sysdep.h>
|
||||
#include <sys/syscall.h>
|
||||
|
||||
extern int __syscall_getpriority (int, id_t);
|
||||
|
||||
/* The return value of __syscall_getpriority is biased by this value
|
||||
/* The return value of getpriority syscall is biased by this value
|
||||
to avoid returning negative values. */
|
||||
#define PZERO 20
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1998, 1999, 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
|
||||
@ -37,9 +37,6 @@
|
||||
has therefore to route calls to chown to the old chown function.
|
||||
*/
|
||||
|
||||
extern int __syscall_chown (const char *__file,
|
||||
__kernel_uid_t __owner, __kernel_gid_t __group);
|
||||
|
||||
extern int __chown_is_lchown (const char *__file, uid_t __owner,
|
||||
gid_t __group);
|
||||
extern int __real_chown (const char *__file, uid_t __owner, gid_t __group);
|
||||
@ -49,8 +46,6 @@ extern int __real_chown (const char *__file, uid_t __owner, gid_t __group);
|
||||
/* Running under Linux > 2.1.80. */
|
||||
|
||||
# ifdef __NR_chown32
|
||||
extern int __syscall_chown32 (const char *__file,
|
||||
__kernel_uid32_t owner, __kernel_gid32_t group);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2000, 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
|
||||
@ -25,12 +25,7 @@
|
||||
#include <linux/posix_types.h>
|
||||
#include "kernel-features.h"
|
||||
|
||||
extern int __syscall_fchown (int __fd,
|
||||
__kernel_uid_t __owner, __kernel_gid_t __group);
|
||||
|
||||
#ifdef __NR_fchown32
|
||||
extern int __syscall_fchown32 (int __fd,
|
||||
__kernel_uid32_t __owner, __kernel_gid32_t __group);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 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
|
||||
@ -25,11 +25,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include "../kernel-features.h"
|
||||
|
||||
extern int __syscall_fcntl (int __fd, int __cmd, ...);
|
||||
#ifdef __NR_fcntl64
|
||||
extern int __syscall_fcntl64 (int __fd, int __cmd, ...);
|
||||
#endif
|
||||
|
||||
#if __ASSUME_FCNTL64 == 0
|
||||
/* This variable is shared with all files that check for fcntl64. */
|
||||
int __have_no_fcntl64;
|
||||
|
@ -34,10 +34,7 @@
|
||||
|
||||
#include <xstatconv.h>
|
||||
|
||||
extern int __syscall_fstat (int, struct kernel_stat *__unbounded);
|
||||
|
||||
#ifdef __NR_stat64
|
||||
extern int __syscall_fstat64 (int, struct stat64 *__unbounded);
|
||||
# if __ASSUME_STAT64_SYSCALL == 0
|
||||
/* The variable is shared between all wrappers around *stat64 calls. */
|
||||
extern int __have_no_stat64;
|
||||
|
@ -23,10 +23,7 @@
|
||||
#include <sys/syscall.h>
|
||||
#include "kernel-features.h"
|
||||
|
||||
extern int __syscall_getegid (void);
|
||||
|
||||
#ifdef __NR_getegid32
|
||||
extern int __syscall_getegid32 (void);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -23,10 +23,7 @@
|
||||
#include <sys/syscall.h>
|
||||
#include "kernel-features.h"
|
||||
|
||||
extern int __syscall_geteuid (void);
|
||||
|
||||
#ifdef __NR_geteuid32
|
||||
extern int __syscall_geteuid32 (void);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -24,10 +24,7 @@
|
||||
|
||||
#include "kernel-features.h"
|
||||
|
||||
extern int __syscall_getgid (void);
|
||||
|
||||
#ifdef __NR_getgid32
|
||||
extern int __syscall_getgid32 (void);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -29,10 +29,7 @@
|
||||
#include <kernel-features.h>
|
||||
|
||||
|
||||
extern int __syscall_getgroups (int, __kernel_gid_t *__unbounded);
|
||||
|
||||
#ifdef __NR_getgroups32
|
||||
extern int __syscall_getgroups32 (int, __kernel_gid32_t *__unbounded);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1998, 1999, 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
|
||||
@ -23,9 +23,6 @@
|
||||
#include <sysdep.h>
|
||||
#include <sys/syscall.h>
|
||||
|
||||
extern int __syscall_getpmsg (int fildes, struct strbuf *ctlptr,
|
||||
struct strbuf *dataptr, int *bandp, int *flagsp);
|
||||
|
||||
#ifdef __NR_getpmsg
|
||||
int
|
||||
getmsg (fildes, ctlptr, dataptr, flagsp)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 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
|
||||
@ -30,15 +30,7 @@
|
||||
|
||||
#ifdef __NR_getresgid
|
||||
|
||||
extern int __syscall_getresgid (__kernel_gid_t *__unbounded rgid,
|
||||
__kernel_gid_t *__unbounded egid,
|
||||
__kernel_gid_t *__unbounded sgid);
|
||||
|
||||
# ifdef __NR_getresgid32
|
||||
extern int __syscall_getresgid32 (__kernel_gid32_t *__unbounded rgid,
|
||||
__kernel_gid32_t *__unbounded egid,
|
||||
__kernel_gid32_t *__unbounded sgid);
|
||||
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 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
|
||||
@ -30,14 +30,7 @@
|
||||
|
||||
#ifdef __NR_getresuid
|
||||
|
||||
extern int __syscall_getresuid (__kernel_uid_t *__unbounded ruid,
|
||||
__kernel_uid_t *__unbounded euid,
|
||||
__kernel_uid_t *__unbounded suid);
|
||||
|
||||
# ifdef __NR_getresuid32
|
||||
extern int __syscall_getresuid32 (__kernel_uid32_t *__unbounded ruid,
|
||||
__kernel_uid32_t *__unbounded euid,
|
||||
__kernel_uid32_t *__unbounded suid);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1999, 2000, 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
|
||||
@ -26,11 +26,6 @@
|
||||
|
||||
#include "kernel-features.h"
|
||||
|
||||
extern int __syscall_ugetrlimit (unsigned int resource,
|
||||
struct rlimit *__unbounded rlimits);
|
||||
extern int __syscall_getrlimit (unsigned int resource,
|
||||
struct rlimit *__unbounded rlimits);
|
||||
|
||||
extern int __new_getrlimit (enum __rlimit_resource resource,
|
||||
struct rlimit *__unbounded rlimits);
|
||||
|
||||
|
@ -24,10 +24,7 @@
|
||||
|
||||
#include "kernel-features.h"
|
||||
|
||||
extern int __syscall_getuid (void);
|
||||
|
||||
#ifdef __NR_getuid32
|
||||
extern int __syscall_getuid32 (void);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. This is the definition.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2000, 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
|
||||
@ -27,12 +27,7 @@
|
||||
#include "kernel-features.h"
|
||||
|
||||
#ifdef __NR_lchown
|
||||
extern int __syscall_lchown (const char *__unbounded __file,
|
||||
__kernel_uid_t __owner, __kernel_gid_t __group);
|
||||
|
||||
# ifdef __NR_lchown32
|
||||
extern int __syscall_lchown32 (const char *__unbounded __file,
|
||||
__kernel_uid32_t __owner, __kernel_gid32_t __group);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1994, 1996, 1997, 1998, 1999, 2000, 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
|
||||
@ -28,8 +29,6 @@
|
||||
/* lockf is a simplified interface to fcntl's locking facilities. */
|
||||
|
||||
#ifdef __NR_fcntl64
|
||||
extern int __syscall_fcntl64 (int __fd, int __cmd, ...);
|
||||
|
||||
# if __ASSUME_FCNTL64 == 0
|
||||
/* This variable is shared with all files that check for fcntl64. The
|
||||
declaration is in fcntl.c. */
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* lxstat using old-style Unix lstat system call.
|
||||
Copyright (C) 1991,95,96,97,98,2000,2002,2003 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991, 1995, 1996, 1997, 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
|
||||
@ -34,12 +35,7 @@
|
||||
|
||||
#include <xstatconv.h>
|
||||
|
||||
extern int __syscall_lstat (const char *__unbounded,
|
||||
struct kernel_stat *__unbounded);
|
||||
|
||||
#ifdef __NR_stat64
|
||||
extern int __syscall_lstat64 (const char *__unbounded,
|
||||
struct stat64 *__unbounded);
|
||||
# if __ASSUME_STAT64_SYSCALL == 0
|
||||
/* The variable is shared between all wrappers around *stat64 calls. */
|
||||
extern int __have_no_stat64;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 1999 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1998, 1999, 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
|
||||
@ -23,10 +23,6 @@
|
||||
#include <sysdep.h>
|
||||
#include <sys/syscall.h>
|
||||
|
||||
extern int __syscall_putpmsg (int fildes, const struct strbuf *ctlptr,
|
||||
const struct strbuf *dataptr, int band,
|
||||
int flags);
|
||||
|
||||
#ifdef __NR_putpmsg
|
||||
int
|
||||
putmsg (fildes, ctlptr, dataptr, flags)
|
||||
|
@ -28,10 +28,7 @@
|
||||
|
||||
#ifdef __NR_setfsgid
|
||||
|
||||
extern int __syscall_setfsgid (__kernel_gid_t);
|
||||
|
||||
# ifdef __NR_setfsgid32
|
||||
extern int __syscall_setfsgid32 (__kernel_gid32_t);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -28,10 +28,7 @@
|
||||
|
||||
#ifdef __NR_setfsuid
|
||||
|
||||
extern int __syscall_setfsuid (__kernel_uid_t);
|
||||
|
||||
# ifdef __NR_setfsuid32
|
||||
extern int __syscall_setfsuid32 (__kernel_uid32_t);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1998, 2000, 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
|
||||
@ -27,10 +27,7 @@
|
||||
|
||||
#include "kernel-features.h"
|
||||
|
||||
extern int __syscall_setgid (__kernel_gid_t);
|
||||
|
||||
#ifdef __NR_setgid32
|
||||
extern int __syscall_setgid32 (__kernel_gid32_t);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1997,98,2000,02 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1997, 1998, 2000, 2002 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
|
||||
@ -29,10 +29,7 @@
|
||||
#include "kernel-features.h"
|
||||
|
||||
|
||||
extern int __syscall_setgroups (int, const __kernel_gid_t *__unbounded);
|
||||
|
||||
#ifdef __NR_setgroups32
|
||||
extern int __syscall_setgroups32 (int, const __kernel_gid32_t *__unbounded);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -27,10 +27,7 @@
|
||||
#include "kernel-features.h"
|
||||
|
||||
|
||||
extern int __syscall_setregid (__kernel_gid_t, __kernel_gid_t);
|
||||
|
||||
#ifdef __NR_setregid32
|
||||
extern int __syscall_setregid32 (__kernel_gid32_t, __kernel_gid32_t);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 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
|
||||
@ -28,12 +28,7 @@
|
||||
|
||||
#ifdef __NR_setresgid
|
||||
|
||||
extern int __syscall_setresgid (__kernel_gid_t rgid, __kernel_gid_t egid,
|
||||
__kernel_gid_t sgid);
|
||||
|
||||
# ifdef __NR_setresgid32
|
||||
extern int __syscall_setresgid32 (__kernel_gid32_t rgid, __kernel_gid32_t egid,
|
||||
__kernel_gid32_t sgid);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 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
|
||||
@ -28,12 +28,7 @@
|
||||
|
||||
#ifdef __NR_setresuid
|
||||
|
||||
extern int __syscall_setresuid (__kernel_uid_t rgid, __kernel_uid_t egid,
|
||||
__kernel_uid_t sgid);
|
||||
|
||||
# ifdef __NR_setresuid32
|
||||
extern int __syscall_setresuid32 (__kernel_uid32_t rgid, __kernel_uid32_t egid,
|
||||
__kernel_uid32_t sgid);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -27,10 +27,7 @@
|
||||
#include "kernel-features.h"
|
||||
|
||||
|
||||
extern int __syscall_setreuid (__kernel_uid_t, __kernel_uid_t);
|
||||
|
||||
#ifdef __NR_setreuid32
|
||||
extern int __syscall_setreuid32 (__kernel_uid32_t, __kernel_uid32_t);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1999, 2000, 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
|
||||
@ -27,10 +27,6 @@
|
||||
|
||||
#include "kernel-features.h"
|
||||
|
||||
extern int __syscall_setrlimit (unsigned int resource,
|
||||
const struct rlimit *__unbounded rlimits);
|
||||
extern int __syscall_ugetrlimit (unsigned int resource,
|
||||
const struct rlimit *__unbounded rlimits);
|
||||
extern int __new_setrlimit (enum __rlimit_resource resource,
|
||||
const struct rlimit *__unboundedrlimits);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1998, 2000, 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
|
||||
@ -26,10 +26,7 @@
|
||||
#include <linux/posix_types.h>
|
||||
#include "kernel-features.h"
|
||||
|
||||
extern int __syscall_setuid (__kernel_uid_t);
|
||||
|
||||
#ifdef __NR_setuid32
|
||||
extern int __syscall_setuid32 (__kernel_uid32_t);
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -37,9 +37,6 @@
|
||||
#define SA_RESTORER 0x04000000
|
||||
|
||||
|
||||
extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded,
|
||||
struct kernel_sigaction *__unbounded, size_t);
|
||||
|
||||
#if __ASSUME_REALTIME_SIGNALS == 0
|
||||
/* The variable is shared between all wrappers around signal handling
|
||||
functions which have RT equivalents. */
|
||||
|
@ -34,12 +34,7 @@
|
||||
|
||||
#include <xstatconv.h>
|
||||
|
||||
extern int __syscall_stat (const char *__unbounded,
|
||||
struct kernel_stat *__unbounded);
|
||||
|
||||
#ifdef __NR_stat64
|
||||
extern int __syscall_stat64 (const char *__unbounded,
|
||||
struct stat64 *__unbounded);
|
||||
# if __ASSUME_STAT64_SYSCALL == 0
|
||||
/* The variable is shared between all wrappers around *stat64 calls. */
|
||||
extern int __have_no_stat64;
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* fxstat using old-style Unix fstat system call.
|
||||
Copyright (C) 1991,95,96,97,98,2000,2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991, 1995, 1996, 1997, 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
|
||||
@ -29,8 +30,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <bp-checks.h>
|
||||
|
||||
extern int __syscall_fstat (int, struct stat *__unbounded);
|
||||
|
||||
/* Get information about the file FD in BUF. */
|
||||
int
|
||||
__fxstat (int vers, int fd, struct stat *buf)
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* lxstat using old-style Unix fstat system call.
|
||||
Copyright (C) 1991,95,96,97,98,2000,2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991, 1995, 1996, 1997, 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
|
||||
@ -29,8 +30,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <bp-checks.h>
|
||||
|
||||
extern int __syscall_lstat (const char *__unbounded, struct stat *__unbounded);
|
||||
|
||||
/* Get information about the file FD in BUF. */
|
||||
int
|
||||
__lxstat (int vers, const char *name, struct stat *buf)
|
||||
|
@ -29,9 +29,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <bp-checks.h>
|
||||
|
||||
extern int __syscall_rt_sigaction (int, const struct sigaction *__unbounded,
|
||||
struct sigaction *__unbounded, size_t);
|
||||
|
||||
/* The variable is shared between all wrappers around signal handling
|
||||
functions which have RT equivalents. This is the definition. */
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1997, 1998, 1999, 2000, 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
|
||||
@ -27,9 +27,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <bp-checks.h>
|
||||
|
||||
extern int __syscall_rt_sigpending (sigset_t *__unbounded, size_t);
|
||||
|
||||
|
||||
/* Change the set of blocked signals to SET,
|
||||
wait until a signal arrives, and restore the set of blocked signals. */
|
||||
int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1997, 1998, 1999, 2000, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Linux/IA64 specific sigprocmask
|
||||
Written by Jes Sorensen, <Jes.Sorensen@cern.ch>, April 1999.
|
||||
@ -29,9 +29,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <bp-checks.h>
|
||||
|
||||
extern int __syscall_rt_sigprocmask (int, const sigset_t *__unbounded,
|
||||
sigset_t *__unbounded, size_t);
|
||||
|
||||
/* Get and/or change the set of blocked signals. */
|
||||
int
|
||||
__sigprocmask (how, set, oset)
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 1996,1997,1998,1999,2000,2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1996, 1997, 1998, 1999, 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
|
||||
@ -24,9 +25,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <bp-checks.h>
|
||||
|
||||
extern int __syscall_rt_sigsuspend (const sigset_t *__unbounded, size_t);
|
||||
|
||||
|
||||
/* Change the set of blocked signals to SET,
|
||||
wait until a signal arrives, and restore the set of blocked signals. */
|
||||
int
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* xstat using old-style Unix stat system call.
|
||||
Copyright (C) 1991,95,96,97,98,2000,2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991, 1995, 1996, 1997, 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
|
||||
@ -29,8 +30,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <bp-checks.h>
|
||||
|
||||
extern int __syscall_stat (const char *__unbounded, struct stat *__unbounded);
|
||||
|
||||
/* Get information about the file NAME in BUF. */
|
||||
int
|
||||
__xstat (int vers, const char *name, struct stat *buf)
|
||||
|
@ -32,15 +32,7 @@ struct __old_ipc_perm
|
||||
};
|
||||
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
/* The actual system call: all functions are multiplexed by this. */
|
||||
extern int __syscall_ipc (int __call, int __first, int __second,
|
||||
int __third, void *__ptr);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
/* The codes for the functions to use the multiplexer `__syscall_ipc'. */
|
||||
/* The codes for the functions to use the ipc syscall multiplexer. */
|
||||
#define IPCOP_semop 1
|
||||
#define IPCOP_semget 2
|
||||
#define IPCOP_semctl 3
|
||||
|
@ -23,9 +23,6 @@
|
||||
#include <sysdep.h>
|
||||
#include <sys/syscall.h>
|
||||
|
||||
extern int __syscall__llseek (int fd, off_t offset_hi, off_t offset_lo,
|
||||
loff_t *__unbounded result, int whence);
|
||||
|
||||
/* Seek to OFFSET on FD, starting from WHENCE. */
|
||||
extern loff_t __llseek (int fd, loff_t offset, int whence);
|
||||
|
||||
|
@ -32,12 +32,7 @@
|
||||
# include <xstatconv.h>
|
||||
#endif
|
||||
|
||||
extern int __syscall_lstat (const char *__unbounded,
|
||||
struct kernel_stat *__unbounded);
|
||||
|
||||
#ifdef __NR_lstat64
|
||||
extern int __syscall_lstat64 (const char *__unbounded,
|
||||
struct stat64 *__unbounded);
|
||||
# if __ASSUME_STAT64_SYSCALL == 0
|
||||
/* The variable is shared between all wrappers around *stat64 calls. */
|
||||
extern int __have_no_stat64;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 2000, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 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
|
||||
@ -26,13 +26,7 @@
|
||||
#include <linux/posix_types.h>
|
||||
#include "kernel-features.h"
|
||||
|
||||
extern int __syscall_chown (const char *__unbounded __file,
|
||||
__kernel_uid_t __owner, __kernel_gid_t __group);
|
||||
|
||||
#ifdef __NR_chown32
|
||||
extern int __syscall_chown32 (const char *__unbounded __file,
|
||||
__kernel_uid32_t owner, __kernel_gid32_t group);
|
||||
|
||||
# if __ASSUME_32BITUIDS == 0
|
||||
/* This variable is shared with all files that need to check for 32bit
|
||||
uids. */
|
||||
|
@ -1,6 +1,4 @@
|
||||
ifeq ($(subdir),signal)
|
||||
sysdep_routines += rt_sigsuspend rt_sigprocmask rt_sigtimedwait \
|
||||
rt_sigqueueinfo rt_sigaction rt_sigpending
|
||||
#sysdep_routines += sigsuspend
|
||||
endif
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1997, 1998, 1999, 2000, 2001, 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
|
||||
@ -32,11 +33,6 @@
|
||||
extern int __have_no_truncate64;
|
||||
#endif
|
||||
|
||||
/* The order of hight, low depends on endianness. */
|
||||
extern int __syscall_ftruncate64 (int fd, int dummy, int high_length,
|
||||
int low_length);
|
||||
|
||||
|
||||
/* Truncate the file FD refers to to LENGTH bytes. */
|
||||
int
|
||||
__ftruncate64 (int fd, off64_t length)
|
||||
|
@ -3,8 +3,8 @@
|
||||
lseek - lseek i:iii __libc_lseek __lseek lseek __llseek llseek __libc_lseek64 __lseek64 lseek64
|
||||
|
||||
# proper socket implementations:
|
||||
recvfrom - recvfrom i:ibniBN __libc_recvfrom __recvfrom recvfrom __syscall_recvfrom
|
||||
sendto - sendto i:ibnibn __libc_sendto __sendto sendto __syscall_sendto
|
||||
recvfrom - recvfrom i:ibniBN __libc_recvfrom __recvfrom recvfrom
|
||||
sendto - sendto i:ibnibn __libc_sendto __sendto sendto
|
||||
|
||||
# semaphore and shm system calls
|
||||
msgctl - msgctl i:iip __msgctl msgctl
|
||||
|
@ -41,16 +41,6 @@
|
||||
static ssize_t __emulate_pread (int fd, void *buf, size_t count,
|
||||
off_t offset) internal_function;
|
||||
# endif
|
||||
extern ssize_t __syscall_pread (int fd, void *__unbounded buf, size_t count,
|
||||
int dummy,
|
||||
#if defined _ABI64 && _MIPS_SIM == _ABI64
|
||||
off_t offset
|
||||
#else
|
||||
off_t offset_hi, off_t offset_lo
|
||||
#endif
|
||||
);
|
||||
|
||||
|
||||
|
||||
ssize_t
|
||||
__libc_pread (fd, buf, count, offset)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1997, 1998, 2000, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1997, 1998, 2000, 2002, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
||||
|
||||
@ -41,17 +41,6 @@ static ssize_t __emulate_pread64 (int fd, void *buf, size_t count,
|
||||
off64_t offset) internal_function;
|
||||
# endif
|
||||
|
||||
extern ssize_t __syscall_pread (int fd, void *__unbounded buf, size_t count,
|
||||
int dummy,
|
||||
#if defined _ABI64 && _MIPS_SIM == _ABI64
|
||||
off_t offset
|
||||
#else
|
||||
off_t offset_hi, off_t offset_lo
|
||||
#endif
|
||||
);
|
||||
|
||||
|
||||
|
||||
ssize_t
|
||||
__libc_pread64 (fd, buf, count, offset)
|
||||
int fd;
|
||||
|
@ -33,9 +33,6 @@ __extension__ typedef long long int reg_type;
|
||||
typedef long int reg_type;
|
||||
#endif
|
||||
|
||||
extern reg_type __syscall_ptrace (int, pid_t, void *__unbounded,
|
||||
reg_type __unbounded);
|
||||
|
||||
reg_type
|
||||
ptrace (enum __ptrace_request request, ...)
|
||||
{
|
||||
|
@ -37,15 +37,6 @@
|
||||
|
||||
#if defined __NR_pwrite || __ASSUME_PWRITE_SYSCALL > 0
|
||||
|
||||
extern ssize_t __syscall_pwrite (int fd, const void *__unbounded buf, size_t count,
|
||||
int dummy,
|
||||
#if defined _ABI64 && _MIPS_SIM == _ABI64
|
||||
off_t offset
|
||||
#else
|
||||
off_t offset_hi, off_t offset_lo
|
||||
#endif
|
||||
);
|
||||
|
||||
# if __ASSUME_PWRITE_SYSCALL == 0
|
||||
static ssize_t __emulate_pwrite (int fd, const void *buf, size_t count,
|
||||
off_t offset) internal_function;
|
||||
|
@ -36,15 +36,6 @@
|
||||
|
||||
#if defined __NR_pwrite || __ASSUME_PWRITE_SYSCALL > 0
|
||||
|
||||
extern ssize_t __syscall_pwrite (int fd, const void *__unbounded buf, size_t count,
|
||||
int dummy,
|
||||
#if defined _ABI64 && _MIPS_SIM == _ABI64
|
||||
off_t offset
|
||||
#else
|
||||
off_t offset_hi, off_t offset_lo
|
||||
#endif
|
||||
);
|
||||
|
||||
# if __ASSUME_PWRITE_SYSCALL == 0
|
||||
static ssize_t __emulate_pwrite64 (int fd, const void *buf, size_t count,
|
||||
off64_t offset) internal_function;
|
||||
|
@ -35,11 +35,7 @@
|
||||
functions which have RT equivalents. This is the definition. */
|
||||
int __libc_missing_rt_sigs;
|
||||
|
||||
extern int __syscall_sigaction (int, const struct old_kernel_sigaction *__unbounded,
|
||||
struct old_kernel_sigaction *__unbounded);
|
||||
#endif
|
||||
extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *__unbounded,
|
||||
struct kernel_sigaction *__unbounded, size_t);
|
||||
|
||||
#if _MIPS_SIM != _MIPS_SIM_ABI32
|
||||
|
||||
|
@ -8,8 +8,6 @@ cachectl - cachectl i:pii __cachectl cachectl
|
||||
cacheflush - cacheflush i:pii _flush_cache cacheflush
|
||||
sysmips - sysmips i:iiii __sysmips sysmips
|
||||
|
||||
s_sigsuspend sigsuspend sigsuspend i:p __syscall_sigsuspend
|
||||
|
||||
#
|
||||
# Socket functions; Linux/MIPS doesn't use the socketcall(2) wrapper;
|
||||
# it's provided for compatibility, though.
|
||||
@ -31,11 +29,3 @@ setsockopt - setsockopt i:iiibn __setsockopt setsockopt
|
||||
shutdown - shutdown i:ii __shutdown shutdown
|
||||
socket - socket i:iii __socket socket
|
||||
socketpair - socketpair i:iiif __socketpair socketpair
|
||||
|
||||
# System calls with wrappers.
|
||||
rt_sigaction - rt_sigaction i:ippi __syscall_rt_sigaction
|
||||
rt_sigpending - rt_sigpending i:pi __syscall_rt_sigpending
|
||||
rt_sigprocmask - rt_sigprocmask i:ippi __syscall_rt_sigprocmask
|
||||
rt_sigqueueinfo - rt_sigqueueinfo i:iip __syscall_rt_sigqueueinfo
|
||||
rt_sigsuspend - rt_sigsuspend i:pi __syscall_rt_sigsuspend
|
||||
rt_sigtimedwait - rt_sigtimedwait i:pppi __syscall_rt_sigtimedwait
|
||||
|
@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 1997, 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1997, 1998, 1999, 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
|
||||
@ -33,11 +34,6 @@
|
||||
int __have_no_truncate64;
|
||||
#endif
|
||||
|
||||
/* The order of hight, low depends on endianness. */
|
||||
extern int __syscall_truncate64 (const char *__unbounded path, int dummy,
|
||||
int high_length, int low_length);
|
||||
|
||||
|
||||
/* Truncate the file FD refers to to LENGTH bytes. */
|
||||
int
|
||||
truncate64 (const char *path, off64_t length)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1997, 1998, 2000, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
|
||||
|
||||
@ -25,8 +25,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <bp-checks.h>
|
||||
|
||||
extern int __syscall_ustat (unsigned long dev, struct ustat *__unbounded ubuf);
|
||||
|
||||
int
|
||||
ustat (dev_t dev, struct ustat *ubuf)
|
||||
{
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* xmknod call using old-style Unix mknod system call.
|
||||
Copyright (C) 1991,93,95,96,97,98,00,2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 1991, 1993, 1995, 1996, 1997, 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
|
||||
@ -26,8 +27,6 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <bp-checks.h>
|
||||
|
||||
extern int __syscall_mknod (const char *__unbounded, unsigned long, unsigned int);
|
||||
|
||||
/* Create a device file named PATH, with permission and special bits MODE
|
||||
and device number DEV (which can be constructed from major and minor
|
||||
device numbers with the `makedev' macro above). */
|
||||
|
@ -28,9 +28,6 @@
|
||||
#include "kernel-features.h"
|
||||
|
||||
#ifdef __NR_mmap2
|
||||
/* We have the system call that takes page number instead of byte address. */
|
||||
extern void *__unbounded __syscall_mmap2 (void *__unbounded, size_t,
|
||||
int, int, int, off_t);
|
||||
|
||||
/* This is always 12, even on architectures where PAGE_SHIFT != 12. */
|
||||
# ifndef MMAP2_PAGE_SHIFT
|
||||
|
@ -28,9 +28,6 @@
|
||||
|
||||
#if defined __NR_poll || __ASSUME_POLL_SYSCALL > 0
|
||||
|
||||
extern int __syscall_poll (struct pollfd *__unbounded fds,
|
||||
unsigned int nfds, int timeout);
|
||||
|
||||
# if __ASSUME_POLL_SYSCALL == 0
|
||||
static int __emulate_poll (struct pollfd *fds, nfds_t nfds,
|
||||
int timeout) internal_function;
|
||||
|
@ -1,6 +1 @@
|
||||
64bit-predefine = __powerpc64__
|
||||
|
||||
ifeq ($(subdir),signal)
|
||||
sysdep_routines += rt_sigsuspend rt_sigprocmask rt_sigtimedwait \
|
||||
rt_sigqueueinfo rt_sigaction rt_sigpending
|
||||
endif
|
||||
|
@ -31,9 +31,6 @@
|
||||
This file emulates chown() under the old kernels.
|
||||
*/
|
||||
|
||||
extern int __syscall_chown (const char *__file __unbounded,
|
||||
uid_t __owner, gid_t __group);
|
||||
|
||||
int
|
||||
__chown (const char *file, uid_t owner, gid_t group)
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1998, 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
|
||||
@ -25,8 +25,6 @@
|
||||
/* The user-visible size of struct termios has changed. Catch ioctl calls
|
||||
using the new-style struct termios, and translate them to old-style. */
|
||||
|
||||
extern int __syscall_ioctl (int fd, unsigned long int request, ...);
|
||||
|
||||
int
|
||||
__ioctl (int fd, unsigned long int request, ...)
|
||||
{
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user