Commit Graph

4063 Commits

Author SHA1 Message Date
Joseph Myers
2e8a5c8c46 Remove bp-semctl.h and CHECK_SEMCTL. 2013-01-31 22:59:04 +00:00
Joseph Myers
c2d549290d Remove bp-thunks code. 2013-01-31 22:57:06 +00:00
Pino Toscano
67b3f58c83 ulimit: remove buggy bsd implementation
The bsd implementation of ulimit produces wrong return values, so remove it
in favour of the posix implementation.

The only regression for non-Linux implementations using bsd sysdeps and not
providing an own ulimit is that the __UL_GETMAXBRK case (which is non-standard)
is left unimplemented (giving EINVAL).
2013-01-23 17:29:35 +01:00
Pino Toscano
9cbbc4aebe ulimit: move linux implementation as posix
The linux implementation of ulimit works correctly and has nothing specific
to Linux, so move it as general posix implementation.
2013-01-23 17:25:53 +01:00
Joseph Myers
052aff9578 Make bits/wchar.h correct for all architectures (bug 15036). 2013-01-23 00:42:51 +00:00
Anton Blanchard
471a1672d4 PowerPC: Rename __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
In order for the __kernel_get_tbfreq vDSO call to work the
INTERNAL_VSYSCALL_NCS macro needed to be updated to prevent it from
assuming an integer return type (since the timebase frequency is a 64-bit
value) by specifying the type of the return type as a macro parameter.  The
macro then specifically declares the return value as a 'register' (or
implied pair) of the denoted type.  The compiler is then informed that this
register (or implied pair) is to be used for the return value.
2013-01-18 07:44:38 -06:00
Pino Toscano
2a26ef3a01 Add HAVE_MREMAP for mremap usage
Introduce (only on Linux) and use a HAVE_MREMAP symbol to advertize mremap
availability.

Move the malloc-sysdep.h include from arena.c to malloc.c, since what is
provided by malloc-sysdep.h is needed earlier in malloc.c, before the inclusion
of arena.c.
2013-01-17 21:08:12 +01:00
Mike Frysinger
357679d2fc scsi/sg.h: include stddef.h for size_t
This header uses size_t but doesn't include stddef.h for it.  So when
packages happen to include this before any header that defines size_t,
they get a build failure.

Reviewed-by: Carlos O'Donell <codonell@redhat.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-01-15 12:56:21 -05:00
David S. Miller
8794a96418 Adjust sparc for Roland's multiarch sysdep directory changes.
* sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
	Move to...
	* sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
	Here.
2013-01-11 18:04:10 -08:00
Joseph Myers
6a57d93130 Remove __GLIBC_HAVE_LONG_LONG. 2013-01-11 21:13:25 +00:00
Andreas Jaeger
c6fe55cf60 Add MSG_FASTOPEN
[BZ #15003]
	* sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
	value. Sync with Linux 3.7.
2013-01-11 11:53:13 +01:00
Joseph Myers
828beb132d Use __extension__ with long long in installed headers. 2013-01-10 20:19:45 +00:00
H.J. Lu
1a20cb20ff Correct _XXX_ILP32_OFFBIG for x32 2013-01-10 08:38:48 -08:00
Andreas Schwab
557eead076 Revert "Use ieee754/dbl-64/wordsize-64 on powerpc64"
This reverts commit 7a9d2c3971.
2013-01-10 10:44:05 +01:00
Andreas Schwab
7a9d2c3971 Use ieee754/dbl-64/wordsize-64 on powerpc64
* sysdeps/ieee754/ldbl-opt/wordsize-64/s_ceil.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_finite.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_floor.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_frexp.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_isinf.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_isnan.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_llround.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_logb.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_lround.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_modf.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_nearbyint.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_remquo.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_rint.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_round.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_scalbln.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_scalbn.c: New file.
	* sysdeps/ieee754/ldbl-opt/wordsize-64/s_trunc.c: New file.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/Implies: Add
	ieee754/ldbl-opt/wordsize-64.
	* sysdeps/powerpc/powerpc64/Implies: Add
	ieee754/dbl-64/wordsize-64.
2013-01-10 09:59:58 +01:00
Andreas Schwab
988197f0cc Define flags for fallocate 2013-01-10 09:59:57 +01:00
Anton Blanchard
d5e0b9bd6e PowerPC: Change sched_getcpu to use vDSO getcpu instead of syscall. 2013-01-09 20:30:11 -06:00
Joseph Myers
eede9df980 Don't check __GNUC__ together with __USE_EXTERN_INLINES. 2013-01-08 20:08:56 +00:00
Andreas Jaeger
c40ea3d9a3 BZ#14985: Remove erroneous EPOLL_NONBLOCK
[BZ# 14985]
	* sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
	Remove.
	* sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK):
	Likewise.
	* sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK):
	Likewise.

ChangeLog.mips:
	[BZ# 14985]
	* sysdeps/unix/sysv/linux/mips/bits/epoll.h (EPOLL_NONBLOCK):
	* Remove.

ChangeLog.hppa:
	[BZ# 14985]
	* sysdeps/unix/sysv/linux/hppa/sys/epoll.h (EPOLL_NONBLOCK):
	Remove.

ChangeLog.alpha:
	[BZ# 14985]
	* sysdeps/unix/sysv/linux/alpha/bits/epoll.h (EPOLL_NONBLOCK):
	Remove.
2013-01-08 19:32:00 +01:00
Joseph Myers
568035b787 Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
Joseph Myers
f4cf5f2d8b Add script to update copyright notices and reformat some to facilitate its use. 2013-01-01 16:29:10 +00:00
Mike Frysinger
e933a9432c linux: posix_fadvise: support __NR_fadvise64_64
Some arches do not have a __NR_fadvise64 but do have __NR_fadvise64_64.
If the former is unavailable, fallback to the latter.

Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-12-06 20:00:43 -05:00
Siddhesh Poyarekar
f16946dd9c Fix "set but not used" warnings for powerpc64 2012-12-06 20:20:45 +05:30
Joseph Myers
20f0018d92 Fix powerpc32 "set but not used" warnings from INTERNAL_SYSCALL_DECL. 2012-12-04 14:40:17 +00:00
Mike Frysinger
37db69de1d clock_getcpuclockid: delete unused HAS_CPUCLOCK
In commit 26889eacc2 (Remove
__ASSUME_POSIX_CPU_TIMERS), all users of HAS_CPUCLOCK were
dropped.  Punt the fallback definition too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-11-29 19:31:40 -05:00
Andreas Schwab
4cc34c3511 Revert "2012-11-07 Andreas Jaeger <aj@suse.de>"
This reverts commit 01f34a3bd8.

The issue has been fixed in the kernel.
2012-11-28 16:19:03 +01:00
Carlos O'Donell
105ce2ce62 Document syscall signature prefixes in sysdep/unix/make-syscalls.sh 2012-11-20 14:40:34 -05:00
Thomas Schwinge
123be9deda Add recvmmsg and sendmmsg to the generic glibc API. 2012-11-20 19:26:04 +01:00
Joseph Myers
12df29e2d2 Include string.h in sysdeps/unix/sysv/linux/fxstatat.c. 2012-11-17 03:43:53 +00:00
David S. Miller
640ac3f1bf Fix check-localplt regressions on sparc.
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
	inttypes.h
	(__get_clockfreq_via_proc_openprom): Use __open, __read, and
	__close rather than their public counterparts.
2012-11-11 15:46:01 -08:00
Joseph Myers
8b748aed2a Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
Andreas Jaeger
2c1adbcb76 PowerPC: Use <bits/fcntl-linux.h>
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
	definitions and declarations that are provided by
	<bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
2012-11-09 16:41:38 +01:00
Andreas Krebbel
d0f8457e6b S/390: Add hwcap value for transactional execution. 2012-11-08 09:53:00 +01:00
David S. Miller
60e8270d6c Fix NULL ucontext->uc_link handling on sparc64.
* sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
	* sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
	(__start_context): Declare.
	(__makecontext_ret): Delete.
	(__makecontext): Hook up __start_context instead of
	__makecontext_ret.
	* sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
	(sysdep_routines): Add __start_context when in stdlib.
2012-11-07 21:01:06 -08:00
Jeff Law
01f34a3bd8 2012-11-07 Andreas Jaeger <aj@suse.de>
[BZ #14809]
        * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
        (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
        guards are changed.  Only define if not yet defined, #undef back
        after including linux/sysctl.h if defined here.
2012-11-07 11:58:37 -07:00
Thomas Schwinge
b830319d49 [BZ #157] Remove include/stub-tag.h for good. 2012-11-04 19:59:40 +01:00
Pino Toscano
72e182e38d Fix small indendation issues in paths.h files 2012-11-04 10:10:58 +01:00
Andreas Schwab
d6cffd3ec0 PowerPC: Fix uc_link == NULL handling for makecontex.
If the function registered with makecontext returns with a NULL context
link the process should exit with zero, not non-zero.
2012-11-01 20:10:39 -05:00
Andreas Schwab
5a03cb1e85 Fix powerpc abilist sort order 2012-10-31 23:28:48 +01:00
Tulio Magno Quites Machado Filho
90aff2ff13 Correct order of entries in powerpc libc.abilist files. 2012-10-31 17:03:55 -05:00
Andreas Jaeger
86ebe6b133 Remove redundant defines of __O_LARGEFILE
* sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
	[!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
	* sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
	[__WORDSIZE != 64]: Likewise.

	* sysdeps/unix/sysv/linux/generic/bits/fcntl.h: (__O_LARGEFILE)
	[__WORDSIZE != 64]: Do not define, take value from
	<bits/fcntl-linux.h>.
2012-10-27 13:49:30 +02:00
David S. Miller
e2211bed12 Fix sparc64 build.
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
	(__get_clockfreq_via_proc_openprom): Use strtoumax instead
	of strtoull.
2012-10-25 15:41:32 -07:00
Roland McGrath
1e9d84cdbc Use __getdents instead of __getdirentries in sparc __get_clockfreq_via_proc_openprom. 2012-10-25 14:49:28 -07:00
Roland McGrath
6e6249d0b4 BZ#14743: Move clock_* symbols from librt to libc. 2012-10-24 14:50:46 -07:00
Andreas Jaeger
9fddec1a48 F_GETLK cleanup for <bits/fcntl.h> 2012-10-24 08:54:46 +02:00
Andreas Jaeger
b4b4c2968e Fix O_RSYNC
(O_RSYNC): Define to __O_RSYNC if it exists, otherwise to O_SYNC.
2012-10-22 19:59:22 +02:00
Andreas Jaeger
2a0e2669f9 Always define __O_LARGEFILE 2012-10-22 16:23:20 +02:00
Andreas Jaeger
7cd37b437c Improve <bits/fcntl-linux.h>: F_GETLK etc.
(F_GETLK, F_SETLK, F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
2012-10-22 09:31:13 +02:00
Andreas Jaeger
1728f92d42 Install <bits/fcntl-linux.h>
(sysdep_headers): Add bits/fcntl-linux.h.
2012-10-22 09:24:14 +02:00
Andreas Jaeger
481b90b9d6 Use __O_LARGEFILE instead of O_LARGEFILE 2012-10-22 09:20:00 +02:00
Andreas Jaeger
88d4247f19 SH: Use <bits/fcntl-linux.h>
Remove all definitions and declarations that are provided by
<bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
2012-10-21 20:01:32 +02:00
Andreas Jaeger
335e6931e2 Reorganization of bits/fcntl.h for Linux
Create a new bits/fcntl-linux.h that contains Linux generic code and a
include it from the architecture specific bits/fcntl.h.

Architectures done: x86, SPARC, s390
2012-10-20 12:54:49 +02:00
Joseph Myers
ced52c719c Remove _G_OPEN64, _G_LSEEK64, _G_MMAP64, _G_FSTAT64 from _G_config.h. 2012-10-18 18:50:43 +00:00
Andreas Schwab
ca38dc17d8 Avoid PLT references from __get_clockfreq on powerpc 2012-10-12 16:54:06 +02:00
Alexandre Oliva
e745142509 * crypt/crypt-entry.c: Include fips-private.h.
(__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
* crypt/md5c-test.c (main): Tolerate disabled MD5.
* sysdeps/unix/sysv/linux/fips-private.h: New file.
* sysdeps/generic/fips-private.h: New file, dummy fallback.
2012-10-10 07:05:46 -03:00
Roland McGrath
b8493de0ec Add missing magic to GLIBC_PROVIDES. 2012-10-09 15:41:30 -07:00
Joseph Myers
c8450f70fa Remove _G_off64_t and _G_stat64 from _G_config.h. 2012-10-09 15:09:32 +00:00
Andreas Schwab
1ab2935061 Fix missing include in sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c 2012-10-08 12:13:39 +02:00
Khem Raj
c2b598a945 powerpc: add name_to_handle_at, open_by_handle etc. to bits/fcntl.h
Fixes BZ #14251.
2012-10-04 23:24:45 -04:00
Roland McGrath
9043e2288e Name space hygeine for madvise. 2012-10-04 16:31:43 -07:00
Roland McGrath
010188c6ea Remove sysdeps/unix/bsd/confstr.h file. 2012-10-03 13:43:58 -07:00
Roland McGrath
51367701af Get rid of unused __swblk_t type. 2012-10-01 14:39:29 -07:00
Roland McGrath
93c65d4384 Clean up init-first.c files. 2012-10-01 12:55:34 -07:00
Roland McGrath
ac51c94918 Move _G_config.h with Linuxism to linux/ directory. 2012-09-28 15:45:07 -07:00
Tulio Magno Quites Machado Filho
8ad11b9a9c Add __ppc_get_timebase_freq to ppc.h. 2012-09-25 16:53:14 -05:00
Siddhesh Poyarekar
9fab36eb58 Shrink heap on linux when overcommit_memory == 2
Using madvise with MADV_DONTNEED to release memory back to the kernel
is not sufficient to change the commit charge accounted against the
process on Linux.  It is OK however, when overcommit is enabled or is
heuristic.  However, when overcommit is restricted to a percentage of
memory setting the contents of /proc/sys/vm/overcommit_memory as 2, it
makes a difference since memory requests will fail.  Hence, we do what
we do with secure exec binaries, which is to call mmap on the region
to be dropped with MAP_FIXED. This internally unmaps the pages in
question and reduces the amount of memory accounted against the
process.
2012-09-25 14:30:52 +05:30
Joseph Myers
26889eacc2 Remove __ASSUME_POSIX_CPU_TIMERS. 2012-09-01 21:32:04 +00:00
Siddhesh Poyarekar
050af9c4e8 Don't make ttyname* fail if proc filesystem is not available
The ttyname and ttyname_r functions on Linux now fall back to
searching for the tty file descriptor in /dev/pts or /dev if /proc is
not available.  This allows creation of chroots without the procfs
mounted on /proc.

Fixes BZ #14516.
2012-08-29 10:04:23 +05:30
Joseph Myers
ad845c0be9 Remove __ASSUME_STAT64_SYSCALL. 2012-08-27 19:36:04 +00:00
Joseph Myers
4efcc02265 Make dl-fxstatat64.c include of fxstatat64.c use <> not "". 2012-08-23 11:34:37 +00:00
Roland McGrath
3cc3ef96d6 BZ#13696: Add --disable-nscd configure option. 2012-08-22 13:31:12 -07:00
Joseph Myers
0e1d99119e Remove __ASSUME_FADVISE64_64_SYSCALL. 2012-08-21 21:07:22 +00:00
Joseph Myers
a35cbf28fb Remove __ASSUME_SWAPCONTEXT_SYSCALL. 2012-08-20 14:39:53 +00:00
Joseph Myers
445f7ecd66 Define __ASSUME_UTIMES for s390. 2012-08-20 14:38:48 +00:00
Joseph Myers
348363b2c3 Remove __ASSUME_MMAP2_SYSCALL. 2012-08-20 14:37:27 +00:00
Andreas Krebbel
bc5bc0e510 S/390: Remove 32 bit getrlimit.c. 2012-08-20 15:10:13 +02:00
Mike Frysinger
fdab8fd335 update linux nice.c include path too after recent file shuffle
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-08-17 22:42:49 -04:00
Roland McGrath
e3b398f925 Adjust old #include's of sysdeps/unix/time.c to point to sysdeps/posix/time.c instead. 2012-08-17 14:16:12 -07:00
Roland McGrath
7c6f9d53c1 Move some things from sysdeps/unix to sysdeps/posix. 2012-08-17 13:52:32 -07:00
Roland McGrath
c31fdb83d2 Merge unix/inet/syscalls.list into unix/syscalls.list. 2012-08-17 12:56:33 -07:00
Roland McGrath
e66a42f57f Split sys/param.h out into common file and sysdeps bits/param.h file. 2012-08-17 09:55:17 -07:00
Joseph Myers
93a78ac437 Remove __ASSUME_POSIX_TIMERS. 2012-08-16 14:03:43 +00:00
Joseph Myers
f2c05b9ecf Remove __ASSUME_CLONE_THREAD_FLAGS. 2012-08-14 22:34:04 +00:00
Joseph Myers
121dce05fe Move Linux kernel version conditionals to kernel-features.h. 2012-08-10 15:53:27 +00:00
H.J. Lu
f85fa27058 Avoid DWARF definition DIE on ifunc symbols 2012-08-09 16:04:37 -07:00
Joseph Myers
b36137f1d6 Remove __ASSUME_TGKILL. 2012-08-08 23:22:53 +00:00
Roland McGrath
cdd915fd16 Missing #include updates for dirstream code move from unix to posix. 2012-08-08 09:18:37 -07:00
Joseph Myers
93df14eee8 Remove some pre-2.6.16 Linux kernel conditionals. 2012-08-07 23:03:35 +00:00
Roland McGrath
a281decc87 Move common dirent implementation from sysdeps/unix to sysdeps/posix. 2012-08-07 14:47:34 -07:00
Roland McGrath
22895b4767 Make the bsd4.4/bits/fcntl.h be the generic one. 2012-08-07 14:12:10 -07:00
Roland McGrath
707a53b600 Update bsd4.4/bits/fcntl.h to match modern NetBSD bits. 2012-08-07 14:10:37 -07:00
Roland McGrath
f0bd3e25fb Make the bsd4.4/bits/dirent.h be the generic one. 2012-08-07 13:17:26 -07:00
Roland McGrath
d34689de84 Define _DIRENT_MATCHES_DIRENT64 in bsd4.4/bits/dirent.h 2012-08-07 13:15:18 -07:00
Joseph Myers
6dad2c0688 Remove pre-2.6.16 Linux kernel support. 2012-08-07 16:40:32 +00:00
Roland McGrath
8e49df1d65 Clean up {alphasort,versionsort,scandir,scandirat}{,64} for struct dirent == struct dirent64. 2012-08-06 16:48:36 -07:00
Roland McGrath
03af952060 Clean up lockf64, fseeko64, ftello64, fgetpos64, fsetpos64 for off64_t == off_t. 2012-08-06 16:48:14 -07:00
H.J. Lu
3a31811ede Remove x32/iofopen.c and x32/iofopen64.c 2012-08-06 12:56:52 -07:00
Joseph Myers
85fe199795 Remove some pre-2.6.0 Linux kernel conditionals. 2012-08-03 19:54:08 +00:00
Joseph Myers
7aab07e4e5 Remove pre-2.6.0 Linux kernel support (bug 13717). 2012-08-03 13:42:47 +00:00
Marek Polacek
b67e9372b2 Get rid of ASM_TYPE_DIRECTIVE{,_PREFIX}. 2012-08-02 21:04:29 +02:00
Joseph Myers
23bddc0668 Remove __ASSUME_FCNTL64. 2012-08-01 21:27:58 +00:00
Joseph Myers
a9f1039f0a Remove __ASSUME_VFORK_SYSCALL (and some __NR_vfork conditionals). 2012-08-01 20:49:45 +00:00
Roland McGrath
cd97c96688 Clean up mkstemp64/mkostemp64 for O_LARGEFILE==0. 2012-08-01 10:42:38 -07:00
Roland McGrath
09c0ee5f8c BZ#14138: Move getrlimit (ugetrlimit) syscall to syscalls.list. 2012-08-01 10:25:11 -07:00
Florian Weimer
7e66ee5142 * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
Declare with warn_unused_result.
	(setgid, setregid, setegid, setresgid): Likewise.
	* sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
	Likewise.
	* WUR-REPORT: Remove set*id functions.
2012-08-01 18:12:58 +02:00
Roland McGrath
bea9b19322 Fix lots of bitrot for stub configurations. 2012-07-30 16:34:33 -07:00
Andreas Jaeger
b1b2aaf8eb Merge Linux 3.5 ptrace changes
(__ptrace_eventcodes): Add new value PTRACE_EVENT_SECCOMP from Linux 3.5.
(__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust PTRACE_O_MASK.
2012-07-26 13:13:26 +02:00
Andreas Jaeger
f8d44fdc72 Merge Linux 3.5 epoll changes
Add EPOLLWAKEUP.
2012-07-26 13:11:33 +02:00
Andreas Jaeger
bfc07087bf Merge _sigsys changes from Linux 3.5 2012-07-26 13:11:18 +02:00
Joseph Myers
89b4b02f42 Remove pre-2.4.21 Linux kernel support. 2012-07-25 21:19:13 +00:00
Andreas Schwab
842a39cd1a Remove unused pseudo_end label 2012-07-25 21:58:17 +02:00
Florian Weimer
84b3fd8407 Rename __secure_getenv to secure_getenv 2012-07-25 19:46:22 +02:00
Joseph Myers
0f48659e36 Move localplt baselines to sysdeps directories. 2012-07-20 19:20:34 +00:00
Andreas Krebbel
46f85fc226 S/390: Fix uc_link == NULL handling for makecontext 2012-07-19 15:58:17 +02:00
Joseph Myers
bd29910a8a Move c++-types baselines to sysdeps directories. 2012-07-17 14:44:06 +00:00
Thomas Schwinge
07cbfc2368 SH: makecontext: exit (0) if uc_link is the null pointer. 2012-07-17 10:06:06 +02:00
Thomas Schwinge
f7db31703a x86_64: makecontext: exit (0) if uc_link is the null pointer. 2012-07-17 10:06:02 +02:00
Joseph Myers
ec332e944f Remove pre-2.4.1 Linux kernel support. 2012-07-12 12:31:32 +00:00
Andreas Schwab
4d0ee85545 SH can do fanotify_mark, too. 2012-06-23 12:34:58 +02:00
Thomas Schwinge
58f902b8d8 SH: Preserve more registers for frame unwinding purposes, add CFI directives. 2012-06-23 12:11:13 +02:00
Thomas Schwinge
1518f58b61 SH: Optimize assembler code in context of call to __fortify_fail.
__fortify_fail has »__attribute__ ((__noreturn__))«.
2012-06-23 12:07:04 +02:00
Thomas Schwinge
db9b505976 SH: ____longjmp_chk for GNU/Linux with sigaltstack support.
debug/tst-longjmp_chk2 now passes.
2012-06-23 11:56:02 +02:00
Thomas Schwinge
967705fee1 SH: ABORT_INSTRUCTION. 2012-06-23 11:47:39 +02:00
Thomas Schwinge
a9def8c49d SH: makecontext/.Lexitcode: Always initialize the GOT register before use.
This is only relevant when returning from a context with »uc_link == NULL«,
which is not exercised in the testsuite.
2012-06-23 11:42:29 +02:00
Thomas Schwinge
2a649725b9 SH: makecontext: Fix calculation of ARGC > 4.
stdlib/tst-setcontext and stdlib/tst-makecontext3 now pass.
2012-06-23 11:28:23 +02:00
Thomas Schwinge
af1bce34ef SH: makecontext: Improve understandability. 2012-06-23 11:22:47 +02:00
Kaz Kojima
d230f50a06 Fix gUSA sequence in SH atomic functions in
sysdeps/unix/sysv/linux/sh/bits/atomic.h.
2012-06-23 07:29:05 +09:00
Thomas Schwinge
d7b4fb26e2 Fix a typo in sysdeps/unix/Makefile. 2012-06-12 10:27:01 +02:00
Kaz Kojima
793ea8518f SH: refresh *.abilist files. 2012-06-09 18:08:02 +02:00
Mike Frysinger
1214ec8f4c tst-getcpu: decode errno when sched_getcpu fails
The tst-getcpu test is failing on ia64 platforms due to sched_getcpu
returning an error.  But the current test only considers -1 when it's
also ENOSYS.  Tweak the logic a bit to make the output clearer.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-06-04 22:22:02 -04:00
H.J. Lu
48495318fa Use x86_64 bits/sigcontext.h for i386 and x86_64 2012-06-04 12:41:38 -07:00
H.J. Lu
14adcbfc36 Update x86_64 bits/sigcontext.h from kernel 3.4.0 2012-06-04 12:40:46 -07:00
H.J. Lu
68e408ab5d Use x86_64 bits/{debugreg,reg}.h for i386 and x86-64 2012-06-04 12:32:07 -07:00
H.J. Lu
f3d1f93cfb Use x86_64 bits/{io,perm}.h for i386 and x86_64 2012-06-04 12:29:49 -07:00
Andreas Schwab
173f722045 Move __mcount_internal from GLIBC_PRIVATE to GLIBC_2.16 2012-06-02 21:21:15 +02:00
H.J. Lu
f34a1c6f5e Fix a typo in x86_64 sys/io.h 2012-06-01 17:43:26 -07:00
Joseph Myers
ea32bcdd3d Add default-abi definitions for powerpc, s390 and sparc. 2012-06-01 21:19:28 +00:00
H.J. Lu
3bd872c4c4 Use i386 sys/elf.h and sys/vm86.h for i386 and x86-64 2012-06-01 13:22:46 -07:00
H.J. Lu
3553723f3c Define DR_LEN_8 only if __x86_64__ is defined 2012-06-01 13:06:37 -07:00
H.J. Lu
29bcce7ce4 Use i386 bits/wchar.h for i386 and x86-64 2012-06-01 11:16:15 -07:00
H.J. Lu
ebc64a18c0 Support __WORDSIZE == 64 in i386 bits/wchar.h 2012-05-31 20:35:10 -07:00
H.J. Lu
edf2933a37 Use x86_64 bits/typesizes.h for i386 and x86-64 2012-05-31 19:37:43 -07:00
H.J. Lu
57c6cf4038 Use __SWORD_TYPE for __FSWORD_T_TYPE with -m32 2012-05-31 19:33:55 -07:00
H.J. Lu
8eb6281eaa Use x86_64 bits/siginfo.h for i386 and x86_64 2012-05-31 17:14:35 -07:00
H.J. Lu
aac639f42c Use x86_64 bits/stat.h for i386 and x86-64 2012-05-31 16:49:38 -07:00
H.J. Lu
67b6df7841 Update x86_64 bits/stat.h 2012-05-31 16:47:45 -07:00
H.J. Lu
12e5e0f357 Remove space before tab in indent 2012-05-31 16:17:21 -07:00
Markus Trippelsdorf
507352f1a1 Add bits/sysctl.h to sysdep_headers 2012-05-31 16:16:23 -07:00
H.J. Lu
6bd784b66b Use x86_64 bits/sysctl.h for x86-64 and i386 2012-05-31 16:12:40 -07:00
H.J. Lu
8bca20f013 Use x86_64 sys/{ucontext,user}.h for i386 and x86_64 2012-05-31 16:11:11 -07:00
H.J. Lu
f9e890a99c Use x86_64 sys/procfs.h for both i386 and x86_64 2012-05-31 16:09:40 -07:00
H.J. Lu
471101a18f Replace addr with __addr in x86_64 sys/io.h 2012-05-31 16:06:54 -07:00
H.J. Lu
6451c86222 Use x86_64 bits/mman.h for both i386 and x86_64 2012-05-31 16:05:51 -07:00
H.J. Lu
a254b8c9cb Use x86-64 bits/{msq,sem,shm}.h for i386 and x86-64 2012-05-31 16:04:12 -07:00
H.J. Lu
b8dfdd92c7 Use x86_64 bits/ipctypes.h for both i386 and x86-64 2012-05-31 16:03:09 -07:00
H.J. Lu
578cd27008 Use x86_64 bits/epoll.h for both i386 and x86_64 2012-05-31 16:02:21 -07:00
H.J. Lu
de662f5f19 Use x86_64 bits/fcntl.h for both i386 and x86_64 2012-05-31 16:01:24 -07:00
H.J. Lu
25653439fc Use x86_64 bits/environments.h for i386 and x86_64 2012-05-31 16:00:18 -07:00
H.J. Lu
6bad24a091 Use x86_64 bits/a.out.h for both i386 and x86_64 2012-05-31 15:57:54 -07:00
H.J. Lu
42bbb1c314 Add x86-64 support to i386 sys/elf.h and sys/vm86.h 2012-05-31 15:55:37 -07:00
Andreas Schwab
03277f8fe1 Remove use of INTDEF/INTUSE in socket 2012-05-31 00:34:41 +02:00
H.J. Lu
d5c9086734 Use __UWORD_TYPE for __NLINK_T_TYPE with -m32 2012-05-30 11:35:47 -07:00
Richard Henderson
8d8f2279e7 alpha: Don't symbol_version syscalls outside libc
* sysdeps/unix/make-syscalls.sh: Protect symbol_version output
        with #ifndef NOT_IN_libc.
2012-05-30 11:05:51 -07:00
H.J. Lu
0ab0291b84 Convert WORDSIZE[32|64]/ld entries to abi-variants 2012-05-30 08:33:26 -07:00
Joseph Myers
3a85279c0b Remove __ASSUME_TRUNCATE64_SYSCALL. 2012-05-30 14:52:34 +00:00
Andreas Krebbel
11ef492c80 S/390: ABI baseline update. 2012-05-29 11:04:22 +00:00
David S. Miller
d66ef399f5 Fix underflow reporting and tie up loose ends in sparc soft-fp.
* sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
	(___Q_zero): New.
	(__Q_simulate_exceptions): Return void.  Change to simulate
	exceptions by writing into the %fsr.
	* sysdeps/sparc/sparc64/soft-fp/qp_util.c
	(__Qp_handle_exceptions): Likewise.
	(numbers): Delete.
	* sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
	__Qp_handle_exceptions.
	* sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
	__Qp_handle_exceptions.
	* sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
	as unused and give dummy FP_RND_NEAREST initializer.
	(FP_INHIBIT_RESULTS): Define.
	(___Q_simulate_exceptions): Update declaration.
	(FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
	formatting.
	* sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
	as unused and give dummy FP_RND_NEAREST initializer.
	(__Qp_handle_exceptions): Update declaration.
	(FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
	formatting.
2012-05-27 21:11:42 -07:00
Chung-Lin Tang
65a4de4e06 SH: Add CFI directives. 2012-05-28 00:11:06 +02:00
Joseph Myers
a82392228a Remove __ASSUME_NEW_GETRLIMIT_SYSCALL. 2012-05-25 22:30:06 +00:00
Roland McGrath
8422c9a560 Add systemtap static probe points in setjmp/longjmp on x86. 2012-05-25 13:41:03 -07:00
Joseph Myers
21708942c9 Remove pre-2.4 Linux kernel support. 2012-05-25 19:19:30 +00:00
Roland McGrath
c14874927b syscalls.list support for vDSO IFUNCs, use it for x32 gettimeofday and time. 2012-05-24 13:13:46 -07:00
Roland McGrath
d6c33fda03 Switch gettimeofday from INTUSE to libc_hidden_proto. 2012-05-24 13:12:34 -07:00
H.J. Lu
7f90742178 Add x32 abilist files 2012-05-24 11:20:12 -07:00
David S. Miller
f1158bd1a5 Remove some sparc cob-webs leftover after Joseph's recent changes.
* sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
	(__libc_sigaction): Remove unused local variables.
2012-05-23 21:47:03 -07:00
H.J. Lu
ccd0a08f4e Add sysdeps/unix/sysv/linux/x86_64/x32/configure 2012-05-23 20:03:20 -07:00
H.J. Lu
5e292e4fa5 Replace "jmp L(pseudo_end)" with "ret" 2012-05-23 11:35:38 -07:00
Andreas Jaeger
45d348a859 Move poll to syscalls.list 2012-05-23 20:21:00 +02:00
Andreas Jaeger
1a09dc565d Add more constants to Linux <sys/reboot.h>
2012-05-23  Andreas Jaeger  <aj@suse.de>
	    Maximilian Attems  <max@stro.at>

	* sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND,
	RB_KEXEC):
	New macros.
2012-05-23 20:16:00 +02:00
H.J. Lu
1c87aba0f2 Fix x32 sched_getcpu.S error code 2012-05-23 06:48:05 -07:00
Joseph Myers
c26705334c Add comments suggesting moving some functions to syscalls.list. 2012-05-23 12:52:56 +00:00
Andreas Jaeger
be08eda54c Update from Linux 3.4 2012-05-23 09:27:39 +02:00
Roland McGrath
a6a056bba7 Simplify dl-vdso.h use of assert. 2012-05-22 14:24:54 -07:00
H.J. Lu
cb191f2300 Remove $(sysctl) from sysdep_routines 2012-05-22 13:58:43 -07:00
H.J. Lu
c900932878 Add sysctl.mk and bits/sysctl.h 2012-05-22 13:46:29 -07:00
Andreas Jaeger
7333835592 Fix x86_64/sched_getcpu.S error code
Rearrange code so that pseudo_end is just ret and the stack pointer
is correct also for static library in error case.
2012-05-22 22:35:04 +02:00
H.J. Lu
da0331a873 Add x32 arch_prctl 2012-05-22 12:43:46 -07:00
H.J. Lu
31a39bd841 Add INTERNAL_SYSCALL_TYPES 2012-05-22 12:42:36 -07:00
H.J. Lu
a4f6e48124 Add x32 support to x86_64/bits/fcntl.h 2012-05-22 09:25:29 -07:00
H.J. Lu
f63d5db67c Use "neg %eax" in i386 SYSCALL_ERROR_HANDLER 2012-05-22 09:24:24 -07:00
H.J. Lu
0e44a77e48 Use "neg %eax" in x86_64 SYSCALL_SET_ERRNO 2012-05-22 05:34:36 -07:00
H.J. Lu
5e1a27a96d Pad each field to __syscall_slong_t in struct rusage 2012-05-22 05:32:34 -07:00
David S. Miller
46259beccc Remove straggling references to .s files.
* Makefules (o-iterator): Remove .s cases.
	(compile-command.s): Delete.
	(COMPILE.s): Delete.
	* sysdeps/unix/make-syscalls.sh: Remove .s file tests.
2012-05-21 21:59:29 -07:00
H.J. Lu
c5b3a2c05b Rename x32 llseek.S to lseek.S and add dummy llseek.S 2012-05-21 15:41:37 -07:00
H.J. Lu
bbb3154bc9 Add x32 llseek.S 2012-05-21 14:50:21 -07:00
H.J. Lu
20c07380db Rename __WORDSIZE_COMPAT32 to __WORDSIZE_TIME64_COMPAT32 2012-05-21 13:39:55 -07:00
Roland McGrath
6c7fb1458d x32: Don't lose high bits of %rbp in setjmp/longjmp mangling/demangling. 2012-05-21 13:04:11 -07:00
H.J. Lu
61f65140eb Define __SYSCALL_WORDSIZE for x86-64 2012-05-21 11:45:16 -07:00
H.J. Lu
d024d23cbe Add x32 syscalls.list 2012-05-21 11:32:25 -07:00
Richard Henderson
c7683a6d02 Add <sys/auxv.h> and getauxval. 2012-05-20 10:40:35 -07:00
H.J. Lu
f66f0ce833 Add 64-bit preadv.c and pwritev.c 2012-05-19 06:51:12 -07:00
H.J. Lu
bb07f69f3b Use __syscall_slong_t in bits/timex.h 2012-05-19 06:45:33 -07:00
H.J. Lu
1b74487e90 Use RAX_LP and "or" to operate on return value 2012-05-18 11:05:56 -07:00
H.J. Lu
7cd195df62 Check d_ino/d_off before using getdents syscall 2012-05-18 07:12:47 -07:00
H.J. Lu
18298070c0 Fold copyright years 2012-05-18 04:16:55 -07:00
H.J. Lu
553c7ea4fa Add x32 support to x86_64/bits/sigcontext.h 2012-05-18 04:10:55 -07:00
H.J. Lu
3707636e48 Use anonymous union in x86_64/sys/user.h 2012-05-18 04:07:51 -07:00
H.J. Lu
428bd7074c Use __syscall_ulong_t in pselect.c 2012-05-17 17:27:13 -07:00
H.J. Lu
3e5aef87d7 Add __fsword_t and use it in bits/statfs.h 2012-05-17 17:20:52 -07:00
H.J. Lu
48970aba30 Fold copyright years 2012-05-16 20:02:44 -07:00
H.J. Lu
661768bb50 Use __syscall_slong_t in bits/mqueue.h 2012-05-16 14:39:45 -07:00
H.J. Lu
d4261567b7 Add x32 suppport to x86_64/bits/stat.h 2012-05-16 13:23:20 -07:00
H.J. Lu
cf3ff365ec Add x86-64 bits/typesizes.h 2012-05-16 13:16:18 -07:00
H.J. Lu
76cf3e4d01 Add x86_64/bits/ipctypes.h 2012-05-16 13:02:28 -07:00
H.J. Lu
a637753a56 Use __syscall_ulong_t in bits/ipc.h 2012-05-16 13:01:32 -07:00
H.J. Lu
d5e0511985 Add x32 support to sys/ucontext.h 2012-05-16 12:52:45 -07:00
H.J. Lu
f62ee380a1 Add x32 support to <sys/user.h> 2012-05-16 12:17:31 -07:00
H.J. Lu
5762f7aeff Add x32 support to x86_64/bits/shm.h 2012-05-16 11:48:54 -07:00
H.J. Lu
a26b685664 Add x32 support to x86_64/bits/sem.h 2012-05-16 11:47:22 -07:00
H.J. Lu
cb2b9ef758 Add x32 support to x86_64/bits/msq.h 2012-05-16 11:45:19 -07:00
H.J. Lu
34683bb01b Check __x86_64__ in x86_64/bits/a.out.h 2012-05-16 10:35:34 -07:00
H.J. Lu
84a6878674 Add x86-64 <bits/siginfo.h> 2012-05-16 10:31:10 -07:00
H.J. Lu
5e90c8ad55 Check __x86_64__ in x86-64 sys/reg.h 2012-05-16 10:20:45 -07:00
H.J. Lu
23dfb58b4d Add x32 support to sys/procfs.h 2012-05-16 10:20:06 -07:00
H.J. Lu
ce5d54b0d6 Use ULL suffix on DR_CONTROL_RESERVED 2012-05-16 10:19:17 -07:00
H.J. Lu
13dc9eac61 Add uintptr_t cast to GET_PC/GET_FRAME/GET_STACK 2012-05-16 10:18:30 -07:00
H.J. Lu
a7895d159f Use 64bit filesystem functions for x32 2012-05-16 10:01:44 -07:00
H.J. Lu
a46f2169d3 Remove __snseconds_t 2012-05-15 18:05:26 -07:00
H.J. Lu
de986b5636 Add __syscall_slong_t and __syscall_ulong_t 2012-05-15 17:41:38 -07:00
H.J. Lu
85736dc78b Use R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE 2012-05-15 16:43:11 -07:00
Joseph Myers
cc03b29695 Avoid plain "aligned" attributes in installed headers. 2012-05-15 21:26:40 +00:00
H.J. Lu
2953ec750f Add x32 init-first.c 2012-05-15 12:51:18 -07:00
Chris Metcalf
02a9193863 Remove duplicate #include <not-cancel.h> in Linux getsysstats.c 2012-05-15 15:02:58 -04:00
H.J. Lu
890d8bd854 Replace 8-byte data alignment with LP_SIZE alignment 2012-05-15 10:17:30 -07:00
H.J. Lu
f6ee662322 Load pointer to TID into R10_LP 2012-05-15 10:15:35 -07:00
H.J. Lu
ea2626f675 Add x32 dl-cache.h 2012-05-15 10:14:34 -07:00
H.J. Lu
085f715e51 Add x32 getcpu and sched_getcpu 2012-05-15 10:13:55 -07:00
Roland McGrath
ceb809dcae Use _dl_fatal_printf instead of a private variant. 2012-05-14 16:10:12 -07:00
Joseph Myers
37f1abd46c Improve consistency of --enable-kernel and default builds. 2012-05-14 22:22:52 +00:00
H.J. Lu
e02f153a1a Update x86_64 PTR_MANGLE/PTR_DEMANGLE for x32 2012-05-14 15:16:27 -07:00
Andreas Jaeger
7ac772940e Remove unused variable in linux/getcwd.c 2012-05-14 16:27:05 +02:00
Joseph Myers
ffb7875d03 Remove pre-2.2 Linux kernel support. 2012-05-14 14:11:02 +00:00
H.J. Lu
2523c62bec Free memory at exit in check_pf.c 2012-05-14 05:02:08 -07:00
Thomas Schwinge
dc70356cbf Avoid dup3 PLT usage.
Fixes fallout from 5aa3a74a59.
2012-05-12 10:53:04 +08:00
Thomas Schwinge
674cdbc7a3 Hurd: Support --prefix=/usr special-casing for all GNU systems. 2012-05-10 15:57:28 -07:00
Joseph Myers
6f27cd1659 Move remaining syscalls from sysdeps/unix/sysv/syscalls.list to sysdeps/unix/sysv/linux/syscalls.list. 2012-05-10 14:51:08 +00:00
Joseph Myers
7ea5391a02 Remove more overridden entries from sysdeps/unix/sysv/syscalls.list. 2012-05-08 13:34:45 +00:00
Joseph Myers
eee2bc67a0 Remove entries from sysdeps/unix/sysv/syscalls.list duplicating ones in sysdeps/unix/. 2012-05-08 11:18:02 +00:00
Joseph Myers
7b17aeda0c Remove overridden entries from sysdeps/unix/sysv/syscalls.list. 2012-05-05 10:28:28 +00:00
Joseph Myers
f7c85819fd Merge sysdeps/unix/common into sysdeps/unix. 2012-05-04 23:15:56 +00:00