1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-14 20:01:03 +03:00
Commit Graph

3063 Commits

Author SHA1 Message Date
10b3bedcb0 Add support for Linux fanotify_init and fanotify_mask syscalls. 2010-08-11 12:41:48 -07:00
c08fb0d7bb Add support for prlimit and prlimit64 on Linux. 2010-08-11 11:18:52 -07:00
c86434ccb5 (__getlogin_r_loginuid): Also fail if tpwd after pwuid call is NULL. 2010-08-06 19:18:05 -07:00
440566c3f4 Avoid namespace pollution. 2010-07-09 19:25:23 -07:00
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
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
e35fcef8b7 More fixes to error handling in getlogin_r. 2010-06-21 07:57:12 -07:00
63c4ed22b5 Fix error handling in Linux getlogin*. 2010-06-19 09:54:28 -07:00
b2ef2c014b Define F_SETPIPE_SZ and F_GETPIPE_SZ. 2010-06-14 14:47:34 -07:00
d2f7315176 Fix iov[] size in SH register_dump() 2010-05-26 07:01:43 -07:00
3d04ff3a5d Implement recvmmsg also as socketcall 2010-05-21 12:11:28 -07:00
5b08ac571f Make <sys/timex.h> compatible with C++ 2010-05-21 11:45:17 -07:00
5ae958d741 Handle too-small buffers in Linux getlogin_r. 2010-05-05 09:44:50 -07:00
3155f06621 Remove unnecessary Alpha support. 2010-05-05 00:26:14 -07:00
0dabf204ef Fix makecontext on s390/s390x 2010-04-13 10:23:22 -07:00
aa6436d6ad Fix reading loginuid file in getlogin{,_r}. 2010-04-08 19:04:33 -07:00
de240a05b3 Fix fallocate error return on i386. 2010-04-08 15:44:55 -07:00
cb652f30b0 Handle POSIX-compliant errno value of unlink in remove. 2010-04-04 02:08:37 -07:00
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
b8b14c4cc3 Fix changes to interface list during getifaddrs calls. 2010-04-03 20:36:59 -07:00
3ed8e24122 Remove incorrect paring of /proc/stat etc. 2010-04-03 19:20:29 -07:00
960af486d2 Fix build of mmap64. 2010-03-31 14:07:39 -07:00
6d28d423b2 Define MSG_WAITFORONE. 2010-03-29 22:31:44 -07:00
8f4a5048ee Optimize __getpagesize a bit. 2010-03-27 06:19:50 -07:00
463ed2f0be Fix comments and indentation. 2010-03-27 04:48:18 -07:00
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
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
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
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
085f930b8f Allow variable shift values in mmap2. 2010-03-24 14:59:43 -07:00
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
8ed9a2b18b Also update Linux-specific VALID_ELF_ABIVERSION definition. 2010-03-16 14:39:45 -07:00
94db8db8e8 Define UMOUNT_NOFOLLOW. 2010-03-12 08:44:10 -08:00
b886abfbac Fix one left over from last change to statvfs. 2010-03-07 18:22:52 -08:00
6e0a06fa40 Handle ext4 and logfs in statvfs functions. 2010-03-06 15:40:50 -08:00
d8c34cd19f More in.h definitions from the Linux kernel. 2010-03-03 15:37:12 -08:00
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
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
41288fbb78 Cleanup old obsolete PPC_REL16 checks 2010-02-12 07:55:01 -08:00
61c9346ddc Fix POWER7 Implies 2010-02-10 07:15:01 -08:00
0cbcca89ba Whitespace and copyright year fixes. 2010-02-06 02:38:53 -08:00
03849910cd Avoid PLT calls in utmp compat wrappers on Linux/s390 2010-02-06 02:03:10 -08:00
70da4a1826 Add new errlist compat entry for 2.12. 2010-02-06 02:02:22 -08:00
1712734592 Update constants for current kernels. 2010-02-03 06:55:30 -08:00
e3b7670be2 Fix ____longjmp_chk for s390/s390x. 2010-01-20 07:59:30 -08:00
057edf90e0 memcpy for ppc/cell. 2010-01-18 12:40:29 -08:00
f87d0dac8b Remove duplicate definitions of O_DSYNC and O_RSYNC for Linux/sparc. 2010-01-18 08:38:18 -08:00
64c1f3af5d Fix double-inclusion problem of bits/stat.h. 2010-01-11 11:03:27 -08:00
33780b6d33 FIx up signal.h for XPG7. 2010-01-10 18:43:30 -08:00
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