about summary refs log tree commit diff
path: root/sysdeps
Commit message (Collapse)AuthorAgeFilesLines
* * sysdeps/unix/sysv/linux/syscalls.list (epoll_create, epoll_ctl,Ulrich Drepper2005-11-151-3/+3
| | | | | | | | | epoll_wait): Align with poll, make cancelable. 2005-11-15 Jakub Jelinek <jakub@redhat.com> * io/sys/stat.h (fstatat): Don't use __THROW together with __REDIRECT_NTH.
* * elf/dl-open.c [!SHARED]: Remove _dl_tls_static_size definition. cvs/fedora-glibc-20051115T0809Ulrich Drepper2005-11-151-2/+3
| | | | * sysdeps/generic/libc-tls.c: Initialize _dl_tls_static_size here.
* * io/Makefile (routines): Add fstatat, fstatat64, fxstatat, fxstatat64,Ulrich Drepper2005-11-1132-89/+1987
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fchownat, and unlinkat. (static-only-routines): Add fstatat and fstatat64. (tests): Add tst-unlinkat, tst-fstatat, tst-futimesat, tst-renameat, and tst-fchownat. * io/Versions [GLIBC_2.4]: Add fchownat, __fxstatat, __fxstatat64, and unlinkat. * io/fcntl.h: Define AT_FDCWD, AT_SYMLINK_NOFOLLOW, and AT_REMOVEDIR. * io/fstatat.c: New file. * io/fstatat64.c: New file. * io/sys/stat.h: Declare fstatat, fstatat64, __fxstatat, __fxstatat64 and define fstatat and fstatat64 inline functions. * libio/stdio.h: Declare renameat. * misc/Makefile (routines): Add futimesat. * misc/Versions [GLIBC_2.4]: Add futimesat. * posix/unistd.h: Declare fchownat and unlinkat. * stdio-common/Makefile (routines): Add renameat. * stdio-common/Versions [GLIBC_2.4]: Add renameat. * sysdeps/generic/fchownat.c: New file. * sysdeps/generic/futimesat.c: New file. * sysdeps/generic/fxstatat.c: New file. * sysdeps/generic/fxstatat64.c: New file. * sysdeps/generic/renameat.c: New file. * sysdeps/generic/unlinkat.c: New file. * sysdeps/unix/sysv/linux/fchownat.c: New file. * sysdeps/unix/sysv/linux/futimesat.c: New file. * sysdeps/unix/sysv/linux/fxstatat.c: New file. * sysdeps/unix/sysv/linux/fxstatat64.c: New file. * sysdeps/unix/sysv/linux/renameat.c: New file. * sysdeps/unix/sysv/linux/unlinkat.c: New file. * sysdeps/unix/sysv/linux/alpha/fxstatat.c: New file. * sysdeps/unix/sysv/linux/i386/fchownat.c: New file. * sysdeps/unix/sysv/linux/i386/fxstatat.c: New file. * sysdeps/unix/sysv/linux/m68k/fchownat.c: New file. * sysdeps/unix/sysv/linux/m68k/fxstatat.c: New file. * sysdeps/unix/sysv/linux/powerpc/fchownat.c: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc32/fxstatat.c: New file. * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: New file. * sysdeps/unix/sysv/linux/s390/s390-32/fxstatat.c: New file. * sysdeps/unix/sysv/linux/sh/fchownat.c: New file. * sysdeps/unix/sysv/linux/sh/fxstatat.c: New file. * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: New file. * sysdeps/unix/sysv/linux/sparc/sparc32/fxstatat.c: New file. * sysdeps/unix/sysv/linux/sparc/sparc64/fxstatat.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: New file. * sysdeps/unix/sysv/linux/wordsize-64/fxstatat64.c: New file. * time/sys/time.h: Declare futimesat. * include/fcntl.h: Declare __atfct_seterrno. * sysdeps/unix/sysv/linux/openat.c (__atfct_seterrno): New function. Split out from openat code and called. (do_test): Allow openat to fail with ENOSYS. Handle AT_FDCWD. * sysdeps/generic/openat.c: Handle AT_FDCWD. * sysdeps/generic/openat64.c: Likewise. * io/tst-unlinkat.c: New file. * io/tst-fstatat.c: New file. * io/tst-futimesat.c: New file. * io/tst-renameat.c: New file. * io/tst-fchownat.c: New file. * io/tst-openat.c: Don't fail if openat is not implemented. * sysdeps/unix/sysv/linux/powerpc/chown.c: Don't provide backward compatibility code if new kernel is guaranteed. * time/sys/time.h: Add a few nonnull attributes.
* * io/fcntl.h: Declare openat and openat64.Ulrich Drepper2005-11-105-1/+257
| | | | | | | | | | | | | * io/Makefile (routines): Add openat and openat64. (tests): Add tst-openat. * io/Versions: Add openat and openat64 for GLIBC_2.4. * sysdeps/generic/openat.c: New file. * sysdeps/generic/openat64.c: New file. * sysdeps/unix/sysv/linux/openat.c: New file. * sysdeps/unix/sysv/linux/openat64.c: New file. * io/tst-openat.c: New file. * sysdeps/unix/sysv/linux/device-nrs.h: Add info for /dev/full.
* (check_one_fd): For writable descriptors, use /dev/full. ↵Ulrich Drepper2005-11-091-10/+22
| | | | (__libc_check_standard_fds): Revert modes so that common operations on the descriptors fail.
* * sysdeps/mach/hurd/bits/stat.h (S_IMMAP0): New macro.Roland McGrath2005-11-081-2/+5
| | | | (S_ISPARE): Unset the S_IMMAP0 flag.
* * malloc/malloc.c (munmap_chunk): Suppress warnings from last change.Roland McGrath2005-11-072-2/+62
| | | | | * sysdeps/unix/sysv/linux/tcflush.c: Rewritten. * sysdeps/unix/sysv/linux/tcflow.c: Rewritten.
* sysdeps/unix/bsd/sun moved to portsRoland McGrath2005-11-0742-1974/+0
| | | | | | | 2005-11-07 Roland McGrath <roland@redhat.com> * sysdeps/unix/bsd/sun: Directory and all subdirectories removed, saved in ports repository.
* * malloc/malloc.c (munmap_chunk): Add sanity checks.Ulrich Drepper2005-11-061-1/+1
| | | | * sysdeps/pthread/configure: Fix comment.
* * configure.in: Remove gnu_ld definition and everything using it.Ulrich Drepper2005-11-0613-81/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | * config.h.in: Remove HAVE_GNU_LD. * csu/Makefile: Remove use of gnu-ld. * csu/munch.awk: Removed. * csu/munch-tmpl.c: Removed. * include/libc-symbols.h: Remove use of HAVE_GNU_LD. * posix/execl.c: Likewise. * posix/execv.c: Likewise. * stdio-common/psignal.c: Likewise. * stdlib/exit.c: Likewise. * string/strsignal.c: Likewise. * string/tester.c: Likewise. * sysdeps/generic/errlist.c: Likewise. * sysdeps/generic/getenv.c: Likewise. * sysdeps/generic/getgroups.c: Likewise. * sysdeps/generic/init-posix.c: Likewise. * sysdeps/posix/gettimeofday.c: Likewise. * sysdeps/posix/system.c: Likewise. * sysdeps/unix/bsd/init-posix.c: Likewise. * sysdeps/unix/bsd/ulimit.c: Likewise. * sysdeps/unix/bsd/sun/m68k/brk.S: Likewise. * sysdeps/unix/bsd/sun/m68k/sethostid.S: Likewise. * sysdeps/unix/bsd/sun/sparc/sethostid.S: Likewise. * sysdeps/unix/i386/brk.S: Likewise. * sysdeps/unix/sparc/brk.S: Likewise.
* * configure.in: If init_array/fini_array support is not available,Ulrich Drepper2005-11-051-23/+1
| | | | | | | | | | bail out. * config.h.in: Remove trace of optional init_array/fini_array support. * config.make.in: Likewise. * csu/elf-init.c: Likewise. * dlfcn/dlfcn.c: Likewise. * elf/soinit.c: Likewise. * sysdeps/ia64/elf/initfinit.c: Likewise.
* * sysdeps/i386/configure.in (libc_mtune_example): Variable removed.Roland McGrath2005-11-052-6/+0
| | | | * sysdeps/i386/configure: Regenerated.
* [BZ #1774]Ulrich Drepper2005-11-031-14/+16
| | | | | | | | | | | 2005-11-03 Ulrich Drepper <drepper@redhat.com> [BZ #1774] * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use simple gethostbyname2 lookup if AI_V4MAPPED|AI_ALL is set. * sysdeps/posix/getaddrinfo.c (gaih_inet): Avoid alloca when possible while looking for scope delimiter. Some pretty printing.
* * sysdeps/powerpc/powerpc64/MakefileUlrich Drepper2005-11-014-0/+268
| | | | | | | (sysdep_routines, elide-routines.os): Add hp-timing. * sysdeps/powerpc/powerpc64/hp-timing.c: New file. * sysdeps/powerpc/powerpc64/hp-timing.h: New file. * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: New file.
* * sysdeps/ia64/fpu/libm-symbols.h (WEAK_LIBM_ENTRY): Add "__"Roland McGrath2005-10-311-2/+2
| | | | | prefix to LOCAL_LIBM_ENTRY. (WEAK_LIBM_END): Add "__" prefix to LOCAL_LIBM_END.
* * misc/hsearch_r.c (hsearch_r): Remove duplicate test.Ulrich Drepper2005-10-302-4/+8
| | | | | | | | | Patch by Chris Caputo <ccaputo@alt.net>. 2005-10-28 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/unix/sh/sysdep.S: Remove unnecessary weak_alias. * sysdeps/unix/sysv/linux/sh/socket.S: Honor NO_WEAK_ALIAS.
* copyright updateRoland McGrath2005-10-231-1/+2
|
* [BZ #1254] cvs/fedora-glibc-2_3-20051023T0123Roland McGrath2005-10-231-5/+8
| | | | | | | 2005-10-22 Roland McGrath <roland@redhat.com> [BZ #1254] * sysdeps/mach/hurd/getpeername.c (__getpeername): Fix last change. From Samuel Thibault <samuel.thibault@ens-lyon.org>.
* [BZ #1252]Roland McGrath2005-10-231-2/+4
| | | | | | | 2005-10-17 Thomas Schwinge <tschwinge@gnu.org> [BZ #1252] * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Don't use ?: as lvalue. * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
* * sysdeps/alpha/remqu.S: Return the correct result when the same cvs/fedora-glibc-20051020T0651Ulrich Drepper2005-10-202-2/+2
| | | | | dividend and divisor are provided, and they're negative numbers. * sysdeps/alpha/divqu.S: Likewise.
* * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h (TESTS):Ulrich Drepper2005-10-202-0/+34
| | | | | | Define. * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h (TESTS): Likewise.
* * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h (SC_STSZ, TESTS):Ulrich Drepper2005-10-172-0/+27
| | | | | | Define. * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h (SC_STSZ, TESTS): Likewise.
* * libio/oldfileops.c (_IO_old_file_xsputn): Fix last patch.Ulrich Drepper2005-10-171-4/+9
| | | | | | | | | | | Return EOF not 0. * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Also allow EACCES errors when opening /rpco for now. * wctype/wcfuncs.c: Don't use expensive wide char lookups in isw* functions if character is in ASCII range. * wctype/wcfuncs_l.c: Likewise.
* 2005-10-16 Alfred M. Szmidt <ams@gnu.org>Roland McGrath2005-10-171-1/+7
| | | | | * sysdeps/generic/bits/mman.h [__USE_GNU] (MREMAP_MAYMOVE, REMAP_FIXED): New macros.
* * sysdeps/unix/sysv/linux/sh/makecontext.S: New file.Ulrich Drepper2005-10-1611-3/+1299
| | | | | | | | | | | | | | * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: New file. * sysdeps/unix/sysv/linux/sh/sh4/getcontext.S: New file. * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: New file. * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S: New file. * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: New file. * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S: New file. * sysdeps/unix/sysv/linux/sh/sh3/ucontext_i.h: New file. * sysdeps/unix/sysv/linux/sh/sh4/ucontext_i.h: New file. * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Removed. * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: New file. * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: New file.
* * sysdeps/unix/sysv/linux/sh/bits/mman.h: Define MREMAP_FIXED.Roland McGrath2005-10-161-0/+1
|
* [BZ #1249, BZ #1252] cvs/fedora-glibc-2_3-20051017T0259Roland McGrath2005-10-162-7/+9
| | | | | | | | | | 2005-08-05 Alfred M. Szmidt <ams@gnu.org> [BZ #1252] * sysdeps/mach/hurd/setitimer.c (restart_itimer): Move static fn forward decl out of function body. * sysdeps/mach/hurd/profil.c: Likewise. [BZ #1249]
* [BZ #1254]Roland McGrath2005-10-161-3/+8
| | | | | | * sysdeps/mach/hurd/getpeername.c (__getpeername): Respect *LEN byte limit when setting ADDR->sa_family. Reported by Samuel Thibault <samuel.thibault@ens-lyon.org>.
* [BZ #1253]Roland McGrath2005-10-161-1/+7
| | | | | | | * sysdeps/mach/hurd/dl-sysdep.h [SHARED] (DL_ARGV_NOT_RELRO): New macro. [BZ #1253]
* [BZ #1253]Roland McGrath2005-10-161-11/+14
| | | | | | | | | | | | | 2005-10-16 Roland McGrath <roland@frob.com> [BZ #1253] * sysdeps/mach/hurd/i386/init-first.c (init): Make cast kosher. (_hurd_stack_setup): Don't declare with arguments and ellipsis. Use __builtin_frame_address and __builtin_return_address. (_dl_init_first): Likewise. * sysdeps/mach/hurd/i386/init-first.c (_cthread_init_routine): Declare as weak extern. (init): Check for it being undefined.
* 2005-10-15 Thomas Schwinge <tschwinge@gnu.org>Roland McGrath2005-10-162-3/+2
| | | | | | | * include/dirent.h: Include <stdbool.h>. * sysdeps/mach/hurd/fdopendir.c: Include <fcntl.h>. (fdopendir): Correct argument to _hurd_fd_get(). * sysdeps/mach/hurd/opendir.c (__opendir): Remove stray `}'.
* * sysdeps/unix/fdopendir.c (fdopendir): Make sure descriptorUlrich Drepper2005-10-151-0/+10
| | | | allows reading.
* * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): New function, brokenRoland McGrath2005-10-152-24/+96
| | | | | | out of ... (__opendir): ... here. Call it. * sysdeps/mach/hurd/fdopendir.c: New file.
* Comment fix.Roland McGrath2005-10-151-1/+2
|
* * sysdeps/unix/opendir.c (__opendir): Pass extra argument toUlrich Drepper2005-10-142-9/+10
| | | | | | | | | | | | __alloc_dir. (__alloc_dir): Only close descriptor on error if new parameter is true. * sysdeps/unix/fdopendir.c (fdopendir): Pass extra argument to __alloc_dir. Don't close fd on error. * include/dirent.h (__alloc_dir): Adjust prototype. * include/sys/mman.h (__mremap): Add ellipsis. * malloc/memusage.c: Adjust mremap wrapper for optional additional parameter.
* [BZ #1468]Ulrich Drepper2005-10-142-6/+48
| | | | | | * sysdeps/unix/sysv/linux/x86_64/ucontext_i.h: Fix values for oFPREGS, oSIGMASK, oFPREGSMEM, and oMXCSR. Patch by Nicholas Miell <nmiell@comcast.net>.
* [BZ #1458]Ulrich Drepper2005-10-147-6/+12
| | | | | | | | | | | | | | | 2005-10-14 Ulrich Drepper <drepper@redhat.com> [BZ #1458] * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MREMAP_FIXED. * 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/sparc/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise. * misc/sys/mman.h: Add ellipsis after last parameter of mremap and adjust leading comment. * sysdeps/unix/sysv/linux/syscalls.list: Add pointer parameter to mremap syscall.
* [BZ #1466]Ulrich Drepper2005-10-133-9/+9
| | | | | | | | | * sysdeps/generic/s_csqrt.c (__csqrt): For zero real part, return principal square root. * sysdeps/generic/s_csqrtf.c (__csqrtf): Likewise. * sysdeps/generic/s_csqrtl.c (__csqrtl): Likewise. * math/libm-test.inc (csqrt_test): Add test for returning principal value.
* * sysdeps/generic/bits/byteswap.h (__bswap_constant_16): New macro.Ulrich Drepper2005-10-101-8/+11
| | | | | | (__bswap_16): Use it. (__bswap_constant_32): New macro. (__bswap_32): Use it.
* * sysdeps/unix/sysv/linux/readonly-area.c: Allow fopen to fail becauseUlrich Drepper2005-10-061-1/+1
| | | | the file does not exist.
* Allow fopen to fail because the file does not exist.Ulrich Drepper2005-10-061-1/+9
|
* * sysdeps/generic/ldsodefs.h (struct audit_ifaces):Roland McGrath2005-10-052-0/+17
| | | | | | | | Use ARCH_PLTENTER_MEMBERS and ARCH_PLTEXIT_MEMBERS macros if defined. * elf/tst-auditmod1.c: Include <tst-audit.h> to define more architecture-specific code. * sysdeps/generic/tst-audit.h: New file. * elf/Makefile (distribute): Add it.
* sysdeps/powerpc/nofpu moved to ports cvs/fedora-glibc-20051003T2040Roland McGrath2005-10-0321-1567/+0
| | | | | | 2005-10-03 Roland McGrath <roland@redhat.com> * sysdeps/powerpc/nofpu: Directory removed, saved in ports repository.
* * posix/regexec.c (update_cur_sifted_state, check_arrival,Ulrich Drepper2005-09-301-0/+16
| | | | | | | | check_arrival_add_next_nodes): Avoid using uninitialized variable. * malloc/memusage.c (dest): Fix a bunch of warnings on 32-bit arches. * sysdeps/i386/fpu/libm-test-ulps: Update for GCC 4.0.x.
* Close descriptor in case of error.Ulrich Drepper2005-09-281-1/+5
|
* * dirent/dirent.h: Declare fdopendir.Ulrich Drepper2005-09-283-13/+91
| | | | | | | | | | | | * dirent/Versions: Export fdopendir for GLIBC_2.4. * dirent/Makefile (routines): Add fdopendir. (tests): Add tst-fdopendir. * dirent/tst-fdopendir.c: New file. * include/dirent.h: Declare __alloc_dir. * sysdeps/generic/fdopendir.c: New file. * sysdeps/unix/fdopendir.c: New file. * sysdeps/unix/opendir.c: Split off back part of opendir into new function __alloc_dir.
* [BZ #1384]Roland McGrath2005-09-281-0/+18
| | | | | | | 2005-09-26 Steven Munroe <sjmunroe@us.ibm.com> [BZ #1384] * sysdeps/powerpc/fpu/libm-test-ulps: Adjust expected y1, y1f, yn, ynf results.
* (fls): New function. (gaih_inet): Don't use ffs, use fls. Convert address ↵Ulrich Drepper2005-09-261-6/+21
| | | | to native byte order first.
* [BZ #524]Ulrich Drepper2005-09-261-1/+1
| | | | | | * sysdeps/posix/getaddrinfo.c (match_prefix): Fix matching loop of number of bits is multiple of 8. Patch by Fredrik Tolf <fredrik@dolda2000.com>.
* 2005-09-24 Roland McGrath <roland@redhat.com>Roland McGrath2005-09-252-58/+0
| | | | | * sysdeps/unix/sysv/i386/signal.S: Removed, saved in ports repository. * sysdeps/unix/sysv/i386/sigreturn.S: Likewise.