Update.
[glibc.git] / ChangeLog
blobe6145a182e972abf667d09250081474c8fba0e2e
1 1998-10-28  Geoff Keating  <geoffk@ozemail.com.au>
3         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Tidy up, correct
4         llseek.
6         * sysdeps/unix/sysv/linux/powerpc/pread.c: Do not use the i386 version.
7         Instead call the system call wrapper function using an 64bit argument.
8         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
9         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
10         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
12 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
14         * signal/signal.h: Don't include <time.h> for timespec, add
15         forward declaration.
17         * sysdeps/i386/bits/select.h [!__USE_XOPEN]: Add special version
18         of __FD_* macros which use __fds_bits.
19         * sysdeps/generic/bits/select.h: Likewise.
20         Reported by Matt McLean <keys@yikes.com>.
22 1998-10-27  Philip Blundell  <pb@nexus.co.uk>
24         * elf/elf.h: Update ARM definitions.
26 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
28         * signal/signal.h: Include bits/sigthread.h only for Unix98.
30 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
32         * include/libc-symbols.h: If HAVE_BUILTIN_EXPECT is not defined
33         define __builtin_expect as a macro substituting to the first
34         argument.
35         * config.h.in: Define HAVE_BUILTIN_EXPECT.
36         * configure.in: Add test for __builtin_expect.
38         * sysdeps/unix/sysv/linux/bits/types.h: Include
39         bits/pthreadtypes.h only not for POSIX 199506.
40         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
41         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
42         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
44 1998-10-26  Mark Kettenis  <kettenis@phys.uva.nl>
46         * sysdeps/unix/sysv/linux/Versions: Move shutdown ...
47         * socket/Versions [libc, GLIBC_2.0]: ... to here.
49 1998-10-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
51         * include/stdio.h: Included <stddef.h> for size_t.
53         * stdio/stdio.h: Move __path_search, __gen_tempname, __libc_fatal
54         to ...
55         * include/stdio.h: ...here.
56         * libio/stdio.h: Removed __path_search, __gen_tempname, __libc_fatal.
58 1998-10-26 11:09  Ulrich Drepper  <drepper@cygnus.com>
60         * time/Makefile (tests): Add tst-posixtz.
61         * time/tst-posixtz.c: New file.
63 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
65         * elf/rtld.c (process_envvars): Accept any non-null value of
66         LD_BIND_NOW, as mandated by the ABI.
68 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
70         * sysdeps/unix/sysv/linux/pread.c: Rename __syscall_pread64 to
71         __syscall_pread.
72         * sysdeps/unix/sysv/linux/pwrite.c: Rename __syscall_pwrite64 to
73         __syscall_pwrite.
74         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
75         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
76         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
77         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
78         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.  Remove
79         duplicate entries.
80         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Remove
81         s_pread64 and s_pwrite64.
82         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
84 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86         * sysdeps/unix/sysv/linux/llseek.c: Use INLINE_SYSCALL.
87         * sysdeps/unix/sysv/linux/arm/syscalls.list: Rename __sys_llseek
88         to __syscall__llseek.
89         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
90         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
91         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove entry for
92         __sys_llseek.
94 1998-10-26  Cristian Gafton  <gafton@redhat.com>
96         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add s_setfsgid
97         and s_setfsuid.
99 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
101         * time/tzset.c (tz_compute): Correct last patch and describe this
102         in a comment.
104 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
106         * sysdeps/unix/sysv/linux/m68k/Makefile [subdir=signal]: Remove
107         rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo,
108         rt_sigaction and rt_sigpending.
109         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Remove all entries
110         for __syscall_* functions.
111         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Implement INLINE_SYSCALL.
113 1998-10-26  Roland McGrath  <roland@baalperazim.frob.com>
115         * hurd/Versions: Add _hurd_dtable, _hurd_dtablesize,
116         _hurd_dtable_lock, _hurd_intern_fd.
118         * sysdeps/mach/hurd/Versions: Add cthread_keycreate,
119         cthread_getspecific, cthread_setspecific, __libc_getspecific.
121         * mach/Versions: Fix typo in last change.
123 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
125         * time/tzset.c (tz_compute): If time to switch to DST is later in
126         the year switch back in the next year.
127         Reported by jwitford@hutch.com.au.
129 1998-10-24  Mark Kettenis  <kettenis@phys.uva.nl>
131         * mach/Versions: Add evc_wait, mach_error, mach_error_string,
132         mach_error_type, mach_msg_destroy, mig_deallocate_reply_port.
133         Remove __mach_host_self, __mach_reply_port, __mach_setup_thread,
134         __mach_port_allocate, __mach_port_allocate_name,
135         __mach_port_insert_right __mutex_trylock, __mutex_lock,
136         __mutex_unlock, __swtch, __switch, __task_create, __task_suspend,
137         __task_set_special_port, __task_terminate, __thread_depress_abort,
138         __thread_switch, __vm_allocate, __vm_deallocate, __vm_map.  These
139         functions are not used outside libc.
141         * sysdeps/mach/hurd/Versions: New file.
142         [libc, GLIBC_2.0]: Add _cthread_exit_routine and
143         _cthread_init_routine.  These are set by the Hurd cthreads library.
144         Add __getcwd, __mmap.  If we don't add these, the weak definitions in
145         the dynamic linker will not be replaced by the corresponding shared
146         library routines once they are loaded.
148 1998-10-21  Mark Kettenis  <kettenis@phys.uva.nl>
150         * sysdeps/mach/hurd/i386/init-first.c: Only define
151         __libc_enable_secure if PIC is not defined.
153 1998-10-25  Roland McGrath  <roland@baalperazim.frob.com>
155         * argp/Versions: Add _argp_unlock_xxx.  Lock-savvy functions call this
156         to recurse into argp.
158 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
160         * include/features.h: Define __USE_POSIS199506 is _POSIX_C_SOURCE is
161         greater or equal than 199506L.
163         * sysdeps/generic/bits/types.h (__fd_set): Define element as fds_bits
164         only is __USE_XOPEN.  Otherwise use __fds_bits.
165         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
166         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
167         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
168         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
169         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
171 1998-10-24  H.J. Lu  <hjl@gnu.org>
173         * locale/programs/charmap.c (parse_charmap): Accept tok_string
174         for <code_set_name>.
176 1998-10-25  H.J. Lu  <hjl@gnu.org>
178         * locale/programs/ld-ctype.c (ctype_finish): Also check
179         <space>.
181 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
183         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX199506.
185         * sysdeps/unix/sysv/linux/bits/types.h: Include pthreadtypes.h only
186         if __USE_POSIX199506 or __USE_UNIX98.
188 1998-10-24 22:34 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
190         * string/bits/string2.h: Inline strdup+friends only if
191         __USE_MISC || __USE_GNU (prevents namespace pollution).
193 1998-10-24  H.J. Lu  <hjl@gnu.org>
195         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (LOCK_SH,
196         LOCK_EX, LOCK_NB, LOCK_UN): Protect with __USE_BSD.
197         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (LOCK_SH, LOCK_EX,
198         LOCK_NB, LOCK_UN): Likewise.
199         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (LOCK_SH, LOCK_EX,
200         LOCK_NB, LOCK_UN): Likewise.
201         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (LOCK_SH, LOCK_EX,
202         LOCK_NB, LOCK_UN): Likewise.
203         * sysdeps/unix/sysv/linux/bits/fcntl.h (LOCK_SH, LOCK_EX,
204         LOCK_NB, LOCK_UN): Likewise.
206 1998-10-24  H.J. Lu  <hjl@gnu.org>
208         * libio/ioseekoff.c (_IO_seekoff): Check the valid dir value.
210         * libio/rewind.c (rewind): Clear the error.
212 1998-10-24  H.J. Lu  <hjl@gnu.org>
214         * grp/grp.h (getgrent_r, getgrgid_r, getgrnam_r): Add "__" to
215         "buffer".
217 1998-10-24  H.J. Lu  <hjl@gnu.org>
219         * sysdeps/unix/sysv/linux/alpha/bits/time.h (timeval): Protect
220         with __need_timeval.
221         * sysdeps/unix/sysv/linux/mips/bits/time.h (timeval): Likewise.
222         * sysdeps/unix/sysv/linux/bits/time.h (timeval): Likewise.
224 1998-10-24  H.J. Lu  <hjl@gnu.org>
226         * signal/signal.h (timespec, siginfo_t, sigwaitinfo, sigtimedwait,
227         sigqueue): Protect with __USE_POSIX199309.
229 1998-10-24  H.J. Lu  <hjl@gnu.org>
231         * time/time.h (timespec): Protect with __USE_POSIX199309 instead of
232         __USE_POSIX.
234 1998-10-24  H.J. Lu  <hjl@gnu.org>
236         * libio/fileops.c (_IO_new_file_seekoff): Always resync with
237         the kernel file offset.
238         * libio/oldfileops.c (_IO_old_file_seekoff): Likewise.
240 1998-10-24  H.J. Lu  <hjl@gnu.org>
242         * time/tzfile.c (__tzfile_default): Set num_types to 2.
244 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
246         * rt/aio.h: Move __aio_init to...
247         * include/aio.h: ...here.
249 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
251         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove duplicate
252         definition of O_LARGEFILE.
254 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
256         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Use path
257         as first argument to statfs.
259 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
261         * sysdeps/generic/setenv.c (setenv): Add braces around ambiguous else.
263 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
265         * malloc/mtrace.c: Include <string.h> for strlen.
267 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
269         * sysdeps/mach/hurd/bits/environments.h: New file.
271         * sysdeps/mach/hurd/dl-sysdep.c (__getcwd): New weak function.
273         * mach/Versions, hurd/Versions: Add numerous symbols.
274         Remove libmachuser and libhurduser sections, punt
275         versioning for those libraries for now.
277         * misc/Versions: Add reboot here; it exists on all platforms.
278         * sysdeps/unix/sysv/linux/Versions: Remove reboot here.
280 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
282         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOFOLLOW): New
283         macro.
284         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
285         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
286         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_LARGEFILE,
287         O_NOFOLLOW, O_DIRECT): New macros.
288         (O_DIRECTORY): Correct definition according to official 2.1.126.
289         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECTORY,
290         O_NOFOLLOW): New macros.
292 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
294         * include/ldsodefs.h: Test HAVE_ELF instead of __ELF__.
296         * sysdeps/mach/hurd/opendir.c (__opendir): Return ENOENT for "".
297         (__opendir): Add trailing slash to name for open, for ENOTDIR check.
299 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
301         * sysdeps/unix/sysv/linux/i386/Dist: Add setresuid.c, setresgid.c,
302         setfsuid.c, and setfsgid.c.
303         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
304         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
305         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
307         * version.h (VERSION): Bump to 2.0.99.
309         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove duplicate
310         ustat definition.
312         * sysdeps/unix/sysv/linux/i386/Dist: Remove s_pread64.c and
313         s_pwrite64.c.
315         * posix/fnmath.h: Don't redefine __P when used in glibc.
316         * posix/glob.h: Likewise.
318         * inet/rcmd.c (__ivaliduser2): Fix memory leak.
319         Patch by Dick Streefland <dick_streefland@tasking.com>.
321         * stdio-common/tst-ungetc.c: Add more test cases.
323         * sysdeps/unix/sysv/linux/Dist: Add linux_fsinfo.h.
324         * sysdeps/unix/sysv/linux/fstatvfs.c: Move filesystem magic number
325         definitions to ...
326         * sysdeps/unix/sysv/linux/linux_fsinfo.h: ...here.  New file.
327         * sysdeps/unix/sysv/linux/fpathconf.c: New file.
328         * sysdeps/unix/sysv/linux/pathconf.c: New file.
329         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Handle _PC_LINK_MAX here.
330         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
332 1998-10-20  Philip Blundell  <pb@nexus.co.uk>
334         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: Include
335         <asm/ptrace.h> to define struct pt_regs.
336         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Don't bother
337         including <asm/ptrace.h> here.
339         * sysdeps/unix/sysv/linux/arm/sysdep.S: Remove spurious call to
340         C_SYMBOL_NAME macro.
342 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
344         * sysdeps/generic/sys/ptrace.h (__ptrace_request): Remove comma at
345         end of enumerator list.
346         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Likewise.
347         * posix/wordexp.h: Likewise.
349         * db/db.h: Use __PMT instead of __P in typedefs.
350         * db/mpool.h: Likewise.
351         * sysdeps/generic/bits/siginfo.h: Likewise.
352         * nis/rpcsvc/ypclnt.h: Likewise.
354 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
356         * libio/genops.c (_IO_seekmark): When switching to backup buffer
357         make sure all characters from the read buffer are read after
358         switching back to it.
360 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
362         * configure.in: Add support for Cygnus GNUPro compilers.
364 1998-10-22  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
366         * stdio/stdio.h: Use __PMT instead of __P in typedefs.
368         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use __PMT instead
369         of __P for sa_restorer.
370         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
371         * sysdeps/unix/sysv/linux/kernel_sigaction.h (struct
372         kernel_sigaction, old_kernel_sigaction): Likewise.
374 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
376         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add __syscall_pread
377         and __syscall_pwrite aliases.
379         * sunrpc/rpc/auth.h (AUTH_DH): New macro.  Alias for AUTH_DES.
381         * sysdeps/unix/sysv/linux/i386/sysdep.h: Drastically simplify and
382         improve INLINE_SYSCALL using macro assembler magic.
384 1998-10-22  H.J. Lu  <hjl@gnu.org>
386         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Add
387         sanity check for n.
388         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Likewise.
390         * sysdeps/posix/fpathconf.c (__fpathconf): Set errno to
391         EINVAL if errno == ENODEV.  Tested by VSX-PCT.
393         * sysdeps/posix/isatty.c (__isatty): Don't reset errno.  Tested
394         by VSX-PCT.
396         * posix/execvp.c (execvp): Check "".  Tested by VSX-PCT.
398 1998-10-22  Philip Blundell  <pb@nexus.co.uk>
400         * sysdeps/unix/arm/sysdep.h: Wrap assembler macros in #ifdef
401         __ASSEMBLER__.
403 1998-10-21  Ulrich Drepper  <drepper@cygnus.com>
405         * sysdeps/unix/sysv/linux/i386/sysdep.h: Remove EXTRAVARS_* macros
406         and adjust formats.
408 1998-10-21 14:38  Ulrich Drepper  <drepper@cygnus.com>
410         * sysdeps/unix/sysdep.h (INLINE_SYSCALL): New macro.  Simply call
411         __syscall_* function.
412         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Use INLINE_SYSCALL instead
413         of calling __syscall_* function.
414         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
415         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
416         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
417         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
418         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
419         * sysdeps/unix/sysv/linux/getresgid.c: Likewise.
420         * sysdeps/unix/sysv/linux/getresuid.c: Likewise.
421         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
422         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
423         * sysdeps/unix/sysv/linux/poll.c: Likewise.
424         * sysdeps/unix/sysv/linux/pread.c: Likewise.
425         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
426         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
427         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
428         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
429         * sysdeps/unix/sysv/linux/readv.c: Likewise.
430         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
431         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
432         * sysdeps/unix/sysv/linux/siglist.h: Likewise.
433         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
434         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
435         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
436         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
437         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
438         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
439         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
440         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
441         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
442         * sysdeps/unix/sysv/linux/writev.c: Likewise.
443         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
444         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
445         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
446         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
447         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
448         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
449         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
450         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
451         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
452         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
453         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
454         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
455         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
457         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INLINE_SYSCALL using
458         inline assembler.
459         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove various
460         __syscall_* definitions.
462         * sysdeps/unix/sysv/linux/syscalls.list: Move various __syscall_*
463         definitions to...
464         * sysdeps/unix/sysv/linux/alpha/syscalls.list: ...here...
465         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
466         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
467         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
468         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
469         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
470         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
472         * sysdeps/unix/sysv/linux/Makefile [subdir=signal] (sysdep_routines):
473         Move definition to...
474         * sysdeps/unix/sysv/linux/alpha/Makefile: ...here...
475         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
476         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
477         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
478         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
479         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
480         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
482         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
483         (sysdep_routines): Remove s_pread64 and s_pwrite64.
485         * sysdeps/unix/sysv/linux/i386/pread.c: New file.
486         * sysdeps/unix/sysv/linux/i386/pread64.c: New file.
487         * sysdeps/unix/sysv/linux/i386/pwrite.c: New file.
488         * sysdeps/unix/sysv/linux/i386/pwrite64.c: New file.
489         * sysdeps/unix/sysv/linux/i386/s_pread64.S: Removed.
490         * sysdeps/unix/sysv/linux/i386/s_pwrite64.S: Removed.
492 1998-10-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
494         * sysdeps/unix/sysv/linux/siglist.h: Fix some typos in these files
495         and bring them in synch.
496         * sysdeps/unix/siglist.c: Likewise.
497         Reported by Vladimir Michl <michlv@risc.upol.cz> [PR libc/832].
499 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
501         * sysdeps/unix/sysv/linux/i386/setresuid.c: Allow -1 as arguments.
502         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
504         * sysdeps/unix/sysv/linux/i386/setreuid.c: New file.
505         * sysdeps/unix/sysv/linux/i386/setregid.c: New file.
506         * sysdeps/unix/sysv/linux/m68k/setreuid.c: New file.
507         * sysdeps/unix/sysv/linux/m68k/setregid.c: New file.
508         * sysdeps/unix/sysv/linux/arm/setreuid.c: New file.
509         * sysdeps/unix/sysv/linux/arm/setregid.c: New file.
510         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: New file.
511         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: New file.
512         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add s_setreuid and
513         s_setregid.
514         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
515         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
516         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
518 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
520         * sunrpc/rpc_main.c (close_output, close_input): New functions.
521         (c_output, h_output, s_output, l_output, t_output, svc_output,
522         clnt_output, mkfile_output): Call them at the end.
524 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
526         * db/Makefile (LDFLAGS-db1.so): New variable, to avoid duplicating
527         link command.
529 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
531         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Add real contents.
532         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add s_setfs[ug]id.
534 1998-10-20  Ulrich Drepper  <drepper@cygnus.com>
536         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_pread64 and
537         s_pwrite64.
538         * sysdeps/unix/sysv/linux/powerpc/pread.c: New file.
539         * sysdeps/unix/sysv/linux/powerpc/pread64.c: New file.
540         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: New file.
541         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: New file.
542         Patch by Geoffrey KEATING <geoffk@discus.anu.edu.au>.
544 1998-10-18  Zack Weinberg  <zack@rabi.phys.columbia.edu>
546         * sysdeps/unix/opendir.c: Check at runtime for kernel support for
547         O_DIRECTORY.
549 1998-10-20  H.J. Lu  <hjl@gnu.org>
551         * sysdeps/unix/sysv/linux/i386/setresuid.c (__setresuid): Fix
552         argument types.
554 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
556         * math/tgmath.h: Make nested function calls work.
558         * include/ldsodefs.h: Fix typo.
560         * posix/Makefile (tests): Add tst-preadwrite.
561         * posix/tst-preadwrite.c: New file.
563         * sysdeps/unix/opendir.c (__opendir): Add back fstat call to make
564         sure that descriptor is in any case for a directory.
566 1998-10-19 18:59 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
568         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG): Fix typo: val -> Val.
569         (atan2): Takes two arguments.
571 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
573         * include/ldsodefs.h: New file.
575         * iconv/gconv.c: Include ldsodefs.h, not elf/ldsodefs.h.
576         Remove change to avoid using _CALL_DL_FCT.
577         * iconv/gconv_db.c: Likewise.
578         * iconv/gconv_dl.c: Likewise.
579         * iconv/skeleton.c: Likewise, here for DL_CALL_FCT.
580         * malloc/mtrace.c: Include ldsodefs.h, not elf/ldsodefs.h.
581         * nss/nsswitch.c: Likewise.
582         * nss/nsswitch.h: Likewise.
584 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
586         * sunrpc/Makefile (otherlibs): If static NSS is in use, set to the
587         required libraries.
588         * login/Makefile (otherlibs): Likewise.
589         * nscd/Makefile (otherlibs): Likewise.
590         * Makeconfig (link-libc) [! build_shared]: Add $(otherlibs).
592         * debug/Makefile (install-bin): Only build catchsegv if using ELF.
594         * inet/Makefile: Add -DSTATIC_NSS to CFLAGS.
596 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
598         * sysdeps/unix/sysv/linux/arm/syscalls.list: Added setfsgid
599         and setfsuid.
601 1998-10-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
603         * nscd/connections.c: Fix typos in comments and strings.
605         * nscd/nscd.conf: Update according to recent changes to nscd.
607         * nscd/cache.c (prune_cache): Remove wrong comment.
609 1998-10-19 13:24  Ulrich Drepper  <drepper@cygnus.com>
611         * locale/programs/ld-collate.c (collate_startup): Clear bit for this
612         category in copy_posix.
613         (collate_finish): Don't warn about UNDEFINED not being defined.
614         * locale/programs/ld-ctype.c (ctype_startup): Clear bit for this
615         category in copy_posix.
616         * locale/programs/ld-messages.c (messages_startup): Likewise.
617         * locale/programs/ld-monetary.c (monetary_startup): Likewise.
618         * locale/programs/ld-numeric.c (numeric_startup): Likewise.
619         * locale/programs/ld-time.c (time_startup): Likewise.
620         * locale/programs/localedef.c: Move copy_def_list_t definition into
621         locales.h.  Define copy_posix variable.
622         (main): Before processing copy list add &copy_posix to copy_list.
623         * locale/programs/locales.h: Add definition of copy_def_list_t.
624         * locale/programs/locfile.c: Clear bit for appropriate category in
625         copy_posix.mask for copy instruction.
627 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
629         * sysdeps/unix/sysv/linux/i386/setresgid.c: Remove #include of
630         non-existing file with generic implementation.
631         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
633 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
635         * iconv/gconv_db.c: Include ELF header only if STATIC_GCONV is not
636         defined.  Avoid using _CALL_DL_FCT if it is not defined.
637         * iconv/gconv.c: Likewise.
639 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
641         * nscd/connections.c (dbs): Define defualt values for timeouts and
642         set enabled to 0 by default.
643         (CACHE_PRUNE_INTERVAL): New constant.  Use it instead of magical 15 in
644         nscd_run.
646         * locale/C-ctype.c (_nl_C_LC_CTYPE_class): Clear ISCNTRL bit for
647         character >= 0x80.
648         (_nl_C_LC_CTYPE_class32): Likewise.
649         Reported by HJ Lu.
651 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
653         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
654         _HURD_THREADVAR_DL_ERROR.
656         * hurd/Makefile (user-interfaces): Add login, password.
658         * sysdeps/mach/hurd/Makefile (+cflags): Append -Wno-parentheses.
660 1998-08-06  Mark Kettenis  <kettenis@phys.uva.nl>
662         [submitted 1998-08-06]
663         * mach/Machrules: Create target directory and force re-evaluation
664         of Makefile to prevent `make' from optimizing away most of the
665         implicit rules and `vpath' directives.
667 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
669         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): If _hurd_msgport_thread
670         is null, short-circuit to __mach_msg.
672         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): New function,
673         broken out of init1.
674         (init1) [PIC]: Call it.
675         (__libc_init_first) [! PIC]: Call it.
677         * sysdeps/mach/hurd/i386/init-first.c (init1): Don't call
678         __libc_init_secure.  Instead set __libc_enable_secure here from
679         the exec flags.
680         (__libc_enable_secure): New variable it.
681         * sysdeps/mach/hurd/enbl-secure.c: New file, empty placeholder module.
683 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
685         * nscd/nscd-client.h: New file, broken out of "nscd.h".
686         * nscd/nscd.h: Move defns needed by clients to "nscd-client.h",
687         and #include that.
688         * nscd/Makefile (distribute): Add nscd-client.h.
689         * nscd/nscd_getgr_r.c, nscd/nscd_gethst_r.c, nscd/nscd_getpw_r.c:
690         Include "nscd-client.h" instead of "nscd.h"
692 1998-10-18  Ulrich Drepper  <drepper@cygnus.com>
694         * sysdeps/posix/getcwd.c (__getcwd): Don't stop processing
695         directory entries when a lstat call fails.
696         Patch by Colin Plumb <colin@nyx.net>.
698         * resolv/nss_dns/dns-host.c: Add missing errnop parameter to the
699         NSS functions.
700         * resolv/nss_dns/dns-network.c: Likewise.
702         * grp/Makefile: Don't search for linuxthreads in add-ons, use
703         have-thread-library to determine whether threads are available.
704         * pwd/Makefile: Remove wrong comment.
706         * inet/Makefile: Define CFLAGS-gethstbyad_r.c, CFLAGS-gethstbynm_r.c,
707         and CFLAGS-gethstbynm2_r.c to -DUSE_NSCD=1.
709         * locale/C-messages.c: Define default strings for YESTR and NOSTR.
711         * nss/Versions: Add __nss_hosts_lookup.
713         * nss/getXXbyYY.c: Remove unneeded assignment.
715         * nss/getXXbyYY_r.c: Include nscd/nscd_proto.h only if needed.
717         Almost complete rewrite of the NSCD to make it smaller, faster,
718         add more functionnality and make it easier to extend.
719         * nscd/Makfile (routines): Add nscd_gethst_r.
720         (nscd-modules): Add hstcache, gethstbyad_r, gethstbynm2_r, and cache.
721         * nscd/cache.c: New file.
722         * nscd/gethstbyad_r.c: New file.
723         * nscd/gethstbynm2_r.c: New file.
724         * nscd/hstcache.c: New file.
725         * nscd/nscd_gethst_r.c: New file.
726         * nscd/connections.c: Rewritten.  Don't start new thread for every
727         new connection.  Use a fixed set of threads which handle all
728         connections and also the cache cleanup.
729         * nscd/grpcache.c: Rewritten to use generic cache handling functions
730         in cache.c.
731         * nscd/nscd.c: Recognize new parameter nthreads.  Adjust initialization
732         for rewrite.  Remove handle_requests function.
733         * nscd/nscd.h (NSCD_VERSION): Bump to 2.
734         Define new data structure for the new unified cache and the host
735         database entries.
736         * nscd/nscd_conf.c: Rewrite parsing partly to allow adding of more
737         databases easily.  Recognize check-files and threads definitions.
738         * nscd/nscd.conf: Add definition of enable-cache and check-files to
739         passwd and group definitions.  Add new set of definitions for hosts.
740         * nscd/nscd_getgr_r.c: Rewrite for new protocol.
741         * nscd/nscd_getpw_r.c: Likewise.
742         * nscd/nscd_proto.h: Add prototype for host database functions.
743         * nscd/nscd_stat.c: Rewrite to simplify printing of information
744         for many databases.
745         * nscd/dbg_log.c: Remove unnecessary variable initializations.
746         Global variable debug_flag is renamed to dbg_level.
747         * nscd/dbg_log.h: Declare set_logfile.
749 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
751         * sysdeps/unix/sysv/linux/bits/fcntl.h: Add dummy definition of
752         O_LARGEFILE back.
754 1998-10-16  Paul Eggert  <eggert@shade.twinsun.com>
756         * time/mktime.c: Some systems require <unistd.h> to be
757         included before <time.h> for localtime_r to be declared
758         properly.
759         * time/strftime.c: Likewise.
761 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
763         * db/Makefile: Add rule to generate shared object with the soname
764         from glibc 2.0.
766         * sysdeps/unix/opendir.c: Use O_DIRECTORY if available.  If not
767         available double check to verify it's a directory.
769         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add O_DIRECTORY.
770         * sysdeps/unix/sysv/linux/mips/bits/fcntl: Likewise.
771         * sysdeps/unix/sysv/linux/bits/fcntl.h: Remove O_* constants which
772         are not generally available.
773         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: New file.
775         * sysdeps/unix/sysv/linux/i386/setgroups.c: Add range check for values.
776         * sysdeps/unix/sysv/linux/arm/Makefile: New file.
777         * sysdeps/unix/sysv/linux/arm/setegid.c: New file.
778         * sysdeps/unix/sysv/linux/arm/seteuid.c: New file.
779         * sysdeps/unix/sysv/linux/arm/setfsgid.c: New file.
780         * sysdeps/unix/sysv/linux/arm/setfsuid.c: New file.
781         * sysdeps/unix/sysv/linux/arm/setgid.c: New file.
782         * sysdeps/unix/sysv/linux/arm/setgroups.c: New file.
783         * sysdeps/unix/sysv/linux/arm/setresgid.c: New file.
784         * sysdeps/unix/sysv/linux/arm/setresuid.c: New file.
785         * sysdeps/unix/sysv/linux/arm/setuid.c: New file.
786         * sysdeps/unix/sysv/linux/i386/setegid.c: New file.
787         * sysdeps/unix/sysv/linux/i386/seteuid.c: New file.
788         * sysdeps/unix/sysv/linux/i386/setfsgid.c: New file.
789         * sysdeps/unix/sysv/linux/i386/setfsuid.c: New file.
790         * sysdeps/unix/sysv/linux/i386/setgid.c: New file.
791         * sysdeps/unix/sysv/linux/i386/setgroups.c: New file.
792         * sysdeps/unix/sysv/linux/i386/setresgid.c: New file.
793         * sysdeps/unix/sysv/linux/i386/setresuid.c: New file.
794         * sysdeps/unix/sysv/linux/i386/setuid.c: New file.
795         * sysdeps/unix/sysv/linux/m68k/setegid.c: New file.
796         * sysdeps/unix/sysv/linux/m68k/seteuid.c: New file.
797         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: New file.
798         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: New file.
799         * sysdeps/unix/sysv/linux/m68k/setgid.c: New file.
800         * sysdeps/unix/sysv/linux/m68k/setgroups.c: New file.
801         * sysdeps/unix/sysv/linux/m68k/setresgid.c: New file.
802         * sysdeps/unix/sysv/linux/m68k/setresuid.c: New file.
803         * sysdeps/unix/sysv/linux/m68k/setuid.c: New file.
804         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: New file.
805         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: New file.
806         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: New file.
807         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: New file.
808         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: New file.
809         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: New file.
810         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
811         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
812         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: New file.
814         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add s_setgid, s_setresuid,
815         s_setresgid, and s_setuid.
816         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
817         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
818         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
819         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
820         (sysdep_routines): Add setfsgid, setfsuid, setresgid, and setresuid.
821         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
822         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
824 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
826         * time/mktime.c: Define _POSIX_THREAD_SAFE_FUNCTIONS to get
827         localtime_t declaration on some systems.
829 1998-10-16 10:07  Ulrich Drepper  <drepper@cygnus.com>
831         * iconv/Makefile [! elf]: Define CFLAGS-gconv_simple.c to
832         -DSTATIC_GCONV.
833         * iconv/skeleton.c: Include ELF header only of STATIC_GCONV is not
834         defined.  Avoid using DL_CLL_FCT if it is not defined.
836 1998-10-16 10:40 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
838         * resolv/arpa/nameser.h: Include sys/types.h unconditionally.
839         Include endian.h unconditionally.  Remove portability goop
840         depending on #ifdef linux, #ifdef BSD, #ifdef machine-type.
842 1998-10-16 11:39 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
844         * sunrpc/rpc/types.h: Mark file so fixincludes won't modify it.
846 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
848         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Remove __kernel_termios
849         again.  Use char[44] to define size of the struct.
851         * sysdeps/unix/sysv/linux/arm/Dist: Add bits/armsigctx.h.
853 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
855         * string/bits/string2.h (strcmp): Don't cache the result of
856         __builtin_constant_p in variables, otherwise constant folding
857         can fail in big functions.
859 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
861         * string/bits/string2.h: Add prototypes for the new inline
862         functions.
864 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
866         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Include termios.h to
867         have all types defined.
868         Patch by Matti Aarnio <matti.aarnio@sonera.fi>.
870 1998-10-08  Paul Eggert  <eggert@twinsun.com>
872         * time/mktime.c (my_mktime_localtime_r): Renamed from localtime_r.
873         Define also if HAVE_LOCALTIME_R && defined localtime_r, with
874         a body that merely expands localtime_r; this works around a
875         bug in Digital Unix 4.0A and 4.0D.
877 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
879         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_ioctl.
880         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: New file. Define
881         __ioctl to __syscall_ioctl and include Linux version of this file.
882         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
883         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: New file.  Redirect
884         ioctl calls which handle struct termios.
885         Based on a patch by Dan Jacobowitz <drow@false.org>.
887 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
889         * version.h (VERSION): Bump to 2.0.98.
891         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Define __kernel_termios
892         here instead of including kernel_termios.h.
894 1998-10-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
896         * sysdeps/unix/opendir.c (__opendir): Remove label lose2 which is
897         unnecessary after the changes of 1998-10-12.
899 1998-10-13  Ulrich Drepper  <drepper@cygnus.com>
901         * sysdeps/unix/sysv/linux/alpha/ioperm.c (inline_outb): Fix output
902         parameter format string.
903         (inline_outw): Likewise.
905         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include
906         string.h to get memcpy prototype and NULL definition.
908 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
910         * misc/sys/cdefs.h (__THROW): New macro.
911         * argp/argp.h: Use it to replace the kludgey __P in inline
912         function definitions.
913         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
914         * stdlib/stdlib.h: Likewise.
915         * wcsmbs/wchar.h: Likewise.
916         * libio/stdio.h: Likewise.
917         * stdio/stdio.h: Likewise.
918         * sysdeps/wordsize-64/inttypes.h: Likewise.
919         * sysdeps/wordsize-32/inttypes.h: Likewise.
920         * string/argz.h: Likewise.
921         * io/sys/stat.h: Likewise.
923 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
925         * Rules (stdio_lim): New variable.
926         ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend
927         on Rules and config.make, use $(move-if-change) to avoid unnessary
928         recompilations, and cleanup command.
929         (common-generated): Add bits/stdio_lim.st.
931 1998-10-12  Ulrich Drepper  <drepper@cygnus.com>
933         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-ioperm.c): New
934         variable to prevent warnings from use of modern CPU instructions.
935         Patch by Richard Henderson <rth@cygnus.com>.
937         * sysdeps/unix/opendir.c: Test whether NAME is directory before
938         opening it.
940 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
942         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Add missing
943         semicolon so that profiling works.
945 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
947         * sysdeps/generic/glob.c: #undef mempcpy before #define.
949         * sysdeps/unix/bsd/clock.c: Use prototype defns.
951 1998-10-11  Ulrich Drepper  <drepper@cygnus.com>
953         * Rules [posix in sysdirs]: Set L_tmpnam to 20.
954         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
956         * string/bits/string2.h [!_STRING_ARCH_unaligned]
957         (__mempcpy_small): Add parameter for 1 byte copy and use it.
958         Reported by Geoff Keating <geoffk@ozemail.com.au>.
960 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
962         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
963         it is already defined in <bits/environments.h>.
965 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
967         * posix/ptestcases.h: Fix typo.
969 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
971         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
972         (regexec): Allocate regs.start and regs.end as one block.
974 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
976         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
977         enum decl.
979 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
981         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
982         sigcontext union to ...
983         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
984         file.
985         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
986         version 2.0 kernels.
988 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
990         * malloc/mtrace.c (tr_reallochook): Produce better output for real
991         reallocation case.
993         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
994         * argp/argp-xinl.c: Likewise.
996         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
997         Ruffian entry back.
998         Patch by Christian Gafton.
1000 1998-10-08  Paul Eggert  <eggert@twinsun.com>
1002         * time/mktime.c (__mktime_internal): When the requested time falls
1003         in a spring-forward gap of size DT, return a time that is DT away
1004         from the requested time, preferring a time whose tm_isdst differs
1005         from the requested value.  Bump the max number of probes from 4 to
1006         6 to account for the extra probes needed to discover a
1007         spring-forward gap in the worst case.
1009 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
1011         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
1012         of the weird alpha architectures.
1013         Patch by Cristian Gafton <gafton@redhat.com>.
1015 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
1017         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
1018         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
1020 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
1022         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
1023         (dl_open_worker): Use realloc, not malloc to resize array.
1024         * elf/rtld.c (_dl_initial_searchlist): New variable.
1025         (_dl_main): Copy content of _dl_main_searchlist to
1026         _dl_initial_searchlist.
1027         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
1028         _dl_global_scope_alloc.
1029         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
1030         * elf/dl-close.c (_dl_close): When removing object with global
1031         scope remove allocated searchlist if no dynamically loaded object
1032         is on it anymore.
1033         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
1034         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
1036         * malloc/mtrace.c (tr_where): Don't print space in location string,
1037         print it afterwards.  Print better symbol name information.
1039 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1041         * manual/filesys.texi (Setting Permissions): Fix example for
1042         reading umask.
1044 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1046         * elf/sprof.c (load_profdata): Fix typo in error message.
1048 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1050         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
1051         flag.
1053 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
1055         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
1057 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
1059         * version.h (VERSION): Bump to 2.0.97.
1061 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1063         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
1064         in definitions of inline stat functions so that they match the
1065         declaration.
1066         * stdlib/stdlib.h: Likewise.
1067         * wcsmbs/wchar.h: Likewise.
1068         * libio/stdio.h: Likewise.
1069         * stdio/stdio.h: Likewise.
1070         * sysdeps/wordsize-64/inttypes.h: Likewise.
1071         * sysdeps/wordsize-32/inttypes.h: Likewise.
1072         * string/argz.h: Likewise.
1073         * argp/argp.h: Likewise.
1075 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
1077         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
1078         netinet/in.h.
1080 1998-10-05  Philip Blundell  <philb@gnu.org>
1082         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
1083         and constants.  Tidy up formatting a little.
1085         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
1086         Move definitions to in.h.
1088 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1090         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
1091         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
1092         Remove inclusion of <linux/swap.h>.
1094 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
1096         * io/sys/stat.h: Use __P in definitions of inline stat functions
1097         so that they match the declaration.
1099 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1101         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
1103 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1105         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
1106         linux 2.1 version.
1108 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
1110         * sysdeps/arm/dl-machine.h: Fix typo in last change.
1112         * sysdeps/arm/bits/huge_val.h: New file.
1114 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1116         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
1118         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
1119         define.
1121 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
1123         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
1124         store result of realloc instead of using BUF.
1126 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1128         * misc/sgtty.h (_SGTTY_H): Correct spelling.
1129         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
1131 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1133         * manual/memory.texi (Obstacks): Document
1134         obstack_alloc_failed_handler usage.
1136         * malloc/obstack.h: Enhance comment about
1137         obstack_alloc_failed_handler usage.
1138         * malloc/obstack.c: Likewise.
1140 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
1142         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
1143         gcc before 2.8 is used.
1145 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
1147         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
1148         from Scott Bambrough.
1150         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
1152         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
1153         include the lock member.
1155 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
1157         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
1159 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
1161         * timezone/zic.c: Update from tzcode1998h.
1162         * timezone/europe: Update from tzdata1998i.
1163         * timezone/southamerica: Likewise.
1165         * sys/types.h: Protect use of long long by __extension__.
1166         * stdlib/stdlib.h: Likewise.
1167         * string/string.h: Likewise.
1168         * sysdeps/i386/bits/byteswap.h: Likewise.
1169         * sysdeps/geeric/bits/byteswap.h: Likewise.
1170         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1171         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1172         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
1173         * sysdeps/wordsize-32/inttypes.h: Likewise.
1174         * sysdeps/wordsize-32/stdint.h: Likewise.
1175         * wcsmbs/wchar.h: Likewise.
1177 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1179         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
1180         expression.
1181         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
1182         __strsep): Greatly reduce size of expansion by combining common
1183         expressions.
1184         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
1185         inline function.
1186         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
1187         by the above definitions.
1189 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
1191         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
1192         correct struct ipc_perm definition.
1194 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1196         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
1198 1998-09-29  Cristian Gafton  <gafton@redhat.com>
1200         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
1201         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
1202         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
1203         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
1204         Add net/if_shaper.h.
1206 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
1208         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
1210         * nis/ypclnt.c: Remove not needed close calls.
1212 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
1214         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
1215         check a bit.  Also close socket of domain client.  Close socket
1216         in IPPORT_RESERVED error case.
1218 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
1220         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
1221         CMSG_ALIGN (fixes a bug) and correct test for availability of
1222         another entry.
1223         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
1224         Linux version.
1225         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
1226         availability of another entry.
1227         Patch by ak@muc.de.
1229         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
1230         Patch by ak@muc.de.
1232         * libio/libio.h [!__STDC__]: Define const only if not defined.
1234 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1236         * posix/annexc.c (xsystem): New function.  Use it instead of
1237         system.
1239 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
1241         * stdlib/longlong.h: Remove #endif for #if removed in last change.
1243 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
1245         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
1246         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
1247         allow using `ut' parameter.
1248         [!emacs]: Define ut_argument, ut_argument_spec, and
1249         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
1250         argument_spec to prototypes and definitions.
1251         (my_strftime): Don't call tzset of ut != 0.
1252         Compute diff as 0 is ut != 0;
1253         [emacs]: Define new emacs_strftime function.
1254         Based on a patch by Paul Eggert.
1256 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1258         * time/strftime.c (my_strftime): When asking for the length of the
1259         subformatted buffer, do not limit the length to look for;
1260         otherwise, we have no reliable way to distinguish between the
1261         empty buffer and an error.
1263 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
1265         * math/Makefile (gmp-objs): Add mp_clz_tab.
1267 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
1269         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
1270         set them.
1271         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
1272         cpus lacking hardware multiply and divide.
1274 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1276         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
1277         $(<F), not $(^F).
1279 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1281         * db/btree/bt_delete.c: Fix -Wparentheses warning.
1283 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1285         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
1286         $(do-install).
1288 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
1290         * debug/catchsegv.sh: Also produce output if clone process died.
1292 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1294         * time/strftime.c (f_wkday): Remove duplicate definition.
1295         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
1296         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
1297         1998-09-11 fix to this case.
1298         (wkday_len, month_len): Remove these macros; they're no longer needed.
1300 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1302         * time/strftime.c (my_strftime): Don't store past the end of a
1303         zero-sized buffer.
1305 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1307         * time/strftime.c (underlying_strftime):
1308         Set the buffer to a nonzero value before calling
1309         strftime, and check to see whether strftime has set the buffer to zero.
1310         This lets us distinguish between an empty buffer and an error.
1312 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
1314         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
1315         This fix is propagated from tzcode1998g.tar.gz.
1317 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
1319         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
1320         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
1321         sys_siglist.  This is handled correctly by the weak_alias macro.
1323 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
1325         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
1326         of mempcpy.  Reported by Andreas Jaeger.
1328         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
1329         pollute the namespace since the compiler will resolve it inline.
1330         Reported by Florian La Roche <florian@suse.de>.
1332 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
1334         * timezone/private.h: Update from tzcode1998g.
1336         * timezone/africa: Update from tzdata1998h.
1337         * timezone/asia: Likewise.
1338         * timezone/australasia: Likewise.
1339         * timezone/europe: Likewise.
1340         * timezone/northamerica: Likewise.
1341         * timezone/southamerica: Likewise.
1342         * timezone/zone.tab: Likewise.
1344 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1346         * misc/sys/mman.h: New file.
1348         * sysdeps/generic/bits/mman.h: New file.
1349         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
1350         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
1351         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
1352         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
1354         * sysdeps/generic/sys/mman.h: Removed.
1355         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
1356         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
1357         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
1358         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
1359         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
1361         * include/sys/mman.h: Look directly for misc/sys/mman.h.
1362         * misc/Makefile (headers): Add bits/mman.h.
1363         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
1364         bits/mman.h.
1366         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
1367         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
1368         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
1369         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
1370         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
1371         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1372         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
1373         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1375 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1377         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
1378         * sysdeps/mach/alpha/thread_state.h: Likewise.
1379         * sysdeps/mach/i386/sysdep.h: Likewise.
1380         * sysdeps/mach/i386/thread_state.h: Likewise.
1381         * sysdeps/mach/mips/sysdep.h: Likewise.
1382         * sysdeps/mach/mips/thread_state.h: Likewise.
1383         * sysdeps/posix/profil.c: Likewise.
1384         * sysdeps/i386/i586/memcopy.h: Likewise.
1385         * sysdeps/mach/pagecopy.h: Likewise.
1387 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
1389         * libio/stdio.h: Define __need_getopt and include getopt.h to define
1390         getopt stuff.
1391         * posix/unistd.h: Likewise.
1392         * stdio/stdio.h: Likewise.
1393         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
1394         define only getopt and the variables.
1396 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1398         * scripts/test-installation.pl (installation_problem): Don't link
1399         the test program against libdb1.
1401 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
1403         * Makeconfig (all-subdirs): Add db.
1404         * Versions.def: Add definition for libdb1.
1405         * shlib-versions: Add definitions for libdb1.
1406         * db/Makefile (extra-libs): Replace by libdb1.
1407         (libdb-routines): Rename to libdb1-routines.
1408         (headers): Rename to db1-headers.
1409         (distribute): Add $(db1-headers).
1410         (install-others): Define to install symlink libdb.so.NN and the
1411         $(db1-headers).
1412         (CPPFLAGS): Add -DUSE_LIBDB1
1413         Remove rules to build makedb.
1414         * db/Versions: Rename libdb to libdb1.
1415         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
1416         * db/makedb.c: Removed.
1418         * scripts/versions.awk: Recognize digits in library names.
1420         * db/btree/bt_open.c: Fix compiler warnings.
1421         * db/btree/bt_put.c: Likewise.
1422         * db/btree/bt_split.c: Likewise.
1423         * db/hash/hash.c: Likewise.
1424         * db/hash/hash_bigkey.c: Likewise.
1425         * db/recno/rec_close.c: Likewise.
1427         * Makefile: Add localedata/% goal.
1429 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1431         * posix/execvp.c: Don't give up searching the PATH if execve
1432         returns ENOTDIR.
1434 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
1436         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
1437         if _dl_fpu_control_set is set.
1438         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
1439         * elf/rtld.c: Don't define _dl_fpu_control_set.
1440         * elf/Versions: Remove _dl_fpu_control_set.
1442 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
1444         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
1445         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1446         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
1447         Correct values of other SA_* macros according to kernel headers.
1449 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1451         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
1452         variable l.
1453         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
1454         old.
1456 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1458         * elf/ldsodefs.h: Fix typo in comment.
1460 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1462         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
1463         char when comparing buffer contents with putback character.
1465 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1467         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
1468         Undo last change.
1469         * elf/Versions: Undo last change.  Export _dl_fpu_control and
1470         _dl_fpu_control_set.
1471         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
1472         variables.  Include <fpu_control.h>.
1473         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
1474         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
1475         to indicate that is was seen.
1476         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
1477         only if _dl_fpu_control was set and is equal to desired value.
1478         * math/Makefile (aux): Undo last change.
1479         * math/Versions: Export __fpu_control with version GLIBC_2.0.
1481 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1483         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
1484         optimized.
1486 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
1488         * string/bits/string2.h: Add mempcpy optimization.
1489         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
1490         * intl/localealias.c: Define mempcpy only if not already defined.
1492         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
1493         defined.
1495 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1497         * csu/abi-note.S: Emit the note directly instead of defining
1498         a preprocessor macro that's only used once.  Don't include sysdep.h.
1499         * abi-tags: Generalize Solaris entry.
1501 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1503         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
1504         Change to array to avoid runtime relocation.
1505         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
1507 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1509         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
1510         * math/Makefile ($(objpfx)libieee.a): Likewise.
1512 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
1514         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
1515         Patch by John Tobey <jtobey@banta-im.com>.
1517 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
1519         * login/Makefile (distribute): Remove pty-internal.h, add
1520         pty-private.h.
1522         * stdlib/tst-strtol.c: Add more checks.
1523         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
1525 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
1527         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
1528         * elf/elf.h: Add AT_FPUCW.
1529         * elf/Makefile (dl-routines): Add fpu_control.
1530         (elide-routines.os): Add fpu_control.
1531         (rtld-routines): Add fpu_control.
1532         * math/Makefile (aux): Remove fpu_control.
1533         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
1534         (_dl_show_auxv): Likewise.
1535         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
1536         if different from OS default.
1538         * stdio-common/tstscanf.c: Add test case for (nil).
1540 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
1542         * libio/fileops.c (_IO_new_file_underflow): Before allocating
1543         buffer make sure the pushback buffer is destroyed.
1544         (_IO_new_file_seekoff): Likewise.
1545         If mode==0 quit early with the result.
1546         Clear OEF flag after successful fseek.
1547         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
1548         * libio/ftello.c (ftello): Add offset from original buffer if
1549         stream has pushed back characters.
1550         * libio/ftello64.c (ftello64): Likewise.
1551         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
1552         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
1553         * libio/ioftell.c (_IO_ftell): Likewise.
1554         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
1555         and _IO_save_ptr.
1556         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
1557         (_IO_default_pbackfail): Only stored push back character in original
1558         buffer if it is the same as the one in the file at this position.
1559         * libio/iofclose.c: Free backup buffer if one is available.
1560         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
1561         mode!=0.
1563         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
1565         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
1567         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
1569 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
1571         * login/programs/pt_chown.c (more_help): Correct message that
1572         describes the purpose of the program.
1574         * login/openpty.c: Do not include pty-private.h.
1575         (pts_name): New function.  Return name of slave pseudo terminal in
1576         an allocated buffer if necessary.
1577         (openpty): Use pts_name to get name of the slave end of the pseudo
1578         terminal pair.
1580         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
1581         pts_name before return.
1583 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
1585         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
1587 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1589         * login/openpty.c: Include pty-private.h instead of
1590         pty-internal.h.
1592 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
1594         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
1596 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
1598         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
1599         recent ld.so changes.
1600         (elf_machine_runtime_setup): Correct behaviour when profiling.
1602 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
1604         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
1605         Patch by John Tobey <jtobey@banta-im.com>.
1607 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
1609         * login/pty-internal.h: Removed.  Moved constants related to the
1610         `grantpt' helper program protocol to ...
1611         * login/pty-private.h: ... here.  New file.
1612         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
1613         to make the function work with kernels >= 2.1.115.
1614         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
1615         version if using the cloning device fails.
1616         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1617         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
1618         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
1619         use by Linux specific code.
1620         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
1621         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
1622         function.  (grantpt): Use pts_name, check group and permission
1623         mode in addition to owner.  Try to set the owner, group and
1624         permission mode first without invoking the helper program.
1625         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
1626         internationalization support.  Use symbolic constants instead of
1627         hardwired numbers for permission mode.
1628         * sysdeps/unix/bsd/ptsname.c: New file.
1630 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
1632         * posix/wordexp-test.c: Undo last change.
1634         * posix/wordexp.c: Undo last change.
1636 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
1638         * nscd/grpcache.c (save_grp): Partly undo last change.
1640         * nscd/pwdcache.c (save_pwd): Undo last change.
1642 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1644         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
1645         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
1647 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
1649         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
1650         Add profiling support.
1651         (TRAMPOLINE_TEMPLATE): New macro.
1652         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
1653         (RTLD_START): Prettify, and set __libc_stack_end properly.
1654         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
1655         and check for sym being NULL instead.
1656         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
1657         of stack space.
1658         * sysdeps/sparc/sparc64/lshift.S: Likewise.
1659         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
1660         * sysdeps/sparc/sparc64/rshift.S: Likewise.
1661         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
1662         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
1663         MEDANY code model %g4 usage.
1664         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
1665         MEDANY code model %g4 usage.
1666         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
1667         code model address formation.
1668         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
1669         include elf/ldsodefs.h
1670         (DT_SPARC): Remove.
1671         (elf_machine_matches_host): It is now EM_SPARCV9.
1672         (elf_machine_dynamic): Clean up to remove ugly cast.
1673         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
1674         new PLT formats.
1675         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
1676         Prettify rest of function.
1677         [R_SPARC_COPY]: Check for sym being NULL.
1678         [R_SPARC_32]: Handle it.
1679         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
1680         MEDMID code model.
1681         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
1682         MEDANY code model.
1683         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
1684         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
1685         Add profiling support.
1686         (TRAMPOLINE_TEMPLATE): New macro.
1687         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
1688         (RTLD_START): Prettify and set __libc_stack_end.
1689         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
1690         Define.
1691         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
1692         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
1693         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
1694         unused variable scratch.
1695         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1696         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
1697         Declare.
1698         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
1699         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
1700         old format kernel sigaction structures.
1701         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
1702         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
1703         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
1704         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
1705         ucontext include.
1706         (_JMPBUF_UNWINDS): Define.
1707         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
1708         statfs64 structure, which is exactly the same as the normal one.
1709         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
1710         of stack.  Use correct syscall trap number.  Add branch prediction
1711         settings to branch instructions.  Remove old MEDANY code model %g4
1712         referneces for non-PIC.
1713         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
1714         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
1715         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
1716         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1717         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1718         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
1719         __libc_longjmp and __libc_siglongjmp strong aliases.
1720         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
1721         Also define to __no__readdir64_decl around readdir.c inclusion.
1722         (__readdir64): Add strong alias.
1723         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
1724         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
1725         Set strong and weak names properly.
1727 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1729         * manual/Makefile (AWK): Default to gawk if standalone.
1731 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1733         * Makefile (distribute): Undo last change.
1734         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
1735         for sysdep headers.
1736         (+subdir-headers): Removed, unused.
1738 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1740         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
1741         $(do-install).
1743 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1745         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
1746         absolute name in $(config-sysdirs), can never happen.
1747         ($(+sysdir_pfx)sysd-rules): Likewise.
1748         * Makeconfig (full-config-sysdirs): Likewise.
1749         (all-Subdirs-files): Prepend $(..).
1751         * configure.in: Don't check for absolute name in $add_ons_pfx, can
1752         not happen.  Let --enable-add-ons=yes work if no add-ons actually
1753         exist.
1755 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1757         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
1758         continuations in command.
1760 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1762         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
1764 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
1766         * posix/wordexp-test.c: If expansion or substitution occurs
1767         anywhere in a word, the entire word is subject to field-splitting.
1769         * posix/wordexp.c (parse_glob): Look for end of word instead of
1770         end of field when deciding what to glob.
1771         (field_split_word): New function, now the only place where
1772         field-splitting is performed.
1773         (parse_dollars): New parameter - tell the caller if
1774         field-splitting should be performed on this word.
1776         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
1777         succeeded (or failed with WRDE_NOSPACE).
1779 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
1781         * posix/wordexp.c (wordexp): Don't convert IFS characters to
1782         blanks.
1784         * posix/wordexp-test.c: Words not the result of expansion or
1785         substitution should remain unchanged.
1787 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
1789         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
1790         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
1792 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1794         * stdio-common/Makefile: Include Makeconfig so that
1795         $(inst_includedir) is defined.
1797 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1799         * io/pwd.c: Include <mcheck.h>.
1801 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
1803         * nscd/pwdcache.c (save_pwd): Correct copying.
1804         * nscd/grpcache.c (save_grp): Likewise.
1806 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
1808         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
1809         (free_pwd): Adjust for this change.
1810         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
1811         (free_grp): Adjust for this change.
1813 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
1815         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
1817 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
1819         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
1820         (install-others): Add bits/stdio_lim.h.
1821         Add rule to install bits/stdio_lim.h.
1823         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
1825         * Makefile (distribute): Add include/sys/mman.h.
1827         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
1828         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
1829         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
1831         * grp/initgroups.c: Include stdlib.h.
1832         Patch by Zack Weinberg.
1834 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
1836         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
1837         for field-splitting :abc: is correct, and that two fields should
1838         result. Revert tests to reflect this.
1840         * posix/wordexp.c (w_emptyword): Remove function.
1841         (exec_comm): Don't use w_emptyword.
1842         (parse_param): Likewise.
1844 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
1846         * sysdeps/arm/fpu/Dist: Moved to...
1847         * sysdeps/arm/Dist: ...here.
1848         * sysdeps/posix/Dist: Removed.
1849         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
1850         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
1852 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
1854         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
1856 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
1858         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
1860 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1862         * libc-work/nis/nss_nisplus/nisplus-service.c
1863         (_nss_nisplus_parse_servent): Convert port in network byte order.
1865 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1867         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
1868         to provide only malloc and calloc.
1869         * include/stdlib.h: Support the above.
1870         * string/bits/string2.h: Use __need_malloc_and_calloc when
1871         including stdlib.h.
1872         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
1874         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
1875         * iconvdata/iso646.c: Include <stdlib.h>.
1877 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1879         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
1880         * sysdeps/libm-ieee754/w_pow.c: Likewise.
1881         * sysdeps/libm-ieee754/w_powf.c: Likewise.
1882         * sysdeps/libm-ieee754/w_powl.c: Likewise.
1884 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1886         * stdio-common/stdio_lim.h.in: New file.  All parameters
1887         are adjustable at build time.
1888         * Rules: Add a rule to build bits/stdio_lim.h from
1889         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
1890         all subdirectories know how to make the file.  It can't be
1891         in Makerules because then it gets built at top level and the
1892         dependencies are wrong.)
1894         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
1895         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
1896         stdio_lim.h.
1897         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
1898         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
1899         * sysdeps/posix/Makefile: Removed.
1900         * sysdeps/posix/mk-stdiolim.c: Removed.
1901         * sysdeps/generic/bits/stdio_lim.h: Removed.
1903 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1905         * argp/argp-help.c: Fixup indentation.
1906         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
1907         * resolv/nss_dns/dns-network.c: Likewise.
1908         * resolv/res_send.c: Likewise.
1909         * rt/aio_cancel.c: Likewise.
1910         * rt/aio_misc.c: Likewise.
1912 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1914         * Makefile (install-symbolic-link): Remove the link list file at last.
1915         * Makerules (install-clean-symbolic-link-list): Removed.
1917 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1919         * timezone/tst-timezone.c: Print time in UTC to get consistent
1920         output.
1922 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1924         * elf/rtld.c (_dl_rpath): Removed.
1925         * elf/dl-support.c (_dl_path): Removed.
1926         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
1927         (CFLAGS-dl-support.c): Removed.
1929         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
1930         uses changed.
1931         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
1932         instead of appending it to the main map's rpath info.
1933         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
1934         DT_RPATHs.  This makes it effective again.
1935         (decompose_rpath): Remove second parameter, callers changed.
1936         (fillin_rpath): Allocate enough space in curwd.
1937         (expand_dynamic_string_token): Cope with get_origin returning -1.
1939 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1941         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
1942         passwd.adjunct.
1944         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
1945         invalid password.
1947 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
1949         * locale/programs/locale.c: Update dates.
1951 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
1953         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
1954         size_t is defined.  Some reordering of definitions to make
1955         maintaining this file in parallel with the linux-specific file easier.
1957 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
1959         * io/pwd.c (main): Add call to mtrace.
1961         * malloc/mtrace.pl: Quote @ in string.
1963 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
1965         * posix/wordexp.c (parse_arith): Fix memory leaks.
1966         (exec_comm): Likewise.
1967         (parse_param): Likewise.
1968         (wordexp): Likewise.
1969         (exec_comm): Reduce number of function return points.
1970         (parse_param): Likewise.
1971         (wordexp): Likewise.
1973 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
1975         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
1976         yield three fields, not two.  Test both parameter expansion and
1977         command substitution for correct field-splitting behaviour.
1979         * posix/wordexp.c (w_emptyword): New function.
1980         (parse_param): Use it.
1981         (exec_comm): Likewise, for consistency with the way parse_param
1982         splits fields.
1983         (parse_param): Fix some memory leaks.
1985 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
1987         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
1988         Don't mark asm `volatile'.
1989         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
1990         from the data cache too.  Assume it isn't in the instruction cache yet.
1991         (__elf_machine_fixup_plt): Clear the modified address from the caches.
1993 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
1995         * sysdeps/generic/segfault.c (install_handler): Install signal
1996         handler with SA_ONSTACK instead of setting the stack flags to
1997         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
1998         defined.
2000 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2002         * signal/signal.h: Fix multiple inclusion guard to cover the
2003         entire file.
2004         * wcsmbs/wchar.h: Remove prototype of internal function
2005         __mbsrtowcs.
2006         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
2007         arithmetic on `void *'.
2009 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
2011         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
2013         * posix/wordexp.c (wordexp): Perform word-splitting instead of
2014         field-splitting here.
2015         (wordexp): If out of memory mid-word, free the word (but still
2016         leave pwordexp alone for caller to see).
2017         (parse_param): Allow for zero-length fields (smarter checking of
2018         memory allocation failure).
2019         (w_addword): Convert NULL words to "".
2020         (wordexp): Convert left-over IFS characters to blanks (like bash).
2022 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
2024         * configure.in: Use test -f instead of test -e.
2025         Patch by John Tobey <jtobey@banta-im.com>.
2027         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
2028         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
2029         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
2030         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
2031         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
2032         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
2033         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
2034         Patches by John Tobey <jtobey@banta-im.com>.
2036         * time/strftime.c (my_strftime): Delay use of *tp values until
2037         latest possible point to allow partly initialized structures
2038         (e.g., from strptime).
2040         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
2041         and NATS-SEFI.
2042         Define *-routines variables for new modules.
2043         (distribute): Add .c files for new modules.
2044         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
2045         and nats-sefi.h.
2046         Add rules for header generation.
2047         * iconvdata/gconv-modules: Add entries for new modules.
2048         * iconvdata/iso_10367-box.c: New file.
2049         * iconvdata/mac-is.c: New file.
2050         * iconvdata/nats-dano.c: New file.
2051         * iconvdata/nats-sefi.c: New file.
2053 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
2055         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
2056         loader if PIC is not defined.
2058 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
2060         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
2061         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
2062         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
2063         and ISO_5428.
2064         Define *-routines variables for new modules.
2065         (distribute): Add .c files for new modules.
2066         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
2067         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
2068         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
2069         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
2070         Add rules for header generation.
2071         * iconvdata/gconv-modules: Add entries for new modules.
2072         * iconvdata/csn_369103.c: New file.
2073         * iconvdata/cwi.c: New file.
2074         * iconvdata/dec-mcs.c: New file.
2075         * iconvdata/ecma-cyrillic.c: New file.
2076         * iconvdata/gost_19768-74.c: New file.
2077         * iconvdata/greek-ccitt.c: New file.
2078         * iconvdata/greek7-old.c: New file.
2079         * iconvdata/greek7.c: New file.
2080         * iconvdata/inis-8.c: New file.
2081         * iconvdata/inis-cyrillic.c: New file.
2082         * iconvdata/inis.c: New file.
2083         * iconvdata/iso6937-2.c: New file.
2084         * iconvdata/iso_2033.c: New file.
2085         * iconvdata/iso_5427-ext.c: New file.
2086         * iconvdata/iso_5427.c: New file.
2087         * iconvdata/iso_5428.c: New file.
2089         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
2090         entries.
2091         Convert U02dd correctly.
2093 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
2095         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
2096         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
2097         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
2098         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
2100 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
2102         * resolv/res_init.c (res_init): Handle resolv.conf file with only
2103         one nameserver correctly.  Patch by HJ Lu.
2105         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
2106         and ANSI_X3.110.
2107         Define *-routines variables for new modules.
2108         (distribute): Add .c files for new modules.
2109         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
2110         Add rules for hedaer generation.
2111         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
2112         * iconvdata/ansi_x3.110.c: New file.
2113         * iconvdata/asmo_449.c: New file.
2114         * iconvdata/baltic.c: New file.
2115         * iconvdata/iec_p27-1.c: New file.
2117         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
2118         entries.
2119         Convert U02dc correctly.
2121         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
2122         * math/atest-exp2.c: Likewise.
2123         * math/atest-sincos.c: Likewise.
2125         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
2126         is defined.
2128 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2130         * string/strcoll.c: Optimize a few expressions.
2131         * string/strxfrm.c: Likewise.
2133 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2135         * manual/locale.texi: Fix typos.
2137 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
2139         * stdlib/random_r.c (__setstate_r): Allow call with same state
2140         array as currently used (PR libc/774).
2142         * include/limits.h: Include gcc's header even if this file is
2143         found more than once before it (PR libc/778)
2145         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
2146         (sysdep_headers): Remove sys/debugreg.h.
2147         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
2148         (sysdep_headers): Add sys/debugreg.h.
2149         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
2150         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
2152         * stdio-common/tmpnam.c: Move local static variable buf to
2153         toplevel and rename to tmpnam_buffer to ease debugging.
2154         Patch by Joe Keane <jgk@jgk.org>.
2155         Optimize s == NULL case a bit.
2157         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
2158         correction.
2160 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
2162         * resolv/res_init.c (res_init): Initialize _res.nscount and
2163         _res.nsaddr.sin_port differently for the can when no loopback
2164         is available to allow immediate timeout in non-networking environments.
2165         Patch by Cristian Gafton <gafton@redhat.com>.
2167 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2169         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
2170         BAR and not EM DASH.
2171         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
2172         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
2173         Fixes PR libc/717.
2175 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
2177         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
2178         for test.
2179         * timezone/tst-timezone.c (tests): Fix typo in last patch.
2181         * time/tzfile.c (__tzfile_read): Handle case when there are no
2182         transitions.  Set __timezone based on computed offset.
2183         * time/tzset.c (tzset_internal): Set __timezone before returning.
2185         * time/tzset.c (tzset_internal): Optimize handling of local string
2186         copy.
2188 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2190         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
2191         libc/776).
2193 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
2195         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
2196         (csqrt_test): Likewise.
2197         * sysdeps/powerpc/bits/fenv.h: Add parens.
2199 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
2201         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
2202         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
2203         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
2205 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
2207         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
2208         the special `-1' pointer.
2210 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
2212         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
2213         inline.
2215 1998-09-07  Paul Eggert  <eggert@twinsun.com>
2217         * time/mktime.c (__EXTENSIONS__): Define if not defined.
2218         (_REENTRANT): Remove.  It has undesirable consequences in
2219         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
2220         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
2221         is what we want.
2222         * time/strftime.c: Likewise.
2224 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2226         * elf/dl-error.c: Fix spelling.
2228 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2230         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
2231         * stdio-common/_itoa.c: Likewise.
2232         * stdio-common/printf_fp.c: Likewise.
2233         * stdio-common/vfscanf.c: Likewise.
2234         * wcsmbs/wcstok.c: Likewise.
2235         * sysdeps/generic/glob.c: Likewise.
2236         * posix/getopt.c: Likewise.
2237         * sysdeps/posix/getaddrinfo.c: Likewise.
2238         * posix/wordexp.c: Likewise.
2239         * io/ftw.c: Likewise.
2240         * io/fts.c: Likewise.
2241         * misc/getpass.c: Likewise.
2242         * iconv/gconv_conf.c: Likewise.
2243         * argp/argp-fmtstream.c: Likewise.
2244         * argp/argp-help.c: Likewise.
2245         * elf/dl-load.c: Likewise.
2246         * locale/programs/stringtrans.c: Likewise.
2247         * catgets/gencat.c: Likewise.
2248         * posix/getconf.c: Likewise.
2249         * iconv/gconv_conf.c: Likewise.
2250         * iconv/iconv_prog.c: Likewise.
2252         * string/strcoll.c: Optimize a few expressions.
2253         * string/strxfrm.c: Likewise.
2255 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2257         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
2258         level to avoid uninit variable warning.
2260 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2262         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
2263         instead of _dl_default_scope[2] as argument to _dl_init_next.
2265         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
2266         C9x macro.
2268 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
2270         Fix compatibility problems introduced in last change.
2271         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
2272         defined.
2273         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
2274         -DWEAK_GMON_START to CFLAGS-initfini.s.
2276         * elf/dl-object.c (_dl_new_object): Store map address in
2277         _dl_loaded if _dl_loaded is NULL.
2278         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
2280         * sysdeps/generic/setrlimit64.c: Remove stub warning.
2282 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
2284         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
2285         quiet.
2286         * db2/btree/bt_cursor.c: Likewise.
2287         * db2/common/db_region.db_c: Likewise.
2288         * db2/common/db_salloc.db_c: Likewise.
2289         * db2/db/db.c: Likewise.
2290         * db2/db/db_rec.c: Likewise.
2291         * db2/hash/hash.c: Likewise.
2292         * db2/hash/hash_page.c: Likewise.
2293         * db2/hash/hash_rec.c: Likewise.
2294         * db2/log/log_findckp.c: Likewise.
2295         * db2/log/log_get.c: Likewise.
2296         * db2/log/log_put.c: Likewise.
2297         * db2/mp/mp_fget.c: Likewise.
2298         * db2/mp/mp_fput.c: Likewise.
2299         * db2/mp/mp_region.c: Likewise.
2300         * stdlib/strtol.c: Likewise.
2301         * string/strcoll.c: Likewise.
2302         * string/strxfrm.c: Likewise.
2303         * argp/argp-help.c: Likewise.
2304         * argp/argp-parse.c: Likewise.
2305         * resolv/res_debug.c: Likewise.
2307 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
2309         * math/tgmath.h (scalb): Only define for __USE_MISC or
2310         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
2312 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2314         * libio/stdio.h: Fix comment.
2316         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
2317         __USE_ISOC9X.
2319 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2321         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
2323         * elf/dl-open.c: Quiet -Wparentheses warnings.
2324         * iconvdata/johab.c: Likewise.
2325         * iconvdata/uhc.c: Likewise.
2326         * inet/inet_net.c: Likewise.
2327         * io/fts.c: Likewise.
2328         * locale/newlocale.c: Likewise.
2329         * misc/getttyent.c: Likewise.
2330         * misc/mntent_r.c: Likewise.
2331         * misc/ttyslot.c: Likewise.
2332         * nscd/nscd_conf.c: Likewise.
2333         * nss/nsswitch.c: Likewise.
2334         * resolv/gethnamaddr.c: Likewise.
2335         * resolv/nsap_addr.c: Likewise.
2336         * resolv/res_debug.c: Likewise.
2337         * stdio-common/_itoa.c: Likewise.
2338         * stdlib/strtod.c: Likewise.
2339         * string/strverscmp.c: Likewise.
2340         * sunrpc/svc.c: Likewise.
2341         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
2342         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
2343         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
2344         * sysdeps/posix/getaddrinfo.c: Likewise.
2346 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
2348         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
2349         for use of global scope.
2350         * elf/dlvsym.c (dlvsym_doit): Likewise.
2352 1998-09-02  Paul Eggert  <eggert@twinsun.com>
2354         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
2355         copy the redundant bytes at the end of the format as-is; don't
2356         just copy their first byte and then rescan, as that might get
2357         us an encoding error.
2358         Account correctly for the length of multibyte sequences in the
2359         format.
2361 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
2363         * posix/wordexp-test.c: Add tests for different IFS values.
2364         Change unquoted-newline test so that newline is not in IFS.
2366         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
2367         determining IFS characters.  Return WRDE_BADCHAR for unquoted
2368         special characters _except_ if they are separators.
2370 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
2372         * include/tgmath.h: New file.
2374         * libio/stdio.h: Correct reversed #ifs.
2375         Patch by Zack Weinberg.
2377         * manual/creature.texi: Better explain reason for feature select
2378         macros.
2379         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
2381 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2383         * include/alloca.h: Add multiple-inclusion guard.
2384         * include/db.h: Likewise.
2385         * include/db_185.h: Likewise.
2386         * include/dlfcn.h: Likewise.
2387         * include/fcntl.h: Likewise.
2388         * include/grp.h: Likewise.
2389         * include/libintl.h: Likewise.
2390         * include/mntent.h: Likewise.
2391         * include/pwd.h: Likewise.
2392         * include/sched.h: Likewise.
2393         * include/search.h: Likewise.
2394         * include/setjmp.h: Likewise.
2395         * include/shadow.h: Likewise.
2396         * include/signal.h: Likewise.
2397         * include/stdio.h: Likewise.
2398         * include/stdlib.h: Likewise.
2399         * include/string.h: Likewise.
2400         * include/termios.h: Likewise.
2401         * include/time.h: Likewise.
2402         * include/ulimit.h: Likewise.
2403         * include/utmp.h: Likewise.
2404         * include/wchar.h: Likewise.
2405         * include/sys/file.h: Likewise.
2406         * include/sys/gmon.h: Likewise.
2407         * include/sys/ioctl.h: Likewise.
2408         * include/sys/mman.h: Likewise.
2409         * include/sys/resource.h: Likewise.
2410         * include/sys/select.h: Likewise.
2411         * include/sys/socket.h: Likewise.
2412         * include/sys/statfs.h: Likewise.
2413         * include/sys/time.h: Likewise.
2414         * include/sys/times.h: Likewise.
2415         * include/sys/wait.h: Likewise.
2417 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
2419         * version.h (VERSION): Bump to 2.0.96.
2421         Rewrite runtime linker to be truly thread-safe.  There is now no
2422         global variable specifying the scope.  We create all needed
2423         scopes at the time the link maps are created.
2424         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
2425         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
2426         l_symbolic_searchlist, l_scope, and l_local_scope elements in
2427         struct link_map.
2428         * elf/dl-close.c: Rewritten accordingly.
2429         * elf/dl-deps.c: Likewise.
2430         * elf/dl-error.c: Likewise.
2431         * elf/dl-init.c: Likewise.
2432         * elf/dl-load.c: Likewise.
2433         * elf/dl-lookup.c: Likewise.
2434         * elf/dl-object.c: Likewise.
2435         * elf/dl-open.c: Likewise.
2436         * elf/dl-reloc.c: Likewise.
2437         * elf/dl-runtime.c: Likewise.
2438         * elf/dl-support.c: Likewise.
2439         * elf/dl-symbol.c: Likewise.
2440         * elf/dl-version.c: Likewise.
2441         * elf/dlsym.c: Likewise.
2442         * elf/dlvsym.c: Likewise.
2443         * elf/ldsodefs.h: Likewise.
2444         * elf/rtld.c: Likewise.
2445         * iconv/gconv_dl.c: Likewise.
2446         * nss/nsswitch.c: Likewise.
2447         * sysdeps/i386/dl-machine.h: Likewise.
2448         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2450         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
2451         Define RTLD_DEFAULT.
2453 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
2455         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
2456         __getopt_clean_environment with __environ instead of envp.
2458 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
2460         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
2462         * string/argz-extract.c (__argz_extract): Add de-consting cast for
2463         setting results.
2465         * string/argz.h (argz_next): Add de-consting cast for return.
2466         * string/argz-next.c (__argz_next): Likewise.
2468         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
2469         Don't add netinet/udp.h, netinet/ip_icmp.h here.
2470         * sysdeps/gnu/Makefile: Do it here instead.
2471         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
2472         * sysdeps/gnu/Dist: ... to here.
2474         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
2475         sysdeps/unix/sysv/linux/netinet/tcp.h,
2476         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
2478 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
2480         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
2481         * string/argz-next.c, string/argz-extract.c: Fix defns.
2483 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
2485         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
2487         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
2488         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
2489         * sysdeps/generic/sysd-stdio.c: Likewise.
2491 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
2493         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
2494         (_dl_map_object_from_fd): Make NAME argument const.
2495         Remove last parameter in _dl_new_object call.
2496         (print_search_path): Correct construction of composed path name.
2497         (_dl_map_object): Prevent looking at RPATH of the main map twice.
2498         Remove last parameter in _dl_new_object call.
2499         * elf/dl-object.c: Remove last parameter.  Determine whether create
2500         origin entry based on empty realname.  Handle file in root directory
2501         correctly.
2502         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
2503         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
2504         Remove last parameter in _dl_new_object call.
2505         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
2506         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
2508 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
2510         * elf/dl-close.c (_dl_close): Add more comments and correct some.
2511         Free l_searchlist and l_dupsearchlist.
2513         * debug/catchsegv.sh: Add one more pair of quotes.
2515 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
2517         * elf/dl-load.c (add_name_to_object): Change return type to void and
2518         make NAME parameter const.  Allocate room for NAME in same memory
2519         block used for l_libname entry.
2520         (_dl_map_object_from_fd): Don't free NAME on failure.
2521         (map_segment): Pass SONAME to add_name_to_object, not a copy.
2522         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
2523         _dl_map_object_from_fd.
2524         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
2525         memory block used for l_libname entry.
2526         * elf/dl-close.c: Adjust free()ing for this change.
2528 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
2530         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
2532         * malloc/mtrace.c: Add bug report address.  Update email address.
2533         Add more @XXX@ to print correct address size.
2535         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
2536         really initialized.
2538         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
2539         for munmap call instead of examining phdr again.
2540         Free all malloc()ed strings and arrays.
2542 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
2544         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
2545         dl-machine.h.
2546         * sysdeps/powerpc/dl-machine.c: New file.
2547         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
2548         files.  Revise ELF_PREFERRED_ADDRESS to take account of
2549         the new mapping information (fixes bug involving huge bloated
2550         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
2551         * sysdeps/powerpc/dl-start.S: New file.
2553         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
2554         l_map_end.
2555         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
2556         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
2557         others.  Call elf_dynamic_do_##reloc only once (to save even more
2558         space).
2559         * elf/link.h: Add new members l_map_start and l_map_end to keep
2560         track of the memory map.
2561         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
2562         the executable.
2564 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
2566         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
2567         Reported by Andreas Jaeger.
2569         * posix/glob.h: Use __size_t instead of size_t in definitions and
2570         make sure this is defined.
2572 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
2574         * manual/locale.texi: Almost complete rewrite.  Document more functions
2575         and functionality.
2576         * manual/arith.texi: Correct reference.
2577         * manual/string.texi: Pretty printing.
2579         * manual/texinfo.tex: Update from last available version.
2581 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
2583         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
2584         invalid password.
2585         (_nss_nis_getpwuid_r): Likewise.
2586         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
2588         * inet/rcmd.c: Implement netgroup support.
2589         Patch by Dick Streefland <dick_streefland@tasking.com>.
2591 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
2593         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
2594         object on the list is removed.  Don't use this code for PIC.
2595         Reported by HJ Lu [PR libc/770].
2597 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
2599         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
2601         * include/stdio.h: Add __vsscanf.
2603         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
2604         __USE_ISOC9X.
2605         Remove __vsscanf declaration.
2606         Always declare fgetpos and fsetpos.
2608         * math/math.h: Define isinf as macro.
2609         * math/bits/mathcalls.h: Change to declare __isinf all the time.
2610         Don't declare scalb for ISO C 9x.
2612         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
2614         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
2616         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
2617         sys/ucontext.h.
2619         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
2620         macros.
2622 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2624         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
2625         Reported by jreising@frequentis.com [PR libc/767].
2627 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2629         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
2630         fl.l_start at beginning of function.
2631         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
2633 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
2635         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
2636         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
2638         * nscd/nscd.init: Make it work in RedHat systems.
2639         Patch by Christian Gafton.
2641 1998-08-29  Philip Blundell  <philb@gnu.org>
2643         * catgets/Makefile: Don't try to run test programs when
2644         cross-compiling.
2646 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
2648         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
2649         Reported by Zack Weinberg.
2651 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2653         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
2654         * elf/Makefile (distribute): Remove ldd.sh.in.
2656 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2658         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
2659         variable.
2661 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
2663         * sysdeps/i386/register-dump.h: Move to ...
2664         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
2666 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
2668         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
2669         with load address, not map address.
2670         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
2671         parameter and use this value.
2672         * sysdeps/arm/dl-machine.h: Likewise.
2673         * sysdeps/i386/dl-machine.h: Likewise.
2674         * sysdeps/m68k/dl-machine.h: Likewise.
2675         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
2676         parameter.
2677         * sysdeps/powerpc/dl-machine.h: Likewise
2678         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
2679         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
2681 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
2683         * elf/rtld.c (process_envvars): Fix copy&paste error.
2685         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
2686         memalign hook.
2687         (realloc_hook_ini): Don't overwrite memalign hook.
2688         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
2689         Reported by Philippe Troin <phil@fifi.org>.
2691         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
2692         Patch by Philippe Troin <phil@fifi.org>.
2694 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2696         * sysdeps/generic/segfault.c (install_handler): Protect the
2697         non-POSIX signals with #ifdef.
2698         (catch_segfault): Add missing mode parameter for open.
2699         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
2700         other termination signals.
2702 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2704         * debug/Makefile (distribute): Add register-dump.h.
2706 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2708         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
2710 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
2712         * elf/Makefile (distribute): Add dl-origin.h.
2713         * sysdeps/generic/dl-origin.h: New file.
2714         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
2715         * elf/link.h (struct link_map): Add l_origin field.
2716         * elf/dl-load.c (expand_dynamic_string_token): New function.
2717         (decompose_path): Remove WHERE argument, take link map pointer instead.
2718         Call expand_dynamic_string_token instead of local_strdup to make copy
2719         of rpath.
2720         (_dl_init_paths): Call decompose_path with correct argument.
2721         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
2722         not defined.
2723         Check EI_OSABI and EI_ABIVERSION fields in header.
2724         Call _dl_new_object with extra argument.
2725         (_dl_map_object): Call decompose_path with correct argument.
2726         Call expand_dynamic_string_token instead of local_strdup to also
2727         expand DST.
2728         Call _dl_new_object with extra argument.
2729         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
2730         but the main one if new argument is nonzero.
2731         * elf/ldsodefs.h: Adjust for _dl_new_object change.
2732         * elf/dl-support.c: Define _dl_origin_path.
2733         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
2734         (dl_main): Call _dl_new_object with extra argument.
2736         * elf/dl-close (_dl_close): Free l_name and l_origin.
2738         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
2739         modifier in asm, not c.
2741         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
2742         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
2744 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
2746         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
2747         variable so that map can be freed.
2748         Reported by Philippe Troin <phil@fifi.org>.
2750         * elf/dl-open.c (dl_open_worker): Correct test for extending global
2751         scope array.
2752         Patch by Philippe Troin <phil@fifi.org>.
2754 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
2756         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
2757         Don't call writev() with a 100-element vector.
2758         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
2759         return address.
2761         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
2762         In particular, set __libc_stack_end.
2763         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
2764         undefined.  Fix copyright notice.
2766 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2768         * math/Makefile (gmp-objs): New variable.
2769         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
2770         Depend on it.
2771         (tests): Add atest-exp atest-sincos atest-exp2.
2772         (tests-static): Remove atest-exp atest-sincos atest-exp2.
2774 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
2776         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
2777         to toplevel.
2778         (_dl_unload_cache): New function.
2779         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
2780         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
2781         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
2783         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
2784         Correct comment for O_LARGEFILE.
2785         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
2786         Change O_LARGEFILE to correct value.
2788 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
2790         * libio/iogetline.c (_IO_getline_info): Don't read anything for
2791         N == 0.  Patch by HJ Lu.
2793 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
2795         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
2797 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
2799         * argp/argp.h: Use __inline__ not inline.
2801         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
2802         an input register as being clobbered.
2803         * sysdeps/i386/memset.c (memset): Likewise.
2804         * sysdeps/i386/bzero.c (__bzero): Likewise.
2805         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
2807 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2809         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
2810         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
2812 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
2814         * debug/catchsegv.sh: Handle text preceding backtrace better.
2815         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
2816         to be installed for other signals than SIGSEGV.
2817         * sysdeps/generic/register-dump.h: New file.
2818         * sysdeps/i386/register-dump.h: New file.
2819         * sysdeps/powerpc/register-dump.h: New file.
2821         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
2822         sigcontextinfo.h.
2823         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
2825 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
2827         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
2829 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
2831         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
2832         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
2833         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
2834         getresuid, getresgid.
2836 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
2838         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
2839         pointer in userland.
2841 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2843         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
2844         and fix value.
2846 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2848         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
2849         over arguments Bourne shell compatible.  Don't exit unsuccessfully
2850         if nonelf returns successfully.  Avoid duplicating most of the
2851         script.
2852         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
2853         around $file.
2855 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2857         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
2858         sys/reg.h.
2859         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
2860         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
2862 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
2864         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
2865         __modify_ldt and modify_ldt.
2866         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
2868         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2869         Use orl $-1 instead of movl $-1 to save two bytes.
2870         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
2871         Likewise.
2873 1998-08-17  H.J. Lu  <hjl@gnu.org>
2875         * libio/Versions (_IO_do_write, _IO_file_attach,
2876         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2877         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2878         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2879         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
2881         * libio/fileops.c (_IO_do_write, _IO_file_attach,
2882         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2883         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2884         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2885         _IO_file_write, _IO_file_xsputn): Change the prefix to
2886         "_IO_new_". Added to GLIBC_2.1.
2888         * libio/libioP.h (_IO_do_write, _IO_file_attach,
2889         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2890         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2891         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2892         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
2893         "_IO_new_".
2895         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
2896         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2897         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2898         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2899         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
2901 1998-08-23  Richard Henderson  <rth@cygnus.com>
2903         * Makeconfig (LDFLAGS): Remove.
2905         * csu/initfini.c: Return to .text before __gmon_start__.
2907         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
2908         (STO_MIPS_*): Rename from STO_*.
2909         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
2910         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
2912         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
2913         (main): e3s is negative on zero.
2914         * math/atest-exp2.c: Likewise.
2915         * math/atest-sincos.c: Likewise.
2917 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2919         * Makerules (install): Add comment about absolute paths.
2921 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
2923         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
2924         array to NUL to handle maxlen==1 case correctly.
2925         Patch by HJ Lu.
2927 1998-08-23  Richard Henderson  <rth@cygnus.com>
2929         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
2930         * sysdeps/alpha/elf/crtend.S: Likewise.
2931         * sysdeps/alpha/elf/start.S: Likewise.
2933         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
2934         non-standard pv usage.
2936         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
2937         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
2938         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2939         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2940         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2941         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2942         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2943         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2944         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2945         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2946         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2948         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
2949         a finite non-denormal, deferring to the full IEEE version otherwise.
2951         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
2952         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
2953         * sysdeps/alpha/fpu/s_floor.c: New.
2954         * sysdeps/alpha/fpu/s_floorf.c: New.
2955         * sysdeps/alpha/fpu/s_ceil.c: New.
2956         * sysdeps/alpha/fpu/s_ceilf.c: New.
2958 1998-08-22  Philip Blundell  <philb@gnu.org>
2960         * sysdeps/arm/bits/string.h: New file.
2962 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2964         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
2965         document it.
2967         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
2968         test for recent Linux 2.1.100+ headers.
2970 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
2972         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
2974 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
2976         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
2978 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2980         * Makefile (elf/ldso_install): Put back.  The problem still persists.
2981         * elf/Makefile (ldso_install): Likewise.
2983 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2985         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
2986         create weak alias.
2987         * include/db.h: Declare __nss_db_open.
2988         * db2/Versions: Export it.
2990         * db2/makedb.c: Convert to use db2 API.
2991         * nss/nss_db/db-XXX.c: Likewise.
2992         * nss/nss_db/db-netgrp.c: Likewise.
2993         * nss/nss_db/db-alias.c: Likewise.
2994         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
2996 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2998         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
2999         sys_setresuid, already built automatically (or not).
3000         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
3001         instead of __syscall_setresuid and add back setresuid.
3002         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
3003         __syscall_setresuid.
3005 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3007         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
3009 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
3011         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
3012         BASH-ONLY marked region.
3013         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
3015 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
3017         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
3018         _IO_SYSSEEK fails.
3020         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
3022         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
3023         element.
3025 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
3027         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
3028         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
3029         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
3030         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
3031         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
3032         those magic comments, and to use /bin/sh for @BASH@.
3033         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
3034         * elf/ldd.sh.in: File removed.
3036 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
3038         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
3039         cast them to unsigned long int.
3040         * pwd/putpwent.c (putpwent): Likewise.
3041         Patch by John Tobey <jtobey@banta-im.com>.
3043 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
3045         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
3046         _IO_pos_BAD.
3048 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
3050         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
3051         _IO_SYSSEEK fails.
3053 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
3055         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
3056         Add umount and umount2.
3057         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
3058         * sysdeps/unix/sysv/linux/umount.S: New file.
3059         * sysdeps/unix/sysv/linux/umount2.S: New file.
3060         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
3061         Define MNT_FORCE.
3063         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
3064         Add sys/sendfile.h.
3065         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
3066         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
3068         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
3070         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
3071         sendfile.
3073 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
3075         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
3076         * elf/ldd.bash.in: Likewise.
3078         * elf/sln.c: Avoid warning for no main prototype.
3080         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
3081         O_WRITE.
3082         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
3083         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3085         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
3086         F_GETSIG.
3087         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
3088         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
3089         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3091 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
3093         * sysdeps/arm/fpu/ieee754.h: Move to...
3094         * sysdeps/arm/ieee754.h: ... here.
3096         * sysdeps/arm/__longjmp.S: Put return value in correct register.
3097         Don't set the condition flags unnecessarily.
3098         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
3099         registers correctly.
3101         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
3102         (patch from Scott Bambrough).
3104         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
3106         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
3107         NULL, just call it unconditionally.
3108         (__gmon_start__): Provide stub version as a weak symbol.
3110 1998-07-30  Philip Blundell  <philb@gnu.org>
3112         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
3113         by Scott Bambrough)
3115         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
3116         like `@' in .type directives.
3118         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
3119         * sysdeps/arm/bsd-_setjmp.S: Likewise.
3121         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
3123 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3125         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
3126         (F_GETOWN): Likewise.
3128         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
3129         Linux 2.1.117).
3131 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
3133         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
3134         already defined.
3136 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
3138         * include/features.h: Define __USE_EXTERN_INLINES for recent
3139         enough gcc.
3140         * argp/argp.h: Define extern inline functions only if
3141         __USE_EXTERN_INLINES is defined.
3142         * libio/stdio.h: Likewise.
3143         * math/math.h: Likewise.
3144         * stdlib/stdlib.h: Likewise.
3145         * string/argz.h: Likewise.
3146         * sysdeps/generic/bits/sigset.h: Likewise.
3147         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
3148         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
3149         * sysdeps/wordsize-32/inttypes.h: Likewise.
3150         * sysdeps/wordsize-64/inttypes.h: Likewise.
3151         * wcsmbs/wchar.h: Likewise.
3153         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
3154         to allow compilation without optimization.
3156 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3158         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
3159         more entries.
3160         * nis/nss_compat/compat-initgroups.c: Likewise.
3161         * nis/nss_compat/compat-pwd.c: Likewise.
3162         * nis/nss_compat/compat-spwd.c: Likewise.
3163         * nis/nss_nis/nis-alias.c: Likewise.
3164         * nis/nss_nis/nis-ethers.c: Likewise.
3165         * nis/nss_nis/nis-grp.c: Likewise.
3166         * nis/nss_nis/nis-hosts.c: Likewise.
3167         * nis/nss_nis/nis-initgroups.c: Likewise.
3168         * nis/nss_nis/nis-network.c: Likewise.
3169         * nis/nss_nis/nis-proto.c: Likewise.
3170         * nis/nss_nis/nis-pwd.c: Likewise.
3171         * nis/nss_nis/nis-rpc.c: Likewise.
3172         * nis/nss_nis/nis-service.c: Likewise.
3173         * nis/nss_nis/nis-spwd.c: Likewise.
3175         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
3177         * nis/ypclnt.c: Try binding dir only first time, could be to old.
3179         * nis/yp_xdr.c: Remove 1024 byte limit.
3180         * nis/ypupdate_xdr.c: Likewise.
3182         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
3183         wrong data.
3185 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
3187         * Rules (binaries-static, binaries-shared static pattern rules):
3188         Depend on lib%, not just libc%, from $(link-libc{,-static}).
3190         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
3191         this here, overriding Makeconfig generic value so we link against
3192         the RPC libs.
3194 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
3196         * posix/tstgetopt.c (options): Add NULL entry at end
3197         Patch by Adrian Miranda <ade@psg.com>.
3199 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
3201         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
3202         to 9.
3204 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
3206         * elf/elf.h: Add PPC Diab relocations.
3208         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
3210 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
3212         * manual/texinfo.tex: Update.
3214 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
3216         * sysdeps/powerpc/backtrace.c: New file.
3218 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
3220         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
3221         sigjmp_save.
3222         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
3224 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3226         * Makefile (install-symbolic-link): Fix spelling.
3228 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3230         * elf/elf.h (SHT_HIOS): Fix value.
3232 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3234         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
3235         part of the expansion, this is undefined by the standard.
3237 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
3239         * posix/getconf.c: Add support for systems with incomplete confname.h.
3241         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
3243         * sysdeps/posix/wait3.c: Make it work.
3245 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3247         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
3248         (elf/ldso_install): Remove.
3250         * elf/Makefile (distribute): Add sln.c.
3251         (others): Add sln.
3252         (others-static): Add sln.
3253         (install-rootsbin): Add sln.
3254         (others-static): Add sln.
3255         (ldso_install): Remove.
3257 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3259         * Makerules (install-clean-symbolic-link-list): Make phony.
3260         * Makefile (install-symbolic-link): Make phony.  Depend on
3261         subdir_install for parallel makes.
3264 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
3266         * elf/Makefile (distribute): Add sln.c
3268 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
3270         * elf/sln.c: New file.
3272         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
3273         (install-clean-symbolic-link-list): New target.
3274         (install): Depend on install-clean-symbolic-link-list.
3275         (make-shlib-link): Changed for $(symbolic-link-list).
3277         * Makefile (install-symbolic-link): New target.
3278         (install): Depend on install-symbolic-link.
3280 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
3282         * include/unistd.h: Protect against multiple inclusion.
3284         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
3285         is defined, not is glob is defined.
3286         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
3288 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
3290         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
3291         xdr_string for ut_line, ut_name and ut_host.
3293 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3295         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
3296         /var/mail in accordance with FHS 2.0.
3297         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
3299 1998-08-12  Richard Henderson  <rth@cygnus.com>
3301         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
3302         Update aliases for cancelation.
3304         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
3305         playing with symbol versions.
3307 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
3309         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
3310         multiple inclusion protection.
3311         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
3312         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
3313         define all these to 1.
3314         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
3316 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
3318         * sysdeps/mach/usleep.c: Include <unistd.h>.
3319         (usleep): Return void.
3321 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
3323         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
3324         decl to inhibit warning in if_freenameindex defn.
3326         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
3328         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
3330         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
3331         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
3332         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
3333         * sysdeps/mach/usleep.c: Likewise.
3335         * sysdeps/mach/hurd/bind.c (bind): Add a const.
3337         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
3338         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
3339         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
3340         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
3341         * sysdeps/mach/usleep.c (usleep): Likewise.
3342         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
3343         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
3344         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3345         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
3347 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
3349         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
3350         (glob64): Fix typo.
3352         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
3353         %p arg to fprintf, since `void *' is the right type already.
3355 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
3357         * sysdeps/mach/hurd/getcwd.c
3358         (_hurd_canonicalize_directory_name_internal): Do not loop forever
3359         for unknown root directories.
3360         (__getcwd): Return NULL when the current root directory could not
3361         be reached.
3363 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
3365         * string/strsignal.c (strsignal): Count real-time signals from zero.
3368 See ChangeLog.8 for earlier changes.