about summary refs log tree commit diff
path: root/sysdeps
Commit message (Collapse)AuthorAgeFilesLines
* [BZ #3040]Ulrich Drepper2006-08-211-1/+3
| | | | | | | 2006-08-21 Ulrich Drepper <drepper@redhat.com> [BZ #3040] * sysdeps/unix/sysv/linux/openat.c: Fix compilation if __ASSUME_ATFCTS is defined.
* * sysdeps/unix/sysv/linux/clock_settime.c (INTERNAL_VSYSCALL): Use cvs/fedora-glibc-20060815T2033Ulrich Drepper2006-08-151-2/+2
| | | | | | HAVE_CLOCK_GETRES_VSYSCALL as guard macro rather than HAVE_CLOCK_GETTIME_VSYSCALL. (maybe_syscall_settime_cpu): Use plain INTERNAL_VSYSCALL here.
* * sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Use cvs/fedora-glibc-20060815T0533Ulrich Drepper2006-08-152-53/+10
| | | | | | | | | sysdeps/posix/pause.c implementation instead. 2006-08-09 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/nice.c (nice): Transform EACCES errno from setpriority to EPERM.
* * sysdeps/powerpc/powerpc32/dl-trampoline.S (_dl_runtime_resolve):Ulrich Drepper2006-08-141-6/+8
| | | | | Don't clobber caller's LRSAVE. (_dl_prof_resolve): Likewise.
* [BZ #2832, BZ #2987]Ulrich Drepper2006-08-132-44/+121
| | | | | | | | | | | | | | | 2006-06-08 Joseph Myers <jsm28@gcc.gnu.org> [BZ #2832] * math/gen-libm-test.pl (clean_up_number): Do not remove trailing 0s from integers. 2006-08-13 Ulrich Drepper <drepper@redhat.com> [BZ #2987] * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall for CPU clocks. * sysdeps/unix/clock_settime.c: Add support for platform-specific setting of CPU clocks.
* [BZ #2841]Ulrich Drepper2006-08-121-3/+3
| | | | | | | | 2006-06-23 Paul Eggert <eggert@cs.ucla.edu> [BZ #2841] * sysdeps/generic/stdint.h (UINT8_C, UINT16_C): Don't append 'U', since C99 requires the result to promote to 'int' when uint_least8_t and uint_least16_t promote to 'int'.
* * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h (O_DIRECT): Protect withUlrich Drepper2006-08-081-1/+1
| | | | __USE_GNU.
* * stdlib/strtol_l.c (__strtol_ul_max_tab, __strtol_ul_rem_tab,Ulrich Drepper2006-08-085-57/+129
| | | | | | | | | | | | | | | | | | | | | __strtol_ull_max_tab, __strtol_ull_rem_tab): Declare. (DEF): Don't put the var into .gnu.linkonce.r.* section. Only provide var definitions in strtol_l (or for *ull* in strtoll_l). * stdio-common/bug16.c (tests): New array. (do_tests): Allow the first hexadecimal digit to be 1, 2, 4 or 8. Do 3 additional tests. * sysdeps/s390/fpu/libm-test-ulps: Update. * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c (fchownat): Use fchownat syscall if available. * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise. * sysdeps/unix/sysv/linux/sh/fchownat.c (fchownat): Likewise. * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise. (rec_dirsearch) [case HIGHER_NAME]: Correctly size ndomain array.
* [BZ #2883]Ulrich Drepper2006-08-031-4/+4
| | | | | * sysvipc/sys/msg.h: Change return value to ssize_t. * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
* Don't define OLD_HOSTIDFILE and don't try to open it. The patch introducing ↵Ulrich Drepper2006-08-031-4/+2
| | | | the macro contained a bug and used the same file name as the new file instead of using /var/adm/hostid. Nobody complaint so I'm taking this out completely.
* * sysdeps/unix/sysv/linux/syscalls.list: Remove add_key,Ulrich Drepper2006-08-012-5/+0
| | | | request_key, keyctl.
* * sysdeps/unix/sysv/linux/Versions: Finally add add_key,Ulrich Drepper2006-08-011-0/+2
| | | | request_key, and keyctl back.
* * sysdeps/unix/sysv/linux/dl-osinfo.h: Remove unnecessary include.Ulrich Drepper2006-08-011-1/+0
| | | | that the directory is empty even on non-POSIX filesystems.
* * sysdeps/unix/sysv/linux/ia64/sigsuspend.c: File removed. cvs/fedora-glibc-20060731T0706Roland McGrath2006-07-317-113/+54
| | | | | | | | | | | | | | | | | | | | * sysdeps/unix/sysv/linux/x86_64/sigsuspend.c: File removed. * sysdeps/unix/sysv/linux/s390/s390-64/sigsuspend.c: File removed. * sysdeps/unix/sysv/linux/sparc/sparc64/sigsuspend.c: File removed. * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): New macro. (nanosleep_not_cancel): New macro. (sigsuspend_not_cancel): new macro. * sysdeps/unix/sysv/linux/sigsuspend.c [__ASSUME_REALTIME_SIGNALS] (do_sigsuspend): Define as inline. (__sigsuspend): Always use do_sigsuspend. [! NO_CANCELLATION] (__sigsuspend_nocancel): New function. * include/signal.h: Declare __sigsuspend_nocancel. * sysdeps/posix/pause.c [! NO_CANCELLATION] (__pause_nocancel): New function. * include/unistd.h (__pause_nocancel): Add attribute_hidden. * include/time.h (__nanosleep_nocancel): Likewise.
* * sysdeps/unix/sysv/linux/kernel-features.h: Define cvs/fedora-glibc-20060729T2255Ulrich Drepper2006-07-291-8/+9
| | | | | | __ASSUME_FUTEX_LOCK_PI. * include/time.h: Declare __nanosleep_nocancel. * include/unistd.h: Declare __pause_nocancel.
* Update.Ulrich Drepper2006-07-268-8/+8
| | | | | | | | | | | | | 2006-07-25 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Fix comment. * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/sh/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/x86_64/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
* * elf/dl-lookup.c (dl_new_hash): New functions. cvs/fedora-glibc-20060710T2206Ulrich Drepper2006-07-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (_dl_lookup_symbol_x): Rename hash to old_hash and don't compute value here. Compute new-style hash value. Pass new hash value and reference to variable with the old value to do_lookup_x. (_dl_setup_hash): If DT_GNU_HASH is defined, use it and not old-style hash table. (_dl_debug_bindings): Pass new hash value and reference to variable with the old value to do_lookup_x. * elf/do-lookup.h (do_lookup_x): Accept additional parameter with new-style hash value and change old-style hash value parameter to be a reference. Reoganize functions to determine whether new-style hash table is available. Only fall back on old-style table. If old-style hash value is needed, compute it here. * elf/dynamic-link.h (elf_get_dynamic_info): Relocate DT_GNU_HASH entry. * elf/elf.h: Define SHT_GNU_HASH, DT_GNU_HASH, DT_TLSDEC_PLT, DT_TLSDEC_GOT. Adjust DT_ADDRNUM. * include/link.h (struct link_map): Add l_gnu_bitmask_idxbits, l_gnu_shift, l_gnu_bitmask, l_gnu_buckets and l_gnu_chain_zero. * Makeconfig: If linker supports --hash-style option add it to all linker command lines to build DSOs. * config.make.in: Define have-hash-style. * configure.in: Test whether linker supports --hash-style option. * elf/dl-misc.c (_dl_name_match_p): Make MAP parameter const. * sysdeps/generic/ldsodefs.h: Adjust prototype.
* * sysdeps/posix/spawni.c (__spawni): Use local_seteuid andUlrich Drepper2006-06-043-1/+30
| | | | | | local_setegid instead of seteuid and setegid. * sysdeps/generic/local-setxid.h: New file. * sysdeps/unix/sysv/linux/local-setxid.h: New file.
* * sysdeps/posix/spawni.c (__spawni): Use non-cancelable interfaces.Ulrich Drepper2006-06-041-5/+6
|
* * sysdeps/posix/getaddrinfo.c (gaiconf_init): Initialize bits inUlrich Drepper2006-05-301-1/+2
| | | | | | the correct place. copying. No need to allocate new array for group members. Just
* * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_sendreq): Make sureUlrich Drepper2006-05-191-1/+4
| | | | no uninitialized memory is passed to sendto.
* * sysdeps/posix/getaddrinfo.c: Add unique labels to the defaultUlrich Drepper2006-05-181-1/+16
| | | | | | | RFC3484 precedence table for fec0::/10 and fc00::/7 (site-local and ULA respectively). Set precedence for IPv4 address to 10 as defined in RFC3484 for preferring IPv6. * posix/gai.conf: Update to match the new default tables.
* * sysdeps/unix/sysv/linux/sys/inotify.h: Define IN_CLOSE, IN_MOVE,Ulrich Drepper2006-05-171-1/+10
| | | | IN_ONLYDIR, IN_DONT_FOLLOW, and IN_MASK_ADD.
* * include/rpc/key_prot.h: Maek all _internal functions as hidden.Ulrich Drepper2006-05-151-2/+2
| | | | | | | | | | | | * include/rpc/auth.h: Mark xdr_des_block_internal and xdr_opaque_auth_internal as hidden. * sysdeps/unix/sysv/linux/getdents.c: Mark __have_no_getdents64 as hidden. * include/rpc/xdr.h: Make all _internal functions as hidden. * sunrpc/pmap_rmt.c: Declare xdr_rmtcall_args_internal as hidden.
* * resolv/res_debug.c (loc_ntoa): Make error const.Ulrich Drepper2006-05-151-3/+4
| | | | | | | | | | | | 2006-05-14 Andreas Schwab <schwab@suse.de> * math/complex.h [__LDBL_COMPAT]: Use __REDIRECT_NTH. 2006-05-12 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/sched_getaffinity.c: Include sys/param.h. (__sched_getaffinity_new): Don't crash if cpusetsize is smaller than sizeof (cpu_set_t).
* * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Only storeUlrich Drepper2006-05-101-23/+24
| | | | results if the call was succesful.
* * posix/wordexp.c: Remove numerous NULL pointer tests before FREEUlrich Drepper2006-05-101-1/+0
| | | | calls.
* * posix/wordexp.c (w_addword): Free word if realloc fails and itUlrich Drepper2006-05-102-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | was allocated here. [Coverity CID 219] * posix/getconf.c (print_all): Free confstr data after printing. [Coverity CID 218] * sysdeps/posix/getaddrinfo.c (gaih_inet): Free canon string if list allocation fails. [Coverity CID 215] * nss/nsswitch.c (__nss_configure_lookup): Fix loop end condition. [Coverity CID 213] * argp/argp-help.c (hol_entry_cmp): Don't call canon_doc_option if string is NULL. [Coverity CID 212] * argp/Makefile: Add rules to build and run bug-argp1. * argp/bug-argp1.c: New file. * io/ftw.c (ftw_dir): Use __rawmemchr instead of strchr to find end of string. * stdlib/canonicalize.c (__realpath): Likewise. * locale/programs/ld-time.c (time_finish): Don't dereference NULL pointer. [Coverity CID 206] * elf/dl-dst.h (DL_DST_REQUIRED): Be prepared for missing link map in statically linked code. * elf/dl-load.c (_dl_dst_substitute): When replacing ORIGIN in statically built code, be prepared to have no link map. [Coverity CID 205] * argp/argp-help.c (fill_in_uparams): Handle STATE==NULL in dgettext calls. [Coverity CID 204] * argp/argp-help.c (struct uparams): Remove valid member. Change the one user. (uparam_names): Reduce size. Avoid relative relocations. Moved to read-only segment. (fill_in_uparams): Update for new layout. * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Parameter can be assumed to always be != NULL. [Coverity CID 202] * argp/argp-help.c (hol_entry_help): Remove some dead code [Coverity CID 200]. * nis/nss_nis/nis-service.c (_nss_nis_getservbyport_r): Optimize away a few more unconditional yperr2nss calls. (_nss_nis_getservbyname_r): Likewise.
* * sysdeps/generic/ldsodefs.h: Remove support for non-coreUlrich Drepper2006-05-071-44/+1
| | | | architectures.
* ,Ulrich Drepper2006-05-061-1/+10
| | | | | * sysdeps/unix/sysv/linux/check_pf.c (make_request): Make sure that unused memory passed to sendto is nevertheless initialized.
* * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Define SPLICE_F_*.Ulrich Drepper2006-05-058-0/+72
| | | | | | | | | | * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/sh/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/x86_64/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
* * sysdeps/s390/s390-32/elf/start.S: Replace pc relative relocationUlrich Drepper2006-05-054-14/+19
| | | | | | | | | by a GOT relocation to make Scrt1.o position independent. * sysdeps/s390/s390-64/elf/start.S: Likewise. * sysdeps/unix/sysv/linux/s390/s390-32/syscall.S: Add support for six system call parameters. * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
* * sysdeps/posix/getaddrinfo.c: Implement configuration fileUlrich Drepper2006-05-041-33/+379
| | | | | | | | | handling. /etc/gai.conf can contain replacements for the label and precedence table. Fix byte order of default label and precedence table. * posix/gai.conf: New file. * posix/tst-rfc3484.c: Adjust for changes to getaddrinfo.c. * posix/tst-rfc3484-2.c: Likewise.
* * sysdeps/unix/sysv/linux/alpha/bits/mman.h: Fix MADV_REMOVE value.Ulrich Drepper2006-05-028-8/+8
| | | | | | | | | | * sysdeps/unix/sysv/linux/i386/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
* * misc/tsearch.c (__tdelete): Remove unnecessary testUlrich Drepper2006-05-021-3/+11
| | | | | | | [Coverity CID 75]. * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Print error message for invalid DWARF data instead of crashing.
* * posix/Makefile (tests): Add tst-getaddrinfo3.Ulrich Drepper2006-04-301-1/+1
| | | | | | | * posix/tst-getaddrinfo3.c: New file. * sysdeps/posix/getaddrinfo.c (gaih_inet): Add parenthesis in test for better readability.
* [BZ #1386]Ulrich Drepper2006-04-271-0/+4
| | | | | | * iconvdata/ibm932.c: Change mapping to allow round-trips. * iconvdata/ibm943.c: Likewise. Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
* Allow inclusion from <fcntl.h>.Ulrich Drepper2006-04-271-1/+1
|
* * sysdeps/unix/sysv/linux/syscalls.list: Add vmsplice.Ulrich Drepper2006-04-2610-6/+63
| | | | | | | | | | | | | | * sysdeps/unix/sysv/linux/Versions: Export vmsplice@@GLIBC_2.5. * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Declare vmsplice. * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/sh/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/x86_64/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/bits/uio.h: Fix a typo in a comment.
* Fix a typo in a comment.Ulrich Drepper2006-04-261-2/+2
|
* * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix typo which caused cvs/fedora-glibc-20060426T2000Ulrich Drepper2006-04-261-1/+1
| | | | bugs not to be reported.
* [BZ #2389]Ulrich Drepper2006-04-251-0/+56
| | | | | | | | * resolv/res_hconf.c: Remove 'order' parsing. Just ignore the line. * resolv/res_hconf.h: Remove Name_Service definition. (struct hconf): Replace service related fields with placeholders. * version.h (VERSION): Bump to 2.4.90 for the trunk.
* [BZ #2386]Ulrich Drepper2006-04-252-2/+6
| | | | | | | | | | * sysdeps/unix/sysv/linux/ia64/clone2.S: Check for NULL stakc pointers to match other architectures. * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (tests): Add tst-clone. * sysdeps/unix/sysv/linux/tst-clone.c: New file. malloc'ed wbuffer which isn't freed in error conditions.
* * sysdeps/posix/getaddrinfo.c (getaddrinfo): Always initialize in6ai.Ulrich Drepper2006-04-241-1/+1
|
* * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range): UseUlrich Drepper2006-04-241-3/+4
| | | | __LONG_LONG_PAIR macro.
* * posix/bits/unistd.h (__readlinkat_chk): New prototype.Ulrich Drepper2006-04-241-0/+1
| | | | | | | | | | | | | | | | | (__readlinkat_alias): New alias. (readlinkat): New inline function. * include/unistd.h (readlinkat): Add libc_hidden_proto. * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Add libc_hidden_def. * io/readlinkat.c (readlinkat): Likewise. * debug/readlinkat_chk.c: New file. * debug/Makefile (routines): Add readlinkat_chk. * debug/Versions (libc): Export __readlinkat_chk@@GLIBC_2.5. * debug/tst-chk1.c (do_test): Add readlinkat tests. * nis/nss_nisplus/nisplus-netgrp.c: Cleanups. code is possible. Move compatibility code in .text.compat section. over gaih array. There is only one function to call in the moment.
* [BZ #1951]Ulrich Drepper2006-04-231-6/+17
| | | | | | | | | 2006-04-23 Ulrich Drepper <drepper@redhat.com> [BZ #1951] * sysdeps/posix/sigset.c (sigset): Return correct value reflecting previous signal state. * signal/Makefile (tests): Add tst-sigset2. * signal/tst-sigset2.c: New file.
* * sysdeps/unix/sysv/linux/kernel-features.h: DefineUlrich Drepper2006-04-193-22/+45
| | | | | | | __ASSUME_PROC_SELF_FD_SYMLINK. * sysdeps/unix/sysv/linux/ttyname.c: Cleanups. Avoid compatibility code is possible. Move compatibility code in .text.compat section. * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
* * sysdeps/posix/getaddrinfo.c (getaddrinfo): Rewrite to avoid loopUlrich Drepper2006-04-182-6/+40
| | | | over gaih array. There is only on function to call in the moment.
* * include/ifaddrs.h: Define struct in6addrinfo.Ulrich Drepper2006-04-162-35/+174
| | | | | | | | | | | | | | | | | Add two more parameters to __check_pf. * sysdeps/unix/sysv/linux/check_pf.c: When using the netlink interface, determine whether IPv6 addresses are deprecated or temporary. Create array of those addresses. * inet/check_pf.c: Always tell caller there are no depracated and temporary addresses. * sysdeps/posix/getaddrinfo.c: Pretty printing. (struct sort_result): Add source_addr_flags field. (rfc3484_sort): Implement rule 3 and 7. (in6aicmp): New function. (getaddrinfo): Call __check_pf also when we need info about IPv6 source addresses. When creating array for sorting addresses, look up deprecated and temporary addresses returned by __check_pf and add flag if necessary.