1999-05-27 07:37:38 +08:00
|
|
|
/* Set flags signalling availability of kernel features based on given
|
|
|
|
kernel version number.
|
2004-01-21 09:30:36 +08:00
|
|
|
Copyright (C) 1999-2003, 2004 Free Software Foundation, Inc.
|
1999-05-27 07:37:38 +08:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 12:58:11 +08:00
|
|
|
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.
|
1999-05-27 07:37:38 +08:00
|
|
|
|
|
|
|
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
|
2001-07-06 12:58:11 +08:00
|
|
|
Lesser General Public License for more details.
|
1999-05-27 07:37:38 +08:00
|
|
|
|
2001-07-06 12:58:11 +08:00
|
|
|
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. */
|
1999-05-27 07:37:38 +08:00
|
|
|
|
|
|
|
/* This file must not contain any C code. At least it must be protected
|
|
|
|
to allow using the file also in assembler files. */
|
|
|
|
|
|
|
|
#ifndef __LINUX_KERNEL_VERSION
|
|
|
|
/* We assume the worst; all kernels should be supported. */
|
|
|
|
# define __LINUX_KERNEL_VERSION 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* We assume for __LINUX_KERNEL_VERSION the same encoding used in
|
|
|
|
linux/version.h. I.e., the major, minor, and subminor all get a
|
|
|
|
byte with the major number being in the highest byte. This means
|
|
|
|
we can do numeric comparisons.
|
|
|
|
|
|
|
|
In the following we will define certain symbols depending on
|
|
|
|
whether the describes kernel feature is available in the kernel
|
|
|
|
version given by __LINUX_KERNEL_VERSION. We are not always exactly
|
|
|
|
recording the correct versions in which the features were
|
|
|
|
introduced. If somebody cares these values can afterwards be
|
|
|
|
corrected. Most of the numbers here are set corresponding to
|
|
|
|
2.2.0. */
|
|
|
|
|
|
|
|
/* `getcwd' system call. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131584
|
|
|
|
# define __ASSUME_GETCWD_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Real-time signal became usable in 2.1.70. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131398
|
|
|
|
# define __ASSUME_REALTIME_SIGNALS 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* When were the `pread'/`pwrite' syscalls introduced? */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131584
|
|
|
|
# define __ASSUME_PREAD_SYSCALL 1
|
|
|
|
# define __ASSUME_PWRITE_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* When was `poll' introduced? */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131584
|
|
|
|
# define __ASSUME_POLL_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* The `lchown' syscall was introduced in 2.1.80. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131408
|
|
|
|
# define __ASSUME_LCHOWN_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* When did the `setresuid' sysall became available? */
|
2000-01-18 12:33:34 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 131584 && !defined __sparc__
|
1999-05-27 07:37:38 +08:00
|
|
|
# define __ASSUME_SETRESUID_SYSCALL 1
|
|
|
|
#endif
|
1999-06-07 08:02:14 +08:00
|
|
|
|
|
|
|
/* The SIOCGIFNAME ioctl is available starting with 2.1.50. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131408
|
|
|
|
# define __ASSUME_SIOCGIFNAME 1
|
|
|
|
#endif
|
1999-11-02 09:01:03 +08:00
|
|
|
|
|
|
|
/* On x86 another `getrlimit' syscall was added in 2.3.25. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131865 && defined __i386__
|
|
|
|
# define __ASSUME_NEW_GETRLIMIT_SYSCALL 1
|
|
|
|
#endif
|
1999-12-09 07:48:24 +08:00
|
|
|
|
|
|
|
/* On x86 the truncate64/ftruncate64 syscalls were introduced in 2.3.31. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131871 && defined __i386__
|
|
|
|
# define __ASSUME_TRUNCATE64_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
1999-12-19 08:04:05 +08:00
|
|
|
/* On x86 the mmap2 syscall was introduced in 2.3.31. */
|
1999-12-09 07:48:24 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 131871 && defined __i386__
|
|
|
|
# define __ASSUME_MMAP2_SYSCALL 1
|
|
|
|
#endif
|
1999-12-19 08:04:05 +08:00
|
|
|
|
|
|
|
/* On x86 the stat64/lstat64/fstat64 syscalls were introduced in 2.3.34. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131874 && defined __i386__
|
|
|
|
# define __ASSUME_STAT64_SYSCALL 1
|
|
|
|
#endif
|
Update.
1999-12-23 Ulrich Drepper <drepper@cygnus.com>
* locale/programs/ld-monetary.c (monetary_finish): Add cast to
prevent warning.
* locale/programs/ld-collate.c: Implement writing out multibyte
collation data.
* locale/setlocale.c (setlocale): Allow setting LC_COLLATE again.
* locale/localeinfo.h: Declare variables only for currently implemented
collate functionality. Remove FORWARD_CHAR and ELLIPSIS_CHAR.
* locale/lc-collate.c: Define variables only for currently implemented
functionality.
* locale/langinfo.h: Define symbols only for currently implemented
functionality.
* locale/categories.def: Define elements for currently implemented
functionality.
* locale/C-collate.c: Comment out definitions of arrays with symbol
name definitions etc.
(_nl_C_LC_COLLATE): Update for currently defined information.
* intl/libintl.h: Remove dcgettext macro definition.
* intl/gettextP.h: Declare _nl_msg_cat_cntr.
* locale/iso-4217.def: Add NAD. Remove a few obsolete entries.
* sysdeps/generic/glob.c (glob): Pass alternate file access functions
also in recursive call. Patch by Joe Orton <joe@orton.demon.co.uk>.
1999-12-22 Jakub Jelinek <jakub@redhat.com>
* sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Use proper type
for __fenv_stfsr argument.
* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
truncate64, ftruncate64, fstat64, lstat64, stat64 and mmap2.
Remove ugetrlimit.
* sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h
(XSTAT_IS_XSTAT64): Define.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Add
__libc_lseek64, __libc_pread, __libc_pread64, __libc_pwrite
and __libc_pwrite64.
Remove oldgetrlimit and oldsetrlimit.
* sysdeps/unix/sysv/linux/sparc/sparc64/fxstat64.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/lxstat64.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/xstat64.c: New file.
* sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Pass the buf
pointer to the syscall, not address of that pointer.
* sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
* sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
(__syscall_stat64): Provide proper prototype.
* sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Share
has_no_truncate64 between truncate64 and ftruncate64.
* sysdeps/unix/sysv/linux/truncate64.c (truncate64): Likewise.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_MMAP2_SYSCALL,
__ASSUME_STAT64_SYSCALL): Define on Sparc for kernels >= 2.3.35.
1999-12-22 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __libc_lseek64,
__libc_pread, __libc_pread64, __libc_pwrite and __libc_pwrite64.
1999-12-24 13:55:50 +08:00
|
|
|
|
2000-01-04 07:22:35 +08:00
|
|
|
/* On sparc and ARM the truncate64/ftruncate64/mmap2/stat64/lstat64/fstat64
|
Update.
1999-12-23 Ulrich Drepper <drepper@cygnus.com>
* locale/programs/ld-monetary.c (monetary_finish): Add cast to
prevent warning.
* locale/programs/ld-collate.c: Implement writing out multibyte
collation data.
* locale/setlocale.c (setlocale): Allow setting LC_COLLATE again.
* locale/localeinfo.h: Declare variables only for currently implemented
collate functionality. Remove FORWARD_CHAR and ELLIPSIS_CHAR.
* locale/lc-collate.c: Define variables only for currently implemented
functionality.
* locale/langinfo.h: Define symbols only for currently implemented
functionality.
* locale/categories.def: Define elements for currently implemented
functionality.
* locale/C-collate.c: Comment out definitions of arrays with symbol
name definitions etc.
(_nl_C_LC_COLLATE): Update for currently defined information.
* intl/libintl.h: Remove dcgettext macro definition.
* intl/gettextP.h: Declare _nl_msg_cat_cntr.
* locale/iso-4217.def: Add NAD. Remove a few obsolete entries.
* sysdeps/generic/glob.c (glob): Pass alternate file access functions
also in recursive call. Patch by Joe Orton <joe@orton.demon.co.uk>.
1999-12-22 Jakub Jelinek <jakub@redhat.com>
* sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Use proper type
for __fenv_stfsr argument.
* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
truncate64, ftruncate64, fstat64, lstat64, stat64 and mmap2.
Remove ugetrlimit.
* sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h
(XSTAT_IS_XSTAT64): Define.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Add
__libc_lseek64, __libc_pread, __libc_pread64, __libc_pwrite
and __libc_pwrite64.
Remove oldgetrlimit and oldsetrlimit.
* sysdeps/unix/sysv/linux/sparc/sparc64/fxstat64.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/lxstat64.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/xstat64.c: New file.
* sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Pass the buf
pointer to the syscall, not address of that pointer.
* sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
* sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
(__syscall_stat64): Provide proper prototype.
* sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Share
has_no_truncate64 between truncate64 and ftruncate64.
* sysdeps/unix/sysv/linux/truncate64.c (truncate64): Likewise.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_MMAP2_SYSCALL,
__ASSUME_STAT64_SYSCALL): Define on Sparc for kernels >= 2.3.35.
1999-12-22 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __libc_lseek64,
__libc_pread, __libc_pread64, __libc_pwrite and __libc_pwrite64.
1999-12-24 13:55:50 +08:00
|
|
|
syscalls were introduced in 2.3.35. */
|
2000-01-04 07:22:35 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 131875 && (defined __sparc__ || defined __arm__)
|
Update.
1999-12-23 Ulrich Drepper <drepper@cygnus.com>
* locale/programs/ld-monetary.c (monetary_finish): Add cast to
prevent warning.
* locale/programs/ld-collate.c: Implement writing out multibyte
collation data.
* locale/setlocale.c (setlocale): Allow setting LC_COLLATE again.
* locale/localeinfo.h: Declare variables only for currently implemented
collate functionality. Remove FORWARD_CHAR and ELLIPSIS_CHAR.
* locale/lc-collate.c: Define variables only for currently implemented
functionality.
* locale/langinfo.h: Define symbols only for currently implemented
functionality.
* locale/categories.def: Define elements for currently implemented
functionality.
* locale/C-collate.c: Comment out definitions of arrays with symbol
name definitions etc.
(_nl_C_LC_COLLATE): Update for currently defined information.
* intl/libintl.h: Remove dcgettext macro definition.
* intl/gettextP.h: Declare _nl_msg_cat_cntr.
* locale/iso-4217.def: Add NAD. Remove a few obsolete entries.
* sysdeps/generic/glob.c (glob): Pass alternate file access functions
also in recursive call. Patch by Joe Orton <joe@orton.demon.co.uk>.
1999-12-22 Jakub Jelinek <jakub@redhat.com>
* sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Use proper type
for __fenv_stfsr argument.
* sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
truncate64, ftruncate64, fstat64, lstat64, stat64 and mmap2.
Remove ugetrlimit.
* sysdeps/unix/sysv/linux/sparc/sparc32/mmap64.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h
(XSTAT_IS_XSTAT64): Define.
* sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Add
__libc_lseek64, __libc_pread, __libc_pread64, __libc_pwrite
and __libc_pwrite64.
Remove oldgetrlimit and oldsetrlimit.
* sysdeps/unix/sysv/linux/sparc/sparc64/fxstat64.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/lxstat64.c: New file.
* sysdeps/unix/sysv/linux/sparc/sparc64/xstat64.c: New file.
* sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): Pass the buf
pointer to the syscall, not address of that pointer.
* sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
* sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
(__syscall_stat64): Provide proper prototype.
* sysdeps/unix/sysv/linux/ftruncate64.c (ftruncate64): Share
has_no_truncate64 between truncate64 and ftruncate64.
* sysdeps/unix/sysv/linux/truncate64.c (truncate64): Likewise.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_TRUNCATE64_SYSCALL, __ASSUME_MMAP2_SYSCALL,
__ASSUME_STAT64_SYSCALL): Define on Sparc for kernels >= 2.3.35.
1999-12-22 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Add __libc_lseek64,
__libc_pread, __libc_pread64, __libc_pwrite and __libc_pwrite64.
1999-12-24 13:55:50 +08:00
|
|
|
# define __ASSUME_TRUNCATE64_SYSCALL 1
|
|
|
|
# define __ASSUME_MMAP2_SYSCALL 1
|
|
|
|
# define __ASSUME_STAT64_SYSCALL 1
|
|
|
|
#endif
|
2000-01-17 13:24:52 +08:00
|
|
|
|
2002-09-17 15:53:26 +08:00
|
|
|
/* I know for sure that getrlimit are in 2.3.35 on powerpc. */
|
* csu/Makefile ($(objpfx)version-info.h): Don't use echo -n
unnecessarily.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_STAT64_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL,
__ASSUME_NEW_GETRLIMIT_SYSCALL): Define on powerpc for kernels >=
2.3.35.
* sysdeps/unix/sysv/linux/powerpc/bits/resource.h: New file.
* sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/getrlimit.c: New file.
* sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/mmap64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/setrlimit.c: New file.
* sysdeps/unix/sysv/linux/powerpc/setrlimit64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add
s_fstat64, s_ftruncate64, s_lstat64, s_mmap2, s_stat64,
s_truncate64.
* sysdeps/unix/sysv/linux/powerpc/truncate64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/Versions: New file.
* sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]: Don't access
__curbrk off the small data area register. Reported by
Andrew Haley <aph@pasanda.cygnus.co.uk>.
2000-01-27 Geoff Keating <geoffk@cygnus.com>
* csu/Makefile ($(objpfx)version-info.h): Don't use echo -n
unnecessarily.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_STAT64_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL,
__ASSUME_NEW_GETRLIMIT_SYSCALL): Define on powerpc for kernels >=
2.3.35.
* sysdeps/unix/sysv/linux/powerpc/bits/resource.h: New file.
* sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/getrlimit.c: New file.
* sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/mmap64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/setrlimit.c: New file.
* sysdeps/unix/sysv/linux/powerpc/setrlimit64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add
s_fstat64, s_ftruncate64, s_lstat64, s_mmap2, s_stat64,
s_truncate64.
* sysdeps/unix/sysv/linux/powerpc/truncate64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/Versions: New file.
* sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]: Don't access
__curbrk off the small data area register. Reported by
Andrew Haley <aph@pasanda.cygnus.co.uk>.
2000-01-28 07:40:48 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 131875 && defined __powerpc__
|
2002-09-17 15:53:26 +08:00
|
|
|
# define __ASSUME_NEW_GETRLIMIT_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
2002-09-30 04:44:22 +08:00
|
|
|
/* I know for sure that these are in 2.3.35 on powerpc. But PowerPC64 does not
|
2002-09-17 15:53:26 +08:00
|
|
|
support separate 64-bit syscalls, already 64-bit */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131875 && defined __powerpc__ \
|
|
|
|
&& !defined __powerpc64__
|
* csu/Makefile ($(objpfx)version-info.h): Don't use echo -n
unnecessarily.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_STAT64_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL,
__ASSUME_NEW_GETRLIMIT_SYSCALL): Define on powerpc for kernels >=
2.3.35.
* sysdeps/unix/sysv/linux/powerpc/bits/resource.h: New file.
* sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/getrlimit.c: New file.
* sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/mmap64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/setrlimit.c: New file.
* sysdeps/unix/sysv/linux/powerpc/setrlimit64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add
s_fstat64, s_ftruncate64, s_lstat64, s_mmap2, s_stat64,
s_truncate64.
* sysdeps/unix/sysv/linux/powerpc/truncate64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/Versions: New file.
* sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]: Don't access
__curbrk off the small data area register. Reported by
Andrew Haley <aph@pasanda.cygnus.co.uk>.
2000-01-27 Geoff Keating <geoffk@cygnus.com>
* csu/Makefile ($(objpfx)version-info.h): Don't use echo -n
unnecessarily.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_STAT64_SYSCALL, __ASSUME_TRUNCATE64_SYSCALL,
__ASSUME_NEW_GETRLIMIT_SYSCALL): Define on powerpc for kernels >=
2.3.35.
* sysdeps/unix/sysv/linux/powerpc/bits/resource.h: New file.
* sysdeps/unix/sysv/linux/powerpc/ftruncate64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/getrlimit.c: New file.
* sysdeps/unix/sysv/linux/powerpc/getrlimit64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/mmap64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/setrlimit.c: New file.
* sysdeps/unix/sysv/linux/powerpc/setrlimit64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add
s_fstat64, s_ftruncate64, s_lstat64, s_mmap2, s_stat64,
s_truncate64.
* sysdeps/unix/sysv/linux/powerpc/truncate64.c: New file.
* sysdeps/unix/sysv/linux/powerpc/Versions: New file.
* sysdeps/unix/sysv/linux/powerpc/brk.S [!PIC]: Don't access
__curbrk off the small data area register. Reported by
Andrew Haley <aph@pasanda.cygnus.co.uk>.
2000-01-28 07:40:48 +08:00
|
|
|
# define __ASSUME_TRUNCATE64_SYSCALL 1
|
|
|
|
# define __ASSUME_STAT64_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
2002-09-17 15:53:26 +08:00
|
|
|
/* Linux 2.3.39 introduced 32bit UID/GIDs. Some platforms had 32
|
2000-09-29 07:32:48 +08:00
|
|
|
bit type all along. */
|
2001-04-26 04:20:41 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 131879 || defined __powerpc__ || defined __mips__
|
2000-01-17 13:24:52 +08:00
|
|
|
# define __ASSUME_32BITUIDS 1
|
|
|
|
#endif
|
2000-05-24 23:33:21 +08:00
|
|
|
|
2002-09-17 15:53:26 +08:00
|
|
|
/* Linux 2.3.39 sparc added setresuid. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131879 && defined __sparc__
|
2002-09-30 04:44:22 +08:00
|
|
|
# define __ASSUME_SETRESUID_SYSCALL 1
|
2002-09-17 15:53:26 +08:00
|
|
|
#endif
|
|
|
|
|
2003-06-10 10:32:35 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 131879
|
|
|
|
# define __ASSUME_SETRESGID_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
2002-09-17 15:53:26 +08:00
|
|
|
/* Linux 2.3.39 introduced IPC64. Except for powerpc. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131879 && !defined __powerpc__
|
|
|
|
# define __ASSUME_IPC64 1
|
|
|
|
#endif
|
|
|
|
|
* sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT) Unset for alpha. (__ASSUME_TIMEVAL64): Set for alpha. * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove adjtimex, osf_sigprocmask, old_adjtimex. * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL, __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable. * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64. * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise. * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise. * sysdeps/unix/sysv/linux/alpha/select.S: Likewise. * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise. * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise. * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise. * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise. * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline PIC code sequence. * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise. * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file. * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL. * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise. * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise. * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask, sys_ustat, sys_mknod, adjtimex, old_adjtimex. * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't defer to __syscall_name; error for rt_sigaction. * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2003-06-20 Richard Henderson <rth@redhat.com>
* sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
Unset for alpha.
(__ASSUME_TIMEVAL64): Set for alpha.
* sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
adjtimex, osf_sigprocmask, old_adjtimex.
* sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
__ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
* sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
* sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
PIC code sequence.
* sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
* sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
* sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
sys_ustat, sys_mknod, adjtimex, old_adjtimex.
* sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
defer to __syscall_name; error for rt_sigaction.
* sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2003-06-21 00:24:36 +08:00
|
|
|
/* MIPS platforms had IPC64 all along. */
|
2002-09-17 15:53:26 +08:00
|
|
|
#if defined __mips__
|
|
|
|
# define __ASSUME_IPC64 1
|
|
|
|
#endif
|
|
|
|
|
2003-06-26 16:00:21 +08:00
|
|
|
/* We can use the LDTs for threading with Linux 2.3.99 and newer. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131939
|
|
|
|
# define __ASSUME_LDT_WORKS 1
|
|
|
|
#endif
|
|
|
|
|
2002-09-30 04:44:22 +08:00
|
|
|
/* Linux 2.4.0 on PPC introduced a correct IPC64. But PowerPC64 does not
|
2002-09-17 15:53:26 +08:00
|
|
|
support a separate 64-bit sys call, already 64-bit */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132096 && defined __powerpc__ \
|
|
|
|
&& !defined __powerpc64__
|
2000-09-29 07:32:48 +08:00
|
|
|
# define __ASSUME_IPC64 1
|
|
|
|
#endif
|
|
|
|
|
2003-06-26 16:00:21 +08:00
|
|
|
/* SH kernels got stat64, mmap2, and truncate64 during 2.4.0-test. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132096 && defined __sh__
|
|
|
|
# define __ASSUME_TRUNCATE64_SYSCALL 1
|
|
|
|
# define __ASSUME_MMAP2_SYSCALL 1
|
|
|
|
# define __ASSUME_STAT64_SYSCALL 1
|
2000-05-24 23:33:21 +08:00
|
|
|
#endif
|
Update.
2000-08-11 Ulrich Drepper <drepper@redhat.com>
* rt/aio_cancel.c: If canceling a specific request which is running
*really* do nothing.
* rt/aio_misc.h: Add `done' to states of a request.
* rt/aio_misc.c: Add several tests for the correct state.
Simplify request table memory handling.
2000-08-10 Jakub Jelinek <jakub@redhat.com>
* dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
* dirent/scandir64.c: Move...
* sysdeps/generic/scandir64.c: ...here.
* dirent/alphasort64.c: Move...
* sysdeps/generic/alphasort64.c: ...here.
* dirent/versionsort64.c: Move...
* sysdeps/generic/versionsort64.c: ...here.
* sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
Export symbols at GLIBC_2.2.
* sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
* include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
__versionsort64): Add prototypes.
* io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
* sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
unused prototype.
* sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
and GLIBC_2.2.
* sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/getdents.c: New.
* sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
* sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
__u_quad_t.
* sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
Adjust for kernel-2.4.0-test6 layout.
* sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
GLIBC_2.1 and GLIBC_2.2.
* sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
* sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
* sysdeps/unix/sysv/linux/i386/getdents64.c: New.
* sysdeps/unix/sysv/linux/i386/olddirent.h: New.
* sysdeps/unix/sysv/linux/i386/readdir64.c: New.
* sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
* sysdeps/unix/sysv/linux/i386/scandir64.c: New.
* sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
* sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
* sysdeps/unix/sysv/linux/ia64/getdents.c: New.
* sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
* sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
* sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
* sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
__u_quad_t.
* sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
* sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
* sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
* sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
* sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
* sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
* sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
__u_quad_t.
* sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
* sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
Define.
* sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
* sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
* sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
* sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
* sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
Define.
* sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
alpha/readdir.c.
* sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
alpha/readdir_r.c
* sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
* sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
* sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
_HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
st_ino from __st_ino.
* sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
* sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
* sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
xstat32_conv): Use _HAVE_STAT* macros. If _HAVE_STAT64___ST_INO,
set __st_ino in addition to st_ino.
* sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
* sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
__old_getdents64 as well.
* sysdeps/unix/sysv/linux/getdirentries.c: Use it for
getdirentries64 and old_getdirentries64 as well.
* sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
__GETDENTS): Define.
(GETDENTS64): Remove.
* sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
Define.
(GETDENTS64): Remove.
* sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
* sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
* sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
as well.
* sysdeps/unix/readdir_r.c: Use it for readdir64_r and
__old_readdir64_r as well.
* sysdeps/unix/sysv/linux/kernel-features.h: Define
__ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2000-08-12 13:14:52 +08:00
|
|
|
|
|
|
|
/* The changed st_ino field appeared in 2.4.0-test6. But we cannot
|
|
|
|
distinguish this version from other 2.4.0 releases. Therefore play
|
2003-06-26 16:00:21 +08:00
|
|
|
save and assume it available is for 2.4.1 and up. However, SH is lame,
|
|
|
|
and still does not have a 64-bit inode field. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132097 && !defined __alpha__ && !defined __sh__
|
Update.
2000-08-11 Ulrich Drepper <drepper@redhat.com>
* rt/aio_cancel.c: If canceling a specific request which is running
*really* do nothing.
* rt/aio_misc.h: Add `done' to states of a request.
* rt/aio_misc.c: Add several tests for the correct state.
Simplify request table memory handling.
2000-08-10 Jakub Jelinek <jakub@redhat.com>
* dirent/scandir.c: Use it for scandir64 and old_scandir64 as well.
* dirent/scandir64.c: Move...
* sysdeps/generic/scandir64.c: ...here.
* dirent/alphasort64.c: Move...
* sysdeps/generic/alphasort64.c: ...here.
* dirent/versionsort64.c: Move...
* sysdeps/generic/versionsort64.c: ...here.
* sysdeps/unix/sysv/linux/i386/dirent/Versions (alphasort64,
getdirentries64, readdir64, readdir64_r, scandir64, versionsort64):
Export symbols at GLIBC_2.2.
* sysdeps/unix/sysv/linux/powerpc/dirent/Versions: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/dirent/Versions: Likewise.
* include/dirent.h (__readdir64_r, __scandir64, __alphasort64,
__versionsort64): Add prototypes.
* io/Versions (__xstat64, __fxstat64, __lxstat64): Export at GLIBC_2.2.
* sysdeps/unix/sysv/linux/alpha/kernel_stat.h (__xstat_conv): Remove
unused prototype.
* sysdeps/unix/sysv/linux/alpha/readdir.c: Export at both GLIBC_2.1
and GLIBC_2.2.
* sysdeps/unix/sysv/linux/alpha/readdir_r.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/getdents.c: New.
* sysdeps/unix/sysv/linux/alpha/getdents64.c: New.
* sysdeps/unix/sysv/linux/bits/types.h (__ino64_t): Change to
__u_quad_t.
* sysdeps/unix/sysv/linux/bits/stat.h (struct stat, struct stat64):
Adjust for kernel-2.4.0-test6 layout.
* sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat64): Export at both
GLIBC_2.1 and GLIBC_2.2.
* sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat64): Likewise.
* sysdeps/unix/sysv/linux/i386/xstat.c (__xstat64): Likewise.
* sysdeps/unix/sysv/linux/i386/getdents64.c: New.
* sysdeps/unix/sysv/linux/i386/olddirent.h: New.
* sysdeps/unix/sysv/linux/i386/readdir64.c: New.
* sysdeps/unix/sysv/linux/i386/readdir64_r.c: New.
* sysdeps/unix/sysv/linux/i386/scandir64.c: New.
* sysdeps/unix/sysv/linux/i386/alphasort64.c: New.
* sysdeps/unix/sysv/linux/i386/versionsort64.c: New.
* sysdeps/unix/sysv/linux/ia64/getdents.c: New.
* sysdeps/unix/sysv/linux/ia64/getdents64.c: New.
* sysdeps/unix/sysv/linux/ia64/readdir.c: Include alpha/readdir.c.
* sysdeps/unix/sysv/linux/ia64/readdir_r.c: Include alpha/readdir_r.c.
* sysdeps/unix/sysv/linux/mips/bits/types.h (__ino64_t): Change to
__u_quad_t.
* sysdeps/unix/sysv/linux/powerpc/bits/stat.h: New.
* sysdeps/unix/sysv/linux/powerpc/kernel_stat.h (_HAVE_STAT*): Define.
* sysdeps/unix/sysv/linux/powerpc/scandir64.c: New.
* sysdeps/unix/sysv/linux/powerpc/getdents64.c: New.
* sysdeps/unix/sysv/linux/powerpc/readdir64.c: New.
* sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: New.
* sysdeps/unix/sysv/linux/sparc/bits/types.h (__ino64_t): Change to
__u_quad_t.
* sysdeps/unix/sysv/linux/sparc/bits/stat.h: New.
* sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h (_HAVE_STAT*):
Define.
* sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: New.
* sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: New.
* sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: New.
* sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: New.
* sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h (_HAVE_STAT*):
Define.
* sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c: Include
alpha/readdir.c.
* sysdeps/unix/sysv/linux/sparc/sparc64/readdir_r.c: Include
alpha/readdir_r.c
* sysdeps/unix/sysv/linux/sparc/sparc64/getdents.c: New.
* sysdeps/unix/sysv/linux/sparc/sparc64/getdents64.c: New.
* sysdeps/unix/sysv/linux/fxstat64.c (__fxstat64): If
_HAVE_STAT64___ST_INO and __st_ino != (uint32_t)st_ino, set
st_ino from __st_ino.
* sysdeps/unix/sysv/linux/lxstat64.c (__lxstat64): Likewise.
* sysdeps/unix/sysv/linux/xstat64.c (__xstat64): Likewise.
* sysdeps/unix/sysv/linux/xstatconv.c (xstat_conv, xstat64_conv,
xstat32_conv): Use _HAVE_STAT* macros. If _HAVE_STAT64___ST_INO,
set __st_ino in addition to st_ino.
* sysdeps/unix/sysv/linux/kernel_stat.h (_HAVE_STAT*): Define.
* sysdeps/unix/sysv/linux/getdents.c: Use it for __getdents64 and
__old_getdents64 as well.
* sysdeps/unix/sysv/linux/getdirentries.c: Use it for
getdirentries64 and old_getdirentries64 as well.
* sysdeps/unix/sysv/linux/getdirentries64.c (GETDIRENTRIES,
__GETDENTS): Define.
(GETDENTS64): Remove.
* sysdeps/unix/sysv/linux/getdents64.c (__GETDENTS, DIRENT_TYPE):
Define.
(GETDENTS64): Remove.
* sysdeps/unix/sysv/linux/readdir64.c: Use sysdeps/unix/readdir.c.
* sysdeps/unix/sysv/linux/readdir64_r.c: Use sysdeps/unix/readdir_r.c.
* sysdeps/unix/readdir.c: Use it for readdir64 and __old_readdir64
as well.
* sysdeps/unix/readdir_r.c: Use it for readdir64_r and
__old_readdir64_r as well.
* sysdeps/unix/sysv/linux/kernel-features.h: Define
__ASSUME_ST_INO_64_bit for kernel 2.4.1 and up.
* sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Add SI_KERNEL define.
2000-08-12 13:14:52 +08:00
|
|
|
# define __ASSUME_ST_INO_64_BIT 1
|
|
|
|
#endif
|
2000-08-12 16:22:14 +08:00
|
|
|
|
|
|
|
/* To support locking of large files a new fcntl() syscall was introduced
|
|
|
|
in 2.4.0-test7. We test for 2.4.1 for the earliest version we know
|
|
|
|
the syscall is available. */
|
2000-08-13 06:05:11 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 132097 && (defined __i386__ || defined __sparc__)
|
2000-08-12 16:22:14 +08:00
|
|
|
# define __ASSUME_FCNTL64 1
|
|
|
|
#endif
|
Update.
2000-08-14 Jakub Jelinek <jakub@redhat.com>
* dirent/Versions (getdirentries64): Export at GLIBC_2.2.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_GETDENTS64_SYSCALL): Define.
* sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
syscall if available to get d_type fields.
* sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
* sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
__lxstat64): Export at GLIBC_2.2.
(alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
Likewise.
* sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
* sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
* sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
getdirentries64, versionsort64): Remove.
* sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
getdirentries64, versionsort64): Remove.
2000-08-15 01:41:59 +08:00
|
|
|
|
2003-07-03 16:51:46 +08:00
|
|
|
/* The AT_CLKTCK auxiliary vector entry was introduction in the 2.4.0
|
|
|
|
series. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132097
|
|
|
|
# define __ASSUME_AT_CLKTCK 1
|
|
|
|
#endif
|
|
|
|
|
2001-04-29 20:30:59 +08:00
|
|
|
/* Arm got fcntl64 in 2.4.4, PowerPC and SH have it also in 2.4.4 (I
|
2002-09-17 15:53:26 +08:00
|
|
|
don't know when it got introduced). But PowerPC64 does not support
|
|
|
|
separate FCNTL64 call, FCNTL is already 64-bit */
|
2001-04-29 22:19:13 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 132100 \
|
2002-09-17 15:53:26 +08:00
|
|
|
&& (defined __arm__ || defined __powerpc__ || defined __sh__) \
|
|
|
|
&& !defined __powerpc64__
|
2001-04-29 20:30:59 +08:00
|
|
|
# define __ASSUME_FCNTL64 1
|
|
|
|
#endif
|
|
|
|
|
Update.
2000-08-14 Jakub Jelinek <jakub@redhat.com>
* dirent/Versions (getdirentries64): Export at GLIBC_2.2.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_GETDENTS64_SYSCALL): Define.
* sysdeps/unix/sysv/linux/getdents.c (__getdents): Use getdents64
syscall if available to get d_type fields.
* sysdeps/unix/sysv/linux/alpha/getdents.c (DIRENT_TYPE): Define.
* sysdeps/unix/sysv/linux/arm/Versions (__xstat64, __fxstat64,
__lxstat64): Export at GLIBC_2.2.
(alphasort64, readdir64, readdir64_r, scandir64, versionsort64):
Likewise.
* sysdeps/unix/sysv/linux/i386/Versions (getdirentries64): Remove.
* sysdeps/unix/sysv/linux/i386/getdents64.c (kernel_dirent64): Define.
* sysdeps/unix/sysv/linux/powerpc/Versions (alphasort64,
getdirentries64, versionsort64): Remove.
* sysdeps/unix/sysv/linux/sparc/sparc32/Versions (alphasort64,
getdirentries64, versionsort64): Remove.
2000-08-15 01:41:59 +08:00
|
|
|
/* The getdents64 syscall was introduced in 2.4.0-test7. We test for
|
|
|
|
2.4.1 for the earliest version we know the syscall is available. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132097
|
|
|
|
# define __ASSUME_GETDENTS64_SYSCALL 1
|
|
|
|
#endif
|
2000-09-07 14:21:02 +08:00
|
|
|
|
|
|
|
/* When did O_DIRECTORY became available? Early in 2.3 but when?
|
|
|
|
Be safe, use 2.3.99. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131939
|
2001-05-20 19:56:03 +08:00
|
|
|
# define __ASSUME_O_DIRECTORY 1
|
2000-09-07 14:21:02 +08:00
|
|
|
#endif
|
2001-01-19 13:16:45 +08:00
|
|
|
|
|
|
|
/* Starting with one of the 2.4.0 pre-releases the Linux kernel passes
|
|
|
|
up the page size information. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132097
|
2001-05-20 19:56:03 +08:00
|
|
|
# define __ASSUME_AT_PAGESIZE 1
|
2001-01-19 13:16:45 +08:00
|
|
|
#endif
|
2001-04-11 12:42:14 +08:00
|
|
|
|
2002-07-21 01:31:30 +08:00
|
|
|
/* Starting with at least 2.4.0 the kernel passes the uid/gid unconditionally
|
|
|
|
up to the child. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132097
|
|
|
|
# define __ASSUME_AT_XID 1
|
|
|
|
#endif
|
|
|
|
|
2003-01-13 03:40:05 +08:00
|
|
|
/* Starting with 2.4.5 kernels PPC passes the AUXV in the standard way
|
|
|
|
and the vfork syscall made it into the official kernel. */
|
2001-05-20 19:56:03 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= (132096+5) && defined __powerpc__
|
|
|
|
# define __ASSUME_STD_AUXV 1
|
2003-01-13 03:40:05 +08:00
|
|
|
# define __ASSUME_VFORK_SYSCALL 1
|
2002-09-17 15:53:26 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Starting with 2.4.5 kernels the mmap2 syscall made it into the official
|
|
|
|
kernel. But PowerPC64 does not support a separate MMAP2 call. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= (132096+5) && defined __powerpc__ \
|
|
|
|
&& !defined __powerpc64__
|
2001-05-20 19:56:03 +08:00
|
|
|
# define __ASSUME_MMAP2_SYSCALL 1
|
2001-04-11 12:42:14 +08:00
|
|
|
#endif
|
2001-04-26 04:20:41 +08:00
|
|
|
|
2003-02-21 06:23:34 +08:00
|
|
|
/* Starting with 2.4.21 PowerPC implements the new prctl syscall.
|
2003-02-02 04:53:16 +08:00
|
|
|
This allows applications to get/set the Floating Point Exception Mode. */
|
2003-02-21 06:23:34 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= (132096+21) && defined __powerpc__
|
2003-02-02 04:53:16 +08:00
|
|
|
# define __ASSUME_NEW_PRCTL_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
2003-07-15 05:16:43 +08:00
|
|
|
/* Starting with 2.4.21 the PowerPC32 clone syscall works as expected. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= (132096+21) && defined __powerpc__ \
|
|
|
|
&& !defined __powerpc64__
|
|
|
|
# define __ASSUME_FIXED_CLONE_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
2003-02-02 04:53:16 +08:00
|
|
|
/* Starting with 2.4.21 PowerPC64 implements the new rt_sigreturn syscall.
|
|
|
|
The new rt_sigreturn takes an ucontext pointer allowing rt_sigreturn
|
|
|
|
to be used in the set/swapcontext implementation. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= (132096+21) && defined __powerpc64__
|
|
|
|
# define __ASSUME_NEW_RT_SIGRETURN_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
2002-08-02 09:27:46 +08:00
|
|
|
/* On x86, the set_thread_area syscall was introduced in 2.5.29, but its
|
2002-10-05 14:52:02 +08:00
|
|
|
semantics was changed in 2.5.30, and again after 2.5.31. */
|
2002-08-15 21:04:07 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 132384 && defined __i386__
|
2002-08-02 09:27:46 +08:00
|
|
|
# define __ASSUME_SET_THREAD_AREA_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
2003-03-27 10:45:47 +08:00
|
|
|
/* The vfork syscall on x86 and arm was definitely available in 2.4. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132097 && (defined __i386__ || defined __arm__)
|
2002-10-16 12:42:33 +08:00
|
|
|
# define __ASSUME_VFORK_SYSCALL 1
|
|
|
|
#endif
|
|
|
|
|
2001-04-26 04:20:41 +08:00
|
|
|
/* There are an infinite number of PA-RISC kernel versions numbered
|
|
|
|
2.4.0. But they've not really been released as such. We require
|
|
|
|
and expect the final version here. */
|
|
|
|
#ifdef __hppa__
|
|
|
|
# define __ASSUME_32BITUIDS 1
|
|
|
|
# define __ASSUME_TRUNCATE64_SYSCALL 1
|
|
|
|
# define __ASSUME_MMAP2_SYSCALL 1
|
|
|
|
# define __ASSUME_STAT64_SYSCALL 1
|
|
|
|
# define __ASSUME_IPC64 1
|
|
|
|
# define __ASSUME_ST_INO_64_BIT 1
|
|
|
|
# define __ASSUME_FCNTL64 1
|
|
|
|
# define __ASSUME_GETDENTS64_SYSCALL 1
|
|
|
|
#endif
|
2002-12-19 16:41:52 +08:00
|
|
|
|
* sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT) Unset for alpha. (__ASSUME_TIMEVAL64): Set for alpha. * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove adjtimex, osf_sigprocmask, old_adjtimex. * sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL, __ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable. * sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64. * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise. * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise. * sysdeps/unix/sysv/linux/alpha/select.S: Likewise. * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise. * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise. * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise. * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise. * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline PIC code sequence. * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise. * sysdeps/unix/sysv/linux/alpha/sigaction.c: New file. * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL. * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise. * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise. * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask, sys_ustat, sys_mknod, adjtimex, old_adjtimex. * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't defer to __syscall_name; error for rt_sigaction. * sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2003-06-20 Richard Henderson <rth@redhat.com>
* sysdeps/unix/alpha/sysdep.h (INLINE_SYSCALL1): Use __builtin_expect.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ST_INO_64_BIT)
Unset for alpha.
(__ASSUME_TIMEVAL64): Set for alpha.
* sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove
adjtimex, osf_sigprocmask, old_adjtimex.
* sysdeps/unix/sysv/linux/alpha/adjtime.c: Use INLINE_SYSCALL,
__ASSUME_TIMEVAL64. Reorg tv64 functions to avoid uninit variable.
* sysdeps/unix/sysv/linux/alpha/getitimer.S: Use __ASSUME_TIMEVAL64.
* sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Streamline
PIC code sequence.
* sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
* sysdeps/unix/sysv/linux/alpha/sigaction.c: New file.
* sysdeps/unix/sysv/linux/alpha/sigprocmask.c: Use INLINE_SYSCALL.
* sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove osf_sigprocmask,
sys_ustat, sys_mknod, adjtimex, old_adjtimex.
* sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL): Don't
defer to __syscall_name; error for rt_sigaction.
* sysdeps/unix/sysv/linux/alpha/xstatconv.c: Include kernel_stat.h.
2003-06-21 00:24:36 +08:00
|
|
|
/* Alpha switched to a 64-bit timeval sometime before 2.2.0. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 131584 && defined __alpha__
|
|
|
|
# define __ASSUME_TIMEVAL64 1
|
|
|
|
#endif
|
|
|
|
|
2003-04-06 03:57:35 +08:00
|
|
|
#if defined __mips__ && defined _ABIN32 && _MIPS_SIM == _ABIN32
|
|
|
|
# define __ASSUME_FCNTL64 1
|
|
|
|
#endif
|
|
|
|
|
2002-12-19 16:41:52 +08:00
|
|
|
/* The late 2.5 kernels saw a lot of new CLONE_* flags. Summarize
|
|
|
|
their availability with one define. The changes were made first
|
|
|
|
for i386 and the have to be done separately for the other archs.
|
|
|
|
For i386 we pick 2.5.50 as the first version with support. */
|
2002-12-19 17:18:01 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 132402 && defined __i386__
|
2002-12-19 16:41:52 +08:00
|
|
|
# define __ASSUME_CLONE_THREAD_FLAGS 1
|
|
|
|
#endif
|
2003-01-10 22:09:38 +08:00
|
|
|
|
|
|
|
/* These features were surely available with 2.4.12. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132108 && defined __mc68000__
|
|
|
|
# define __ASSUME_MMAP2_SYSCALL 1
|
|
|
|
# define __ASSUME_TRUNCATE64_SYSCALL 1
|
|
|
|
# define __ASSUME_STAT64_SYSCALL 1
|
|
|
|
# define __ASSUME_FCNTL64 1
|
|
|
|
# define __ASSUME_VFORK_SYSCALL 1
|
|
|
|
#endif
|
2003-03-03 12:57:09 +08:00
|
|
|
|
|
|
|
/* Beginning with 2.5.63 support for realtime and monotonic clocks and
|
|
|
|
timers based on them is available. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132415
|
|
|
|
# define __ASSUME_POSIX_TIMERS 1
|
|
|
|
#endif
|
2003-03-12 03:02:26 +08:00
|
|
|
|
|
|
|
/* The late 2.5 kernels saw a lot of new CLONE_* flags. Summarize
|
|
|
|
their availability with one define. The changes were made first
|
|
|
|
for i386 and the have to be done separately for the other archs.
|
2003-11-14 00:40:13 +08:00
|
|
|
For ia64, s390*, PPC, x86-64 we pick 2.5.64 as the first version
|
|
|
|
with support. */
|
2003-03-12 03:02:26 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 132416 \
|
2003-11-14 00:40:13 +08:00
|
|
|
&& (defined __ia64__ || defined __s390__ || defined __powerpc__ \
|
|
|
|
|| defined __x86_64__)
|
2003-03-12 03:02:26 +08:00
|
|
|
# define __ASSUME_CLONE_THREAD_FLAGS 1
|
|
|
|
#endif
|
2003-03-29 15:26:59 +08:00
|
|
|
|
|
|
|
/* With kernel 2.4.17 we always have netlink support. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= (132096+17)
|
|
|
|
# define __ASSUME_NETLINK_SUPPORT 1
|
|
|
|
#endif
|
|
|
|
|
2003-05-26 10:47:39 +08:00
|
|
|
/* The requeue futex functionality was introduced in 2.5.70. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132422
|
|
|
|
# define __ASSUME_FUTEX_REQUEUE 1
|
|
|
|
#endif
|
2003-06-25 02:59:03 +08:00
|
|
|
|
|
|
|
/* The statfs64 syscalls are available in 2.5.74. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132426
|
|
|
|
# define __ASSUME_STATFS64 1
|
|
|
|
#endif
|
2003-06-27 03:54:29 +08:00
|
|
|
|
|
|
|
/* Starting with at least 2.5.74 the kernel passes the setuid-like exec
|
|
|
|
flag unconditionally up to the child. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132426
|
|
|
|
# define __ASSUME_AT_SECURE 1
|
|
|
|
#endif
|
2003-07-08 11:40:49 +08:00
|
|
|
|
|
|
|
/* Starting with the 2.5.75 kernel the kernel fills in the correct value
|
|
|
|
in the si_pid field passed as part of the siginfo_t struct to signal
|
|
|
|
handlers. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132427
|
|
|
|
# define __ASSUME_CORRECT_SI_PID 1
|
|
|
|
#endif
|
|
|
|
|
2003-07-15 05:16:43 +08:00
|
|
|
/* The tgkill syscall was instroduced for i386 in 2.5.75. For Alpha
|
|
|
|
it was introduced in 2.6.0-test1 which unfortunately cannot be
|
2003-11-14 00:40:13 +08:00
|
|
|
distinguished from 2.6.0. On x86-64 it was introduced in
|
|
|
|
2.6.0-test3. */
|
2003-07-15 05:16:43 +08:00
|
|
|
#if (__LINUX_KERNEL_VERSION >= 132427 && defined __i386__) \
|
2003-11-14 00:40:13 +08:00
|
|
|
|| (__LINUX_KERNEL_VERSION >= 132609 && defined __alpha__) \
|
|
|
|
|| (__LINUX_KERNEL_VERSION >= 132609 && defined __x86_64__)
|
2003-07-08 11:40:49 +08:00
|
|
|
# define __ASSUME_TGKILL 1
|
|
|
|
#endif
|
2003-07-12 16:23:50 +08:00
|
|
|
|
2003-07-13 02:48:39 +08:00
|
|
|
/* The utimes syscall has been available for some architectures
|
2003-11-14 00:40:13 +08:00
|
|
|
forever. For x86 it was introduced after 2.5.75, for x86-64 in
|
|
|
|
2.6.0-test3. */
|
2003-07-13 02:48:39 +08:00
|
|
|
#if defined __alpha__ || defined __ia64__ || defined __hppa__ \
|
|
|
|
|| defined __sparc__ \
|
2003-11-14 00:40:13 +08:00
|
|
|
|| (__LINUX_KERNEL_VERSION > 132427 && defined __i386__) \
|
|
|
|
|| (__LINUX_KERNEL_VERSION > 132609 && defined __x86_64__)
|
2003-07-12 16:23:50 +08:00
|
|
|
# define __ASSUME_UTIMES 1
|
|
|
|
#endif
|
2003-08-03 13:23:52 +08:00
|
|
|
|
|
|
|
/* The CLONE_STOPPED flag was introduced in the 2.6.0-test1 series. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132609
|
|
|
|
# define __ASSUME_CLONE_STOPPED 1
|
|
|
|
#endif
|
2003-08-16 14:21:46 +08:00
|
|
|
|
|
|
|
/* The fixed version of the posix_fadvise64 syscall appeared in
|
2003-11-14 00:49:49 +08:00
|
|
|
2.6.0-test3. At least for x86. */
|
2003-11-27 13:24:58 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 132609 && defined __i386__
|
2003-08-16 14:21:46 +08:00
|
|
|
# define __ASSUME_FADVISE64_64_SYSCALL 1
|
|
|
|
#endif
|
2003-11-27 13:24:58 +08:00
|
|
|
|
|
|
|
/* The PROT_GROWSDOWN/PROT_GROWSUP flags were introduced in the 2.6.0-test
|
|
|
|
series. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132609
|
|
|
|
# define __ASSUME_PROT_GROWSUPDOWN 1
|
|
|
|
#endif
|
Update.
2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
* include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
(_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
(_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
symbols.
* sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
gen-as-const-headers.
* sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
* sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
Declare mcontext_t inline and include altivec state for 64-bit.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, and swapcontext.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, swapcontext, and makecontext.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
(__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_getcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
(__makecontext): Use parm save area instead of compiler_dw to hold
context pointer.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
(__setcontext): Upgrade to restore Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_setcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
(__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_swapcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
(SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, swapcontext, and makecontext.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
(__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_getcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
(__makecontext): Upgrade to align for Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_makecontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
(__setcontext): Upgrade to restore Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_setcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
(__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
(__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
(_UC_VSCR, _UC_VRSAVE): Define.
(_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
_FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
2004-01-16 12:50:59 +08:00
|
|
|
|
2004-01-21 09:30:36 +08:00
|
|
|
/* Starting with 2.6.0 PowerPC adds signal/swapcontext support for Vector
|
|
|
|
SIMD (AKA Altivec, VMX) instructions and register state. This changes
|
Update.
2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
* include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
(_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
(_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
symbols.
* sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
gen-as-const-headers.
* sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
* sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
Declare mcontext_t inline and include altivec state for 64-bit.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, and swapcontext.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, swapcontext, and makecontext.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
(__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_getcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
(__makecontext): Use parm save area instead of compiler_dw to hold
context pointer.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
(__setcontext): Upgrade to restore Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_setcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
(__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_swapcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
(SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, swapcontext, and makecontext.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
(__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_getcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
(__makecontext): Upgrade to align for Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_makecontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
(__setcontext): Upgrade to restore Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_setcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
(__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
(__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
(_UC_VSCR, _UC_VRSAVE): Define.
(_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
_FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
2004-01-16 12:50:59 +08:00
|
|
|
the overall size of the sigcontext and adds the swapcontext syscall. */
|
2004-01-21 09:30:36 +08:00
|
|
|
#if __LINUX_KERNEL_VERSION >= 132608 && defined __powerpc__
|
Update.
2004-01-14 Steven Munroe <sjmunroe@us.ibm.com>
* include/libc-symbols.h [HAVE_ASM_GLOBAL_DOT_NAME]
(_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed symbols.
(_default_symbol_version): Use C_SYMBOL_DOT_NAME to create '.'ed
symbols.
* sysdeps/powerpc/Makefile: Add rtld-global-offsets.sym to
gen-as-const-headers.
* sysdeps/powerpc/elf/rtld-global-offsets.sym: New file.
* sysdeps/powerpc/sysdep.h: Define v# symbols for vector registers.
Define PPC_FEATURE_* masks for Aux Vector AT_HWCAP.
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_SWAPCONTEXT_SYSCALL): Define for PPC and 2.6.0 kernels.
* sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h [!__WORDSIZE == 32]:
Declare mcontext_t inline and include altivec state for 64-bit.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, and swapcontext.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, swapcontext, and makecontext.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
(__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_getcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
(__makecontext): Use parm save area instead of compiler_dw to hold
context pointer.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
(__setcontext): Upgrade to restore Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_setcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
(__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3, GLIBC_2_3_4)](__novec_swapcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h
(SIGCONTEXT_V_REGS_PTR, SIGCONTEXT_V_RESERVE): Defined.
2004-01-12 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: Add GLIBC_2.3.4
versions for setcontext, getcontext, swapcontext, and makecontext.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
(__getcontext): Upgrade to save Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_getcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S
(__makecontext): Upgrade to align for Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_makecontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
(__setcontext): Upgrade to restore Altivec regs and version
GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)](__novec_setcontext):
Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
(__swapcontext): Upgrade to swap Altivec regs and version GLIBC_2_3_4.
[SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4)]
(__novec_swapcontext): Compatible with GLIBC_2.3.3 release.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h:
(_UC_VSCR, _UC_VRSAVE): Define.
(_FRAME_BACKCHAIN, _FRAME_LR_SAVE,_FRAME_PARM_SAVE1,_FRAME_PARM_SAVE2,
_FRAME_PARM_SAVE3, _FRAME_PARM_SAVE4): Defined.
2004-01-16 12:50:59 +08:00
|
|
|
# define __ASSUME_SWAPCONTEXT_SYSCALL 1
|
|
|
|
#endif
|
2004-01-21 09:30:36 +08:00
|
|
|
|
|
|
|
/* The CLONE_DETACHED flag is not necessary in 2.6.2 kernels, it is
|
|
|
|
implied. */
|
|
|
|
#if __LINUX_KERNEL_VERSION >= 132610
|
|
|
|
# define __ASSUME_NO_CLONE_DETACHED 1
|
|
|
|
#endif
|