(__pthread_trylock): Define inline. (__pthread_lock): Add extra parameter to declarat...
[glibc.git] / ChangeLog
blobd32fbc39e52c6a7152906dea7762172837a0c540
1 1998-10-29  Roland McGrath  <roland@baalperazim.frob.com>
3         * sysdeps/unix/sysv/linux/bits/sem.h,
4         sysdeps/unix/sysv/linux/bits/ipc.h,
5         sysdeps/unix/sysv/linux/bits/shm.h,
6         sysdeps/unix/sysv/linux/bits/msq.h: Moved to ...
7         * sysdeps/gnu/bits/sem.h, sysdeps/gnu/bits/ipc.h,
8         sysdeps/gnu/bits/shm.h, sysdeps/gnu/bits/msq.h: ... here,
9         so the same bits will be used for the Hurd.
11 1998-10-29  Ulrich Drepper  <drepper@cygnus.com>
13         * sysdeps/unix/sysv/linux/sigaction.c (__sigaction): Allow
14         compiling on systems without rt_sigaction syscall.
16 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
18         * Makeconfig (sysdep-subdirs): Allow Subdirs files to remove
19         directories as well as add them.
21 1998-10-28  Philip Blundell  <pb@nexus.co.uk>
23         * sysdeps/unix/sysv/linux/neteconet/ec.h: New file.  Support for
24         AF_ECONET sockets as found in recent Linux 2.1 kernels.
25         * sysdeps/unix/sysv/linux/Dist: Distribute it.
26         * sysdeps/unix/sysv/linux/Makefile: Install it.
28 1998-10-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
30         * string/bits/string2.h: __USE_GNU already implies __USE_MISC.
32 1998-10-27  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
34         * sysdeps/generic/bits/types.h (__FDS_BITS): New macro to access
35         fds_bits member.
36         * sysdeps/unix/sysv/linux/alpha/bits/types.h (__FDS_BITS): Likewise.
37         * sysdeps/unix/sysv/linux/bits/types.h (__FDS_BITS): Likewise.
38         * sysdeps/unix/sysv/linux/mips/bits/types.h (__FDS_BITS): Likewise.
39         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h (__FDS_BITS):
40         Likewise.
41         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h (__FDS_BITS):
42         Likewise.
43         * sysdeps/generic/bits/select.h (__FD_ZERO, __FD_SET, __FD_CLR,
44         __FD_ISSET): Use it.
45         * sysdeps/i386/bits/select.h (__FD_ZERO, __FD_SET, __FD_CLR,
46         __FD_ISSET): Likewise.
48 1998-10-28  Geoff Keating  <geoffk@ozemail.com.au>
50         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Tidy up, correct
51         llseek.
53         * sysdeps/unix/sysv/linux/powerpc/pread.c: Do not use the i386 version.
54         Instead call the system call wrapper function using an 64bit argument.
55         * sysdeps/unix/sysv/linux/powerpc/pread64.c: Likewise.
56         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: Likewise.
57         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: Likewise.
59 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
61         * signal/signal.h: Don't include <time.h> for timespec, add
62         forward declaration.
64         * sysdeps/i386/bits/select.h [!__USE_XOPEN]: Add special version
65         of __FD_* macros which use __fds_bits.
66         * sysdeps/generic/bits/select.h: Likewise.
67         Reported by Matt McLean <keys@yikes.com>.
69 1998-10-27  Philip Blundell  <pb@nexus.co.uk>
71         * elf/elf.h: Update ARM definitions.
73 1998-10-27  Ulrich Drepper  <drepper@cygnus.com>
75         * signal/signal.h: Include bits/sigthread.h only for Unix98.
77 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
79         * include/libc-symbols.h: If HAVE_BUILTIN_EXPECT is not defined
80         define __builtin_expect as a macro substituting to the first
81         argument.
82         * config.h.in: Define HAVE_BUILTIN_EXPECT.
83         * configure.in: Add test for __builtin_expect.
85         * sysdeps/unix/sysv/linux/bits/types.h: Include
86         bits/pthreadtypes.h only not for POSIX 199506.
87         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
88         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
89         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
91 1998-10-26  Mark Kettenis  <kettenis@phys.uva.nl>
93         * sysdeps/unix/sysv/linux/Versions: Move shutdown ...
94         * socket/Versions [libc, GLIBC_2.0]: ... to here.
96 1998-10-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
98         * include/stdio.h: Included <stddef.h> for size_t.
100         * stdio/stdio.h: Move __path_search, __gen_tempname, __libc_fatal
101         to ...
102         * include/stdio.h: ...here.
103         * libio/stdio.h: Removed __path_search, __gen_tempname, __libc_fatal.
105 1998-10-26 11:09  Ulrich Drepper  <drepper@cygnus.com>
107         * time/Makefile (tests): Add tst-posixtz.
108         * time/tst-posixtz.c: New file.
110 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
112         * elf/rtld.c (process_envvars): Accept any non-null value of
113         LD_BIND_NOW, as mandated by the ABI.
115 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
117         * sysdeps/unix/sysv/linux/pread.c: Rename __syscall_pread64 to
118         __syscall_pread.
119         * sysdeps/unix/sysv/linux/pwrite.c: Rename __syscall_pwrite64 to
120         __syscall_pwrite.
121         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
122         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
123         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
124         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
125         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Likewise.  Remove
126         duplicate entries.
127         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: Remove
128         s_pread64 and s_pwrite64.
129         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Likewise.
131 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
133         * sysdeps/unix/sysv/linux/llseek.c: Use INLINE_SYSCALL.
134         * sysdeps/unix/sysv/linux/arm/syscalls.list: Rename __sys_llseek
135         to __syscall__llseek.
136         * sysdeps/unix/sysv/linux/mips/syscalls.list: Likewise.
137         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
138         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove entry for
139         __sys_llseek.
141 1998-10-26  Cristian Gafton  <gafton@redhat.com>
143         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add s_setfsgid
144         and s_setfsuid.
146 1998-10-26  Ulrich Drepper  <drepper@cygnus.com>
148         * time/tzset.c (tz_compute): Correct last patch and describe this
149         in a comment.
151 1998-10-24  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
153         * sysdeps/unix/sysv/linux/m68k/Makefile [subdir=signal]: Remove
154         rt_sigsuspend, rt_sigprocmask, rt_sigtimedwait, rt_sigqueueinfo,
155         rt_sigaction and rt_sigpending.
156         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Remove all entries
157         for __syscall_* functions.
158         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Implement INLINE_SYSCALL.
160 1998-10-26  Roland McGrath  <roland@baalperazim.frob.com>
162         * hurd/Versions: Add _hurd_dtable, _hurd_dtablesize,
163         _hurd_dtable_lock, _hurd_intern_fd.
165         * sysdeps/mach/hurd/Versions: Add cthread_keycreate,
166         cthread_getspecific, cthread_setspecific, __libc_getspecific.
168         * mach/Versions: Fix typo in last change.
170 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
172         * time/tzset.c (tz_compute): If time to switch to DST is later in
173         the year switch back in the next year.
174         Reported by jwitford@hutch.com.au.
176 1998-10-24  Mark Kettenis  <kettenis@phys.uva.nl>
178         * mach/Versions: Add evc_wait, mach_error, mach_error_string,
179         mach_error_type, mach_msg_destroy, mig_deallocate_reply_port.
180         Remove __mach_host_self, __mach_reply_port, __mach_setup_thread,
181         __mach_port_allocate, __mach_port_allocate_name,
182         __mach_port_insert_right __mutex_trylock, __mutex_lock,
183         __mutex_unlock, __swtch, __switch, __task_create, __task_suspend,
184         __task_set_special_port, __task_terminate, __thread_depress_abort,
185         __thread_switch, __vm_allocate, __vm_deallocate, __vm_map.  These
186         functions are not used outside libc.
188         * sysdeps/mach/hurd/Versions: New file.
189         [libc, GLIBC_2.0]: Add _cthread_exit_routine and
190         _cthread_init_routine.  These are set by the Hurd cthreads library.
191         Add __getcwd, __mmap.  If we don't add these, the weak definitions in
192         the dynamic linker will not be replaced by the corresponding shared
193         library routines once they are loaded.
195 1998-10-21  Mark Kettenis  <kettenis@phys.uva.nl>
197         * sysdeps/mach/hurd/i386/init-first.c: Only define
198         __libc_enable_secure if PIC is not defined.
200 1998-10-25  Roland McGrath  <roland@baalperazim.frob.com>
202         * argp/Versions: Add _argp_unlock_xxx.  Lock-savvy functions call this
203         to recurse into argp.
205 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
207         * include/features.h: Define __USE_POSIS199506 is _POSIX_C_SOURCE is
208         greater or equal than 199506L.
210         * sysdeps/generic/bits/types.h (__fd_set): Define element as fds_bits
211         only is __USE_XOPEN.  Otherwise use __fds_bits.
212         * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
213         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
214         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/types.h: Likewise.
215         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
216         * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
218 1998-10-24  H.J. Lu  <hjl@gnu.org>
220         * locale/programs/charmap.c (parse_charmap): Accept tok_string
221         for <code_set_name>.
223 1998-10-25  H.J. Lu  <hjl@gnu.org>
225         * locale/programs/ld-ctype.c (ctype_finish): Also check
226         <space>.
228 1998-10-25  Ulrich Drepper  <drepper@cygnus.com>
230         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX199506.
232         * sysdeps/unix/sysv/linux/bits/types.h: Include pthreadtypes.h only
233         if __USE_POSIX199506 or __USE_UNIX98.
235 1998-10-24 22:34 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
237         * string/bits/string2.h: Inline strdup+friends only if
238         __USE_MISC || __USE_GNU (prevents namespace pollution).
240 1998-10-24  H.J. Lu  <hjl@gnu.org>
242         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (LOCK_SH,
243         LOCK_EX, LOCK_NB, LOCK_UN): Protect with __USE_BSD.
244         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h (LOCK_SH, LOCK_EX,
245         LOCK_NB, LOCK_UN): Likewise.
246         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (LOCK_SH, LOCK_EX,
247         LOCK_NB, LOCK_UN): Likewise.
248         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (LOCK_SH, LOCK_EX,
249         LOCK_NB, LOCK_UN): Likewise.
250         * sysdeps/unix/sysv/linux/bits/fcntl.h (LOCK_SH, LOCK_EX,
251         LOCK_NB, LOCK_UN): Likewise.
253 1998-10-24  H.J. Lu  <hjl@gnu.org>
255         * libio/ioseekoff.c (_IO_seekoff): Check the valid dir value.
257         * libio/rewind.c (rewind): Clear the error.
259 1998-10-24  H.J. Lu  <hjl@gnu.org>
261         * grp/grp.h (getgrent_r, getgrgid_r, getgrnam_r): Add "__" to
262         "buffer".
264 1998-10-24  H.J. Lu  <hjl@gnu.org>
266         * sysdeps/unix/sysv/linux/alpha/bits/time.h (timeval): Protect
267         with __need_timeval.
268         * sysdeps/unix/sysv/linux/mips/bits/time.h (timeval): Likewise.
269         * sysdeps/unix/sysv/linux/bits/time.h (timeval): Likewise.
271 1998-10-24  H.J. Lu  <hjl@gnu.org>
273         * signal/signal.h (timespec, siginfo_t, sigwaitinfo, sigtimedwait,
274         sigqueue): Protect with __USE_POSIX199309.
276 1998-10-24  H.J. Lu  <hjl@gnu.org>
278         * time/time.h (timespec): Protect with __USE_POSIX199309 instead of
279         __USE_POSIX.
281 1998-10-24  H.J. Lu  <hjl@gnu.org>
283         * libio/fileops.c (_IO_new_file_seekoff): Always resync with
284         the kernel file offset.
285         * libio/oldfileops.c (_IO_old_file_seekoff): Likewise.
287 1998-10-24  H.J. Lu  <hjl@gnu.org>
289         * time/tzfile.c (__tzfile_default): Set num_types to 2.
291 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
293         * rt/aio.h: Move __aio_init to...
294         * include/aio.h: ...here.
296 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
298         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove duplicate
299         definition of O_LARGEFILE.
301 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
303         * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Use path
304         as first argument to statfs.
306 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
308         * sysdeps/generic/setenv.c (setenv): Add braces around ambiguous else.
310 1998-10-24  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
312         * malloc/mtrace.c: Include <string.h> for strlen.
314 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
316         * sysdeps/mach/hurd/bits/environments.h: New file.
318         * sysdeps/mach/hurd/dl-sysdep.c (__getcwd): New weak function.
320         * mach/Versions, hurd/Versions: Add numerous symbols.
321         Remove libmachuser and libhurduser sections, punt
322         versioning for those libraries for now.
324         * misc/Versions: Add reboot here; it exists on all platforms.
325         * sysdeps/unix/sysv/linux/Versions: Remove reboot here.
327 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
329         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h (O_NOFOLLOW): New
330         macro.
331         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
332         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
333         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (O_LARGEFILE,
334         O_NOFOLLOW, O_DIRECT): New macros.
335         (O_DIRECTORY): Correct definition according to official 2.1.126.
336         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_DIRECTORY,
337         O_NOFOLLOW): New macros.
339 1998-10-24  Roland McGrath  <roland@baalperazim.frob.com>
341         * include/ldsodefs.h: Test HAVE_ELF instead of __ELF__.
343         * sysdeps/mach/hurd/opendir.c (__opendir): Return ENOENT for "".
344         (__opendir): Add trailing slash to name for open, for ENOTDIR check.
346 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
348         * sysdeps/unix/sysv/linux/i386/Dist: Add setresuid.c, setresgid.c,
349         setfsuid.c, and setfsgid.c.
350         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
351         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
352         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
354         * version.h (VERSION): Bump to 2.0.99.
356         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove duplicate
357         ustat definition.
359         * sysdeps/unix/sysv/linux/i386/Dist: Remove s_pread64.c and
360         s_pwrite64.c.
362         * posix/fnmath.h: Don't redefine __P when used in glibc.
363         * posix/glob.h: Likewise.
365         * inet/rcmd.c (__ivaliduser2): Fix memory leak.
366         Patch by Dick Streefland <dick_streefland@tasking.com>.
368         * stdio-common/tst-ungetc.c: Add more test cases.
370         * sysdeps/unix/sysv/linux/Dist: Add linux_fsinfo.h.
371         * sysdeps/unix/sysv/linux/fstatvfs.c: Move filesystem magic number
372         definitions to ...
373         * sysdeps/unix/sysv/linux/linux_fsinfo.h: ...here.  New file.
374         * sysdeps/unix/sysv/linux/fpathconf.c: New file.
375         * sysdeps/unix/sysv/linux/pathconf.c: New file.
376         * sysdeps/unix/sysv/linux/alpha/fpathconf.c: Handle _PC_LINK_MAX here.
377         * sysdeps/unix/sysv/linux/alpha/pathconf.c: Likewise.
379 1998-10-20  Philip Blundell  <pb@nexus.co.uk>
381         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: Include
382         <asm/ptrace.h> to define struct pt_regs.
383         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Don't bother
384         including <asm/ptrace.h> here.
386         * sysdeps/unix/sysv/linux/arm/sysdep.S: Remove spurious call to
387         C_SYMBOL_NAME macro.
389 1998-10-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
391         * sysdeps/generic/sys/ptrace.h (__ptrace_request): Remove comma at
392         end of enumerator list.
393         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Likewise.
394         * posix/wordexp.h: Likewise.
396         * db/db.h: Use __PMT instead of __P in typedefs.
397         * db/mpool.h: Likewise.
398         * sysdeps/generic/bits/siginfo.h: Likewise.
399         * nis/rpcsvc/ypclnt.h: Likewise.
401 1998-10-23  Ulrich Drepper  <drepper@cygnus.com>
403         * libio/genops.c (_IO_seekmark): When switching to backup buffer
404         make sure all characters from the read buffer are read after
405         switching back to it.
407 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
409         * configure.in: Add support for Cygnus GNUPro compilers.
411 1998-10-22  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
413         * stdio/stdio.h: Use __PMT instead of __P in typedefs.
415         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Use __PMT instead
416         of __P for sa_restorer.
417         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
418         * sysdeps/unix/sysv/linux/kernel_sigaction.h (struct
419         kernel_sigaction, old_kernel_sigaction): Likewise.
421 1998-10-22  Ulrich Drepper  <drepper@cygnus.com>
423         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add __syscall_pread
424         and __syscall_pwrite aliases.
426         * sunrpc/rpc/auth.h (AUTH_DH): New macro.  Alias for AUTH_DES.
428         * sysdeps/unix/sysv/linux/i386/sysdep.h: Drastically simplify and
429         improve INLINE_SYSCALL using macro assembler magic.
431 1998-10-22  H.J. Lu  <hjl@gnu.org>
433         * sysdeps/unix/sysv/linux/i386/getgroups.c (__getgroups): Add
434         sanity check for n.
435         * sysdeps/unix/sysv/linux/i386/setgroups.c (setgroups): Likewise.
437         * sysdeps/posix/fpathconf.c (__fpathconf): Set errno to
438         EINVAL if errno == ENODEV.  Tested by VSX-PCT.
440         * sysdeps/posix/isatty.c (__isatty): Don't reset errno.  Tested
441         by VSX-PCT.
443         * posix/execvp.c (execvp): Check "".  Tested by VSX-PCT.
445 1998-10-22  Philip Blundell  <pb@nexus.co.uk>
447         * sysdeps/unix/arm/sysdep.h: Wrap assembler macros in #ifdef
448         __ASSEMBLER__.
450 1998-10-21  Ulrich Drepper  <drepper@cygnus.com>
452         * sysdeps/unix/sysv/linux/i386/sysdep.h: Remove EXTRAVARS_* macros
453         and adjust formats.
455 1998-10-21 14:38  Ulrich Drepper  <drepper@cygnus.com>
457         * sysdeps/unix/sysdep.h (INLINE_SYSCALL): New macro.  Simply call
458         __syscall_* function.
459         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Use INLINE_SYSCALL instead
460         of calling __syscall_* function.
461         * sysdeps/unix/sysv/linux/fxstat.c: Likewise.
462         * sysdeps/unix/sysv/linux/fxstat64.c: Likewise.
463         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
464         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
465         * sysdeps/unix/sysv/linux/getpriority.c: Likewise.
466         * sysdeps/unix/sysv/linux/getresgid.c: Likewise.
467         * sysdeps/unix/sysv/linux/getresuid.c: Likewise.
468         * sysdeps/unix/sysv/linux/lxstat.c: Likewise.
469         * sysdeps/unix/sysv/linux/lxstat64.c: Likewise.
470         * sysdeps/unix/sysv/linux/poll.c: Likewise.
471         * sysdeps/unix/sysv/linux/pread.c: Likewise.
472         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
473         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
474         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
475         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
476         * sysdeps/unix/sysv/linux/readv.c: Likewise.
477         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
478         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
479         * sysdeps/unix/sysv/linux/siglist.h: Likewise.
480         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
481         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
482         * sysdeps/unix/sysv/linux/sigqueue.c: Likewise.
483         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
484         * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
485         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
486         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
487         * sysdeps/unix/sysv/linux/sysctl.c: Likewise.
488         * sysdeps/unix/sysv/linux/ustat.c: Likewise.
489         * sysdeps/unix/sysv/linux/writev.c: Likewise.
490         * sysdeps/unix/sysv/linux/xmknod.c: Likewise.
491         * sysdeps/unix/sysv/linux/xstat.c: Likewise.
492         * sysdeps/unix/sysv/linux/xstat64.c: Likewise.
493         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
494         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
495         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
496         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
497         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
498         * sysdeps/unix/sysv/linux/i386/setgid.c: Likewise.
499         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
500         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
501         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
502         * sysdeps/unix/sysv/linux/i386/setuid.c: Likewise.
504         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define INLINE_SYSCALL using
505         inline assembler.
506         * sysdeps/unix/sysv/linux/i386/syscalls.list: Remove various
507         __syscall_* definitions.
509         * sysdeps/unix/sysv/linux/syscalls.list: Move various __syscall_*
510         definitions to...
511         * sysdeps/unix/sysv/linux/alpha/syscalls.list: ...here...
512         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
513         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
514         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
515         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
516         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
517         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
519         * sysdeps/unix/sysv/linux/Makefile [subdir=signal] (sysdep_routines):
520         Move definition to...
521         * sysdeps/unix/sysv/linux/alpha/Makefile: ...here...
522         * sysdeps/unix/sysv/linux/arm/syscalls.list: ...and here...
523         * sysdeps/unix/sysv/linux/m68k/syscalls.list: ...and here...
524         * sysdeps/unix/sysv/linux/mips/syscalls.list: ...and here...
525         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: ...and here...
526         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: ...and here...
527         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list: ...and here.
529         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
530         (sysdep_routines): Remove s_pread64 and s_pwrite64.
532         * sysdeps/unix/sysv/linux/i386/pread.c: New file.
533         * sysdeps/unix/sysv/linux/i386/pread64.c: New file.
534         * sysdeps/unix/sysv/linux/i386/pwrite.c: New file.
535         * sysdeps/unix/sysv/linux/i386/pwrite64.c: New file.
536         * sysdeps/unix/sysv/linux/i386/s_pread64.S: Removed.
537         * sysdeps/unix/sysv/linux/i386/s_pwrite64.S: Removed.
539 1998-10-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
541         * sysdeps/unix/sysv/linux/siglist.h: Fix some typos in these files
542         and bring them in synch.
543         * sysdeps/unix/siglist.c: Likewise.
544         Reported by Vladimir Michl <michlv@risc.upol.cz> [PR libc/832].
546 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
548         * sysdeps/unix/sysv/linux/i386/setresuid.c: Allow -1 as arguments.
549         * sysdeps/unix/sysv/linux/i386/setresgid.c: Likewise.
551         * sysdeps/unix/sysv/linux/i386/setreuid.c: New file.
552         * sysdeps/unix/sysv/linux/i386/setregid.c: New file.
553         * sysdeps/unix/sysv/linux/m68k/setreuid.c: New file.
554         * sysdeps/unix/sysv/linux/m68k/setregid.c: New file.
555         * sysdeps/unix/sysv/linux/arm/setreuid.c: New file.
556         * sysdeps/unix/sysv/linux/arm/setregid.c: New file.
557         * sysdeps/unix/sysv/linux/sparc/sparc32/setreuid.c: New file.
558         * sysdeps/unix/sysv/linux/sparc/sparc32/setregid.c: New file.
559         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add s_setreuid and
560         s_setregid.
561         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
562         * sysdeps/unix/sysv/linux/arm/syscalls.list: Likewise.
563         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
565 1998-10-20  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
567         * sunrpc/rpc_main.c (close_output, close_input): New functions.
568         (c_output, h_output, s_output, l_output, t_output, svc_output,
569         clnt_output, mkfile_output): Call them at the end.
571 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
573         * db/Makefile (LDFLAGS-db1.so): New variable, to avoid duplicating
574         link command.
576 1998-10-19  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
578         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Add real contents.
579         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add s_setfs[ug]id.
581 1998-10-20  Ulrich Drepper  <drepper@cygnus.com>
583         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_pread64 and
584         s_pwrite64.
585         * sysdeps/unix/sysv/linux/powerpc/pread.c: New file.
586         * sysdeps/unix/sysv/linux/powerpc/pread64.c: New file.
587         * sysdeps/unix/sysv/linux/powerpc/pwrite.c: New file.
588         * sysdeps/unix/sysv/linux/powerpc/pwrite64.c: New file.
589         Patch by Geoffrey KEATING <geoffk@discus.anu.edu.au>.
591 1998-10-18  Zack Weinberg  <zack@rabi.phys.columbia.edu>
593         * sysdeps/unix/opendir.c: Check at runtime for kernel support for
594         O_DIRECTORY.
596 1998-10-20  H.J. Lu  <hjl@gnu.org>
598         * sysdeps/unix/sysv/linux/i386/setresuid.c (__setresuid): Fix
599         argument types.
601 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
603         * math/tgmath.h: Make nested function calls work.
605         * include/ldsodefs.h: Fix typo.
607         * posix/Makefile (tests): Add tst-preadwrite.
608         * posix/tst-preadwrite.c: New file.
610         * sysdeps/unix/opendir.c (__opendir): Add back fstat call to make
611         sure that descriptor is in any case for a directory.
613 1998-10-19 18:59 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
615         * math/tgmath.h (__TGMATH_UNARY_REAL_IMAG): Fix typo: val -> Val.
616         (atan2): Takes two arguments.
618 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
620         * include/ldsodefs.h: New file.
622         * iconv/gconv.c: Include ldsodefs.h, not elf/ldsodefs.h.
623         Remove change to avoid using _CALL_DL_FCT.
624         * iconv/gconv_db.c: Likewise.
625         * iconv/gconv_dl.c: Likewise.
626         * iconv/skeleton.c: Likewise, here for DL_CALL_FCT.
627         * malloc/mtrace.c: Include ldsodefs.h, not elf/ldsodefs.h.
628         * nss/nsswitch.c: Likewise.
629         * nss/nsswitch.h: Likewise.
631 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
633         * sunrpc/Makefile (otherlibs): If static NSS is in use, set to the
634         required libraries.
635         * login/Makefile (otherlibs): Likewise.
636         * nscd/Makefile (otherlibs): Likewise.
637         * Makeconfig (link-libc) [! build_shared]: Add $(otherlibs).
639         * debug/Makefile (install-bin): Only build catchsegv if using ELF.
641         * inet/Makefile: Add -DSTATIC_NSS to CFLAGS.
643 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
645         * sysdeps/unix/sysv/linux/arm/syscalls.list: Added setfsgid
646         and setfsuid.
648 1998-10-19  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
650         * nscd/connections.c: Fix typos in comments and strings.
652         * nscd/nscd.conf: Update according to recent changes to nscd.
654         * nscd/cache.c (prune_cache): Remove wrong comment.
656 1998-10-19 13:24  Ulrich Drepper  <drepper@cygnus.com>
658         * locale/programs/ld-collate.c (collate_startup): Clear bit for this
659         category in copy_posix.
660         (collate_finish): Don't warn about UNDEFINED not being defined.
661         * locale/programs/ld-ctype.c (ctype_startup): Clear bit for this
662         category in copy_posix.
663         * locale/programs/ld-messages.c (messages_startup): Likewise.
664         * locale/programs/ld-monetary.c (monetary_startup): Likewise.
665         * locale/programs/ld-numeric.c (numeric_startup): Likewise.
666         * locale/programs/ld-time.c (time_startup): Likewise.
667         * locale/programs/localedef.c: Move copy_def_list_t definition into
668         locales.h.  Define copy_posix variable.
669         (main): Before processing copy list add &copy_posix to copy_list.
670         * locale/programs/locales.h: Add definition of copy_def_list_t.
671         * locale/programs/locfile.c: Clear bit for appropriate category in
672         copy_posix.mask for copy instruction.
674 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
676         * sysdeps/unix/sysv/linux/i386/setresgid.c: Remove #include of
677         non-existing file with generic implementation.
678         * sysdeps/unix/sysv/linux/i386/setresuid.c: Likewise.
680 1998-10-19  Philip Blundell  <pb@nexus.co.uk>
682         * iconv/gconv_db.c: Include ELF header only if STATIC_GCONV is not
683         defined.  Avoid using _CALL_DL_FCT if it is not defined.
684         * iconv/gconv.c: Likewise.
686 1998-10-19  Ulrich Drepper  <drepper@cygnus.com>
688         * nscd/connections.c (dbs): Define defualt values for timeouts and
689         set enabled to 0 by default.
690         (CACHE_PRUNE_INTERVAL): New constant.  Use it instead of magical 15 in
691         nscd_run.
693         * locale/C-ctype.c (_nl_C_LC_CTYPE_class): Clear ISCNTRL bit for
694         character >= 0x80.
695         (_nl_C_LC_CTYPE_class32): Likewise.
696         Reported by HJ Lu.
698 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
700         * hurd/hurd/threadvar.h (enum __hurd_threadvar_index): Add
701         _HURD_THREADVAR_DL_ERROR.
703         * hurd/Makefile (user-interfaces): Add login, password.
705         * sysdeps/mach/hurd/Makefile (+cflags): Append -Wno-parentheses.
707 1998-08-06  Mark Kettenis  <kettenis@phys.uva.nl>
709         [submitted 1998-08-06]
710         * mach/Machrules: Create target directory and force re-evaluation
711         of Makefile to prevent `make' from optimizing away most of the
712         implicit rules and `vpath' directives.
714 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
716         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): If _hurd_msgport_thread
717         is null, short-circuit to __mach_msg.
719         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): New function,
720         broken out of init1.
721         (init1) [PIC]: Call it.
722         (__libc_init_first) [! PIC]: Call it.
724         * sysdeps/mach/hurd/i386/init-first.c (init1): Don't call
725         __libc_init_secure.  Instead set __libc_enable_secure here from
726         the exec flags.
727         (__libc_enable_secure): New variable it.
728         * sysdeps/mach/hurd/enbl-secure.c: New file, empty placeholder module.
730 1998-10-19  Roland McGrath  <roland@baalperazim.frob.com>
732         * nscd/nscd-client.h: New file, broken out of "nscd.h".
733         * nscd/nscd.h: Move defns needed by clients to "nscd-client.h",
734         and #include that.
735         * nscd/Makefile (distribute): Add nscd-client.h.
736         * nscd/nscd_getgr_r.c, nscd/nscd_gethst_r.c, nscd/nscd_getpw_r.c:
737         Include "nscd-client.h" instead of "nscd.h"
739 1998-10-18  Ulrich Drepper  <drepper@cygnus.com>
741         * sysdeps/posix/getcwd.c (__getcwd): Don't stop processing
742         directory entries when a lstat call fails.
743         Patch by Colin Plumb <colin@nyx.net>.
745         * resolv/nss_dns/dns-host.c: Add missing errnop parameter to the
746         NSS functions.
747         * resolv/nss_dns/dns-network.c: Likewise.
749         * grp/Makefile: Don't search for linuxthreads in add-ons, use
750         have-thread-library to determine whether threads are available.
751         * pwd/Makefile: Remove wrong comment.
753         * inet/Makefile: Define CFLAGS-gethstbyad_r.c, CFLAGS-gethstbynm_r.c,
754         and CFLAGS-gethstbynm2_r.c to -DUSE_NSCD=1.
756         * locale/C-messages.c: Define default strings for YESTR and NOSTR.
758         * nss/Versions: Add __nss_hosts_lookup.
760         * nss/getXXbyYY.c: Remove unneeded assignment.
762         * nss/getXXbyYY_r.c: Include nscd/nscd_proto.h only if needed.
764         Almost complete rewrite of the NSCD to make it smaller, faster,
765         add more functionnality and make it easier to extend.
766         * nscd/Makfile (routines): Add nscd_gethst_r.
767         (nscd-modules): Add hstcache, gethstbyad_r, gethstbynm2_r, and cache.
768         * nscd/cache.c: New file.
769         * nscd/gethstbyad_r.c: New file.
770         * nscd/gethstbynm2_r.c: New file.
771         * nscd/hstcache.c: New file.
772         * nscd/nscd_gethst_r.c: New file.
773         * nscd/connections.c: Rewritten.  Don't start new thread for every
774         new connection.  Use a fixed set of threads which handle all
775         connections and also the cache cleanup.
776         * nscd/grpcache.c: Rewritten to use generic cache handling functions
777         in cache.c.
778         * nscd/nscd.c: Recognize new parameter nthreads.  Adjust initialization
779         for rewrite.  Remove handle_requests function.
780         * nscd/nscd.h (NSCD_VERSION): Bump to 2.
781         Define new data structure for the new unified cache and the host
782         database entries.
783         * nscd/nscd_conf.c: Rewrite parsing partly to allow adding of more
784         databases easily.  Recognize check-files and threads definitions.
785         * nscd/nscd.conf: Add definition of enable-cache and check-files to
786         passwd and group definitions.  Add new set of definitions for hosts.
787         * nscd/nscd_getgr_r.c: Rewrite for new protocol.
788         * nscd/nscd_getpw_r.c: Likewise.
789         * nscd/nscd_proto.h: Add prototype for host database functions.
790         * nscd/nscd_stat.c: Rewrite to simplify printing of information
791         for many databases.
792         * nscd/dbg_log.c: Remove unnecessary variable initializations.
793         Global variable debug_flag is renamed to dbg_level.
794         * nscd/dbg_log.h: Declare set_logfile.
796 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
798         * sysdeps/unix/sysv/linux/bits/fcntl.h: Add dummy definition of
799         O_LARGEFILE back.
801 1998-10-16  Paul Eggert  <eggert@shade.twinsun.com>
803         * time/mktime.c: Some systems require <unistd.h> to be
804         included before <time.h> for localtime_r to be declared
805         properly.
806         * time/strftime.c: Likewise.
808 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
810         * db/Makefile: Add rule to generate shared object with the soname
811         from glibc 2.0.
813         * sysdeps/unix/opendir.c: Use O_DIRECTORY if available.  If not
814         available double check to verify it's a directory.
816         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add O_DIRECTORY.
817         * sysdeps/unix/sysv/linux/mips/bits/fcntl: Likewise.
818         * sysdeps/unix/sysv/linux/bits/fcntl.h: Remove O_* constants which
819         are not generally available.
820         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: New file.
822         * sysdeps/unix/sysv/linux/i386/setgroups.c: Add range check for values.
823         * sysdeps/unix/sysv/linux/arm/Makefile: New file.
824         * sysdeps/unix/sysv/linux/arm/setegid.c: New file.
825         * sysdeps/unix/sysv/linux/arm/seteuid.c: New file.
826         * sysdeps/unix/sysv/linux/arm/setfsgid.c: New file.
827         * sysdeps/unix/sysv/linux/arm/setfsuid.c: New file.
828         * sysdeps/unix/sysv/linux/arm/setgid.c: New file.
829         * sysdeps/unix/sysv/linux/arm/setgroups.c: New file.
830         * sysdeps/unix/sysv/linux/arm/setresgid.c: New file.
831         * sysdeps/unix/sysv/linux/arm/setresuid.c: New file.
832         * sysdeps/unix/sysv/linux/arm/setuid.c: New file.
833         * sysdeps/unix/sysv/linux/i386/setegid.c: New file.
834         * sysdeps/unix/sysv/linux/i386/seteuid.c: New file.
835         * sysdeps/unix/sysv/linux/i386/setfsgid.c: New file.
836         * sysdeps/unix/sysv/linux/i386/setfsuid.c: New file.
837         * sysdeps/unix/sysv/linux/i386/setgid.c: New file.
838         * sysdeps/unix/sysv/linux/i386/setgroups.c: New file.
839         * sysdeps/unix/sysv/linux/i386/setresgid.c: New file.
840         * sysdeps/unix/sysv/linux/i386/setresuid.c: New file.
841         * sysdeps/unix/sysv/linux/i386/setuid.c: New file.
842         * sysdeps/unix/sysv/linux/m68k/setegid.c: New file.
843         * sysdeps/unix/sysv/linux/m68k/seteuid.c: New file.
844         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: New file.
845         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: New file.
846         * sysdeps/unix/sysv/linux/m68k/setgid.c: New file.
847         * sysdeps/unix/sysv/linux/m68k/setgroups.c: New file.
848         * sysdeps/unix/sysv/linux/m68k/setresgid.c: New file.
849         * sysdeps/unix/sysv/linux/m68k/setresuid.c: New file.
850         * sysdeps/unix/sysv/linux/m68k/setuid.c: New file.
851         * sysdeps/unix/sysv/linux/sparc/sparc32/setegid.c: New file.
852         * sysdeps/unix/sysv/linux/sparc/sparc32/seteuid.c: New file.
853         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: New file.
854         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: New file.
855         * sysdeps/unix/sysv/linux/sparc/sparc32/setgid.c: New file.
856         * sysdeps/unix/sysv/linux/sparc/sparc32/setgroups.c: New file.
857         * sysdeps/unix/sysv/linux/sparc/sparc32/setresgid.c: New file.
858         * sysdeps/unix/sysv/linux/sparc/sparc32/setresuid.c: New file.
859         * sysdeps/unix/sysv/linux/sparc/sparc32/setuid.c: New file.
861         * sysdeps/unix/sysv/linux/arm/syscalls.list: Add s_setgid, s_setresuid,
862         s_setresgid, and s_setuid.
863         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
864         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
865         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Likewise.
866         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=misc]
867         (sysdep_routines): Add setfsgid, setfsuid, setresgid, and setresuid.
868         * sysdeps/unix/sysv/linux/m68k/Makefile: Likewise.
869         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile: Likewise.
871 1998-10-16  Ulrich Drepper  <drepper@cygnus.com>
873         * time/mktime.c: Define _POSIX_THREAD_SAFE_FUNCTIONS to get
874         localtime_t declaration on some systems.
876 1998-10-16 10:07  Ulrich Drepper  <drepper@cygnus.com>
878         * iconv/Makefile [! elf]: Define CFLAGS-gconv_simple.c to
879         -DSTATIC_GCONV.
880         * iconv/skeleton.c: Include ELF header only of STATIC_GCONV is not
881         defined.  Avoid using DL_CLL_FCT if it is not defined.
883 1998-10-16 10:40 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
885         * resolv/arpa/nameser.h: Include sys/types.h unconditionally.
886         Include endian.h unconditionally.  Remove portability goop
887         depending on #ifdef linux, #ifdef BSD, #ifdef machine-type.
889 1998-10-16 11:39 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
891         * sunrpc/rpc/types.h: Mark file so fixincludes won't modify it.
893 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
895         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Remove __kernel_termios
896         again.  Use char[44] to define size of the struct.
898         * sysdeps/unix/sysv/linux/arm/Dist: Add bits/armsigctx.h.
900 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
902         * string/bits/string2.h (strcmp): Don't cache the result of
903         __builtin_constant_p in variables, otherwise constant folding
904         can fail in big functions.
906 1998-10-14  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
908         * string/bits/string2.h: Add prototypes for the new inline
909         functions.
911 1998-10-15  Ulrich Drepper  <drepper@cygnus.com>
913         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Include termios.h to
914         have all types defined.
915         Patch by Matti Aarnio <matti.aarnio@sonera.fi>.
917 1998-10-08  Paul Eggert  <eggert@twinsun.com>
919         * time/mktime.c (my_mktime_localtime_r): Renamed from localtime_r.
920         Define also if HAVE_LOCALTIME_R && defined localtime_r, with
921         a body that merely expands localtime_r; this works around a
922         bug in Digital Unix 4.0A and 4.0D.
924 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
926         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add s_ioctl.
927         * sysdeps/unix/sysv/linux/powerpc/tcgetattr.c: New file. Define
928         __ioctl to __syscall_ioctl and include Linux version of this file.
929         * sysdeps/unix/sysv/linux/powerpc/tcsetattr.c: Likewise.
930         * sysdeps/unix/sysv/linux/powerpc/ioctl.c: New file.  Redirect
931         ioctl calls which handle struct termios.
932         Based on a patch by Dan Jacobowitz <drow@false.org>.
934 1998-10-14  Ulrich Drepper  <drepper@cygnus.com>
936         * version.h (VERSION): Bump to 2.0.98.
938         * sysdeps/unix/sysv/linux/alpha/bits/ioctls.h: Define __kernel_termios
939         here instead of including kernel_termios.h.
941 1998-10-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
943         * sysdeps/unix/opendir.c (__opendir): Remove label lose2 which is
944         unnecessary after the changes of 1998-10-12.
946 1998-10-13  Ulrich Drepper  <drepper@cygnus.com>
948         * sysdeps/unix/sysv/linux/alpha/ioperm.c (inline_outb): Fix output
949         parameter format string.
950         (inline_outw): Likewise.
952         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Include
953         string.h to get memcpy prototype and NULL definition.
955 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
957         * misc/sys/cdefs.h (__THROW): New macro.
958         * argp/argp.h: Use it to replace the kludgey __P in inline
959         function definitions.
960         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
961         * stdlib/stdlib.h: Likewise.
962         * wcsmbs/wchar.h: Likewise.
963         * libio/stdio.h: Likewise.
964         * stdio/stdio.h: Likewise.
965         * sysdeps/wordsize-64/inttypes.h: Likewise.
966         * sysdeps/wordsize-32/inttypes.h: Likewise.
967         * string/argz.h: Likewise.
968         * io/sys/stat.h: Likewise.
970 1998-10-12  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
972         * Rules (stdio_lim): New variable.
973         ($(stdio_lim:h=st)): Use this as intermediate stamp file, depend
974         on Rules and config.make, use $(move-if-change) to avoid unnessary
975         recompilations, and cleanup command.
976         (common-generated): Add bits/stdio_lim.st.
978 1998-10-12  Ulrich Drepper  <drepper@cygnus.com>
980         * sysdeps/unix/sysv/linux/alpha/Makefile (CFLAGS-ioperm.c): New
981         variable to prevent warnings from use of modern CPU instructions.
982         Patch by Richard Henderson <rth@cygnus.com>.
984         * sysdeps/unix/opendir.c: Test whether NAME is directory before
985         opening it.
987 1998-10-12  Philip Blundell  <pb@nexus.co.uk>
989         * sysdeps/unix/sysv/linux/arm/sysdep.h (PSEUDO): Add missing
990         semicolon so that profiling works.
992 1998-10-12  Roland McGrath  <roland@baalperazim.frob.com>
994         * sysdeps/generic/glob.c: #undef mempcpy before #define.
996         * sysdeps/unix/bsd/clock.c: Use prototype defns.
998 1998-10-11  Ulrich Drepper  <drepper@cygnus.com>
1000         * Rules [posix in sysdirs]: Set L_tmpnam to 20.
1001         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
1003         * string/bits/string2.h [!_STRING_ARCH_unaligned]
1004         (__mempcpy_small): Add parameter for 1 byte copy and use it.
1005         Reported by Geoff Keating <geoffk@ozemail.com.au>.
1007 1998-10-09  Mark Kettenis  <kettenis@phys.uva.nl>
1009         * sysdeps/mach/hurd/bits/posix_opt.h (_XBS5_ILP32_OFF32): Remove,
1010         it is already defined in <bits/environments.h>.
1012 1998-10-09  Ulrich Drepper  <drepper@cygnus.com>
1014         * posix/ptestcases.h: Fix typo.
1016 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1018         * posix/regex.c (regcomp): Allocate and prepare a fastmap.
1019         (regexec): Allocate regs.start and regs.end as one block.
1021 1998-10-08  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1023         * sysdeps/unix/sysv/linux/bits/socket.h: Remove comma at end of
1024         enum decl.
1026 1998-10-08  Philip Blundell  <pb@nexus.co.uk>
1028         * sysdeps/unix/sysv/linux/arm/profil-counter.h: Move definition of
1029         sigcontext union to ...
1030         * sysdeps/unix/sysv/linux/arm/bits/armsigctx.h: ... here.  New
1031         file.
1032         * sysdeps/unix/sysv/linux/arm/register-dump.h: Add support for
1033         version 2.0 kernels.
1035 1998-10-08  Ulrich Drepper  <drepper@cygnus.com>
1037         * malloc/mtrace.c (tr_reallochook): Produce better output for real
1038         reallocation case.
1040         * signal/sigsetops.c: Make sure __USE_EXTERN_INLINES is defined.
1041         * argp/argp-xinl.c: Likewise.
1043         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add missing
1044         Ruffian entry back.
1045         Patch by Christian Gafton.
1047 1998-10-08  Paul Eggert  <eggert@twinsun.com>
1049         * time/mktime.c (__mktime_internal): When the requested time falls
1050         in a spring-forward gap of size DT, return a time that is DT away
1051         from the requested time, preferring a time whose tm_isdst differs
1052         from the requested value.  Bump the max number of probes from 4 to
1053         6 to account for the extra probes needed to discover a
1054         spring-forward gap in the worst case.
1056 1998-10-07 17:05  Ulrich Drepper  <drepper@cygnus.com>
1058         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Improve the autodetection
1059         of the weird alpha architectures.
1060         Patch by Cristian Gafton <gafton@redhat.com>.
1062 1998-02-18 23:31  Richard Henderson  <rth@cygnus.com>
1064         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Add support for
1065         RAWHIDE and TSUNAMI.  Patch from Jay.Estabrook@digital.com.
1067 1998-10-07  Ulrich Drepper  <drepper@cygnus.com>
1069         * elf/dl-open.c (_dl_global_scope_alloc): Make global.
1070         (dl_open_worker): Use realloc, not malloc to resize array.
1071         * elf/rtld.c (_dl_initial_searchlist): New variable.
1072         (_dl_main): Copy content of _dl_main_searchlist to
1073         _dl_initial_searchlist.
1074         * elf/ldsodefs.h: Add declarations for _dl_initial_searchlist and
1075         _dl_global_scope_alloc.
1076         * elf/Versions [libc, GLIBC_2.1]: Add _dl_initial_searchlist.
1077         * elf/dl-close.c (_dl_close): When removing object with global
1078         scope remove allocated searchlist if no dynamically loaded object
1079         is on it anymore.
1080         * elf/dl-support.c (_dl_initial_searchlist): Renamed from fake_scope.
1081         (_dl_global_scope, _dl_main_searchlist): Use _dl_initial_searchlist.
1083         * malloc/mtrace.c (tr_where): Don't print space in location string,
1084         print it afterwards.  Print better symbol name information.
1086 1998-10-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1088         * manual/filesys.texi (Setting Permissions): Fix example for
1089         reading umask.
1091 1998-10-07  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1093         * elf/sprof.c (load_profdata): Fix typo in error message.
1095 1998-10-06  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1097         * sysdeps/m68k/dl-machine.h (RTLD_START): Fix clearing startup
1098         flag.
1100 1998-10-04  Roland McGrath  <roland@baalperazim.frob.com>
1102         * mach/mach.h: Remove __mach_msg decl; <mach/message.h> now does it.
1104 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
1106         * version.h (VERSION): Bump to 2.0.97.
1108 1998-10-05  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1110         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use __P
1111         in definitions of inline stat functions so that they match the
1112         declaration.
1113         * stdlib/stdlib.h: Likewise.
1114         * wcsmbs/wchar.h: Likewise.
1115         * libio/stdio.h: Likewise.
1116         * stdio/stdio.h: Likewise.
1117         * sysdeps/wordsize-64/inttypes.h: Likewise.
1118         * sysdeps/wordsize-32/inttypes.h: Likewise.
1119         * string/argz.h: Likewise.
1120         * argp/argp.h: Likewise.
1122 1998-10-06  Ulrich Drepper  <drepper@cygnus.com>
1124         * sysdeps/unix/sysv/linux/bits/in.h: Remove ipv6_mreq which is in
1125         netinet/in.h.
1127 1998-10-05  Philip Blundell  <philb@gnu.org>
1129         * sysdeps/unix/sysv/linux/bits/in.h: Add various new structures
1130         and constants.  Tidy up formatting a little.
1132         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_IPV6, SOL_ICMPV6):
1133         Move definitions to in.h.
1135 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1137         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_PREFER,
1138         SWAP_FLAG_PRIO_MASK,SWAP_FLAG_PRIO_SHIFT): Added.
1139         Remove inclusion of <linux/swap.h>.
1141 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
1143         * io/sys/stat.h: Use __P in definitions of inline stat functions
1144         so that they match the declaration.
1146 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1148         * sysdeps/unix/sysv/linux/sys/quota.h (Q_RSQUASH): Added.
1150 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1152         * sysdeps/unix/sysv/linux/sys/acct.h: Bring in sync with current
1153         linux 2.1 version.
1155 1998-10-02  Philip Blundell  <pb@nexus.co.uk>
1157         * sysdeps/arm/dl-machine.h: Fix typo in last change.
1159         * sysdeps/arm/bits/huge_val.h: New file.
1161 1998-10-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1163         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_POWER_OFF): Added.
1165         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_SYSCALL): Add
1166         define.
1168 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
1170         * sysdeps/posix/getcwd.c (__getcwd): Use temporary variable to
1171         store result of realloc instead of using BUF.
1173 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1175         * misc/sgtty.h (_SGTTY_H): Correct spelling.
1176         Reported by Rouben Rostamian <rostamian@umbc.edu> [PR libc/817].
1178 1998-10-04  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1180         * manual/memory.texi (Obstacks): Document
1181         obstack_alloc_failed_handler usage.
1183         * malloc/obstack.h: Enhance comment about
1184         obstack_alloc_failed_handler usage.
1185         * malloc/obstack.c: Likewise.
1187 1998-10-05  Ulrich Drepper  <drepper@cygnus.com>
1189         * misc/sys/cdefs.h (__extension__): Define as empty if no gcc or
1190         gcc before 2.8 is used.
1192 1998-10-01  Philip Blundell  <pb@nexus.co.uk>
1194         * sysdeps/arm/machine-gmon.h: Correct args to mcount().  Patch
1195         from Scott Bambrough.
1197         * sysdeps/unix/sysv/linux/arm/register-dump.h: New file.
1199         * libio/libioP.h (FILEBUF_LITERAL) [! _IO_MTSAFE_IO]: Don't
1200         include the lock member.
1202 1998-09-03  Philip Blundell  <pb@nexus.co.uk>
1204         * sysdeps/arm/fpu/__longjmp.S: Cope with fussy assembler.
1206 1998-10-01  Ulrich Drepper  <drepper@cygnus.com>
1208         * timezone/zic.c: Update from tzcode1998h.
1209         * timezone/europe: Update from tzdata1998i.
1210         * timezone/southamerica: Likewise.
1212         * sys/types.h: Protect use of long long by __extension__.
1213         * stdlib/stdlib.h: Likewise.
1214         * string/string.h: Likewise.
1215         * sysdeps/i386/bits/byteswap.h: Likewise.
1216         * sysdeps/geeric/bits/byteswap.h: Likewise.
1217         * sysdeps/i386/fpu/bits/mathinline.h: Likewise.
1218         * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
1219         * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
1220         * sysdeps/wordsize-32/inttypes.h: Likewise.
1221         * sysdeps/wordsize-32/stdint.h: Likewise.
1222         * wcsmbs/wchar.h: Likewise.
1224 1998-09-29  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1226         * string/bits/string2.h (__string2_1bptr_p): Don't use a statement
1227         expression.
1228         (__mempcpy, strcpy, __stpcpy, strcmp, strcspn, strspn, strpbrk,
1229         __strsep): Greatly reduce size of expansion by combining common
1230         expressions.
1231         (__mempcpy_small, __strcpy_small, __stpcpy_small): Convert to
1232         inline function.
1233         (__mempcpy_args, __strcpy_args, __stpcpy_args): New macros, used
1234         by the above definitions.
1236 1998-09-27  Geoff Keating  <geoffk@ozemail.com.au>
1238         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: New file, use
1239         correct struct ipc_perm definition.
1241 1998-09-29  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1243         * nis/ypclnt.c (yp_all): Close UDP socket und give CLIENT handle free.
1245 1998-09-29  Cristian Gafton  <gafton@redhat.com>
1247         * sysdeps/unix/sysv/linux/alpha/ioperm.c: List Ruffian in platforms[].
1248         * sysdeps/unix/sysv/linux/net/if_shaper.h: New file.
1249         * sysdeps/unix/sysv/linux/Dist: Add net/if_shaper.h.
1250         * sysdeps/unix/sysv/linux/Makefile [subdirs=inet] (sysdep_headers):
1251         Add net/if_shaper.h.
1253 1998-09-29  Ulrich Drepper  <drepper@cygnus.com>
1255         * nis/ypclnt.c (yp_all): Close socket opened by __yp_bind.
1257         * nis/ypclnt.c: Remove not needed close calls.
1259 1998-09-28 23:55  Ulrich Drepper  <drepper@cygnus.com>
1261         * nis/ypclnt.c (__yp_bind): Pretty print.  Optimize readv result
1262         check a bit.  Also close socket of domain client.  Close socket
1263         in IPPORT_RESERVED error case.
1265 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
1267         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use
1268         CMSG_ALIGN (fixes a bug) and correct test for availability of
1269         another entry.
1270         * sysdeps/unix/sysv/linux/mips/bits/socket.h: Sync with generic
1271         Linux version.
1272         (__cmsg_nxthdr): Use CMSG_ALIGN (fixes a bug) and correct test for
1273         availability of another entry.
1274         Patch by ak@muc.de.
1276         * sysdeps/unix/sysv/linux/netinet/ip.h (IPOPT_NOOP): Fix typo.
1277         Patch by ak@muc.de.
1279         * libio/libio.h [!__STDC__]: Define const only if not defined.
1281 1998-09-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1283         * posix/annexc.c (xsystem): New function.  Use it instead of
1284         system.
1286 1998-09-28  Ulrich Drepper  <drepper@cygnus.com>
1288         * stdlib/longlong.h: Remove #endif for #if removed in last change.
1290 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
1292         * time/strftime.c [emacs]: Define my_strftime to emacs_strftimeu.
1293         Define ut_argument, ut_argument_spec, and ut_argument_spec_iso to
1294         allow using `ut' parameter.
1295         [!emacs]: Define ut_argument, ut_argument_spec, and
1296         ut_argument_spec_iso as empty.  Define ut to 0.  Add ut_argument and
1297         argument_spec to prototypes and definitions.
1298         (my_strftime): Don't call tzset of ut != 0.
1299         Compute diff as 0 is ut != 0;
1300         [emacs]: Define new emacs_strftime function.
1301         Based on a patch by Paul Eggert.
1303 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1305         * time/strftime.c (my_strftime): When asking for the length of the
1306         subformatted buffer, do not limit the length to look for;
1307         otherwise, we have no reliable way to distinguish between the
1308         empty buffer and an error.
1310 1998-09-25  Ulrich Drepper  <drepper@cygnus.com>
1312         * math/Makefile (gmp-objs): Add mp_clz_tab.
1314 1998-09-25  David S. Miller  <davem@pierdol.cobaltmicro.com>
1316         * sysdeps/sparc/fpu/feholdexcpt.c (feholdexcept): Clear bits don't
1317         set them.
1318         * stdlib/longlong.h (sparc udiv_qrnnd): Define inline version for
1319         cpus lacking hardware multiply and divide.
1321 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1323         * db/Makefile ($(inst_slibdir)/libdb.so$(libdb1.so-version)): Use
1324         $(<F), not $(^F).
1326 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1328         * db/btree/bt_delete.c: Fix -Wparentheses warning.
1330 1998-09-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1332         * Makefile ($(inst_includedir)/gnu/lib-names.h): Use
1333         $(do-install).
1335 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
1337         * debug/catchsegv.sh: Also produce output if clone process died.
1339 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1341         * time/strftime.c (f_wkday): Remove duplicate definition.
1342         (f_wkday, f_month, a_wkday, a_month, ampm): Define as macros when
1343         !defined _NL_CURRENT && !HAVE_STRFTIME; this propagates the
1344         1998-09-11 fix to this case.
1345         (wkday_len, month_len): Remove these macros; they're no longer needed.
1347 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1349         * time/strftime.c (my_strftime): Don't store past the end of a
1350         zero-sized buffer.
1352 1998-09-24  Paul Eggert  <eggert@twinsun.com>
1354         * time/strftime.c (underlying_strftime):
1355         Set the buffer to a nonzero value before calling
1356         strftime, and check to see whether strftime has set the buffer to zero.
1357         This lets us distinguish between an empty buffer and an error.
1359 1998-09-24  Paul Eggert  <eggert@shade.twinsun.com>
1361         * time/strftime.c (INT_STRLEN_BOUND): Fix typo by changing 100 to 1000.
1362         This fix is propagated from tzcode1998g.tar.gz.
1364 1998-09-24  Mark Kettenis  <kettenis@phys.uva.nl>
1366         * sysdeps/unix/siglist.c: Make sys_siglist a weak alias for
1367         _sys_siglist.  [!HAVE_GNU_LD]: Do not define _sys_siglist as
1368         sys_siglist.  This is handled correctly by the weak_alias macro.
1370 1998-09-24  Ulrich Drepper  <drepper@cygnus.com>
1372         * sysdeps/posix/getcwd.c: Prevent compiler warning from redefinition
1373         of mempcpy.  Reported by Andreas Jaeger.
1375         * misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
1376         pollute the namespace since the compiler will resolve it inline.
1377         Reported by Florian La Roche <florian@suse.de>.
1379 1998-09-24 10:29  Ulrich Drepper  <drepper@cygnus.com>
1381         * timezone/private.h: Update from tzcode1998g.
1383         * timezone/africa: Update from tzdata1998h.
1384         * timezone/asia: Likewise.
1385         * timezone/australasia: Likewise.
1386         * timezone/europe: Likewise.
1387         * timezone/northamerica: Likewise.
1388         * timezone/southamerica: Likewise.
1389         * timezone/zone.tab: Likewise.
1391 1998-09-23 17:28 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1393         * misc/sys/mman.h: New file.
1395         * sysdeps/generic/bits/mman.h: New file.
1396         * sysdeps/unix/bsd/osf/bits/mman.h: New file.
1397         * sysdeps/unix/bsd/sun/sunos4/bits/mman.h: New file.
1398         * sysdeps/unix/bsd/ultrix4/bits/mman.h: New file.
1399         * sysdeps/unix/sysv/irix4/bits/mman.h: New file.
1401         * sysdeps/generic/sys/mman.h: Removed.
1402         * sysdeps/unix/bsd/osf/sys/mman.h: Removed.
1403         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Removed.
1404         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Removed.
1405         * sysdeps/unix/sysv/irix4/sys/mman.h: Removed.
1406         * sysdeps/unix/sysv/linux/sys/mman.h: Removed.
1408         * include/sys/mman.h: Look directly for misc/sys/mman.h.
1409         * misc/Makefile (headers): Add bits/mman.h.
1410         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove
1411         bits/mman.h.
1413         * sysdeps/unix/sysv/linux/alpha/Dist: Don't mention bits/mman.h.
1414         * sysdeps/unix/sysv/linux/arm/Dist: Likewise.
1415         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
1416         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
1417         * sysdeps/unix/sysv/linux/mips/Dist: Likewise.
1418         * sysdeps/unix/sysv/linux/powerpc/Dist: Likewise.
1419         * sysdeps/unix/sysv/linux/sparc/sparc32/Dist: Likewise.
1420         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Likewise.
1422 1998-09-23 16:27 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1424         * sysdeps/mach/alpha/sysdep.h: Don't use #include_next.
1425         * sysdeps/mach/alpha/thread_state.h: Likewise.
1426         * sysdeps/mach/i386/sysdep.h: Likewise.
1427         * sysdeps/mach/i386/thread_state.h: Likewise.
1428         * sysdeps/mach/mips/sysdep.h: Likewise.
1429         * sysdeps/mach/mips/thread_state.h: Likewise.
1430         * sysdeps/posix/profil.c: Likewise.
1431         * sysdeps/i386/i586/memcopy.h: Likewise.
1432         * sysdeps/mach/pagecopy.h: Likewise.
1434 1998-09-23 15:25  Ulrich Drepper  <drepper@cygnus.com>
1436         * libio/stdio.h: Define __need_getopt and include getopt.h to define
1437         getopt stuff.
1438         * posix/unistd.h: Likewise.
1439         * stdio/stdio.h: Likewise.
1440         * posix/getopt.h: Remove _GNU_SOURCE use.  If __need_getopt is defined
1441         define only getopt and the variables.
1443 1998-09-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1445         * scripts/test-installation.pl (installation_problem): Don't link
1446         the test program against libdb1.
1448 1998-09-23 13:52  Ulrich Drepper  <drepper@cygnus.com>
1450         * Makeconfig (all-subdirs): Add db.
1451         * Versions.def: Add definition for libdb1.
1452         * shlib-versions: Add definitions for libdb1.
1453         * db/Makefile (extra-libs): Replace by libdb1.
1454         (libdb-routines): Rename to libdb1-routines.
1455         (headers): Rename to db1-headers.
1456         (distribute): Add $(db1-headers).
1457         (install-others): Define to install symlink libdb.so.NN and the
1458         $(db1-headers).
1459         (CPPFLAGS): Add -DUSE_LIBDB1
1460         Remove rules to build makedb.
1461         * db/Versions: Rename libdb to libdb1.
1462         * include/db.h: If USE_LIBDB1 is defined include db/db.h.
1463         * db/makedb.c: Removed.
1465         * scripts/versions.awk: Recognize digits in library names.
1467         * db/btree/bt_open.c: Fix compiler warnings.
1468         * db/btree/bt_put.c: Likewise.
1469         * db/btree/bt_split.c: Likewise.
1470         * db/hash/hash.c: Likewise.
1471         * db/hash/hash_bigkey.c: Likewise.
1472         * db/recno/rec_close.c: Likewise.
1474         * Makefile: Add localedata/% goal.
1476 1998-09-22 19:58 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1478         * posix/execvp.c: Don't give up searching the PATH if execve
1479         returns ENOTDIR.
1481 1998-09-22 12:53  Ulrich Drepper  <drepper@cygnus.com>
1483         * sysdeps/unix/sysv/linux/init-first.c (init): Don't call setfpucw only
1484         if _dl_fpu_control_set is set.
1485         * sysdeps/generic/dl-sysdep.c: Don't set _dl_fpu_control_set.
1486         * elf/rtld.c: Don't define _dl_fpu_control_set.
1487         * elf/Versions: Remove _dl_fpu_control_set.
1489 1998-09-22 11:51  Ulrich Drepper  <drepper@cygnus.com>
1491         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (SA_ONSTACK): Define.
1492         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
1493         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
1494         Correct values of other SA_* macros according to kernel headers.
1496 1998-09-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1498         * elf/dl-load.c (_dl_init_paths): Avoid warning about unused
1499         variable l.
1500         * elf/dl-error.c (_dl_catch_error): Avoid warning about clobbering
1501         old.
1503 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1505         * elf/ldsodefs.h: Fix typo in comment.
1507 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1509         * libio/genops.c (_IO_default_pbackfail): Add cast to unsigned
1510         char when comparing buffer contents with putback character.
1512 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1514         * elf/Makefile (dl-routines, elide-routines.os, rtld-routines):
1515         Undo last change.
1516         * elf/Versions: Undo last change.  Export _dl_fpu_control and
1517         _dl_fpu_control_set.
1518         * elf/rtld.c (_dl_fpu_control, _dl_fpu_control_set): New
1519         variables.  Include <fpu_control.h>.
1520         * sysdeps/generic/dl-sysdep.c: Store AT_FPUCW value in
1521         _dl_fpu_control instead of __fpu_control, set _dl_fpu_control_set
1522         to indicate that is was seen.
1523         * sysdeps/unix/sysv/linux/init-first.c: Omit call to __setfpucw
1524         only if _dl_fpu_control was set and is equal to desired value.
1525         * math/Makefile (aux): Undo last change.
1526         * math/Versions: Export __fpu_control with version GLIBC_2.0.
1528 1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1530         * sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
1531         optimized.
1533 1998-09-21 10:00  Ulrich Drepper  <drepper@cygnus.com>
1535         * string/bits/string2.h: Add mempcpy optimization.
1536         * sysdeps/generic/mempcpy.c: Undefined __mempcpy.
1537         * intl/localealias.c: Define mempcpy only if not already defined.
1539         * sysdeps/i386/i486/bits/string.h: Define ffsl only if not already
1540         defined.
1542 1998-09-20 10:48 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1544         * csu/abi-note.S: Emit the note directly instead of defining
1545         a preprocessor macro that's only used once.  Don't include sysdep.h.
1546         * abi-tags: Generalize Solaris entry.
1548 1998-09-18  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1550         * sysdeps/unix/bsd/getpt.c (__libc_ptyname1, __libc_ptyname2):
1551         Change to array to avoid runtime relocation.
1552         * sysdeps/unix/sysv/linux/ptsname.c: Update declarations.
1554 1998-09-21 12:22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1556         * malloc/Makefile ($(objpfx)libmcheck.a): Fix use of $(LN_S).
1557         * math/Makefile ($(objpfx)libieee.a): Likewise.
1559 1998-09-21  Ulrich Drepper  <drepper@cygnus.com>
1561         * sysdeps/generic/getpt.c: Fix order of argument to weak_alias.
1562         Patch by John Tobey <jtobey@banta-im.com>.
1564 1998-09-20  Ulrich Drepper  <drepper@cygnus.com>
1566         * login/Makefile (distribute): Remove pty-internal.h, add
1567         pty-private.h.
1569         * stdlib/tst-strtol.c: Add more checks.
1570         Patch by Zack Weinberg <zack@rabi.columbia.edu>.
1572 1998-09-20 09:37  Ulrich Drepper  <drepper@cygnus.com>
1574         * elf/Versions [GLIBC_2.1] (libc): Add __fpu_control.
1575         * elf/elf.h: Add AT_FPUCW.
1576         * elf/Makefile (dl-routines): Add fpu_control.
1577         (elide-routines.os): Add fpu_control.
1578         (rtld-routines): Add fpu_control.
1579         * math/Makefile (aux): Remove fpu_control.
1580         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Handle AT_FPUCW.
1581         (_dl_show_auxv): Likewise.
1582         * sysdeps/unix/sysv/linux/init-first.c (init): Use __setfpucw only
1583         if different from OS default.
1585         * stdio-common/tstscanf.c: Add test case for (nil).
1587 1998-09-18 17:41  Ulrich Drepper  <drepper@cygnus.com>
1589         * libio/fileops.c (_IO_new_file_underflow): Before allocating
1590         buffer make sure the pushback buffer is destroyed.
1591         (_IO_new_file_seekoff): Likewise.
1592         If mode==0 quit early with the result.
1593         Clear OEF flag after successful fseek.
1594         * libio/libio.h (_IO_FILE_complete): Add _IO_save_ptr.
1595         * libio/ftello.c (ftello): Add offset from original buffer if
1596         stream has pushed back characters.
1597         * libio/ftello64.c (ftello64): Likewise.
1598         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
1599         * libio/iofgetpos64.c (_IO_fgetpos64): Likewise.
1600         * libio/ioftell.c (_IO_ftell): Likewise.
1601         * libio/genops.c (_IO_switch_to_main_get_area): Swap _IO_read_ptr
1602         and _IO_save_ptr.
1603         (_IO_switch_to_backup_area): Save _IO_read_ptr in _IO_save_ptr.
1604         (_IO_default_pbackfail): Only stored push back character in original
1605         buffer if it is the same as the one in the file at this position.
1606         * libio/iofclose.c: Free backup buffer if one is available.
1607         * libio/ioseekoff.c (_IO_seekoff): Only remove pushback buffer if
1608         mode!=0.
1610         * strdlib/strtol.c (strtol): Handle 0x... string for base!=0 correctly.
1612         * time/strftime.c [_LIBC] (ampm): Use tp->tm_hour not hour12.
1614         * stdio-common/vfscanf.c: Fix reading (nil) for %p.
1616 1998-09-18  Mark Kettenis  <kettenis@phys.uva.nl>
1618         * login/programs/pt_chown.c (more_help): Correct message that
1619         describes the purpose of the program.
1621         * login/openpty.c: Do not include pty-private.h.
1622         (pts_name): New function.  Return name of slave pseudo terminal in
1623         an allocated buffer if necessary.
1624         (openpty): Use pts_name to get name of the slave end of the pseudo
1625         terminal pair.
1627         * sysdeps/unix/grantpt.c (grantpt): Free buffer allocated by
1628         pts_name before return.
1630 1998-09-18 11:15  Ulrich Drepper  <drepper@cygnus.com>
1632         * math/math.h: Define __NO_MATH_INLINES if __STRICT_ANSI__.
1634 1998-09-18  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1636         * login/openpty.c: Include pty-private.h instead of
1637         pty-internal.h.
1639 1998-09-09  Philip Blundell  <pb@nexus.co.uk>
1641         * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Optimise a bit.
1643 1998-09-07  Philip Blundell  <pb@nexus.co.uk>
1645         * sysdeps/arm/dl-machine.h (RTLD_START): Keep in step with
1646         recent ld.so changes.
1647         (elf_machine_runtime_setup): Correct behaviour when profiling.
1649 1998-09-17 19:34  Ulrich Drepper  <drepper@cygnus.com>
1651         * sysdeps/unix/sysv/sysv4/bits/utsname.h: Fix typo.
1652         Patch by John Tobey <jtobey@banta-im.com>.
1654 1998-09-17  Mark Kettenis  <kettenis@phys.uva.nl>
1656         * login/pty-internal.h: Removed.  Moved constants related to the
1657         `grantpt' helper program protocol to ...
1658         * login/pty-private.h: ... here.  New file.
1659         * sysdeps/unix/sysv/linux/ptsname.c (ptsname): Reimplementation
1660         to make the function work with kernels >= 2.1.115.
1661         * sysdeps/unix/sysv/linux/getpt.c (getpt): Reimplement to call BSD
1662         version if using the cloning device fails.
1663         * sysdeps/unix/sysv/linux/grantpt.c: New file.
1664         * sysdeps/unix/sysv/linux/unlockpt.c: General cleanup.
1665         * sysdeps/unix/bsd/getpt.c (__getpt): Largely rewritten to allow
1666         use by Linux specific code.
1667         * sysdeps/unix/bsd/unlockpt.c: General cleanup.
1668         * sysdeps/unix/grantpt.c: Largely rewritten.  (pts_name): New
1669         function.  (grantpt): Use pts_name, check group and permission
1670         mode in addition to owner.  Try to set the owner, group and
1671         permission mode first without invoking the helper program.
1672         * login/programs/pt_chown.c: Largely rewritten.  Add argp and
1673         internationalization support.  Use symbolic constants instead of
1674         hardwired numbers for permission mode.
1675         * sysdeps/unix/bsd/ptsname.c: New file.
1677 1998-09-17 22:04  Tim Waugh  <tim@cyberelk.demon.co.uk>
1679         * posix/wordexp-test.c: Undo last change.
1681         * posix/wordexp.c: Undo last change.
1683 1998-09-16  Ulrich Drepper  <drepper@cygnus.com>
1685         * nscd/grpcache.c (save_grp): Partly undo last change.
1687         * nscd/pwdcache.c (save_pwd): Undo last change.
1689 1998-09-14  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1691         * sysdeps/mach/hurd/dl-cache.c (_dl_unload_cache): New dummy
1692         function.  Reported by okuji@kuicr.kyoto-u.ac.jp [PR libc/789].
1694 1998-09-15  David S. Miller  <davem@pierdol.cobaltmicro.com>
1696         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_runtime_setup):
1697         Add profiling support.
1698         (TRAMPOLINE_TEMPLATE): New macro.
1699         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
1700         (RTLD_START): Prettify, and set __libc_stack_end properly.
1701         (elf_machine_rela) [R_SPARC_COPY]: Remove RTLD_BOOTSTRAP ifndef
1702         and check for sym being NULL instead.
1703         * sysdeps/sparc/sparc64/addmul_1.S: Adjust to allocate 192 bytes
1704         of stack space.
1705         * sysdeps/sparc/sparc64/lshift.S: Likewise.
1706         * sysdeps/sparc/sparc64/mul_1.S: Likewise.
1707         * sysdeps/sparc/sparc64/rshift.S: Likewise.
1708         * sysdeps/sparc/sparc64/submul_1.S: Likewise.
1709         * sysdeps/sparc/sparc64/elf/crtbegin.S: Likewise and remove old
1710         MEDANY code model %g4 usage.
1711         * sysdeps/sparc/sparc64/elf/crtend.S: Likewise and remove old
1712         MEDANY code model %g4 usage.
1713         * sysdeps/sparc/sparc64/elf/start.S: Rework to not use old FULLANY
1714         code model address formation.
1715         * sysdeps/sparc/sparc64/dl-machine.h: Don't include link.h, do
1716         include elf/ldsodefs.h
1717         (DT_SPARC): Remove.
1718         (elf_machine_matches_host): It is now EM_SPARCV9.
1719         (elf_machine_dynamic): Clean up to remove ugly cast.
1720         (elf_machine_fixup_plt): Rework for new V9 ABI, add support for
1721         new PLT formats.
1722         (elf_machine_rela): Don't do anything at all for R_SPARC_NONE.
1723         Prettify rest of function.
1724         [R_SPARC_COPY]: Check for sym being NULL.
1725         [R_SPARC_32]: Handle it.
1726         [R_SPARC_H44, R_SPARC_M44, R_SPARC_L44]: Handle them for the
1727         MEDMID code model.
1728         [R_SPARC_HH22, R_SPARC_HM10, R_SPARC_LM22]: Handle them for the
1729         MEDANY code model.
1730         [R_SPARC_NONE]: Remove this case, as it is now checked earlier.
1731         (elf_machine_runtime_setup): Rewrite for new V9 ABI plt formats.
1732         Add profiling support.
1733         (TRAMPOLINE_TEMPLATE): New macro.
1734         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Define in terms of that.
1735         (RTLD_START): Prettify and set __libc_stack_end.
1736         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h (SA_SIGINFO):
1737         Define.
1738         * sysdeps/unix/sysv/linux/sparc/bits/signum.h (_NSIG): Set to 64.
1739         (SIGRTMIN, SIGRTMAX, __SIGRTMIN, __SIGRTMAX): Define.
1740         * sysdeps/unix/sysv/linux/sparc/sparc32/brk.c (__brk): Remove
1741         unused variable scratch.
1742         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1743         (__syscall_rt_sigaction, __rt_sigreturn_stub, __sigreturn_stub):
1744         Declare.
1745         (__sigaction): Rewrite rt_sigaction case to pass correct sigreturn
1746         stub to rt_sigaction syscalls.  Rewrite non-rt case to use correct
1747         old format kernel sigaction structures.
1748         * sysdeps/unix/sysv/linux/sparc/sparc64/ucontext.h: Move...
1749         * sysdeps/unix/sysv/linux/sparc/sparc64/sys/ucontext.h: to here.
1750         * sysdeps/unix/sysv/linux/sparc/sparc64/Dist: Remove ucontext.h
1751         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/setjmp.h: Fix
1752         ucontext include.
1753         (_JMPBUF_UNWINDS): Define.
1754         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/statfs.h: Declare
1755         statfs64 structure, which is exactly the same as the normal one.
1756         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Allocate 192 bytes
1757         of stack.  Use correct syscall trap number.  Add branch prediction
1758         settings to branch instructions.  Remove old MEDANY code model %g4
1759         referneces for non-PIC.
1760         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Likewise.
1761         * sysdeps/unix/sysv/linux/sparc/sparc64/init-first.h: Likewise.
1762         * sysdeps/unix/sysv/linux/sparc/sparc64/pipe.S: Likewise.
1763         * sysdeps/unix/sysv/linux/sparc/sparc64/syscall.S: Likewise.
1764         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1765         * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S: Add
1766         __libc_longjmp and __libc_siglongjmp strong aliases.
1767         * sysdeps/unix/sysv/linux/sparc/sparc64/readdir.c (__readdir64):
1768         Also define to __no__readdir64_decl around readdir.c inclusion.
1769         (__readdir64): Add strong alias.
1770         * sysdeps/unix/sysv/linux/sparc/sparc64/socket.S: New file.
1771         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (getrlimit):
1772         Set strong and weak names properly.
1774 1998-09-16 11:25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1776         * manual/Makefile (AWK): Default to gawk if standalone.
1778 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1780         * Makefile (distribute): Undo last change.
1781         * Make-dist (+tsrc) [not subdir]: Also include indirection headers
1782         for sysdep headers.
1783         (+subdir-headers): Removed, unused.
1785 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1787         * stdio-common/Makefile ($(inst_includedir)/bits/stdio_lim.h): Use
1788         $(do-install).
1790 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1792         * Makerules ($(+sysdir_pfx)sysd-Makefile): Don't check for
1793         absolute name in $(config-sysdirs), can never happen.
1794         ($(+sysdir_pfx)sysd-rules): Likewise.
1795         * Makeconfig (full-config-sysdirs): Likewise.
1796         (all-Subdirs-files): Prepend $(..).
1798         * configure.in: Don't check for absolute name in $add_ons_pfx, can
1799         not happen.  Let --enable-add-ons=yes work if no add-ons actually
1800         exist.
1802 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1804         * Rules ($(common-objpfx)bits/stdio_%.h): Remove extra
1805         continuations in command.
1807 1998-09-15  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1809         * libio/oldstdfiles.c (_IO_stdin_used): Update declaration.
1811 1998-09-16 00:47  Tim Waugh  <tim@cyberelk.demon.co.uk>
1813         * posix/wordexp-test.c: If expansion or substitution occurs
1814         anywhere in a word, the entire word is subject to field-splitting.
1816         * posix/wordexp.c (parse_glob): Look for end of word instead of
1817         end of field when deciding what to glob.
1818         (field_split_word): New function, now the only place where
1819         field-splitting is performed.
1820         (parse_dollars): New parameter - tell the caller if
1821         field-splitting should be performed on this word.
1823         * posix/wordexp-test.c (testit): Only call wordfree if wordexp
1824         succeeded (or failed with WRDE_NOSPACE).
1826 1998-09-15 19:53 1998  Tim Waugh  <tim@cyberelk.demon.co.uk>
1828         * posix/wordexp.c (wordexp): Don't convert IFS characters to
1829         blanks.
1831         * posix/wordexp-test.c: Words not the result of expansion or
1832         substitution should remain unchanged.
1834 1998-09-15  Ulrich Drepper  <drepper@cygnus.com>
1836         * elf/dynamic-link.h [!ELF_MACHINE_PLTREL_OVERLAP]
1837         (_ELF_DYNAMIC_DO_RELOC): Correctly set ranges[1].lazy.
1839 1998-09-15  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
1841         * stdio-common/Makefile: Include Makeconfig so that
1842         $(inst_includedir) is defined.
1844 1998-09-14  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1846         * io/pwd.c: Include <mcheck.h>.
1848 1998-09-15 08:00  Ulrich Drepper  <drepper@cygnus.com>
1850         * nscd/pwdcache.c (save_pwd): Correct copying.
1851         * nscd/grpcache.c (save_grp): Likewise.
1853 1998-09-14 23:36  Ulrich Drepper  <drepper@cygnus.com>
1855         * nscd/pwdcache.c (save_pwd): Rewrite to use only one malloc call.
1856         (free_pwd): Adjust for this change.
1857         * nscd/grpcache.c (save_grp): Rewrite to use only one malloc call.
1858         (free_grp): Adjust for this change.
1860 1998-09-14  Ulrich Drepper  <drepper@cygnus.com>
1862         * nscd/pwdcache.c (cache_pwdinit): Allocate uidtbl of correct size.
1864 1998-09-14 15:29  Ulrich Drepper  <drepper@cygnus.com>
1866         * stdio-common/Makefile (headers): Remove bits/stdio_lim.h.
1867         (install-others): Add bits/stdio_lim.h.
1868         Add rule to install bits/stdio_lim.h.
1870         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
1872         * Makefile (distribute): Add include/sys/mman.h.
1874         * sysdeps/powerpc/Dist: Add dl-machine.c and dl-start.S.
1875         * sysdeps/unix/sysv/linux/Dist: Add sys/sendfile.h.
1876         * sysdeps/unix/sysv/linux/arm/Dist: Add init-first.h.
1878         * grp/initgroups.c: Include stdlib.h.
1879         Patch by Zack Weinberg.
1881 1998-09-14 22:46  Tim Waugh  <tim@cyberelk.demon.co.uk>
1883         * posix/wordexp-test.c: Chet Ramey confirmed that bash's behaviour
1884         for field-splitting :abc: is correct, and that two fields should
1885         result. Revert tests to reflect this.
1887         * posix/wordexp.c (w_emptyword): Remove function.
1888         (exec_comm): Don't use w_emptyword.
1889         (parse_param): Likewise.
1891 1998-09-14 15:00  Ulrich Drepper  <drepper@cygnus.com>
1893         * sysdeps/arm/fpu/Dist: Moved to...
1894         * sysdeps/arm/Dist: ...here.
1895         * sysdeps/posix/Dist: Removed.
1896         * sysdeps/unix/sysv/linux/Dist: Move sys/debugreg.h to...
1897         * sysdeps/unix/sysv/linux/i386/Dist: ...here.
1899 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
1901         * csu/init.c: Don't drag _IO_2_1_stdin_ into the executable.
1903 1998-09-14 11:26  Ulrich Drepper  <drepper@cygnus.com>
1905         * wcsmbs/wcsmbs-tst1.c: Include stdlib.h.
1907 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1909         * libc-work/nis/nss_nisplus/nisplus-service.c
1910         (_nss_nisplus_parse_servent): Convert port in network byte order.
1912 1998-09-14 07:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1914         * stdlib/stdlib.h: Add a switch, __need_malloc_and_calloc,
1915         to provide only malloc and calloc.
1916         * include/stdlib.h: Support the above.
1917         * string/bits/string2.h: Use __need_malloc_and_calloc when
1918         including stdlib.h.
1919         (__string2_1bptr_p): Avoid -Wbad-function-cast warnings.
1921         * iconvdata/iso-2022-jp.c: Include <stdlib.h>.
1922         * iconvdata/iso646.c: Include <stdlib.h>.
1924 1998-09-14 07:51 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1926         * sunrpc/rpc_cout.c: Add braces around ambiguous else.
1927         * sysdeps/libm-ieee754/w_pow.c: Likewise.
1928         * sysdeps/libm-ieee754/w_powf.c: Likewise.
1929         * sysdeps/libm-ieee754/w_powl.c: Likewise.
1931 1998-09-14 07:57 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
1933         * stdio-common/stdio_lim.h.in: New file.  All parameters
1934         are adjustable at build time.
1935         * Rules: Add a rule to build bits/stdio_lim.h from
1936         stdio-common/stdio_lim.h.in.  (It has to be in Rules so that
1937         all subdirectories know how to make the file.  It can't be
1938         in Makerules because then it gets built at top level and the
1939         dependencies are wrong.)
1941         * stdio-common/Makefile (distribute): Add stdio_lim.h.in.
1942         * sysdeps/unix/sysv/linux/Makefile: Delete rules to make
1943         stdio_lim.h.
1944         * sysdeps/unix/sysv/linux/stdio_lim.h.in: Removed.
1945         * sysdeps/unix/sysv/linux/Dist: Take out stdio_lim.h.in.
1946         * sysdeps/posix/Makefile: Removed.
1947         * sysdeps/posix/mk-stdiolim.c: Removed.
1948         * sysdeps/generic/bits/stdio_lim.h: Removed.
1950 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1952         * argp/argp-help.c: Fixup indentation.
1953         * nss/nss_files/files-alias.c: Quiet -Wparentheses warning.
1954         * resolv/nss_dns/dns-network.c: Likewise.
1955         * resolv/res_send.c: Likewise.
1956         * rt/aio_cancel.c: Likewise.
1957         * rt/aio_misc.c: Likewise.
1959 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1961         * Makefile (install-symbolic-link): Remove the link list file at last.
1962         * Makerules (install-clean-symbolic-link-list): Removed.
1964 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1966         * timezone/tst-timezone.c: Print time in UTC to get consistent
1967         output.
1969 1998-09-12  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1971         * elf/rtld.c (_dl_rpath): Removed.
1972         * elf/dl-support.c (_dl_path): Removed.
1973         * elf/Makefile ($(objpfx)ld.so): Don't pass -rpath.
1974         (CFLAGS-dl-support.c): Removed.
1976         * elf/dl-load.c (env_path_list): Renamed from fake_path_list.  All
1977         uses changed.
1978         (_dl_init_paths): Always set env_path_list from LD_LIBRARY_PATH,
1979         instead of appending it to the main map's rpath info.
1980         (_dl_map_object): Consistently use LD_LIBRARY_PATH after all
1981         DT_RPATHs.  This makes it effective again.
1982         (decompose_rpath): Remove second parameter, callers changed.
1983         (fillin_rpath): Allocate enough space in curwd.
1984         (expand_dynamic_string_token): Cope with get_origin returning -1.
1986 1998-09-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
1988         * libc-work/nis/nss_compat/compat-pwd.c: Add support for
1989         passwd.adjunct.
1991         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwent_r): Correct test for
1992         invalid password.
1994 1998-09-13 18:06  Ulrich Drepper  <drepper@cygnus.com>
1996         * locale/programs/locale.c: Update dates.
1998 1998-09-13  Mark Kettenis  <kettenis@phys.uva.nl>
2000         * sysdeps/generic/bits/types.h: Include <features.h>.  Make sure
2001         size_t is defined.  Some reordering of definitions to make
2002         maintaining this file in parallel with the linux-specific file easier.
2004 1998-09-13  Ulrich Drepper  <drepper@cygnus.com>
2006         * io/pwd.c (main): Add call to mtrace.
2008         * malloc/mtrace.pl: Quote @ in string.
2010 1998-09-13 19:25  Tim Waugh  <tim@cyberelk.demon.co.uk>
2012         * posix/wordexp.c (parse_arith): Fix memory leaks.
2013         (exec_comm): Likewise.
2014         (parse_param): Likewise.
2015         (wordexp): Likewise.
2016         (exec_comm): Reduce number of function return points.
2017         (parse_param): Likewise.
2018         (wordexp): Likewise.
2020 1998-09-13 14:53  Tim Waugh  <tim@cyberelk.demon.co.uk>
2022         * posix/wordexp-test.c: Field-splitting ':abc:' with IFS=: should
2023         yield three fields, not two.  Test both parameter expansion and
2024         command substitution for correct field-splitting behaviour.
2026         * posix/wordexp.c (w_emptyword): New function.
2027         (parse_param): Use it.
2028         (exec_comm): Likewise, for consistency with the way parse_param
2029         splits fields.
2030         (parse_param): Fix some memory leaks.
2032 1998-09-13 18:04  Geoff Keating  <geoffk@ozemail.com.au>
2034         * sysdeps/powerpc/dl-machine.c (PPC_DCBST,PPC_SYNC,PPC_ISYNC,PPC_ICBI):
2035         Don't mark asm `volatile'.
2036         (__elf_machine_runtime_setup): Clear the last partial block in the PLT
2037         from the data cache too.  Assume it isn't in the instruction cache yet.
2038         (__elf_machine_fixup_plt): Clear the modified address from the caches.
2040 1998-09-12  Mark Kettenis  <kettenis@phys.uva.nl>
2042         * sysdeps/generic/segfault.c (install_handler): Install signal
2043         handler with SA_ONSTACK instead of setting the stack flags to
2044         SS_ONSTACK.  Do not install handler for SIGSTKFLT if it is not
2045         defined.
2047 1998-09-12 14:24 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2049         * signal/signal.h: Fix multiple inclusion guard to cover the
2050         entire file.
2051         * wcsmbs/wchar.h: Remove prototype of internal function
2052         __mbsrtowcs.
2053         * sysdeps/i386/i486/bits/string.h (memchr): Don't do
2054         arithmetic on `void *'.
2056 1998-09-12 01:09  Tim Waugh  <tim@cyberelk.demon.co.uk>
2058         * posix/wordexp-test.c: Fix wrong tests.  Add new tests.
2060         * posix/wordexp.c (wordexp): Perform word-splitting instead of
2061         field-splitting here.
2062         (wordexp): If out of memory mid-word, free the word (but still
2063         leave pwordexp alone for caller to see).
2064         (parse_param): Allow for zero-length fields (smarter checking of
2065         memory allocation failure).
2066         (w_addword): Convert NULL words to "".
2067         (wordexp): Convert left-over IFS characters to blanks (like bash).
2069 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
2071         * configure.in: Use test -f instead of test -e.
2072         Patch by John Tobey <jtobey@banta-im.com>.
2074         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
2075         * sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
2076         * sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
2077         * sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
2078         * sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
2079         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
2080         * sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
2081         Patches by John Tobey <jtobey@banta-im.com>.
2083         * time/strftime.c (my_strftime): Delay use of *tp values until
2084         latest possible point to allow partly initialized structures
2085         (e.g., from strptime).
2087         * iconvdata/Makefile (modules): Add ISO_10367-BOX, MAC-IS, NATS-DANO,
2088         and NATS-SEFI.
2089         Define *-routines variables for new modules.
2090         (distribute): Add .c files for new modules.
2091         (awk-generated-headers): Add iso_10367-box.h, mac-is.h, nats-dano.h,
2092         and nats-sefi.h.
2093         Add rules for header generation.
2094         * iconvdata/gconv-modules: Add entries for new modules.
2095         * iconvdata/iso_10367-box.c: New file.
2096         * iconvdata/mac-is.c: New file.
2097         * iconvdata/nats-dano.c: New file.
2098         * iconvdata/nats-sefi.c: New file.
2100 1998-04-30 18:20  H.J. Lu  <hjl@gnu.org>
2102         * elf/dl-load.c (_dl_init_paths): Don't check the dynamic
2103         loader if PIC is not defined.
2105 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
2107         * iconvdata/Makefile (modules): Add CSN_369103, CWI, DEC-MCS,
2108         ECMA-CYRILLIC, GOST_19768-74, GREEK-CCITT, GREEK7, GREEK7-OLD, INIS,
2109         INIS-8, INIS-CYRILLIC, ISO_6937-2, ISO_2033, ISO_5427, ISO_5427-EXT,
2110         and ISO_5428.
2111         Define *-routines variables for new modules.
2112         (distribute): Add .c files for new modules.
2113         (awk-generated-headers): Add csn_369103.h, cwi.h, dec-mcs.h,
2114         ecma-cyrillic.h, gost_19768-74.h, greek-ccitt.h, greek7.h,
2115         greek7-old.h, inis.h, inis-8.h, inis-cyrillic.h, iso_2033.h,
2116         iso_5427.h, iso_5427-ext.h, and iso_5428.h.
2117         Add rules for header generation.
2118         * iconvdata/gconv-modules: Add entries for new modules.
2119         * iconvdata/csn_369103.c: New file.
2120         * iconvdata/cwi.c: New file.
2121         * iconvdata/dec-mcs.c: New file.
2122         * iconvdata/ecma-cyrillic.c: New file.
2123         * iconvdata/gost_19768-74.c: New file.
2124         * iconvdata/greek-ccitt.c: New file.
2125         * iconvdata/greek7-old.c: New file.
2126         * iconvdata/greek7.c: New file.
2127         * iconvdata/inis-8.c: New file.
2128         * iconvdata/inis-cyrillic.c: New file.
2129         * iconvdata/inis.c: New file.
2130         * iconvdata/iso6937-2.c: New file.
2131         * iconvdata/iso_2033.c: New file.
2132         * iconvdata/iso_5427-ext.c: New file.
2133         * iconvdata/iso_5427.c: New file.
2134         * iconvdata/iso_5428.c: New file.
2136         * iconvdata/iso6937.c (from_ucs4): Correct 0x80, 0x81, and 0xb9
2137         entries.
2138         Convert U02dd correctly.
2140 1998-09-11 20:46  Richard Henderson  <rth@cygnus.com>
2142         * sysdeps/alpha/dl-machine.h (_dl_start_user): Pass pointer to
2143         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
2144         * sysdeps/sparc/sparc32/dl-machine.h (_dl_start_user): Likewise.
2145         * sysdeps/sparc/sparc64/dl-machine.h (_dl_start_user): Likewise.
2147 1998-09-11  Ulrich Drepper  <drepper@cygnus.com>
2149         * resolv/res_init.c (res_init): Handle resolv.conf file with only
2150         one nameserver correctly.  Patch by HJ Lu.
2152         * iconvdata/Makefile (modules): Add IEC_P27-1, BALTIC, ASMO_449,
2153         and ANSI_X3.110.
2154         Define *-routines variables for new modules.
2155         (distribute): Add .c files for new modules.
2156         (awk-generated-headers): Add iec_p27-1.h, baltic.h, and asmo_449.h.
2157         Add rules for hedaer generation.
2158         * iconvdata/gconv-modules: Add entries for new modules.  Pretty print.
2159         * iconvdata/ansi_x3.110.c: New file.
2160         * iconvdata/asmo_449.c: New file.
2161         * iconvdata/baltic.c: New file.
2162         * iconvdata/iec_p27-1.c: New file.
2164         * iconvdata/t61.c (from_ucs4): Correct 0x23, 0x24, 0x80, and 0x81
2165         entries.
2166         Convert U02dc correctly.
2168         * math/atest-exp.c: Add parentheses to avoid gcc warnings.
2169         * math/atest-exp2.c: Likewise.
2170         * math/atest-sincos.c: Likewise.
2172         * posix/getopt.h: Don't define non-POSIX stuff unless _GNU_SOURCE
2173         is defined.
2175 1998-09-11 10:51  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2177         * string/strcoll.c: Optimize a few expressions.
2178         * string/strxfrm.c: Likewise.
2180 1998-09-02  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2182         * manual/locale.texi: Fix typos.
2184 1998-09-10  Ulrich Drepper  <drepper@cygnus.com>
2186         * stdlib/random_r.c (__setstate_r): Allow call with same state
2187         array as currently used (PR libc/774).
2189         * include/limits.h: Include gcc's header even if this file is
2190         found more than once before it (PR libc/778)
2192         * sysdeps/unix/sysv/linux/Makefile [subdir==misc]
2193         (sysdep_headers): Remove sys/debugreg.h.
2194         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==misc]
2195         (sysdep_headers): Add sys/debugreg.h.
2196         * sysdeps/unix/sysv/linux/sys/debugreg.h: Removed.
2197         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: New file.
2199         * stdio-common/tmpnam.c: Move local static variable buf to
2200         toplevel and rename to tmpnam_buffer to ease debugging.
2201         Patch by Joe Keane <jgk@jgk.org>.
2202         Optimize s == NULL case a bit.
2204         * iconvdata/testdate/ISO-8859-10..UCS2: Update after charmap
2205         correction.
2207 1998-09-10 12:51  Ulrich Drepper  <drepper@cygnus.com>
2209         * resolv/res_init.c (res_init): Initialize _res.nscount and
2210         _res.nsaddr.sin_port differently for the can when no loopback
2211         is available to allow immediate timeout in non-networking environments.
2212         Patch by Cristian Gafton <gafton@redhat.com>.
2214 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2216         * localedata/charmaps/ISO-8859-10: Character 0xBD is HORIZONTAL
2217         BAR and not EM DASH.
2218         * localedata/charmaps/ISO_8859-SUPP: Likewise (character 0xD0).
2219         * localedata/charmaps/ISO-8859-7: Likewise (character 0xAF).
2220         Fixes PR libc/717.
2222 1998-09-10 11:53  Ulrich Drepper  <drepper@cygnus.com>
2224         * timezone/Makefile: Add rules to generate Asia/Tokyo zoneinfo files
2225         for test.
2226         * timezone/tst-timezone.c (tests): Fix typo in last patch.
2228         * time/tzfile.c (__tzfile_read): Handle case when there are no
2229         transitions.  Set __timezone based on computed offset.
2230         * time/tzset.c (tzset_internal): Set __timezone before returning.
2232         * time/tzset.c (tzset_internal): Optimize handling of local string
2233         copy.
2235 1998-09-10  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2237         * timezone/tst-timezone.c (tests): Add test for Asia/Tokyo (see PR
2238         libc/776).
2240 1998-09-09  Benjamin Kosnik  <bkoz@tintin.cygnus.com>
2242         * math/libm-test.c (exp10_test): Adapt epsilons for powerpc.
2243         (csqrt_test): Likewise.
2244         * sysdeps/powerpc/bits/fenv.h: Add parens.
2246 1998-09-09 18:48  Ulrich Drepper  <drepper@cygnus.com>
2248         * sysdeps/powerpc/dl-start.S (_start): Pass pointer to
2249         _dl_main_searchlist not _dl_default_scope to _dl_init_next.
2250         Patch by Benjamin Kosnik <bkoz@cygnus.com>.
2252 1998-09-09  Mark Kettenis  <kettenis@phys.uva.nl>
2254         * elf/dl-close.c (_dl_close): Don't free imap->l_origin if it is
2255         the special `-1' pointer.
2257 1998-09-09 09:32  Ulrich Drepper  <drepper@cygnus.com>
2259         * sysdeps/powerpc/dl-machine.h (elf_machine_rela): Make function
2260         inline.
2262 1998-09-07  Paul Eggert  <eggert@twinsun.com>
2264         * time/mktime.c (__EXTENSIONS__): Define if not defined.
2265         (_REENTRANT): Remove.  It has undesirable consequences in
2266         Solaris 2.6 (e.g. it turns off the putc macro).  Defining
2267         __EXTENSIONS__ makes localtime_r and gmtime_r visible, which
2268         is what we want.
2269         * time/strftime.c: Likewise.
2271 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2273         * elf/dl-error.c: Fix spelling.
2275 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2277         * stdlib/strfmon.c: Quiet -Wparentheses warnings.
2278         * stdio-common/_itoa.c: Likewise.
2279         * stdio-common/printf_fp.c: Likewise.
2280         * stdio-common/vfscanf.c: Likewise.
2281         * wcsmbs/wcstok.c: Likewise.
2282         * sysdeps/generic/glob.c: Likewise.
2283         * posix/getopt.c: Likewise.
2284         * sysdeps/posix/getaddrinfo.c: Likewise.
2285         * posix/wordexp.c: Likewise.
2286         * io/ftw.c: Likewise.
2287         * io/fts.c: Likewise.
2288         * misc/getpass.c: Likewise.
2289         * iconv/gconv_conf.c: Likewise.
2290         * argp/argp-fmtstream.c: Likewise.
2291         * argp/argp-help.c: Likewise.
2292         * elf/dl-load.c: Likewise.
2293         * locale/programs/stringtrans.c: Likewise.
2294         * catgets/gencat.c: Likewise.
2295         * posix/getconf.c: Likewise.
2296         * iconv/gconv_conf.c: Likewise.
2297         * iconv/iconv_prog.c: Likewise.
2299         * string/strcoll.c: Optimize a few expressions.
2300         * string/strxfrm.c: Likewise.
2302 1998-09-08  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2304         * elf/dl-open.c (dl_open_worker): Move decl of new_global up one
2305         level to avoid uninit variable warning.
2307 1998-09-09 10:34  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2309         * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
2310         instead of _dl_default_scope[2] as argument to _dl_init_next.
2312         * sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
2313         C9x macro.
2315 1998-09-08  Ulrich Drepper  <drepper@cygnus.com>
2317         Fix compatibility problems introduced in last change.
2318         * csu/initfini.c: Don't define __gmon_start__ if WEAK_GMON_START is
2319         defined.
2320         * sysdeps/unix/sysv/linux/i386/Makefile [subdir==csu]: Add
2321         -DWEAK_GMON_START to CFLAGS-initfini.s.
2323         * elf/dl-object.c (_dl_new_object): Store map address in
2324         _dl_loaded if _dl_loaded is NULL.
2325         * elf/rtld.c (dl_main): Don't update _dl_loaded here.
2327         * sysdeps/generic/setrlimit64.c: Remove stub warning.
2329 1998-09-07  Ulrich Drepper  <drepper@cygnus.com>
2331         * db2/common/db_apprec.c (__db_apprec): Add braces to make gcc
2332         quiet.
2333         * db2/btree/bt_cursor.c: Likewise.
2334         * db2/common/db_region.db_c: Likewise.
2335         * db2/common/db_salloc.db_c: Likewise.
2336         * db2/db/db.c: Likewise.
2337         * db2/db/db_rec.c: Likewise.
2338         * db2/hash/hash.c: Likewise.
2339         * db2/hash/hash_page.c: Likewise.
2340         * db2/hash/hash_rec.c: Likewise.
2341         * db2/log/log_findckp.c: Likewise.
2342         * db2/log/log_get.c: Likewise.
2343         * db2/log/log_put.c: Likewise.
2344         * db2/mp/mp_fget.c: Likewise.
2345         * db2/mp/mp_fput.c: Likewise.
2346         * db2/mp/mp_region.c: Likewise.
2347         * stdlib/strtol.c: Likewise.
2348         * string/strcoll.c: Likewise.
2349         * string/strxfrm.c: Likewise.
2350         * argp/argp-help.c: Likewise.
2351         * argp/argp-parse.c: Likewise.
2352         * resolv/res_debug.c: Likewise.
2354 1998-09-07 09:58  Ulrich Drepper  <drepper@cygnus.com>
2356         * math/tgmath.h (scalb): Only define for __USE_MISC or
2357         __USE_XOPEN_EXTENDED.  Patch by Zack Weinberg.
2359 1998-09-06  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2361         * libio/stdio.h: Fix comment.
2363         * stdio/stdio.h: Make vfscanf, vscanf and vsscanf available if
2364         __USE_ISOC9X.
2366 1998-09-06 09:53 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2368         * Makeconfig (+gccwarn): Remove -Wno-parentheses.
2370         * elf/dl-open.c: Quiet -Wparentheses warnings.
2371         * iconvdata/johab.c: Likewise.
2372         * iconvdata/uhc.c: Likewise.
2373         * inet/inet_net.c: Likewise.
2374         * io/fts.c: Likewise.
2375         * locale/newlocale.c: Likewise.
2376         * misc/getttyent.c: Likewise.
2377         * misc/mntent_r.c: Likewise.
2378         * misc/ttyslot.c: Likewise.
2379         * nscd/nscd_conf.c: Likewise.
2380         * nss/nsswitch.c: Likewise.
2381         * resolv/gethnamaddr.c: Likewise.
2382         * resolv/nsap_addr.c: Likewise.
2383         * resolv/res_debug.c: Likewise.
2384         * stdio-common/_itoa.c: Likewise.
2385         * stdlib/strtod.c: Likewise.
2386         * string/strverscmp.c: Likewise.
2387         * sunrpc/svc.c: Likewise.
2388         * sysdeps/libm-ieee754/e_cosh.c: Likewise.
2389         * sysdeps/libm-ieee754/e_gamma_r.c: Likewise.
2390         * sysdeps/libm-ieee754/e_sinh.c: Likewise.
2391         * sysdeps/posix/getaddrinfo.c: Likewise.
2393 1998-09-06 15:13  Ulrich Drepper  <drepper@cygnus.com>
2395         * elf/dlsym.c (dlsym_doit): Use new RTLD_DEFAULT macro to test
2396         for use of global scope.
2397         * elf/dlvsym.c (dlvsym_doit): Likewise.
2399 1998-09-02  Paul Eggert  <eggert@twinsun.com>
2401         * strftime.c (my_strftime): When mbrlen returns (size_t) -2,
2402         copy the redundant bytes at the end of the format as-is; don't
2403         just copy their first byte and then rescan, as that might get
2404         us an encoding error.
2405         Account correctly for the length of multibyte sequences in the
2406         format.
2408 1998-09-03 20:14  Tim Waugh  <tim@cyberelk.demon.co.uk>
2410         * posix/wordexp-test.c: Add tests for different IFS values.
2411         Change unquoted-newline test so that newline is not in IFS.
2413         * posix/wordexp.c (wordexp): Correct null/unset mix-up when
2414         determining IFS characters.  Return WRDE_BADCHAR for unquoted
2415         special characters _except_ if they are separators.
2417 1998-09-06 10:56  Ulrich Drepper  <drepper@cygnus.com>
2419         * include/tgmath.h: New file.
2421         * libio/stdio.h: Correct reversed #ifs.
2422         Patch by Zack Weinberg.
2424         * manual/creature.texi: Better explain reason for feature select
2425         macros.
2426         Patch by Michael Deutschmann <michael@talamasca.wkpowerlink.com>.
2428 1998-09-06 10:25 -0400  Zack Weinberg  <zack@rabi.phys.columbia.edu>
2430         * include/alloca.h: Add multiple-inclusion guard.
2431         * include/db.h: Likewise.
2432         * include/db_185.h: Likewise.
2433         * include/dlfcn.h: Likewise.
2434         * include/fcntl.h: Likewise.
2435         * include/grp.h: Likewise.
2436         * include/libintl.h: Likewise.
2437         * include/mntent.h: Likewise.
2438         * include/pwd.h: Likewise.
2439         * include/sched.h: Likewise.
2440         * include/search.h: Likewise.
2441         * include/setjmp.h: Likewise.
2442         * include/shadow.h: Likewise.
2443         * include/signal.h: Likewise.
2444         * include/stdio.h: Likewise.
2445         * include/stdlib.h: Likewise.
2446         * include/string.h: Likewise.
2447         * include/termios.h: Likewise.
2448         * include/time.h: Likewise.
2449         * include/ulimit.h: Likewise.
2450         * include/utmp.h: Likewise.
2451         * include/wchar.h: Likewise.
2452         * include/sys/file.h: Likewise.
2453         * include/sys/gmon.h: Likewise.
2454         * include/sys/ioctl.h: Likewise.
2455         * include/sys/mman.h: Likewise.
2456         * include/sys/resource.h: Likewise.
2457         * include/sys/select.h: Likewise.
2458         * include/sys/socket.h: Likewise.
2459         * include/sys/statfs.h: Likewise.
2460         * include/sys/time.h: Likewise.
2461         * include/sys/times.h: Likewise.
2462         * include/sys/wait.h: Likewise.
2464 1998-09-06 09:00  Ulrich Drepper  <drepper@cygnus.com>
2466         * version.h (VERSION): Bump to 2.0.96.
2468         Rewrite runtime linker to be truly thread-safe.  There is now no
2469         global variable specifying the scope.  We create all needed
2470         scopes at the time the link maps are created.
2471         * elf/Versions [GLIBC_2.1]: Add _dl_loaded and _dl_main_searchlist.
2472         * elf/link.h: Add struct r_scope_elem and use this for l_searchlist,
2473         l_symbolic_searchlist, l_scope, and l_local_scope elements in
2474         struct link_map.
2475         * elf/dl-close.c: Rewritten accordingly.
2476         * elf/dl-deps.c: Likewise.
2477         * elf/dl-error.c: Likewise.
2478         * elf/dl-init.c: Likewise.
2479         * elf/dl-load.c: Likewise.
2480         * elf/dl-lookup.c: Likewise.
2481         * elf/dl-object.c: Likewise.
2482         * elf/dl-open.c: Likewise.
2483         * elf/dl-reloc.c: Likewise.
2484         * elf/dl-runtime.c: Likewise.
2485         * elf/dl-support.c: Likewise.
2486         * elf/dl-symbol.c: Likewise.
2487         * elf/dl-version.c: Likewise.
2488         * elf/dlsym.c: Likewise.
2489         * elf/dlvsym.c: Likewise.
2490         * elf/ldsodefs.h: Likewise.
2491         * elf/rtld.c: Likewise.
2492         * iconv/gconv_dl.c: Likewise.
2493         * nss/nsswitch.c: Likewise.
2494         * sysdeps/i386/dl-machine.h: Likewise.
2495         * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Likewise.
2497         * elf/dlfcn.h: Declare dladdr only for __USE_GNU.
2498         Define RTLD_DEFAULT.
2500 1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
2502         * sysdeps/mach/hurd/i386/init-first.c (init1): Call
2503         __getopt_clean_environment with __environ instead of envp.
2505 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
2507         * sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
2509         * string/argz-extract.c (__argz_extract): Add de-consting cast for
2510         setting results.
2512         * string/argz.h (argz_next): Add de-consting cast for return.
2513         * string/argz-next.c (__argz_next): Likewise.
2515         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
2516         Don't add netinet/udp.h, netinet/ip_icmp.h here.
2517         * sysdeps/gnu/Makefile: Do it here instead.
2518         * sysdeps/unix/sysv/linux/Dist: Move those files from here ...
2519         * sysdeps/gnu/Dist: ... to here.
2521         * sysdeps/unix/sysv/linux/netinet/ip_icmp.h,
2522         sysdeps/unix/sysv/linux/netinet/tcp.h,
2523         sysdeps/unix/sysv/linux/netinet/udp.h: Moved to sysdeps/gnu/netinet.
2525 1998-09-04  Roland McGrath  <roland@baalperazim.frob.com>
2527         * string/argz.h (argz_extract, argz_next): Use `const' for ARGZ param.
2528         * string/argz-next.c, string/argz-extract.c: Fix defns.
2530 1998-09-03  Roland McGrath  <roland@baalperazim.frob.com>
2532         * mach/Makefile: Use -include for mach-syscalls.mk to silence warning.
2534         * sysdeps/mach/hurd/sysd-stdio.c: Declare fns
2535         __stdio_{read,write,seek,close,fileno} using __io_*_fn types.
2536         * sysdeps/generic/sysd-stdio.c: Likewise.
2538 1998-09-02  Ulrich Drepper  <drepper@cygnus.com>
2540         * elf/dl-load.c (fillin_rpath): Handle "/" as RPATH correctly.
2541         (_dl_map_object_from_fd): Make NAME argument const.
2542         Remove last parameter in _dl_new_object call.
2543         (print_search_path): Correct construction of composed path name.
2544         (_dl_map_object): Prevent looking at RPATH of the main map twice.
2545         Remove last parameter in _dl_new_object call.
2546         * elf/dl-object.c: Remove last parameter.  Determine whether create
2547         origin entry based on empty realname.  Handle file in root directory
2548         correctly.
2549         * elf/ldsodefs.h: Adjust prototype for _dl_new_object.
2550         * elf/rtld.c (dl_main): Add comment describing reason for memory leak.
2551         Remove last parameter in _dl_new_object call.
2552         * sysdeps/generic/dl-origin.h: Handle file in root directory correctly.
2553         * sysdeps/unix/sysv/linux/dl-origin.h: Likewise.
2555 1998-09-01  Ulrich Drepper  <drepper@cygnus.com>
2557         * elf/dl-close.c (_dl_close): Add more comments and correct some.
2558         Free l_searchlist and l_dupsearchlist.
2560         * debug/catchsegv.sh: Add one more pair of quotes.
2562 1998-09-01 17:53  Ulrich Drepper  <drepper@cygnus.com>
2564         * elf/dl-load.c (add_name_to_object): Change return type to void and
2565         make NAME parameter const.  Allocate room for NAME in same memory
2566         block used for l_libname entry.
2567         (_dl_map_object_from_fd): Don't free NAME on failure.
2568         (map_segment): Pass SONAME to add_name_to_object, not a copy.
2569         (_dl_map_object): Don't create copy of NAME.  Pass NAME to
2570         _dl_map_object_from_fd.
2571         * elf/dl-object.c (dl_new_object): Allocate room for NAME in same
2572         memory block used for l_libname entry.
2573         * elf/dl-close.c: Adjust free()ing for this change.
2575 1998-09-01 15:36  Ulrich Drepper  <drepper@cygnus.com>
2577         * malloc/Makefile: Include Makeconfig before testing config-sysdirs.
2579         * malloc/mtrace.c: Add bug report address.  Update email address.
2580         Add more @XXX@ to print correct address size.
2582         * elf/dl-addr.c (_dl_addr): Make sure that map to be examined is
2583         really initialized.
2585         * elf/dl-close.c (_dl_close): Use l_map_start and l_map_end info
2586         for munmap call instead of examining phdr again.
2587         Free all malloc()ed strings and arrays.
2589 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
2591         * sysdeps/powerpc/Makefile [subdir=elf]: Add new files split out of
2592         dl-machine.h.
2593         * sysdeps/powerpc/dl-machine.c: New file.
2594         * sysdeps/powerpc/dl-machine.h: Move much stuff into separate
2595         files.  Revise ELF_PREFERRED_ADDRESS to take account of
2596         the new mapping information (fixes bug involving huge bloated
2597         web browser).  Set ELF_MACHINE_PLTREL_OVERLAP.
2598         * sysdeps/powerpc/dl-start.S: New file.
2600         * elf/dl-load.c (_dl_map_object_from_fd): Initialise l_map_start,
2601         l_map_end.
2602         * elf/do-rel.h: Call elf_machine_rel only once (to save space).
2603         * elf/dynamic-link.h: Allow PLT relocs to be in the middle of the
2604         others.  Call elf_dynamic_do_##reloc only once (to save even more
2605         space).
2606         * elf/link.h: Add new members l_map_start and l_map_end to keep
2607         track of the memory map.
2608         * elf/rtld.c (_dl_start): Initialise l_map_start for ld.so and
2609         the executable.
2611 1998-09-01 11:53  Ulrich Drepper  <drepper@cygnus.com>
2613         * debug/Makefile (catchsegv): We need not rewrite SOVER anymore.
2614         Reported by Andreas Jaeger.
2616         * posix/glob.h: Use __size_t instead of size_t in definitions and
2617         make sure this is defined.
2619 1998-09-01 10:34  Ulrich Drepper  <drepper@cygnus.com>
2621         * manual/locale.texi: Almost complete rewrite.  Document more functions
2622         and functionality.
2623         * manual/arith.texi: Correct reference.
2624         * manual/string.texi: Pretty printing.
2626         * manual/texinfo.tex: Update from last available version.
2628 1998-08-31 22:44  Ulrich Drepper  <drepper@cygnus.com>
2630         * nis/nss_nis/nis-pwd.c (_nss_nis_getpwnam_r): Correct test for
2631         invalid password.
2632         (_nss_nis_getpwuid_r): Likewise.
2633         Patch by Matthew Arnison <matthewa@physics.usyd.edu.au>.
2635         * inet/rcmd.c: Implement netgroup support.
2636         Patch by Dick Streefland <dick_streefland@tasking.com>.
2638 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
2640         * elf/dl-close.c (_dl_close): Update _dl_loaded if the first
2641         object on the list is removed.  Don't use this code for PIC.
2642         Reported by HJ Lu [PR libc/770].
2644 1998-08-31 15:56  Ulrich Drepper  <drepper@cygnus.com>
2646         * db2/db_int.h: Use <db.h> instead of "db.h" to find header in include.
2648         * include/stdio.h: Add __vsscanf.
2650         * libio/stdio.h: Make vfscanf, scanf, and vsscanf available if
2651         __USE_ISOC9X.
2652         Remove __vsscanf declaration.
2653         Always declare fgetpos and fsetpos.
2655         * math/math.h: Define isinf as macro.
2656         * math/bits/mathcalls.h: Change to declare __isinf all the time.
2657         Don't declare scalb for ISO C 9x.
2659         * math/tgmath.h: Define fma.  Rewrite the underlying macros.
2661         * stdlib/stdlib.h: Declare strtof and strtold is __USE_ISOC9X.
2663         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Allow inclusion from
2664         sys/ucontext.h.
2666         * sysdeps/wordsize-32/inttypes.h: Define missing PRI* and SCN*
2667         macros.
2669 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2671         * sysdeps/standalone/bits/errno.h (ENOMSG): Remove duplicate.
2672         Reported by jreising@frequentis.com [PR libc/767].
2674 1998-08-31  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2676         * io/lockf.c (lockf): Move initilisation of fl.l_whence and
2677         fl.l_start at beginning of function.
2678         Patch by Geoff. Dash <geoffd@zeta.org.au> [PR libc/769].
2680 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
2682         * io/sys/stat.h (ALLPERMS): Fix type (S_ISTXT -> S_ISVTX).
2683         Reported by Rob.Hagopian@vu.union.edu [PR libc/763].
2685         * nscd/nscd.init: Make it work in RedHat systems.
2686         Patch by Christian Gafton.
2688 1998-08-29  Philip Blundell  <philb@gnu.org>
2690         * catgets/Makefile: Don't try to run test programs when
2691         cross-compiling.
2693 1998-08-31  Ulrich Drepper  <drepper@cygnus.com>
2695         * signal/signal.h: Include bits/sigthread.h only if __USE_POSIX.
2696         Reported by Zack Weinberg.
2698 1998-08-30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2700         * sysdeps/unix/sysv/linux/Dist: Add umount.S and umount2.S.
2701         * elf/Makefile (distribute): Remove ldd.sh.in.
2703 1998-08-31 11:46  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2705         * sysdeps/unix/sysv/linux/dl-origin.h (get_origin): Remove unused
2706         variable.
2708 1998-08-29  Ulrich Drepper  <drepper@cygnus.com>
2710         * sysdeps/i386/register-dump.h: Move to ...
2711         * sysdeps/unix/sysv/linux/i386/register-dump.h: ...here.
2713 1998-08-28 22:49  Ulrich Drepper  <drepper@cygnus.com>
2715         * elf/do-rel.h (elf_dynamic_do_rel): Call elf_machine_lazy_rel
2716         with load address, not map address.
2717         * sysdeps/alpha/dl-machine.h (elf_machine_lazy_rel): Change first
2718         parameter and use this value.
2719         * sysdeps/arm/dl-machine.h: Likewise.
2720         * sysdeps/i386/dl-machine.h: Likewise.
2721         * sysdeps/m68k/dl-machine.h: Likewise.
2722         * sysdeps/mips/dl-machine.h (elf_machine_lazy_rel): Change first
2723         parameter.
2724         * sysdeps/powerpc/dl-machine.h: Likewise
2725         * sysdeps/sparc/sparc32/dl-machine.h: Likewise
2726         * sysdeps/sparc/sparc64/dl-machine.h: Likewise
2728 1998-08-28 09:22  Ulrich Drepper  <drepper@cygnus.com>
2730         * elf/rtld.c (process_envvars): Fix copy&paste error.
2732         * malloc/malloc.c (malloc_hook_ini): Don't overwrite realloc and
2733         memalign hook.
2734         (realloc_hook_ini): Don't overwrite memalign hook.
2735         (memalign_hook_ini): Don't overwrite malloc and memalign hooks.
2736         Reported by Philippe Troin <phil@fifi.org>.
2738         * malloc/mcheck.c (mprobe): Call checkhdr with adjusted pointer.
2739         Patch by Philippe Troin <phil@fifi.org>.
2741 1998-08-26  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2743         * sysdeps/generic/segfault.c (install_handler): Protect the
2744         non-POSIX signals with #ifdef.
2745         (catch_segfault): Add missing mode parameter for open.
2746         * debug/catchsegv.sh: Avoid termination message from shell.  Allow
2747         other termination signals.
2749 1998-08-27  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2751         * debug/Makefile (distribute): Add register-dump.h.
2753 1998-08-28 10:41  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2755         * sysdeps/unix/sysv/linux/m68k/register-dump.h: New file.
2757 1998-08-27 19:42  Ulrich Drepper  <drepper@cygnus.com>
2759         * elf/Makefile (distribute): Add dl-origin.h.
2760         * sysdeps/generic/dl-origin.h: New file.
2761         * sysdeps/unix/sysv/linux/dl-origin.h: New file.
2762         * elf/link.h (struct link_map): Add l_origin field.
2763         * elf/dl-load.c (expand_dynamic_string_token): New function.
2764         (decompose_path): Remove WHERE argument, take link map pointer instead.
2765         Call expand_dynamic_string_token instead of local_strdup to make copy
2766         of rpath.
2767         (_dl_init_paths): Call decompose_path with correct argument.
2768         (_dl_map_object_from_fd): Define static is EXTERNAL_MAP_FROM_FD is
2769         not defined.
2770         Check EI_OSABI and EI_ABIVERSION fields in header.
2771         Call _dl_new_object with extra argument.
2772         (_dl_map_object): Call decompose_path with correct argument.
2773         Call expand_dynamic_string_token instead of local_strdup to also
2774         expand DST.
2775         Call _dl_new_object with extra argument.
2776         * elf/dl-object.c (_dl_new_object): Determine l_origin for all maps
2777         but the main one if new argument is nonzero.
2778         * elf/ldsodefs.h: Adjust for _dl_new_object change.
2779         * elf/dl-support.c: Define _dl_origin_path.
2780         * elf/rtld.c: Likewise.  Set _dl_origin_path based on LD_ORIGIN_PATH.
2781         (dl_main): Call _dl_new_object with extra argument.
2783         * elf/dl-close (_dl_close): Free l_name and l_origin.
2785         * sysdeps/i386/useldt.h (THREAD_GETMEM, THREAD_SETMEM): Use P
2786         modifier in asm, not c.
2788         * sysdeps/mach/hurd/Makefile [subdirs==elf]: Define CFLAGS-dl-load.c
2789         to -DEXTERNAL_MAP_FROM_FD to make _dl_map_object_from_fd extern.
2791 1998-08-26 17:48  Ulrich Drepper  <drepper@cygnus.com>
2793         * elf/dl-close.c (_dl_close): Move map->l_nsearchlist value into local
2794         variable so that map can be freed.
2795         Reported by Philippe Troin <phil@fifi.org>.
2797         * elf/dl-open.c (dl_open_worker): Correct test for extending global
2798         scope array.
2799         Patch by Philippe Troin <phil@fifi.org>.
2801 1998-08-26  Geoff Keating  <geoffk@ozemail.com.au>
2803         * sysdeps/powerpc/register-dump.h: Rewrite.  Much nicer this way.
2804         Don't call writev() with a 100-element vector.
2805         * sysdeps/generic/segfault.c (catch_segfault): Skip top-level NULL
2806         return address.
2808         * sysdeps/powerpc/elf/libc-start.c: Sync up with generic version.
2809         In particular, set __libc_stack_end.
2810         * sysdeps/powerpc/elf/start.S: Allow _init and _fini to be
2811         undefined.  Fix copyright notice.
2813 1998-08-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2815         * math/Makefile (gmp-objs): New variable.
2816         ($(objpfx)atest-exp, $(objpfx)atest-sincos, $(objpfx)atest-exp2):
2817         Depend on it.
2818         (tests): Add atest-exp atest-sincos atest-exp2.
2819         (tests-static): Remove atest-exp atest-sincos atest-exp2.
2821 1998-08-25  Ulrich Drepper  <drepper@cygnus.com>
2823         * sysdeps/generic/dl-cache.c: Move static variable cache and cachesize
2824         to toplevel.
2825         (_dl_unload_cache): New function.
2826         * elf/Versions [libc GLIBC_2.1]: Add _dl_unload_cache.
2827         * elf/dl-open.c (_dl_open): Unload map file before freeing the lock.
2828         * elf/rtld.c (dl_main): Unload map file before jumping to user code.
2830         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Define O_DIRECT.
2831         Correct comment for O_LARGEFILE.
2832         * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_DIRECT.
2833         Change O_LARGEFILE to correct value.
2835 1998-08-25 14:34  Ulrich Drepper  <drepper@cygnus.com>
2837         * libio/iogetline.c (_IO_getline_info): Don't read anything for
2838         N == 0.  Patch by HJ Lu.
2840 1998-08-25 11:43  Ulrich Drepper  <drepper@cygnus.com>
2842         * elf/elf.h: Add syminfo stuff and other DT_* from Solaris' ELF.
2844 1998-08-25  Bernd Schmidt  <crux@Pool.Informatik.RWTH-Aachen.DE>
2846         * argp/argp.h: Use __inline__ not inline.
2848         * sysdeps/i386/bits/select.h (FD_ZERO): Rewrite asm not to indicate
2849         an input register as being clobbered.
2850         * sysdeps/i386/memset.c (memset): Likewise.
2851         * sysdeps/i386/bzero.c (__bzero): Likewise.
2852         * sysdeps/i386/memcopy.h ({BYTE,WORD}_COPY_[FB]WD): Likewise.
2854 1998-08-25  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2856         * stdlib/jrand48_r.c (__jrand48_r): Set also upper half of result.
2857         Fixes PR libc/757 (Reported by Michael Creutz <creutz@bnl.gov).
2859 1998-08-24 16:34  Ulrich Drepper  <drepper@cygnus.com>
2861         * debug/catchsegv.sh: Handle text preceding backtrace better.
2862         * sysdeps/generic/segfault.c: Allow register dump.  Allow handler
2863         to be installed for other signals than SIGSEGV.
2864         * sysdeps/generic/register-dump.h: New file.
2865         * sysdeps/i386/register-dump.h: New file.
2866         * sysdeps/powerpc/register-dump.h: New file.
2868         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Use macros from
2869         sigcontextinfo.h.
2870         * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Use i386 version.
2872 1998-08-24  Geoff Keating  <geoffk@ozemail.com.au>
2874         * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: New file.
2876 1998-08-09  Geoff Keating  <geoffk@ozemail.com.au>
2878         * sysdeps/unix/sysv/linux/powerpc/chown.c: New file.
2879         * sysdeps/unix/sysv/linux/powerpc/lchown.S: New file.
2880         * sysdeps/unix/sysv/linux/powerpc/syscalls.list: Add chown, remove
2881         getresuid, getresgid.
2883 1998-08-16  Geoff Keating  <geoffk@ozemail.com.au>
2885         * sysdeps/unix/sysv/linux/powerpc/clone.S: Fix bugs.  Set up stack
2886         pointer in userland.
2888 1998-08-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2890         * sysdeps/unix/sysv/linux/sys/mount.h (MNT_FORCE): Define as enum
2891         and fix value.
2893 1998-08-22  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2895         * elf/ldd.bash.in: Add missing quotes around $file.  Make loop
2896         over arguments Bourne shell compatible.  Don't exit unsuccessfully
2897         if nonelf returns successfully.  Avoid duplicating most of the
2898         script.
2899         * sysdeps/unix/sysv/linux/ldd-rewrite.sed: Add missing quotes
2900         around $file.
2902 1998-08-24 10:37  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2904         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_headers): Add
2905         sys/reg.h.
2906         * sysdeps/unix/sysv/linux/m68k/sys/reg.h: New file.
2907         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
2909 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
2911         * sysdeps/unix/sysv/linux/i386/Versions [GLIBC_2.1]: Add
2912         __modify_ldt and modify_ldt.
2913         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add modify_ldt.
2915         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
2916         Use orl $-1 instead of movl $-1 to save two bytes.
2917         * sysdeps/unix/sysv/linux/i386/i686/sysdep.h (SYSCALL_ERROR_HANDLER):
2918         Likewise.
2920 1998-08-17  H.J. Lu  <hjl@gnu.org>
2922         * libio/Versions (_IO_do_write, _IO_file_attach,
2923         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2924         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2925         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2926         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.1.
2928         * libio/fileops.c (_IO_do_write, _IO_file_attach,
2929         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2930         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2931         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2932         _IO_file_write, _IO_file_xsputn): Change the prefix to
2933         "_IO_new_". Added to GLIBC_2.1.
2935         * libio/libioP.h (_IO_do_write, _IO_file_attach,
2936         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2937         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2938         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2939         _IO_file_write, _IO_file_xsputn): Add prototypes for the prefix
2940         "_IO_new_".
2942         * libio/oldfileops.c (_IO_do_write, _IO_file_attach,
2943         _IO_file_close_it, _IO_file_finish, _IO_file_fopen,
2944         _IO_file_init, _IO_file_overflow, _IO_file_seekoff,
2945         _IO_file_setbuf, _IO_file_sync, _IO_file_underflow,
2946         _IO_file_write, _IO_file_xsputn): Added to GLIBC_2.0.
2948 1998-08-23  Richard Henderson  <rth@cygnus.com>
2950         * Makeconfig (LDFLAGS): Remove.
2952         * csu/initfini.c: Return to .text before __gmon_start__.
2954         * elf/elf.h (EM_FAKE_ALPHA): Rename from EM_OLD_ALPHA.
2955         (STO_MIPS_*): Rename from STO_*.
2956         (STB_MIPS_SPLIT_COMMON): Rename from STB_SPLIT_COMMON.
2957         (STO_ALPHA_NOPV, STO_ALPHA_STD_GPLOAD): New.
2959         * math/atest-exp.c (mpn_bitsize): Fix bit location calculation.
2960         (main): e3s is negative on zero.
2961         * math/atest-exp2.c: Likewise.
2962         * math/atest-sincos.c: Likewise.
2964 1998-08-23  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
2966         * Makerules (install): Add comment about absolute paths.
2968 1998-08-23  Ulrich Drepper  <drepper@cygnus.com>
2970         * libio/vsnprintf.c (_IO_vsnprintf): Set first byte of destination
2971         array to NUL to handle maxlen==1 case correctly.
2972         Patch by HJ Lu.
2974 1998-08-23  Richard Henderson  <rth@cygnus.com>
2976         * sysdeps/alpha/elf/crtbegin.S: Fix .prologue; no pv used.
2977         * sysdeps/alpha/elf/crtend.S: Likewise.
2978         * sysdeps/alpha/elf/start.S: Likewise.
2980         * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Fix .prologue;
2981         non-standard pv usage.
2983         * sysdeps/unix/sysv/linux/alpha/brk.S: Use jmp macro for relaxation.
2984         * sysdeps/unix/sysv/linux/alpha/getitimer.S: Likewise.
2985         * sysdeps/unix/sysv/linux/alpha/getrusage.S: Likewise.
2986         * sysdeps/unix/sysv/linux/alpha/gettimeofday.S: Likewise.
2987         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2988         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2989         * sysdeps/unix/sysv/linux/alpha/select.S: Likewise.
2990         * sysdeps/unix/sysv/linux/alpha/setitimer.S: Likewise.
2991         * sysdeps/unix/sysv/linux/alpha/settimeofday.S: Likewise.
2992         * sysdeps/unix/sysv/linux/alpha/utimes.S: Likewise.
2993         * sysdeps/unix/sysv/linux/alpha/wait4.S: Likewise.
2995         * sysdeps/alpha/fpu/e_sqrt.c: Use the asm version when the input is
2996         a finite non-denormal, deferring to the full IEEE version otherwise.
2998         * sysdeps/alpha/fpu/bits/mathinline.h (__floorf, __floor):
2999         Early out for -0.  Optimize for !_IEEE_FP_INEXACT.
3000         * sysdeps/alpha/fpu/s_floor.c: New.
3001         * sysdeps/alpha/fpu/s_floorf.c: New.
3002         * sysdeps/alpha/fpu/s_ceil.c: New.
3003         * sysdeps/alpha/fpu/s_ceilf.c: New.
3005 1998-08-22  Philip Blundell  <philb@gnu.org>
3007         * sysdeps/arm/bits/string.h: New file.
3009 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3011         * sysdeps/unix/sysv/linux/configure.in: Obey --with-headers,
3012         document it.
3014         * sysdeps/unix/sysv/linux/alpha/configure.in: New file, contains
3015         test for recent Linux 2.1.100+ headers.
3017 1998-08-21  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3019         * nis/nss_compat/compat-initgroups.c: Optimize NIS query.
3021 1998-08-21 17:21  Ulrich Drepper  <drepper@cygnus.com>
3023         * sysdeps/unix/sysv/linux/glob64.c: Define __stat using __xstat64.
3025 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3027         * Makefile (elf/ldso_install): Put back.  The problem still persists.
3028         * elf/Makefile (ldso_install): Likewise.
3030 1998-08-20  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3032         * db2/db/db.c (db_open) [_LIBC]: Rename to __nss_db_open and
3033         create weak alias.
3034         * include/db.h: Declare __nss_db_open.
3035         * db2/Versions: Export it.
3037         * db2/makedb.c: Convert to use db2 API.
3038         * nss/nss_db/db-XXX.c: Likewise.
3039         * nss/nss_db/db-netgrp.c: Likewise.
3040         * nss/nss_db/db-alias.c: Likewise.
3041         (_nss_db_getaliasent_r): Allow retrying with a larger buffer.
3043 1998-08-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3045         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
3046         sys_setresuid, already built automatically (or not).
3047         * sysdeps/unix/sysv/linux/syscalls.list: Define __setresuid
3048         instead of __syscall_setresuid and add back setresuid.
3049         * sysdeps/unix/sysv/linux/seteuid.c: Use __setresuid instead of
3050         __syscall_setresuid.
3052 1998-08-21  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3054         * sysdeps/unix/sysv/linux/sys/mount.h: Fix typo.
3056 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
3058         * elf/Makefile (sh-ldd-rewrite): Remove expression to remove
3059         BASH-ONLY marked region.
3060         * elf/ldd.bash.in: Remove special BASH-ONLY markers.
3062 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
3064         * libio/oldfileops.c (_IO_file_seekoff): Don't adjust pointers if
3065         _IO_SYSSEEK fails.
3067         * libio/iolibio.h (_IO_pos_BAD): Define of type _IO_fpos64_t.
3069         * libio/libioP.h (FILEBUF_LITERAL): Also initialize new _offset
3070         element.
3072 1998-08-21  Roland McGrath  <roland@baalperazim.frob.com>
3074         * elf/ldd.bash.in (TEXTDOMAIN, TEXTDOMAINDIR): Surround setting these
3075         with magic comments ###BASH-ONLY and ###END-BASH-ONLY.
3076         * elf/Makefile ($(objpfx)ldd): Generate always from ldd.bash.in.
3077         (common-ldd-rewrite): New variable, old contents of $(sh-ldd-rewrite).
3078         (sh-ldd-rewrite): Use that, add cmds to remove code surrounded by
3079         those magic comments, and to use /bin/sh for @BASH@.
3080         (bash-ldd-rewrite): Use $(common-ldd-rewrite).
3081         * elf/ldd.sh.in: File removed.
3083 1998-08-20 20:07  Ulrich Drepper  <drepper@cygnus.com>
3085         * pwd/getpw.c (__getpw): Use %lu for uid and gid parameter and
3086         cast them to unsigned long int.
3087         * pwd/putpwent.c (putpwent): Likewise.
3088         Patch by John Tobey <jtobey@banta-im.com>.
3090 1998-08-20 17:14  H.J. Lu  <hjl@gnu.org>
3092         * libio/libioP.h (FILEBUF_LITERAL): Set the _offset field to
3093         _IO_pos_BAD.
3095 1998-02-20 17:54  H.J. Lu  <hjl@gnu.org>
3097         * libio/fileops.c (_IO_file_seekoff): Don't adjust pointers if
3098         _IO_SYSSEEK fails.
3100 1998-08-20 19:14  Ulrich Drepper  <drepper@cygnus.com>
3102         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdeps_routines):
3103         Add umount and umount2.
3104         * sysdeps/unix/sysv/linux/syscalls.list: Remove umount.
3105         * sysdeps/unix/sysv/linux/umount.S: New file.
3106         * sysdeps/unix/sysv/linux/umount2.S: New file.
3107         * sysdeps/unix/sysv/linux/sys/mount.h: Declare umount2.
3108         Define MNT_FORCE.
3110         * sysdeps/unix/sysv/linux/Makefile [subdirs=misc] (sysdep_headers):
3111         Add sys/sendfile.h.
3112         * sysdeps/unix/sysv/linux/syscalls.list: Add sendfile.
3113         * sysdeps/unix/sysv/linux/sys/sendfile.h: New file.
3115         * sysdeps/unix/sysv/linux/sys/acct.h: Pretty print.
3117         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.1]: Add umount2 and
3118         sendfile.
3120 1998-08-20 16:01  Ulrich Drepper  <drepper@cygnus.com>
3122         * elf/ldd.sh.in: Redirect warnings and error messages to stderr.
3123         * elf/ldd.bash.in: Likewise.
3125         * elf/sln.c: Avoid warning for no main prototype.
3127         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Remove O_READ and
3128         O_WRITE.
3129         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
3130         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3132         * sysdeps/unix/sysv/linux/alpha/bits/fcntl.h: Add F_SETSIG and
3133         F_GETSIG.
3134         * sysdeps/unix/sysv/linux/bits/fcntl.h: Likewise.
3135         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Likewise.
3136         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
3138 1998-08-20  Philip Blundell  <pb@nexus.co.uk>
3140         * sysdeps/arm/fpu/ieee754.h: Move to...
3141         * sysdeps/arm/ieee754.h: ... here.
3143         * sysdeps/arm/__longjmp.S: Put return value in correct register.
3144         Don't set the condition flags unnecessarily.
3145         * sysdeps/arm/fpu/__longjmp.S: Likewise.  Restore floating point
3146         registers correctly.
3148         * sysdeps/arm/dl-machine.h: Fix problems with profiling code
3149         (patch from Scott Bambrough).
3151         * sysdeps/arm/sysdep.h (CALL_MCOUNT): Add missing semicolons.
3153         * csu/initfini.c (_init): Don't check whether __gmon_start__ is
3154         NULL, just call it unconditionally.
3155         (__gmon_start__): Provide stub version as a weak symbol.
3157 1998-07-30  Philip Blundell  <philb@gnu.org>
3159         * sysdeps/unix/sysv/linux/arm/init-first.h: New file (from patch
3160         by Scott Bambrough)
3162         * sysdeps/unix/sysv/linux/arm/errlist.c: New file; ARM tools don't
3163         like `@' in .type directives.
3165         * sysdeps/arm/bsd-setjmp.S: Use PLT for procedure call.
3166         * sysdeps/arm/bsd-_setjmp.S: Likewise.
3168         * sysdeps/arm/dl-machine.h: Set __libc_stack_end.
3170 1998-08-20  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3172         * sysdeps/unix/sysv/linux/mips/bits/fcntl.h (F_SETOWN): Correct value.
3173         (F_GETOWN): Likewise.
3175         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_SIGIO): Add it (from
3176         Linux 2.1.117).
3178 1998-08-20  Ulrich Drepper  <drepper@cygnus.com>
3180         * sysdeps/generic/glob.c [_LIBC]: Define __stat only if not
3181         already defined.
3183 1998-08-18  Ulrich Drepper  <drepper@cygnus.com>
3185         * include/features.h: Define __USE_EXTERN_INLINES for recent
3186         enough gcc.
3187         * argp/argp.h: Define extern inline functions only if
3188         __USE_EXTERN_INLINES is defined.
3189         * libio/stdio.h: Likewise.
3190         * math/math.h: Likewise.
3191         * stdlib/stdlib.h: Likewise.
3192         * string/argz.h: Likewise.
3193         * sysdeps/generic/bits/sigset.h: Likewise.
3194         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
3195         * sysdeps/unix/sysv/sysv4/bits/sigset.h: Likewise.
3196         * sysdeps/wordsize-32/inttypes.h: Likewise.
3197         * sysdeps/wordsize-64/inttypes.h: Likewise.
3198         * wcsmbs/wchar.h: Likewise.
3200         * sysdeps/generic/bits/glob.c [_LIBC]: Define __stat using __xstat
3201         to allow compilation without optimization.
3203 1998-08-14  Thorsten Kukuk  <kukuk@vt.uni-paderborn.de>
3205         * nis/nss_compat/compat-grp.c: Set errno to ENOENT if we have no
3206         more entries.
3207         * nis/nss_compat/compat-initgroups.c: Likewise.
3208         * nis/nss_compat/compat-pwd.c: Likewise.
3209         * nis/nss_compat/compat-spwd.c: Likewise.
3210         * nis/nss_nis/nis-alias.c: Likewise.
3211         * nis/nss_nis/nis-ethers.c: Likewise.
3212         * nis/nss_nis/nis-grp.c: Likewise.
3213         * nis/nss_nis/nis-hosts.c: Likewise.
3214         * nis/nss_nis/nis-initgroups.c: Likewise.
3215         * nis/nss_nis/nis-network.c: Likewise.
3216         * nis/nss_nis/nis-proto.c: Likewise.
3217         * nis/nss_nis/nis-pwd.c: Likewise.
3218         * nis/nss_nis/nis-rpc.c: Likewise.
3219         * nis/nss_nis/nis-service.c: Likewise.
3220         * nis/nss_nis/nis-spwd.c: Likewise.
3222         * nis/rpcsvc/yp.h: Generate new without 1024 byte limits.
3224         * nis/ypclnt.c: Try binding dir only first time, could be to old.
3226         * nis/yp_xdr.c: Remove 1024 byte limit.
3227         * nis/ypupdate_xdr.c: Likewise.
3229         * nis/nss_nis/nis-publickey.c: Make sure, nobody could send
3230         wrong data.
3232 1998-08-18  Roland McGrath  <roland@baalperazim.frob.com>
3234         * Rules (binaries-static, binaries-shared static pattern rules):
3235         Depend on lib%, not just libc%, from $(link-libc{,-static}).
3237         * sysdeps/mach/hurd/Makefile (link-libc-static): New variable; set
3238         this here, overriding Makeconfig generic value so we link against
3239         the RPC libs.
3241 1998-08-17  Ulrich Drepper  <drepper@cygnus.com>
3243         * posix/tstgetopt.c (options): Add NULL entry at end
3244         Patch by Adrian Miranda <ade@psg.com>.
3246 1998-08-15 18:21  Ulrich Drepper  <drepper@cygnus.com>
3248         * elf/elf.h: Add EI_OSABI, ELFOSABI*, and EI_ABIVERSION.  Move EI_PAD
3249         to 9.
3251 1998-08-15 14:11  Ulrich Drepper  <drepper@cygnus.com>
3253         * elf/elf.h: Add PPC Diab relocations.
3255         * malloc/Makefile (libmcheck.a): Use $(LN_S) not ln.
3257 1998-08-14 10:08  Ulrich Drepper  <drepper@cygnus.com>
3259         * manual/texinfo.tex: Update.
3261 1998-08-07  Geoff Keating  <geoffk@ozemail.com.au>
3263         * sysdeps/powerpc/backtrace.c: New file.
3265 1998-08-14  Philip Blundell  <pb@nexus.co.uk>
3267         * sysdeps/arm/fpu/setjmp.S: Correct value of R0 before calling
3268         sigjmp_save.
3269         * sysdeps/arm/elf/setjmp.S: Obsolete, deleted.
3271 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3273         * Makefile (install-symbolic-link): Fix spelling.
3275 1998-08-11  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3277         * elf/elf.h (SHT_HIOS): Fix value.
3279 1998-08-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3281         * posix/regex.c (WIDE_CHAR_SUPPORT): Don't generate defined as
3282         part of the expansion, this is undefined by the standard.
3284 1998-08-13 19:41  Ulrich Drepper  <drepper@cygnus.com>
3286         * posix/getconf.c: Add support for systems with incomplete confname.h.
3288         * sysdeps/posix/sigset.c: Allow SIG_HOLD being undefined.
3290         * sysdeps/posix/wait3.c: Make it work.
3292 1998-08-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3294         * Makefile ($(inst_slibdir)/libc-$(version).so): Remove.
3295         (elf/ldso_install): Remove.
3297         * elf/Makefile (distribute): Add sln.c.
3298         (others): Add sln.
3299         (others-static): Add sln.
3300         (install-rootsbin): Add sln.
3301         (others-static): Add sln.
3302         (ldso_install): Remove.
3304 1998-07-24 10:58  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3306         * Makerules (install-clean-symbolic-link-list): Make phony.
3307         * Makefile (install-symbolic-link): Make phony.  Depend on
3308         subdir_install for parallel makes.
3311 1998-07-22  Ulrich Drepper  <drepper@cygnus.com>
3313         * elf/Makefile (distribute): Add sln.c
3315 1998-07-21 07:10  H.J. Lu  <hjl@gnu.org>
3317         * elf/sln.c: New file.
3319         * Makerules (symbolic-link-prog, symbolic-link-list): New macros.
3320         (install-clean-symbolic-link-list): New target.
3321         (install): Depend on install-clean-symbolic-link-list.
3322         (make-shlib-link): Changed for $(symbolic-link-list).
3324         * Makefile (install-symbolic-link): New target.
3325         (install): Depend on install-symbolic-link.
3327 1998-08-12 17:03  Ulrich Drepper  <drepper@cygnus.com>
3329         * include/unistd.h: Protect against multiple inclusion.
3331         * posix/glob.c: Don't define __glob_pattern_p is NO_GLOB_PATTERN_P
3332         is defined, not is glob is defined.
3333         * sysdeps/unix/sysv/linux/glob64.c: Define NO_GLOB_PATTERN_P.
3335 1998-08-01 17:18  H.J. Lu  <hjl@gnu.org>
3337         * sunrpc/rpcsvc/rusers.x (xdr_utmp): Use xdr_bytes instead of
3338         xdr_string for ut_line, ut_name and ut_host.
3340 1998-08-12  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
3342         * sysdeps/unix/sysv/linux/paths.h (_PATH_MAILDIR): Change to
3343         /var/mail in accordance with FHS 2.0.
3344         Reported by Javier Kohen <root@jkohen.tough.com.ar> [PR libc/639].
3346 1998-08-12  Richard Henderson  <rth@cygnus.com>
3348         * sysdeps/unix/sysv/linux/alpha/syscalls.list (recvmsg, sendmsg):
3349         Update aliases for cancelation.
3351         * sysdeps/unix/sysv/linux/alpha/glob.c: Undef glob*64 before
3352         playing with symbol versions.
3354 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
3356         * sysdeps/mach/hurd/bits/posix_opt.h: Rewritten with comments and
3357         multiple inclusion protection.
3358         (_POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC, _POSIX_MAPPED_FILES,
3359         _POSIX_MEMORY_PROTECTION, _POSIX_POLL, _POSIX_SELECT): New macros,
3360         define all these to 1.
3361         (_POSIX_SYNC_IO): Add #undef, to remind us that pathconf reports it.
3363 1998-08-12  Roland McGrath  <roland@baalperazim.frob.com>
3365         * sysdeps/mach/usleep.c: Include <unistd.h>.
3366         (usleep): Return void.
3368 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
3370         * sysdeps/generic/if_index.c (struct if_freenameindex): Add forward
3371         decl to inhibit warning in if_freenameindex defn.
3373         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Remove unused variable.
3375         * sysdeps/mach/hurd/getdomain.c (getdomainname): Renamed from __ name.
3377         * sysdeps/mach/hurd/reboot.c: Include <sys/reboot.h>.
3378         * sysdeps/mach/hurd/getdents.c: Include <unistd.h>.
3379         * sysdeps/mach/hurd/sbrk.c: Include <unistd.h>.
3380         * sysdeps/mach/usleep.c: Likewise.
3382         * sysdeps/mach/hurd/bind.c (bind): Add a const.
3384         * sysdeps/mach/hurd/getdents.c (__getdirentries): Use prototype defn.
3385         * sysdeps/unix/bsd/init-posix.c (__init_posix): Likewise.
3386         * sysdeps/unix/bsd/times.c (timeval_to_clock_t): Likewise.
3387         * sysdeps/mach/hurd/reboot.c (reboot): Likewise.
3388         * sysdeps/mach/usleep.c (usleep): Likewise.
3389         * sysdeps/mach/hurd/chflags.c (chflags): Likewise.
3390         * sysdeps/mach/hurd/fchflags.c (fchflags): Likewise.
3391         * sysdeps/mach/hurd/sbrk.c (__sbrk): Likewise.
3392         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Likewise.
3394 1998-08-11  Roland McGrath  <roland@baalperazim.frob.com>
3396         * sysdeps/generic/glob64.c: Include <sys/types.h>, <glob.h>, <errno.h>.
3397         (glob64): Fix typo.
3399         * malloc/malloc.c (free_check, realloc_check): Don't cast to long for
3400         %p arg to fprintf, since `void *' is the right type already.
3402 1998-07-25 19:47  Jose M. Moya  <josem@gnu.org>
3404         * sysdeps/mach/hurd/getcwd.c
3405         (_hurd_canonicalize_directory_name_internal): Do not loop forever
3406         for unknown root directories.
3407         (__getcwd): Return NULL when the current root directory could not
3408         be reached.
3410 1998-08-11 18:39  Ulrich Drepper  <drepper@cygnus.com>
3412         * string/strsignal.c (strsignal): Count real-time signals from zero.
3415 See ChangeLog.8 for earlier changes.