Commit Graph

9750 Commits

Author SHA1 Message Date
Roland McGrath
7c285188ca * sysdeps/unix/sysv/linux/Makefile (inhibit-siglist): Removed. 2005-12-15 20:48:12 +00:00
Ulrich Drepper
b6ab06cef4 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
Roland McGrath
8599849f7a * sysdeps/generic/Makefile: Remove remaining bits/endian.h cruft. 2005-12-13 20:55:23 +00:00
Ulrich Drepper
9200ba90d7 * sysdeps/generic/signame.c: Removed.
* sysdeps/generic/signame.h: Removed.
	* sysdeps/generic/configure.in: Removed.
	* sysdeps/generic/Dist: Remove these files.
2005-12-13 20:23:15 +00:00
Ulrich Drepper
e26b64c4e0 * sysdeps/generic/det_endian.c: Removed.
* sysdeps/generic/Makefile: Remove rule to build it.
	* sysdeps/generic/Dist: Don't distribute it.
2005-12-13 17:10:24 +00:00
Roland McGrath
857a1627c7 * sysdeps/powerpc/dl-procinfo.c: New file.
* sysdeps/powerpc/dl-procinfo.h: New file.
2005-12-13 09:26:19 +00:00
Ulrich Drepper
1b64c27a9e * io/sys/stat.h: Add restrict to fstatat declarations. 2005-12-12 21:45:40 +00:00
Ulrich Drepper
1ad07b7739 * 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.
2005-12-11 05:59:13 +00:00
Ulrich Drepper
929b1c0708 * nis/nis_call.c (inetstr2int): Optimize. 2005-12-09 06:48:51 +00:00
Ulrich Drepper
8c058eec1e * 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.
2005-12-08 20:32:12 +00:00
Ulrich Drepper
e975f14ee9 * nis/ypclnt.c (yp_update): Before trying default authentication,
free DES descriptor.
2005-12-08 15:42:25 +00:00
Ulrich Drepper
07683f843d * 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.
2005-12-08 04:12:07 +00:00
Ulrich Drepper
43bc8ac6ea * 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.
2005-12-07 05:49:17 +00:00
Ulrich Drepper
1b4c0afbec * sunrpc/auth_des.c (authdes_pk_create): If conversation key
cannot be created, free memory.
	Reported by rprasad@vmware.com.
2005-12-07 04:12:32 +00:00
Roland McGrath
2ce7e666e9 * 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.
2005-12-06 01:38:34 +00:00
Roland McGrath
a6ba1c33ef * sysdeps/generic/dwarf2.h: Replace license text with glibc LGPL. 2005-12-06 01:28:16 +00:00
Roland McGrath
eff75b8d56 * 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.
2005-12-06 01:24:30 +00:00
Roland McGrath
bd7b22b2eb * malloc/tst-mallocfork.c (do_test): Make sure sa_flags is
initialized.  Reported by John Reiser <jreiser@BitWagon.com>.
2005-12-06 00:50:15 +00:00
Roland McGrath
f30070ae4e * stdlib/longlong.h: Update from GCC. 2005-12-06 00:48:30 +00:00
Roland McGrath
d57e74714e * soft-fp/soft-fp.h: Include <stdlib.h>.
* soft-fp/floatdisf.c (__floatdisf): Return float.
2005-12-06 00:38:43 +00:00
Roland McGrath
f3423d5ab5 * sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_POSIX_CPU_TIMERS): New macro, for 2.6.12 and later.
2005-12-06 00:35:22 +00:00
Roland McGrath
ec116e200e * sysdeps/generic/dwarf2.h: Replace license text with glibc LGPL. 2005-12-06 00:15:06 +00:00
Ulrich Drepper
56a5719e18 * nis/nis_table.c (nis_list): Optimize freeing and reallocation of
result record.
2005-12-04 06:27:06 +00:00
Ulrich Drepper
9069c5e963 * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyaddr_r):
Better sized buffers.  Correct error case handling.
2005-12-03 22:36:14 +00:00
Ulrich Drepper
8e64faef03 * 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.
2005-12-03 22:15:54 +00:00
Ulrich Drepper
636e689e6f * 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.
2005-12-03 20:12:27 +00:00
Ulrich Drepper
48b293913b * 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.
2005-12-03 05:20:52 +00:00
Ulrich Drepper
49b24791e0 * nis/nss_nisplus/nisplus-pwd.c: Fix locking to use
_nss_create_tablename.  Avoid unnecessary copying, remove
	unnecessary variables, general cleanup.
2005-12-03 04:44:36 +00:00
Ulrich Drepper
e186c703dc * 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.
2005-12-02 21:55:54 +00:00
Andreas Jaeger
b02adc678a (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>.
2005-11-28 08:25:55 +00:00
Ulrich Drepper
01abbc0f7f * sysdeps/posix/getaddrinfo.c: Avoid RFC 3484 sorting if there are
multiple return records but only one address.
2005-11-27 23:13:21 +00:00
Ulrich Drepper
da09af7627 * sysdeps/posix/getaddrinfo.c (gaih_inet): Avoid some code duplication. 2005-11-27 22:59:43 +00:00
Roland McGrath
9d88758aab * sysdeps/unix/sysv/linux/fchownat.c: Include alloca.h, sysdep.h.
Reported by René Rebe <rene@exactcode.de>.
2005-11-27 21:20:05 +00:00
Ulrich Drepper
fec53fc575 * sysdeps/posix/euidaccess.c [_LIBC] (euidaccess): Don't cache
euid and egid.
2005-11-27 17:14:28 +00:00
Ulrich Drepper
9d55da2be7 * nis/nis_table.c (nis_list): Add more free calls in error cases. 2005-11-27 09:32:34 +00:00
Richard Henderson
0af1870a5c * 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.
2005-11-27 06:05:33 +00:00
Ulrich Drepper
d00002ed88 * nis/nis_lookup.c (nis_lookup): Mark RPCTIMEOUT as const. Pretty
printing.
2005-11-27 03:13:50 +00:00
Ulrich Drepper
3218d55b95 * nis/nis_table.c (__create_ib_request): Use strdupa instead of
variable size array.
	(RPCTIMEOUT): Mark as const.

	(RPCTIMEOUT, UDPTIMEOUT): Mark as const.
2005-11-27 01:20:12 +00:00
Ulrich Drepper
d9fc1ec727 * 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.
2005-11-26 22:16:52 +00:00
Richard Henderson
50c8adf4d1 * 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.
2005-11-26 00:52:45 +00:00
Ulrich Drepper
dec36b4f0c * Makeconfig (+cflags): Add -fmerge-all-constants by default. 2005-11-25 18:36:59 +00:00
Ulrich Drepper
eed38d45aa [BZ #1912]
2005-11-25  Ulrich Drepper  <drepper@redhat.com>
	[BZ #1912]
	* nss/function.def: Add entry to use gethostbyname2 for files.
2005-11-25 16:42:59 +00:00
Ulrich Drepper
0e586bf8c6 * sysdeps/unix/sysv/linux/fxstatat64.c: Include string.h. 2005-11-25 16:13:50 +00:00
Ulrich Drepper
34da0098e5 [BZ #1926]
* nss/nss_files/files-netgrp.c (_nss_files_endnetgrent): Change
	return value type to match expected type.
2005-11-25 16:09:10 +00:00
Ulrich Drepper
85f90d22b6 [BZ #1925]
2005-11-25  Ulrich Drepper  <drepper@redhat.com>
	[BZ #1925]
	* nis/ypclnt.c (yp_order): Correct test for invalid parameter.
2005-11-25 16:05:57 +00:00
Ulrich Drepper
9b33781cad * scripts/check-c++-types.sh: Improve comments. 2005-11-25 07:34:21 +00:00
Ulrich Drepper
088f460f75 * 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.
2005-11-24 18:28:02 +00:00
Ulrich Drepper
bd547139c7 * 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.
2005-11-22 19:06:27 +00:00
Ulrich Drepper
8522a05394 [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.
2005-11-22 18:11:01 +00:00
Ulrich Drepper
15a493c3b7 * 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.
2005-11-22 04:39:40 +00:00