summaryrefslogtreecommitdiff
path: root/sysdeps
AgeCommit message (Collapse)Author
2008-01-10* sysdeps/posix/getaddrinfo.c (rfc3484_sort): Store result ofUlrich Drepper
native interface lookup in all the relevant places.
2008-01-10* sysdeps/posix/getaddrinfo.c (sort_results): Remove service_orderUlrich Drepper
field. Use sockaddr_in6 for source_addr. (get_scope): Change type of parameter to sockaddr_in6. Adjust. (match_prefix): Likewise. (get_label): Likewise. (get_precedence): Likewise. (rfc3484_sort): Change to use indirect access to results array. Adjust to use of sockaddr_in6. Replace service_order test with simple index comparison. (getaddrinfo): Define order array. Initialize it. Don't initialize service_order field. Adjust qsort_t calls. Access sorted result array indirectly through order array. * posix/tst-rfc3484.c: Adjust for change of rfc3484_sort. * posix/tst-rfc3484-2.c: Likewise. * posix/tst-rfc3484-3.c: Likewise.
2008-01-09* sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext): AvoidUlrich Drepper
clobbering memory at or above uc_stack.ss_sp + uc_stack.ss_size. * stdlib/Makefile: Add rules to build and run tst-makecontext2. * stdlib/tst-makecontext2.c: New test.
2008-01-03* sysdeps/unix/sysv/linux/check_pf.c (make_request): FixUlrich Drepper
recognition of interface family.
2007-12-23(intel_02_known): New entry 0x3f.Ulrich Drepper
2007-12-15* sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_gettimeofday):Ulrich Drepper
Return long. (__vdso_clock_gettime): Likewise.
2007-12-14* sysdeps/unix/sysv/linux/x86_64/sysdep.h (INTERNAL_SYSCALL_ERROR_P):Ulrich Drepper
First cast argument to long * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Functions return long.
2007-12-12[BZ #5477]Ulrich Drepper
2007-12-12 Jakub Jelinek <jakub@redhat.com> * sysdeps/i386/i486/bits/string.h (memmove): Define as macro. (memmove): Rename to __memmove_g, with __asm__ ("memmove"). * sysdeps/s390/bits/string.h (__strlen_g, __strcpy_g, __strncpy_g, __strcat_g, __strncat_g): Add __asm__. 2007-12-12 Ulrich Drepper <drepper@redhat.com> [BZ #5477] * io/fchmodat.c: Fix typo in stub_warning use. Patch by Petr Salinger.
2007-12-10* sysdeps/unix/sysv/linux/adjtime.c: Use ADJ_OFFSET_SS_READ ifUlrich Drepper
possible. * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_ADJ_OFFSET_SS_READ): Define for 2.6.24. * sysdeps/unix/sysv/linux/sys/timex.h (ADJ_OFFSET_SS_READ): Define.
2007-12-07[BZ #5441, BZ #5452, BZ #5454]Ulrich Drepper
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-03[BZ #5439]Ulrich Drepper
* sysdeps/unix/sysv/linux/sys/signalfd.h: Fix use of __nonnull.
2007-12-03[BZ #5435]Ulrich Drepper
* sysdeps/unix/sysv/linux/i386/makecontext.S: Align stack.
2007-11-24* sysdeps/unix/sysv/linux/powerpc/powerpc64/syscalls.list: Add openUlrich Drepper
and creat system calls.
2007-11-24* sysdeps/unix/sysv/linux/check_native.c: Include <asm/types.h>.Ulrich Drepper
* nscd/mem.c (gc): Don't allocate arrays on the stack if they can Return zero in case the thread library is not NPTL.
2007-11-23* sysdeps/s390/bits/string.h (strlen, strcpy, strncpy, strcat,Ulrich Drepper
strncat): Define as macros to avoid compile errors.
2007-11-23* sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Add open andUlrich Drepper
creat entries.
2007-11-23* sysdeps/unix/sysv/linux/Makefile [subdir=inet] (sysdep_headers):Ulrich Drepper
Add netiucv/iucv.h. * sysdeps/unix/sysv/linux/netiucv/iucv.h: New file. * sysdeps/unix/sysv/linux/opensock.c (__opensock): Add AF_IUCV protocol. * sysdeps/unix/sysv/linux/sa_len.c (__libc_sa_len): Likewise. * sysdeps/unix/sysv/linux/s390/opensock.c: New file. * sysdeps/unix/sysv/linux/s390/sa_len.c: New file.
2007-11-23[BZ #5382]Ulrich Drepper
* nscd/nscd.h (NSCD_THREAD_STACKSIZE): Define. * nscd/connections.c (start_threads): Use NSCD_THREAD_STACKSIZE. * nscd/mem.c (gc): Don't allocate arrays on stack if it can overflow it. * sysdeps/unix/sysv/linux/nscd_setup_thread.c (setup_thread): Return zero in case thread library is not NPTL.
2007-11-20* sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.Ulrich Drepper
(get_scope): For IPv4 scope, use scopes table. (fini): Free scopes table if necessary. (free_scopelist): New function. (scopecmp): New function. (gaiconf_init): Also handle scopev4 entries. * posix/tst-rfc3484.c (do_test): Initialize scopes. * posix/tst-rfc3484-2.c (do_test): Likewise. * posix/gai.conf: Document scopev4 defaults. * posix/Makefile (tests): Add tst-rfc3484-3. * posix/tst-rfc3484-3.c: New file.
2007-11-19* sysdeps/posix/getaddrinfo.c (default_labels): Describe entry forUlrich Drepper
Teredo tunnels.
2007-11-182007-11-18 Roland McGrath <roland@frob.com>Roland McGrath
* sysdeps/mach/hurd/bits/fcntl.h (O_CLOEXEC): Fix value.
2007-11-17* sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):Ulrich Drepper
Add sys/signalfd.h and sys/eventfd.h.
2007-11-15Fix size of union.Andreas Jaeger
2007-11-15* sysdeps/unix/sysv/linux/check_native.c (__check_native): SimplifyUlrich Drepper
significantly. The device type is also part of the ifinfomsg data.
2007-11-14* include/ifaddrs.h: Remove in6ai_temporary.Ulrich Drepper
(struct in6addrinfo): Add index element. Declare __check_native. * inet/Makefile (aux): Add check_native. * sysdeps/unix/sysv/linux/check_native.c: New file. * sysdeps/unix/sysv/linux/check_pf.c: No need to recognize IFA_F_TEMPORARY. Pass back ifa_index. * sysdeps/posix/getaddrinfo.c: Remove netlink compatibility code. (rfc3484_sort): Add new parameter. Implement rule 7 correctly: call __check_native if necessary. (getaddrinfo): Fill in index field. Use qsort_r instead of qsort to sort addresses. Pass information about the results. * posix/tst-rfc3484.c: Adjust for addition of index field and change of rfc3484_sort interface. * posix/tst-rfc3484-2.c: Likewise.
2007-11-13Hurd-specific kernel-features.h.Ulrich Drepper
2007-11-132007-09-13 H.J. Lu <hongjiu.lu@intel.com>Roland McGrath
* sysdeps/i386/i586/memcpy_chk.S: New file. * sysdeps/i386/i586/mempcpy_chk.S: Likewise. * sysdeps/i386/i586/memset_chk.S: Likewise.
2007-11-12* include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.Ulrich Drepper
* sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return list of interfaces. Also store prefix length. * sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element. (rfc3484_sort): In rule 9, for IPv4 addresses count only matching prefix if source and destination address are in the same subnet. (getaddrinfo): Always call __check_pf. Fill in prefixlen field. Always look for matching record in in6ai list. Correct source_addr_len value for IPv6->IPv4 converted records.
2007-11-10* sysdeps/pthread/aio_misc.c (handle_fildes_io): Avoid unnecessaryUlrich Drepper
complications for 64-bit platforms.
2007-11-10* sysdeps/unix/sysv/linux/open64.c: Move __open64_2 implementation to..Ulrich Drepper
* sysdeps/unix/sysv/linux/open64_2.c: ...here. New file. * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines): Add open64_2. * sysdeps/unix/sysv/linux/ia64/syscalls.list: Add open and creat entries. * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise. * sysdeps/wordsize-64/alphasort.c: New file. * sysdeps/wordsize-64/alphasort64.c: New file. * sysdeps/wordsize-64/fseeko.c: New file. * sysdeps/wordsize-64/fseeko64.c: New file. * sysdeps/wordsize-64/ftello.c: New file. * sysdeps/wordsize-64/ftello64.c: New file. * sysdeps/wordsize-64/ftw.c: New file. * sysdeps/wordsize-64/ftw64.c: New file. * sysdeps/wordsize-64/iofgetpos.c: New file. * sysdeps/wordsize-64/iofgetpos64.c: New file. * sysdeps/wordsize-64/iofopen.c: New file. * sysdeps/wordsize-64/iofopen64.c: New file. * sysdeps/wordsize-64/iofsetpos.c: New file. * sysdeps/wordsize-64/iofsetpos64.c: New file. * sysdeps/wordsize-64/lockf.c: New file. * sysdeps/wordsize-64/lockf64.c: New file. * sysdeps/wordsize-64/mkostemp.c: New file. * sysdeps/wordsize-64/mkostemp64.c: New file. * sysdeps/wordsize-64/mkstemp.c: New file. * sysdeps/wordsize-64/mkstemp64.c: New file. * sysdeps/wordsize-64/scandir.c: New file. * sysdeps/wordsize-64/scandir64.c: New file. * sysdeps/wordsize-64/tmpfile.c: New file. * sysdeps/wordsize-64/tmpfile64.c: New file. * sysdeps/wordsize-64/versionsort.c: New file. * sysdeps/wordsize-64/versionsort64.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/aio_read.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/aio_read64.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/aio_write.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/aio_write64.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/creat64.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/lio_listio.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/lio_listio64.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/open64.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/openat.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/openat64.c: New file. * crypt/sha256-crypt.c: Fix a comment. * crypt/sha512-crypt.c: Likewise.
2007-11-08* sysdeps/x86_64/memset.S: Add sfence after movnti.Ulrich Drepper
2007-11-06* nscd/aicache.c (addhstaiX): Check herrno after IPv4 lookup onlyUlrich Drepper
when the lookup call failed. * nscd/nscd.h (struct database_dyn): Rename prunelock to prune_lock. Add prune_cond and wakeup_time. (CACHE_PRUNE_INTERNAL): Define. Update declarations of prune_cache and setup_thread. * nscd/connections.c (dbs): Update initializers. (CACHE_PRUNE_INTERNAL): Moved to nscd.h. (nscd_init): Default number of threads is now 4. (invalidate_cache): Take lock before calling prune_cache. (handle_request): If SELinux forbids the request, say so. (readylist_cond): Use static initializer. (nscd_run_prune): New function. Used only by pruning threads. (nscd_run_worder): Renamed from nscd_run. Remove support for pruning here. (fd_ready): Update nscd_run reference. (start_threads): No need to initialize readylist_cond. Start pruning threads separately. * nscd/nscd_setup_thread.c: Change return value type to int and always return 0. * sysdeps/unix/sysv/linux/nscd_setup_thread.c: Change return value type to int and return nonzero value if we can use the TID address hack. * nscd/cache.c (cache_add): If next wakeup time of cleanup thread for the database is later than the new entry's timeout, update the wakeup time and wake the cleanup thread. (prune_cache): Return seconds the next entry in the database is still valid. Remove locking for pruning here. * nscd/nscd.conf: Document default number of threads.
2007-10-31* sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Make sureUlrich Drepper
stack is properly aligned for the target function. Correct unwind info.
2007-10-28[BZ #5040]Ulrich Drepper
* sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLRDHUP): Add value.
2007-10-28[BZ #3112]Ulrich Drepper
2007-10-27 Andreas Jaeger <aj@suse.de> [BZ #3112] * sysdeps/ia64/backtrace.c (init): Free shared library if incorrect. (__cleanup): Free shared library when exiting. * sysdeps/i386/backtrace.c (init): Free shared library if incorrect. (__cleanup): Free shared library when exiting.
2007-10-28[BZ #5208]Ulrich Drepper
2007-10-23 Andreas Jaeger <aj@suse.de> [BZ #5208] * sysdeps/unix/sysv/linux/readahead.c (__readahead): Use __LONG_LONG_PAIR to handle little endian byte order. Suggested by abhishekrai@google.com
2007-10-192007-10-06 David S. Miller <davem@davemloft.net>Jakub Jelinek
* configure.in: Add sparcv9v2 and sparc64v2. * scripts/config.sub: Likewise. * configure: Regenerate. * elf/elf.h (HWCAP_SPARC_N2): New. * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8. * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'. (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2. * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file. * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file. * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file. * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file. 2007-10-06 David S. Miller <davem@davemloft.net> * configure.in: Add sparcv9v2 and sparc64v2. * scripts/config.sub: Likewise. * configure: Regenerate. * elf/elf.h (HWCAP_SPARC_N2): New. * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Bump to 8. * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add 'v9v2'. (HWCAP_IMPORTANT): Add HWCAP_SPARC_N2. * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: New file. * sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: New file. * sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: New file. * sysdeps/sparc/sparc64/sparcv9v2/memset.S: New file.
2007-10-18* sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add glibc-2.7cvs/glibc-2_7-basecvs/glibc-2_7Jakub Jelinek
weak_alias. 2007-10-17 Jakub Jelinek <jakub@redhat.com> * sysdeps/x86_64/memset.S (bzero): Renamed to __bzero. Add weak_alias.
2007-10-172007-10-17 Roland McGrath <roland@frob.com>Roland McGrath
* sysdeps/mach/hurd/bits/fcntl.h [__USE_GNU__] (F_DUPFD_CLOEXEC): New. * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Implement it.
2007-10-17* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define F_DUPFD_CLOEXEC.cvs/fedora-glibc-20071017T2007Ulrich Drepper
* 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/sparc/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
2007-10-17* sysdeps/posix/getaddrinfo.c (getaddrinfo): When sorting addressesUlrich Drepper
and admin selects to be able to replace the gai.conf file, lock data structures around the qsort call.
2007-10-17* sysdeps/x86_64/cacheinfo.c: Comment out code added in support ofUlrich Drepper
new memset. too high for the improvements. Implement bzero unconditionally for use in libc.
2007-10-17* sysdeps/x86_64/memset.S: Revert to old version for now. The cost isUlrich Drepper
too high for the improvements. 2007-10-17 Ulrich Drepper <drepper@redhat.com> Jakub Jelinek <jakub@redhat.com>
2007-10-16Help the compiler recognize unreachable code on 32-bit machines.Ulrich Drepper
2007-10-16 Ulrich Drepper <drepper@redhat.com> * time/tzfile.c (__tzfile_read): Help the compiler recognize unreachable code on 32-bit machines.
2007-10-16(__tzfile_read): Take extra memory requested by caller into account when ↵Ulrich Drepper
copying TZ string. 2007-10-16 Ulrich Drepper <drepper@redhat.com> * time/tzfile.c (__tzfile_read): Take extra memory requested by caller into account when copying TZ string.
2007-10-16* sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move Jakub Jelinek
PIC indirect jump. * sysdeps/x86_64/memset.S (memset): Fix sse2_nt_move PIC indirect jump.
2007-10-16* sysdeps/x86_64/memset.S: Jump from bzero to memset using Jakub Jelinek
a local label rather than HIDDEN_JUMPTARGET. 2007-10-16 Jakub Jelinek <jakub@redhat.com> * sysdeps/x86_64/memset.S: Jump from bzero to memset using a local label rather than HIDDEN_JUMPTARGET.
2007-10-16* sysdeps/x86_64/cacheinfo.c (__x86_64_shared_cache_size): Define.Ulrich Drepper
(init_cacheinfo): Initialize it. * sysdeps/x86_64/memset.S: Use __x86_64_shared_cache_size. Always define bzero. Remove non-glibc code. * sysdeps/x86_64/bzero.S: Make an empty file. 2007-10-15 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/x86_64/cacheinfo.c (__x86_64_preferred_memory_instruction): New. (init_cacheinfo): Initialize __x86_64_preferred_memory_instruction. * sysdeps/x86_64/memset.S: Rewrite. * nss/getXXbyYY_r.c (REENTRANT_NAME): Mangle startp and start_fct
2007-10-16Make an empty file.Ulrich Drepper
2007-10-14* sysdeps/posix/getaddrinfo.c (struct sort_result): Addcvs/fedora-glibc-20071014T1847Ulrich Drepper
service_order. (rfc3484_sort): Make sure that even of qsort doesn't support stable sorting it is stable by comparing service_order. (getaddrinfo): Initialize service_order.