Ulrich Drepper [Sun, 18 Dec 2005 22:02:01 +0000 (22:02 +0000)]
* iconv/gconv_builtin.c: Mark map with attribute_relro.
Ulrich Drepper [Sun, 18 Dec 2005 21:09:20 +0000 (21:09 +0000)]
* sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Define C
version for inside ld.so.
* elf/rtld.c (dl_main): Don't use hp timing code unless it's available.
Ulrich Drepper [Sun, 18 Dec 2005 18:36:38 +0000 (18:36 +0000)]
* sysdeps/powerpc/powerpc32/setjmp-common.S [IS_IN_rtld]: Avoid
call to __sigjmp_save.
* sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
Ulrich Drepper [Sun, 18 Dec 2005 17:32:37 +0000 (17:32 +0000)]
* stdlib/cxa_atexit.c: Use PTR_MANGLE on function pointer. Fill in
flavor field last and protect with memory barrier.
* stdlib/on_exit.c: Likewise.
* stdlib/cxa_finalize.c: Use PTR_DEMANGLE on function pointer before
using it.
* stdlib/exit.c: Likewise.
Ulrich Drepper [Sun, 18 Dec 2005 16:59:55 +0000 (16:59 +0000)]
* sysdeps/unix/sysv/linux/i386/sysdep.h: Define PTR_MANGLE and
PTR_DEMANGLE for C code in libc.
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
Ulrich Drepper [Sun, 18 Dec 2005 06:58:22 +0000 (06:58 +0000)]
* elf/Versions [GLIBC_PRIVATE]: Export __pointer_chk_guard if defined.
* elf/rtld.c: Define __pointer_chk_guard_local and if necessary
__pointer_chk_guard.
(_rtld_global_ro): Initialize _dl_pointer_guard.
(dl_main): Initialize __pointer_chk_guard_local and either
__pointer_chk_guard or TLS value if necessary.
(process_envvars): Recognize and handle LD_POINTER_GUARD.
* sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_pointer_guard.
* sysdeps/i386/__longjmp.S: Use PTR_DEMANGLE for PC if defined.
* sysdeps/x86_64/__longjmp.S: Likewise.
* sysdeps/i386/bsd-_setjmp.S: Use PTR_MANGLE for PC if defined.
* sysdeps/i386/bsd-_setjmp.S: Likewise.
* sysdeps/i386/setjmp.S: Likewise.
[IS_IN_rtld]: Avoid call to __sigjmp_save.
* sysdeps/i386/setjmp.S: Likewise.
* sysdeps/unix/sysv/linux/i386/sysdep.h: Define PTR_MANGLE and
PTR_DEMANGLE.
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
* sysdeps/i386/elf/setjmp.S: Removed.
* sysdeps/i386/elf/bsd-setjmp.S: Removed.
Ulrich Drepper [Sat, 17 Dec 2005 23:26:28 +0000 (23:26 +0000)]
* elf/dl-error.c (_dl_catch_error): Use __sigsetgjmp instead of
setjmp.
Ulrich Drepper [Sat, 17 Dec 2005 23:09:41 +0000 (23:09 +0000)]
* elf/dl-error.c (_dl_signal_error): Use __longjmp instead of longjmp.
* elf/dl-minimal.c (longjmp): Remove definition.
Ulrich Drepper [Sat, 17 Dec 2005 22:48:36 +0000 (22:48 +0000)]
* sysdeps/x86_64/bsd-setjmp.S [PIC] (setjmp): Add missing jmp.
Ulrich Drepper [Fri, 16 Dec 2005 04:07:00 +0000 (04:07 +0000)]
* nscd/Makefile: Don't build nscd_nischeck.
* nscd/nscd_nischeck.c: Removed.
Ulrich Drepper [Fri, 16 Dec 2005 00:24:16 +0000 (00:24 +0000)]
* sysdeps/unix/sysv/linux/renameat.c: Move errno setting code in
separate function __atfct_seterrno_2.
* include/fcntl.h: Declare __atfct_seterrno_2.
* posix/unistd.h: Declare linkat, symlinkat, readlinkat.
* io/Makefile (routines): Add linkat, symlinkat, readlinkat.
* io/Versions [GLIBC_2.4]: Export linkat, symlinkat, readlinkat.
* io/linkat.c: New file.
* io/readlinkat.c: New file.
* io/symlinkat.c: New file.
* sysdeps/unix/sysv/linux/linkat.c: New file.
* sysdeps/unix/sysv/linux/readlinkat.c: New file.
* sysdeps/unix/sysv/linux/symlinkat.c: New file.
Ulrich Drepper [Fri, 16 Dec 2005 00:13:45 +0000 (00:13 +0000)]
Move errno setting code in separate function __atfct_seterrno_2.
Roland McGrath [Thu, 15 Dec 2005 22:30:40 +0000 (22:30 +0000)]
[BZ #1997]
* manual/stdio.texi (String Streams): For open_memstream, elaborate a
little on malloc reference.
Roland McGrath [Thu, 15 Dec 2005 21:13:14 +0000 (21:13 +0000)]
* sysdeps/alpha/fpu/s_cacosf.c: Don't use sysdeps/generic/.
* sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
* sysdeps/alpha/fpu/s_casinf.c: Likewise.
* sysdeps/alpha/fpu/s_casinhf.c: Likewise.
* sysdeps/alpha/fpu/s_catanf.c: Likewise.
* sysdeps/alpha/fpu/s_catanhf.c: Likewise.
* sysdeps/alpha/fpu/s_ccosf.c: Likewise.
* sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
* sysdeps/alpha/fpu/s_cexpf.c: Likewise.
* sysdeps/alpha/fpu/s_clog10f.c: Likewise.
* sysdeps/alpha/fpu/s_clogf.c: Likewise.
* sysdeps/alpha/fpu/s_cpowf.c: Likewise.
* sysdeps/alpha/fpu/s_cprojf.c: Likewise.
* sysdeps/alpha/fpu/s_csinf.c: Likewise.
* sysdeps/alpha/fpu/s_csinhf.c: Likewise.
* sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
* sysdeps/alpha/fpu/s_ctanf.c: Likewise.
* sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
* sysdeps/alpha/libc-tls.c: Likewise.
* sysdeps/gnu/glob64.c: Likewise.
* sysdeps/gnu/updwtmp.c: Likewise.
* sysdeps/gnu/utmp_file.c: Likewise.
* sysdeps/i386/bzero.c: Likewise.
* sysdeps/i386/ffs.c: Likewise.
* sysdeps/i386/i686/ffs.c: Likewise.
* sysdeps/i386/memset.c: Likewise.
* sysdeps/ia64/fpu/printf_fphex.c: Likewise.
* sysdeps/ia64/libc-tls.c: Likewise.
* sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
* sysdeps/m68k/ffs.c: Likewise.
* sysdeps/mach/hurd/getdents.c: Likewise.
* sysdeps/mach/hurd/init-posix.c: Likewise.
* sysdeps/mach/msync.c: Likewise.
* sysdeps/mips/libc-tls.c: Likewise.
* sysdeps/posix/profil.c: Likewise.
* sysdeps/posix/shm_open.c: Likewise.
* sysdeps/posix/shm_unlink.c: Likewise.
* sysdeps/posix/sprofil.c: Likewise.
* sysdeps/powerpc/ffs.c: Likewise.
* sysdeps/rs6000/ffs.c: Likewise.
* sysdeps/s390/libc-tls.c: Likewise.
* sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/glob.c: Likewise.
* sysdeps/unix/sysv/linux/alpha/wordexp.c: Likewise.
* sysdeps/unix/sysv/linux/ftruncate64.c: Likewise.
* sysdeps/unix/sysv/linux/gai_sigqueue.c: Likewise.
* sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
* sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
* sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
* sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
* sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
* sysdeps/unix/sysv/linux/i386/readelflib.c: Likewise.
* sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
* sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
* sysdeps/unix/sysv/linux/ia64/readelflib.c: Likewise.
* sysdeps/unix/sysv/linux/mips/ftruncate64.c: Likewise.
* sysdeps/unix/sysv/linux/mips/readelflib.c: Likewise.
* sysdeps/unix/sysv/linux/mips/truncate64.c: Likewise.
* sysdeps/unix/sysv/linux/mq_close.c: Likewise.
* sysdeps/unix/sysv/linux/mq_getattr.c: Likewise.
* sysdeps/unix/sysv/linux/mq_notify.c: Likewise.
* sysdeps/unix/sysv/linux/mq_open.c: Likewise.
* sysdeps/unix/sysv/linux/mq_receive.c: Likewise.
* sysdeps/unix/sysv/linux/mq_send.c: Likewise.
* sysdeps/unix/sysv/linux/mq_unlink.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/readelflib.c: Likewise.
* sysdeps/unix/sysv/linux/s390/readelflib.c: Likewise.
* sysdeps/unix/sysv/linux/sched_getaffinity.c: Likewise.
* sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
* sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
* sysdeps/unix/sysv/linux/sigstack.c: Likewise.
* sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
* sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
* sysdeps/unix/sysv/linux/sparc/readelflib.c: Likewise.
* sysdeps/unix/sysv/linux/truncate64.c: Likewise.
* sysdeps/unix/sysv/linux/vfork.c: Likewise.
* sysdeps/unix/sysv/linux/x86_64/readelflib.c: Likewise.
Roland McGrath [Thu, 15 Dec 2005 20:48:12 +0000 (20:48 +0000)]
* sysdeps/unix/sysv/linux/Makefile (inhibit-siglist): Removed.
Roland McGrath [Thu, 15 Dec 2005 20:47:12 +0000 (20:47 +0000)]
2005-12-15 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/Makefile (inhibit-siglist): Removed.
Ulrich Drepper [Wed, 14 Dec 2005 15:06:39 +0000 (15:06 +0000)]
Moved to csu/errno-loc.c.
Ulrich Drepper [Wed, 14 Dec 2005 08:43:25 +0000 (08:43 +0000)]
2005-12-13 Ulrich Drepper <drepper@redhat.com>
Ulrich Drepper [Wed, 14 Dec 2005 07:50:13 +0000 (07:50 +0000)]
Use "config.h" to refer to the local config.h file.
Roland McGrath [Tue, 13 Dec 2005 20:55:23 +0000 (20:55 +0000)]
* sysdeps/generic/Makefile: Remove remaining bits/endian.h cruft.
Roland McGrath [Tue, 13 Dec 2005 20:55:16 +0000 (20:55 +0000)]
2005-12-13 Roland McGrath <roland@redhat.com>
* sysdeps/generic/Makefile: Remove remaining bits/endian.h cruft.
Ulrich Drepper [Tue, 13 Dec 2005 20:23:15 +0000 (20:23 +0000)]
* sysdeps/generic/signame.c: Removed.
* sysdeps/generic/signame.h: Removed.
* sysdeps/generic/configure.in: Removed.
* sysdeps/generic/Dist: Remove these files.
Ulrich Drepper [Tue, 13 Dec 2005 17:10:24 +0000 (17:10 +0000)]
* sysdeps/generic/det_endian.c: Removed.
* sysdeps/generic/Makefile: Remove rule to build it.
* sysdeps/generic/Dist: Don't distribute it.
Ulrich Drepper [Tue, 13 Dec 2005 17:09:11 +0000 (17:09 +0000)]
Remove det_endian.c.
Roland McGrath [Tue, 13 Dec 2005 09:26:19 +0000 (09:26 +0000)]
* sysdeps/powerpc/dl-procinfo.c: New file.
* sysdeps/powerpc/dl-procinfo.h: New file.
Roland McGrath [Tue, 13 Dec 2005 07:32:26 +0000 (07:32 +0000)]
* init.c (__pthread_initialize_minimal_internal): Do __static_tls_size
adjustments before choosing stack size. Update minimum stack size
calculation to match allocate_stack change.
Roland McGrath [Tue, 13 Dec 2005 07:32:19 +0000 (07:32 +0000)]
2005-12-12 Roland McGrath <roland@redhat.com>
* init.c (__pthread_initialize_minimal_internal): Do __static_tls_size
adjustments before choosing stack size. Update minimum stack size
calculation to match allocate_stack change.
Ulrich Drepper [Tue, 13 Dec 2005 06:16:04 +0000 (06:16 +0000)]
* allocatestack.c (allocate_stack): Don't demand that there is an
additional full page available on the stack beside guard, TLS, the
minimum stack.
Ulrich Drepper [Mon, 12 Dec 2005 21:45:40 +0000 (21:45 +0000)]
* io/sys/stat.h: Add restrict to fstatat declarations.
Ulrich Drepper [Sun, 11 Dec 2005 05:59:13 +0000 (05:59 +0000)]
* posix/regex_internal.h: Include <stdint.h> if available.
2005-12-06 Paolo Bonzini <bonzini@gnu.org>
* posix/regex_internal.h (SIZE_MAX): Provide a default definition.
Ulrich Drepper [Fri, 9 Dec 2005 06:48:51 +0000 (06:48 +0000)]
* nis/nis_call.c (inetstr2int): Optimize.
Ulrich Drepper [Thu, 8 Dec 2005 20:32:12 +0000 (20:32 +0000)]
* nis/nis_call.c (__nisbind_create): Remove __nisbind_destroy,
->clnt cannot be != NULL.
(__do_niscall): No need to use __nisbind_destroy, __nisbind_next
did it.
(__nisbind_connect): use_auth is already TRUE, otherwise we would
not be here.
* nis/nis_lookup.c (nis_lookup): Remove unnecessary
__nisbind_destroy calls. __nisbind_next does all that.
Ulrich Drepper [Thu, 8 Dec 2005 15:42:25 +0000 (15:42 +0000)]
* nis/ypclnt.c (yp_update): Before trying default authentication,
free DES descriptor.
Ulrich Drepper [Thu, 8 Dec 2005 04:12:07 +0000 (04:12 +0000)]
* nis/nis_table.c (nis_list): Fix memory handling in error case.
2005-12-07 Ulrich Drepper <drepper@redhat.com>
* nis/nis_table.c (nis_list): Remove have_tablepath, just use the
pointer value itself.
Ulrich Drepper [Wed, 7 Dec 2005 05:49:17 +0000 (05:49 +0000)]
* catgets/gencat.c: Use GPL, not LGPL.
* elf/cache.c: Likewise.
* elf/chroot_canon.c: Likewise.
* elf/ldconfig.c: Likewise.
* elf/readlib.c: Likewise.
* iconv/dummy-repertoire.c: Likewise.
* iconv/iconv_charmap.c: Likewise.
* iconv/iconv_prog.c: Likewise.
* iconv/iconvconfig.c: Likewise.
* locale/programs/3level.h: Likewise.
* locale/programs/charmap-dir.c: Likewise.
* locale/programs/charmap-dir.h: Likewise.
* locale/programs/charmap-kw.gperf: Likewise.
* locale/programs/charmap.c: Likewise.
* locale/programs/charmap.h: Likewise.
* locale/programs/config.h: Likewise.
* locale/programs/ld-address.c: Likewise.
* locale/programs/ld-collate.c: Likewise.
* locale/programs/ld-ctype.c: Likewise.
* locale/programs/ld-identification.c: Likewise.
* locale/programs/ld-measurement.c: Likewise.
* locale/programs/ld-messages.c: Likewise.
* locale/programs/ld-monetary.c: Likewise.
* locale/programs/ld-name.c: Likewise.
* locale/programs/ld-numeric.c: Likewise.
* locale/programs/ld-paper.c: Likewise.
* locale/programs/ld-telephone.c: Likewise.
* locale/programs/ld-time.c: Likewise.
* locale/programs/linereader.c: Likewise.
* locale/programs/linereader.h: Likewise.
* locale/programs/locale-spec.c: Likewise.
* locale/programs/locale.c: Likewise.
* locale/programs/localedef.c: Likewise.
* locale/programs/localedef.h: Likewise.
* locale/programs/locarchive.c: Likewise.
* locale/programs/locfile-kw.gperf: Likewise.
* locale/programs/locfile-token.h: Likewise.
* locale/programs/locfile.c: Likewise.
* locale/programs/locfile.h: Likewise.
* locale/programs/repertoire.c: Likewise.
* locale/programs/repertoire.h: Likewise.
* locale/programs/simple-hash.c: Likewise.
* locale/programs/simple-hash.h: Likewise.
* locale/programs/xmalloc.c: Likewise.
* locale/programs/xstrdup.c: Likewise.
* malloc/memusagestat.c: Likewise.
* nscd/aicache.c: Likewise.
* nscd/cache.c: Likewise.
* nscd/connections.c: Likewise.
* nscd/dbg_log.c: Likewise.
* nscd/gai.c: Likewise.
* nscd/getgrgid_r.c: Likewise.
* nscd/getgrnam_r.c: Likewise.
* nscd/gethstbyad_r.c: Likewise.
* nscd/gethstbynm2_r.c: Likewise.
* nscd/getpwnam_r.c: Likewise.
* nscd/getpwuid_r.c: Likewise.
* nscd/grpcache.c: Likewise.
* nscd/hstcache.c: Likewise.
* nscd/initgrcache.c: Likewise.
* nscd/mem.c: Likewise.
* nscd/nscd.c: Likewise.
* nscd/nscd_conf.c: Likewise.
* nscd/pwdcache.c: Likewise.
* posix/getconf.c: Likewise.
* sysdeps/generic/nscd_setup_thread.c: Likewise.
* sysdeps/unix/sysv/linux/nscd_setup_thread.c: Likewise.
Ulrich Drepper [Wed, 7 Dec 2005 04:12:32 +0000 (04:12 +0000)]
* sunrpc/auth_des.c (authdes_pk_create): If conversation key
cannot be created, free memory.
Reported by rprasad@vmware.com.
Ulrich Drepper [Wed, 7 Dec 2005 04:10:51 +0000 (04:10 +0000)]
(authdes_pk_create): If conversation key cannot be created, free memory.
Roland McGrath [Tue, 6 Dec 2005 01:38:34 +0000 (01:38 +0000)]
* sysdeps/hppa/bits/setjmp.h: Add _BITS_SETJMP_H preprocessor
protection and allow pthread.h to include bits/setjmp.h as well as
setjmp.h.
* sysdeps/m68k/bits/setjmp.h: Likewise.
* sysdeps/s390/bits/setjmp.h: Make sure only setjmp.h or pthread.h
are allow to include bits/setjmp.h.
* sysdeps/mips/bits/setjmp.h (_JMPBUF_UNWINDS): Cast rhs to match lhs
cast of address.
* sysdeps/sh/bits/setjmp.h: Likewise.
2005-11-12 Jim Meyering <jim@meyering.net>
* sysdeps/unix/opendir.c (__alloc_dir): Declare STATP parameter
to be pointer to const.
* include/dirent.h: Update decl.
Roland McGrath [Tue, 6 Dec 2005 01:28:16 +0000 (01:28 +0000)]
* sysdeps/generic/dwarf2.h: Replace license text with glibc LGPL.
Roland McGrath [Tue, 6 Dec 2005 01:24:30 +0000 (01:24 +0000)]
* hurd/hurdmalloc.c: Remove $ tag $ magic.
* mach/err_kern.sub: Likewise.
* mach/err_server.sub: Likewise.
* mach/err_us.sub: Likewise.
* mach/error_compat.c: Likewise.
* mach/errorlib.h: Likewise.
* mach/errstring.c: Likewise.
* mach/mach/error.h: Likewise.
* mach/mach_error.c: Likewise.
* mach/mach_error.h: Likewise.
* mach/msg-destroy.c: Likewise.
* mach/msgserver.c: Likewise.
* sysdeps/mach/sys/reboot.h: Likewise.
Roland McGrath [Tue, 6 Dec 2005 00:50:15 +0000 (00:50 +0000)]
* malloc/tst-mallocfork.c (do_test): Make sure sa_flags is
initialized. Reported by John Reiser <jreiser@BitWagon.com>.
Roland McGrath [Tue, 6 Dec 2005 00:48:30 +0000 (00:48 +0000)]
* stdlib/longlong.h: Update from GCC.
Roland McGrath [Tue, 6 Dec 2005 00:38:43 +0000 (00:38 +0000)]
* soft-fp/soft-fp.h: Include <stdlib.h>.
* soft-fp/floatdisf.c (__floatdisf): Return float.
Roland McGrath [Tue, 6 Dec 2005 00:35:22 +0000 (00:35 +0000)]
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_POSIX_CPU_TIMERS): New macro, for 2.6.12 and later.
Roland McGrath [Tue, 6 Dec 2005 00:15:06 +0000 (00:15 +0000)]
* sysdeps/generic/dwarf2.h: Replace license text with glibc LGPL.
Roland McGrath [Tue, 6 Dec 2005 00:15:01 +0000 (00:15 +0000)]
2005-12-05 Roland McGrath <roland@redhat.com>
* sysdeps/generic/dwarf2.h: Replace license text with glibc LGPL.
Ulrich Drepper [Sun, 4 Dec 2005 07:10:47 +0000 (07:10 +0000)]
(nis_list): One more reallocation optimization.
Ulrich Drepper [Sun, 4 Dec 2005 06:27:06 +0000 (06:27 +0000)]
* nis/nis_table.c (nis_list): Optimize freeing and reallocation of
result record.
Ulrich Drepper [Sat, 3 Dec 2005 22:36:14 +0000 (22:36 +0000)]
* nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
Better sized buffers. Correct error case handling.
Ulrich Drepper [Sat, 3 Dec 2005 22:15:54 +0000 (22:15 +0000)]
* nis/nis_error.c (nis_sperror_r): Let snprintf determine whether
there is an overflow.
* nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_setnetgrent):
Rewrite to use snprintf.
* nis/nss_nisplus/nisplus-publickey.c (_nss_nisplus_netname2user):
Likewise.
Ulrich Drepper [Sat, 3 Dec 2005 20:12:27 +0000 (20:12 +0000)]
* nis/nss_nisplus/nisplus-service.c: Fix locking to use
_nss_create_tablename. Avoid unnecessary copying, remove
unnecessary variables, general cleanup.
* nis/nss_nisplus/nisplus-rpc.c: Likewise.
* nis/nss_nisplus/nisplus-proto.c: Likewise..
* nis/nss_nisplus/nisplus-network.c: Fix locking to use
_nss_create_tablename. Avoid unnecessary copying, general cleanup.
* nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_getipnodebyname_r):
Removed.
Fix locking to use _nss_create_tablename. Avoid unnecessary copying,
general cleanup.
* nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_getntohost_r):
Correctly construct request.
Fix locking to use _nss_create_tablename. Avoid unnecessary copying,
general cleanup.
* nis/nss_nisplus/nisplus-alias.c: Fix locking to use
_nss_create_tablename. Avoid unnecessary copying, general cleanup.
Ulrich Drepper [Sat, 3 Dec 2005 05:20:52 +0000 (05:20 +0000)]
* nis/nss_nisplus/nisplus-pwd.c (_nss_pwd_create_tablename):
Renamed from _nss_create_tablename. Export from file (but not DSO).
(pwd_tablename_val): Renamed from tablename_val, mark hidden.
(pwd_tablename_len): Renamed from tablename_len, mark hidden.
Change all users.
* nis/nss_nisplus/nisplus-spwd.c (_nss_create_tablename): Removed.
Use _nss_pwd_create_tablename now. Use pwd_tablename_val and
pwd_tablename_len. Remove unnecessary variables, general cleanup.
* nis/nss_nisplus/nisplus-grp.c: Likewise.
Ulrich Drepper [Sat, 3 Dec 2005 04:44:36 +0000 (04:44 +0000)]
* nis/nss_nisplus/nisplus-pwd.c: Fix locking to use
_nss_create_tablename. Avoid unnecessary copying, remove
unnecessary variables, general cleanup.
Ulrich Drepper [Fri, 2 Dec 2005 21:55:54 +0000 (21:55 +0000)]
* io/Makefile (routines): Add mknodat, xmknodat, mkdirat, mkfifoat.
(static-only-routines): Add mknodat.
* io/Versions [GLIBC_2.4]: Add mkdirat, mkfifoat, __xmknodat.
* io/sys/stat.h: Declare mkditat, mknodat, mkfifoat, __xmknodat.
Define mknodat inline function.
* include/sys/stat.h: Add hidden proto for __xmknodat.
* sysdeps/generic/mkdirat.c: New file.
* sysdeps/generic/mkfifoat.c: New file.
* sysdeps/generic/mknodat.c: New file.
* sysdeps/generic/xmknodat.c: New file.
* sysdeps/unix/mkfifoat.c: New file.
* sysdeps/unix/sysv/linux/mkdirat.c: New file.
* sysdeps/unix/sysv/linux/xmknodat.c: New file.
* sysdeps/generic/xmknod.c: Add one more parameter check.
Ulrich Drepper [Fri, 2 Dec 2005 21:41:00 +0000 (21:41 +0000)]
Add one more parameter check.
Andreas Jaeger [Mon, 28 Nov 2005 08:25:55 +0000 (08:25 +0000)]
(MREMAP_FIXED): Added. Patch by René Rebe <rene@exactcode.de>.
2005-11-28 Andreas Jaeger <aj@suse.de>
* sysdeps/unix/sysv/linux/mips/bits/mman.h (MREMAP_FIXED): Added,
Patch by René Rebe <rene@exactcode.de>.
Ulrich Drepper [Sun, 27 Nov 2005 23:13:21 +0000 (23:13 +0000)]
* sysdeps/posix/getaddrinfo.c: Avoid RFC 3484 sorting if there are
multiple return records but only one address.
Ulrich Drepper [Sun, 27 Nov 2005 22:59:43 +0000 (22:59 +0000)]
* sysdeps/posix/getaddrinfo.c (gaih_inet): Avoid some code duplication.
Ulrich Drepper [Sun, 27 Nov 2005 22:58:34 +0000 (22:58 +0000)]
(gaih_inet): Avoid some code duplication.
Roland McGrath [Sun, 27 Nov 2005 21:20:05 +0000 (21:20 +0000)]
* sysdeps/unix/sysv/linux/fchownat.c: Include alloca.h, sysdep.h.
Reported by René Rebe <rene@exactcode.de>.
Roland McGrath [Sun, 27 Nov 2005 21:19:57 +0000 (21:19 +0000)]
2005-11-27 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/fchownat.c: Include alloca.h, sysdep.h.
Reported by René Rebe <rene@exactcode.de>.
Ulrich Drepper [Sun, 27 Nov 2005 17:14:28 +0000 (17:14 +0000)]
* sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Don't cache
euid and egid.
Ulrich Drepper [Sun, 27 Nov 2005 09:32:34 +0000 (09:32 +0000)]
* nis/nis_table.c (nis_list): Add more free calls in error cases.
Ulrich Drepper [Sun, 27 Nov 2005 09:30:10 +0000 (09:30 +0000)]
(nis_list): Add more free calls in error cases.
Richard Henderson [Sun, 27 Nov 2005 06:05:33 +0000 (06:05 +0000)]
* sysdeps/alpha/strncmp.S: Don't read too much data when pointers are co-aligned, and count is aligned with the end of the word.
2005-11-26 Richard Henderson <rth@redhat.com>
* sysdeps/alpha/strncmp.S: Don't read too much data when pointers
are co-aligned, and count is aligned with the end of the word.
Ulrich Drepper [Sun, 27 Nov 2005 03:13:50 +0000 (03:13 +0000)]
* nis/nis_lookup.c (nis_lookup): Mark RPCTIMEOUT as const. Pretty
printing.
Ulrich Drepper [Sun, 27 Nov 2005 01:20:12 +0000 (01:20 +0000)]
* nis/nis_table.c (__create_ib_request): Use strdupa instead of
variable size array.
(RPCTIMEOUT): Mark as const.
(RPCTIMEOUT, UDPTIMEOUT): Mark as const.
Ulrich Drepper [Sat, 26 Nov 2005 22:16:52 +0000 (22:16 +0000)]
* nis/ypclnt.c (yp_bind_ypbindprog): Initialize clnt_saddr by hand.
(ypdomainname): Renamed from __ypdomainname. No need for initializer.
(ypbindlist): Renamed from __ypbindlist.
(do_ypcall): Check memory allocation suceeded before calling
yp_bind_ypbindprog.
(yperr_string): Reduce size of function by using only one gettext call.
(ypbinderr_string): Likewise.
(yp_match): Free response in case memory for return value cannot be
allocated.
(yp_first): Likewise.
(yp_next): Likewise.
(do_ypcall_tr): New function which translates error codes as well.
(yp_match, yp_next, yp_master, yp_order, yp_maplist): Use it.
(yp_all): Correct test for invalid parameter.
Pretty printing.
Ulrich Drepper [Sat, 26 Nov 2005 22:16:03 +0000 (22:16 +0000)]
(yp_bind_ypbindprog): Initialize clnt_saddr by hand. (ypdomainname): Renamed from __ypdomainname. No need for initializer. (ypbindlist): Renamed from __ypbindlist. (do_ypcall): Check memory allocation suceeded before calling yp_bind_ypbindprog. (yperr_string): Reduce size of function by using only one gettext call. (ypbinderr_string): Likewise. (yp_match): Free response in case memory for return value cannot be allocated. (yp_first): Likewise. (yp_next): Likewise. (do_ypcall_tr): New function which translates error codes as well. (yp_match, yp_next, yp_master, yp_order, yp_maplist): Use it. (yp_all): Correct test for invalid parameter. Pretty printing.
Richard Henderson [Sat, 26 Nov 2005 00:52:45 +0000 (00:52 +0000)]
* sysdeps/unix/sysv/linux/alpha/fxstatat.c (__fxstatat): Fix typo. (__fxstatat64): Alias from __fxstatat; remove other cnp errors. * sysdeps/unix/sysv/linux/alpha/sigaction.c: Include sys/cdefs.h and stddef.h. * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MREMAP_FIXED): Define.
2005-11-25 Richard Henderson <rth@redhat.com>
* sysdeps/unix/sysv/linux/alpha/fxstatat.c (__fxstatat): Fix typo.
(__fxstatat64): Alias from __fxstatat; remove other cnp errors.
* sysdeps/unix/sysv/linux/alpha/sigaction.c: Include sys/cdefs.h
and stddef.h.
* sysdeps/unix/sysv/linux/alpha/bits/mman.h (MREMAP_FIXED): Define.
Ulrich Drepper [Fri, 25 Nov 2005 18:36:59 +0000 (18:36 +0000)]
* Makeconfig (+cflags): Add -fmerge-all-constants by default.
Ulrich Drepper [Fri, 25 Nov 2005 16:42:59 +0000 (16:42 +0000)]
[BZ #1912]
2005-11-25 Ulrich Drepper <drepper@redhat.com>
[BZ #1912]
* nss/function.def: Add entry to use gethostbyname2 for files.
Ulrich Drepper [Fri, 25 Nov 2005 16:13:50 +0000 (16:13 +0000)]
* sysdeps/unix/sysv/linux/fxstatat64.c: Include string.h.
Ulrich Drepper [Fri, 25 Nov 2005 16:09:10 +0000 (16:09 +0000)]
[BZ #1926]
* nss/nss_files/files-netgrp.c (_nss_files_endnetgrent): Change
return value type to match expected type.
Ulrich Drepper [Fri, 25 Nov 2005 16:05:57 +0000 (16:05 +0000)]
[BZ #1925]
2005-11-25 Ulrich Drepper <drepper@redhat.com>
[BZ #1925]
* nis/ypclnt.c (yp_order): Correct test for invalid parameter.
Ulrich Drepper [Fri, 25 Nov 2005 07:34:21 +0000 (07:34 +0000)]
* scripts/check-c++-types.sh: Improve comments.
Ulrich Drepper [Thu, 24 Nov 2005 18:28:02 +0000 (18:28 +0000)]
* scripts/check-local-headers.sh: New file.
* Makefile (tests): Run check-local-headers.sh.
2005-11-23 Thorsten Kukuk <kukuk@suse.de>
* include/sys/sendfile.h: New file.
2005-11-24 Andreas Schwab <schwab@suse.de>
* time/sys/time.h: Remove nonnull attribute from futimesat.
Ulrich Drepper [Thu, 24 Nov 2005 18:16:42 +0000 (18:16 +0000)]
[BZ #1920]
005-11-24 Jakub Jelinek <jakub@redhat.com>
[BZ #1920]
* sysdeps/pthread/pthread.h (__pthread_unwind_next): Use
__attribute__ instead of __attribute.
* sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h
(__cleanup_fct_attribute): Likewise.
Ulrich Drepper [Tue, 22 Nov 2005 19:06:27 +0000 (19:06 +0000)]
* nscd/connections.c (sendfileall): Define.
(handle_request): Use it instead of sendfile call.
* nscd/nscd-client.h: Declare sendfileall.
* nscd/aicache.c: Use sendfileall instead of sendfile.
* nscd/grpcache.c: Likewise.
* nscd/hstcache.c: Likewise.
* nscd/initgrcache.c: Likewise.
* nscd/pwdcache.c: Likewise.
Ulrich Drepper [Tue, 22 Nov 2005 18:11:01 +0000 (18:11 +0000)]
[BZ #1908]
2005-11-22 Ulrich Drepper <drepper@redhat.com>
[BZ #1908]
* manual/install.texi (Tools for Compilation): Require gawk.
2005-11-22 Jakub Jelinek <jakub@redhat.com>
* sysdeps/generic/ldsodefs.h (struct rtld_global): Remove
unused is_static field from slotinfo array.
Ulrich Drepper [Tue, 22 Nov 2005 04:39:40 +0000 (04:39 +0000)]
* sunrpc/bindrsvprt.c (bindresvport): Wrap around to startport
in the loop if port is bigger than endport, initially set to
ENDPORT. When changing startport, set endport and port
appropriately.
Ulrich Drepper [Mon, 21 Nov 2005 15:48:11 +0000 (15:48 +0000)]
* Makefile.in: Remove RCS ID line.
* config-name.in: Likewise.
* config.make.in: Likewise.
* malloc/arena.c: Likewise.
* malloc/hooks.c: Likewise.
* malloc/malloc.c: Likewise.
* manual/dir: Likewise.
* math/math_private.h: Likewise.
* resolv/gethnamaddr.c: Likewise.
* scripts/mkinstalldirs: Likewise.
* sunrpc/rpc_clntout.c: Likewise.
* sunrpc/rpc_cout.c: Likewise.
* sunrpc/rpc_hout.c: Likewise.
* sunrpc/rpc_main.c: Likewise.
* sunrpc/rpc_parse.c: Likewise.
* sunrpc/rpc_sample.c: Likewise.
* sunrpc/rpc_scan.c: Likewise.
* sunrpc/rpc_svcout.c: Likewise.
* sunrpc/rpc_tblout.c: Likewise.
* sunrpc/rpc_util.c: Likewise.
* sysdeps/unix/sysv/linux/sys/quote.h: Likewise.
* nscd/nscd_helper.c: Pretty printing.
Ulrich Drepper [Mon, 21 Nov 2005 15:45:19 +0000 (15:45 +0000)]
..
2005-11-21 Ulrich Drepper <drepper@redhat.com>
* locales/se_NO: Remove RCS ID line.
Ulrich Drepper [Mon, 21 Nov 2005 15:36:25 +0000 (15:36 +0000)]
Pretty printing.
Roland McGrath [Sat, 19 Nov 2005 21:31:02 +0000 (21:31 +0000)]
* elf/elf.h: Revert last change.
Roland McGrath [Sat, 19 Nov 2005 21:30:54 +0000 (21:30 +0000)]
2005-11-19 Roland McGrath <roland@redhat.com>
* elf/elf.h: Revert last change.
Ulrich Drepper [Sat, 19 Nov 2005 17:22:39 +0000 (17:22 +0000)]
* sysdeps/unix/sysv/linux/ia64/bits/shm.h (shmatt_t): New type.
(struct shmid_ds): Use it for shm_nattch field.
2005-11-18 Jakub Jelinek <jakub@redhat.com>
* sysdeps/unix/sysv/linux/futimesat.c (futimesat): If FILE is NULL,
set access and modification times of the file referenced by FD.
* sysdeps/generic/futimesat.c (futimesat): Don't return EINVAL if
FILE is NULL. Don't check FD if FILE is absolute path.
2005-11-19 Ulrich Drepper <drepper@redhat.com>
* nscd/nscd_gethst_r.c (nscd_gethst_r): Avoid unnecesary read call
if there are no aliases.
* sysdeps/unix/sysv/linux/Makefile (CFLAGS-connections.c,
CFLAGS-pwdcache.c, CFLAGS-grpcache.c, CFLAGS-hstcache.c,
CFLAGS-aicache.c, CFLAGS-initgrcache.c): Add -DHAVE_SENDFILE.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
Define.
* nscd/pwdcache.c [HAVE_SENDFILE]: Include <sys/sendfile.h> and
<kernel-features.h>.
[HAVE_SENDFILE] (cache_addpw): Use sendfile to transmit positive
result.
* nscd/grpcache.c: Likewise.
* nscd/hstcache.c: Likewise.
* nscd/aicache.c: Likewise.
* nscd/initgrcache.c: Likewise.
* nscd/connectionc.c: Likewise.
Ulrich Drepper [Sat, 19 Nov 2005 17:09:03 +0000 (17:09 +0000)]
(nscd_gethst_r): Avoid unnecesary read call if there are no aliases.
Roland McGrath [Fri, 18 Nov 2005 22:48:22 +0000 (22:48 +0000)]
* sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove useless alias.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/socket.S: Handle
NO_WEAK_ALIAS.
* sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S: Likewise.
Roland McGrath [Fri, 18 Nov 2005 22:46:36 +0000 (22:46 +0000)]
* sysdeps/unix/sysv/linux/m68k/bits/mman.h (MREMAP_FIXED): New macro.
Roland McGrath [Fri, 18 Nov 2005 22:42:25 +0000 (22:42 +0000)]
* nscd/grpcache.c: Include <sys/socket.h>.
* nscd/nscd_stat.c: Likewise.
* nscd/pwdcache.c: Likewise.
* sysdeps/unix/sysv/linux/unlinkat.c: Include <stdlib.h>, <sysdep.h>.
Roland McGrath [Fri, 18 Nov 2005 22:42:21 +0000 (22:42 +0000)]
2005-11-18 Paul Brook <paul@codesourcery.com>
* nscd/grpcache.c: Include <sys/socket.h>.
* nscd/nscd_stat.c: Likewise.
* nscd/pwdcache.c: Likewise.
* sysdeps/unix/sysv/linux/unlinkat.c: Include <stdlib.h>, <sysdep.h>.
Ulrich Drepper [Fri, 18 Nov 2005 02:41:39 +0000 (02:41 +0000)]
* sysdeps/unix/sysv/linux/sparc/bits/shm.h: Define SHM_NORESERVE.
* sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/hppa/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
Ulrich Drepper [Fri, 18 Nov 2005 00:31:58 +0000 (00:31 +0000)]
.
Ulrich Drepper [Fri, 18 Nov 2005 00:17:40 +0000 (00:17 +0000)]
.
Ulrich Drepper [Fri, 18 Nov 2005 00:12:44 +0000 (00:12 +0000)]
[BZ #1877]
2005-11-17 Steven Munroe <sjmunroe@us.ibm.com>
[BZ #1877]
* string/test-strncmp.c (do_test_limit): Handle zero length and
non-zero align values.
(test_main): Correct do_test_limit tests for 64-bit.
2005-11-15 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/powerpc/sysdep.h (PPC_FEATURE_HAS_SPE,
PPC_FEATURE_HAS_EFP_SINGLE, PPC_FEATURE_HAS_EFP_DOUBLE,
PPC_FEATURE_NO_TB, PPC_FEATURE_POWER4, PPC_FEATURE_POWER5,
PPC_FEATURE_POWER5_PLUS, PPC_FEATURE_CELL, PPC_FEATURE_970):
Define to match 2.6.15 kernel.
* sysdeps/powerpc/fpu/e_sqrt.c: Remove dl-procinfo.h include.
* sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
* sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
Ulrich Drepper [Thu, 17 Nov 2005 23:33:52 +0000 (23:33 +0000)]
Remove dl-procinfo.h include.
Roland McGrath [Thu, 17 Nov 2005 23:02:23 +0000 (23:02 +0000)]
* elf/elf.h (R_PPC64_ADDR30): Renamed to R_PPC64_REL30.
Roland McGrath [Thu, 17 Nov 2005 23:02:17 +0000 (23:02 +0000)]
2005-11-17 Roland McGrath <roland@redhat.com>
* elf/elf.h (R_PPC64_ADDR30): Renamed to R_PPC64_REL30.
Ulrich Drepper [Thu, 17 Nov 2005 21:32:27 +0000 (21:32 +0000)]
* io/sys/stat.h (fstatat): If __REDIRECT_NTH isn't defined,
define fstatat to fstatat64.
(fstatat64): Only provide prototype if __USE_LARGEFILE64,
similarly with the inline.
* io/fcntl.h (openat64): Only provide prototype if __USE_LARGEFILE64.