Commit Graph

9778 Commits

Author SHA1 Message Date
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
Ulrich Drepper
24eb865839 * 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.
2005-11-21 15:48:11 +00:00
Roland McGrath
fd9f89a1e1 * elf/elf.h: Revert last change. 2005-11-19 21:31:02 +00:00
Ulrich Drepper
eac1079146 * 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.
2005-11-19 17:22:39 +00:00
Roland McGrath
d11edae6f2 * 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.
2005-11-18 22:48:22 +00:00
Roland McGrath
3416271918 * sysdeps/unix/sysv/linux/m68k/bits/mman.h (MREMAP_FIXED): New macro. 2005-11-18 22:46:36 +00:00
Roland McGrath
fdfe6deea9 * 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>.
2005-11-18 22:42:25 +00:00
Ulrich Drepper
2b7e861335 * 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.
2005-11-18 02:41:39 +00:00
Ulrich Drepper
8b7bdd8b88 . 2005-11-18 00:31:58 +00:00
Ulrich Drepper
776356486d . 2005-11-18 00:17:40 +00:00
Ulrich Drepper
8f84d93108 [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.
2005-11-18 00:12:44 +00:00
Roland McGrath
f1cb95609a * elf/elf.h (R_PPC64_ADDR30): Renamed to R_PPC64_REL30. 2005-11-17 23:02:23 +00:00
Ulrich Drepper
c6f688a090 * 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.
2005-11-17 21:32:27 +00:00
Ulrich Drepper
8ce9ea74cc [BZ #1877]
2005-11-17  Steven Munroe  <sjmunroe@us.ibm.com>
	[BZ #1877]
	* string/test-strncmp.c (do_test_limit): New function.
	(do_test) Add cast to eliminate compiler warnings.
	(do_random_tests) Add cast to eliminate compiler warnings.
	(test_main) Add do_test_limit tests.
	* sysdeps/powerpc/powerpc32/strncmp.S: Test length before unaligned
	load.
	* sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
2005-11-17 21:19:33 +00:00
Ulrich Drepper
52d979bb0d * include/resolv.h: Include <stdbool.h>.
Patch by Paul Brook.
2005-11-17 18:49:41 +00:00
Ulrich Drepper
be71aa3c55 * io/sys/stat.h: Use __const not const in fstatat prototypes. 2005-11-17 15:29:42 +00:00
Ulrich Drepper
510afb6420 * sysdeps/wordsize-32/Makefile (CPPFLAGS-divdi3.c): Set to
-Din_divdi3_c.
	* sysdeps/wordsize-32/symbol-hacks.h: Skip if in_divdi3_c is defined.
2005-11-16 19:20:10 +00:00
Ulrich Drepper
478f33c9f7 * sysdeps/unix/sysv/linux/fchownat.c: Include string.h.
* sysdeps/unix/sysv/linux/futimesat.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/fchownat.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/fxstatat.c: Likewise.
	* sysdeps/unix/sysv/linux/renameat.c: Likewise.
	* sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Likewise.
	* sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
	* sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Likewise.
2005-11-16 08:20:36 +00:00
Ulrich Drepper
a0e3432cc7 * iconvdata/Makefile (modules): Add ISO_11548-1.
(distribute): Add iso_11548-1.c.
	* iconvdata/gconv-modules: Add entries for ISO 11548-1.
	* iconvdata/TESTS: Add entry for ISO 11548-1.

	[BZ 1872]
	* iconvdata/iso_11548-1.c: New file.
	* iconvdata/testdata/ISO_11548-1: New file.
	* iconvdata/testdata/ISO_11548-1..UTF8: New file.
	Patch by Samuel Thibault <samuel.thibault@ens-lyon.org>.
2005-11-16 08:16:43 +00:00
Ulrich Drepper
ff27f3ae96 * sysdeps/sh/bits/setjmp.h (_JMPBUF_UNWINDS): Remove incorrect &. 2005-11-16 07:56:21 +00:00
Ulrich Drepper
c2280dc039 [BZ 1865]
* inet/netinet/icmp6.h: More updates for RFC3542.
	* inet/netinet/ip6.h: Likewise.
	* sysdeps/unix/sysv/linux/bits/in.h: Adjust for current kernel sources.
	Patch by David L Stevens <dlstevens@us.ibm.com>.
2005-11-16 07:52:07 +00:00
Ulrich Drepper
baf532c127 * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
Return -1 on failure.
	* sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
	* sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise..
	* sysdeps/unix/sysv/linux/fxstatat64.c [__ASSUME_STAT64_SYSCALL]
	(__fxstatat64): Handle errors.
2005-11-16 00:36:16 +00:00
Ulrich Drepper
7761a3ac53 * io/sys/poll.h: Add comment explaining poll is a cancellation
point.

	* sysdeps/unix/sysv/linux/sys/epoll.h: Add comment explaining
	epoll_wait is a cancellation point.
2005-11-15 21:58:44 +00:00
Ulrich Drepper
1b804a349f * sysdeps/unix/sysv/linux/syscalls.list (epoll_wait): Align with
poll, make cancelable.
2005-11-15 21:54:29 +00:00
Ulrich Drepper
933c64a356 * sysdeps/unix/sysv/linux/syscalls.list (epoll_create, epoll_ctl,
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.
2005-11-15 19:59:57 +00:00
Ulrich Drepper
fcae3b76f6 * elf/dl-open.c [!SHARED]: Remove _dl_tls_static_size definition.
* sysdeps/generic/libc-tls.c: Initialize _dl_tls_static_size here.
2005-11-15 07:26:22 +00:00
Ulrich Drepper
26cec518ac * io/Makefile (routines): Add fstatat, fstatat64, fxstatat, fxstatat64,
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.
2005-11-11 20:02:07 +00:00
Ulrich Drepper
4973cbe599 * io/fcntl.h: Declare openat and openat64.
* 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.
2005-11-10 00:12:21 +00:00
Ulrich Drepper
9f1016c0df (__libc_check_standard_fds): Reverse modes so that common operations on 2005-11-09 19:36:12 +00:00
Ulrich Drepper
b0b6f8b0f3 * sysdeps/generic/check_fds.c (check_one_fd): For writable
descriptors, use /dev/full.
	(__libc_check_standard_fds): Revert modes so that common operations on
	the descriptors fail.
2005-11-09 19:32:40 +00:00
Roland McGrath
7fe72b72ea * elf/elf.h (R_M32R_REL32): New macro. 2005-11-08 01:53:36 +00:00
Roland McGrath
ce30652843 * sysdeps/mach/hurd/bits/stat.h (S_IMMAP0): New macro.
(S_ISPARE): Unset the S_IMMAP0 flag.
2005-11-08 01:23:02 +00:00
Roland McGrath
2ceaa76abd * configure.in: Grok --with-cpu=CPU option. If given, search for
sysdeps/.../machine/CPU subdirs, and give error if none are found.
	* configure: Regenerated.
	* config.make.in (with-cpu): New substituted variable.
	* Makeconfig (+cflags): Add -mcpu=$(with-cpu) if set.
2005-11-08 01:21:32 +00:00
Roland McGrath
2182b1ea17 * malloc/malloc.c (munmap_chunk): Suppress warnings from last change.
* sysdeps/unix/sysv/linux/tcflush.c: Rewritten.
	* sysdeps/unix/sysv/linux/tcflow.c: Rewritten.
2005-11-07 23:00:18 +00:00
Roland McGrath
0809061421 sysdeps/unix/bsd/sun moved to ports
2005-11-07  Roland McGrath  <roland@redhat.com>

	* sysdeps/unix/bsd/sun: Directory and all subdirectories removed,
	saved in ports repository.
2005-11-07 22:37:55 +00:00
Ulrich Drepper
8e635611c9 * malloc/malloc.c (munmap_chunk): Add sanity checks.
* sysdeps/pthread/configure: Fix comment.
2005-11-06 17:08:48 +00:00
Ulrich Drepper
d0b2cbf837 * configure.in: Remove gnu_as definition and everything using it.
* config.make.in: Remove gnu-as.
	* config.h.in: Remove HAVE_GNU_AS.
2005-11-06 02:14:58 +00:00
Ulrich Drepper
fc17ba1ed3 * config.make.in: Remove gnu-ld. 2005-11-06 02:08:44 +00:00
Ulrich Drepper
57d44131d8 * configure.in: Remove gnu_ld definition and everything using it.
* 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.
2005-11-06 02:06:06 +00:00
Ulrich Drepper
2f043956cf * config.h.in: Remove HAVE_SUBTRACT_LOCAL_LABELS. 2005-11-05 21:52:08 +00:00
Ulrich Drepper
4520d7aac8 * configure.in: Remove test for support for subtracting local labels.
* stdio-common/vfprintf.c: Remove test of
	HAVE_SUBTRACT_LOCAL_LABELS.
2005-11-05 21:49:48 +00:00
Ulrich Drepper
ce33ee7caa * configure.in: If init_array/fini_array support is not available,
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.
2005-11-05 17:46:24 +00:00
Roland McGrath
fd1bc8fb8a * sysdeps/i386/configure.in (libc_mtune_example): Variable removed.
* sysdeps/i386/configure: Regenerated.
2005-11-05 02:36:27 +00:00
Roland McGrath
4b69abad2c [BZ #1089]
2005-11-04  Roland McGrath  <roland@redhat.com>
	[BZ #1089]
	* configure.in: Change order of add-on sysdeps directories,
	so they are interleaved with main sysdeps directories.
	* configure: Regenerated.
2005-11-05 02:00:22 +00:00
Roland McGrath
e7b003c37f * NEWS: Synch with 2.3 branch updates. 2005-11-04 01:52:52 +00:00
Ulrich Drepper
a1f6ec3225 * sunrpc/svc.c (svc_getreq_poll): Fix inefficient loop test. 2005-11-04 00:56:13 +00:00
Roland McGrath
77c4d1156f * sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask,
make sure constant is long.
2005-11-03 23:30:51 +00:00
Roland McGrath
b81920fea7 [BZ #1548]
2005-11-03  Roland McGrath  <roland@redhat.com>
	[BZ #1548]
	* sunrpc/svc.c (svc_getreqset): Use ffsl instead of ffs on fd_mask.
	From Jay Lan <jlan@engr.sgi.com>.
2005-11-03 21:39:43 +00:00
Ulrich Drepper
abab68592e [BZ #1774]
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.
2005-11-03 18:56:56 +00:00
Ulrich Drepper
7006f757e6 * sysdeps/powerpc/powerpc64/Makefile
(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.
2005-11-01 02:13:41 +00:00
Ulrich Drepper
cb07f6f67d * resolv/res_init.c (__res_iclose): New function. Broken out of
res_nclose.  Take addition parameter which determines whether
	addresses should be freed.
	(res_nclose): Call __res_iclose.
	(res_thread_freeres): Likewise.
	* resolv/res_data.c (res_close): Call __res_iclose.
	* resolv/res_libc.c (res_init): No need to separately free the
	addresses.
	(__res_maybe_init): Likewise.
	* resolv/res_send.c: Use __res_iclose instead of res_nclose.
	* resolv/Versions [GLIBC_PRIVATE]: Add __res_iclose.
	* include/resolv.h: Declare __res_iclose.
	Add libc_hidden_proto for __res_iclose.
	* hesiod/hesiod.c (__hesiod_res_set): No need to free name server
	addresses here again.
2005-11-01 00:08:54 +00:00
Ulrich Drepper
6ff8f07aba * debug/execinfo.h: Change backtrace_symbols_fd comment. 2005-10-31 15:30:02 +00:00
Ulrich Drepper
a89b8ed453 [BZ #1579]
2005-10-31  Ulrich Drepper  <drepper@redhat.com>
	[BZ #1579]
	* debug/execinfo.h: Change backtrace+symbols_fd comment.
2005-10-31 15:29:06 +00:00
Roland McGrath
3fbff87f46 * sysdeps/ia64/fpu/libm-symbols.h (WEAK_LIBM_ENTRY): Add "__"
prefix to LOCAL_LIBM_ENTRY.
	(WEAK_LIBM_END): Add "__" prefix to LOCAL_LIBM_END.
2005-10-31 01:41:48 +00:00
Roland McGrath
06e689288c * elf/dl-conflict.c (_dl_resolve_conflicts): Use _dl_debug_printf
instead of _dl_printf to print conflict processing debug message.
	Reported by John Reiser <jreiser@BitWagon.com>.
2005-10-31 01:28:52 +00:00
Ulrich Drepper
71b8b018dd * misc/hsearch_r.c (hsearch_r): Remove duplicate test.
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.
2005-10-30 19:06:52 +00:00
Ulrich Drepper
d935095e2a * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey): Fix off
by one error.
2005-10-28 22:42:52 +00:00
Roland McGrath
df979dc433 [BZ #1534]
2005-10-24  Roland McGrath  <roland@redhat.com>
	[BZ #1534]
	* include/string.h: Use libc_hidden_proto for strnlen,
	not libc_hidden_builtin_proto.
2005-10-24 19:31:20 +00:00
Ulrich Drepper
dc06a18052 * rt/mqueue.h: Cleanups. 2005-10-23 20:51:32 +00:00
Roland McGrath
2ba7a64cb9 [BZ #1254]
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>.
2005-10-23 00:46:40 +00:00
Roland McGrath
d8f5ccdde7 [BZ #1252, BZ #1498]
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.

	[BZ #1498]
2005-10-23 00:43:23 +00:00
Ulrich Drepper
6738b11d46 * iconvdata/ibm1364.h (__ucs4_to_ibm1364sb): Fix one mapping.
* iconvdata/ibm1388.h (__ucs4_to_ibm1388sb): Likewise.
	* iconvdata/testdata/IBM1364: Add missing valid input.
	* iconvdata/testdata/IBM1388: Likewise.
	* iconvdata/testdata/IBM1364..UTF8: Adjust appropriately.
	* iconvdata/testdata/IBM1388..UTF8: Likewise.
	Patch by Masahide Washizawa <washi@jp.ibm.com>.
2005-10-21 04:28:06 +00:00
Ulrich Drepper
addbcc6d36 * sysdeps/alpha/remqu.S: Return the correct result when the same
dividend and divisor are provided, and they're negative numbers.
	* sysdeps/alpha/divqu.S: Likewise.
2005-10-20 05:25:40 +00:00
Ulrich Drepper
336476cbea * sysdeps/unix/sysv/linux/powerpc/powerpc32/ucontext_i.h (TESTS):
Define.
	* sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.h (TESTS):
	Likewise.
2005-10-20 00:09:39 +00:00
Ulrich Drepper
3b8d12b876 ..
2005-10-19  Ulrich Drepper  <drepper@redhat.com>

	* iconvdata/Makefile (modules): Add IBM1364, IBM1371, IBM1388, IBM1390,
	and IBM1399.
	(distribute): Add ibm1364.c, ibm1364.h, ibm1371.c, ibm1371.h,
	ibm1388.c, ibm1388.h, ibm1390.c, ibm1390.h, ibm1399.c, and ibm1399.h.
	* iconvdata/TESTS: Add entries for IBM1364, IBM1371, IBM1388, IBM1390,
	and IBM1399.
	* iconvdata/gconv-modules: Likewise.
	* iconvdata/ibm1364.c: New file.
	* iconvdata/ibm1364.h: New file.
	* iconvdata/ibm1371.c: New file.
	* iconvdata/ibm1371.h: New file.
	* iconvdata/ibm1388.c: New file.
	* iconvdata/ibm1388.h: New file.
	* iconvdata/ibm1390.c: New file.
	* iconvdata/ibm1390.h: New file.
	* iconvdata/ibm1399.c: New file.
	* iconvdata/ibm1399.h: New file.
	* iconvdata/testdata/IBM1364: New file.
	* iconvdata/testdata/IBM1364..UTF8: New file.
	* iconvdata/testdata/IBM1371: New file.
	* iconvdata/testdata/IBM1371..UTF8: New file.
	* iconvdata/testdata/IBM1388: New file.
	* iconvdata/testdata/IBM1388..UTF8: New file
	* iconvdata/testdata/IBM1390: New file.
	* iconvdata/testdata/IBM1390..UTF8: New file.
	* iconvdata/testdata/IBM1399: New file.
	* iconvdata/testdata/IBM1399..UTF8: New file.
	Original patch by Masahide Washizawa <washi@jp.ibm.com>.
2005-10-19 23:58:35 +00:00
Roland McGrath
eeffb22a40 [BZ #721]
2005-10-17  Roland McGrath  <roland@redhat.com>
	* elf/dl-load.c (MAP_COPY): When undefined, define to
	MAP_PRIVATE|MAP_DENYWRITE instead of just MAP_PRIVATE.
	(_dl_map_object_from_fd): Don't use MAP_DENYWRITE explicitly.

	[BZ #721]
	[BZ #721]
	[BZ #721]
	[BZ #721]
	[BZ #721]
	[BZ #721]
	[BZ #721]
	[BZ #721]
2005-10-17 20:59:32 +00:00
Ulrich Drepper
4fa64d66fe * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.h (SC_STSZ, TESTS):
Define.
	* sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.h (SC_STSZ, TESTS):
	Likewise.
2005-10-17 17:01:06 +00:00
Ulrich Drepper
dd3af58b91 allow EACCES errors when opening /proc for now. 2005-10-17 16:07:28 +00:00
Ulrich Drepper
5d1d7adb5b * libio/oldfileops.c (_IO_old_file_xsputn): Fix last patch.
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-17 16:05:54 +00:00
Roland McGrath
ae0d550c3e * abi-tags (.*-.*-knetbsd.*-gnu.*): New match, with ABI value 4.
* elf/cache.c (print_entry): Match the kNetBSD ABI tag.
2005-10-17 02:44:01 +00:00
Roland McGrath
1b61c81b4b * sysdeps/generic/bits/mman.h
[__USE_GNU] (MREMAP_MAYMOVE, REMAP_FIXED): New macros.
2005-10-17 02:39:56 +00:00
Ulrich Drepper
76e95c8899 * sysdeps/unix/sysv/linux/sh/makecontext.S: New file.
* 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.
2005-10-16 15:49:27 +00:00
Ulrich Drepper
f53d5aff8a [BZ #1228]
..
2005-09-13  Jakub Jelinek  <jakub@redhat.com>

	[BZ #1228]
	* include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Make sure these
	are defined for -D_GNU_SOURCE or -D_ISOC99_SOURCE even when not
	-std=c99.
2005-10-16 15:35:46 +00:00