Ulrich Drepper
c08fb0d7bb
Add support for prlimit and prlimit64 on Linux.
2010-08-11 11:18:52 -07:00
Ulrich Drepper
b2ef2c014b
Define F_SETPIPE_SZ and F_GETPIPE_SZ.
2010-06-14 14:47:34 -07:00
Andreas Schwab
de240a05b3
Fix fallocate error return on i386.
2010-04-08 15:44:55 -07:00
Ulrich Drepper
1a81139728
Handle unnecessary padding in getdents64.
...
The getdents64 syscall adds on 32-but platforms padding which isn't needed
and not included in the userlevel data structure definition. We have to
avoid copying those padding bytes in the readdir64_r function.
2010-04-03 23:51:40 -07:00
Ulrich Drepper
62f8db6e49
Define miss_F_GETOWN_EX only if needed.
...
When doing i686-unknown-linux-gnu build configured with --enable-kernel=2.6.24,
there are several warnings like this:
../sysdeps/unix/sysv/linux/i386/fcntl.c:36:12: warning: ‘miss_F_GETOWN_EX’ defined but not used
2010-03-27 04:11:14 -07:00
Ulrich Drepper
f095bb7204
Add support for XPG7 testing.
...
The header conformance testing code needed extending for XPG7. This
exposed a few bugs in the headers. There are more changes to come.
2010-01-09 10:56:41 -08:00
Ulrich Drepper
2de59be022
Redefine O_SYNC and O_DSYNC to match 2.6.33+ kernels.
2009-12-11 23:00:49 -08:00
Ulrich Drepper
c6e7f16c53
Follow kernel F_OWNER_{GID -> PGRP} change.
...
But maintain compatiblity for 2.11.
2009-11-19 06:38:31 -08:00
Ulrich Drepper
424bea69fb
Change misleading names of parameters of sync_file_range.
2009-11-17 18:10:56 -08:00
Ulrich Drepper
2866eeb1b7
Add missing Linux MADV_* definitions.
2009-11-17 06:43:39 -08:00
Mike Frsyinger
f9a7bd536e
Fix building on x86 with older kernel headers.
...
Fix building on x86 when older linux headers lack __NR_fallocate define.
2009-11-14 19:16:01 -08:00
Ulrich Drepper
8964681064
Fix F_SETOWN_EX and F_GETOWN_EX definitions.
2009-11-14 08:28:40 -08:00
Jakub Jelinek
34df851b33
Fix preadv, pwritev and fallocate for -D_FILE_OFFSET_BITS=64.
...
As reported in http://bugzilla.redhat.com/533063 , preadv/pwritev prototypes
are wrong on 32-bit arches with -D_FILE_OFFSET_BITS=64 and as I've just
found, fallocate is wrong too.
The problem is that only off_t is remapped to the 64-bit type transparently,
__off_t is not.
2009-11-06 09:26:31 -08:00
Ulrich Drepper
801720e63b
Fix compat handling in *at functions.
...
When passed an empty string for the filename, the compat code
using /proc in all *at functions did the wrong thing.
2009-10-29 21:33:26 -07:00
Ulrich Drepper
81c84bd902
Fix F_GETOWN on some Linux archs.
...
The syscall conventions on some Linux archs prevented F_GETOWN from working
correctly in some situations. This can be rectified when using the new
F_GETOWN_EX command.
2009-10-29 10:12:59 -07:00
Ulrich Drepper
d9e8f9ec55
Define F_OWNER_* and f_owner_ex for Linux targets.
2009-10-29 08:48:17 -07:00
Ulrich Drepper
78aa397939
Define F_SETOWN_EX and F_GETOWN_EX in Linux headers.
2009-10-01 01:18:41 -07:00
Ulrich Drepper
4a1377672c
Remove leftover code from Linux/x86 ____longjmp_chk.
2009-08-02 21:51:37 -07:00
Ulrich Drepper
e4143e7a06
Optimize x86 and x86-64 ____longjmp_chk for Linux.
2009-07-31 17:27:38 -07:00
H.J. Lu
6f6f1215f6
Support multiarch for i686.
...
This patch adds multiarch support when configured for i686. I modified
some x86-64 functions to support 32bit. I will contribute 32bit SSE string
and memory functions later.
2009-07-31 11:53:35 -07:00
Ulrich Drepper
57dbdb9f07
Whitespace cleanup.
2009-07-30 21:51:56 -07:00
Ulrich Drepper
da97dfdcfa
Add sigstack handling to Linux ____longjmp_chk on i386.
...
All other i386 ports need to provide their own versions.
2009-07-30 21:50:14 -07:00
Ulrich Drepper
3e9099b4f6
Add more cache descriptors for L3 caches on x86 and x86-64.
...
The most recent AP 485 describes a few more cache descriptors for
L3 caches with 24-way associativity.
2009-07-23 13:42:46 -07:00
Ulrich Drepper
9b6bf8a302
Preserve stack alignment in i386 makecontext.
2009-07-23 08:02:07 -07:00
Ulrich Drepper
fd469aac31
Add missing file from accept4 commit.
...
Hidden by previous .gitignore content.
2009-05-31 17:46:55 -07:00
Ulrich Drepper
1de0c16183
Compact cache info data structure for x86/x86-64.
...
This saves about 1.5kB in the DSO.
2009-05-29 11:53:36 -07:00
Jakub Jelinek
1e1dc4e82d
Implement accept4 for more archs using socketcall.
...
So far accept4 was only supported on archs using socketcall for x86.
This patch adds support for the remaining archs.
2009-05-22 08:25:34 -07:00
Jakub Jelinek
1f3615a1c9
Add missing export of fallocate64 on 32-bit platforms.
...
Due to a pasto the fallocate64 interface, introduced in glibc 2.10,
isn't exported for 32-bit Linux platforms. It is too late for this
now so exported them for glibc 2.11.
2009-05-15 21:00:09 -07:00
Ulrich Drepper
deb84c43b1
* version.h (VERSION): Bump to 2.10.1.
...
* nss/getXXbyYY_r.c: If NO_COMPAT_NEEDED is defined don't define any
compatibility functions.
* nss/getXXent_r.c: Likewise.
* gshadow/getsgent_r.c: Define NO_COMPAT_NEEDED.
* gshadow/getsgnam_r.c: Likewise.
* gshadow/Version: Remove duplicate entries.
* sysdeps/x86_64/cacheinfo.c (intel_02_cache_info): Add missing entries
for recent processor.
* sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_cache_info):
Likewise.
2009-05-10 18:38:52 +00:00
Ulrich Drepper
3fb8a93ae9
Yet more changes to match sort function type change.
2009-03-17 00:35:38 +00:00
Ulrich Drepper
99eb932f75
* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Declare fallocate{,64}.
...
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
2009-03-03 13:53:19 +00:00
Ulrich Drepper
749f5cc968
* sysdeps/unix/sysv/linux/fallocate.c: New file.
...
* sysdeps/unix/sysv/linux/fallocate64.c: New file.
* sysdeps/unix/sysv/linux/wordsize-64/fallocate64.c: New file.
* sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: New file.
* sysdeps/unix/sysv/linux/i386/fallocate64.c: New file.
* sysdeps/unix/sysv/linux/i386/fallocate.c: New file.
* sysdeps/unix/sysv/linux/Versions: Export fallocate and fallocate64
for GLIBC_2.10.
* sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
Add fallocate and fallocate64.
* io/fcntl.h: Pretty printing.
2009-03-02 16:15:58 +00:00
Jakub Jelinek
d82a27f841
* stdlib/monetary.h: Uglify function parameter names.
...
* sunrpc/rpc/pmap_clnt.h: Likewise.
* sunrpc/rpc/svc.h: Likewise.
* sunrpc/rpc/xdr.h: Likewise.
* sunrpc/rpc/clnt.h: Likewise.
* resolv/netdb.h: Likewise.
* resolv/arpa/nameser.h: Likewise.
* resolv/resolv.h: Likewise.
* argp/argp.h: Likewise.
* locale/langinfo.h: Likewise.
* io/sys/stat.h: Likewise.
* posix/spawn.h: Likewise.
* nis/rpcsvc/nislib.h: Likewise.
* malloc/obstack.h: Likewise.
* sysdeps/ia64/bits/link.h: Likewise.
* sysdeps/i386/bits/link.h: Likewise.
* sysdeps/s390/bits/link.h: Likewise.
* sysdeps/powerpc/bits/link.h: Likewise.
* sysdeps/x86_64/bits/link.h: Likewise.
* sysdeps/sparc/bits/link.h: Likewise.
* sysdeps/sh/bits/link.h: Likewise.
* sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
* sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2009-02-16 Jakub Jelinek <jakub@redhat.com>
* stdlib/monetary.h: Uglify function parameter names.
* sunrpc/rpc/pmap_clnt.h: Likewise.
* sunrpc/rpc/svc.h: Likewise.
* sunrpc/rpc/xdr.h: Likewise.
* sunrpc/rpc/clnt.h: Likewise.
* resolv/netdb.h: Likewise.
* resolv/arpa/nameser.h: Likewise.
* resolv/resolv.h: Likewise.
* argp/argp.h: Likewise.
* locale/langinfo.h: Likewise.
* io/sys/stat.h: Likewise.
* posix/spawn.h: Likewise.
* nis/rpcsvc/nislib.h: Likewise.
* malloc/obstack.h: Likewise.
* sysdeps/ia64/bits/link.h: Likewise.
* sysdeps/i386/bits/link.h: Likewise.
* sysdeps/s390/bits/link.h: Likewise.
* sysdeps/powerpc/bits/link.h: Likewise.
* sysdeps/x86_64/bits/link.h: Likewise.
* sysdeps/sparc/bits/link.h: Likewise.
* sysdeps/sh/bits/link.h: Likewise.
* sysdeps/unix/sysv/linux/i386/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sys/io.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Likewise.
* sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
2009-02-16 21:00:15 +00:00
Ulrich Drepper
26b62243ee
[BZ #7095 ]
...
2009-02-06 Ulrich Drepper <drepper@redhat.com>
[BZ #7095 ]
* bits/confname.h: Add SUSv7 macros for getconf environments.
* bits/environments.h: Likewise.
* sysdeps/unix/sysv/linux/i386/bits/environments.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/environments.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/environments.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/environments.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Likewise.
* posix/confstr.c: Handle SUSv5 and SUSv7 environments.
* posix/getconf.c: Likewise.
* posix/sysconf.c: Likewise.
* sysdeps/posix/sysconf.c: Likewise.
* posix/Makefile (getconf.speclist): Also collect SUSv5 and SUSv7
environments.
2009-02-07 08:19:29 +00:00
Ulrich Drepper
ebc22416e4
* sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new descriptors.
...
* sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2009-02-01 18:13:41 +00:00
Ulrich Drepper
b2bcd249bf
* sysdeps/unix/sysv/linux/i386/sysdep.h: Describe 6th argument
...
handling.
2009-01-03 20:36:44 +00:00
Ulrich Drepper
f93fc0b75a
* socket/sys/socket.h: Declare accept4.
...
* socket/accept4.c: New file.
* sysdeps/unix/sysv/linux/accept4.c: New file.
* sysdeps/unix/sysv/linux/i386/accept4.S: New file.
* socket/Makefile (routines): Add accept4.
* socket/Versions: Export accept4 with version GLIBC_2.10.
* socket/paccept.c: Removed.
* sysdeps/unix/sysv/linux/paccept.c: Removed.
* sysdeps/unix/sysv/linux/i386/paccept.S: Removed.
* Versions.def: Define GLIBC_2.10 for libc.
* sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_ACCEPT4.
* nscd/connections.c: Use accept4.
* sysdeps/unix/sysv/linux/i386/socket.S: Fix comment.
2008-12-03 04:23:18 +00:00
Ulrich Drepper
965805e888
* sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Define MAP_STACK.
...
* sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise.
2008-08-15 22:35:53 +00:00
Ulrich Drepper
bdcebfc4c7
* Versions.def (glibc): Add GLIBC_2.9.
...
* io/Makefile (routines): Add dup3 and pipe2.
* io/Versions [glibc] (GLIBC_2.9): Add dup3 and pipe2.
* io/dup3.c: New file.
* io/pipe2.c: New file.
* posix/unistd.h: Declare dup3 and pipe2.
* socket/Makefile (routines): Add paccept.
* socket/Versions [glibc] (GLIBC_2.9): Add paccept.
* socket/paccept.c: New file.
* socket/sys/socket.h: Declare paccept.
* sysdeps/unix/syscalls.list: Add entry for dup3.
* sysdeps/unix/sysv/linux/Versions [glibc] (GLIBC_2.9): Add
epoll_create2 and inotify_init1.
* sysdeps/unix/sysv/linux/eventfd.c: Use eventfd1 syscall if possible.
* sysdeps/unix/sysv/linux/paccept.c: New file.
* sysdeps/unix/sysv/linux/signalfd.c: Use signalfd4 syscall if
possible.
* sysdeps/unix/sysv/linux/socketcall.h: Add SOCKOP_paccept.
* sysdeps/unix/sysv/linux/syscalls.list: Add epoll_create2,
inotify_init1, and pipe2 entries.
* sysdeps/unix/sysv/linux/alpha/sys/epoll.h: New file.
* sysdeps/unix/sysv/linux/alpha/sys/eventfd.h: New file.
* sysdeps/unix/sysv/linux/alpha/sys/inotify.h: New file.
* sysdeps/unix/sysv/linux/alpha/sys/signalfd.h: New file.
* sysdeps/unix/sysv/linux/alpha/sys/timerfd.h: New file.
* sysdeps/unix/sysv/linux/bits/socket.h: Define SOCK_CLOEXEC and
SOCK_NONBLOCK.
* sysdeps/unix/sysv/linux/i386/paccept.S: New file.
* sysdeps/unix/sysv/linux/sparc/sys/epoll.h: New file.
* sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: New file.
* sysdeps/unix/sysv/linux/sparc/sys/inotify.h: New file.
* sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: New file.
* sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: New file.
* sysdeps/unix/sysv/linux/sparc/bits/socket.h: New file.
* sysdeps/unix/sysv/linux/sys/epoll.h: Define EPOLL_CLOEXEC and
EPOLL_NONBLOCK. Declare epoll_create2.
* sysdeps/unix/sysv/linux/sys/eventfd.h: Define EFD_CLOEXEC and
EFD_NONBLOCK.
* sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOEXEC and
IN_NONBLOCK. Declare inotify_init1.
* sysdeps/unix/sysv/linux/sys/signalfd.h: Define SFD_CLOEXEC and
SFD_NONBLOCK.
* sysdeps/unix/sysv/linux/sys/timerfd.h: Define TFD_CLOEXEC and
TFD_NONBLOCK.
2008-07-25 04:51:56 +00:00
Ulrich Drepper
6c30d38fdd
[BZ #5436 ]
...
2008-04-09 Ulrich Drepper <drepper@redhat.com>
* stdlib/tst-makecontext.c: Change parameter to cf to negative
value to check for correct sign extension.
[BZ #5436 ]
* sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
Copy 64-bit parameter values even though this is not required in
the standard.
* sysdeps/unix/sysv/linux/x86_64/vfork.S (__vfork): Record return
PC save.
2008-04-09 18:30:12 +00:00
Ulrich Drepper
148e12ed12
* sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): Avoid
...
clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size.
* stdlib/Makefile: Add rules to build and run tst-makecontext2.
* stdlib/tst-makecontext2.c: New test.
2008-01-09 19:35:21 +00:00
Ulrich Drepper
ee269826ab
(intel_02_known): New entry 0x3f.
2007-12-23 19:32:28 +00:00
Ulrich Drepper
51bd20d93a
[BZ #5435 ]
...
* sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2007-12-03 04:57:30 +00:00
Ulrich Drepper
1aa5e4d74f
* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.
...
* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2007-10-17 18:55:39 +00:00
Ulrich Drepper
b197b0e1ae
Correct return value type __THROW marker of splice, vmsplice, and tee.
2007-09-18 16:20:44 +00:00
Ulrich Drepper
5e17d6b75b
* sysdeps/unix/sysv/linux/i386/Makefile (sysdep_routines): Add
...
call_fallocate in misc subdir.
* sysdeps/unix/sysv/linux/i386/call_fallocate.S: New file.
* sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate64): Remove.
* sysdeps/unix/sysv/linux/i386/posix_fallocate.c: Use __call_fallocate
instead of __fallocate64.
* sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: Likewise.
2007-09-15 22:38:32 +00:00
Ulrich Drepper
cb5ba30495
* sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
...
fallocate64 as EXTRA< it is not referenced if the symbol isn't
defined.
2007-08-24 17:22:25 +00:00
Ulrich Drepper
5e0923ab31
* sysdeps/unix/sysv/linux/i386/syscalls.list (fallocate): Add fallocate
...
syscall as __fallocate64.
* sysdeps/unix/sysv/linux/i386/posix_fallocate.c: New file.
* sysdeps/unix/sysv/linux/i386/posix_fallocate64.c: New file.
2007-08-01 15:51:07 +00:00
Ulrich Drepper
acf79996d4
* sysdeps/unix/sysv/linux/bits/socket.h: Define MSG_CMSG_CLOEXEC.
...
* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_CLOEXEC.
* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
2007-07-21 17:20:52 +00:00
Ulrich Drepper
8c1dcd265d
* sysdeps/x86_64/cacheinfo.c (intel_02_known): Add new entries.
...
* sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
2007-07-09 16:12:05 +00:00