Ulrich Drepper
17f8b4a955
.
2008-10-06 16:48:17 +00:00
Ulrich Drepper
af62b44029
* sysdeps/unix/sysv/linux/fork.c (__libc_fork): Add memory barrier
...
to force runp->refcntr to be read from memory.
2008-10-06 16:47:10 +00:00
Andreas Jaeger
2458c74851
* sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock,
...
lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
lll_timedlock, lll_robust_timedlock, lll_unlock,
lll_robust_unlock): Promote private to int.
2008-09-08 Richard Guenther <rguenther@suse.de>
* sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock,
lll_robust_lock, lll_cond_lock, lll_robust_cond_lock,
lll_timedlock, lll_robust_timedlock, lll_unlock,
lll_robust_unlock): Promote private to int.
2008-09-23 18:50:28 +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
bd7f48571d
* nscd/connections.c (nscd_init): Type if preprocessor directive.
...
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
Define.
2008-07-30 16:33:19 +00:00
Ulrich Drepper
7b91359b2c
* Makeconfig: Define pie-ccflag and PIE-ccflag variables.
...
* elf/Makefile: Use pie-ccflag variable.
* nscd/Makefile: Likewise.
* sysdeps/sparc/Makefile: Set $(pie-ccflag) to -fPIE.
2008-07-26 22:22:24 +00:00
Ulrich Drepper
619cc2f69d
* scripts/gen-as-const.awk: Generate more widely usable code by
...
using 64-bit arithmetic.
2008-07-26 16:35:21 +00:00
Ulrich Drepper
1311b164df
* stdio-common/printf_fp.c (___printf_fp): Give wide outout code
...
the same treatment as narow output code in last patch.
2008-07-26 16:32:59 +00:00
Ulrich Drepper
8ccf22f934
* include/rpc/clnt.h: Declare __libc_clntudp_bufcreate and
...
__libc_clntudp_bufcreate_internal.
* include/sys/socket.h: Declare __have_sock_cloexec.
* socket/Makefile (aux): Add have_sock_cloexec.
* socket/have_sock_cloexec.c: New file.
* sunrpc/clnt_udp.h (clntudp_bufcreate): Now a wrapper around
__libc_clntudp_bufcreate.
(__libc_clntudp_bufcreate): Former implementation of clntudp_bufcreate
which takes an additional parameter. Create socket with non-blocking
mode and close-on-exec flag set, if wanted.
* sunrpc/Versions: Export __libc_clntudp_bufcreate@GLIBC_PRIVATE.
* nis/ypclnt.c (yp_bind_client_create): Use __libc_clntpudp_bufcreate
instead of clntudp_create. The socket has already the close-on-exec
flag set if SOCK_CLOEXEC is defined.
2008-07-25 17:06:50 +00:00
Ulrich Drepper
5a337776da
* nscd/grpcache.c (cache_addgr): Correctly compute size of
...
fixed-size portion of the record.
* nscd/servicescache.c (cache_addserv): Likewise.
* nscd/pwdcache.c (cache_addpw): Likewise.
* nscd/initgrcache.c (addinitgroupsX): Likewise.
2008-06-12 16:16:38 +00:00
Ulrich Drepper
10bb97c793
(tests): Add tst-rwlock2a.
2008-05-31 08:56:14 +00:00
Ulrich Drepper
e4d6e7f5c0
* sysdeps/pthread/pthread.h: Fix typo in comment.
2008-05-29 14:53:01 +00:00
Ulrich Drepper
d6296e885d
* sysdeps/pthread/createthread.c (do_clone): Pass accurate length
...
of CPU set to the kernel.
2008-05-29 05:53:30 +00:00
Ulrich Drepper
7c0ad1645f
(do_clone): Pass accurate length of CPU set to the kernel.
2008-05-29 05:53:18 +00:00
Ulrich Drepper
62605cbfcb
Remove useless more "if" tests before "free".
...
* include/inline-hashtab.h (htab_delete): Likewise.
* libio/freopen.c (freopen): Likewise.
* libio/freopen64.c (freopen64): Likewise.
* locale/programs/ld-collate.c (collate_read): Likewise.
* misc/fstab.c (libc_freeres_fn): Likewise.
* posix/glob.c (globfree): Likewise.
2008-05-27 06:04:07 +00:00
Ulrich Drepper
4b2c85c0b9
* tst-typesizes.c: Explicitly check __SIZEOF_PTHREAD_* constants.
...
David S. Miller <davem@davemloft.net>
2008-05-26 17:02:55 +00:00
Jakub Jelinek
b72f5692e8
2008-05-20 Jakub Jelinek <jakub@redhat.com>
...
David S. Miller <davem@davemloft.net>
* sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.
2008-05-21 06:47:47 +00:00
Jakub Jelinek
3b15b590b7
* sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: New file.
...
2008-05-19 Jakub Jelinek <jakub@redhat.com>
* elf/soinit.c (__EH_FRAME_BEGIN__): Remove.
2008-05-20 07:42:00 +00:00
Ulrich Drepper
cdffaaa615
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Access
...
__pshared correctly.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
Likewise.
* sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
Likewise.
Reported by Clemens Kolbitsch <clemens.kol@gmx.at>.
2008-05-11 05:42:25 +00:00
Jakub Jelinek
2313c48fa9
* sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
...
(__old_sem_wait): Fix argument to lll_futex_wait().
2008-04-14 David S. Miller <davem@davemloft.net>
* sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c
(__old_sem_wait): Fix argument to lll_futex_wait().
2008-04-15 15:00:30 +00:00
Ulrich Drepper
2f611ada05
[BZ #5209 ]
...
* sysdeps/unix/sysv/syscalls.list: times syscalls doesn't return
an error value.
2008-04-09 18:47:07 +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
Jakub Jelinek
d24be489a1
[BZ #6020 ]
...
* sysdeps/unix/sysv/linux/sparc/lowlevellock.h
(lll_futex_wake_unlock): Add private argument to the pre-v9 macro.
Patch by Sunil Amitkumar Janki <devel.sjanki@gmail.com>.
2008-04-08 Jakub Jelinek <jakub@redhat.com>
[BZ #6020 ]
* sysdeps/unix/sysv/linux/sparc/lowlevellock.h
(lll_futex_wake_unlock): Add private argument to the pre-v9 macro.
Patch by Sunil Amitkumar Janki <devel.sjanki@gmail.com>.
2008-04-08 06:36:47 +00:00
Ulrich Drepper
f96853beaf
* sysdeps/unix/sysv/linux/bits/local_lim.h: Undefined ARG_MAX if
...
<linux/limits.h> has defined it.
* sysdeps/unix/sysv/linux/sys/param.h: Define NCARGS to the legacy
ARG_MAX value and prevent ARG_MAX from being defined by the kernel
headers.
* sysdeps/unix/sysv/linux/sysconf.c: Define legacy_ARG_MAX and use
it instead of ARG_MAX.
2008-03-27 15:20:38 +00:00
Jakub Jelinek
354b75277b
* sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
...
of ASSEMBLER. nptl/
* sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Use __ASSEMBLER__ instead
of ASSEMBLER.
* sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Likewise.
2008-03-18 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/dl-sysdep.h: Use __ASSEMBLER__ instead
of ASSEMBLER.
2008-03-17 23:41:58 +00:00
Ulrich Drepper
4564918515
Fix typo.
2008-03-14 21:52:57 +00:00
Ulrich Drepper
702ae32909
* sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Define
...
HAVE_DL_DISCOVER_OSVERSION.
* sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: Likewise.
2008-03-14 21:49:02 +00:00
Ulrich Drepper
443db17889
[BZ #5778 ]
...
* sysdeps/unix/sysv/linux/pathconf.h: Declare
__statfs_chown_restricted.
* sysdeps/unix/sysv/linux/fpathconf.c: Call __statfs_chown_restricted
for _PC_CHOWN_RESTRICTED.
* sysdeps/unix/sysv/linux/pathconf.c: Likewise.
Implement __statfs_chown_restricted.
* sysdeps/unix/sysv/linux/bits/posix_opt.h: Change
_POSIX_CHOWN_RESTRICTED value to zero.
2008-02-26 Harsha Jagasia <harsha.jagasia@amd.com>
2008-03-08 01:57:18 +00:00
Roland McGrath
67fbfa5ca1
[BZ #5442 ]
...
* configure.in: Use -print-file-name if it yields a directory,
for each of include and include-fixed.
* configure: Regenerated.
2008-02-01 00:20:11 +00:00
Roland McGrath
363a641b1c
* Makeconfig (sysd-rules-targets): New variable.
...
* sysdeps/unix/make-syscalls.sh: Use it in the rules emitted.
* sysdeps/unix/Makefile (omit-deps): Append variants for each target.
2008-02-01 00:01:25 +00:00
Ulrich Drepper
dd3113da54
* sysdeps/unix/sysv/linux/x86_64/sem_post.S (sem_post): Avoid
...
unnecessary addr32 prefix.
2008-01-30 17:44:06 +00:00
Ulrich Drepper
f37eb57f80
(sem_post): Avoid unnecessary addr32 prefix.
2008-01-30 17:43:50 +00:00
Roland McGrath
16cd816fd0
* Makeconfig (sysd-rules-patterns): New variable.
...
* Makerules ($(common-objpfx)sysd-rules): Drive the loop from that.
(check-inhibit-asm): New canned sequence, replaces ...
(open-check-inhibit-asm, close-check-inhibit-asm): ... these, removed.
* elf/rtld-Rules ($(objpfx)rtld-%.os): Use $(rtld-CPPFLAGS) in commands.
(rtld-CPPFLAGS): Renamed from CPPFLAGS-rtld.
(CFLAGS-rtld): Variable removed.
2008-01-30 00:24:16 +00:00
Ulrich Drepper
b4b166af4f
* sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Use short for fnstsw.
2008-01-22 18:58:31 +00:00
Ulrich Drepper
3c7e0ea69a
(XADD): Use a scratch register.
2008-01-22 18:22:07 +00:00
Ulrich Drepper
eaf95a2682
* tst-eintr2.c (do_test): make sure that if mutex_lock in main
...
thread returns the program exits with an error code.
2008-01-15 20:15:10 +00:00
Ulrich Drepper
ab355d9aa5
* pthread-errnos.sym: Add EOVERFLOW.
...
* sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX.
* sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field.
* sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
2008-01-10 18:34:43 +00:00
Ulrich Drepper
b8cca206e2
* sysdeps/x86_64/pthreaddef.h (ARCH_RETRY_MMAP): Take additional
...
parameter. Passed it as permission to mmap.
* allocatestack.c (allocate_stack): Pass prot as second parameter
to ARCH_RETRY_MMAP.
2007-12-14 16:33:44 +00:00
Ulrich Drepper
3eb0e1c6d6
..
...
* tst-basic7.c: Allocate memory for the stack.
2007-12-12 18:41:10 +00:00
Ulrich Drepper
58d1179512
[BZ #5463 , BZ #5464 ]
...
* iconvdata/hp-thai8.c: New file.
* iconvdata/Makefile: Add rules for hp-thai8.c.
* iconvdata/tst-tables.sh: Add entry for HP-THAI8.
* iconvdata/gconv-modules: Likewise.
[BZ #5464 ]
* iconvdata/hp-greek8.c: New file.
* iconvdata/Makefile: Add rules for hp-greek8.c.
* iconvdata/tst-tables.sh: Add entry for HP-GREEK8.
* iconvdata/gconv-modules: Likewise.
[BZ #5463 ]
* iconvdata/hp-turkish8.c: New file.
* iconvdata/Makefile: Add rules for hp-turkish8.c.
* iconvdata/tst-tables.sh: Add entry for HP-TURKISH8.
* iconvdata/gconv-modules: Likewise.
2007-12-12 08:07:33 +00:00
Ulrich Drepper
189dce4f6a
[BZ #5465 ]
...
2007-12-12 Ulrich Drepper <drepper@redhat.com>
[BZ #5465 ]
* sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S [!SHARED]
(__pthread_cond_timedwait): Don't use VDSO.
2007-12-12 08:06:15 +00:00
Ulrich Drepper
26e21e7554
[BZ #5441 , BZ #5452 , BZ #5454 ]
...
2007-12-07 Ulrich Drepper <drepper@redhat.com>
[BZ #5441 ]
* stdio-common/vfscanf.c (_IO_vfwscanf): Don't free ptrs_to_free
structure, it's allocated with alloca.
* stdio-common/Makefile (tests): Add bug21.
* stdio-common/bug21.c: New file.
2007-12-06 Aurelien Jarno <aurelien@aurel32.net>
[BZ #5452 ]
* sysdeps/unix/sysv/linux/bits/sched.h: Use __extension__
keyword for gcc's braced-groups.
2007-12-07 Ulrich Drepper <drepper@redhat.com>
[BZ #5454 ]
* inet/ether_line.c: Strip hostname of whitespaces.
* inet/Makefile (tests): Add tst-ether_line.
* inet/tst-ether_line.c: New file.
2007-12-07 16:50:11 +00:00
Ulrich Drepper
191ec77f9b
* sysdeps/unix/sysv/linux/sh/lowlevellock.S (__lll_timedlock_wait):
...
Store 2 before returning ETIMEDOUT.
2007-12-05 02:31:48 +00:00
Ulrich Drepper
c012be6f99
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.S (__lll_timedlock_wait):
...
Store 2 before returning ETIMEDOUT.
* sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise
* sysdeps/unix/sysv/linux/lowlevellock.c: Likewise.
(__lll_lock_wait_private): Optimize.
(__lll_lock_wait): Likewise.
2007-11-24 01:16:53 +00:00
Ulrich Drepper
77f1e09a99
* sysdeps/pthread/pthread.h (pthread_cleanup_push,
...
pthread_cleanup_push_defer_np): Add extra (void *) cast to shut up
g++ 4.1 and 4.2 -Wstrict-aliasing warnings.
2007-11-20 22:48:12 +00:00
Ulrich Drepper
cbed6a607d
[BZ #5240 ]
...
* sysdeps/unix/sysv/linux/lowlevellock.c (__lll_timedlock_wait):
If we time out, try one last time to lock the futex to avoid
losing a wakeup signal.
* sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
* sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2007-11-09 09:09:07 +00:00
Ulrich Drepper
0f7e0ee507
[BZ #5245 ]
...
2007-11-08 Ulrich Drepper <drepper@redhat.com>
[BZ #5245 ]
* sysdeps/pthread/createthread.c (do_clone): Translate clone error
if necessary.
2007-11-08 17:24:34 +00:00
Ulrich Drepper
f6ed654cab
* sysdeps/x86_64/memset.S: Add sfence after movnti.
2007-11-08 01:07:04 +00:00
Ulrich Drepper
b92e378086
* elf/rtld.c (dl_main): Use the page size to find the map start.
2007-11-06 01:12:33 +00:00
Ulrich Drepper
94a749f69a
* time/tzfile.c (__tzfile_read): Fix check for version 0 data files.
...
Patch by Szymon Siwek <sls@poczta.wp.pl>.
2007-11-06 01:04:13 +00:00