Roland McGrath [Fri, 29 Jul 2005 23:26:18 +0000 (23:26 +0000)]
2005-07-19 Ulrich Drepper <drepper@redhat.com>
[BZ #1137]
* misc/Makefile: Add rules to build and run tst-error1.
* misc/tst-error1.c: New file.
* misc/error.c: Fix memory leak and possibly endless loop.
Roland McGrath [Mon, 18 Jul 2005 08:01:49 +0000 (08:01 +0000)]
2005-07-13 Ulrich Drepper <drepper@redhat.com>
[BZ #1080]
* nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.
* nscd/nscd_helper.c (wait_on_socket): New function.
(get_mapping): Use wait_on_socket instead of poll. The former handles
EINTR of poll correctly.
(__nscd_open_socket): Likewise.
(get_mapping): Make sure BUF is aligned correctly.
(get_mapping): Use munmap on correct pointer.
Roland McGrath [Mon, 18 Jul 2005 08:01:46 +0000 (08:01 +0000)]
2005-07-13 Ulrich Drepper <drepper@redhat.com>
* nscd/nscd_helper.c: Add a few __builtin_expect.
[BZ #1080]
* nscd/connections.c (send_ro_fd): Make sure BUF is aligned correctly.
* nscd/nscd_helper.c (wait_on_socket): New function.
(get_mapping): Use wait_on_socket instead of poll. The former handles
EINTR of poll correctly.
(__nscd_open_socket): Likewise.
(get_mapping): Make sure BUF is aligned correctly.
(get_mapping): Use munmap on correct pointer.
Roland McGrath [Mon, 18 Jul 2005 03:36:50 +0000 (03:36 +0000)]
2005-07-12 Jakub Jelinek <jakub@redhat.com>
[BZ #1106]
* sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Include not-cancel.h.
(has_cpuclock): Use open_not_cancel_2 instead of open, read_not_cancel
instead of read and close_not_cancel_no_status instead of close.
Roland McGrath [Mon, 18 Jul 2005 03:32:05 +0000 (03:32 +0000)]
2005-06-17 Ulrich Drepper <drepper@redhat.com>
[BZ #1104]
* sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c
(truncate64): Use __truncate, not truncate.
(__have_no_truncate64): Renamed from have_no_truncate64.
* sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c
(__have_no_truncate64): Renamed from have_no_truncate64.
Roland McGrath [Mon, 18 Jul 2005 03:12:48 +0000 (03:12 +0000)]
2005-02-11 Jakub Jelinek <jakub@redhat.com>
[BZ #1100]
* debug/chk_fail.c (__chk_fail): Add a while (1) loop around
__libc_message to kill GCC warning about noreturn function returning.
2005-01-26 Ulrich Drepper <drepper@redhat.com>
[BZ #1100]
* debug/chk_fail.c (__chk_fail): Print program name in final message.
Roland McGrath [Mon, 18 Jul 2005 03:08:46 +0000 (03:08 +0000)]
2005-01-11 Thorsten Kukuk <kukuk@suse.de>
[BZ #1099]
* grp/putgrent.c (putgrent): Don't write 0 as group
ID if groupname starts with + or -.
* pwd/putpwent.c (putpwent): Don't write 0 as user or
group ID if user name starts with + or -.
Roland McGrath [Mon, 18 Jul 2005 02:58:16 +0000 (02:58 +0000)]
2005-06-13 Jakub Jelinek <jakub@redhat.com>
[BZ #1096]
* sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_sendreq,
__netlink_receive): Remove prototypes.
(__netlink_request): New prototype.
* sysdeps/unix/sysv/linux/ifaddrs.c: Include <alloca.h> and
<stdint.h>.
(__netlink_sendreq): Make static.
(__netlink_receive): Rename to...
(__netlink_request): ... this. Add type argument, call
__netlink_sendreq. If MSG_TRUNC is set after recvmsg, retry
with a bigger buffer. Don't record buffers that contain no
messages we are expecting.
(getifaddrs): Use __netlink_request instead of __netlink_sendreq
and __netlink_receive pairs. Formatting.
* sysdeps/unix/sysv/linux/if_index.c (if_nameindex_netlink): Use
__netlink_request instead of __netlink_sendreq and __netlink_receive
pair.
Roland McGrath [Mon, 18 Jul 2005 02:07:37 +0000 (02:07 +0000)]
2005-06-20 Jakub Jelinek <jakub@redhat.com>
[BZ #653]
* sysdeps/unix/sysv/linux/sys/quota.h: Add definitions and types for
_LINUX_QUOTA_VERSION >= 2.
(_LINUX_QUOTA_VERSION): Define if not yet defined.
Roland McGrath [Mon, 18 Jul 2005 02:01:06 +0000 (02:01 +0000)]
2005-06-08 Karl Kelley <kekelley@iastate.edu>
[BZ #1088]
* hesiod/hesiod_p.h (struct hesiod_p): Add classes array.
* hesiod/hesiod.c (hesiod_init): Initialize classes. Fail if no
valid classes were given or if both are equal.
(hesiod_resolve): Use ctx->classes instead of hardcoded C_IN
and C_HS order.
(parse_config_file): Handle classes keyword.
* hesiod/README.hesiod: Mention addition of the classes keyword.
Roland McGrath [Mon, 18 Jul 2005 02:01:01 +0000 (02:01 +0000)]
2005-06-15 Jakub Jelinek <jakub@redhat.com>
[BZ #1088]
* hesiod/hesiod.c (hesiod_init): Don't check for ctx->classes[0] == 0
or both classes equal here.
(parse_config_file): If both classes are equal, clear the second one.
2005-06-08 Karl Kelley <kekelley@iastate.edu>
[BZ #1088]
* hesiod/hesiod_p.h (struct hesiod_p): Add classes array.
* hesiod/hesiod.c (hesiod_init): Initialize classes. Fail if no
valid classes were given or if both are equal.
(hesiod_resolve): Use ctx->classes instead of hardcoded C_IN
and C_HS order.
(parse_config_file): Handle classes keyword.
* hesiod/README.hesiod: Mention addition of the classes keyword.
Roland McGrath [Mon, 18 Jul 2005 01:43:34 +0000 (01:43 +0000)]
2005-05-23 Ulrich Drepper <drepper@redhat.com>
[BZ #1086]
* sunrpc/pm_getport.c (__get_socket): New function.
(pmap_getport): Use it to open a non-reserved socket to the portmapper
for TCP.
* include/rpc/pmap_clnt.h (__get_socket): Declare.
* sunrpc/pm_getmaps.c (pmap_getmaps): Use __get_socket to get an
non-reserved socket for the portmapper.
Based on a patch by Steve Dickson <steved@redhat.com>.
Roland McGrath [Mon, 18 Jul 2005 01:43:31 +0000 (01:43 +0000)]
2005-05-23 Ulrich Drepper <drepper@redhat.com>
[BZ #1086]
* sunrpc/bindrsvprt.c (LOWPORT): Apparently some mountd
implementations are broken and don't accept ports < 512.
[BZ #1086]
* sunrpc/bindrsvprt.c (bindresvport): Try harder to find a port.
If we tried looking at the usual range without success extend the
range to even lower ports.
Roland McGrath [Mon, 18 Jul 2005 01:38:55 +0000 (01:38 +0000)]
2005-06-14 Ulrich Drepper <drepper@redhat.com>
[BZ #1085]
* configure.in: Add test for availability of libaudit.
* config.h.in: Define HAVE_LIBAUDIT.
* config.make.in: Define have-libaudit.
* nscd/Makefile: If libaudit is available, link nscd with it.
* nscd/selinux.c: If HAVE_LIBAUDIT is defined, log using libaudit.
Patch by Steve Grubb <sgrubb@redhat.com>.
Roland McGrath [Mon, 18 Jul 2005 01:31:47 +0000 (01:31 +0000)]
2005-04-29 Jakub Jelinek <jakub@redhat.com>
[BZ #1083]
* sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
call ftruncate if offset is bigger than current size. Make sure
the file is offset + len bytes long if that is more than current size.
Don't overwrite previous content of the file.
* sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
Likewise.
Roland McGrath [Mon, 18 Jul 2005 01:31:44 +0000 (01:31 +0000)]
2005-06-14 Ulrich Drepper <drepper@redhat.com>
[BZ #1083]
* sysdeps/posix/posix_fallocate64.c: Use __libc_pread64 instead of
__pread64.
2005-04-29 Jakub Jelinek <jakub@redhat.com>
[BZ #1083]
* sysdeps/posix/posix_fallocate.c (posix_fallocate): If len == 0,
call ftruncate if offset is bigger than current size. Make sure
the file is offset + len bytes long if that is more than current size.
Don't overwrite previous content of the file.
* sysdeps/posix/posix_fallocate64.c (__posix_fallocate64_l64):
Likewise.
Roland McGrath [Mon, 18 Jul 2005 01:22:18 +0000 (01:22 +0000)]
2005-04-26 Jakub Jelinek <jakub@redhat.com>
[BZ #1081]
* elf/dl-close.c: Include stddef.h.
(_dl_close): If called recursively, just remember GC needs to be rerun
and decrease l_direct_opencount. Avoid GC if l_direct_opencount
decreased to 1. Rerun GC at the end if any destructor unloaded some
additional libraries.
* elf/Makefile: Add rules to build and run unload6 test.
* elf/unload6.c: New test.
* elf/unload6mod1.c: New file.
* elf/unload6mod2.c: New file.
* elf/unload6mod3.c: New file.
Roland McGrath [Fri, 15 Apr 2005 06:33:25 +0000 (06:33 +0000)]
2005-04-14 Roland McGrath <roland@redhat.com>
[BZ #253]
* nscd/Makefile (all-nscd-modules): New variable, include selinux
module regardless of configuration.
(distribute): Use that instead of $(nscd-modules).
Roland McGrath [Fri, 15 Apr 2005 05:46:43 +0000 (05:46 +0000)]
2005-04-14 Ulrich Drepper <drepper@redhat.com>
[BZ #851]
* posix/execvp.c (execvp): Use file name including path when
trying to run it with shell.
* posix/Makefile: Add rules to build and run tst-execvp3.
* posix/tst-execvp3.c: New file.
Roland McGrath [Wed, 6 Apr 2005 02:51:35 +0000 (02:51 +0000)]
2005-03-08 Jakub Jelinek <jakub@redhat.com>
[BZ #821]
* elf/Makefile: Add rules to build and run unload4 test.
* elf/unload4.c: New file.
* elf/unload4mod1.c: New file.
* elf/unload4mod2.c: New file.
* elf/unload4mod3.c: New file.
* elf/unload4mod4.c: New file.
Roland McGrath [Wed, 6 Apr 2005 02:51:22 +0000 (02:51 +0000)]
2005-03-19 Ulrich Drepper <drepper@redhat.com>
[BZ #821]
* elf/Makefile: Add rules to build and run order2.
* elf/order2.c: New file.
* elf/order2mod1.c: New file.
* elf/order2mod2.c: New file.
* elf/order2mod3.c: New file.
* elf/order2mod4.c: New file.