Commit Graph

14606 Commits

Author SHA1 Message Date
Ulrich Drepper bca2218b9b * elf/dl-load.c (_dl_map_object_from_fd): Move state change
notification...
	(lose): ...to here.
2006-04-30 23:47:30 +00:00
Ulrich Drepper 846d1362cd * posix/Makefile (tests): Add tst-getaddrinfo3.
* posix/tst-getaddrinfo3.c: New file.

	* sysdeps/posix/getaddrinfo.c (gaih_inet): Add parenthesis in test
	for better readability.
2006-04-30 20:19:09 +00:00
Ulrich Drepper eaa27aca6f * nscd/nscd.h (struct database_dyn): Change filename to an array
to avoid relocations.
2006-04-30 16:39:16 +00:00
Ulrich Drepper 34e212784c * elf/ldd.bash.in: If --verify loop fails to find a dynamic linker
for the file don't just try the first one listed in RTLDLIST
	again.  We already have the status.
2006-04-30 16:08:10 +00:00
Ulrich Drepper 5493f3ddc3 * nis/nss_nisplus/nisplus-publickey.c (parse_grp_str): PIDLIST is
supposed to have NGRPS elements.
2006-04-30 15:36:48 +00:00
Ulrich Drepper ac05397075 * nis/nss_nisplus/nisplus-parser.c: Minor optimizations and
cleanups.  Avoid copying data if it can be used in the old place.
2006-04-30 07:01:26 +00:00
Ulrich Drepper 487609e313 * nis/nss_nisplus/nisplus-ethers.c: Add missing null pointer check.
* nis/nss_nisplus/nisplus-hosts.c: Likewise.
	* nis/nss_nisplus/nisplus-network.c: Likewise.
	* nis/nss_nisplus/nisplus-proto.c: Likewise.
	* nis/nss_nisplus/nisplus-rpc.c: Likewise.
	* nis/nss_nisplus/nisplus-service.c: Likewise.
	* nis/nss_nisplus/nisplus-spwd.c: Likewise.
2006-04-30 05:45:15 +00:00
Ulrich Drepper d08a1d404d * nis/nisplus-parser.h (_nss_nisplus_parse_pwent): Add entry
parameter.
	(_nss_nisplus_parse_pwent_chk): New prototype.
	* nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
	Add entry parameter.  Use it for column value in all accesses.
	Move checks for well-formed reply to...
	(_nss_nisplus_parse_pwent_chk): ...here.  New function.
	* nis/nss_nisplus/nisplus-pwd.c: Support SETENT_BATCH_READ option.
2006-04-29 20:20:05 +00:00
Ulrich Drepper 5b4f9fad38 * nis/nss_nisplus/nisplus-parser.c: Some cleanups. Remove
hidden_def definitions.
	* nis/nisplus-parser.h: Add parameter names.  Remove hidden_proto
	definitions.
2006-04-29 16:26:41 +00:00
Ulrich Drepper e0d4e91d2b * nis/nss_nis/nis-spwd.c (internal_nis_getspent_r): Remove data
variable.

	* nis/nss-nis.h: Define response_t and intern_t.  Declare _nis_saveit.
	* nis/nss_nis/nis-pwd.c: Remove response_t and intern_t definition.
	(saveit): Renamed to _nis_saveit.  Take parameter which is pointer
	to the intern_t object.  Change all users.
	* nis/nss_nis/nis-grp.c: Remove response_t, intern_t, and saveit
	definition.  Use _nis_saveit instead of saveit.
	* nis/nss_nis/nis-service.c: Likewise.
	* nis/nss_nis/nis-initgroups.c: Likewise.
	(internal_setgrent): Adjust for buffer handling.
	(internal_getgrent_r): Likewise.
	* nis/nss_nis/nis-rpc.c: Likewise.
2006-04-29 01:14:07 +00:00
Ulrich Drepper 4eaa9bb48b * nis/nss-default.c (vars): Add SETENT_BATCH_READ.
* nis/nss: Document SETENT_BATCH_READ.
	* nis/libnsl.h: Define NSS_FLAG_SETENT_BATCH_READ.
	* nis/nss_nis/nis-service.c (saveit): Don't add NUL byte if the
	string is already NUL terminated.
	(internal_nis_endservent): No need to return anything.  Change callers.
	(internal_nis_setservent): One more initialization.
	* nis/nss_nis/nis-pwd.c: Support SETENT_BATCH_READ option.
	* nis/nss_nis/nis-grp.c: Likewise.

	* nis/nss-default.c (init): Rewrite parser to get the variables
2006-04-28 21:08:22 +00:00
Ulrich Drepper ee821689eb * nis/nss-default.c (init): Rewrite parse to get the variables
from a table.
2006-04-28 19:07:15 +00:00
Ulrich Drepper 4718026de2 * nis/nss_nis/nis-service.c: Avoid passing pointer to static
variable around.  Reduce number of memory allocations by creating
	list of memory pools.
2006-04-28 18:42:24 +00:00
Ulrich Drepper 912873399c * nis/ypclnt.c (__xdr_ypresp_all): Minor optimization in string
handling.  Fix typo in comment.
2006-04-28 17:01:50 +00:00
Ulrich Drepper 464c9fadaf * nscd/connections.c (restart): If we want to switch back to the
old ID use setresuid and setresgid.
	(finish_drop_privileges): Likewise.
2006-04-27 20:20:52 +00:00
Ulrich Drepper a6375d1104 * sysdeps/unix/sysv/linux/timer_routines.c (timer_helper_thread):
Allocate new object which is passed to timer_sigev_thread so that
	the timer can be deleted before the new thread is scheduled.
2006-04-27 18:17:50 +00:00
Ulrich Drepper b8c8817c81 * nscd/nscd.conf: Fix a typo. 2006-04-27 14:48:29 +00:00
Ulrich Drepper b9af3620d4 [BZ #2611]
2006-04-27  Ulrich Drepper  <drepper@redhat.com>
	[BZ #2611]
	* stdio-common/renameat.c (renameat): Fix typo.
2006-04-27 14:32:13 +00:00
Ulrich Drepper 15627a21c6 [BZ #1386]
* iconvdata/ibm932.c: Change mapping to allow round-trips.
	* iconvdata/ibm943.c: Likewise.
	Patch by Masahide Washizawa <WASHI@jp.ibm.com>.
2006-04-27 05:54:27 +00:00
Ulrich Drepper b8c31ac161 Allow inclusion from <fcntl.h>. 2006-04-27 02:56:57 +00:00
Roland McGrath 16a1d952b6 * Makeconfig (%.v.i rule): Don't use -DASSEMBLER.
The predefined __ASSEMBLER__ is sufficient.
2006-04-27 01:25:47 +00:00
Roland McGrath 02838201ee 2006-04-26 Roland McGrath <roland@redhat.com>
* Makeconfig (%.v.i rule): Don't use -DASSEMBLER.
	The predefined __ASSEMBLER__ is sufficient.
2006-04-27 01:25:28 +00:00
Ulrich Drepper c8c3ab914e * sysdeps/unix/sysv/linux/syscalls.list: Add vmsplice.
* sysdeps/unix/sysv/linux/Versions: Export vmsplice@@GLIBC_2.5.
	* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Declare vmsplice.
	* sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
	* sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
	* sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
	* sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
	* sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Likewise.
	* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.

	* sysdeps/unix/sysv/linux/bits/uio.h: Fix a typo in a comment.
2006-04-26 22:29:43 +00:00
Ulrich Drepper f4d22f0fec Fix a typo in a comment. 2006-04-26 22:12:30 +00:00
Roland McGrath d1f4b4d06b fix wrong file names
* locales/bg_BG: Update after iso-4217.def update.
	* locales/bs_BA: Likewise.
	* locales/es_MX: Likewise.
	* locales/ru_RU: Likewise.
	* locales/tg_TJ: Likewise.
	* locales/tt_RU: Likewise.
2006-04-26 20:42:35 +00:00
Ulrich Drepper 105a492d4d * sysdeps/posix/getaddrinfo.c (getaddrinfo): Fix typo which caused
bugs not to be reported.
2006-04-26 19:36:15 +00:00
Ulrich Drepper 797ed6f7e1 * nscd/nscd.h (struct database_dyn): Add propagate field.
* nscd/nscd_conf.c (nscd_parse_file): Parse auto-propagate lines.
	* nscd/nscd.conf: Add auto-propagate lines.
	* nscd/connections.c (dbs): Initialize .propagate fields.
	* nscd/grpcache.c (cache_addgr): Do not add ID entry for name lookups
	and vice versa if propagation is disabled for the database.
	* nscd/pwdcache.c (cache_addpw): Likewise.
2006-04-26 17:32:10 +00:00
Ulrich Drepper 1f063dcadb 2006-04-26 James Antill <james.antill@redhat.com>
Ulrich Drepper  <drepper@redhat.com>

	* config.make.in: Add have-libcap.
	* configure.in: Check for libcap.
	* nscd/Makefile (selinux-LIBS): Add -lcap if possible.
	* nscd/connections.c (finish_drop_privileges): When libcap is available
	call preserve_capabilities and install_real_capabilities.
	* nscd/selinux.c: Define preserve_capabilities and
	install_real_capabilities.
	* nscd/selinux.h: Declare preserve_capabilities and
	install_real_capabilities.
2006-04-26 16:29:29 +00:00
Ulrich Drepper cf86bbe6da * locale/iso-4217.def: Update. 2006-04-26 07:21:15 +00:00
Ulrich Drepper c61a9cfbc4 [BZ #2420]
* stdlib/strfmon_l.c (__vstrfmon_l): Fix handling of ! modifier.
	* localedata/Makefile: Add rules to build and run tst-strfmon1.
	* localedata/tst-strfmon1.c: New file.
2006-04-26 05:52:58 +00:00
Ulrich Drepper 388df58d9b [BZ #2571]
* nscd/nscd_helper.c (__nscd_get_map_ref): Make mapptr argument a
	volatile pointer so that the mapptr->mapped value is re-read after
	the lock is retrieved.
	* nscd/nscd-client.h: Update __nscd_get_map_ref prototype.

	* sysdeps/unix/sysv/linux/ia64/clone2.S: Check for NULL stack
2006-04-25 23:50:31 +00:00
Ulrich Drepper 5178e13aa2 * include/features.h [_GNU_SOURCE] (_POSIX_C_SOURCE): Define to
200112L.
2006-04-25 20:37:04 +00:00
Ulrich Drepper bc05436748 * resolv/res_hconf.c: Minor surgery to 'cmd' and the referenced
functions to avoid relocations.
2006-04-25 20:09:28 +00:00
Ulrich Drepper b9c65d0902 [BZ #2389]
* resolv/res_hconf.c: Remove 'order' parsing.  Just ignore the line.
	* resolv/res_hconf.h: Remove Name_Service definition.
	(struct hconf): Replace service related fields with placeholders.

	* version.h (VERSION): Bump to 2.4.90 for the trunk.
2006-04-25 19:46:41 +00:00
Ulrich Drepper 38027f90d4 [BZ #2386]
* sysdeps/unix/sysv/linux/ia64/clone2.S: Check for NULL stakc
	pointers to match other architectures.
	* sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (tests): Add
	tst-clone.
	* sysdeps/unix/sysv/linux/tst-clone.c: New file.

	malloc'ed wbuffer which isn't freed in error conditions.
2006-04-25 19:14:45 +00:00
Ulrich Drepper c7df983c08 [BZ #2072]
* stdio-common/printf_fp.c: Fix potential memory leaks for
	malloc'ed wbuffer isn't freed in error conditions.
2006-04-25 18:40:37 +00:00
Ulrich Drepper 74ed1159d1 [BZ #2569]
2006-04-25  Ulrich Drepper  <drepper@redhat.com>
	[BZ #2569]
	* iconv/gconv_db.c (__gconv_release_step): Fix condition of assert
	call.
	* iconvdata/Makefile (tests): Add tst-iconv6.
	* iconvdata/tst-iconv6.c: New file.
2006-04-25 17:47:32 +00:00
Ulrich Drepper bdefc84c58 * posix/tst-rfc3484.c (do_test): Also initialize source_addr_flags
field.
	* posix/tst-rfc3484-2.c (do_test): Likewise.
2006-04-24 23:02:03 +00:00
Ulrich Drepper 4c5bc8287b * posix/tst-rfc3484.c: Include <ifaddrs.h> early.
* posix/tst-rfc3484-2.c: Likewise.
2006-04-24 21:11:34 +00:00
Ulrich Drepper bb0b186dd3 * version.h (VERSION): Bunp to 2.4.90 for the trunk. 2006-04-24 21:00:04 +00:00
Ulrich Drepper ceba6be798 * malloc/arena.c (ptmalloc_init): Don't call __malloc_check_init
if MALLOC_CHECK_ env var contains an empty string.
2006-04-24 17:26:23 +00:00
Ulrich Drepper cf6ada44a2 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Always initialize in6ai. 2006-04-24 17:21:40 +00:00
Ulrich Drepper 589abe9337 * sysdeps/unix/sysv/linux/sync_file_range.c (sync_file_range): Use
__LONG_LONG_PAIR macro.
2006-04-24 17:09:55 +00:00
Ulrich Drepper a346370d58 * posix/bits/unistd.h (__readlinkat_chk): New prototype.
(__readlinkat_alias): New alias.
	(readlinkat): New inline function.
	* include/unistd.h (readlinkat): Add libc_hidden_proto.
	* sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Add
	libc_hidden_def.
	* io/readlinkat.c (readlinkat): Likewise.
	* debug/readlinkat_chk.c: New file.
	* debug/Makefile (routines): Add readlinkat_chk.
	* debug/Versions (libc): Export __readlinkat_chk@@GLIBC_2.5.
	* debug/tst-chk1.c (do_test): Add readlinkat tests.

	* nis/nss_nisplus/nisplus-netgrp.c: Cleanups.
	code is possible.  Move compatibility code in .text.compat section.
	over gaih array.  There is only one function to call in the moment.
2006-04-24 17:01:40 +00:00
Ulrich Drepper 34a15e61e0 [BZ #2349]
2006-04-24  Ulrich Drepper  <drepper@redhat.com>
	[BZ #2349]
	* locales/de_CH: Change thousand separator to '.
2006-04-24 07:28:27 +00:00
Ulrich Drepper 396d3fa993 [BZ #2158]
2006-01-17  Robert Millan  <robertmh@gnu.org>
	[BZ #2158]
	* SUPPORTED: Add ca_AD, ca_FR and ca_IT variants.
	* locales/ca_AD: New file.
	* locales/ca_FR: New file.
	* locales/ca_IT: New file.
2006-04-24 07:07:43 +00:00
Ulrich Drepper e3fe84befa [BZ #2134]
* locales/pa_PK: New file.
	* SUPPORTED: Add pa_PK.UTF-8.
2006-04-24 06:43:42 +00:00
Ulrich Drepper 1622cb6f08 [BZ #1974]
* locales/vi_VN: Fix int_frac_digits/frac_digits, abmon, mon, d_t_fmt,
	am_pm, and name_fmt.

	[BZ #1787]
	* locales/en_ZA: Updates.

	[BZ #1786]
	* locales/af_ZA: Updates.

	[BZ #1785]
	* locales/st_ZA: Updates and formatting changes.

	[BZ #1784]
	* locales/zu_ZA: Updates and formatting changes.

	[BZ #1783]
	* locales/xh_ZA: Updates and formatting changes.
2006-04-24 05:34:57 +00:00
Ulrich Drepper 23948bda4b * nis/nss_nisplus/nisplus-netgrp.c: Cleanups.
* posix/regex.h: Remove obsolete <sys/types.h> comment and special
	code if possible.  Move compatibility code in .text.compat section.
2006-04-24 04:36:38 +00:00
Ulrich Drepper 727a6832f0 [BZ #1951]
2006-04-23  Ulrich Drepper  <drepper@redhat.com>
	[BZ #1951]
	* sysdeps/posix/sigset.c (sigset): Return correct value reflecting
	previous signal state.
	* signal/Makefile (tests): Add tst-sigset2.
	* signal/tst-sigset2.c: New file.
2006-04-23 19:05:33 +00:00