Commit Graph

3428 Commits

Author SHA1 Message Date
Ulrich Drepper
7edb22eff5 Fix wanings in clock_gettime 2011-11-12 02:54:34 -05:00
Ulrich Drepper
294ce12680 Avoid warning from shifting 2011-11-12 01:31:29 -05:00
Ulrich Drepper
e35f65ea8d unsigned long it better for the size arguments
The new syscalls should use unsigned long not size_t.  The parameters
are not a direct measure of memory size.
2011-11-01 10:38:00 -04:00
Ulrich Drepper
78239589cd New Linux syscalls process_vm_readv and process_vm_writev 2011-11-01 09:59:32 -04:00
Ulrich Drepper
3a2c02424d Cache network interface information
Whenever getaddrinfo needed network interface information it used the
netlink interface to read the information every single time.  The
problem is that this information can change at any time.

The patch implements monitoring of the network interfaces through
nscd.  If no change is detected the previously read information can
be reused (which is the norm).  This timestamp information is also
made available to other processes using the shared memory segment
between nscd and those processes.
2011-10-31 01:51:16 -04:00
Ulrich Drepper
636064eb4c Fix potential double close in __check_fd if OOM 2011-10-30 14:22:57 -04:00
Ulrich Drepper
fd5bdc0924 Optimize access to isXYZ and toXYZ tables
The functions to get the pointers can now depend on the TLS variable
be initialized.
2011-10-15 16:27:08 -04:00
Roland McGrath
5060422095 Conditionalize unnecessary #include. 2011-10-08 15:28:21 -07:00
Ulrich Drepper
2840865d5a Define IP_MULTICAST_ALL 2011-09-15 18:09:53 -04:00
Roland McGrath
b402e91af4 Use HIDDEN_JUMPTARGET rather than spelling out its effects, for ____longjmp_chk implementations. 2011-09-15 12:26:08 -07:00
Andreas Schwab
a7c8e6a147 Fix invalid conversion in __cmsg_nxthdr 2011-09-12 15:48:12 +02:00
Andreas Schwab
0f31fe7791 Prepend $(..) to $(ldd-rewrite-script) if non-absolute 2011-09-11 20:34:57 +02:00
Ulrich Drepper
02d46fc4b9 Simplify malloc initialization
Singificantly reduce the code needed at malloc initialization.  In
the process getpagesize is simplified by always initializing
GLRO(dl_pagesize).
2011-09-10 21:47:36 -04:00
Ulrich Drepper
d063d16433 Remove support for !USE___THREAD 2011-09-10 16:50:28 -04:00
Ulrich Drepper
f19009c155 Use (void*) instead of 0 for return value pointer in __cmsg_nexthdr 2011-09-09 21:46:08 -04:00
Andreas Schwab
59178ef977 Revert "Fix semid_ds for x86-64"
This reverts commit 2f0ad8f3a4.
2011-09-07 14:29:53 +02:00
Ulrich Drepper
e38ba7ab6a Make sure __vdso_clock_gettime always contains a valid pointer 2011-09-07 00:07:08 -04:00
Ulrich Drepper
fc8bffcccf Fix handling of __vdso_clock_gettime 2011-09-06 23:50:04 -04:00
Ulrich Drepper
a77d3c17dc Don't unconditionally use clock_gettime vsyscall on x86-64 2011-09-06 21:34:11 -04:00
Ulrich Drepper
d53a73acdb Avoid gettimeofday vsyscall 2011-09-06 20:22:37 -04:00
Andreas Schwab
a8f84144c9 Fix missing declaration 2011-09-06 11:20:51 +02:00
Ulrich Drepper
ef60624956 Prefer real syscalls instead of vsyscalls on x86-64 outside libc.so 2011-09-06 00:12:18 -04:00
David S. Miller
15c95c5d1a Fixes and optimizations for 32-bit sparc fabs*(). 2011-09-05 10:06:15 -07:00
Ulrich Drepper
3b142ce572 Merge branch 'master' of ssh://sourceware.org/git/glibc
Conflicts:
	ChangeLog
2011-09-05 12:46:12 -04:00
Ulrich Drepper
2f0ad8f3a4 Fix semid_ds for x86-64 2011-09-05 12:44:22 -04:00
David S. Miller
3ba575169a Fix sparc localplt testcase failures. 2011-08-31 17:30:41 -07:00
David S. Miller
25ad0df13b Bug fixes for ____longjmp_chk on sparc. 2011-08-22 16:53:57 -07:00
Andreas Schwab
70538b7fe6 Fix missing declaration 2011-08-22 12:17:05 +02:00
Ulrich Drepper
91b392a4ba Use ifuncs for time and gettimeofday on x86-64 2011-08-21 13:52:28 -04:00
Andreas Schwab
3b41ae4d7d Remove the file< 2011-08-20 08:38:58 -04:00
Andreas Schwab
51ccffa074 Use correct scandir64 implementation on ppc64 2011-08-20 08:33:42 -04:00
David S. Miller
c27714f111 Fix tst-writev on non-4K page size 2011-08-17 21:51:21 -04:00
David S. Miller
9c96ff2385 * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
2011-08-14 04:09:28 -07:00
Ulrich Drepper
2df1f7be58 Merge branch 'master' of ssh://sourceware.org/git/glibc
Conflicts:
	ChangeLog
2011-08-11 13:02:45 -04:00
Andreas Schwab
14d9678512 Clean up PLT use for scandirat 2011-08-11 11:41:09 -04:00
David S. Miller
6761ac045d * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
enum.
	* sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2011-08-10 23:09:24 -07:00
Ulrich Drepper
c55fbd1ea7 Implement scandirat function 2011-08-09 09:57:55 -04:00
Ulrich Drepper
879165f25a Avoid multiple definitions of identical scandir cancellation handler 2011-08-08 13:49:37 -04:00
Ulrich Drepper
8accd4dccc Define AF_NFC and PF_NFC 2011-07-23 20:06:48 -04:00
Ulrich Drepper
cbff0d9689 Update ptrace constants 2011-07-23 19:10:18 -04:00
Andreas Schwab
bfc9dc9bcf Fix missing include 2011-07-20 14:12:57 -04:00
Marek Polacek
295e904fe6 Add const attr to gnu_dev_{major,minor,makedev} 2011-07-20 12:35:29 -04:00
Andreas Krebbel
19df733e64 S/390: Don't use r11 in INTERNAL_VSYSCALL_NCS macro 2011-07-19 20:29:27 -04:00
Ulrich Drepper
298711ffe4 Fix typos in pretty much unused code in sched.h header. 2011-07-18 20:19:14 -04:00
Ulrich Drepper
319b9ad4bc Generalize framework to register monitoring of files in nscd
nscd can clear caches when certain files change.  The list of files
was hardcoded so far and worked for nss_files and nss_dns and those
modules which need no monitoring.  nss_db, for instance, has its
own set of files to monitor.  Now the NSS modules themselves can
request that certain files are monitored.
2011-07-11 14:50:24 -04:00
Ulrich Drepper
4e5f31c847 Handle ext4 in {,f}pathconf
ext4 has a higher LINK_MAX limit than ext2/3.  Unfortunately it is
not easy to distinguish the filesystems from userlevel.
2011-07-07 10:53:16 -04:00
Andreas Dilger
de283087c7 Handle Lustre filesystem 2011-07-07 00:20:32 -04:00
Ulrich Drepper
ecaddd6699 Rebuild configure scripts 2011-07-06 21:29:02 -04:00
Ulrich Drepper
4902da17c8 Add missing HAVE_SENDFILE definition 2011-06-27 12:29:04 -04:00
H.J. Lu
c2344f56e4 Use __gettimeofday instead of gettimeofday 2011-06-26 03:08:01 -04:00
Ulrich Drepper
d5495a116c Work around limit in writev in 2.6.38+ kernels 2011-06-24 14:59:17 -04:00
Ulrich Drepper
84e2a551a7 Use a /sys/devices/system/cpu/online for _SC_NPROCESSORS_ONLN implementation 2011-06-22 10:32:07 -04:00
Ulrich Drepper
852eb34d5c Rate limit expensive _SC_NPROCESSORS_ONLN computation 2011-06-22 09:50:39 -04:00
Ulrich Drepper
6e502e1945 Clean up after kernel sigcontext header mess 2011-06-22 08:32:55 -04:00
Andreas Schwab
ee22793dd0 Improve 64-bit build
An imperfect version of fxstatat64 was used in ld.so.
2011-06-15 21:46:20 -04:00
Andreas Jaeger
c71ca1f89c Quash two memset undeclared warnings. 2011-06-14 13:11:39 -07:00
Ulrich Drepper
8c29731192 Fix typo in stack guard setup code for old kernels 2011-05-31 14:23:01 -04:00
Ulrich Drepper
80e2212d8e Same change for the other siginfi.h files 2011-05-29 20:12:15 -04:00
Ulrich Drepper
b1ebd700c5 Don't document si_code used for raise() 2011-05-29 20:05:30 -04:00
Ulrich Drepper
d0478f0c81 Fix build for platforms with socketcall syscall 2011-05-28 13:18:57 -04:00
Ulrich Drepper
c738465a4c Add support for time syscall in vDSO 2011-05-28 01:53:26 -04:00
Ulrich Drepper
f1f929d74a Add sendmmsg syscall 2011-05-28 01:43:20 -04:00
Ulrich Drepper
ce67228d57 Set setns system call 2011-05-28 00:53:13 -04:00
Ulrich Drepper
a8509ca540 Use getcpu definition from vDSO on x86-64 2011-05-27 16:09:52 -04:00
Jakub Jelinek
ea486f691d Undo accidental change in x86-64 user.h 2011-05-25 16:57:13 -04:00
Ulrich Drepper
67f86a251e Define RLIMIT_RTTIME 2011-05-23 15:53:37 -04:00
Andreas Schwab
f50ef8f1ef Fix sysconf compilation for !HP_TIMING_AVAIL archs 2011-05-23 11:51:12 -04:00
Ulrich Drepper
05bb4a68ad Define CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM 2011-05-21 17:20:41 -04:00
Ulrich Drepper
d79a9c949c Cleanup x86-64 sys/user.h 2011-05-16 01:35:07 -04:00
Ulrich Drepper
94b7cc3711 Fix a few problems in fopen and freopen
fopen should set the FD_CLOEXEC flag if requested evenif the kernel does
not support an aotmic operation.

freopen should reuse the file descriptor for the stream.  This is
especially important for calls to change the standard streams (stin,
stdout, stderr).
2011-05-15 15:28:46 -04:00
Ulrich Drepper
3b85df2787 sysconf on Linux/ia64 reported outdate versions for some options
The code is also cleaned up to avoid inefficiencies.
2011-05-15 11:18:10 -04:00
Ulrich Drepper
15a856b109 Make stack canary value harder to read through read overflow 2011-05-15 10:59:07 -04:00
Ulrich Drepper
05f399e634 Use non-cancelable interfaces in setup code 2011-05-15 09:40:30 -04:00
Ulrich Drepper
f8a3b5bf8f Use mmap for allocation of buffers used for __abort_msg 2011-05-15 00:34:48 -04:00
Ulrich Drepper
6fb2dde3f1 Make complete getcwd work in rtld 2011-05-08 14:53:20 -04:00
Ulrich Drepper
7fb90fb89b Fix Linux getcwd for long paths
The getcwd syscall (so far?) can only handle path up to one page
in size.  There is no limit about directory hierarchy depth, though,
and the POSIX getcwd is supposed to handle this.  In that case fall
back to the generic getcwd.

Additionally, optimize the generic getcwd to use openat when possible
to change the asymptotic performance from O(N^2) to O(n).
2011-05-08 08:37:19 -04:00
Jonathan Nieder
9572119174 Actually undefine ARG_MAX from <linux/limits.h> 2011-05-07 13:20:33 -04:00
Ulrich Drepper
d08055417d Misplaced new line in last patch 2011-05-07 09:13:43 -04:00
Paul Pluzhnikov
8a35c9120f Add missing {__BEGIN,__END}_DECLS to sys/sysmacros.h 2011-05-07 09:03:36 -04:00
Ulrich Drepper
1bfbe0d335 Better use of open in pathconf. 2011-05-02 21:34:34 -04:00
Ulrich Drepper
6e04cbbe79 Fix pathconf(_PC_BUF_SIZE). 2011-05-02 20:59:51 -04:00
Jim Meyering
ded5b9b7c7 Remove doubled words. 2011-04-22 21:34:32 -04:00
Ulrich Drepper
75ea32abcd Fix FPU context handling in getcontext on x86-64.
fnstenv on x86-64 seems to clear the state.  Work around.
2011-04-17 21:51:26 -04:00
Andreas Schwab
f12a32e6f0 Make ppc sync_file_range cancelable. 2011-04-09 11:07:18 -04:00
Ulrich Drepper
38a7d692fc Fix typo in comment. 2011-04-09 11:01:37 -04:00
Andreas Schwab
e451d22b22 Maintain stack alignment in ____longjmp_chk on x86_64 2011-04-07 16:23:52 -04:00
Ulrich Drepper
dedc7c7b05 Fix typo in cache information table for x86-{32,64}. 2011-04-03 09:32:31 -04:00
Ulrich Drepper
94521213b6 Define CLOCK_BOOTTIME. 2011-04-02 15:27:07 -04:00
Andreas Schwab
00e5419f8e Rename open_by_handle to open_by_handle_at. 2011-04-01 13:05:15 -04:00
Ulrich Drepper
658e451d8b Define O_PATH. 2011-04-01 11:46:10 -04:00
Ulrich Drepper
3167dad07c Also make x86 sync_file_range a cancellation point. 2011-04-01 11:33:14 -04:00
Ulrich Drepper
748876bf1c Really implement fallocate{,64} and sync_file_range as cancellation points. 2011-04-01 11:15:08 -04:00
Andreas Schwab
6e63d5e1ae Install bits/timex.h header. 2011-04-01 10:40:53 -04:00
Ulrich Drepper
158648c0bd Add support for name_to_handle_at and open_by_handle. 2011-04-01 10:33:37 -04:00
Ulrich Drepper
034c4e1503 Export new symbol. 2011-03-31 06:30:18 -04:00
Ulrich Drepper
83fe108b0a Add clock_adjtime syscall. 2011-03-30 22:00:57 -04:00
Ulrich Drepper
bb2420590c Last change caused infinite loops because of missing loop increment. 2011-03-22 01:52:43 -04:00
Ulrich Drepper
2a11560107 Implement x86 cpuid handling of leaf4 for cache information. 2011-03-20 08:14:30 -04:00
Ryan S. Arnold
d55fd7a557 Fix INTERNAL_[V]SYSCALL_NCS macros to not cast return val to int. 2011-02-17 01:21:08 -05:00
Ulrich Drepper
e943389325 Remove use of ranlib. 2011-02-15 14:52:29 -05:00
Andreas Schwab
edf9294e7a Update sysdeps/unix/sysv/linux/sparc/bits/socket.h 2011-02-07 22:48:55 -05:00
Ulrich Drepper
18ba70a559 Define MADV_NOHUGEPAGE. 2011-01-17 18:35:17 -05:00
Ulrich Drepper
32465c3ea0 Define MADV_HUGEPAGE. 2011-01-17 18:24:59 -05:00
Ulrich Drepper
a77e8cbc39 Add definitions for new socket protocols. 2011-01-17 14:21:02 -05:00
Ulrich Drepper
70181fddf1 Change setgroups to affect all the threads in the process. 2011-01-14 08:42:11 -05:00
Ulrich Drepper
8cf8ce1702 Clean up PLT use for getrlimit64. 2011-01-13 16:21:04 -05:00
Ulrich Drepper
1086d70d91 Fix handling of missing syscall in Linux mkdirat. 2011-01-13 12:42:06 -05:00
David S. Miller
16c2895fea sparc64: Use i386 implementation for fxstat.
This was simply missed when Jakub converted all of the
other sparc64 xstat cases.
2011-01-04 12:22:41 -08:00
Ulrich Drepper
5bd6dc5c2c Use prlimit64 for 32-bit [gs]etrlimit64 implementation. 2010-12-25 20:12:27 -05:00
H.J. Lu
4a531bb0b3 Remove .ctors' and .dtors' output sections 2010-12-24 20:14:37 -05:00
Ulrich Drepper
db753e2cfb More accurate computatin of reclen in readdir_r.
Alignment issue can increase the reclen limit.
Make sure Linux 64-bit readdir_r also accounts for 64-bit alignment
in getdents.
2010-12-19 16:00:59 -05:00
Ulrich Drepper
cf7c9078a5 Define MAP_HUGETLB. 2010-11-19 09:35:39 -05:00
Ulrich Drepper
a1fb5e3ebe Define SWAP_FLAG_DISCARD. 2010-11-16 12:17:04 -05:00
Miklos Szeredi
0e516e0e14 Verify in ttyname() that the symlink is valid. 2010-11-03 00:25:45 -04:00
Michael B. Brutman
d0b9e94faf powerpc: PPCA2/A2 optimized memcpy function 2010-10-24 21:47:33 -04:00
Jakub Jelinek
5e908464b9 Implement accurate fma. 2010-10-13 22:27:03 -04:00
Ulrich Drepper
1751705d1c Linux getifaddrs might return entries with ->ifa_addr being NULL. 2010-10-11 09:38:00 -04:00
Andreas Jaeger
b8b4863d78 Fix last checkin. 2010-10-01 19:05:26 -04:00
Andreas Jaeger
6484ba5ef0 Handle cgroup and btrfs filesystems 2010-10-01 10:49:47 -04:00
Ulrich Drepper
724da3d7f4 Revert "powerpc: PPCA2 optimized memcpy function"
This reverts commit 44f91d3884.

Conflicts:

	ChangeLog
2010-09-27 23:02:55 -04:00
Andreas Schwab
c21cc9bcb3 Properly convert f_fsid in statvfs 2010-09-27 22:34:21 -04:00
Michael B. Brutman
44f91d3884 powerpc: PPCA2 optimized memcpy function 2010-09-21 14:06:46 -07:00
Joseph Myers
1ac7a2c7b4 getdents64 fallback d_type support 2010-09-21 14:02:08 -07:00
Andreas Schwab
e24f0a8b9e Add support for fanotify_mark on sparc32 and s390 2010-09-20 06:58:15 -07:00
Chung-Lin Tang
c044aa7535 Fix _FORITY_SOURCE version of longjmp for Linux/x86-64. 2010-09-08 15:49:50 -07:00
Mike Frysinger
fdc0c10d9b Update sparc epoll.h from epoll_create2 to epoll_create1 2010-09-01 12:45:02 -07:00
Mike Frysinger
e53a31fe57 Fix typo in x86-64 epoll.h. 2010-09-01 12:42:48 -07:00
Andreas Schwab
f3dcc2f9a5 Support fanotify_mark syscall on powerpc32 2010-08-31 09:46:57 +02:00
Ulrich Drepper
1c06ba3100 Simplify fanotify_init definition. 2010-08-16 07:06:38 -07:00
Andreas Schwab
3162f12e58 Remove third argument from fanotify_init function 2010-08-15 20:07:32 -07:00
Andreas Schwab
052fa7b33e Fix compilation 2010-08-14 13:19:25 +02:00
Ulrich Drepper
962dba7828 Define EXTPROC for Linux. 2010-08-12 20:39:44 -07:00
Alan Modra
bebff237c5 PowerPC64 ABI fixes 2010-08-12 09:19:19 -07:00
Ulrich Drepper
3cdaa6adb1 f_flags in Linux statfs implementation.
The 2.6.36 kernel provides an additional field in the statfs results.
Use this value in the statvfs emulation to avoid filling in f_flag
the hard way.
2010-08-11 14:07:28 -07:00
Ulrich Drepper
754f7da38b Define IN_EXCL_UNLINK 2010-08-11 12:46:03 -07:00
Ulrich Drepper
10b3bedcb0 Add support for Linux fanotify_init and fanotify_mask syscalls. 2010-08-11 12:41:48 -07:00
Ulrich Drepper
c08fb0d7bb Add support for prlimit and prlimit64 on Linux. 2010-08-11 11:18:52 -07:00
Ulrich Drepper
c86434ccb5 (__getlogin_r_loginuid): Also fail if tpwd after pwuid call is NULL. 2010-08-06 19:18:05 -07:00
Ulrich Drepper
440566c3f4 Avoid namespace pollution. 2010-07-09 19:25:23 -07:00
Ulrich Drepper
8a492a675e Implement _PC_PIPE_BUF.
Now that the kernel has appropriate support we can implement this
fpathconf command correctly.
2010-07-06 07:48:23 -07:00
Luis Machado
f47c9a11ad powerpc: Re-work the Implies structure
This patch tries to organize the implies files for ppc, since there are
a number of processors and most of them are compatible with each other
(backwards compatible).

Having in mind that we start the search for processor-specific files in
the sysdeps/unix/sysv/linux tree
(sysdeps/unix/sysv/linux/powerpc/powerpc[32|64]/[processor]/fpu to be
exact), we would like to grab any linux-specific code from that tree
prior to going through the other tree (sysdeps/powerpc/...).

For that, i removed the Implies files that were originally inside the
fpu directories and placed then in the non-fpu directories (still inside
the unix/sysv/linux tree). If no processor-specific/linux-specific files
could be found, we "imply" the other tree's (sysdeps/powerpc/...) fpu
directory for that specific processor AND also the non-fpu directory for
that same tree.

If, again, no processor-specific code is found, we read another Implies
file that will point to the most compatible processor that we should
grab code from, and so on, until we reach the power4 processor.

So, in summary, the Implies files will live inside these directories
now:

* sysdeps/unix/sysv/linux/powerpc/powerpc[32|64]/[processor]
* sysdeps/powerpc/powerpc[32|64]/[processor]

Practical example of the order we will use to pick power6-specific code
with the new structure.

sysdeps/unix/sysv/linux/powerpc/powerpc[32|64]/power6/fpu ->
sysdeps/unix/sysv/linux/powerpc/powerpc[32|64]/power6 ->
sysdeps/powerpc/powerpc[32|64]/power6/fpu ->
sysdeps/powerpc/powerpc[32|64]/power6 ->
sysdeps/powerpc/powerpc[32|64]/power5+/fpu ->
sysdeps/powerpc/powerpc[32|64]/power5+ ->
sysdeps/powerpc/powerpc[32|64]/power5/fpu ->
sysdeps/powerpc/powerpc[32|64]/power5 ->
sysdeps/powerpc/powerpc[32|64]/power4/fpu ->
sysdeps/powerpc/powerpc[32|64]/power4 (from here, it'll go to the
generic path as usual)
2010-06-30 09:57:38 -07:00
Andreas Schwab
e35fcef8b7 More fixes to error handling in getlogin_r. 2010-06-21 07:57:12 -07:00
Ulrich Drepper
63c4ed22b5 Fix error handling in Linux getlogin*. 2010-06-19 09:54:28 -07:00
Ulrich Drepper
b2ef2c014b Define F_SETPIPE_SZ and F_GETPIPE_SZ. 2010-06-14 14:47:34 -07:00
Takashi Yoshii
d2f7315176 Fix iov[] size in SH register_dump() 2010-05-26 07:01:43 -07:00
Andreas Schwab
3d04ff3a5d Implement recvmmsg also as socketcall 2010-05-21 12:11:28 -07:00
Andreas Schwab
5b08ac571f Make <sys/timex.h> compatible with C++ 2010-05-21 11:45:17 -07:00
Ulrich Drepper
5ae958d741 Handle too-small buffers in Linux getlogin_r. 2010-05-05 09:44:50 -07:00
Ulrich Drepper
3155f06621 Remove unnecessary Alpha support. 2010-05-05 00:26:14 -07:00
Andreas Schwab
0dabf204ef Fix makecontext on s390/s390x 2010-04-13 10:23:22 -07:00
Ulrich Drepper
aa6436d6ad Fix reading loginuid file in getlogin{,_r}. 2010-04-08 19:04:33 -07:00
Andreas Schwab
de240a05b3 Fix fallocate error return on i386. 2010-04-08 15:44:55 -07:00
Ulrich Drepper
cb652f30b0 Handle POSIX-compliant errno value of unlink in remove. 2010-04-04 02:08:37 -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
b8b14c4cc3 Fix changes to interface list during getifaddrs calls. 2010-04-03 20:36:59 -07:00
Ryan S. Arnold
3ed8e24122 Remove incorrect paring of /proc/stat etc. 2010-04-03 19:20:29 -07:00
David S. Miller
960af486d2 Fix build of mmap64. 2010-03-31 14:07:39 -07:00
Ulrich Drepper
6d28d423b2 Define MSG_WAITFORONE. 2010-03-29 22:31:44 -07:00
Ulrich Drepper
8f4a5048ee Optimize __getpagesize a bit. 2010-03-27 06:19:50 -07:00
Ulrich Drepper
463ed2f0be Fix comments and indentation. 2010-03-27 04:48:18 -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
Richard Henderson
b1c1949e60 Don't take the address of a void object.
GCC 4.5 warns about "extern void _end; &end;".
Use char[] instead, as that also doesn't fall foul
of a target's .sdata optimizations.

Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 09:16:21 -07:00
Ulrich Drepper
89a4419cc3 Add support for new clocks.
Recent Linux kernels added support for the CLOCK_MONOTONIC_RAW,
CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE clocks.
2010-03-25 04:01:33 -07:00
Ulrich Drepper
c8727fa6e5 Fix Linux getlogin{_r,} implementation
The old implementation uses fd 0 to determine the login TTY.  This
was needed because using /dev/tty it is not possible to deduce the
login TTY.  For some time now there is the pseudo-file
/proc/self/loginuid which directly helps us to find the user.  Prefer
using this file.  It also works if stdin is closed, redirected, or
re-opened.
2010-03-24 17:02:57 -07:00
Ulrich Drepper
085f930b8f Allow variable shift values in mmap2. 2010-03-24 14:59:43 -07:00
Ulrich Drepper
d8c47894ca Extended ELF ABI version handling only for Linux.
If the OSABI is generic we should not allow the ABI version to be nonzero.
Move all the new functionality into Linux-specific files.
2010-03-16 23:34:59 -07:00
Ulrich Drepper
8ed9a2b18b Also update Linux-specific VALID_ELF_ABIVERSION definition. 2010-03-16 14:39:45 -07:00
Ulrich Drepper
94db8db8e8 Define UMOUNT_NOFOLLOW. 2010-03-12 08:44:10 -08:00
Ulrich Drepper
b886abfbac Fix one left over from last change to statvfs. 2010-03-07 18:22:52 -08:00
Ulrich Drepper
6e0a06fa40 Handle ext4 and logfs in statvfs functions. 2010-03-06 15:40:50 -08:00
Ulrich Drepper
d8c34cd19f More in.h definitions from the Linux kernel. 2010-03-03 15:37:12 -08:00
Aurelien Jarno
321029f1c3 sparc64: Fix msgrcv()
msgrcv() does not work on sparc64, as it passes the 6th argument using
the ipc kludge, while the kernel waits for a 6 arguments syscall. This
patches fixes the problem by using a sparc64 specific version of
msgrcv.c.

2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>

	* sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
2010-03-03 02:14:03 -08:00
David S. Miller
34a407de96 sparc: Fix 32-bit makecontext arg passing.
test-makecontext3 fails because we fill in the argument
stack slots past the 5th using the wrong index.
2010-02-20 13:48:07 -08:00
Luis Machado
41288fbb78 Cleanup old obsolete PPC_REL16 checks 2010-02-12 07:55:01 -08:00
Luis Machado
61c9346ddc Fix POWER7 Implies 2010-02-10 07:15:01 -08:00
Ulrich Drepper
0cbcca89ba Whitespace and copyright year fixes. 2010-02-06 02:38:53 -08:00
Andreas Schwab
03849910cd Avoid PLT calls in utmp compat wrappers on Linux/s390 2010-02-06 02:03:10 -08:00
Andreas Schwab
70da4a1826 Add new errlist compat entry for 2.12. 2010-02-06 02:02:22 -08:00
Ulrich Drepper
1712734592 Update constants for current kernels. 2010-02-03 06:55:30 -08:00
Andreas Schwab
e3b7670be2 Fix ____longjmp_chk for s390/s390x. 2010-01-20 07:59:30 -08:00
Ulrich Drepper
057edf90e0 memcpy for ppc/cell. 2010-01-18 12:40:29 -08:00
Andreas Schwab
f87d0dac8b Remove duplicate definitions of O_DSYNC and O_RSYNC for Linux/sparc. 2010-01-18 08:38:18 -08:00
Ulrich Drepper
64c1f3af5d Fix double-inclusion problem of bits/stat.h. 2010-01-11 11:03:27 -08:00
Ulrich Drepper
33780b6d33 FIx up signal.h for XPG7. 2010-01-10 18:43:30 -08: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
4286fa41ed Handle AT_FDCWD in futimens. 2009-12-21 14:08:05 -08:00
Ulrich Drepper
f282f6b90a Update poll.h header for POSIX 2008. 2009-12-15 13:05:14 -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
633bbc1d91 Fix kernel version check in recent ptsname change. 2009-12-09 08:34:48 -08:00
Ulrich Drepper
ee1a7fabb4 Add recvmmsg interface. 2009-12-08 20:10:46 -08:00
Ulrich Drepper
02a52de084 Define SCHED_IDLE and SCHED_RESET_ON_FORK for Linux. 2009-11-30 08:24:59 -08:00
Ulrich Drepper
e2c59de609 Avoid handling long-obsolete old BSD PTY handling in ptsname.
Support for this type of PTY was removed in the 2.1.115 kernel.  Just
use __LINUX_KERNEL_VERSION to determine when we can drop the compat code.
2009-11-26 08:47:56 -08:00
Ulrich Drepper
aa9890239a Optimize grantpt.
grantpt was performing two consecutive calls to stat with the same
file name.  Avoid this by creating a special version of the ptsname
function which allows to pass the stat result back to the caller.
2009-11-24 18:50:32 -08:00
Ulrich Drepper
0f622686af Avoid local PLTs. 2009-11-24 18:47:26 -08:00
Ulrich Drepper
139ee080b6 Prevent unintended file desriptor leak in grantpt.
The pt_chown program is completely transparently called.  It might
not be able to live with the various file descriptors the program
has open at the time of the call (e.g., under SELinux).  Close all
but the needed descriptor and connect stdin, stdout, and stderr
with /dev/null.  pt_chown shouldn't print anything when called to
do real work.
2009-11-24 18:24:14 -08:00
Andreas Schwab
e3611aefb4 Use struct timespec for timestamps in struct stat also if __USE_XOPEN2K8.
POSIX.1-2008 made stat.st_[acm]tim mandatory.
2009-11-23 07:10:27 -08:00
Ulrich Drepper
eb4157390c Update ntp_gettime for Linux.
The ntp_gettime implementation of NTP exports the tai field the kernel
now produces.  This requires an ABI change since the ntptimeval structure
changed.  Upstream kept the same name, there is nothing to do.  This
patch changes the ntptimeval structure but keeps the old ntp_gettime
definition.  A new ntp_gettimex function which is transparently invoked
through the old name is introduced.  This has the advantage that even
object files can remain compatible.  This wouldn't be the case if
symbol versioning would be used to overload the name ntp_gettime.
2009-11-22 11:07:04 -08:00
Ulrich Drepper
89b432d7a5 Fix up <sys/timex.h> a bit more for recent API changes. 2009-11-22 10:23:12 -08:00
Ulrich Drepper
03ebadd9ea Avoid warnings in CPU_* macros when using const bitsets. 2009-11-19 10:03:46 -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