* sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
Remove these, no longer used.
2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
syscall stubs.
* sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
* sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
and __NR_pread.
* sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
and __NR_pwrite.
* sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
2002-11-03 Roland McGrath <roland@redhat.com>
* sysdeps/generic/ldsodefs.h (struct rtld_global): New member
`_dl_tls_static_used'.
* sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
(__libc_setup_tls): Initialize it. Let the initial value of
_dl_tls_static_size indicate some surplus space in the computed value.
* elf/dl-open.c (_dl_tls_static_size): New variable.
* sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
_dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
* elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
(CHECK_STATIC_TLS): Use it.
* elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
closed objects occupied a trailing contiguous chunk of static TLS area.
2002-10-18 Bruno Haible <bruno@clisp.org>
* charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
+2002-11-04 Roland McGrath <roland@redhat.com>
+
+ * sysdeps/unix/sysv/linux/powerpc/chown.c: Use INLINE_SYSCALL macro.
+ * sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/ioctl.c: Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/pread.c: Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/truncate64.c: Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ioctl,
+ s_chown, s_ftruncate64, s_mmap2, s_pread64, s_pwrite64, s_truncate64,
+ sys_fstat, sys_lstat, sys_mknod, sys_readv, sys_stat, sys_writev):
+ Remove these, no longer used.
+
+2002-11-04 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
+
+ * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (s_ipc,
+ s_llseek, s_readahead, s_execve, s_fcntl, s_fcntl64, s_fstat64,
+ s_getcwd, s_getdents, s_getdents64, s_getpmsg, s_getpriority,
+ s_getrlimit, s_lstat64, s_poll, s_ptrace, s_putpmsg, s_reboot,
+ s_setrlimit, s_sigaction, s_sigpending, s_sigprocmask, s_sigsuspend,
+ s_stat64, s_sysctl, s_ugetrlimit, s_ustat, s_vfork): Remove now unused
+ syscall stubs.
+
+ * sysdeps/unix/sysv/linux/pwrite.c: Fix typo.
+ * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/pread.c: Handle both __NR_pread64
+ and __NR_pread.
+ * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
+ * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Handle both __NR_pwrite64
+ and __NR_pwrite.
+ * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
+
+2002-11-03 Roland McGrath <roland@redhat.com>
+
+ * sysdeps/generic/ldsodefs.h (struct rtld_global): New member
+ `_dl_tls_static_used'.
+ * sysdeps/generic/libc-tls.c (_dl_tls_static_used): New variable.
+ (__libc_setup_tls): Initialize it. Let the initial value of
+ _dl_tls_static_size indicate some surplus space in the computed value.
+ * elf/dl-open.c (_dl_tls_static_size): New variable.
+ * sysdeps/generic/dl-tls.c (_dl_determine_tlsoffset): Initialize
+ _dl_tls_static_used. Add some surplus space into _dl_tls_static_size.
+ * elf/dl-reloc.c [USE_TLS] (allocate_static_tls): New function.
+ (CHECK_STATIC_TLS): Use it.
+ * elf/dl-close.c (_dl_close): Adjust _dl_tls_static_used when the
+ closed objects occupied a trailing contiguous chunk of static TLS area.
+
+2002-10-18 Bruno Haible <bruno@clisp.org>
+
+ * charmaps/ISO_5428: Use Greek characters introduced in Unicode 3.0.
+
2002-11-04 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/fexecve.c: New file.
#include <string.h>
#include <unistd.h>
#include <limits.h>
-#include <sys/syscall.h>
+#include <sysdep.h>
#include <stdlib.h>
/*
This file emulates chown() under the old kernels.
*/
-extern int __syscall_chown (const char *__file,
+extern int __syscall_chown (const char *__file __unbounded,
uid_t __owner, gid_t __group);
int
static int libc_old_chown = 0 /* -1=old linux, 1=new linux, 0=unknown */;
if (libc_old_chown == 1)
- return __syscall_chown (file, owner, group);
+ return INLINE_SYSCALL (chown, 3, __ptrvalue (file), owner, group);
old_errno = errno;
#ifdef __NR_lchown
if (libc_old_chown == 0)
{
- err = __syscall_chown (file, owner, group);
+ err = INLINE_SYSCALL (chown, 3, __ptrvalue (file), owner, group);
if (err != -1 || errno != ENOSYS)
{
libc_old_chown = 1;
-/* Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1997,1998,1999,2000,2001,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
#ifndef __ASSUME_TRUNCATE64_SYSCALL
int saved_errno = errno;
#endif
- int result = __syscall_ftruncate64 (fd, length);
+ int result = INLINE_SYSCALL (ftruncate64, 2, fd, length);
#ifndef __ASSUME_TRUNCATE64_SYSCALL
if (result != -1 || errno != ENOSYS)
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 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
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
+#include <sysdep.h>
/* The user-visible size of struct termios has changed. Catch ioctl calls
using the new-style struct termios, and translate them to old-style. */
void *arg;
va_list ap;
int result;
-
+
va_start (ap, request);
arg = va_arg (ap, void *);
-
+
switch (request)
{
case TCGETS:
break;
default:
- result = __syscall_ioctl (fd, request, arg);
+ result = INLINE_SYSCALL (ioctl, 3, fd, request, arg);
break;
}
# File name Caller Syscall name # args Strong name Weak names
# System calls with wrappers.
-s_ioctl ioctl ioctl i:iiI __syscall_ioctl
-s_ipc msgget ipc i:iiiip __syscall_ipc
-s_llseek llseek _llseek i:iiipi __syscall__llseek
-s_readahead readahead readahead i:iiii __syscall_readahead
-s_chown chown chown i:sii __syscall_chown
-s_execve execve execve i:spp __syscall_execve
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
-s_fcntl fcntl fcntl i:iiF __syscall_fcntl
-s_fcntl64 fcntl64 fcntl64 i:iiF __syscall_fcntl64
-s_fstat64 fxstat64 fstat64 i:ip __syscall_fstat64
-s_ftruncate64 ftruncate64 ftruncate64 i:iii __syscall_ftruncate64
-s_getcwd getcwd getcwd i:pi __syscall_getcwd
-s_getdents getdents getdents i:ipi __syscall_getdents
-s_getdents64 getdents getdents64 i:ipi __syscall_getdents64
-s_getpmsg getpmsg getpmsg i:ipppp __syscall_getpmsg
-s_getpriority getpriority getpriority i:ii __syscall_getpriority
-s_getrlimit getrlimit getrlimit i:ip __syscall_getrlimit
-s_lstat64 lxstat64 lstat64 i:sp __syscall_lstat64
-s_mmap2 mmap64 mmap2 b:aniiii __syscall_mmap2
-s_poll poll poll i:pii __syscall_poll
-s_pread64 pread64 pread i:ibnii __syscall_pread
-s_ptrace ptrace ptrace i:iipp __syscall_ptrace
-s_putpmsg putpmsg putpmsg i:ippii __syscall_putpmsg
-s_pwrite64 pwrite64 pwrite i:ibnii __syscall_pwrite
-s_reboot reboot reboot i:iii __syscall_reboot
-s_setrlimit setrlimit setrlimit i:ip __syscall_setrlimit
-s_sigaction sigaction sigaction i:ipp __syscall_sigaction
-s_sigpending sigpending sigpending i:p __syscall_sigpending
-s_sigprocmask sigprocmask sigprocmask i:ipp __syscall_sigprocmask
-s_sigsuspend sigsuspend sigsuspend i:iii __syscall_sigsuspend
-s_stat64 xstat64 stat64 i:sp __syscall_stat64
-s_sysctl sysctl _sysctl i:p __syscall__sysctl
-s_truncate64 truncate64 truncate64 i:sii __syscall_truncate64
-s_ugetrlimit getrlimit ugetrlimit i:ip __syscall_ugetrlimit
-s_ustat ustat ustat i:ip __syscall_ustat
-s_vfork vfork vfork i: __syscall_vfork
-sys_fstat fxstat fstat i:ip __syscall_fstat
-sys_lstat lxstat lstat i:sp __syscall_lstat
-sys_mknod xmknod mknod i:pii __syscall_mknod
-sys_readv readv readv i:ipi __syscall_readv
-sys_stat xstat stat i:sp __syscall_stat
-sys_writev writev writev i:ipi __syscall_writev
oldgetrlimit EXTRA getrlimit i:ip __old_getrlimit getrlimit@GLIBC_2.0
oldsetrlimit EXTRA setrlimit i:ip __old_setrlimit setrlimit@GLIBC_2.0
-/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
#include <sysdep.h>
#include <sys/syscall.h>
+#include <bp-checks.h>
+
+#ifdef __NR_pread64 /* Newer kernels renamed but it's the same. */
+# ifdef __NR_pread
+# error "__NR_pread and __NR_pread64 both defined???"
+# endif
+# define __NR_pread __NR_pread64
+#endif
#ifdef __NR_pread
ssize_t result;
/* First try the syscall. */
- result = __syscall_pread (fd, buf, count, (off64_t) offset);
+ result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count, offset);
if (result == -1 && errno == ENOSYS)
/* No system call available. Use the emulation. */
result = __emulate_pread (fd, buf, count, offset);
-/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1997,1998,1999,2000,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
#include <sysdep.h>
#include <sys/syscall.h>
+#include <bp-checks.h>
+
+#ifdef __NR_pread64 /* Newer kernels renamed but it's the same. */
+# ifdef __NR_pread
+# error "__NR_pread and __NR_pread64 both defined???"
+# endif
+# define __NR_pread __NR_pread64
+#endif
#ifdef __NR_pread
ssize_t result;
/* First try the syscall. */
- result = __syscall_pread (fd, buf, count, offset);
+ result = INLINE_SYSCALL (pread, 4, fd, CHECK_N (buf, count), count, offset);
if (result == -1 && errno == ENOSYS)
/* No system call available. Use the emulation. */
result = __emulate_pread64 (fd, buf, count, offset);
-/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
#include <sysdep.h>
#include <sys/syscall.h>
+#include <bp-checks.h>
+
+#ifdef __NR_pwrite64 /* Newer kernels renamed but it's the same. */
+# ifdef __NR_pwrite
+# error "__NR_pwrite and __NR_pwrite64 both defined???"
+# endif
+# define __NR_pwrite __NR_pwrite64
+#endif
#ifdef __NR_pwrite
ssize_t result;
/* First try the syscall. */
- result = __syscall_pwrite (fd, buf, count, (off64_t) offset);
+ result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset);
if (result == -1 && errno == ENOSYS)
/* No system call available. Use the emulation. */
result = __emulate_pwrite (fd, buf, count, offset);
#include <sysdep.h>
#include <sys/syscall.h>
+#include <bp-checks.h>
+
+#ifdef __NR_pwrite64 /* Newer kernels renamed but it's the same. */
+# ifdef __NR_pwrite
+# error "__NR_pwrite and __NR_pwrite64 both defined???"
+# endif
+# define __NR_pwrite __NR_pwrite64
+#endif
#ifdef __NR_pwrite
ssize_t result;
/* First try the syscall. */
- result = __syscall_pwrite (fd, buf, count, offset);
+ result = INLINE_SYSCALL (pwrite, 4, fd, CHECK_N (buf, count), count, offset);
if (result == -1 && errno == ENOSYS)
/* No system call available. Use the emulation. */
result = __emulate_pwrite64 (fd, buf, count, offset);
-/* We must use __syscall_ioctl since __ioctl does some extra work. */
-extern int __syscall_ioctl (int __fd, unsigned long int __request, ...);
-#define __ioctl __syscall_ioctl
+/* We must use the syscall directly since __ioctl does some extra work. */
+
+#include <sys/ioctl.h>
+
+#include <sysdep.h>
+#include <bp-checks.h>
+
+struct __kernel_termios;
+
+static inline int
+tcgetattr_ioctl (int fd, unsigned long int request,
+ struct __kernel_termios *termios_p)
+{
+ return INLINE_SYSCALL (ioctl, 3, fd, request, CHECK_1 (termios_p));
+}
+
+#define __ioctl tcgetattr_ioctl
+
#include <sysdeps/unix/sysv/linux/tcgetattr.c>
-/* We must use __syscall_ioctl since __ioctl does some extra work. */
-extern int __syscall_ioctl (int __fd, unsigned long int __request, ...);
-#define __ioctl __syscall_ioctl
+/* We must use the syscall directly since __ioctl does some extra work. */
+
+#include <sys/ioctl.h>
+
+#include <sysdep.h>
+#include <bp-checks.h>
+
+struct __kernel_termios;
+
+static inline int
+tcsetattr_ioctl (int fd, unsigned long int request,
+ const struct __kernel_termios *termios_p)
+{
+ return INLINE_SYSCALL (ioctl, 3, fd, request, CHECK_1 (termios_p));
+}
+
+#define __ioctl tcsetattr_ioctl
+
#include <sysdeps/unix/sysv/linux/tcsetattr.c>
-/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999, 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
#include <sysdep.h>
#include <sys/syscall.h>
+#include <bp-checks.h>
#include "kernel-features.h"
#ifndef __ASSUME_TRUNCATE64_SYSCALL
int saved_errno = errno;
#endif
- int result = __syscall_truncate64 (path, length);
+ int result = INLINE_SYSCALL (truncate64, 2, CHECK_STRING (path), length);
#ifndef __ASSUME_TRUNCATE64_SYSCALL
if (result != -1 || errno != ENOSYS)
# ifdef __NR_pwrite
# error "__NR_pwrite and __NR_pwrite64 both defined???"
# endif
-# define __NR_pwrite __NR_pread64
+# define __NR_pwrite __NR_pwrite64
#endif
#if defined __NR_pwrite || __ASSUME_PWRITE_SYSCALL > 0
# ifdef __NR_pwrite
# error "__NR_pwrite and __NR_pwrite64 both defined???"
# endif
-# define __NR_pwrite __NR_pread64
+# define __NR_pwrite __NR_pwrite64
#endif
#if defined __NR_pwrite || __ASSUME_PWRITE_SYSCALL > 0