Ulrich Drepper
cc7837639d
* libio/fileops.c (_IO_new_file_fopen): Recognize 'e' flag and set
...
O_CLOEXEC is needed.
* nis/nss_compat/compat-grp.c: Use 'e' flag when opening file.
Avoid additional fcntl to set O_CLOEXEC if not needed.
* nis/nss_compat/compat-initgroups.c: Likewise.
* nis/nss_compat/compat-pwd.c: Likewise.
* nis/nss_compat/compat-spwd.c: Likewise.
2007-07-22 18:38:37 +00:00
Ulrich Drepper
65d834b0ad
(_IO_new_file_fopen): Recognize 'e' flag and set O_CLOEXEC is needed.
2007-07-22 18:37:10 +00:00
Roland McGrath
5c3d7832b6
* manual/errno.texi: Change ECANCELED value to 119.
2007-07-22 06:53:53 +00:00
Roland McGrath
610903b0cc
* mach/lock-intern.h: Include <sys/cdefs.h>.
...
* sysdeps/mach/hurd/sigaction.c (__sigaction): Check ACT != NULL before
reading A.
* sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Define alias
to __sigsuspend.
* sysdeps/mach/i386/sysdep.h: Include <dl-sysdep.h> and <tls.h>.
2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
* sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
`__ASSEMBLER__'.
* sysdeps/mach/hurd/i386/tls.h: Likewise.
2007-07-22 06:52:07 +00:00
Roland McGrath
7b153ce13a
2006-06-13 Thomas Schwinge <tschwinge@gnu.org>
...
* sysdeps/mach/hurd/tls.h: Change `ASSEMBLER' conditional to
`__ASSEMBLER__'.
* sysdeps/mach/hurd/i386/tls.h: Likewise.
2007-07-22 06:46:54 +00:00
Ulrich Drepper
dde0763af5
* nscd/nscd_helper.c (get_mapping): Use MSG_CMSG_CLOEXEC for
...
descriptor received from nscd.
2007-07-21 17:24:43 +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
2c89631565
Define MSG_CMSG_CLOEXEC.
2007-07-21 17:20:12 +00:00
Jakub Jelinek
403445d72e
[BZ #4816 ]
...
* manual/signal.texi (Non-atomic Example): Make memory var volatile.
[BZ #4816 ]
* manual/signal.texi (Non-atomic Example): Make memory var volatile.
2007-07-20 08:03:19 +00:00
Jakub Jelinek
00d2692952
[BZ #4813 ]
...
* login/forkpty.c (forkpty): Close master and slave fds on
fork failure. Patch by
Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
2007-07-20 Jakub Jelinek <jakub@redhat.com>
[BZ #4813 ]
* login/forkpty.c (forkpty): Close master and slave fds on
fork failure. Patch by
Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>.
2007-07-20 07:20:07 +00:00
Ulrich Drepper
76755a893d
Update.
2007-07-19 17:28:56 +00:00
Ulrich Drepper
087722b854
* include/features.h (__USE_ISOC95): New define.
...
* wcsmbs/wchar.h (fwprintf, fwscanf, wprintf, wscanf, swprintf,
swscanf, vfwprintf, vwprintf, vswprintf, fwide): Define even
for -std=iso9899:199409.
* CONFORMANCE: Remove comments about unsupported AMD1.
2007-07-19 17:28:06 +00:00
Ulrich Drepper
b042b023f5
* sysdeps/ia64/sched_cpucount.c: New file.
...
* sysdeps/powerpc/sched_cpucount.c: New file.
2007-07-17 Jakub Jelinek <jakub@redhat.com>
2007-07-19 17:24:46 +00:00
Ulrich Drepper
8381e467de
* sysdeps/unix/sysv/linux/bits/sched.h (__sched_cpucount): Add
...
__BEGIN_DECLS/__END_DECLS around the prototype.
* bits/sched.h (__sched_cpucount): Likewise. Make second argument
pointer to const cpu_set_t.
2007-07-19 17:22:27 +00:00
Ulrich Drepper
50e16f8519
* bits/types.h: Don't include stddef.h, don't define __need_size_t.
...
* signal/signal.h <__USE_BSD || __USE_XOPEN_EXTENDED>: Define
__need_size_t and include stddef.h.
* sysvipc/sys/msg.h: Likewise.
* posix/sched.h: Likewise.
* hurd/hurd/signal.h (__need_size_t): Define.
* CONFORMANCE: ctype.h and wctype.h no longer define size_t,
neither does signal.h in pedantic ISO C namespaces. stdio.h
no longer defines wint_t or wchar_t.
2007-07-19 17:21:02 +00:00
Ulrich Drepper
b257c726a4
* libio/libioP.h (_IO_acquire_lock_clear_flags2_fct): New function.
...
* debug/vfwprintf_chk.c (__vfwprintf_chk): Use
_IO_acquire_lock_clear_flags2 instead of _IO_acquire_lock.
* debug/vprintf_chk.c (__vprintf_chk): Likewise.
* debug/vwprintf_chk.c (__vwprintf_chk): Likewise.
* debug/vfprintf_chk.c (__vfprintf_chk): Likewise.
* debug/fwprintf_chk.c (__fwprintf_chk): Likewise.
* debug/printf_chk.c (__printf_chk): Likewise.
* debug/fprintf_chk.c (__fprintf_chk): Likewise.
* debug/wprintf_chk.c (__wprintf_chk): Likewise.
* sysdeps/pthread/bits/stdio-lock.h (_IO_acquire_lock_clear_flags2):
Define.
2007-07-19 17:12:59 +00:00
Ulrich Drepper
d5078b9f65
* bits/confname.h (_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS): Define.
...
* posix/getconf.c (vars): Add POSIX_V6_WIDTH_RESTRICTED_ENVS.
2007-07-19 17:09:36 +00:00
Ulrich Drepper
1c3e748ef3
[BZ #4792 ]
...
* stdlib/stdlib.h (realloc): Remove __attribute_malloc__.
* malloc/malloc.h (realloc): Likewise.
2007-07-16 Jakub Jelinek <jakub@redhat.com>
2007-07-19 17:05:14 +00:00
Ulrich Drepper
4e425301f4
* libio/iopopen.c (_IO_new_proc_open): Don't close child_std_end
...
if one of proc_file_chain streams has that fileno.
* stdio-common/Makefile (tests): Add tst-popen2.
* stdio-common/tst-popen2.c: New test.
2007-07-19 17:03:08 +00:00
Ulrich Drepper
d8d7feefa7
(_IO_new_proc_open): Don't close child_std_end if one of proc_file_chain streams has that fileno.
2007-07-19 17:02:07 +00:00
Roland McGrath
2e2efe652a
* elf/ldconfig.c: Allow GPLv2 or any later version.
...
* elf/readlib.c: Likewise.
* elf/chroot_canon.c: Likewise.
* elf/cache.c: Likewise.
* nscd/mem.c: Likewise.
* nscd/getpwuid_r.c: Likewise.
* nscd/grpcache.c: Likewise.
* nscd/aicache.c: Likewise.
* nscd/getsrvbynm_r.c: Likewise.
* nscd/nscd.c: Likewise.
* nscd/servicescache.c: Likewise.
* nscd/getsrvbypt_r.c: Likewise.
* nscd/initgrcache.c: Likewise.
* nscd/gethstbyad_r.c: Likewise.
* nscd/gethstbynm2_r.c: Likewise.
* nscd/getgrnam_r.c: Likewise.
* nscd/nscd_setup_thread.c: Likewise.
* nscd/getpwnam_r.c: Likewise.
* nscd/gai.c: Likewise.
* nscd/connections.c: Likewise.
* nscd/dbg_log.c: Likewise.
* nscd/cache.c: Likewise.
* nscd/hstcache.c: Likewise.
* nscd/nscd_conf.c: Likewise.
* nscd/getgrgid_r.c: Likewise.
* nscd/pwdcache.c: Likewise.
* catgets/gencat.c: Likewise.
* locale/programs/linereader.h: Likewise.
* locale/programs/locarchive.c: Likewise.
* locale/programs/ld-paper.c: Likewise.
* locale/programs/locfile-kw.h: Likewise.
* locale/programs/ld-address.c: Likewise.
* locale/programs/xmalloc.c: Likewise.
* locale/programs/ld-time.c: Likewise.
* locale/programs/localedef.c: Likewise.
* locale/programs/simple-hash.c: Likewise.
* locale/programs/xstrdup.c: Likewise.
* locale/programs/ld-numeric.c: Likewise.
* locale/programs/locfile-kw.gperf: Likewise.
* locale/programs/ld-collate.c: Likewise.
* locale/programs/charmap-kw.gperf: Likewise.
* locale/programs/charmap.h: Likewise.
* locale/programs/charmap-kw.h: Likewise.
* locale/programs/config.h: Likewise.
* locale/programs/locfile.c: Likewise.
* locale/programs/ld-ctype.c: Likewise.
* locale/programs/charmap.c: Likewise.
* locale/programs/ld-messages.c: Likewise.
* locale/programs/repertoire.h: Likewise.
* locale/programs/locale.c: Likewise.
* locale/programs/ld-name.c: Likewise.
* locale/programs/linereader.c: Likewise.
* locale/programs/locfile.h: Likewise.
* locale/programs/3level.h: Likewise.
* locale/programs/ld-monetary.c: Likewise.
* locale/programs/ld-measurement.c: Likewise.
* locale/programs/charmap-dir.c: Likewise.
* locale/programs/ld-identification.c: Likewise.
* locale/programs/localedef.h: Likewise.
* locale/programs/charmap-dir.h: Likewise.
* locale/programs/repertoire.c: Likewise.
* locale/programs/simple-hash.h: Likewise.
* locale/programs/ld-telephone.c: Likewise.
* locale/programs/locale-spec.c: Likewise.
* locale/programs/locfile-token.h: Likewise.
* posix/getconf.c: Likewise.
* iconv/dummy-repertoire.c: Likewise.
* iconv/iconv_charmap.c: Likewise.
* iconv/iconvconfig.c: Likewise.
* iconv/iconv_prog.c: Likewise.
* malloc/memusagestat.c: Likewise.
* sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
2007-07-16 00:56:07 +00:00
Roland McGrath
84c23a3d72
* sysdeps/sh/bsd-setjmp.S (setjmp): Use correct argument registers.
...
* sysdeps/sh/bsd-_setjmp.S (_setjmp): Likewise.
* sysdeps/unix/sysv/linux/sh/clone.S (__clone): Do correct sanity
check for the first argument.
2007-07-15 00:12:18 +00:00
Roland McGrath
b25effae3d
* configure: Regenerated.
2007-07-13 21:52:52 +00:00
Roland McGrath
185742ae45
2007-07-13 Roland McGrath <roland@redhat.com>
...
* configure: Regenerated.
2007-07-13 21:52:28 +00:00
Ulrich Drepper
a88f47a72f
* sysdeps/powerpc/powerpc32/power6/memset.S: Update comments.
...
Specify .machine power6 to get ISA-V2.0 branch hints. Unroll loops
and avoid branch misspredicts for > 31 bytes memset case.
* sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
Remove toc ref to __cache_line_size.
* sysdeps/powerpc/powerpc32/power4/memcmp.S: Specify .machine power4
to get ISA-V2.0 branch hints.
* sysdeps/powerpc/powerpc32/power4/memcpy.S: Likewise
* sysdeps/powerpc/powerpc32/power4/memset.S: Likewise
* sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
* sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
* sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
* sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
Remove toc ref to __cache_line_size.
* sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S:
Include math_ldbl_opt.h.
2007-07-12 18:38:01 +00:00
Ulrich Drepper
1c298d0887
[BZ #4775 , BZ #4776 ]
...
2007-07-12 Jakub Jelinek <jakub@redhat.com>
[BZ #4775 ]
* math/tgmath.h (__tgmath_real_type_sub): Formatting.
(__tgmath_real_type): Fix if expr is const int or other const
qualified integral type.
(__TGMATH_UNARY_REAL_ONLY): Rewritten to avoid using statement
expressions and handle const qualified arguments.
(__TGMATH_BINARY_FIRST_REAL_ONLY, __TGMATH_UNARY_REAL_IMAG,
__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
(__TGMATH_UNARY_REAL_RET_ONLY): Rewritten to avoid using
statement expressions.
(__TGMATH_BINARY_REAL_ONLY, __TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY,
__TGMATH_TERNARY_REAL_ONLY, __TGMATH_BINARY_REAL_IMAG): Likewise.
(__TGMATH_UNARY_IMAG): Define.
(conj, cproj): Use __TGMATH_UNARY_IMAG macro.
* math/Makefile (tests): Add test-tgmath2.
(CFLAGS-test-tgmath2.c): Add.
* math/test-tgmath.c (fy, dy, ly, fz, dz, lz, count_cdouble,
count_cfloat, count_cldouble): New variables.
(NCCALLS): Define.
(main): Check number of complex calls as well.
(F(compile_test)): Add complex tests and tests with const qualified
arguments.
(y, z, ccount): Define.
(F(cacos), F(casin), F(catan), F(ccos), F(csin), F(ctan), F(cacosh),
F(casinh), F(catanh), F(ccosh), F(csinh), F(ctanh), F(cexp), F(clog),
F(csqrt), F(cpow), F(cabs), F(carg), F(creal), F(cimag), F(conj),
F(cproj)): New functions.
* math/test-tgmath2.c: New test.
2007-07-11 Jakub Jelinek <jakub@redhat.com>
[BZ #4776 ]
* elf/dl-load.c (_dl_rtld_di_serinfo): Output / in LD_LIBRARY_PATH,
RPATH etc. as "/" rather than "", don't segfault on empty paths,
instead output ".".
* dlfcn/Makefile (distribute): Add glreflib3.c.
(module-names): Add glreflib3.
($(objpfx)tst-dlinfo.out): Depend on glreflib3.so rather than
glreflib1.so.
(LDFLAGS_glreflib3.so): New.
* dlfcn/tst-dlinfo.c (do_test): Load glreflib3.so instead of
glreflib1.so.
* dlfcn/glreflib3.c: New file.
* intl/finddomain.c (_nl_find_domain): If _nl_explode_name
returned -1, return NULL.
* intl/explodename.c (_nl_explode_name): Return -1 if
_nl_normalize_codeset failed.
2007-07-12 18:17:11 +00:00
Ulrich Drepper
f98c2d06bb
[BZ #4773 ]
...
2007-07-10 Ulrich Drepper <drepper@redhat.com>
[BZ #4773 ]
* time/strptime_l.c (__strptime_internal): Implement greedy
matching of weekday and month names.
2007-07-10 22:14:12 +00:00
Ulrich Drepper
9ffe4385a8
Test of greedy matching in strptime.
2007-07-10 22:12:28 +00:00
Roland McGrath
cec5991f13
* elf/elf.h (NT_GNU_ABI_TAG): New macro.
...
(ELF_NOTE_ABI): Use it.
(NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
2007-07-10 00:39:31 +00:00
Roland McGrath
57b5b34cca
2007-07-09 Roland McGrath <roland@redhat.com>
...
* elf/elf.h (NT_GNU_ABI_TAG): New macro.
(ELF_NOTE_ABI): Use it.
(NT_GNU_HWCAP, NT_GNU_BUILD_ID): New macros.
2007-07-10 00:39:26 +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
Ulrich Drepper
0923a2c896
* stdio-common/vfscanf.c (_IO_vfscanf): Add additional test for EOF
...
in loop to look for conversion specifier to avoid testing of
wrong errno value.
* stdio-common/Makefile (tests): Add bug18, bug18a, bug19, bug19a.
* stdio-common/bug18a.c: New file.
* stdio-common/bug19.c: New file.
* stdio-common/bug19a.c: New file.
2007-07-08 04:41:34 +00:00
Ulrich Drepper
e9055017f6
* libio/wstrops.c (_IO_wstr_underflow): Clear errno before
...
returning WEOF.
* stdio-common/Makefile (tests): Add bug18a.
* stdio-common/bug18a.c: New file.
2007-07-07 21:38:43 +00:00
Ulrich Drepper
c2c7bd3f86
[BZ #4745 ]
...
2007-07-07 Ulrich Drepper <drepper@redhat.com>
[BZ #4745 ]
* libio/strops.c (_IO_str_underflow): Clear errno before returning
EOF.
* stdio-common/Makefile (tests): Add bug18.
* stdio-common/bug18.c: New file.
2007-07-07 18:29:30 +00:00
Ulrich Drepper
765c6b0c46
* sysdeps/sh/tls.h: Include stdlib.h, list.h, sysdep.h and
...
kernel-features.h.
2007-07-07 01:54:07 +00:00
Ulrich Drepper
0a2b90bd50
Include stdlib.h, list.h, sysdep.h and kernel-features.h.
2007-07-07 01:53:19 +00:00
Roland McGrath
4facf4afec
* Makeconfig ($(common-objpfx)gnu/lib-names.stmp): Use LC_ALL=C when
...
running awk script.
2007-07-05 22:03:57 +00:00
Roland McGrath
6b7eaea1df
whitespace
2007-07-04 22:08:03 +00:00
Ulrich Drepper
8e46c99fd5
Fix typo.
2007-07-04 21:17:34 +00:00
Ulrich Drepper
1311e86e43
* elf/dl-sysdep.c (_dl_important_hwcaps): Add integer overflow check.
...
* elf/dl-minimal.c (__libc_memalign): Likewise. Handle malloc (0).
Return NULL if mmap failed instead of asserting it does not.
(calloc): Check for integer overflow.
* elf/dl-minimal.c (__strtoul_internal): Fix parsing of numbers bigger
than LONG_MAX / 10.
2007-07-04 18:06:39 +00:00
Ulrich Drepper
57c9179cab
[BZ #4702 ]
...
2007-07-03 Jakub Jelinek <jakub@redhat.com>
[BZ #4702 ]
* nis/nss-default.c: Include errno.h.
(init): Preserve errno.
2007-07-03 14:49:53 +00:00
Ulrich Drepper
d0b283a861
* sysdeps/unix/sysv/linux/bits/socket.h (PF_UNIX): Update comment.
2007-07-02 18:34:39 +00:00
Ulrich Drepper
34e0bbaf1d
* sysdeps/unix/sysv/linux/bits/socket.h: Add PF_RXRPC and AF_RXRPC.
...
2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
* sysdeps/unix/sysv/linux/bits/socket.h: Add PF_IUCV and AF_IUCV.
2007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
2007-06-30 17:07:48 +00:00
Ulrich Drepper
3351649410
007-06-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
...
* sysdeps/s390/dl-procinfo.c: New file.
* sysdeps/s390/dl-procinfo.h: New file.
* sysdeps/unix/sysv/linux/s390/dl-procinfo.h: New file.
2007-06-30 17:03:55 +00:00
Ulrich Drepper
0e508a6e4a
* elf/dl-load.c (open_verify): Find .note.ABI-tag notes even
...
in PT_NOTE segments with multiple notes.
* elf/readelflib.c (process_elf_file): Likewise.
2007-06-30 17:01:43 +00:00
Ulrich Drepper
2f6773b574
(open_verify): Find .note.ABI-tag notes even in PT_NOTE segments with multiple notes.
2007-06-30 17:01:07 +00:00
Roland McGrath
7d9d8bd189
* init.c (__nptl_initial_report_events): New variable.
...
(__pthread_initialize_minimal_internal): Initialize pd->report_events
to that.
2007-06-26 06:47:56 +00:00
Roland McGrath
0ecf9c1064
2007-05-16 Roland McGrath <roland@redhat.com>
...
* init.c (__nptl_initial_report_events): New variable.
(__pthread_initialize_minimal_internal): Initialize pd->report_events
to that.
2007-06-26 06:47:07 +00:00
Ulrich Drepper
a28876d013
(pthread_getattr_np): Clear cpuset and cpusetsize if pthread_getaffinity_np failed with ENOSYS.
2007-06-22 22:13:52 +00:00
Ulrich Drepper
a4915df27a
* pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
...
cpusetsize if pthread_getaffinity_np failed with ENOSYS.
2007-06-22 22:13:38 +00:00