update from main archive 960105
[glibc.git] / ChangeLog
blobd413e3aa54079c54ee71800bad69cee1de5ce36b
1 Mon Jan  6 13:57:05 1997  Ulrich Drepper  <drepper@cygnus.com>
3         * io/ftw.c: Add `const' to second parameter of function given as
4         second parameter to ftw.
5         * io/ftw.h: Likewise for prototype.
6         Reported by Ronald F. Guilmette <rfg@monkeys.com>.
8 Thu Jan  2 23:44:39 1997  Philip Blundell  <pjb27@cam.ac.uk>
10         * inet/Makefile (headers): Add netinet/ip.h.
11         * inet/netinet/ip.h: New file, contains BSD definitions for struct
12         ip and friends.
14 Fri Jan  3 23:17:11 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
16         * string/string.h (strnlen): Add cast for C++.
18 Mon Jan  6 03:31:46 1997  Ulrich Drepper  <drepper@cygnus.com>
20         * Makefile (install-bin): Define as glibcbug to install script.
21         (glibcbug): New rules.  Create from glibcbug.in.
22         * configure.in (AC_OUTPUT): Generate glibcbug script.
23         * glibcbug.in: New file.
24         * version.c: Mention glibcbug to report bugs.
25         * catgets/gencat.c: Likewise.
26         * db/makedb.c: Likewise.
27         * locale/programs/locale.c: Likewise.
28         * locale/programs/localedef.c: Likewise.
29         * elf/ldd.bash.in: Likewise.
30         * elf/ldd.sh.in: Likewise.
31         * intl/locale.alias: Likewise.
33         * mcheck.h: New file.  Necessary since mcheck.h is used in time/ap.c.
35         * set-init.c: Update and reformat copyright.
36         * version.c: Likewise.
37         * signal/sigaddset.c: Likewise.
38         * signal/sigdelset.c: Likewise.
39         * signal/sigempty.c: Likewise.
40         * signal/sigfillset.c: Likewise.
41         * signal/siggetmask.c: Likewise.
42         * signal/sigismem.c: Likewise.
43         * sysdeps/generic/speed.c: Likewise.
44         * sysdeps/unix/getdents.c: Likewise.
45         * sysdeps/unix/xmknod.c: Likewise.
46         * sysdeps/unix/bsd/poll.c: Likewise.
47         * sysdeps/unix/bsd/tcdrain.c: Likewise.
48         * sysdeps/unix/bsd/tcflow.c: Likewise.
49         * sysdeps/unix/bsd/tcflush.c: Likewise.
50         * sysdeps/unix/bsd/tcgetpgrp.c: Likewise.
51         * sysdeps/unix/bsd/tcsendbrk.c: Likewise.
52         * sysdeps/unix/bsd/tcsetpgrp.c: Likewise.
53         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c: Likewise.
54         * sysdeps/unix/sysv/getdents.c: Likewise.
55         * sysdeps/unix/sysv/i386/sigreturn.S: Likewise.
56         * termios/Makefile: Likewise.
57         * termios/cfmakeraw.c: Likewise.
58         * termios/cfsetspeed.c: Likewise.
60         * version.h: Bump VERSION to 1.100.
62         * intl/finddomain.c: Defining stpcpy function isn't necessary.
64         * libio/genops.c (_IO_init): Use _IO_lock_init instead of
65         _IO_lock_init_recursive.
66         * libio/stdfiles.c (DEF_STDFILE): Use _IO_lock_initializer instead
67         of _IO_lock_init.
69         * locale/programs/charmap.c (obstack_chunk_alloc): Use malloc instead
70         of xmalloc.
71         * locale/programs/ld-collate.c: Likewise.
72         * locale/programs/simple-hash.c: Likewise.
74         * misc/Makefile (headers): Add selectbits.h.
75         * misc/sys/select.h: Include <selectbits.h> to get necessary
76         definitions.
77         * sysdeps/generic/selectbits.h: New file.  Generic macros for
78         handling file descriptor sets.
79         * sysdeps/i386/selectbits.h: New file.  i386 specific macros for
80         handling file descriptor sets.
81         * sysdeps/generic/gnu/types.h: Remove _FD_* macros.
83         * misc/mntent_r.c: Fix handling of multiple, comma-separated
84         options.  Patch by Sai-Lai Lo <sll@orl.co.uk>.
86         * po/de.po: Update.
87         * po/ko.po: Update.
88         * po/sv.po: Update.
90         * posix/getopt.c: Only use the bash generated environment variable
91         to determine non-option parameters when using in GNU libc and if
92         the argument vector given to getopt is the same as given to the
93         program.
95         * posix/unistd.h [__USE_GNU]: Declare environ.
97         * posix/sys/types.h (key_t): Also define when __USE_XOPEN.
99         * resolv/res_debug.c: Add casts to prevent warnings.
100         * resolv/res_query.c: Likewise.
102         * resolv/nss_dns/dns-host.c: Change type for buffer size arguments
103         to `size_t'.
104         * resolv/nss_dns/dns-network.c: Likewise.
106         * signal/sigempty.c: Use memset to initialize variable.
107         * signal/sigfillset.c: Likewise.
109         * signal/signal.h: Change back handling of signal.  The BSD
110         version is preferred and the new sysv_signal is used when
111         __USE_XOPEN.
112         * sysdeps/posix/sysv_signal.c: Renamed from signal.c.  Use SVID
113         semantic.
114         * sysdeps/posix/signal.c: Renamed from bsd_signal.c.  Use BSD
115         semantic.
116         * sysdpes/posix/sigpause.c: Correct comment.
117         * sysdeps/stub/sigpause.c: Provide default implementation.
118         * signal/Makefile (routines): Remove bsd_signal, add sysv_signal.
120         * sysdeps/generic/abort.c: Allow repeated calls to abort if
121         a user defined handler for SIGABRT is installed.
123         * sysdeps/stub/libc-lock.h: Define separate set of macros for
124         handling recursive mutexes.
126         * sysdeps/unix/Makefile: Change rule to generate syscall.h file
127         so that it is generate in the sys/ subdir.
129         * sysdeps/unix/sysv/linux/Dist: Add kernel_termios.h.
130         * sysdeps/unix/sysv/linux/alpha/Dist: Add kernel_termios.h and
131         sys/acct.h.
133         * sysdeps/unix/sysv/linux/direntry.h: Don't use struct dirent from
134         kernel.  Define own version with additional field d_type.
135         * sysdeps/unix/sysv/linux/getdents.c: New file.  Reformat dirent
136         entries after reading from kernel.
138         * sysdeps/unix/sysv/linux/gnu/types.h: Don't use kernel headers.
139         Define types based on kernel types except for uid_t, gid_t, mode_t,
140         dev_t which are larger now.
141         * sysdeps/unix/sysv/linux/alpha/gnu/types.h: Likewise.
143         * sysdeps/unix/sysv/linux/ioctl-types.h: Don't include
144         <linux/termios.h>.  Define structure here.
145         * sysdeps/unix/sysv/linux/alpha/ioctl-types.h: Likewise.
146         * sysdeps/unix/sysv/linux/kernel_termios.h: New file. Define
147         architecture dependent struct termio type.
148         * sysdeps/unix/sysv/linux/alpha/kernel_termios.h: Likewise.
149         * sysdeps/unix/sysv/linux/sigset.h: Define extended sigset_t type.
150         * sysdeps/unix/sysv/linux/sigsuspend.c: Pass first word of array
151         to syscall.
153         * sysdeps/unix/sysv/linux/socketbits.h: Don't use kernel header.
154         * sysdeps/unix/sysv/linux/statfsbuf.h: Likewise.
155         * sysdeps/unix/sysv/linux/termbits.h: Likewise.
156         * sysdeps/unix/sysv/linux/alpha/termbits.h: Likewise.
157         * sysdeps/unix/sysv/linux/ustatbits.h: Likewise.
158         * sysdeps/unix/sysv/linux/net/if.h: Likewise.
159         * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
160         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
162         * sysdeps/unix/sysv/linux/sys/sysmacros.h (minor, major, mkdev):
163         Change definitions to fit new dev_t definition.
165         * sysdeps/unix/sysv/linux/syscalls.list: Add getdents and sigreturn.
166         Rename ustat to s_ustat since wrapper is needed.
168         * sysdeps/unix/sysv/linux/tcgetattr.c: After getting value from
169         kernel rewrite it to userland level data format.
170         * sysdeps/unix/sysv/linux/tcsetattr.c: Before calling kernel change
171         data format to kernel format.
172         * sysdeps/unix/sysv/linux/ustat.c: New file.  Change format of
173         device parameter to format needed by kernel.
174         * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
175         * sysdeps/unix/sysv/linux/xmknod.c: New file.  Extend generic
176         version to change device parameter to format needed by kernel.
177         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
179         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: New file.  Alpha specific
180         definition of accounting structure.
182         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <asm/ptrace.h>.
183         Patch by Andreas Schwab.
185         * time/ap.c: Include <mcheck.h>.
187         * time/tzset.c (__tzset_internal): Change to take one argument
188         which tells whether examining of TZ is always wanted or only if
189         no initialization happened before.
190         * time/localtime.c: (localtime, __localtime_r): Change for new
191         __tzset_internal form.
193         * time/sys/time.h: Include <sys/select.h> to get select related
194         declarations.
196 Mon Jan  6 01:58:21 1997  Richard Henderson  <richard@atheist.tamu.edu>
198         * sysdeps/alpha/dl-machine.h (elf_machine_dynamic): Work around
199         bug in GNU ld.
201 Mon Jan  6 01:35:29 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
203         * misc/getpass.c: Make sure the content of the input buffer is not
204         printed if the getpass function is interrupted.
206 Sat Jan  4 17:07:08 1997  Roland McGrath  <roland@fmh.frob.com>
208         * md5-crypt/Makefile (rpath-link): Add md5-crypt objdir, not crypt.
210 Thu Jan  2 17:58:23 1997  Roland McGrath  <roland@fmh.frob.com>
212         * sysdeps/generic/abort.c: Include <string.h> for memset decl.
214         * new-malloc/mcheck.c [_LIBC || STDC_HEADERS || USG]: Include
215         <string.h> so memset is declared.
217 Tue Dec 31 21:16:05 1996  Roland McGrath  <roland@fmh.frob.com>
219         * elf/dl-deps.c (_dl_map_object_deps): Support DT_AUXILIARY.
221         * elf/dl-error.c (_dl_catch_error): Save and restore old catch site so
222         calls can be nested.
224         * elf/link.h (struct link_map): Extend `l_info' by DT_EXTRANUM elts.
225         * elf/dynamic-link.h (elf_get_dynamic_info): Grok tags in the Sun
226         extension range.
228         * elf/elf.h (DT_AUXILIARY, DT_FILTER, DT_EXTRANUM): New constant
229         macros, for Sun extensions.
230         (DT_EXTRATAGID): New macro to convert Sun extension tag values placed
231         near the top of the processor-specific range into zero-origin indices.
233         * elf/dl-deps.c (_dl_map_object_deps): Check for malloc failure.
235 Sat Jan  4 22:25:01 1997  Andreas Jaeger  <aj@arthur.pfalz.de>
237         * libio/fcloseall.c: Include stdio.h for prototype declaration for
238         __fcloseall.
240 Thu Jan  2 17:35:20 1997  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
242         * sysdeps/posix/signal.c: Provide ignorable definitions of
243         SA_ONESHOT, SA_NOMASK, and SA_INTERRUPT for non-threads Posix
244         systems.
246 Thu Jan  2 23:20:51 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
248         * MakeTAGS ($P/siglist.pot): Delete rule.
249         (XGETTEXTFLAGS-siglist.pot): Remove definition.
250         (all-pot): Remove $P/siglist.pot.
251         * sysdeps/unix/siglist.c: Mark strings as translatable.
252         * sysdeps/unix/sysv/linux/siglist.h: Likewise.
254 Wed Jan  1 22:21:18 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
256         * misc/syscall.h: New file.
257         * misc/sys/syscall.h: Removed.  Forwarding to <syscall.h> might
258         find user header, so do it the other way round.
259         * sysdeps/mach/sys/syscall.h: Moved here from parent directory.
260         * sysdeps/stub/sys/syscall.h: Likewise.
261         * sysdeps/unix/sysv/linux/sys/syscall.h: Likewise.
262         * sysdeps/unix/sysv/sco3.2.4/sys/syscall.h: Likewise.
263         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h): Update
264         dependency.
265         * sysdeps/unix/sysdep.h: Include <sys/syscall.h> instead of
266         <syscall.h>.
268 Tue Dec 31 00:03:18 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
270         * features.h: Fix typo.
272 Thu Jan  2 00:46:09 1997  Ulrich Drepper  <drepper@cygnus.com>
274         * libio/_G_config.h: Add _G_HAVE_LONG_DOUBLE_IO for libg++.
276 Wed Jan  1 15:15:00 1997  Ulrich Drepper  <drepper@cygnus.com>
278         * libio/Makefile (routines): Add fcloseall.
279         * libio/fcloseall.c: New file.
280         * libio/stdio.h [__USE_GNU]: Add prototype for fcloseall.
281         * libio/iofclose.c: Don't close all streams when argument is NULL.
283         * stdio/Makefile (routines): Add fcloseall.
284         * stdio/fcloseall.c: New file.
285         * stdio/stdio.h [__USE_GNU]: Add prototype for fcloseall.
286         * stdio/fclose.c: Don't close all streams when argument is NULL.
288         * manual/stdio.texi: Document fcloseall.
290         * sysdeps/generic/abort.c: Call __fcloseall instead of fclose with
291         NULL argument.
293         * socket/sys/un.h (SUN_LEN): Add cast.
295         * sunrpc/auth_unix.c (authunix_create): Change parameter types
296         of uid, gid, and aup_gids to uid_t and gid_t respectively.
297         (authunix_create_default): Likewise.
298         (authunix_refresh): Correct cast for aup_gids assignment.
299         * sunrpc/rpc/auth.h (authunix_create): Correct types in declaration.
300         * sunrpc/rpc/auth_unix.h (struct authunix_parms): Correct field
301         types to uid_t and gid_t respectively.
302         (struct short_hand_verf): Likewise.
303         Reported by Andreas Schwab.
305         * sysdeps/ieee754/Makefile: New file.  Make sure ieee754.h gets
306         installed.
307         * sysdeps/ieee754/ieee754.h: Protect against multiple inclusion and
308         use in C++ programs.
310         * sysdeps/libm-i387/e_pow.S: New file.  Optimized ix87 assembler
311         version of pow() function.
312         * sysdeps/libm-i387/e_powf.S: New file.  Float version.
313         * sysdeps/libm-i387/e_powl.S: New file.  Long double version.
315         * sysdeps/libm-i387/s_expm1.S: New file.  Optimized ix87 assembler
316         version of expm1() function.
317         * sysdeps/libm-i387/s_expm1f.S: New file.  Float version.
318         * sysdeps/libm-i387/s_expm1l.S: New file.  Long double version.
320         * sysdeps/libm-i387/e_exp.S: Optimize handling of +-Inf.
321         Better handling of computation stack from current NetBSD sources.
322         * sysdeps/libm-i387/e_expf.S: Likewise.
323         * sysdeps/libm-i387/e_expl.S: Likewise.
325         * sysdeps/libm-i387/e_log.S: Use fstp instead of fincstp.
326         * sysdeps/libm-i387/e_logf.S: Likewise.
327         * sysdeps/libm-i387/e_logl.S: Likewise.
328         * sysdeps/libm-i387/e_log10.S: Likewise.
329         * sysdeps/libm-i387/e_log10f.S: Likewise.
330         * sysdeps/libm-i387/e_log10l.S: Likewise.
331         * sysdeps/libm-i387/s_asinh.S: Likewise.
332         * sysdeps/libm-i387/s_asinhf.S: Likewise.
333         * sysdeps/libm-i387/s_asinhl.S: Likewise.
334         * sysdeps/libm-i387/s_significandl.S: Likewise.
336         * sysdeps/libm-i387/s_ceil.S: Don't create stack frame.  Modify
337         stack pointer directly.  Use 32 bit instead of 16 bit operations.
338         * sysdeps/libm-i387/s_ceilf.S: Likewise.
339         * sysdeps/libm-i387/s_ceill.S: Likewise.
340         * sysdeps/libm-i387/s_floor.S: Likewise.
341         * sysdeps/libm-i387/s_floorf.S: Likewise.
342         * sysdeps/libm-i387/s_floorl.S: Likewise.
344         * sysdeps/libm-ieee754/e_coshf.c (huge): Don't declare volatile.
345         * sysdeps/libm-ieee754/e_expf.c: Likewise.
346         * sysdeps/libm-ieee754/e_powf.c: Likewise.
347         From current NetBSD sources.
349         * sysdeps/libm-ieee754/e_hypot.c (__ieee754_hypot): Don't initialize
350         `a' and `b' in definition.
351         * sysdeps/libm-ieee754/e_hypotf.c: Likewise.
353         * sysdeps/libm-ieee754/e_hypotl.c: New file.  Long double
354         implementation.
355         * sysdeps/libm-ieee754/e_sinhl.c: New file.  Long double
356         implementation.
357         * sysdeps/stub/e_hypotl.c: Removed.  We have a real version now.
358         * sysdeps/stub/e_sinhl.c: Removed.
360         * sysdeps/posix/sigpause.c (__sigpause): Use sigdelset instead of
361         sigaddset.  Reported by Andreas Schwab.
362         (__default_sigpause): New function.  Call __sigpause as BSD version.
363         Make this the default function by providing alias sigpause.
364         * sysdeps/stub/sigpause.c (__default_sigpause): New funciton.
365         Simply fail.  Provide alias sigpause.
367 Wed Jan  1 12:34:54 1997  Ulrich Drepper  <drepper@cygnus.com>
369         * po/es.po: Update for glibc-1.98.
370         * po/fr.po: Likewise.
371         * po/sv.po: New file.  Swedish translation.
373 Wed Jan  1 12:18:07 1997   MacGyver  <macgyver@tos.net>
375         * values.h: Fix typos: use SHRT_MAX but SHORT_MAX and SHRT_MIN but
376         SHORT_MIN.
378 Tue Dec 24 23:10:21 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
380         * Makefile: Replace `stubs.h' by `gnu/stubs.h'.
381         * features.h: Include <gnu/stubs.h> instead of <stubs.h>.
383 Tue Dec 24 22:16:55 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
385         * Makefile (subdirs): Move `elf' last so that librtld.so isn't
386         relinked in the `make others' pass if an add-on adds something to
387         libc.
389 Mon Dec 23 21:23:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
391         * sysdeps/m68k/abort-instr.h: New File.
393 Mon Dec 23 21:16:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
395         * sysdeps/m68k/Makefile ($(subdir)=elf): Define CFLAGS-rtld.c
396         to prevent warning.
398 Mon Dec 23 21:14:22 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
400         * resolv/Makefile (subdirs-dirs): Define.
402 Mon Dec 23 20:56:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
404         * sysdeps/gnu/utmpbits.h (struct utmp): Fix padding.
406 Mon Dec 30 11:05:11 1996  Ulrich Drepper  <drepper@cygnus.com>
408         Update from ADO tzcode1996o.
409         * time/difftime.c: De-ANSI-declfy.  Simplify computation of hibit
410         according to ADO version.
411         * time/zic.c: Correct typo is message.
413         Update from ADO tzdata1996n.
414         * time/asia: Updated.
415         * time/australasia: Likewise.
416         * time/europe: Likewise.
417         * time/northamerica: Likewise.
418         * time/southamerica: Likewise.
420 Mon Dec 30 01:32:59 1996  Ulrich Drepper  <drepper@cygnus.com>
422         * tme/localtime.c: Rewrite so that localtime_r does not call tzset,
423         but localtime does.
425         * features.h: Rename ANSI C to ISO C.
426         Mention __GLIBC__ and __GLIBC_MINOR__ macros.
428         * gnu-versions.h: Add _GNU_GETOPT_INTERFACE_VERSION.
429         * posix/getopt.c: Use _GNU_GETOPT_INTERFACE_VERSION to check
430         whether we can elide the code.
431         * posix/getopt1.c: Likewise.
432         * posix/Makefile: Correct copyright.
434         * elf/dl-error.c (_dl_catch_error): Clear `catch' also when error
435         occurred.
436         * elf/dl-support.c (_dl_sysdep_open_zero_fill): Don't define if
437         MAP_ANON is defined.
438         * elf/eval.c: Use __getline instead of getline.
439         * elf/rtld.c (dl_main): Check return value of _dl_new_object
440         function for NULL.
441         * sysdeps/generic/dl-cache.c: Update copyright.
443         * signal/Makefile: Correct copyright.
444         (routines): Remove gsignal and ssignal.  Add bsd_signal.
445         * signal/gsignal.c: Removed.  Now is made an alias.
446         * signal/ssignal.c: Likewise.
447         * sysdeps/posix/raise.c: Add alias gsignal.
448         * sysdeps/stub/raise.c: Likewise.
449         * sysdeps/posix/signal.c: Add alias ssignal.
450         * sysdeps/stub/signal.c: Likewise.
451         * signal/signal.h: Declare bsd_signal.  Define signal as bsd_signal
452         if __FAVOR_BSD.
453         * sysdeps/posix/bsd_signal.c: New file.  Implementation of XPG
454         function.  This is the old signal.c file.
455         * sysdeps/posix/signal.c: Change to have semantic of X/Open.
457         * sysdeps/unix/sysv/linux/signal.c: Add explanation.
459         * socket/sys/un.h: Define SUN_LEN according to POSIX.1g.
461         * stdio-common/Makefile (tests): Add scanf10.
462         * stdio-common/scanf10.c: New file.
463         * stdio-common/vfscanf.c: Decrement counter if EOF is read while
464         reading string.
466         * sysdeps/libm-i387/e_acos.S: Use END, not PSEUDO_END.
467         * sysdeps/libm-i387/e_acosl.S: Likewise.
468         * sysdeps/libm-i387/e_asin.S: Likewise.
469         * sysdeps/libm-i387/e_asinl.S: Likewise.
470         * sysdeps/libm-i387/e_atan2.S: Likewise.
471         * sysdeps/libm-i387/e_atan2f.S: Likewise.
472         * sysdeps/libm-i387/e_atan2l.S: Likewise.
473         * sysdeps/libm-i387/e_exp.S: Likewise.
474         * sysdeps/libm-i387/e_expl.S: Likewise.
475         * sysdeps/libm-i387/e_fmod.S: Likewise.
476         * sysdeps/libm-i387/e_fmodl.S: Likewise.
477         * sysdeps/libm-i387/e_log.S: Likewise.
478         * sysdeps/libm-i387/e_log10.S: Likewise.
479         * sysdeps/libm-i387/e_log10l.S: Likewise.
480         * sysdeps/libm-i387/e_logl.S: Likewise.
481         * sysdeps/libm-i387/e_remainder.S: Likewise.
482         * sysdeps/libm-i387/e_remainderf.S: Likewise.
483         * sysdeps/libm-i387/e_remainderl.S: Likewise.
484         * sysdeps/libm-i387/e_scalb.S: Likewise.
485         * sysdeps/libm-i387/e_scalbl.S: Likewise.
486         * sysdeps/libm-i387/e_sqrt.S: Likewise.
487         * sysdeps/libm-i387/e_sqrtf.S: Likewise.
488         * sysdeps/libm-i387/e_sqrtl.S: Likewise.
489         * sysdeps/libm-i387/s_atan.S: Likewise.
490         * sysdeps/libm-i387/s_atanf.S: Likewise.
491         * sysdeps/libm-i387/s_atanl.S: Likewise.
492         * sysdeps/libm-i387/s_ceil.S: Likewise.
493         * sysdeps/libm-i387/s_ceilf.S: Likewise.
494         * sysdeps/libm-i387/s_ceill.S: Likewise.
495         * sysdeps/libm-i387/s_copysign.S: Likewise.
496         * sysdeps/libm-i387/s_copysignf.S: Likewise.
497         * sysdeps/libm-i387/s_copysignl.S: Likewise.
498         * sysdeps/libm-i387/s_cos.S: Likewise.
499         * sysdeps/libm-i387/s_cosf.S: Likewise.
500         * sysdeps/libm-i387/s_cosl.S: Likewise.
501         * sysdeps/libm-i387/s_finite.S: Likewise.
502         * sysdeps/libm-i387/s_finitef.S: Likewise.
503         * sysdeps/libm-i387/s_finitel.S: Likewise.
504         * sysdeps/libm-i387/s_floor.S: Likewise.
505         * sysdeps/libm-i387/s_floorf.S: Likewise.
506         * sysdeps/libm-i387/s_floorl.S: Likewise.
507         * sysdeps/libm-i387/s_ilogb.S: Likewise.
508         * sysdeps/libm-i387/s_ilogbf.S: Likewise.
509         * sysdeps/libm-i387/s_ilogbl.S: Likewise.
510         * sysdeps/libm-i387/s_log1p.S: Likewise.
511         * sysdeps/libm-i387/s_log1pf.S: Likewise.
512         * sysdeps/libm-i387/s_log1pl.S: Likewise.
513         * sysdeps/libm-i387/s_logb.S: Likewise.
514         * sysdeps/libm-i387/s_logbf.S: Likewise.
515         * sysdeps/libm-i387/s_logbl.S: Likewise.
516         * sysdeps/libm-i387/s_rint.S: Likewise.
517         * sysdeps/libm-i387/s_rintf.S: Likewise.
518         * sysdeps/libm-i387/s_rintl.S: Likewise.
519         * sysdeps/libm-i387/s_scalbn.S: Likewise.
520         * sysdeps/libm-i387/s_scalbnf.S: Likewise.
521         * sysdeps/libm-i387/s_scalbnl.S: Likewise.
522         * sysdeps/libm-i387/s_significand.S: Likewise.
523         * sysdeps/libm-i387/s_significandf.S: Likewise.
524         * sysdeps/libm-i387/s_significandl.S: Likewise.
525         * sysdeps/libm-i387/s_sin.S: Likewise.
526         * sysdeps/libm-i387/s_sinf.S: Likewise.
527         * sysdeps/libm-i387/s_sinl.S: Likewise.
529         * sysdeps/libm-i387/e_log.S: Use fyl2xp1 instruction for values
530         near 1 to increase precision.
531         * sysdeps/libm-i387/e_log10.S: Likewise.
532         * sysdeps/libm-i387/e_log10l.S: Likewise.
533         * sysdeps/libm-i387/e_logl.S: Likewise.
535         * sysdeps/libm-i387/s_cos.S: Use testl instead of andw.
536         * sysdeps/libm-i387/s_cosl.S: Likewise.
537         * sysdeps/libm-i387/s_sin.S: Likewise.
538         * sysdeps/libm-i387/s_sinl.S: Likewise.
539         * sysdeps/libm-i387/s_tan.S: Likewise.
540         * sysdeps/libm-i387/s_tanl.S: Likewise.
542         * sysdeps/libm-i387/e_acosf.S: New file.  Add float versions.
543         * sysdeps/libm-i387/e_asinf.S: Likewise.
544         * sysdeps/libm-i387/e_expf.S: Likewise.
545         * sysdeps/libm-i387/e_fmodf.S: Likewise.
546         * sysdeps/libm-i387/e_log10f.S: Likewise.
547         * sysdeps/libm-i387/e_logf.S: Likewise.
548         * sysdeps/libm-i387/e_scalbf.S: Likewise.
550         * sysdeps/libm-i387/e_acosh.S: New file.  Highly optimized versions.
551         * sysdeps/libm-i387/e_acoshf.S: Likewise.
552         * sysdeps/libm-i387/e_acoshl.S: Likewise.
553         * sysdeps/libm-i387/e_atanh.S: Likewise.
554         * sysdeps/libm-i387/e_atanhf.S: Likewise.
555         * sysdeps/libm-i387/e_atanhl.S: Likewise.
556         * sysdeps/libm-i387/e_asinh.S: Likewise.
557         * sysdeps/libm-i387/e_asinhf.S: Likewise.
558         * sysdeps/libm-i387/e_asinhl.S: Likewise.
560         * sysdeps/libm-ieee754/s_asinhf.c: Tweak a bit.  Use lower levels
561         for simplified handling.
563         * sysdeps/unix/sysv/linux/syscalls.list: Add query_module.
565 Sun Dec 22 01:39:29 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
567         * inet/rcmd.c (rcmd): Set h_errno before calling herror.
568         * inet/rexec.c (rexec): Likewise.
570 Sat Dec 21 21:47:08 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
572         * sysdeps/unix/sysv/linux/m68k/setjmp.c (__setjmp): Make it really
573         compatible.
575 Sun Dec 22 03:23:33 1996  Ulrich Drepper  <drepper@cygnus.com>
577         * sysdeps/libm-i387/s_log1p.S: Use fyl2xp1 for numbers in range
578         -0.29 <= x <= 0.29, otherwise the old method.
579         * sysdeps/libm-i387/s_log1pf.S: Likewise.
580         * sysdeps/libm-i387/s_log1pl.S: Likewise.
582 Sun Dec 22 00:01:27 1996  Ulrich Drepper  <drepper@cygnus.com>
584         * inet/getnetgrent.c: Reformat copyright.
586         * inet/getnetgrent_r.c (__internal_endnetgrent): Correct comment.
587         (__internal_getnetgrent): Rename to __internal_getnetgrent_r as
588         required in change nis/nss_compat/* at Thu Dec 19 14:24:50 1996.
589         Reported by Thorsten Kukuk <kukuk@weber.uni-paderborn.de>.
591         * nss/nss_files/files-netgrp.c: Fix typo.
592         * login/utmp_db.c: Comment out unused variables.
593         * misc/tst-dirname.c: Provide prototype for main (for now).
594         * new-malloc/mcheck-init.c: Include <mcheck.h>.
595         * new-malloc/obstack.c: Provide real prototypes.
597         * resolv/base64.c (b64_ntop): Use size_t as type of `i', not int.
598         (b64_pton): Likewise for `tarindex'.
599         * resolv/nsap_addr.c (inet_nsap_addr): Add cast to prevent warning.
601         * stdio-common/Makefile: Add CFLAGS-vfprintf.c to prevent warning.
602         * stdio-common/printf-parse.h: Remove definition of MIN and MAX.
603         * stdio-common/printf-prs.c: Include <sys/param.h> to get MIN and MAX.
604         * stdio-common/vfprintf.c: Likewise.
605         * stdlib/gmp-impl.h: Only define MIN and MAX if not already done.
606         * stdlib/tst-strtol.c: Don't use -2147483648 as unsigned long value.
608         * sysdeps/generic/Makefile ($(subdir)=string): Define
609         CFLAGS-wordcopy.c to prevent warning.
610         * sysdeps/generic/mul_n.c (mpn_mul_n): Don't define as inline.
611         * sysdeps/generic/wordcopy.c: De-ANSI-declfy.
612         * sysdeps/i386/Makefile ($(subdir)=elf): Define CFLAGS-rtld.c
613         to prevent warning.
614         * sysdeps/i386/dl-machine.h: Correct copyright.
615         * sysdeps/unix/closedir.c: Likewise.
616         * sysdeps/unix/dirstream.h: Likewise.
617         * sysdeps/unix/opendir.c: Likewise.
618         * time/tzset.c: Add prototype for __tzset_internal.
620         * sysdeps/gnu/utmpbits.h (enum utlogin): Comment out since the
621         way it is supposed to work is not yet known.
622         (struct utmp): Remove ut_login and ut_syslen field for now.
624 Sat Dec 21 16:23:54 1996  Ulrich Drepper  <drepper@cygnus.com>
626         * time/strftime.c: Fix another bug in handling flags made it
627         impossible to use the `-', `_', or `0' flag.
629 Sat Dec 21 04:14:16 1996  Ulrich Drepper  <drepper@cygnus.com>
631         * sysdeps/unix/common/pause.c: Add missing second argument in
632         call to __sigpause.
633         Reported by a sun <asun@zoology.washington.edu>.
635         * locale/weight.h: Correct handling of collation elements.
636         Reported by Keld Simonsen <keld@dkuug.dk>.
638         * manual/time.texi: Document ^ flag and %P format.
640         * new-malloc/malloc.c: Update from Wolfram Gloger.
642         * nss/nss.h: Reformat copyright.
643         * posix/sched.h: Likewise.
644         * sysdeps/i386/fpu_control.h: Likewise.
645         * sysdeps/unix/sysv/linux/fcntlbits.h: Likewise.
646         * sysdeps/unix/sysv/linux/ioctls.h: Likewise.
647         * sysdeps/unix/sysv/linux/sigcontext.h: Likewise.
648         * sysdeps/unix/sysv/linux/utsnamelen.h: Likewise.
649         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
650         * sysvips/sys/msg.h: Likewise.
652         * stdio-common/Makefile (routines): Remove fcloseall.
653         * stdio-common/fcloseall.c: Removed.
655         * stdlib/Makefile (distribute): Add abort-instr.h.
656         * sysdeps/generic/abort-instr.h: New file.
657         * sysdeps/i386/abort-instr.h: New file.
658         * sysdeps/generic/abort.c: Use lock and stage counter to prevent
659         any form of loop.
661         * sysdeps/unix/sysv/linux/timebits.h: Define CLK_TCK as 100.
662         * sysdeps/unix/sysv/linux/alpha/timebits.h: Define CLOCKS_PER_SEC
663         as 1000000.  Define CLK_TCK as 1024.
664         * time/time.c (CLK_TCK): Define only if not already set.
666         * time/strftime.c: Don't use `isdigit' when computing field width
667         from string since the locale might have more than one digit
668         block.
670 Fri Dec 20 12:38:14 1996  Darrel Hankerson  <hankedr@mail.auburn.edu>
672         * posix/getopt.c (in -W option handling): Return when optind == argc.
674 Thu Dec 19 14:24:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
676         * nis/nss_nis/nis-alias.c (_nss_nis_parse_aliasent): Add const to
677         type of KEY.
679         * nis/nss_compat/compat-grp.c: Include the declaration of the file
680         parser.
681         * nis/nss_compat/compat-pwd.c: Likewise.
682         * nis/nss_compat/compat-spwd.c: Likewise.
683         * nis/nss_nis/nis-ethers.c: Likewise.
684         * nis/nss_nis/nis-grp.c: Likewise.
685         * nis/nss_nis/nis-network.c: Likewise.
686         * nis/nss_nis/nis-proto.c: Likewise.
687         * nis/nss_nis/nis-pwd.c: Likewise.
688         * nis/nss_nis/nis-rpc.c: Likewise.
689         * nis/nss_nis/nis-spwd.c: Likewise.
691         * nis/nss_compat/compat-grp.c (getgrent_next_nis,
692         getgrent_next_file): Pass the correct type for the buffer to the
693         parser function.
694         * nis/nss_compat/compat-pwd.c (getpwent_next_netgr,
695         getpwent_next_nis, getpwent_next_file): Likewise.
696         * nis/nss_compat/compat-spwd.c (getspent_next_netgr,
697         getspent_next_nis, getspent_next_file): Likewise.
698         * nis/nss_nis/nis-ethers.c (internal_nis_getetherent_r,
699         _nss_nis_getethernam_r, _nss_nis_getetherbyaddr_r): Likewise.
700         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r,
701         _nss_nis_getgrnam_r, _nss_nis_getgrgid_r): Likewise.
702         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r,
703         _nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
704         * nis/nss_nis/nis-proto.c (internal_nis_getprotoent_r,
705         _nss_nis_getprotobyname_r, _nss_nis_getprotobynumber_r): Likewise.
706         * nis/nss_nis/nis-pwd.c (internal_nis_getpwent_r,
707         _nss_nis_getpwnam_r, _nss_nis_getpwuid_r): Likewise.
708         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r,
709         _nss_nis_getrpcbynumber_r): Likewise.
710         * nis/nss_nis/nis-spwd.c (internal_nis_getspent_r,
711         _nss_nis_getspnam_r): Likewise.
713 Thu Dec 19 13:37:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
715         * sysdeps/unix/sysv/linux/m68k/setjmp.c: New file.
717 Thu Dec 19 23:28:33 1996  Ulrich Drepper  <drepper@cygnus.com>
719         * resolv/resolv.h: Update from BIND 4.9.5-P1.
720         * resolv/res_comp.c: Likewise.
721         * resolv/res_debug.c: Likewise.
722         * resolv/Banner: Update version number.
724 Thu Dec 19 20:58:53 1996  Ulrich Drepper  <drepper@cygnus.com>
726         * elf/dlfcn.h: Add extern "C" wrapper.
728         * io/utime.h: Don't define NULL since this isn't allowed in POSIX.
729         * io/sys/stat.h: Declare `lstat' only if __USE_BSD ||
730         __USE_XOPEN_EXTENDED.
731         * locale/locale.h: Define NULL.
732         * math/math.c: Don't include <errno.h> to define math errors.
733         * stdlib/stdlib.h: Likewise.
734         * posix/unistd.h: Don't declare environ.
735         * posix/sys/utsname.h (struct utsname): Declare member domainname
736         as __domainname is !__USE_GNU.
737         * signal/signal.h: Declare size_t only if __USE_BSD ||
738         __USE_XOPEN_EXTENDED.
739         * stdio/stdio.h: Don't declare cuserid when __USE_POSIX, but
740         instead when __USE_XOPEN.
741         * string/string.h: Define strndup only if __USE_GNU.
742         * sysdeps/unix/sysv/linux/clock.c: New file.
743         * sysdeps/unix/sysv/linux/timebits.h: Define CLOCKS_PER_SEC as
744         1000000 per X/Open standard.
745         * features.h: Add code to recognize _POSIX_C_SOURCE value 199309.
746         Define __USE_POSIX199309.
747         * posix/unistd.h: Declare fdatasync only if __USE_POSIX199309.
748         * time/time.c: Declare nanosleep only if __USE_POSIX199309.
749         Patches by Rüdiger Helsch <rh@unifix.de>.
751         * locale/locale.h: Add declaration of newlocale and freelocale.
753         * new-malloc/Makefile (distibute): Add mtrace.awk.
754         (dist-routines): Add mcheck and mtrace.
755         (install-lib, non-lib.a): Define as libmcheck.a.
756         * new-malloc/malloc.h: Add declaration of __malloc_initialized.
757         * new-malloc/mcheck.c: New file.
758         * new-malloc/mcheck.h: New file.
759         * new-malloc/mtrace.c: New file.
760         * new-malloc/mtrace.awk: New file.
762         * posix/unistd.h: Correct prototype for usleep.
763         * sysdeps/unix/bsd/usleep.c: De-ANSI-declfy.  Correct return type.
764         * sysdeps/unix/sysv/linux/usleep.c: Real implementation based on
765         nanosleep.
767         * signal/signal.h: Change protoype of __sigpause to take two
768         arguments.  Remove prototype for sigpause.  Add two different
769         macros named sigpause selected when __USE_BSD or __USE_XOPEN
770         are defined.  This is necessary since the old BSD definition
771         of theis function collides with the X/Open definition.
772         * sysdeps/posix/sigpause.c: Change function definition to also
773         fit X/Open definition.
775         * sysdeps/libm-i387/e_exp.S: Make sure stack is empty when the
776         function is left.
777         * sysdeps/libm-i387/e_expl.S: Likewise.
778         Patch by HJ Lu.
780 1996-12-17  Paul Eggert  <eggert@twinsun.com>
782         * many, many files: Spelling corrections.
783         * catgets/catgetsinfo.h (mmapped):
784         Renamed from mmaped (in struct catalog_info.status).
785         * mach/err_kern.sub (err_codes_unix), string/stratcliff.c (main):
786         Fix spelling in message.
787         * po/libc.pot: Fix spelling in message for `zic'; this anticipates
788         a fix in the tzcode distribution.
790 Wed Dec 18 15:48:02 1996  Ulrich Drepper  <drepper@cygnus.com>
792         * time/strftime.c: Implement ^ flag to cause output be converted
793         to use upper case characters.
795         * time/zic.c: Update from ADO tzcode1996n.
797 Wed Dec 18 14:29:24 1996  Erik Naggum  <erik@naggum.no>
799         * time/strftime.c (add): Don't change global `i' until all is over.
800         Define NULL is not already defined.
802 Tue Dec 17 09:49:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
804         * libio/iovsprintf.c (_IO_vsprintf): Change `&sf' to `&sf._sbf._f'
805         to avoid the need for a cast.
806         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
808 Wed Dec 18 03:31:58 1996  Ulrich Drepper  <drepper@cygnus.com>
810         * dirent/scandir.c: Undo change from Mon Dec  2 15:32:15 1996.
811         The stream is private and usages outside glibc don't care about
812         reentrancy.
813         * io/fts.c: Likewise.
814         * io/ftw.c: Likewise.
815         * sysdeps/posix/getcwd.c: Likewise.
816         * sysdeps/posix/ttyname.c: Likewise.
817         * sysdeps/posix/ttyname_r.c: Likewise.
818         * sysdeps/posix/glob.c: Likewise.
820         * libio/iovsprintf.c: Add cast to prevent warning.
821         * libio/iovsscanf.c: Likewise.
823         * libio/libioP.h: Define mmap to __mmap and munmap to __munmap
824         to keep namespace clean.
826         * new-malloc/malloc.c: Update to last version from Wolfram Gloger.
827         Add hooks and check functions from old GNU malloc.
828         * new-malloc/malloc.h: Likewise.
830         * nis/ypclnt.c: Remove prototype for xdr_free.
831         * sunrpc/rpc/xdr.h: Add prototype for xdr_free.
833         * manual/nss.texi: Correct description of default values and don't
834         meantion NSS as an add-on.
836         * nss/grp-lookup.c: Provide default value as
837         "compat [NOTFOUND=return] files".
838         * nss/pwd-lookup.c: Likewise.
839         * nss/spwd-lookup.c: Likewise.
840         * nss/network-lookup.c: Correct default to
841         "dns [!UNAVAIL=return] files".
842         * nss/nsswitch.c: Change default-default value to "nis
843         [NOTFOUND=return] files" since compat is only available for group,
844         passwd, and shadow.
846         * stdlib/on_exit.c (on_exit): Rename to __on_exit and make old name
847         a weak alias.
848         * stdlib/stdlib.h: Add prototype for __on_exit.
850         * sysdeps/unix/sysv/linux/schedbits.h: Add prototype for __clone.
852         * time/Makefile: Undo change from Sun Dec  8 06:56:49 1996.
853         The new malloc now has mcheck.
854         * time/ap.c: Likewise.
856         * time/tzset.c (__tzset): Rename to __tzset_internal.
857         (tzset): Rename to __tzset.  Make tzset a weak alias for __tzset.
858         * time/localtime.c: Use __tzset_internal not __tzset.
859         * time/strftime.c [_LIBC]: Define tzname as __tzname and tzset
860         as __tzset to prevent namespace pollution.
862         * wctype/iswctype.h (icwctype): Rename to __iswctype.  Make iswctype
863         a weak alias of __iswctype.
864         * wctype/wctype.h: Add prototype for __iswctype.
865         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph,
866         iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank):
867         Use __iswctype for the test, not iswctype.
869 1996-12-16  Paul Eggert  <eggert@twinsun.com>
871         * hurd/hurd/sigpreempt.h
872         (struct hurd_signal_preemptor.preemptor, _hurdsig_preemptors),
873         hurd/hurd/signal.h (struct hurd_sigstate.preemptors),
874         hurd/hurdfault.c, hurd/hurdfault.h (_hurdsig_fault_preemptor),
875         hurd/hurdsig.c (_hurdsig_preempters):
876         Renamed to fix spelling from `preempter' to `preemptor'.
877         All uses changed.
879 1996-12-15  Paul Eggert  <eggert@twinsun.com>
881         * ctime.c (ctime): Return asctime (localtime (t)), as the C
882         standard requires.
884 Tue Dec 17 02:05:48 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
886         * sysdeps/mach/libc-lock.h (__libc_lock_trylock): Invert return
887         value because Mach/cthreads uses the opposite convention from
888         Posix/glibc.
890 Mon Dec 16 22:41:01 1996  Ulrich Drepper  <drepper@cygnus.com>
892         * stdio-common/fcloseall.c: Correct test of already_called.
893         Reported by Thomas Bushnell, n/BSG.
895 Mon Dec 16 14:52:07 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
897         * mach/lock-intern.h (__mutex_try_lock): New function.
899 Sun Dec 15 16:33:44 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
901         * termios/sys/ttydefaults.h (TTYDEF_OFLAG): Only use OXTABS if
902         defined, else XTABS.
903         (CEOL, CSTATUS): Use _POSIX_VDISABLE if defined.
905 Sun Dec 15 11:56:19 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
907         * sysdeps/unix/sysv/linux/m68k/mremap.S: New file.
908         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
909         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines): Add mremap.
911 Mon Dec 16 02:15:42 1996  Ulrich Drepper  <drepper@cygnus.com>
913         Make sure tzset() sets always tzname[].
914         * time/tzfile.c: De-ANSI-declfy.
915         (find_transition): New function.  Set tzname according to given time.
916         (__tzread_file): Use find_transition to set tzname.
917         (__tzfile_compute): Use find_transition instead of doing the work
918         self.
919         * time/tzset.c (tzset): Set tzname[] directly only if !__use_tzfile.
921 Sun Dec 15 16:52:34 1996  Ulrich Drepper  <drepper@cygnus.com>
923         * login/utmp-file.c (pututline_file): Open file if closed.
924         Reported by Roma Ekzhanov <ekzhanov@paragraph.com>.
925         Use fcntl instead of flock.
927 Sun Dec 15 14:20:51 1996  Ulrich Drepper  <drepper@cygnus.com>
929         * manual/time.texi: Update documentation of strftime function.
931 Sun Dec 15 01:53:20 1996  Ulrich Drepper  <drepper@cygnus.com>
933         * Makefile (subdirs): Change crypt to md5-crypt.
934         * crypt/Makefile, crypt/md5-crypt.c, crypt/md5.c, crypt/md5.h,
935         crypt/md5c-test.c, crypt/md5test.c: Move to new directory
936         md5-crypt.
937         * sysdeps/unix/sysv/linux/configure.in: Refer to linuxthreads and
938         crypt instead of LinuxThreads and des-crypt.
940         * Makefile (subdirs): Add nss back.
941         * sysdeps/unix/inet/Subdirs: Move nis to end of file to fulfill
942         dependencies.
944         * libio/iofclose.c: Implement fclose(NULL) as closing all streams.
945         * stdio-common/Makefile (routines): Add fcloseall.
946         * stdio-common/fcloseall.c: New file.
947         * sysdeps/generic/abort.c: Make implementation POSIX.1 compatible.
949         * sysdeps/mach/libc-lock.h: Add definition of __libc_lock_trylock.
950         * sysdeps/stub/libc-lock.h: Define __libc_lock_trylock to always
951         return 0.
953         * stdio-common/printf.h: Define MIN and MAX only if not already
954         defined.
956         * stdio-common/vfprintf.c: Set errno to EBADF if stream does not
957         allow writing.  Required by POSIX.1.
959         * libio/libioP.h (CHECK_FILE): Use MAYBE_SET_EINVAL instead of
960         assignment.
962         * interp.c: Update copyright.
963         * libio/clearerr.c: Likewise.
964         * libio/ioseekoff.c: Likewise.
965         * libio/ioseekpos.c: Likewise.
966         * stdio/fclose.c: Likewise.
967         * stdio/fflus.c: Likewise.
969         * libio/libio.h [!_IO_MTSAFE_IO]: Define _IO_cleanup_region_start
970         and _IO_cleanup_region_end as empty.
971         * libio/fgetc.c: Use _IO_cleanup_region_start and
972         _IO_cleanup_region_end instead of __libc_cleanup_region_start and
973         __libc_cleanup_region_end.
974         * libio/fputc.c: Likewise.
975         * libio/freopen.c: Likewise.
976         * libio/fseek.c: Likewise.
977         * libio/getc.c: Likewise.
978         * libio/getchar.c: Likewise.
979         * libio/iofclose.c: Likewise.
980         * libio/iofflush.c: Likewise.
981         * libio/iofgetpos.c: Likewise.
982         * libio/iofgets.c: Likewise.
983         * libio/iofputs.c: Likewise.
984         * libio/iofread.c: Likewise.
985         * libio/iofsetpos.c: Likewise.
986         * libio/ioftell.c: Likewise.
987         * libio/iofwrite.c: Likewise.
988         * libio/iogetdelim.c: Likewise.
989         * libio/iogets.c: Likewise.
990         * libio/ioputs.c: Likewise.
991         * libio/iosetbuffer.c: Likewise.
992         * libio/iosetvbuf.c: Likewise.
993         * libio/ioungetc.c: Likewise.
995         * libio/iovspintf.c: Use cleanup handler to make sure no dangling
996         locks can stay over.
997         * libio/iovsscanf.c: Likewise.
999         * libio/genops.c: Use _IO_lock_init_recursive and _IO_lock_fini
1000         instead of __libc_lock_init_recursive and __libc_lock_fini.
1002         * libio/filedoalloc.c: Only use __isatty when compiling GNU libc.
1003         Otherwise use isatty.
1004         * libio/fileops.c: Likewise for __open and open.
1006         * login/utmp_file.c (getutent_r_file): Use fcntl instead of
1007         flock.
1009         * nis/ypclnt.h: Add more casts to prevent warnings.
1011         * nss/Makefile (services): Remove dns.
1012         (libnss_dns, libnss_dns-inhibit-o): Remove definition.
1013         ($(objpfx)libnss_dns.so): Removed.
1014         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Moved to...
1015         * resolv/nss_dns: ...here.
1016         * resolv/Makefile (extra-libs): Add libnss_dns.
1017         (libnss_dns-routines, libnss_dns-inhibit-o): Define as in
1018         nss/Makefile.
1020         * nss/XXX-lookup.c: Call __nss_database_lookup with new argument
1021         specifying alternate name for entry in /etc/nsswitch.conf
1022         * nss/nsswitch.c: If no entry with primary name is found in
1023         /etc/nsswitch.conf try alternate name if given.
1024         * nss/nsswitch.h: Add new parameter in prototype for
1025         __nss_database_lookup.
1026         * nss/spwd-lookup.c: Provide alternative entry name to look for.
1027         This makes our NSS compatible with Solaris' nsswitch.conf files.
1029         * string/tst-strlen.c: Change all counting variables to type size_t
1030         to prevent warnings.
1032         * sysdeps/posix/fpathconf.c: Update copyright.
1033         * sysdeps/posix/pathconf.c: Don't call fpathconf to do the work.
1034         Opening the file at this path may fail if it is a FIFO or pipe.
1036         These changes make the time implementation POSIX.1 compliant.
1037         * time/localtime.c (__localtime_r): Always call __tzset not only
1038         if __tzset_run is zero.
1039         * time/strftime.c: Add definition of memset_space to help to
1040         reduce for systems which have memset.
1041         (strftime): Don't use tm_zone member of argument for zone name.
1042         Instead always use tzname[].
1043         Call tzset() as required by POSIX.1 before any action.
1044         * time/tzset.c (tzset): Set tzname[] as required by POSIX.1.
1045         Remove global variable __tzset_run.  __tzset is now called always
1046         when a dependent function is used.
1047         (__tzset): Caching happens based on the contents of the
1048         environment variable TZ.
1050 Fri Dec 13 01:06:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1052         * sysdeps/unix/sysv/linux/paths.h: Add _PATH_KLOG.
1054 Thu Dec 12 09:16:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1056         * rellns-sh: Correctly handle a relative source file name.
1058 Wed Dec 11 19:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1060         * login/utmp_file.c (setutent_file): Seek back to beginning of the
1061         file if resetting.
1063 Thu Dec 12 16:39:12 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1065         * hurd/hurdinit.c (map0): Delete function.  Don't do this on
1066         _hurd_preinit_hook.
1067         * hurd/hurdstartup.c (_hurd_startup): Map page zero redzone here.
1069 Thu Dec 12 03:32:21 1996  Ulrich Drepper  <drepper@cygnus.com>
1071         * libio/_G_config.h: Add definition of _G_int16_t, _G_int32_t,
1072         _G_uint16_t, _G_uin32_t, _G_HAVE_BOOL, _G_HAVE_MMAP, and
1073         _G_ARGS.
1075         Change libio buffer handling to allocate internal buffers using
1076         mmap if possible.
1077         * libio/filedoalloc.c (_IO_file_doallocate): Change call to
1078         ALLOC_BUF.
1079         * libio/genops.c (_IO_setb, _IO_default_finish): Change call
1080         to FREE_BUF.
1081         (_IO_default_doallocate): Change call to ALLOC_BUF.
1082         * libio/libioP.h: Change definition of ALLOC_BUF and FREE_BUF
1083         to use mmap/munmap when possible.
1084         * libio/memstream.c: Don't use ALLOC_BUF, but directly malloc.
1085         * libio/vasprintf.c: Likewise.
1086         Patch by HJ Lu.
1088         * libio/libio.h: Define NULL as __null only for gcc-2.8 and up.
1089         * libio/libioP.h: Likewise.
1091         * libio/fileops.c (_IO_file_read, _IO_file_write): Don't
1092         restart syscall when EINTR was returned.  Necessary for POSIX.1.
1094         * libio/strops.c (_IO_str_overflow): Add cast to prevent warning.
1096         * new-malloc/malloc.c (heap_trim): Correctly place parentheses to
1097         prevent warnings.
1099         * nis/Makefile: Remove rules for bsd-tools which are not part
1100         of glibc.
1101         Patch by Thorsten Kukuk.
1103         * nis/ypclnt.c: Add prototype for xdr_free.
1104         Add const to first parameter for __yp_bind.
1105         * nis/nss_compat/compat-pwd.c (getpwent_next_netgr, getpwent_next_nis,
1106         getpwent_next_file): Variable `p2len' must have type size_t.
1107         * nis/nss_nis/nis-alias.c: Add casts to prevent warnings.
1108         * nis/nss_nis/nis-ethers.c: Likewise.
1109         * nis/nss_nis/nis-grp.c: Likewise.
1110         * nis/nss_nis/nis-hosts.c: Likewise.
1111         * nis/nss_nis/nis-network.c: Likewise.
1112         * nis/nss_nis/nis-proto.c: Likewise.
1113         * nis/nss_nis/nis-pwd.c: Likewise.
1114         * nis/nss_nis/nis-rpc.c: Likewise.
1115         * nis/nss_nis/nis-service.c: Likewise.
1116         * nis/nss_nis/nis-spwd.c: Likewise.
1118         * nis/rpcsvc/yp_prot.h (ypreq_key): Change type of members to
1119         `const char *'.
1120         (ypmaplist): Change member names to `map' and `next' and provide
1121         #defines for old names.
1122         Patch by Thorsten Kukuk.
1124         * nss/nss_files/files-parse.c (parse_line, parse_list): Change
1125         type for `datalen' parameter to size_t.
1127         * shsdow/lckpwdf.c: Use fcntl forlocking, not flock.
1129         * stdio-common/printf.c [USE_IN_LIBIO]: Provide alias _IO_printf
1130         for printf.
1131         * stdio-common/sscanf.c [USE_IN_LIBIO]: Provide alias _IO_sscanf
1132         for sscanf.
1133         Patch by HJ Lu.
1135         * stdio-common/tmpfile.c: Update copyright.
1137         * stdio-common/vfscanf.c: Correctly handle EINTR error from fgetc
1138         function.
1139         Don't eat white space for `C' format.
1141         * stdlib/tst-strtol.c [~0UL != 0xffffffff]: Fix typo in test data.
1143         * sysdeps/generic/abort.c: Update copyright.  De-ANSI-declfy.
1144         * sysdeps/i386/abort.c: Removed.  This version does not use
1145         signal SIGABRT.
1147         * sysdeps/i386/fpu/__math.h: Define __NO_MATH_INLINES if not using
1148         gcc-2.8 or up.
1149         Patch by HJ Lu.
1151         * sysdeps/posix/tempname.c: Test for error but EEXIST after open
1152         call.  If EMFILE, ENFILE, or EINTR return with error.
1154 Wed Dec 11 14:43:52 1996  Ulrich Drepper  <drepper@cygnus.com>
1156         * gnu-versions.h: Set _GNU_OBSTACK_INTERFACE_VERSION back to 1.
1157         We are compatible again.
1158         * new-malloc/obstack.h (struct obstack): Add back alloc_failed bit
1159         even though it is not used.
1160         * malloc/obstack.h: Likewise.
1161         * new-malloc/obstack.c (_obstack_begin, _obstack_begin_1): Initialize
1162         alloc_failed bit to 0.
1164         * time/strftime.c: Extend for Emacs' needs.  Recognize field width,
1165         %P format and `0' modifier.
1167 Tue Dec 10 21:20:44 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1169         * Makerules (make-link): Don't discard exit codes of intermediate
1170         commands.  Always use rellns-sh if symbolic links are available.
1172 Tue Dec 10 20:09:51 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1174         * sysdeps/unix/sysv/linux/netinet/in.h: Enclose #include
1175         <linux/in.h> in __BEGIN_DECLS/__END_DECLS to avoid linkage
1176         conflict of ntohs etc. in <asm/byteorder.h>.
1178 Wed Dec 11 01:04:30 1996  Ulrich Drepper  <drepper@cygnus.com>
1180         Add NIS NSS implementation.
1181         * shlib-versions: Add versions for NIS libraries.
1182         * sysdeps/unix/inet/Subdirs: Add nis.
1183         * nis/Banner: New file.
1184         * nis/Makefile: New file.
1185         * nis/nss-nis.h: New file.
1186         * nis/yp_xdr.h: New file.
1187         * nis/ypclnt.h: New file.
1188         * nis/ypupdate_xdr.c: New file.
1189         * nis/nss_compat/compat-grp.c: New file.
1190         * nis/nss_compat/compat-pwd.c: New file.
1191         * nis/nss_compat/compat-spwd.c: New file.
1192         * nis/nss_nis/nis-alias.c: New file.
1193         * nis/nss_nis/nis-ethers.c: New file.
1194         * nis/nss_nis/nis-grp.c: New file.
1195         * nis/nss_nis/nis-hosts.c: New file.
1196         * nis/nss_nis/nis-netgrp.c: New file.
1197         * nis/nss_nis/nis-network.c: New file.
1198         * nis/nss_nis/nis-proto.c: New file.
1199         * nis/nss_nis/nis-publickey.c: New file.
1200         * nis/nss_nis/nis-pwd.c: New file.
1201         * nis/nss_nis/nis-rpc.c: New file.
1202         * nis/nss_nis/nis-service.c: New file.
1203         * nis/nss_nis/nis-spwd.c: New file.
1204         * nis/rpcsvc/yp.h: New file.
1205         * nis/rpcsvc/yp.x: New file.
1206         * nis/rpcsvc/yp_prot.h: New file.
1207         * nis/rpcsvc/ypclnt.h: New file.
1208         * nis/rpcsvc/ypupd.h: New file.
1210         * libio/_G_config.h: Define _G_HAVE_SYS_WAIT and _G_HAVE_PRINTF_FP.
1212         * locale/C-numeric.c: Update copyright.
1214         * locale/Makefile: Add rules to build libBrokenLocale.
1215         * locale/broken_cur_max.c: New file.
1216         * locale/mb_cur_max.c: Update copyright.
1217         (__ctype_get_mb_cur_max): Make function weak.
1219         * new-malloc/malloc.c: Correct copyright.
1220         * new-malloc/thread-m.h: Correct key handling.
1222         * shadow/lckpwdf.c: Update copyright.
1223         (PWD_LOCKFILE): Change to /etc/.pwd.lock.
1225         * stdlib/strtod.c: Add another assertion.
1226         * stdlib/tst-strtod.c: Add another test case.
1228         * sysdeps/generic/paths.h: Add _PATH_PRESERVE.  Needed by nvi.
1229         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1231         * sysdeps/gnu/utmpbits.h: Rename ut_addr field to ut_addr_v6.
1232         ut_addr names a single element in ut_addr_v6.
1234         * sysdeps/mach/hurd/xmknod.c: Remove alias from __mknod to mknod.
1235         Patch by Thomas Bushnell, n/BSG.
1237 Tue Dec 10 11:35:28 1996  Richard Henderson  <rth@tamu.edu>
1239         * sysdeps/alpha/strncmp.S: Fix aligned short truncated compare
1240         corner condition.
1242         * sysdeps/alpha/memchr.S: Don't read ahead, even if the load
1243         did fit nicely into that delay slot (patch from David Mosberger-Tang).
1245 Mon Dec  9 23:53:43 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1247         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Renamed from
1248         `ttyname_r'.
1249         (ttyname_r): New alias.
1251 Tue Dec 10 02:17:31 1996  Ulrich Drepper  <drepper@cygnus.com>
1253         * stdio-common/printf_fp.c (__guess_grouping): Fix off by one
1254         error in computation of number of groups.
1255         Patch sent by Harald Schreiber <Harald.Schreiber@post.rwth-aachen.de>.
1257 Tue Dec 10 01:50:07 1996  Ulrich Drepper  <drepper@cygnus.com>
1259         * version.h: Set version to 1.99.
1261         * Make-dist (routines): Add malloc and new-malloc.
1263         * Makeconfig: Allow Makefiles to set $(CPPFLAGS-$(<F)) and
1264         $(CPPFLAGS-$(@F)) to be added to CPPFLAGS.
1265         Same for $(CFLAGS-$(@F)) and CFLAGS.
1267         * gmon/sys/gmon_out.h: Add __BEGIN_DECLS/__END_DECLS.  Unify
1268         layout.
1269         * io/sys/poll.h: Likewise.
1270         * sysdeps/stub/sys/ipb_buf.h: Likewise.
1271         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Likewise.
1272         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
1273         * sysdeps/unix/sysv/linux/sys/ipc_buf.h: Likewise.
1274         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Likewise.
1275         * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
1276         * sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
1277         * sysdeps/unix/sysv/linux/sys/module.h: Likewise.
1278         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
1279         * sysdeps/unix/sysv/linux/sys/msq_buf.h: Likewise.
1280         * sysdeps/unix/sysv/linux/sys/param.h: Likewise.
1281         * sysdeps/unix/sysv/linux/sys/procfs.h: Likewise.
1282         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
1283         * sysdeps/unix/sysv/linux/sys/reboot.h: Likewise.
1284         * sysdeps/unix/sysv/linux/sys/sem_buf.h: Likewise.
1285         * sysdeps/unix/sysv/linux/sys/shm_buf.h: Likewise.
1286         * sysdeps/unix/sysv/linux/sys/socketcall.h: Likewise.
1287         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
1288         * sysdeps/unix/sysv/linux/sys/sysctl.h: Likewise.
1289         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Likewise.
1290         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
1291         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
1292         * sysvipc/sys/sem.h: Likewise.
1293         * sysvipc/sys/shm.h: Likewise.
1295         * new-malloc/Makefile: Set CPPFLAGS-malloc.o.
1296         * new-malloc/malloc.c: Remove problem with 64 bits pointers.
1297         Add statistics for threads.
1298         * new-malloc/malloc.h: Likewise.
1299         * new-malloc/thread-m.h: Likewise.
1301         * time/strftime.c: Declare tzname if if HAVE_TZNAME is defined.
1303         * time/strptime.c: Update copyright.
1305 Mon Dec  9 14:51:10 1996  Ulrich Drepper  <drepper@cygnus.com>
1307         * Make-dist: Make sure both malloc directories get distributed.
1309 Sun Dec  8 23:14:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1311         * libio/iogets.c (_IO_gets): Fix early returns to not leave the
1312         stream locked.
1314 Sat Dec  7 22:08:09 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1316         * sysdeps/unix/sysv/linux/sys/module.h: Enclose declarations in
1317         __BEGIN_DECLS/__END_DECLS.
1319 Sat Dec  7 14:23:12 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1321         * login/utmp_file.c: Consistently set file_offset to the position
1322         after the entry just read.
1324 Mon Dec  9 03:39:30 1996  Ulrich Drepper  <drepper@cygnus.com>
1326         * config.make.in (defines): Add @USE_NEW_MALLOC@.
1327         * Makefile.in: Define USE_NEW_MALLOC to -DUSE_NEW_MALLOC if
1328         we use the new malloc.
1330         * malloc.h: Use either <malloc/malloc.h> or <new-malloc/malloc.h>
1331         depending on USE_NEW_MALLOC.
1333         Fix some more POSIX.1 problems.
1334         * libio/fileops.c (_IO_file_underflow): Set errno to EBADF if used
1335         on a write-only stream.
1336         (_IO_file_overflow): Set errno to EBADF if used on a read-only
1337         stream.
1338         (_IO_file_seekoff): POSIX.1 requires that fseek() after an fflush()
1339         call really positions the file offset to the correct position
1340         and no read-ahead happens.
1342         * locale/C-monetary.c: Set mon_grouping file to "" and "\377"
1343         to pass POSIX test suite.
1344         * stdio-common/vfprintf.c: Handle empty string as grouping command
1345         correctly.
1346         * stdlib/grouping.h: Likewise.
1348         * misc/syslog.c: Case first argument of __libc_cleanup_region_start.
1350         * signal/sigsetops.h: Update copyright.  Don't include ansidecl.h.
1352         * stdio-common/printf_fp.c: Update copyright.
1354 Sun Dec  8 16:39:28 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
1356         * time/Makefile: Compile ap.c with NO_MCHECK flag if new-malloc
1357         used (not otherwise).
1359 Sun Dec  8 06:56:49 1996  Ulrich Drepper  <drepper@cygnus.com>
1361         * io/getwd.c: Use PATH_MAX not LOCAL_PATH_MAX.  Fix typo in
1362         comment.
1363         * stdlib/canonicalize.c: Correct bugs in last change.
1364         Patch by HJ Lu.
1366         * libio/Makefile (routines): Remove ioprims.
1367         (aux): Remove cleanup.
1368         Add IO_DEBUG option for .o files.
1369         * libio/cleanups.c: Removed.
1370         * libio/ioprims.c: Removed.
1371         * libio/filedoalloc.c: More updates from libg++-2.8b5.
1372         * libio/fileops.c: Likewise.
1373         * libio/genops.c: Likewise.
1374         * libio/iolibio.h: Likewise.
1375         * libio/iopopen.c: Likewise.
1376         * libio/iovsprintf.c: Likewise.
1377         * libio/iovsscanf.c: Likewise.
1378         * libio/libio.h: Likewise.
1379         * libio/libioP.h: Likewise.
1380         * libio/memstream.c: Likewise.
1381         * libio/strfile.h: Likewise.
1382         * libio/vasprintf.c: Likewise.
1383         * libio/vsnprintf.c: Likewise.
1385         * libio/stdio.h: Define P_tmpdir only is __USE_SVID.
1387         * manual/arith.texi: Change references to ANSI C to ISO C.
1388         * manual/conf.texi: Likewise.
1389         * manual/creature.texi: Likewise.
1390         * manual/ctype.texi: Likewise.
1391         * manual/errno.texi: Likewise.
1392         * manual/filesys.texi: Likewise.
1393         * manual/intro.texi. Likewise.
1394         * manual/io.texi: Likewise.
1395         * manual/lang.texi: Likewise.
1396         * manual/libc.texinfo: Likewise.
1397         * manual/locale.texi: Likewise.
1398         * manual/maint.texi: Likewise.
1399         * manual/mbyte.texi: Likewise.
1400         * manual/memory.texi: Likewise.
1401         * manual/process.texi: Likewise.
1402         * manual/process.texi: Likewise.
1403         * manual/search.texi: Likewise.
1404         * manual/setjmp.texi: Likewise.
1405         * manual/signal.texi: Likewise.
1406         * manual/startup.texi: Likewise.
1407         * manual/stdio.texi: Likewise.
1408         * manual/string.texi: Likewise.
1409         * manual/time.texi: Likewise.
1411         * manual/locale.texi: Remove description of LC_RESPONSE and add
1412         LC_MESSAGES.
1414         * Makefile (subdirs): Change malloc in $(malloc).
1415         * config.make.in: Add variable malloc which is initialized from
1416         @malloc@.
1417         * configure.in: Add new option --enable-new-malloc to use new
1418         malloc.  This is the default on Linux.
1419         * sysdeps/unix/sysv/linux/configure.in: Define malloc to new-malloc
1420         by default.
1421         * new-malloc/Makefile: New file.  Improved malloc implementation.
1422         * new-malloc/malloc.c: Likewise.
1423         * new-malloc/malloc.h: Likewise.
1424         * new-malloc/mallocbug.c: Likewise.
1425         * new-malloc/obstack.c: Likewise.
1426         * new-malloc/obstack.h: Likewise.
1427         * new-malloc/thread-m.h: Likewise.
1428         * time/Makefile: Compile ap.c with NO_MCHECK flag for now.
1429         * time/ap.c: Don't call mcheck if NO_MCHECK is defined.
1431         * resolv/Makefile: Add rule to rebuiild libresolv.so when libc.so
1432         changed.
1434         * stdio/feof.c: Update copyright.
1435         * stdio/stdio.h: Add field for lock to FILE structure.
1436         Add cast to *MAGIC constants to prevent warnings.
1438         * stdio-common/bug7.c: Correct test.  Stream must not be closed
1439         twice.
1441         * stdlib/Makefile (routines): Add secure-getenv.
1442         * stdlib/secure-getenv.c: New file.  __secure_getenv function
1443         moved to here from sysdeps/generic/getenv.c.  Otherwise an
1444         application cannot replace the getenv function in the libc.
1445         * sysdeps/generic/getenv.c: Remove __secure_getenv function.
1446         * sysdeps/stub/getenv.c: Remove __secure_getenv alias.
1448         * sysdeps/mach/libc-lock.h: Define__libc_mutex_lock to __mutex_lock.
1450         * sysdeps/posix/fdopen.c: Update copyright.  Don't use EXFUN.
1452         * time/test-tz.c: Comment fifth test out.  PROBLEM.
1454         * time/tzset.c: De-ANSI-declfy.
1455         (__tzset): Don't increment pointer tz when no DST information is
1456         given.
1458         * misc/syslog.c (vsyslog): Cast argument to __libc_cleanup_region
1459         to get Hurd macros right.
1461 Sat Dec  7 23:47:54 1996  Ulrich Drepper  <drepper@cygnus.com>
1463         * sysdeps/mach/libc-lock.h [_LIBC]: Add definition of
1464         __libc_mutex_lock.
1465         Patch by Thomas Bushnell.
1467         * sysdeps/unix/sysv/linux/timebits.h: Load <asm/param.h> only
1468         if __USE_MISC.
1470         * sysdeps/unix/sysv/linux/Dist: Add llseek.c.
1472 Sat Dec  7 12:18:56 1996  Ulrich Drepper  <drepper@cygnus.com>
1474         * time/strftime (%c format): Remove %Z from default string.
1475         Reported by Paul Eggert
1477 Sat Dec  7 03:24:36 1996  Ulrich Drepper  <drepper@cygnus.com>
1479         * configure.in: Discard error message from test in test for
1480         bash-2.0.
1482         * io/getwd.c: Don't apply getcwd on user supplied buffer.
1483         Instead always use temporary buffer and only copy the result.
1484         Patch by HJ Lu.
1485         * stdlib/canonicalize.c: Likewise.
1487         * libio/fileops.c: Change comments according to libg++2.8b5.
1488         * libio/iosetvbuf.c: Follow change in libg++-2.8b5 to clear
1489         unbuffered flag.
1490         Reported by HJ Lu.
1492         * manual/nss.texi: Correct prototypes.
1494         * misc/syslog.c: Make reentrant.  Catch SIGPIPE signal to prevent
1495         crash if syslog daemon is restarted.
1497         * stdlib/rand_r.c: New file.  Implementation of POSIX.2 function
1498         rand_r.
1499         * stdlib/Makefile (routines): Add rand_r.
1501         * sysdeps/stub/libc-lock.h: Define __libc_lock_trylock and
1502         __libc_mutex_lock.
1504         * configure.in: Add --disable-sanity-check option.
1505         * sysdeps/unix/sysv/linux/configure.in: If linuxthreads or
1506         des-crypt are not available and --disbale-sanity-check is not
1507         given abort with a message.
1509 Thu Dec  5 19:19:53 1996  Richard Henderson  <rth@tamu.edu>
1511         * posix/glob.c: Tests against STDC_HEADERS should also test
1512         __GNU_LIBRARY__.
1514 Thu Dec  5 16:20:55 1996  Ulrich Drepper  <drepper@cygnus.com>
1516         * misc/err.c (vwarn): Set errno again before using %m format.
1518 Thu Dec  5 10:14:05 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
1520         * grp/grp.h: Add declaration of __getgrent_r.
1522         * io/fts.c (fts_build): Remove "register" from variables dirbuf
1523         and dp since their address is needed.
1525         * sysdeps/posix/getcwd.c (__getcwd): Remove "register" from
1526         variable d since d's address is needed.
1528         * misc/tst-dirname.c (main): Provide prototype.
1529         * misc/ioctltst.c (main): Dito.
1531         * Makefile: Add gnu/lib-names.h to install-others before including
1532         Makerules.
1534 Wed Dec  4 16:00:09 1996  Ulrich Drepper  <drepper@cygnus.com>
1536         * sysdeps/unix/sysv/linux/sys/socketvar.h: New file.  Simply use
1537         <sys/socket.h>.
1538         * sysdeps/unix/sysv/linux/Dist: Add sys/socketvar.h.
1539         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet)]: Add
1540         sys/socketvar.h to sysdep_headers.
1542 Tue Dec  3 08:38:15 1996  Richard Henderson  <rth@tamu.edu>
1544         * sysdeps/unix/alpha/sysdep.S: Remove definition of __errno_location.
1545         Reformat copyright.
1547         * elf/rtld.c (_dl_start): Don't dereference the value returned by
1548         elf_machine_got to get _DYNAMIC, instead call new function
1549         elf_machine_dynamic.
1550         * sysdeps/alpha/dl-machine.h: Permute elf_machine_got to
1551         elf_machine_dynamic.  Reformat copyright.
1552         * sysdeps/i386/dl-machine.h: Likewise.
1553         * sysdeps/m68k/dl-machine.h: Likewise.
1554         * sysdeps/mips/dl-machine.h: Likewise.
1555         * sysdeps/sparc/dl-machine.h: Likewise.
1556         * sysdeps/stub/dl-machine.h: Likewise.
1558 Tue Oct 15 23:46:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1560         * MakeTAGS (sysdep_dirs): Include add-on sysdep directories.
1562 Tue Dec  3 02:06:18 1996  Ulrich Drepper  <drepper@cygnus.com>
1564         * Makerules ($(libdir)/libc.so): Make first line of generated
1565         link script contain `/* GNU ld script'.  This will be used in
1566         ldconfig to check for linker scripts.
1567         * sysdeps/mach/hurd/libc-ldscript: Likewise.
1568         * sysdeps/mach/hurd/libc_p-ldscript: Likewise.
1570         * stdlib/getsubopt.c: Update copyright.  Correct typo in comment.
1572 Mon Dec  2 15:32:15 1996  Ulrich Drepper  <drepper@cygnus.com>
1574         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Remove unused variable
1575         `found_entry'.
1577         * misc/ttyslot.c: Use ttyname_r instead of ttyname.
1579         * assert/assert-perr.c: Use __strerror_r instead of strerror.
1580         * assert/assert.c: De-ANSIdecl-fy.  Update copyright.
1581         * string/string.h: Declare __strerror_r.
1582         * string/strerror_r.c: Make strerror_r a weak alias of __strerror_r.
1583         * stdio-common/vfprintf.c: Save current errno value on entry so
1584         that %m format finds the correct value.
1585         * io/getwd.c: Use __strerror_r instead of strerror.
1586         * misc/err.c (vwarn): Use %m printf format instead of explicitly
1587         calling strerror.
1588         * inet/rcmd.c: Likewise.
1589         * misc/error.c (error, error_at_line): Use __strerror_r instead
1590         of strerror when this function is available.
1592         * stdlib/rand.c: Update copyright and de-ANSI-declfy.
1593         * stdlib/random_r.c: Don't make srand_r weak alais of __srandom_r.
1594         * stdlib/stdlib.h: Define prototype for rand_r.
1596         * string/strfry.c: Update copyright.  Use reentrant random functions.
1598         * dirent/scandir.c: Use __readdir_r instead of readdir.
1599         * posix/glob.c: Likewise.
1600         * sysdeps/posix/ttyname.c: Likewise.
1601         * sysdeps/posix/ttyname_r.c: Likewise.
1602         * io/ftw.c: Likewise.
1603         * io/fts.c: Likewise.
1604         * sysdeps/posix/getcwd.c: Likewise.
1605         * dirent/dirent.h: Add prototype for __readdir_r.
1606         * sysdeps/unix/readdir_r: Update copyright.
1608         * time/ctime.c: Use __localtime_r and __asctime_r instead of
1609         non reentrant versions.
1610         * time/ctime_r.c: Update copyright.
1612         * intl/l10nflist.c (_nl_make_l10nflist): Pretty print.
1614         * locale/Makefile (localepath): Correct value.
1616         * nss/nss_files/files-XXX.c: Include <netdb.h> to define
1617         NETDB_INTERNAL.
1618         Fix typo in using H_ERRNO_SET macro.
1620 Fri Nov 29 23:22:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1622         * Makerules (elfobjdir): Definition removed.
1623         * Makeconfig (elfobjdir): Define it here instead, so that
1624         expanding $(rpath-link) gets the right value.
1626         * a.out.h: Removed.
1627         * misc/a.out.h: Moved to...
1628         * sysdeps/generic/a.out.h: ...here.
1629         * sysdeps/unix/sysv/linux/a.out.h: New file.  Wrapper around
1630         kernel header.
1632 Mon Dec  2 03:59:38 1996  Ulrich Drepper  <drepper@cygnus.com>
1634         * grp/initgroups.c: Update and reformat copyright.
1635         Use __getgrent_r instead of getgrent.
1637         * inet/rcmd.c: Update and reformat copyright.
1638         Use __gethostbyname_r instead of gethostbyname.
1639         * inet/rexec.c: Likewise.
1641         * intl/finddomain.c: Correct comment about CEN sponsor and revision.
1642         * locale/findlocale.c: Likewise.
1643         * intl/l10nflist.c: Correct handling of CEN sponsor and revision.
1644         * locale/Makefile (CPPFLAGS): Add definition of LOCALEDIR.
1645         * locale/setlocale.c (setlocale): Correctly split value of
1646         LOCALE_PATH.
1647         * locale/programs/localedef.c: Use LOCALEDIR not LOCALE_PATH to
1648         find output directory.
1650         * nss/getXXbyYY.c [NEED_H_ERRNO]: Before enlarging buffer test
1651         h_errno_tmp variable.
1652         Save error value from being changed during `free' call.
1653         * nss/getXXent.c: Likewise.
1655         * nss/nss_files/files-XXX.c: Set h_errno variable to NETDB_INTERNAL
1656         before returning ERANGE error.
1658         * posix/glob.c: Use getlogin_r and getpwnam_r function when available
1659         or in GNU libc.
1661         * pwd/getpw.c: Use getpwuid_r instead of getpwuid.
1663         * sunrpc/clnt_gen.c: Use gethostbyname_r and getprotobyname_r.
1664         * sunrpc/clnt_simp.c: Likewise.
1665         * sunrpc/getrpcport.c: Likewise.
1666         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
1668         * posix/getconf.c: Treat _SC_UNIT_MAX and _SC_ULONG_MAX separately
1669         since the value might be outside the range of the `long int'.
1670         Print string `undefined' when a value is undefined.
1672         * stdlib/l64a.c: Return correct pointer.
1673         Patch by NIIBE Yutaka <gniibe@mri.co.jp>.
1675         * string/Makefile (routines): Add argz-addsep.
1676         * string/argz-addsep.c: New file.
1677         * string/argz.h: Add prototypes for argz_add_sep.
1679         * string/argz-ctsep.c: Prevent memory leak.
1681         * string/strcoll.c: Correct typo in comment.
1683 Sat Nov 30 02:53:59 1996  Ulrich Drepper  <drepper@cygnus.com>
1685         * sysdeps/unix/sysv/linux/sys/serial.h: Removed again.  The file is
1686         not general enough to be part of the libc.
1687         * sysdeps/unix/sysv/linux/Dist: Remove sys/serial.h.
1688         * sysdeps/unix/sysv/linux/Makefile: Don't install sys/serial.h.
1690 Thu Nov 28 20:04:41 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1692         * login/Makefile: Fix typo.
1694         * nss/Makefile (generated): Filter out db-alias.c.
1696 Thu Nov 28 14:44:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1698         * time/Makefile (echo-zonenames): Don't depend on non-existing
1699         target `zonenames'.
1701 Thu Nov 28 12:34:05 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1703         * link.h: New file.
1704         * nss/nsswitch.c: Use it.
1706         * printf.h: Fix file name.
1707         * stdlib/strfmon.c: Use it.
1709 Thu Nov 28 23:03:32 1996  Ulrich Drepper  <drepper@cygnus.com>
1711         * sysdeps/unix/sysv/linux/netinet/in_systm.h: New file.
1712         * sysdeps/unix/sysv/linux/Dist: Add netinet/in_systm.h.
1713         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
1714         Add netinet/in_systm.h.
1715         Reported by NIIBE Yutaka <gniibe@mri.co.jp>.
1717 Thu Nov 28 03:11:11 1996  Ulrich Drepper  <drepper@cygnus.com>
1719         * libio/fileops.c: Update from latest libg++.
1721         * sysdeps/unix/sysv/linux/init-first.c: Reformat copyright.
1723         * sysdeps/stub/libc-lock.h: Add __libc_lock_init_recursive.
1724         * libio/genops.c (_IO_init): Use __libc_lock_init_recursive
1725         instead of __libc_lock_init for streams.
1726         Reported by a sun <asun@zoology.washington.edu>.
1728         * sysdeps/unix/sysv/linux/i386/brk.c: Reformat copyright.
1730         * sysdeps/generic/errno-loc.c: New file.  Generic definition of
1731         __errno_location function.
1732         * sysdeps/unix/sysv/linux/i386/sysdep.S: Remove definition of
1733         __errno_location.
1734         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1735         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=csu]: Add errno-loc
1736         to sysdep-routines.
1738         * sysdeps/unix/sysv/linux/configure: Add test for linuxthreads
1739         and crypt add-on and warn if not available.
1741 Wed Nov 27 23:09:37 1996  Ulrich Drepper  <drepper@cygnus.com>
1743         * po/ko.po: Update from Bang Jun-Young <bangjy@nownuri.nowcom.co.kr>.
1745         * sysdeps/unix/sysv/linux/syscalls.list: Remove _llseek.
1746         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=misc] (routines): Add
1747         llseek.
1748         * sysdeps/unix/sysv/linux/llseek.c: New file.  Uses syscall.
1749         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add __sys_llseek.
1750         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add __sys_llseek.
1751         Reported by HJ Lu <hjl@gnu.ai.mit.edu>.
1752         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add llseek.
1753         * sysdeps/unix/sysv/linux/alpha/llseek.S: Remove.  Generic syscall
1754         is enough.
1755         Patch by Richard Henderson <rth@tamu.edu>.
1757         * sysdeps/unix/sysv/linux/alpha/sys/io.h: Add prototypes for
1758         pciconfig_read and pciconfig_write.
1759         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add new syscalls
1760         pciconfig_read and pciconfig_write.
1762         * login/getutent_r.c: Fix several bugs in last change.
1764 Wed Nov 27 06:10:10 1996  Ulrich Drepper  <drepper@cygnus.com>
1766         * Makefile: Fix typo.
1768         * configure: Require autoconf-2.11.
1770         * elf/dl-deps.c: Terminate duplicate list.
1772         * libio/libio.h: Add prototypes for _IO_seekoff and _IO_seekpos.
1773         * libio/strfile.h: Update from current libg++.
1774         * libio/strops.c: Likewise.
1776         * login/Makefile (routines): Update after correction of reentrant
1777         interface.
1778         * login/endutent.c: Removed.
1779         * login/endutent_r.c: Likewise.
1780         * login/pututline.c: Likewise.
1781         * login/pututline_r.c: Likewise.
1782         * login/setutent.c: Likewise.
1783         * login/setutent_r.c: Likewise.
1784         * login/getutent.c: Update for new interface.
1785         * login/getutent_r.c: Likewise.
1786         * login/getutid.c: Likewise.
1787         * login/getutid_r.c: Likewise.
1788         * login/getutline.c: Likewise.
1789         * login/getutline_r.c: Likewise.
1790         * login/login.c: Likewise.
1791         * login/logout.c: Likewise.
1792         * login/logwtmp.c: Likewise.
1793         * login/utmp.h: Likewise.
1794         * sysdeps/unix/getlogin.c: Likewise.
1795         * sysdeps/unix/getlogin_r.c: Likewise.
1796         * login/utmp-private.h: New private header.
1797         * login/utmp_db.c: Stub DB backend for utmp handler.
1798         * login/utmp_file.c: File backend for utmp handler.
1799         * sysdeps/gnu/utmpbits.h (struct utmp): Add some more fields.
1800         (enum utlogin): List of record types.
1801         (struct exit_status): Record to align with other implementations.
1803         * sysdeps/generic/paths.h: Add _PATH_UTMP_DB.
1804         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1806         * sysdeps/generic/pty.c: Use getgrnam_r instead of getgrnam.
1808         * sysdeps/stub/getlogin.c: Update copyright.
1809         * sysdeps/stub/getlogin_r.c: Likewise.
1811         * nss/getXXbyYY_r.c: Use -1l for error-pointer value instead of -1.
1812         * nss/getXXent_r.c: Likewise.
1813         * nss/nsswitch.c: Likewise.
1815         * posix/Makefile (headers): Add wait.h.
1816         * posix/wait.h: New file.
1818         * posix/sys/types.h: Always define intN_t types.
1820         * stdio-common/Makefile: Update copyright.
1821         Use -Wno-format flag for scanf4.c and scanf7.c.
1823         * stdlib/stdlib.h: Reformat.
1825 Fri Nov 22 19:34:12 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1827         * sysdeps/posix/getcwd.c (__getcwd): After resizing the buffer
1828         move the current contents to the end and relocate file name
1829         pointer to upper half of the buffer.
1831 Sun Nov 24 04:56:19 1996  Ulrich Drepper  <drepper@cygnus.com>
1833         * time/africa: Update from ADO tzdata1996m.
1834         * time/antarctica: Likewise.
1835         * time/asia: Likewise.
1836         * time/australia: Likewise.
1837         * time/etcetera: Likewise.
1838         * time/europe: Likewise.
1839         * time/nothamerica: Likewise.
1840         * time/southameria: Likewise.
1841         * time/zone.tab: Likewise.
1843         * sysdeps/unix/sysv/linux/sys/serial.h: New file.
1844         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=misc] (sysdep_headers):
1845         Add sys/serial.h.
1846         * sysdeps/unix/sysv/linux/Dist: Add sys/serial.h.
1848         * posix/wait.h: New file.
1849         * posix/Makefile (headers): Add wait.h.
1851 Sat Nov 23 17:27:52 1996  Roland McGrath  <roland@gnu.ai.mit.edu>
1853         * Makeconfig ($(common-objpfx)soversions.mk): Use regular
1854         expression instead of shell pattern matching.
1855         * shlib-versions: Change to regular expressions.
1857 Sat Nov 23 13:24:55 1996  Ulrich Drepper  <drepper@cygnus.com>
1859         * io/stat.c: Add section from libgcc to copyright comment
1860         to allow this file to be statically linked in applications.
1861         * io/fstat.c: Likewise.
1862         * io/lstat.c: Likewise.
1863         * io/mknod.c: Likewise.
1865 Fri Nov 22 15:14:23 1996  Ulrich Drepper  <drepper@cygnus.com>
1867         * csu/initfini.c: Add section from libgcc to copyright comment
1868         to allow this file to be statically linked in applications.
1870         * malloc/obstack.h [!_LIBC && !HAVE_STRING_H]: Define memcpy if
1871         not already defined.
1872         (obstack_grow, obstack_grow0): Correct placement of braces.
1874         * gnu-versions.h (_GNU_OBSTACK_INTERFACE_VERSION): Define to 2.
1875         * malloc/obstack.c (OBSTACK_INTERFACE_VERSION): Define to 2.
1877 Thu Nov 21 19:54:51 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1879         * Makerules (make-link): Simplify by changing directory only if
1880         not using rellns-sh; check whether we really have symbolic links.
1882         * rellns-sh: Fix the case of $(dirname $2) being a prefix of
1883         $(dirname $1); use status of ln for exit code; make more robust
1884         against multiple slashes in a row.
1886 Thu Nov 21 13:05:21 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1888         * configure.in (after AC_CANONICAL_HOST): mutate *-*-gnu* names
1889         into *-*-gnu-gnu*.
1890         * shlib-versions (gnu versions): Recognize *-*-gnu-gnu* instead of
1891         the three-part name, to distinguish correctly from *-*-linux-gnu*.
1893         * sysdeps/mach/hurd/Makefile ($(libdir)/libc.so): Depend on
1894         $(rpcuserlibs).
1896         * sysdeps/mach/hurd/Makefile (install-others): Add
1897         $(libdir)/libc_p.a.
1898         ($(libdir)/libc_p.a): New rule.
1899         * sysdeps/mach/hurd/libc_p-ldscript: New file.
1900         * sysdeps/mach/hurd/Dist: Add libc_p-ldscript.
1902 Wed Nov 20 20:28:21 1996  Richard Henderson  <rth@tamu.edu>
1904         * Makerules (make-link): Use $(shell) to find rellns-sh before we cd.
1905         * time/Makefile: Likewise.
1907         * sysdeps/alpha/elf/Makefile: New file.  Build crtbegin.o & crtend.o.
1908         * sysdeps/alpha/elf/Dist: New file.
1909         * sysdeps/alpha/elf/crtbegin.S, sysdeps/alpha/elf/crtend.S: New files.
1910         The bits currently distributed with GCC fail in two ways -- they don't
1911         understand multiple .got subsections and the extents of the lists are
1912         dynamicly bound meaning that the application's lists get executed
1913         multiple times and the library's lists never get executed.
1915 Wed Nov 20 00:42:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1917         * stdlib/strtod.c: Fix previous change.
1919 Wed Nov 20 22:07:58 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
1921         * time/Makefile ($(installed-localtime-file)): Use $(..) to find
1922         rellns-sh script.
1924 Wed Nov 20 12:50:54 1996  Ulrich Drepper  <drepper@cygnus.com>
1926         * stdio-common/Makefile: Add CFLAGS-scanf7.c to prevent warning.
1927         Likesie for scanf4.c
1929 Wed Nov 20 02:04:11 1996  Ulrich Drepper  <drepper@cygnus.com>
1931         * sysdeps/unix/sysv/linux/sigsuspend.c: Make sigsuspend a weak
1932         alias of __sigsuspend.
1934         * grp/grp.h: Correct comment about POSIX compliance.
1935         * pwd/pwd.h: Likewise.
1937         * login/utmp.h: Update copyright and pretty-print prototypes.
1938         * sysdeps/generic/paths.h: Add _PATH_LASTLOG, _PATH_UTMP and
1939         _PATH_WTMP from utmpbits.h.
1940         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1941         * sysdeps/generic/utmpbits.h: Remove here.
1942         * sysdeps/gnu/utmpbits.h: Likewise.
1944         * misc/sys/uio.h: Place __BEGIN_DECLS correctly.
1945         Pretty-print prototypes.
1947         * sysdeps/unix/sysv/linux/sparc/clone.S: New file.  Taken from
1948         LinuxThreads-0.5.
1950 Tue Nov 19 13:43:07 1996  Richard Henderson  <rth@tamu.edu>
1952         * inet/ether_hton.c: Include <string.h>.
1953         * inet/ether_ntoh.c: Likewise.
1954         * inet/rexec.c: Get errno, index, getpass, getlogin from headers.
1955         * misc/search.h: Fix hcreate_r argument type (unsigned -> size_t).
1957         * misc/sys/cdefs.h: Change __long_double_t definition from typedef
1958         to define.  Jim Nance reports problems building XEmacs otherwise.
1960         * resolv/gethnamaddr.c: Protect h_errno redefinition.
1961         * resolv/getnetnamadr.c: Likewise.
1962         * resolv/herror.c: Likewise.
1964         * sysdeps/generic/sigset.h (__SIGSETFN): Operator ## doesn't work
1965         with -traditional.  Reported by Eric Youngdale.  While we're at this,
1966         don't do error checking in the __ functions.  This is consistent
1967         with the sysv4 definitions and seems Right.
1968         * signal/signal.h: Don't __OPTIMIZE__ sigops to __ versions.  Add
1969         prototype for __sigsuspend.
1970         * sysdeps/posix/sigblock.c: Optimize sigmask <-> sigset_t conversions
1971         for sigset_t == unsigned long.  De-ansidecl-ify.  Reformat copyright.
1972         * sysdeps/posix/sigpause.c: Likewise.
1973         * sysdeps/posix/sigsetmask.c: Likewise.
1974         * sysdeps/posix/sigvec.c: Likewise.
1975         * sysdeps/posix/sigintr.c: Reformat copyright.
1976         * sysdeps/posix/signal.c: Check signal number out of range since
1977         __sigismember doesn't anymore.  Reformat copyright.
1978         * sysdeps/posix/sigwait.c: Use __ versions of sigfillset, sigismember,
1979         sigdelset, sigaction, and sigsuspend.
1981         * stdlib/drand48-iter.c (__drand48_iterate): Cast state fragments
1982         to the wider type before shifting.
1984         * sysdeps/alpha/bsd-_setjmp.S: Silence assembler warning "$at used
1985         without .set noat" in profiling hook.
1986         * sysdeps/alpha/bsd-setjmp.S: Likewise.
1987         * sysdeps/alpha/htonl.S: Likewise.
1988         * sysdeps/alpha/htons.S: Likewise.
1989         * sysdeps/alpha/s_copysign.S: Likewise.
1990         * sysdeps/alpha/setjmp.S: Likewise.
1991         * sysdeps/alpha/stpcpy.S: Likewise.
1992         * sysdeps/alpha/strcat.S: Likewise.
1993         * sysdeps/alpha/strcpy.S: Likewise.
1994         * sysdeps/alpha/strncat.S: Likewise.
1995         * sysdeps/unix/sysv/linux/alpha/brk.S: Likewise.
1996         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1997         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
1998         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
1999         * sysdeps/unix/sysv/linux/alpha/llseek.S: Likewise.
2000         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.  Rename
2001         function to __sigsuspend and add weak alias.
2002         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.  Add missing END.
2004         * sysdeps/alpha/w_sqrt.S: Define _ERRNO_H so <errnos.h> defines EDOM.
2006         * sysdeps/unix/execve.S: Match PSEUDO_END symbol with the symbol
2007         SYSCALL__ actually generated.
2009         * sysdeps/unix/sysv/linux/errnos.h [_LIBC_REENTRANT]: Reflexively
2010         #define __set_errno, as several imported subsystems (eg. BIND) check
2011         that the symbol is defined.
2013         * sysdeps/unix/sysv/linux/getsysstats.c: Include <alloca.h>.
2015         * sysdeps/alpha/memcpy.S: Temporarily remove until I can find a bug
2016         that manifests in GCC.
2018 Tue Nov 19 11:10:05 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2020         * sysdeps/posix/writev.c (writev): COUNT parm is now int.
2021         * sysdeps/posix/readv.c (readv): Likewise.
2023 Tue Nov 19 15:28:29 1996  Ulrich Drepper  <drepper@cygnus.com>
2025         * nss/nss_dns/dns-network.c: Change return type of all functions
2026         to enum nss_status.
2027         Reported by NIIBE Yutaka.
2028         * nss/nss_dns/dns-host.c: Update copyright.
2030 Fri Nov 15 20:16:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2032         * config.make.in: Remove definition of top_absdir.
2033         * configure.in: Likewise. Use $(..) instead.
2034         * Makerules (make-link): Use $(..) to find rellns-sh script.
2036 Sat Nov 16 15:52:29 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2038         * manual/nss.texi (Name Service Switch): Fix reference to
2039         `frobnicate'.
2041 Fri Nov 15 22:08:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2043         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2044         sys/mtio.h.
2046 Mon Nov 18 05:51:13 1996  Ulrich Drepper  <drepper@cygnus.com>
2048         * sysdeps/generic/waitstatus.h (__WIFSIGNALED): Rename local
2049         variable from __stat to __status to prevent shadowing.
2050         * sunrpc/rpc/clnt.h (clntudp_create, clntudp_bufcreate): Likewise
2051         for parameter __wait.
2052         Reported by NIIBE Yutaka.
2054 Mon Nov 18 02:05:38 1996  Ulrich Drepper  <drepper@cygnus.com>
2056         * misc/regexp.c: New file.  Implementation of obsolete interface
2057         to regular expression matcher (required in XPG4.2).
2058         * misc/regexp.h: New file.  Header for above.
2059         * misc/Makefile (headers): Add regexp.h.
2060         (routines): Add regexp.c.
2061         Update copyright.
2063 Sun Nov 17 21:50:24 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
2065         * stdlib/tst-strtod.c (main): Add arguments for main.
2066         * stdlib/tst-strtol.c (main): Likewise.
2068 Sun Nov 17 21:15:05 1996  Ulrich Drepper  <drepper@cygnus.com>
2070         * configure.in: Substitute libc_cv_slibdir and libc_cv_sysconfdir
2071         in output files.
2072         * sysdepes/unix/sysv/linux/configure: Define libc_cv_slibdir to /lib
2073         and sysconfdir to /etc if $prefix is /usr.
2074         * config.make.in: Add slibdir, sysconfdir and BASH to be replaced.
2076         * elf/Makefile ($(objpfx)ldd): Install ldd.bash.in if
2077         $(have-bash2) is yes.
2078         * elf/ldd.bash.in: Add copyright and various cleanups.
2079         * elf/ldd.sh.in: Likewise.
2081         Implement RTLD_NEXT.
2082         * elf/dlfcn.h: Define RTLD_NEXT.
2083         * elf/dl-deps.c: Build second searchlist which contains duplicates.
2084         * elf/dl-lookup.c (_dl_lookup_symbol_skip): New function.  Used
2085         for RTLD_NEXT lookup.
2086         Rewrite _dl_lookup_symbol to put common parts for both lookup
2087         functions in a separate function.
2088         * elf/dlsym.c: Handle RTLD_NEXT by calling _dl_lookup_symbol_skip.
2089         * elf/link.h (struct link_map): Add l_dupsearchlist and
2090         l_ndupsearchlist.
2091         Add prototype for _dl_lookup_symbol_skip.
2093         * sunrpc/Makefile (rpcsvc): Add rusers.
2094         * sunrpc/rpcsvc/rnusers.x: Remove.  Obsolteted by rusers.x.
2095         * sunrpc/rpcsvc/rusers.x: New file.
2097 Sun Nov 17 04:24:35 1996  Ulrich Drepper  <drepper@cygnus.com>
2099         * stdio-common/vfprintf.c [USE_IN_LIBIO] (buffered_vfprintf): Call
2100         __libc_lock_init for local lock.
2101         Reported by a sun <asun@zoology.washington.edu>.
2102         [!USE_IN_LIBIO] (PAD): Optimize a bit.
2104 Sun Nov 17 03:13:57 1996  Ulrich Drepper  <drepper@cygnus.com>
2106         * db/makedb.c: Update and reformat copyright.
2107         * elf/Makefile: Likewise.
2108         * elf/dl-close.c: Likewise.
2109         * elf/dl-debug.c: Likewise.
2110         * elf/dl-deps.c: Likewise.
2111         * elf/dl-error.c: Likewise.
2112         * elf/dl-fini.c: Likewise.
2113         * elf/dl-init.c: Likewise.
2114         * elf/dl-load.c: Likewise.
2115         * elf/dl-lookup.c: Likewise.
2116         * elf/dl-minimal.c: Likewise.
2117         * elf/dl-object.c: Likewise.
2118         * elf/dl-open.c: Likewise.
2119         * elf/dl-reloc.c: Likewise.
2120         * elf/dl-runtime.c: Likewise.
2121         * elf/dl-support.c: Likewise.
2122         * elf/dl-symbol.c: Likewise.
2123         * elf/dladdr.c: Likewise.
2124         * elf/dlclose.c: Likewise.
2125         * elf/dlerror.c: Likewise.
2126         * elf/dlopen.c: Likewise.
2127         * elf/dlsym.c: Likewise.
2128         * elf/do-rel.h: Likewise.
2129         * elf/dynamic-link.h: Likewise.
2130         * elf/eval.c: Likewise.
2131         * elf/rtld.c: Likewise.
2132         * inet/ether_hton.c: Likewise.
2133         * inet/ether_ntoh.c: Likewise.
2134         * inet/ether_line.c: Likewise.
2135         * inet/getnetgrent_r.c: Likewise.
2137         * inet/Makefile (+gccwarn): Remove definition.
2138         Instead set CFLAGS-rcmd.c, CFLAGS-rexec.c, and CFLAGS-ruserpass.c
2139         to `-w'.
2140         * inet/aliases.h: Add C++ protection.
2141         * inet/ether_hton.c: Add prototype for __nss_ethers_lookup.
2142         (ether_hostton): Remove unused variable result.
2143         * inet/ether_ntoh.c: Likewise.
2144         * inet/ether_line.c: Include <ctype.h> and <string.h>.
2145         * inet/getnetgrent_r.c: Include <stdlib.h>.
2146         Use casts to prevent warnings.
2147         (innetgr): Initialize `known' and `needed'.
2148         * inet/inet_net.c: Make local variable `i' of type u_int32_t.
2149         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)) [NEED__RES]: Don't
2150         return NULL.  Instead set *RESULT to NULL and return -1.
2151         * nss/getXXent_r.c (INTERNAL (REENTRANT_GETNAME)): Likewise.
2152         (SETFUNC_NAME, ENDFUNC_NAME) [NEED__RES]: Don't return anything.
2154         * nss/nss_files/files-alias.c: Debug function.  I didn't worked at
2155         all before.
2157 Sat Nov 16 15:25:34 1996  Ulrich Drepper  <drepper@cygnus.com>
2159         * sysdeps/posix/readv.c: Don't use PTR anymore.
2160         * sysdeps/posix/writev.c: Likewise.
2162         * version.h (VERSION): Bump to 1.98.
2164         * nss/db-Makefile: Generate lines for getXXXent iteration.
2166         * sysdeps/alpha/Dist: Don't distribute removed files divlu.S,
2167         divqu.S, remlu.S, and remqu.S.
2169 Fri Nov 15 08:55:54 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
2171         * posix/unistd.h: Correct typo in documentation.
2173 Thu Nov 14 18:08:14 1996  a sun  <asun@zoology.washington.edu>
2175         * inet/netinet/tcp.h: Use __ protected versions instead of
2176         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN directly.
2178 Sat Nov 16 13:44:55 1996  Ulrich Drepper  <drepper@cygnus.com>
2180         * intl/loadmsgcat.c (_nl_msg_cat_cntr): Initialize so that
2181         references in libc.so are not anymore undefined.
2183 Sat Nov 16 18:17:36 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
2185         * io/utime.h: Rename second parameter for utime to prevent warning
2186         for -Wshadow.
2187         * dirent/dirent.h: Same here for scandir prototype.
2188         * math/mathcalls.h: Likewise for frexp and ldexp.
2189         * sysdeps/unix/sysv/linux/netinet/in.h: Likewise for bindresvport.
2191 Sat Nov 16 03:49:27 1996  Ulrich Drepper  <drepper@cygnus.com>
2193         * stdlib/tst-strtod.c: Add test for error case below.
2195 Sat Nov 16 03:48:39 1996  Wolfram Gloger  <Wolfram.Gloger@dent.med.uni-muenchen.de>
2197         * stdlib/strtod.c: Recognize numbers like 0e-19.
2199 Fri Nov 15 08:38:43 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
2201         * time/Makefile ($(installed-localtime-file)): Fix path to
2202         rellns-sh.
2204         * Makefile: Don't generate and install gnu/lib-names.h if
2205         $(build-shared) is not `yes'.
2207 Thu Nov 14 09:23:58 1996  H.J. Lu (hjl@gnu.ai.mit.edu)
2209         * sysdeps/posix/Makefile ($(common-objpfx)mk-stdiolim): Depend
2210         on $(..)posix/posix1_lim.h, not ../posix/posix1_lim.h.
2212         * Makerules (REAL_MAKE_VERSION): New, use it instead of
2213         MAKE_VERSION.
2215 Thu Nov 14 22:10:43 1996  Ulrich Drepper  <drepper@cygnus.com>
2217         * nss/nss_files/files-XXX.x (_nss_files_get,ENTNAME_r): Fix typo.
2218         * nss/getXXent_r.c: Fix typo.  Set correct return value when
2219         no further service is available.
2221 Thu Nov 14 17:48:13 1996  Ulrich Drepper  <drepper@cygnus.com>
2223         * db/recno/rec_put.c: Add cast to avoid warning.
2224         * db/recno/rec_close.c: Likewise.
2225         * db/mpool/mpool.c: Likewise.
2226         * db/hash/hash_bigkey.h: Likewise.
2227         * db/hash/hash.c: Likewise.
2228         * db/btree/bt_split.c: Likewise.
2229         * db/btree/bt_put.c: Likewise.
2231 Thu Nov 14 14:11:44 1996  Ulrich Drepper  <drepper@cygnus.com>
2233         * dirent/dirent.h: Update copyright.
2234         * elf/elf.h: Likewise.
2235         * elf/link.h: Likewise.
2236         * gmon/sys/gmon_out.h: Likewise.
2237         * gnu-versions.h: Likewise.
2238         * intl/libintl.h: Likewise.
2239         * io/fcntl.h: Likewise.
2240         * io/ftw.h: Likewise.
2241         * io/sys/statfs.h: Likewise.
2242         * io/utime.h: Likewise.
2243         * locale/langinfo.h: Likewise.
2244         * malloc/malloc.h: Likewise.
2245         * malloc/obstack.h: Likewise.
2246         * misc/ar.h: Likewise.
2247         * misc/error.h: Likewise.
2248         * misc/mntent.h: Likewise.
2249         * misc/sgtty.h: Likewise.
2250         * misc/sys/cdefs.h: Likewise.
2251         * misc/sys/dir.h: Likewise.
2252         * misc/sys/file.h: Likewise.
2253         * misc/sys/ioctl.h: Likewise.
2254         * misc/sys/ustat.h: Likewise.
2255         * posix/fnmatch.h: Likewise.
2256         * posix/getopt.h: Likewise.
2257         * posix/glob.h: Likewise.
2258         * posix/posix2_lim.h: Likewise.
2259         * posix/regex.h: Likewise.
2260         * posix/sys/times.h: Likewise.
2261         * posix/sys/types.h: Likewise.
2262         * posix/sys/utsname.h: Likewise.
2263         * posix/tar.h: Likewise.
2264         * posix/wordexp.h: Likewise.
2265         * resource/sys/resource.h: Likewise.
2266         * resource/sys/vlimit.h: Likewise.
2267         * resource/sys/vtimes.h: Likewise.
2268         * socket/sys/socket.h: Likewise.
2269         * socket/sys/un.h: Likewise.
2270         * stdio-common/printf.h: Likewise.
2271         * stdlib/alloca.h: Likewise.
2272         * string/argz.h: Likewise.
2273         * string/endian.h: Likewise.
2274         * string/envz.h: Likewise.
2275         * string/memory.h: Likewise.
2276         * string/strings.h: Likewise.
2277         * sysdeps/generic/crypt.h: Likewise.
2278         * sysdeps/generic/direntry.h: Likewise.
2279         * sysdeps/generic/gnu/types.h: Likewise.
2280         * sysdeps/generic/ioctl-types.h: Likewise.
2281         * sysdeps/generic/netinet/in.h: Likewise.
2282         * sysdeps/generic/resourcebits.h: Likewise.
2283         * sysdeps/generic/sigset.h: Likewise.
2284         * sysdeps/generic/sockaddrcom.h: Likewise.
2285         * sysdeps/generic/sys/mman.h: Likewise.
2286         * sysdeps/generic/sys/ptrace.h: Likewise.
2287         * sysdeps/generic/termbits.h: Likewise.
2288         * sysdeps/generic/waitstatus.h: Likewise.
2289         * sysdeps/ieee754/huge_val.h: Likewise.
2290         * sysdeps/ieee754/nan.h: Likewise.
2291         * sysdeps/mach/hurd/local_lim.h: Likewise.
2292         * sysdeps/mach/hurd/statbuf.h: Likewise.
2293         * sysdeps/stub/huge_val.h: Likewise.
2294         * sysdeps/stub/libc-lock.h: Likewise.
2295         * sysdeps/stub/signum.h: Likewise.
2296         * sysdeps/stub/statbuf.h: Likewise.
2297         * sysdeps/stub/waitflags.h: Likewise.
2298         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: Likewise.
2299         * sysdeps/unix/bsd/osf/alpha/statbuf.h: Likewise.
2300         * sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
2301         * sysdeps/unix/bsd/signum.h: Likewise.
2302         * sysdeps/unix/bsd/statbuf.h: Likewise.
2303         * sysdeps/unix/bsd/sun/signum.h: Likewise.
2304         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Likewise.
2305         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
2306         * sysdeps/unix/bsd/sun/sunos4/termbits.h: Likewise.
2307         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
2308         * sysdeps/unix/bsd/waitflags.h: Likewise.
2309         * sysdeps/unix/sysv/irix4/signum.h: Likewise.
2310         * sysdeps/unix/sysv/irix4/statbuf.h: Likewise.
2311         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
2312         * sysdeps/unix/sysv/linux/alpha/statbuf.h: Likewise.
2313         * sysdeps/unix/sysv/linux/alpha/sys/io.h: Likewise.
2314         * sysdeps/unix/sysv/linux/direntry.h: Likewise.
2315         * sysdeps/unix/sysv/linux/gnu/types.h: Likewise.
2316         * sysdeps/unix/sysv/linux/ioctl-types.h: Likewise.
2317         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
2318         * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
2319         * sysdeps/unix/sysv/linux/resourcebits.h: Likewise.
2320         * sysdeps/unix/sysv/linux/signum.h: Likewise.
2321         * sysdeps/unix/sysv/linux/statbuf.h: Likewise.
2322         * sysdeps/unix/sysv/linux/sys/io.h: Likewise.
2323         * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
2324         * sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
2325         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
2326         * sysdeps/unix/sysv/linux/syscall.h: Likewise.
2327         * sysdeps/unix/sysv/linux/termbits.h: Likewise.
2328         * sysdeps/unix/sysv/local_lim.h: Likewise.
2329         * sysdeps/unix/sysv/sco3.2.4/syscall.h: Likewise.
2330         * sysdeps/unix/sysv/sco3.2/local_lim.h: Likewise.
2331         * sysdeps/unix/sysv/signum.h: Likewise.
2332         * sysdeps/unix/sysv/sysv4/i386/statbuf.h: Likewise.
2333         * sysdeps/unix/sysv/sysv4/signum.h: Likewise.
2334         * sysdeps/unix/sysv/sysv4/sigset.h: Likewise.
2335         * sysdeps/unix/sysv/sysv4/solaris2/signum.h: Likewise.
2336         * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h: Likewise.
2337         * sysdeps/unix/sysv/sysv4/waitflags.h: Likewise.
2338         * sysdeps/vax/huge_val.h: Likewise.
2339         * values.h: Likewise.
2341 Thu Nov 14 04:22:41 1996  Ulrich Drepper  <drepper@cygnus.com>
2343         * malloc/obstack.h: Use memcpy instead of bcopy and define a macro
2344         `memcpy' using bcopy if memcpy is not available.
2346         * manual/stdio.texi: Correct description of printf customization.
2347         The argument info function is not optional anymore and the
2348         interface for `printf_function' also changed.
2349         * manual/examples/rprintf.c: Define and use argument info function.
2351         * stdio-common/printf.h (struct printf_info): Change type for field
2352         `pad' to wchar_t.
2353         Correct comment for `register_printf_function'.
2355         * nss/getXXbyYY.c [NEED_H_ERRNO]: Don't pass pointer to h_errno
2356         to reentrant function.  Instead use temporary variable and set
2357         h_errno if an error occured.
2358         Reported by NIIBE Yutaka.
2360 Fri Nov 15 12:27:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2362         * sysdeps/mach/hurd/statbuf.h (S_IPTRANS, S_IATRANS, S_IROOT,
2363         S_ITRANS): New macros.
2364         (S_ISPARE): Update to include new macros and S_IUSEUNK.
2366         * sysdeps/mach/hurd/select.c (__select): Construct arg to
2367         mach_msg_destroy more nicely.
2369         * sysdeps/mach/hurd/ioctl.c: Include <mach/mig-support.h>.
2371         * stdio/fopen.c (__getmode): Declare with prototype.
2372         * stdio/memstream.c (enlarge_buffer, seek, free_info): Likewise.
2373         * stdio/internals.c (__stdio_check_funcs, init_stream,
2374         seek_to_target, flushbuf, fillbuf): Likewise.
2376         * stdio-common/vfscanf.c (encode_error) [! USE_IN_LIBIO]: Call
2377         funlockfile, not _IO_funlockfile.
2379         * sysdeps/posix/readv.c (readv): Change return type to ssize_t.
2380         Deansideclized.
2381         * sysdeps/posix/writev.c (writev): Likewise.
2383         * sysdeps/mach/hurd/lchown.c: Include <fcntl.h> and fix typo.
2385 Thu Nov 14 12:53:16 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2387         * sysdeps/mach/hurd/i386/init-first.c (_dl_start): Make this a
2388         prototyped definition.
2390         * sysdeps/mach/hurd/select.c (__select): Deal properly when there
2391         are no bits set in the masks.  Reported by baldazzi@csr.unibo.it.
2393 Thu Nov 14 02:00:33 1996  Ulrich Drepper  <drepper@cygnus.com>
2395         * inet/Makefile (headers): Add aliases.h.
2396         (routines): Add getaliasent_r, getaliasent, getaliasname, and
2397         getaliasname_r.
2398         * aliases.h: New file.
2399         * inet/aliases.h: New file.
2400         * inet/getaliasent.c: New file.
2401         * inet/getaliasent_r.c: New file.
2402         * inet/getaliasname.c: New file.
2403         * inet/getaliasname_r.c: New file.
2404         * nss/Makefile (databases): Add alias.
2405         * nss/alias-lookup.c: New file.
2406         * nss/databases.def: Add aliases and publickey.
2407         * nss/nss_db/db-alias.c: New file.
2408         * nss/nss_files/files-alias.c: New file.
2410         * inet/getnetgrent_r.c (__internal_getnetgrent): Buffer length
2411         argument to lookup function is of type size_t.
2412         (innetgr): Likewise.
2413         * nss/getXXbyYY_r.c: Likewise.
2414         * nss/getXXent_r.c: Likewise.
2415         * nss/nss_db/db-XXX.c: Likewise.
2417         * nss/getXXbyYY.c: Don't provide static buffer.  Resize if call
2418         failed because buffer was too small.
2419         * nss/getXXent.c: Likewise.
2421         * nss/nss_files/files-XXX.c: Correct handling of shared file.  The
2422         getXXent_r function now uses f[gs]etpos to get to the correct
2423         position.
2425         * nss/nss_files/files-parse.c: Indent lines for better readability.
2427         * malloc/obstack.c: Add new variable obstack_alloc_failed_handler
2428         and new function print_and_abort.  Remove all references to
2429         alloc_failed field.
2430         Add new function _obstack_memory_used.
2431         * malloc/obstack.h (struct obstack): Remove field alloc_field.
2432         Remove all references to alloc_failed field.
2433         Add prototype for _obstack_memory_used.
2435         * posix/unistd.h: Correct typo.
2437 Wed Nov 13 03:09:16 1996  Ulrich Drepper  <drepper@cygnus.com>
2439         * configure.in: Require at least autoconf-2.10.2.
2441 Tue Nov 12 16:58:41 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2443         * mach/mach.h (__mach_msg_destroy, mach_msg_destroy, __mach_msg):
2444         Provide prototypes.
2446         * mach/msg-destroy.c (mach_msg_destroy_port,
2447         mach_msg_destroy_memory): Use prototype syntax.
2448         * hurd/hurdmalloc.c (more_memory, malloc_fork_prepare,
2449         malloc_fork_parent, malloc_fork_child): Likewise. 
2451         * stdio/stdio.h: Repair broken cpp syntax.
2453         * sysdeps/mach/hurd/lchown.c: New file.  Guts from chown.c, except
2454         we pass O_NOLINK on the open.
2456         * manual/errno.texi (EBADMSG, EIDRM, EMULTIHOP, ENODATA, ENOLINK,
2457         ENOMSG, ENOSR, ENOSTR, EOVERFLOW, EPROTO, ETIME): Redesignate as
2458         an XOPEN error code, move to before the "Linux only" section, and
2459         give it a new number for the Hurd.
2461 Tue Nov 12 03:35:01 1996  Christian von Roques  <roques@pond.sub.org>
2463         * malloc/obstack.h: Add new macro `obstack_make_room'.
2464         * malloc/obstack.c: Add function implementation for
2465         `obstack_make_room'.
2467 Mon Nov 11 13:54:04 1996  Ulrich Drepper  <drepper@cygnus.com>
2469         Update to BIND-4.9.5-REL.
2470         * resolv/Banner: Set to 4.9.5-REL.
2471         * resolv/inet_net_pton.c: Was doing bad things to subnets and b'casts.
2472         * resolv/res_debug.c (__fp_nquery): Could read past end of buffer.
2473         (fix from BIND 8.1)
2475         * config.make.in: Add definition for top_absdir.
2476         * Makerules (make-link): Fix path to rellns-sh script.
2478 Sat Nov  9 02:15:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2480         * posix/unistd.h: Fix comment.
2482         * manual/arith.texi: Fix misspellings.  Use `zero', not `null',
2483         when talking about numbers.
2484         * manual/users.texi: Likewise.
2485         * manual/creature.texi: Likewise.  Use @defvarx for a secondary
2486         description header.
2488 Sat Nov  9 19:25:11 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2490         * sysdeps/posix/Makefile ($(common-objpfx)mk-stdiolim): Depend on
2491         the real posix1_lim.h file so that it works in all subdirs, not
2492         only in posix.
2494 Sat Nov  9 02:08:34 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2496         * Makefile ($(includedir)/gnu/lib-names.h): Quote arguments of tr.
2498 Sat Nov  9 02:06:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2500         * sysdeps/unix/Makefile ($(common-objpfx)s-proto.d): Don't depend
2501         on $(before-compile) which hasn't been properly setup yet at this
2502         point.
2504 Sat Nov  9 02:02:48 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2506         * sysdeps/generic/sigset.h: Don't use implicit int which will
2507         probably require a diagnostic in the next revision of the C
2508         standard.
2509         * sysdeps/stub/lockfile.c: Likewise.
2511 Sat Nov  9 01:57:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2513         * sysdeps/unix/sysv/linux/m68k/syscall.S: Correct last change.
2514         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2516 Mon Nov 11 02:53:14 1996  Ulrich Drepper  <drepper@cygnus.com>
2518         * time/strftime.c: Update copyright.  Small cosmetic changes.
2520 Sun Nov 10 23:28:16 1996  Ulrich Drepper  <drepper@cygnus.com>
2522         * inet/getprtname_r.c: Reformat copyright.
2524         * nss/Makefile (databases): Add key.
2525         (libnss_files-routines): Exclude key database.
2526         (libnss_db-routines): Likewise.
2527         * nss/key-lookup.c: New file.
2529         * nss/getXXent_r.c (last_nip): Remember last service used since
2530         last setXXent call.
2531         (SETFUNC): Don't force to work through whole list of services in
2532         call to __nss_next.
2533         Update last_nip if necessary.
2534         (ENDFUNC): Only process endXXent function up to currently used
2535         last service.
2536         (GETFUNC): Update last_nip if necessary.
2538         * nss/nss_files/files-netgrp.c (_nss_netgroup_parseline): Don't
2539         make static.
2541         * rpc/auth_des.h: New file.
2542         * sunrpc/Makefile (headers): Add auth_des.h.
2543         (routines): Add publickey.
2544         * sunrpc/publickey.c: New file.  Interface to public key handling.
2545         * sunrpc/rpc/auth_des.h: New file.
2546         * sunrpc/rpc/netdb.h: Really include <rpc/auth_des.h>.
2548 Sun Nov 10 02:37:15 1996  Ulrich Drepper  <drepper@cygnus.com>
2550         * inet/gethstent_r.c: Update copyright.
2551         * nss/getXXbyYY_r.c: Likewise.
2552         * nss/nsswitch.c: Likewise.
2553         * nss/getXXent_r.c: Likewise.
2554         * nss/nss_files/files-XXX.c: Likewise.
2555         * nss/nss_files/files-netgroup.c: Likewise.
2556         * nss/nss_files/files-parse.c: Likewise.
2558         * nss/getXXent_r.c: Change implementation.  It's not necessary to
2559         call all setXXent functions.  Just find first available and
2560         when necessary let getXXent_r call the others.
2562         * nss/nss_files/files-XXX.c: Make really reentrant.  Now calls
2563         of getXXent and getXXbyYY can be mixed.  The cursor for traversing
2564         the database with getXXent will be remembered.
2566         * stdlib/test-canon.c (cwd): Change size to PATH_MAX.
2568 Sat Nov  9 15:34:48 1996  Ulrich Drepper  <drepper@cygnus.com>
2570         * sysdeps/unix/sysv/linux/Dist: Add sys/mtio.h.
2571         * sysdeps/unix/sysv/linux/sys/mtio.h: New file.
2573         * signal/signal.h [__USE_BSD]: Add prototype for siggetmask.
2575 Fri Nov  8 13:29:30 1996  Ulrich Drepper  <drepper@cygnus.com>
2577         * ctype/ctype.h (__isascii): Don't test for seventh bit not to be
2578         set.  Instead for none beside the first seven bits to be set.
2579         X/Open allows the argument to be an `int' value.
2580         Reported by Alain Williams <addw@phcomp.co.uk>.
2581         (toascii, isascii): Define macro also when __USE_XOPEN.
2583         * sysdeps/posix/fpathconf.c: Use fstatfs to compute NAME_MAX, not
2584         PATH_MAX.
2586 Thu Nov  7 03:04:29 1996  Ulrich Drepper  <drepper@cygnus.com>
2588         * nss/getXXXent_r.c (SETFUNC_NAME): Reset `nip' after loop to
2589         NULL so that GETFUNC will see first entry.
2590         (ENDFUNC_NAME): Likewise.
2592         Rewrite Netgroups implementation to avoid global data.
2593         * inet/netgroup.h: Add definition of name_list and struct
2594         __netgrent.
2595         Add prototypes for internal netgroup functions.
2596         * nss/nss_files/files-netgroup.c (_nss_files_setnetgrent): Take
2597         extra argument and use the included data instead of global vars.
2598         (_nss_files_endnetgrent): Likewise.
2599         (_nss_netgroup_parseline): Change to be static and use data
2600         included in the RESULT structure.
2601         * inet/getnetgrent_r.c (startp): Move into setup function.
2602         (known_groups, needed_groups): new part of the __netgrent sruct.
2603         (freememory): Take extra argument and use included data.
2604         (__internal_endnetgrent): Likewise.
2605         (internal_setnetgrent): Renamed to __internal_setnetgrent_reuse
2606         and take extra argument.
2607         (__internal_setnetgrent): New function.  Call
2608         __internal_setnetgrent_reuse after calling free_memory.
2609         (setnetgrent): Only call __internal_setnetgrent.
2610         (__getnetgrent_r): Split into two functions.  __getnetgrent_r
2611         calls __internal_getnetgrent after locking.
2612         (innetgr): Use dynamic data only.  I.e., innetgr now is fully
2613         reentrant.
2615 Thu Nov  7 00:15:14 1996  Ulrich Drepper  <drepper@cygnus.com>
2617         * sysdeps/stub/setenv.c: Correct typo: unseenv -> unsetenv.
2618         Reported by Joshua Cowan <jcowan@jcowan.reslife.okstate.edu>.
2620 Wed Nov  6 13:13:37 1996  Ulrich Drepper  <drepper@cygnus.com>
2622         * manual/creature.texi: Document that _GNU_SOURCE is no longer the
2623         default when no *_SOURCE macro is given.
2624         Reported by Karsten Weiss <karsten@addx.au.s.shuttle.de>.
2625         * NOTES: remade from manual/creature.texi.
2626         * manual/libc.texinfo: Add back line about GPL translation which
2627         somehow got lost.
2629         * Make-dist (dist.tar): Depend on README being updated.
2631         * rellns-sh: Correct thinko in removing leading /.
2632         Reported by Andreas Jaeger <aj@arthur.pfalz.de>.
2634         * pwd/fgetpwent_r.c: Recognize lines containing only names starting
2635         with `+' or `-' in parser.
2636         * grp/fgetgrent_r.c: Likewise.
2637         * shadow/sgetspent_r.c: Likewise.
2638         * nss/nss_files/files-spwd.c: Don't accept entries starting with
2639         `+' or `-'.
2641 Wed Nov  6 04:30:26 1996  Ulrich Drepper  <drepper@cygnus.com>
2643         * sysdeps/unix/sysv/linux/syscalls.list: Add weak alias llseek for
2644         _llseek syscall.  Reported by Andy Sewell <puck@pookhill.demon.co.uk>.
2646         * string/argz.h: Don't protect by __USE_GNU.
2648 Tue Nov  5 23:38:28 1996  Ulrich Drepper  <drepper@cygnus.com>
2650         * Lots of files: Update and reformat copyright.
2652         * Makefile (headers): Add xopen_lim.h.
2654         * catgets/nl_types.h: Move __BEGIN_DECLS before definition of nl_catd.
2656         * grp/grp.h: Define setgrent, getgrent, endgrent, and getgrent_r
2657         if __USE_XOPEN_EXTENDED is defined.
2658         * pwd/pwd.h: Define setpwent, getpwent, endpwent, and getpwent_r
2659         if __USE_XOPEN_EXTENDED is defined.
2661         * io/Makefile (routines): Add lchown.
2662         * sysdeps/stub/lchown.c: New file.
2664         * io/sys/poll.h: Add definition of POLLWRNORM.
2666         * io/sys/stat.h: Declare lstat, fchmod, mknod when
2667         __USE_XOPEN_EXTENDED is defined.
2669         * libio/Makefile (routines): Add obprintf.
2670         * libio/obprintf.c: New file.
2671         * libio/iolibio.h: Add prototypes for _IO_obstack_vprintf and
2672         _IO_obstack_printf.
2673         * libio/libio.h: Fix typo.
2674         * libio/stdio.h: Declare tempnam if __USE_XOPEN_EXTENDED is defined.
2675         Add prototypes for obstack_vprintf and obstack_printf.
2677         * manual/creature.texi: Describe _XOPEN_SOURCE macro.
2678         * manual/intro.texi: Add reference to NSS chapter.
2679         * manual/libc.texinfo: Update UPDATED.
2680         Comment out `@printindex cp'.  It works again.
2681         * manual/memory.texi: Add description for obstack_ptr_grow,
2682         obstack_int_grow, obstack_ptr_grow_fast, and obstack_int_grow_fast.
2683         * manual/nss.texi: Add a few @cindex entries and change NSS_STATUS_*
2684         index entries to @vindex.
2685         * manual/users.texi: Correct @cindex entry for Netgroup.
2687         * math/mathcalls.h: Use __USE_XOPEN and __USE_XOPEN_EXTENDED to
2688         make declarations visible for X/Open sources.
2690         * misc/search.h: Declare insque/remque only is __USE_SVID or
2691         __USE_XOPEN_EXTENDED is defined.
2693         * misc/sys/uio.h (readv, writev): Change return value from int to
2694         ssize_t.
2696         * posix/Makefile (headers): Add re_comp.h.
2697         * posix/re_comp.h: New file.  XPG interface to regex functions.
2699         * posix/getconf.c: Add all names from XPG4.2.
2700         * posix/posix1_lim.h: Increase minimum values for _POSIX_CHILD_MAX
2701         and _POSIX_OPEN_MAX to minimums from XPG4.2.
2702         * sysdeps/generic/confname.h: Add all _SC_* names from XPG4.2.
2703         * sysdeps/posix/sysconf.c: Handle new _SC_* values.
2704         * sysdeps/stub/sysconf.c: Likewise.
2706         * posix/unistd.h: Add declaration of ualarm and lchown.  Declare
2707         usleep, fchown, fchdir, nice, getpgid, setsid, getsid, setreuid,
2708         setregid, vfork, ttyslot, symlink, readlink, gethostid, truncate,
2709         ftruncate, getdtablesize, brk, sbrk, lockf when
2710         __USE_XOPEN_EXTENDED is defined.
2712         * posix/sys/wait.h: Declare wait3 if __USE_XOPEN_EXTENDED is defined.
2714         * shadow/shadow.h: Define SHADOW using _PATH_SHADOW.
2715         * sysdeps/generic/paths.h: Define _PATH_SHADOW.
2716         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2718         * signal/signal.h: Declare killpg, sigstack and sigaltstack when
2719         __USE_XOPEN_EXTENDED is defined.
2721         * stdio/stdio.h: Declare tempnam when __USE_XOPEN is defined.
2723         * stdlib/stdlib.h: Make rand48 functions available when __USE_XOPEN
2724         is defined.
2725         Likewise for valloc, putenv, realpath, [efg]cvt*, and getsubopt
2726         functions.
2728         * string/string.h: Make memccpy, strdup, bcmp, bcopy, bzero, index,
2729         and rindex available when __USE_XOPEN_EXTENDED is defined.
2731         * sysdeps/mach/getpagesize.c: De-ANSI-fy.  Change return type to int.
2732         * sysdeps/posix/getpagesize.c: Likewise.
2733         * sysdeps/stub/getpagesize.c: Likewise.
2734         * sysdeps/unix/getpagesize.c: Likewise.
2736         * time/africa: Update from tzdata1996l.
2737         * time/asia: Likewise.
2738         * time/australia: Likewise.
2739         * time/europe: Likewise.
2740         * time/northamerica: Likewise.
2741         * time/pacificnew: Likewise.
2742         * time/southamerica: Likewise.
2743         * time/tzfile.h: Update from tzcode1996m.
2745         * time/time.h: Declare strptime if __USE_XOPEN.
2746         Declare daylight and timezone also if __USE_XOPEN.
2748         * time/sys/time.h: Remove declaration of ualarm.
2750         * wctype/wctype.h: Just reference ISO C standard.
2752 Tue Nov  5 01:26:32 1996  Richard Henderson  <rth@tamu.edu>
2754         * crypt/Makefile: Add crypt routines to libc as well iff
2755         $(crypt-in-libc) is set.  Do this for temporary binary compatibility
2756         on existing Linux/Alpha installations.
2758         * stdlib/div.c, sysdeps/generic/div.c: Move file to .../generic/.
2759         * stdlib/ldiv.c, sysdeps/generic/ldiv.c: Likewise.
2760         * stdlib/lldiv.c, sysdeps/generic/lldiv.c: Likewise.
2761         * sysdeps/alpha/Makefile (divrem): Add divlu, dviqu, remlu, and
2762         remqu.
2763         * sysdeps/alpha/div.S: New file.
2764         * sysdeps/alpha/ldiv.S: New file.
2765         * sysdeps/alpha/lldiv.S: New file.
2766         * sysdeps/alpha/divrem.h: Merge signed and unsigned division.
2767         Take pointers from Linus and tighten the inner loops a bit.
2768         * sysdeps/alpha/divl.S: Change defines for merged routines.
2769         * sysdeps/alpha/divq.S: Likewise.
2770         * sysdeps/alpha/reml.S: Likewise.
2771         * sysdeps/alpha/remq.S: Likewise.
2772         * sysdeps/alpha/divlu.S: Remove file.
2773         * sysdeps/alpha/divqu.S: Likewise.
2774         * sysdeps/alpha/remlu.S: Likewise.
2775         * sysdeps/alpha/remqu.S: Likewise.
2777         * sysdeps/alpha/bsd-_setjmp.S: If PROF, call _mcount.
2778         * sysdeps/alpha/bsd-setjmp.S: Likewise.
2779         * sysdeps/alpha/bzero.S: Likewise.
2780         * sysdeps/alpha/ffs.S: Likewise.
2781         * sysdeps/alpha/htonl.S: Likewise.
2782         * sysdeps/alpha/htons.S: Likewise.
2783         * sysdeps/alpha/memchr.S: Likewise.
2784         * sysdeps/alpha/memset.S: Likewise.
2785         * sysdeps/alpha/s_copysign.S: Likewise.
2786         * sysdeps/alpha/s_fabs.S: Likewise.
2787         * sysdeps/alpha/setjmp.S: Likewise.
2788         * sysdeps/alpha/stpcpy.S: Likewise.
2789         * sysdeps/alpha/stpncpy.S: Likewise.
2790         * sysdeps/alpha/strcat.S: Likewise.
2791         * sysdeps/alpha/strchr.S: Likewise.
2792         * sysdeps/alpha/strcpy.S: Likewise.
2793         * sysdeps/alpha/strlen.S: Likewise.
2794         * sysdeps/alpha/strncat.S: Likewise.
2795         * sysdeps/alpha/strncpy.S: Likewise.
2796         * sysdeps/alpha/strrchr.S: Likewise.
2797         * sysdeps/alpha/udiv_qrnnd.S: Likewise.  Fix private labels.
2798         Convert two small jumps to use conditional moves.
2799         * sysdeps/unix/alpha/sysdep.h: Compress all __STDC__ nastiness.
2800         (PSEUDO): If PROF, call _mcount.
2801         * sysdeps/unix/sysv/linux/alpha/brk.S: If PROF, call _mcount.
2802         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2803         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2804         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2805         * sysdeps/unix/sysv/linux/alpha/llseek.S: Likewise.
2806         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
2807         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
2809         * sysdeps/alpha/memcpy.S: New file.  Odd layout because it should
2810         eventually contain memmove as well.
2811         * sysdeps/alpha/strcmp.S: New file.
2812         * sysdeps/alpha/strncmp.S: New file.
2813         * sysdeps/alpha/w_sqrt.S: New file.
2815 Tue Nov  5 18:06:06 1996  Ulrich Drepper  <drepper@cygnus.com>
2817         * sysdeps/mach/hurd/ttyname_r.c: Use `size_t' for len variable.
2819 Tue Nov  5 12:09:29 1996  Ulrich Drepper  <drepper@cygnus.com>
2821         * sysdeps/generic/sysdep.h: Define END only if not yet defined.
2822         * sysdeps/unix/sysdep.h: Define PSEUDO_END only if not yet defined.
2823         Reported by Thomas Bushnell, n/BSG.
2825 Mon Nov  4 22:46:53 1996  Ulrich Drepper  <drepper@cygnus.com>
2827         * manual/users.texi (Netgroup Data): Remove { } around @cindex.
2829 Mon Nov  4 19:07:05 1996  Ulrich Drepper  <drepper@cygnus.com>
2831         * malloc/calloc.c: Check for overflow before trying to allocate
2832         memory.  Proposed by Neil Matthews <nm@adv.sbc.sony.co.jp>.
2834 Fri Nov  1 18:18:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2836         * manual/llio.texi (Operating Modes): Add missing arguments to
2837         @deftypevr in O_NONBLOCK description.
2839         * manual/time.texi (Time Zone Functions): Enclose type name in
2840         braces in description of tzname.  FIXME: this does not yet work
2841         correctly in info.
2843 Sun Nov  3 17:29:06 1996  Ulrich Drepper  <drepper@cygnus.com>
2845         * features.h: Add X/Open macros.
2846         * posix/unistd.h: Define X/Open macros.
2847         * sysdeps/generic/confname.h: Add _SC_XOPEN_XCU_VERSION,
2848         _SC_XOPEN_UNIX, _SC_XOPEN_CRYPT, _SC_XOPEN_ENH_I18N,
2849         _SC_XOPEN_SHM, _SC_2_CHAR_TERM, _SC_2_C_VERSION, and _SC_2_UPE.
2850         * sysdeps/posix/sysconf.c: Handle new constants.
2851         * sysdeps/stub/sysconf.c: Likewise.
2852         * sysdeps/unix/sysv/linux/posix_opt.h: Add definition of _XOPEN_SHM.
2854         * catgets/catgets.c (catopen): Set errno to ENOMEM when
2855         we run out of memory.
2856         (catgets): Set errno to EBADF when catalog handle is invalid.
2857         Set errno to ENOMSG when translation is not available.
2858         (catclose): Set errno to EBADF when catalog handle is invalid.
2860         * ctype/ctype.h: Declare isascii and toascii when __USE_XOPEN.
2861         Likewise for _toupper and _tolower.
2863         * manual/arith.texi: Document strtoq, strtoll, strtouq, strtoull,
2864         strtof, and strtold.
2865         * manual/math.texi: Document HUGE_VALf and HUGE_VALl.
2866         * manual/stdio.h: Document ' flag for numeric formats of scanf.
2867         * manual/users.texi: Document that cuserid shouldn't be used.
2869         * misc/Makefile (routines): Add dirname.
2870         (headers): Add libgen.h.
2871         (tests): Add tst-dirname.
2872         * misc/dirname.c: New file.
2873         * misc/libgen.h: New file.
2874         * misc/tst-dirname.c: New file.
2876         * misc/search.h: Parameter of hcreate must be of type size_t.
2877         * misc/hsearch.c: Likewise.
2878         * misc/hsearch_r.c: Likewise for hcreate_r.
2879         * misc/search.h: Parameters of insque and remque must be `void *'.
2880         * misc/insremque.c: Likewise.
2882         * posix/unistd.h: Move declarations of mktemp and mkstemp to...
2883         * stdlib/stdlib.h: ...here.
2884         * posix/unistd.h [__USE_XOPEN]: Add prototypes for crypt, setkey,
2885         encrypt, and swab.
2887         * stdio-common/printf-parse.h (struct printf_spec): Add pa_wchar
2888         and pa_wstring.
2889         (parse_one_spec): Remove Linux compatibility code.
2890         Recognize %C and %S formats.
2891         * stdio-common/printf.h: Add PA_WCHAR and PA_WSTRING.
2892         * stdio-common/vfprintf.c: Add implementation of %C and %S format.
2893         * stdio-common/vfscanf.c: Likewise for scanf.
2895         * stdlib/l64a.c: Return value for 0 must be the empty string.
2896         * stdlib/stdlib.h: Declare reentrant function from rand49 family
2897         only if __USE_REENTRANT.
2898         Declare rand48 functions also if __USE_XOPEN.
2900         * stdlib/strtol.c: Return 0 and set errno to EINVAL when BASE is
2901         not a legal value.
2902         Return 0 and set errno to EINVAL when strou* sees negativ number.
2903         * stdlib/tst-strtol.c: De-ANSI-fy.
2904         Change expected results for test of unsigned function and negative
2905         input.
2907         * string/stratcliff.c: Prevent warnings.
2908         * string.h: Move declaration of swab to <unistd.h>.
2909         * string/swab.c: De-ANSI-fy.
2911         * sysdeps/posix/cuserid.c: Implement using getpwuid_r.
2912         * sysdeps/posix/mkstemp.c: Include <stdlib.h> for prototype.
2913         * sysdeps/posix/mktemp.c: Likewise.
2914         * sysdeps/stub/mkstemp.c: Likewise.
2915         * sysdeps/stub/mktemp.c: Likewise.
2917         * sysvipc/sys/ipc.h: Prototypes of ftok have to be of types `const
2918         char *' and `int'.
2919         * sysvipc/ftok.c: Likewise.  Make sure only lower 8 bits of
2920         PROJ_ID are used.
2922 Sun Nov  3 03:21:28 1996  Heiko Schroeder  <Heiko.Schroeder@post.rwth-aachen.de>
2924         * locale/programs/ld-numeric.c (numeric_output): Compute idx[0]
2925         correctly.
2927 Sat Nov  2 17:44:32 1996  Ulrich Drepper  <drepper@cygnus.com>
2929         * sysdeps/posix/cuserid.c: Use reentrant functions.
2930         * manual/users.texi: Tell that cuserid is marked to be withdrawn in
2931         XPG4.2.
2933 Sat Nov  2 14:26:37 1996  Ulrich Drepper  <drepper@cygnus.com>
2935         Linus said he will make sure no system call will return a value
2936         in -1 ... -4095 as a valid result.
2937         * sysdeps/unix/sysv/linux/i386/sysdep.h: Correct test for error.
2938         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
2939         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
2940         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
2942 Sat Nov  2 16:54:49 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
2944         * sysdeps/stub/lockfile.c [!USE_IN_LIBIO]: Define weak alias for
2945         __funlockfile, not a circular alias.
2946         Define __IO_ftrylockfile if USE_IN_LIBIO and __ftrylockfile if not,
2947         not vice versa.
2949         * sysdeps/unix/sysv/linux/i386/sysdep.S (__errno_location): Make
2950         it a weak symbol.
2951         * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location): Likewise.
2953 Tue Nov  5 00:04:48 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2955         * stdio-common/vfprintf.c: Include <libc-lock.h>.
2957 Mon Nov  4 16:57:42 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2959         * sysdeps/mach/hurd/ttyname_r.c (ttyname_r): Change prototype to
2960         match POSIX.1c.
2962         * sysdeps/stub/lockfile.c [! USE_IN_LIBIO]: Second definition of
2963         __internal_funlockfile (in terms of itself) should actually be a
2964         definition of __funlockfile.
2966         * pwd/pwd.h: Get `size_t' from <stddef.h>.
2967         * grp/grp.h: Likewise.
2968         * shadow/shadow.h: Likewise.
2970         * stdlib/atexit.c (__new_exitfn): Add missing semicolons after
2971         calls to __libc_lock_lock and __libc_lock_unlock.
2972         * stdlib/random.c (__srandom, __initstate, __setstate, __random):
2973         Likewise.
2975         * hurd/hurdsig.c (write_corefile): Fix typo.
2977         * sysdeps/mach/hurd/sigwait.c: New file.
2979 Sat Nov  2 01:48:47 1996  Ulrich Drepper  <drepper@cygnus.com>
2981         * sysdeps/unix/sysv/linux/errnos.h: Move declaration of errno
2982         and __errno_location to correct position.
2984 Thu Oct 31 22:51:25 1996  Ulrich Drepper  <drepper@cygnus.com>
2986         * Makefile (distribute): Add rellns-sh.
2987         * rellns-sh: New file.
2988         * Makerules (make-link): Use rellns-sh.
2989         * time/Makefile ($(installed-localtime-file)): Likewise.
2991 Thu Oct 31 11:33:01 1996  Ulrich Drepper  <drepper@cygnus.com>
2993         * elf/Makefile ($objpfx)ldd) Substitute $(version) for @VERSION@.
2994         (distribute): Add ldd.bash.in.
2995         * elf/ldd.sh.in: Process --help and --version parameter.
2996         Correct comments.
2997         * elf/ldd.bash.in: New file.
2999         * stdlib/stdlib.h: Add prototype for clearenv.
3000         * sysdeps/generic/setenv.c: Add implementation of clearenv.
3001         (setenv): Handle __environ == NULL correctly.
3002         * sysdeps/stub/setenv.c: Add stub definition for unsetenv and
3003         clearenv.
3005         * sysdeps/generic/putenv.c: Correct layout to fit in libit.
3006         * sysdeps/generic/setenv.c: Likewise.
3007         * stdlib/strtol.h: Likewise.
3009         * time/sys/time.h: Define __need_timeval and include <timebits.h>.
3010         Remove definition of struct timeval.
3011         * sysdeps/stub/timebits.h [__need_timeval]: Define struct timeval
3012         using `time_t' for members.
3013         * sysdeps/unix/sysv/linux/timebits.h [__need_timeval]: Likewise.
3014         * sysdeps/unix/sysv/linux/alpha/timebits.h: New file.  Same
3015         as old Linux specific version.
3017 Thu Oct 31 00:01:39 1996  Ulrich Drepper  <drepper@cygnus.com>
3019         * signal/Makefile (routines): Add sigwait.
3020         * signal/signal.h: Add prototype for sigwait.
3021         * sysdeps/posix/sigwait.c: New file.  Implementation of sigwait
3022         function from POSIX.1c.
3023         * sysdeps/stub/sigwait.c: New file.  Stub version of sigwait.
3025 Wed Oct 30 02:01:17 1996  Richard Henderson  <rth@tamu.edu>
3027         * sunrpc/xdr_float.c (xdr_float): Handle sizeof(float)!=sizeof(long),
3028         but don't bother going farther than sizeof(float)==sizeof(int).
3029         (xdr_double): Handle little-endian machines!  Handle sizeof(double)
3030         != 2*sizeof(long), though again don't bother with more than int.
3032 Thu Oct 29 16:09:42 1996  Craig Metz  <cmetz@inner.net>
3034         * sysdeps/posix/getaddrinfo.c: Use buffer limits for inet_ntop
3035         function.
3037 Tue Oct 29 12:37:22 1996  Ulrich Drepper  <drepper@cygnus.com>
3039         * Makerules: Create symbolic links for linking in $(libdir).
3040         (make-link): Use absolute path for destination if this is not in
3041         the same directory.
3043         * elf/rtld.c (dl_main): When verifying don't check the name of
3044         the dynamic linker.
3046         * shlib-versions: Change entries for Hurd specific libs from
3047         *-*-gnu* to *-*-gnu?* so that i586-pc-linux-gnu does not match
3048         these entries.
3050         * assert/assert.h: Reformat copyright.
3051         Change reference to ANSI into reference to ISO C.
3052         * ctype/ctype.h: Likewise.
3053         * errno.h: Likewise.
3054         * limits.h: Likewise.
3055         * math/math.h: Likewise.
3056         * setjmp/setjmp.h: Likewise.
3057         * stdio/stdio.h: Likewise.
3058         * libio/stdio.h: Likewise.
3059         * stdlib/stdlib.h: Likewise.
3060         * string/string.h: Likewise.
3061         * time/time.h: Likewise.
3063         * string/argz.h: Use __const in definitions.
3065         * elf/dlfcn.h: Use __const and __P.  Reformat copyright.
3066         * misc/err.h: Likewise.
3068         * wctype/wctype.h (wctrans_t): Use __const instead of const.
3070         * Makeconfig ($(common-objpfx)soversions.mk): Generate list of
3071         sonames for versioned libraries.
3072         * Makefile: Remove code to generate libc-version.h.
3073         Generate gnu/lib-names.h with info from soversions.mk.
3074         * features.h: Define __GLIBC__ and __GLIBC_MINOR__.
3076         * dirent/tst-seekdir.c: Initialize save3.
3077         * grp/testgrp.c: Initialize my_group.
3079         * grp/fgetgrent_r.c: Change interface to follow POSIX.1c.
3080         * grp/grp.h: Likewise.
3081         * nss/getXXbyYY.c: Likewise.
3082         * nss/getXXbyYY_r.c: Likewise.
3083         * nss/getXXent.c: Likewise.
3084         * nss/getXXent_r.c: Likewise.
3085         * pwd/fgetpwent_r.c: Likewise.
3086         * pwd/pwd.h: Likewise.
3087         * shadow/fgetspent_r.c: Likewise.
3088         * shadow/sgetspent.c: Likewise.
3089         * shadow/sgetspent_r.c: Likewise.
3090         * grp/fgetgrent.c: Adapt for change in interface of fgetgrent_r.
3091         * pwd/fgetpwent.c: Likewise, for fgetpwent_r.c.
3092         * shadow/fgetspent.c: Likewise, for fgetpwent_r.c.
3093         * resolv/netdb.h: Adapt prototypes for reentrant functions to
3094         follow POSIX.1c.
3095         * sunrpc/rpc/netdb.h: Likewise,
3096         * shadow/shadow.h: Likewise.
3098         * inet/getnetgrent_r.c: Follow change in pwd/grp function interface.
3100         * sysdeps/unix/getlogin_r.c: Return ERANGE when buffer is too small.
3102         * inet/herrno.c: Don't define __h_errno, only h_errno otherwise the
3103         ELF aliasing creates strange situations.
3104         * sysdeps/unix/sysv/linux/errnos.H: Define __set_errno as inline
3105         function.
3106         * sysdeps/unix/sysv/linux/i386/sysdep.S: Don't define __errno.
3107         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3109         * libio/libio.h: Don't declare _IO_flockfile and _IO_funlockfile
3110         weak.
3112         * locale/programs/charmap.c: Add casts to prevent warnings.
3113         * locale/programs/linereader.h: Likewise.
3114         * locale/programs/ld-collate.c: Likewise.
3115         * locale/programs/stringtrans.c: Likewise.
3116         Change types for various variables to prevent warnings.
3117         * locale/programs/ld-ctype.c: Likewise.
3118         * locale/programs/linereader.h (lr_ungetc): Likewise.
3119         * locale/programs/charset.h (struct charset): Use `unsigned int'
3120         as type for width_default.
3121         * posix/regex.c: Change type of `this_reg' variables.
3122         * stdio-common/Makefile: Use -Wno-format for tstdiomisc.c.
3123         * stdio-common/bug5.c: De-ANSI-fy.  Use correct types for
3124         variables.
3125         * stdio-common/printf_fp.c: Initialize to_shift.
3126         * stdio-common/test_rdwr.c: Add cast.
3127         * stdio-common/vfprintf.c: Add casts and use correct types to
3128         prevent warnings.
3129         * stdio-common/vfscanf.c: Initialize str and strptr.
3130         * sysdeps/libm-ieee754/e_jnf.c: Use correct types to prevent warnings.
3131         * sysdeps/libm-ieee754/e_pow.c: Likewise.
3132         * sysdeps/libm-ieee754/e_powf.c: Likewise.
3133         * sysdeps/libm-ieee754/e_rem_pio2f.c: Likewise.
3134         * time/test-tz.c: Likewise.
3136         * manual/creature.texi: Document _REENTRANT and _THREAD_SAFE.
3137         * manual/libc.texinfo: Prevent makeinfo failure by avoiding
3138         libc.cp index.  This must be fixed.
3139         * manual/nss.texi: Adapt for correct POSIX.1c interface of
3140         reentrant functions.
3141         * manual/users.texi: Document netgroup functions.
3143         * po/es.po: Updated.
3144         * po/fr.po: Updated.
3146         * posix/fnmatch.c: Change to match libit version.
3148         * posix/unistd.h: Change prototype for ttyname_r to match POSIX.1c.
3149         * sysdep/posix/ttyname_r.c: Likewise.
3151         * stdlib/atexit.h (__new_exitfn): Add internal locking.
3152         * stdlib/exit.c: De-ANSI-fy.  Handle new ef_us value for flavor.
3153         * stdlib/exit.h: De-ANSI-fy.  Define new ef_us value for flavor.
3154         * stdlib/random.c (__srandom): Add internal locking.
3155         (__initstate): Likewise.
3156         (__setstate): Likewise.
3157         (__random): Likewise.
3159 Mon Oct 28 22:28:37 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
3161         * sysdeps/generic/crypt-entry.c (crypt_r): Use __set_errno.
3162         (crypt): Likewise.
3163         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
3164         * sysdeps/generic/uname.c: Likewise.
3165         * sysdeps/posix/rename.c: Likewise.
3166         * sysdeps/stub/setrlimit.c: Likewise.
3168         * nss/nss_db/db-netgrp.c (_nss_db_setnetgrent): Fix typo.
3170 Sun Oct 27 11:12:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3172         * locale/programs/ld-collate.c (collate_order_elem): Fix format
3173         string.
3174         (collate_element_to): Cast field width argument to `int' for
3175         format string.
3176         (collate_symbol): Likewise.
3177         (collate_order_elem): Likewise.
3178         (collate_weight_bsymbol): Likewise.
3179         (collate_simple_weight): Likewise.
3181         * locale/programs/ld-time.c (STRARR_ELEM): Fix format string.
3183         * locale/programs/ld-ctype.c (ctype_class_newP): Add missing
3184         argument for format string.
3185         (ctype_map_newP): Likewise.
3186         (set_class_defaults): Fix format string.
3188         * locale/programs/localedef.c (construct_output_path): Putting an
3189         explicit \0 into the format string does not work, use %c.
3191 Sat Oct 26 20:38:36 1996  Richard Henderson  <rth@tamu.edu>
3193         * Makerules: Install all shared libraries in $(slibdir).
3195         * login/Makefile: Build libutil.so in others pass after
3196         libc.so is created.
3198         * misc/mntent.h: Include <paths.h> for _PATH_MNTTAB & _PATH_MOUNTED.
3200         * string/stratcliff.c: Allocate 3 pages instead of one, then use
3201         mprotect so that we know that the adjacent pages are inaccessible.
3203         * resource/sys/resource.h: Move all structures and enums to ...
3204         * sysdeps/generic/resourcebits.h: ... here ...
3205         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: ... and here.
3206         * sysdeps/unix/sysv/linux/alpha/resourcebits.h: Remove.
3207         * sysdeps/unix/sysv/linux/i386/resourcebits.h: Remove.
3208         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Remove.
3209         * sysdeps/unix/sysv/linux/mips/resourcebits.h: Remove.
3210         * sysdeps/unix/sysv/linux/resourcebits.h: New file.  Use kernel
3211         header for RLIMIT_* definitions.  The members of struct rlimit
3212         are longs.
3215 Thu Oct 24 17:43:34 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3217         * MakeTAGS (sysdep-dirs): Fix typo.
3219 Thu Oct 24 17:32:57 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3221         * hurd/hurdsig.c (write_corefile): If we can't create the core
3222         file, still call crash_dump_task with a null FILE arg.  Maybe it
3223         won't actually need the file.
3225 Wed Oct 23 03:45:22 1996  Ulrich Drepper  <drepper@cygnus.com>
3227         * Makefile (headers): Don't mention libc-version.h.
3228         (install-others): ...but here.
3230 Tue Oct 22 21:38:21 1996  Ulrich Drepper  <drepper@cygnus.com>
3232         * version.h: Bump version number to 1.97.
3234         * features.h: Undo change of Sun Oct 20 22:19:58 1996.
3235         Include libc-version.h.
3236         * features.h.in: Removed.
3237         * Makefile: Change rules to generate libc-version.h instead of
3238         features.h.
3240         * malloc/free.c: Add cast to prevent warning.
3241         * malloc/malloc-walk.c: Likewise.
3242         * malloc/ralloc.c: Likewise.
3243         * malloc/realloc.c: Likewise.
3245         * grp/fgetgrent_r.c: Accept empty numeric field if name start with +
3246         or -.
3247         * pwd/fgetpwent_r.c: Likewise.
3248         * nss/nss_files/files-grp.c: Don't accept entries with names starting
3249         with + or - in lookup functions.
3250         * nss/nss_files/files-pwd.c: Likewise.
3252         * Makerules: Call autolock.sh using $(SHELL).
3254 Mon Oct 21 22:52:16 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
3256         * elf/dl-minimal.c: Don't define `dgettext' replacement but
3257         `dcgettext'.  When optimizing the macros in <libintl.h> define
3258         `dgettext' as a macro and so this function will never be called.
3260 Mon Oct 21 15:41:59 1996  Ulrich Drepper  <drepper@cygnus.com>
3262         * sysdeps/i386/sysdep.h: Define END to use .size when available.
3263         (PSEUDO_END): Use END.
3264         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_END to
3265         define SYSCALL_ERROR_HANDLER before using END.
3266         (SYSCALL_ERROR_HANDLER): Don't use .size directive.
3267         * sysdeps/unix/sysv/linux/clone.S: Don't use SYSCALL_ERROR_HANDLER
3268         and .size directive but PSEUDO_END.
3269         * sysdeps/unix/sysv/linux/mmap.S: Likewise.
3270         * sysdeps/unix/sysv/linux/socket.S: Likewise.
3271         * sysdeps/unix/sysv/linux/syscall.S: Likewise.
3272         * sysdeps/unix/sysv/linux/sysdep.S (__errno_location): Use END.
3273         * sysdeps/unix/i386/sysdep.S (__syscall_error): Likewise.
3274         * sysdeps/i386/__longjmp.S: Use END instead of PSEUDO_END.
3275         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3276         * sysdeps/i386/bsd-setjmp.S: Likewise.
3277         * sysdeps/i386/memchr.S: Likewise.
3278         * sysdeps/i386/memcmp.S: Likewise.
3279         * sysdeps/i386/setjmp.S: Likewise.
3280         * sysdeps/i386/stpcpy.S: Likewise.
3281         * sysdeps/i386/stpncpy.S: Likewise.
3282         * sysdeps/i386/strchr.S: Likewise.
3283         * sysdeps/i386/strcspn.S: Likewise.
3284         * sysdeps/i386/strpbrk.S: Likewise.
3285         * sysdeps/i386/strrchr.S: Likewise.
3286         * sysdeps/i386/strspn.S: Likewise.
3287         * sysdeps/i386/strtok.S: Likewise.
3288         * sysdeps/i386/i486/strcat.S: Likewise.
3289         * sysdeps/i386/i486/strlen.S: Likewise.
3290         * sysdeps/i386/i586/memset.S: Likewise.
3291         * sysdeps/i386/i586/strchr.S: Likewise.
3292         * sysdeps/i386/i586/strlen.S: Likewise.
3294         * sysdeps/i386/strlen.c: De-ANSI-fy.
3296         * sysdeps/generic/_strerror.c: Undo change of Mon Oct 21 01:32:36 1996.
3297         Define dgettext if not defined to use dcgettext.
3298         * sysdeps/mach/_strerror.c: Likewise.
3300         * sysdeps/unix/sysv/i386/time.S: Add PSEUDO_END to get
3301         __syscall_error defined.
3303 Sat Oct 19 12:27:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3305         * sysdeps/unix/sysv/linux/m68k/mmap.S: Fix braino: CALL_MCOUNT is
3306         already included in the ENTRY macro.  Remove SYSCALL_ERROR_HANDLER
3307         now provided by PSEUDO_END.
3308         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
3309         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
3310         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
3311         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3312         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.  Use JUMPTARGET.
3314         * sysdeps/generic/sysdep.h (END): Provide default empty
3315         definition.
3316         * sysdeps/unix/sysv/linux/m68k/sysdep.h (END): Redefine to use
3317         size directive.
3318         (PSEUDO): Don't include SYSCALL_ERROR_HANDLER.
3319         (PSEUDO_END): Include it here instead.
3320         (SYSCALL_ERROR_HANDLER): Remove type directive.
3321         * sysdeps/m68k/bsd-_setjmp.S: Use END, not PSEUDO_END.
3322         * sysdeps/m68k/bsd-setjmp.S: Likewise.
3323         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
3324         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3325         (__syscall_error): Can't use ENTRY macro.
3327 Sat Oct 19 12:13:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3329         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, setresuid):
3330         Set caller to EXTRA.
3332 Mon Oct 21 01:32:36 1996  Ulrich Drepper  <drepper@cygnus.com>
3334         * elf/rtld.c (dl_main): Move initialization of `_dl_starting_up'
3335         to beginning of function.  So libc functions can use this flag.
3336         * sysdeps/generic/_strerror.c: Don't use dgettext for message
3337         translation while `_dl_starting_up' is nonzero.
3339         * elf/dl-deps.c (_dl_map_object_deps): Add new parameter
3340         TRACE_MODE.
3341         Pass parameter value to _dl_map_object.
3342         * elf/dl-load (_dl_map_object): Add new parameter TRACE_MODE.
3343         If TRACE_MODE is nonzero don#t signal error when shared lib
3344         is not found.  Instead create fake entry for link map.
3345         * dl-open.c (dl-open): Pass 0 for new argument to _dl_map_object.
3346         * dl-runtime.c (_dl_object_relocation_scope): Pass 0 for new
3347         argument to _dl_map_object_deps.
3348         * elf/link.h: Add new parameter TRACE_MODE for prototypes of
3349         _dl_map_object and _dl_map_object_deps.
3350         * elf/rtld.c (dl_main): Pass 0 for new argument to _dl_map_object
3351         and _dl_map_object_deps.
3352         When mode == trace test for l_opencount == 0 before printing
3353         link information since this means the lib is not found.
3355 Sun Oct 20 22:19:58 1996  Ulrich Drepper  <drepper@cygnus.com>
3357         * rpm/template: Add INSTALL to %doc line to follow copyright
3358         restrictions which demand the distribution of the copyright
3359         messages in INSTALL even for binary distributions.
3361         * features.h: Rename to...
3362         * features.h.in: ...this.  Change value of __GNU_LIBRARY__ to 2
3363         (for major version numberof package) and add __GNU_LIBRARY_MINOR__
3364         and __GNU_LIBRARY_INTERFACE__.
3365         * Makefile ($(objpfx)features.h): New rule to generate features.h
3366         from template features.h.in.
3368         * sysdeps/unix/sysv/linux/getsysstats.c: Include <paths.h>.
3370 Sun Oct 20 00:00:13 1996  Richard Henderson  <rth@tamu.edu>
3372         * locale/programs/linereader.c (lr_open): Cast away const before free.
3373         (lr_close): Likewise.
3375         * misc/mntent.h: Move _PATH_MNTTAB & _PATH_MOUNTED to paths.h.
3376         * misc/paths.h: Move to ...
3377         * sysdeps/generic/paths.h: ... here.
3378         * paths.h: Remove.
3379         * sysdeps/unix/sysv/linux/paths.h: New file.  Correct _PATH_STDPATH,
3380         _PATH_MAILDIR, _PATH_MOUNTED, _PATH_UNIX to comply with the fsstd.
3382         * nss/nss_db/db-netgrp.h: Include <string.h>.
3384         * stdio-common/psignal.c: De-ansidecl-ify.  Allow NULL entries in
3385         _sys_siglist, which result in the "Unknown signal" message.
3386         * string/strsignal.c: Likewise.
3387         * sysdeps/generic/Makefile [stdio-common]: If $(inhibit-siglist),
3388         don't auto-generate siglist.c.
3389         * sysdeps/unix/sysv/linux/Makefile [stdio-common]: Set inhibit-siglist.
3390         * sysdeps/unix/sysv/linux/siglist.c: New file.  Not needing to
3391         autogenerate makes bootstrapping and cross-compiling much easier.
3392         * sysdeps/unix/sysv/linux/siglist.h: New file.
3394         * stdlib/longlong.h: Prototype __udiv_qrnnd.
3396         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_headers): Remove
3397         sys/io.h.  It is already added in .../linux/Makefile.
3399         * sysdeps/unix/sysv/linux/alpha/sigaction.h: New file.
3400         * sysdeps/unix/sysv/linux/alpha/signum.h: New file.
3401         * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
3403 Sun Oct 20 17:17:12 1996  Ulrich Drepper  <drepper@cygnus.com>
3405         Add implementation of POSIX.1g function getaddrinfo.
3406         * posix/Makefile (routines): Add getaddrinfo.
3407         * sysdeps/posix/getaddrinfo.c.: New file.  Add implementation by
3408         Craig Metz.
3409         * sysdeps/stub/getaddrinfo.c: New file.  Stub implementation.
3410         * resolv/netdb.h [__USE_POSIX]: Add getaddrinfo prototypes and
3411         related constants and structures.
3413 Sun Oct 20 13:02:34 1996  Ulrich Drepper  <drepper@cygnus.com>
3415         * sysdeps/stub/lockfile.c: Rename functions to __internal_*.
3416         Make all old names weak alises so that they can be replaced
3417         by libpthread.
3419         * stdio-common/vfprintf.c: Only declare __flockfile and __funlockfile
3420         for !USE_IN_LIBIO.
3421         [USE_IN_LIBIO]: Call _IO_flockfile and _IO_funlockfile instead of
3422         __flockfile and __funlockfile.
3423         Reported by NIIBE Yutaka.
3425         * crypt/md5.c: Change form of copyright message according to GNITS
3426         rules.
3427         Add warning for requirement on RESBUF parameter for `md5_finish_ctx'
3428         and `md5_read_ctx' function.
3429         * crypt/md5.h: Likewise.
3431         * grp/testgrp.c: Don't use perror for error cases since getgr* and
3432         getpw* functions do not return usable error codes.
3434 Sun Oct 19 23:05:32 1996  Jim Meyering  <meyering@asic.sc.ti.com>
3436         * crypt/md5.c (md5_process_bytes): Used casting for pointer
3437         arithmetic.
3439 Sun Oct 20 03:53:23 1996  Ulrich Drepper  <drepper@cygnus.com>
3441         * sunrpc/Makefile (others): Remove portmap here, too.
3443 Sat Oct 19 17:42:24 1996  Ulrich Drepper  <drepper@cygnus.com>
3445         * intl/locale.alias: Language for entry `czech' is `cs'.
3447 Fri Oct 17 13:20:35 1996  Thorsten Kukuk  <kukuk@weber.uni-paderborn.de>
3449         * sunrpc/etc.rpc: Update from ti-rpcsvc 2.3.
3451 Fri Oct 18 22:56:45 1996  Ulrich Drepper  <drepper@cygnus.com>
3453         * sunrpc/Makefile (install-sbin): Remove portmap.  This version is
3454         buggy and more competent people work on a usable version which is
3455         distributed separately.
3456         * sunrpc/portmap.c: Removed.
3457         Suggested by Thorsten Kukuk.
3459 Fri Oct 18 12:17:09 1996  Enrique Melero  <justine@iprolink.ch>
3461         * sysdeps/libm-ieee754/s_finitel.c: Change function name to
3462         `finitel'.
3464 Fri Oct 18 00:01:10 1996  Ulrich Drepper  <drepper@cygnus.com>
3466         * string/Makefile (tests): Add stratcliff.
3467         * string/stratcliff.c: New file.  Test for string function at
3468         the edge of the usable memory.
3470 Thu Oct 17 22:10:19 1996  Ulrich Drepper  <drepper@cygnus.com>
3472         * Makerules ($(libdir)/libc.so): Fix typo.
3474         * elf/ldd.sh.in: Test whether given file really exist and give
3475         better message if it is not available.
3477 Thu Oct 17 04:25:38 1996  Ulrich Drepper  <drepper@cygnus.com>
3479         * sysdeps/unix/sysv/linux/sys/shm_buf.h: Add definition for
3480         SHM_R and SHM_W.
3482 Thu Oct 17 01:55:34 1996  Ulrich Drepper  <drepper@cygnus.com>
3484         * sunrpc/Makefile ($(objpfx)rpcsvc/%.h, $(objpfx)x%.c): Write
3485         output to $@T and move to $@ later since the new rpcgen will not
3486         overwrite existing files.
3488         * po/Makefile (libc.pot): Fix typo.
3490 Sun Oct 13 20:52:07 1996  Thorsten Kukuk  <kukuk@weber.uni-paderborn.de>
3492         Update rpcgen program to TI-rpc code.
3493         * sunrpc/Makefile (rpcgen-objs): Add rpc_tblout.o and rpc_sample.o.
3494         (distribute): Add proto.h.
3495         * sunrpc/proto.h: New file.  Prototypes for all the RPC functions.
3496         * sunrpc/rpc_clntout.c: Change to allow generation of ISO C code.
3497         * sunrpc/rpc_cout.c: Likewise.
3498         * sunrpc/rpc_hout.c: Likewise.
3499         * sunrpc/rpc_main.c: Likewise.
3500         * sunrpc/rpc_parse.c: Likewise.
3501         * sunrpc/rpc_parse.h: Likewise.
3502         * sunrpc/rpc_scan.c: Likewise.
3503         * sunrpc/rpc_scan.h: Likewise.
3504         * sunrpc/rpc_svcout.c: Likewise.
3505         * sunrpc/rpc_util.c: Likewise.
3506         * sunrpc/rpc_util.h: Likewise.
3508         * sunrpc/rpc_tblout.c: New file.
3509         * sunrpc/rpc_sample.c: Likewise.
3511 Thu Oct 17 00:26:20 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
3513         * sysdeps/unix/opendir.c: Add semicolon for consistency.
3515 Wed Oct 16 12:26:53 1996  Sven Verdoolaege  <skimo@breughel.ufsia.ac.be>
3517         * locale/programs/localedef.c (main): Test with -1 to find out
3518         whether read failed.
3520 Wed Oct 16 14:54:59 1996  Ulrich Drepper  <drepper@cygnus.com>
3522         * sysdeps/unix/sysv/linux/i386/clone.S: Use JUMPTARGET and
3523         PSEUDO_END macro.
3525 Tue Oct 15 21:27:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3527         * sysdeps/unix/sysv/linux/m68k/sigcontext.h: Removed.
3529 Tue Oct 15 15:52:29 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3531         * sysdeps/unix/sysv/linux/m68k/clone.S: Add CALL_MCOUNT.
3532         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
3533         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
3534         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
3535         * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location):
3536         Likewise.
3537         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
3538         Correct generation of system call.
3540 Tue Oct 15 15:13:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3542         * Makerules (sysd-Makefile): Fix command so that it works in the
3543         subdirectories.
3544         (BUILD_CFLAGS): Change back using $(..) instead of
3545         $(common-objpfx), the latter fails in the toplevel directory when
3546         $(objdir) is relative.
3547         (common-objdir-compile): Run compiler in $(objdir).
3548         * sysdeps/posix/Makefile (mk-stdiolim): Likewise.
3550 Tue Oct 15 23:39:48 1996  Ulrich Drepper  <drepper@cygnus.com>
3552         * string/string.h [__USE_SVID]: Add prototype for swab.
3553         * time/sys/time.h [__USE_BSD]: Add prototype for ualarm.
3554         Reported by Andreas Jaeger.
3556         The available nlist implementation is not generally usable.
3557         Especially on the currently supported ELF systems the nlist
3558         function comes with the libelf.
3559         * misc/Makefile (headers): Remove nlist.h.
3560         (routines): Remove nlist.
3562         * Makefile ($(objpfx)version-info.h): Include information about
3563         system the libc is built on in version-info.h file.
3565         * po/Makefile (distribute): Add header.pot.
3567 Tue Oct 15 16:34:15 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
3569         * sysdeps/unix/sysv/linux/sleep.c: Include file with prototype.
3570         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
3571         * misc/error.c: Likewise.
3573 Tue Oct 15 22:41:27 1996  Ulrich Drepper  <drepper@cygnus.com>
3575         * sysdeps/unix/sysv/linux/syscalls.list: Add {get,set}resuid.
3577 Tue Oct 15 08:06:02 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
3579         * crypt/Makefile (rpath-link): Extend search path to current directory.
3581 Fri Oct 11 09:18:06 1996  Sven Verdoolaege  <skimo@breughel.ufsia.ac.be>
3583         * sysdeps/i386/i586/strlen.S: Correct handling of prolog for
3584         aligning pointer.
3586 Tue Oct 15 02:13:21 1996  Ulrich Drepper  <drepper@cygnus.com>
3588         * stdio-common/vfprintf.c: Don't declare __flockfile as weak.
3590         * crypt/md5-crypt.c (md5_crypt_r): Add cast to prevent warning.
3592 Tue Oct 15 14:37:40 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3594         * sysdeps/mach/hurd/fcntlbits.h (O_HURD): Add O_EXLOCK and
3595         O_SHLOCK.
3597 Tue Oct 15 14:37:40 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3599         * sysdeps/mach/hurd/fcntlbits.h (O_HURD): Add O_EXLOCK and
3600         O_SHLOCK. 
3602 Sun Oct 13 19:16:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3604         * sysdeps/unix/sysv/linux/m68k/sysdep.h (POUND): Macro removed,
3605         replaced by `&'.
3606         (PSEUDO_END): Provide definition to use .size directive.
3607         (PSEUDO): Don't interpret negative return values less than -128 as
3608         syscall error.
3609         * sysdeps/unix/sysv/linux/m68k/syscall.S (syscall): Likewise.
3611         * sysdeps/m68k/bsd-_setjmp.S: Use PSEUDO_END macro to provide
3612         .size directive.
3613         * sysdeps/m68k/bsd-setjmp.S: Likewise.
3614         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
3615         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
3616         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
3617         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
3618         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
3619         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Use PSEUDO_END instead of
3620         explicit .size directive.
3622 Sun Oct 13 22:52:56 1996  Ulrich Drepper  <drepper@cygnus.com>
3624         * shlib-versions: Add version number/name for ld.so.
3625         * Makeconfig: Move definition of rtld-installed-name after
3626         inclusion of soversions.mk.
3627         Don't add . before version number from shlib-versions file when
3628         when name does not start with digit.  This is needed for ld.so.
3630 Sat Oct 12 20:31:58 1996  Richard Henderson  <rth@tamu.edu>
3632         * libio/iogets.c: Warn when gets is used.
3633         * stdio/gets.c: Strengthen the warning.
3635 Sat Oct 12 23:10:43 1996  Ulrich Drepper  <drepper@cygnus.com>
3637         * libio/Makefile [_LIBC_REENTRANT] (routines): Add peekc.
3638         * libio/libio.h: Add prototypes for _IO_getc, _IO_putc, _IO_feof,
3639         _IO_ferror, _IO_peekc_locked, and _IO_ftrylockfile.
3640         Remove prototypes for _IO_getc_locked and _IO_putc_locked.
3641         [_IO_MTSAFE_IO]: Add weak aliases for _IO_flockfile and
3642         _IO_funlockfile.
3643         [! _IO_MTSAFE_IO]: Define _IO_ftrylockfile as empty.
3644         Define _IO_getc, _IO_peekc, _IO_putc, _IO_feof, _IO_ferror to
3645         appropriate values according to __USE_REENTRANT.
3646         * libio/stdio.h: Add prototype for ftrylockfile.
3647         [!_LIBC]: Define getc_locked, getchar_locked, putchar_locked,
3648         getc, getchar, putc, and putchar using _IO_* names.
3649         * libio/feof.c: Rename to _IO_feof and make feof weak alias.
3650         * libio/ferror.c: Rename to _IO_ferror and make ferror weak alias.
3651         * libio/getc.c: Rename to _IO_getc and make getc weak alias.
3652         * libio/putc.c: Rename to _IO_putc and make putc weak alias.
3653         * libio/putc_u.c: Don't define alias _IO_putc_unlocked.
3654         * libio/peekc.c: New file.
3656         * stdio-common/vfprintf.c (vfprintf): Unconditionally call
3657         __flockfile.
3659         * sysdeps/stub/locfile.c [USE_IN_LIBIO]: Also define _IO_* names.
3661         * crypt/Makefile (tests): Add md5test and md5c-test.
3662         * crypt/md5-crypt.c: Correct various error.  Now md5_process_bytes
3663         is called, the buffer limit is honoured and a loop in a inner
3664         loop is corrected.
3665         * crypt/md5.h (struct md5_ctx): Add new fields.
3666         Add prototypes for new functions.
3667         * crypt/md5.c (md5_init_ctx): Initialize new fields.
3668         (md5_finish_ctx): New function.  Like md5_read_ctx but before
3669         perform correct finalization.
3670         (md5_process_bytes): New function.  Similar to md5_proces_block,
3671         but does not require input size to be multiple of 64.
3672         (md5_stream): Rewrite using md5_process_bytes and md5_finish_ctx.
3673         (md5_buffer): Likewise.
3674         (md5_process_block): Count number of bytes.
3675         * crypt/md5test.c: New file.  Test program for MD5 functions.
3676         * crypt/md5c-test.c: New file:  Test program for MD5 crypt
3677         function.
3679         * po/fr.po: Update.
3681         * time/strptime.c: Recognize %s, %u, %g, and %G format.
3683         * posix/getopt.c: Add some more casts and initializations to
3684         prevent warnings.
3686 Sat Oct 12 16:15:29 1996  Ulrich Drepper  <drepper@cygnus.com>
3688         * sysdeps/unix/sysv/linux/speed.c (speeds): Removed.  We provide
3689         an extra function to provide this functionality.
3690         (cfgetospeed): Simply return masked value.
3691         (cfsetospeed): Don't use speeds array and so we can simply test
3692         the value of SPEED for illegal values.
3693         * termios/cfsetspeed.c: Rewrite.  We convert here between the
3694         real values and the B* constants.
3695         Changes suggested by Uwe Ohse <uwe@tirka.gun.de>.
3697 Fri Oct 11 21:45:34 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
3699         * locale/programs/xstrdup.c: Define prototypes.
3700         * locale/programs/xmalloc.c: Likewise.
3702         * stdio-common/xbug.c (main): Change definition to avoid warning.
3704 Fri Oct 11 23:36:31 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3706         * db/hash/hash.c (__hash_open): Correctly test for a read-write db.
3708 Fri Oct 11 19:13:34 1996  Ulrich Drepper  <drepper@cygnus.com>
3710         * locale/Makefile (CPPFLAGS): Set CHARMAP_PATH to
3711         "$(i18ndir)/charmaps".
3713 Fri Oct 11 22:12:41 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
3715         * sysdeps/unix/sysv/linux/sys/procfs.h: Include <asm/user.h>
3716         to get definition of FPU description struct.
3718         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (subdir_headers):
3719         Add net/if.h, net/if_ppp.h, net/ppp-comp.h, net/ppp_defs.h,
3720         net/if_arp.h, and net/route.h.
3721         * sysdeps/unix/sysv/linux/net/if_arp.h: New file.
3722         * sysdeps/unix/sysv/linux/net/route.h: New file.
3724 Fri Oct 11 14:49:13 1996  Ulrich Drepper  <drepper@cygnus.com>
3726         * sysdeps/stub/readdir_r.c: New file.  We need a stub version.
3727         * sysdeps/stub/e_acosl.c: Likewise.
3728         * sysdeps/stub/e_asinl.c: Likewise.
3729         * sysdeps/stub/e_atan2l.c: Likewise.
3730         * sysdeps/stub/e_expl.c: Likewise.
3731         * sysdeps/stub/e_fmodl.c: Likewise.
3732         * sysdeps/stub/e_log10l.c: Likewise.
3733         * sysdeps/stub/e_logl.c: Likewise.
3734         * sysdeps/stub/e_sqrtl.c: Likewise.
3735         * sysdeps/stub/s_atanl.c: Likewise.
3736         * sysdeps/stub/s_log1pl.c: Likewise.
3738         * Makefile (distribute): Add nsswitch.h and netgroup.h.
3740         * nss/Makefile (generated): db-netgrp.c is not generated.
3742         * sysdeps/alpha/Dist: Add stxcpy.S and stxncpy.S.
3744         * Make-dist (+out): Add $(dont_distribute).
3746 Fri Oct 11 00:27:18 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3748         * stdio-common/Makefile (routines): Add tmpnam_r.
3750 Fri Oct 11 05:32:51 1996  Ulrich Drepper  <drepper@cygnus.com>
3752         * version.h: Bump version to 1.96.
3754 Fri Oct 11 18:13:47 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
3756         * stdio-common/tst-printf.c: Some more cleanups.
3758 Fri Oct 11 02:48:02 1996  Ulrich Drepper  <drepper@cygnus.com>
3760         * resolv/arpa/nameser.h: Update from bind-4.9.5-T6B.
3761         * resolv/resolv.h: Likewise.
3762         * resolv/gethnamaddr.c: Likewise.
3763         * resolv/res_comp.c: Likewise.
3764         * resolv/res_debug.c: Likewise.
3765         * resolv/res_init.c: Likewise.
3766         * resolv/res_send.c: Likewise.
3767         * resolv/Banner: Update version number.
3769         * nss/nss_dns/dns-host.c: Update according to change in
3770         resolv/gethnamaddr.c.
3772 Fri Oct 10 20:52:28 1996  Ralph Loader  <loader@maths.ox.ac.uk>
3774         * crypt/md5.c (md5_stream): When reading the block in several
3775         pieces append to instead of replace previously read data.
3777 Thu Oct 10 15:53:17 1996  Richard Henderson  <rth@tamu.edu>
3779         * sysdeps/alpha/stxcpy.S ($unaligned): In single word copy, correct
3780         last-byte-written bit for source word misalignment.
3781         * sysdeps/alpha/strchr.c: Removed.  There is now an assembler
3782         version.
3784 Thu Oct 10 17:17:23 1996  Ulrich Drepper  <drepper@cygnus.com>
3786         * sunrpc/Makefile (rpcsvc): Remove yp.x.  The corrected version
3787         comes with glibc-nis.
3788         * sunrpc/rpcsvc/yp.x: Removed.
3790         * nss/nss_files/files-netgr.c (_nss_netgroup_parseline): Test
3791         for *CURSOR to be NULL and dump a core if yes.
3793 Thu Oct  9 20:09:53 1996  Matthew Jacob  <mjacob@feral.com>
3795         * sysdeps/unix/sysv/linux/alpha/brk.S: Define _ERRNO_H before
3796         including <errnos.h> to get error numbers.
3798 Thu Oct 10 14:00:01 1996  Ulrich Drepper  <drepper@cygnus.com>
3800         * sysdeps/unix/sysv/linux/i386/sigcontext.h: Moved file...
3801         * sysdeps/unix/sysv/linux/sigcontext.h: ...to here.  So the
3802         Alpha people find a correct file.
3803         * sysdeps/libm-ieee754/w_cabs.c: We cannot make __cabsl simply
3804         an alias of __cabs since the structures have different names.
3805         * sysdeps/libm-ieee754/w_log10.c: Fix typo in weak_alias.
3806         Reported by Matthew Jacob <mjacob@feral.com>.
3808 Thu Oct 10 17:25:55 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3810         * Makerules (sysd-Makefile): Look for sysdep Makefiles using $(..)
3811         so that it still works right if we happen to get called in a
3812         subdir it still works.
3814         * sysdeps/mach/hurd/fcntlbits.h (O_SHLOCK, O_EXLOCK): Redesignate
3815         as file name translation flags.
3816         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Don't pretend
3817         to do anything for O_SHLOCK or O_EXLOCK.  Those are now file name
3818         translation flags.
3819         
3820         * Makerules ($(libdir)/libc.so): Mention the actual libc.a archive
3821         name (changed according to libc-name) to avoid getting the
3822         Hurd-ish linker script for libc.a when we only want the archive
3823         library. 
3825 Wed Oct  9 00:24:52 1996  Jim Meyering  <meyering@asic.sc.ti.com>
3827         * time/strftime.c: Allow old K&R compilers compile this file.
3829 Wed Oct  9 12:03:56 1996  Ulrich Drepper  <drepper@cygnus.com>
3831         * posix/execlp.c: Add first argument parameter to be compliant
3832         with POSIX.  Rearrange body to start vararg counter after
3833         this new argument.
3835 Wed Oct  9 04:34:50 1996  Ulrich Drepper  <drepper@cygnus.com>
3837         * sysdeps/unix/sysv/linux/sys/procfs.h: Rewrite.  We cannot use
3838         simply a wrapper around the <linux/elfcore.h> file since the
3839         kernel header is not clean enough.  We provide the definitions
3840         in this file instead.
3842 Wed Oct  9 01:43:18 1996  Ulrich Drepper  <drepper@cygnus.com>
3844         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Avoid
3845         get?id calls by using __libc_enable_secure.
3847 Wed Oct  9 00:30:33 1996  Ulrich Drepper  <drepper@cygnus.com>
3849         * inet/getnetgrent_r.c: Correct netgroup implementation.  A
3850         specification of a netgroup can also name another netgroup.
3851         * nss/nss_files/files-netgrp.c: Likewise.
3852         * inet/netgroup.h: Add fields to hold additional information.
3854 Tue Oct  8 21:51:14 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
3856         * posix/getopt.c: Implement POSIX -W option handling.  When the
3857         option string contains "W;" -W foo is handled like --foo.
3859 Tue Oct  8 12:27:26 1996  Ulrich Drepper  <drepper@cygnus.com>
3861         * sysdeps/unix/sysv/linux/i386/clone.S: Define _ERRNO_H before
3862         inclusing <errnos.h> so we really get error symbols defined.
3863         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
3864         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
3866         * sunrpc/auth_unix.c (authunix_create_default): Don't use fixed
3867         size array for getgroups call.  Instead get maximal number via
3868         sysconf.  But discard list to NGRPS elements before calling XDR
3869         function since Sun's code cannot handle longer lists.
3870         Based on a patch by Thorsten Kukuk <kukuk@weber.uni-paderborn.de>.
3872         * sysdeps/stub/e_j0l.c: Define y0l as well.
3873         * sysdeps/stub/e_j1l.c: Define y1l as well.
3874         * sysdeps/stub/e_jnl.c: Define ynl as well.
3876         * posix/unistd.h: Correct prototype for execlp.
3878         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_NO_TRUNC.
3880 Mon Oct  7 22:18:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3882         * Makeconfig (sysdep-library-path): New variable.
3883         (built-program-cmd): Use it here to properly build a colon
3884         separated library path.
3886 Mon Oct  7 22:11:55 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3888         * crypt/md5-crypt.c (md5_crypt_r): Add missing parens around &
3889         within comparison.  Fix comments.
3890         (md5_crypt): Fix comment.
3892 Tue Oct  8 05:10:49 1996  Ulrich Drepper  <drepper@cygnus.com>
3894         * sysdeps/unix/sysv/linux/errnos.h: Only include <linux/errnos.h>
3895         when _ERRNO_H is defined.
3896         [!_ERRNO_H && __need_Emath]: Define value for EDOM and ERANGE.
3897         Should there ever be a Linux port where the numeric values are
3898         not 33 and 34 this file must change.
3900 Mon Oct  7 13:54:04 1996  Ulrich Drepper  <drepper@cygnus.com>
3902         * libio/iofgets.c (_IO_fgets): Use _IO_flockfile instead of
3903         __flockfile.
3905 Mon Oct  7 11:01:45 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
3907         * string/tst-strlen.c (main): Provide prototype.
3908         * malloc/mallocbug.c: Likewise.
3909         * io/test-utime.c: Likewise.
3911         * sysdeps/generic/crypt-entry.c: Correct typo.
3913 Mon Oct  7 13:42:20 1996  Ulrich Drepper  <drepper@cygnus.com>
3915         * elf/dl-open.c (_dl_open): Check against _dl_sysdep_start to
3916         test for libc.a.  Checking _DYNAMIC is of no worth here.
3917         Suggested by Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
3919         * nss/nss_files/files-parse.c: Define LOOKUP_NAME even if
3920         EXTERN_PARSER is defined.
3922 Sat Oct  5 17:05:36 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
3924         * Rules (dep-dummy-lib): Correct prototype for __dummy__.
3926         * crypt/md5-crypt.c: Fix typos in comments.
3928         * gmon/gmon.c: Provide prototypes.
3929         * db/makedb.c: Likewise.
3930         * locale/programs/xmalloc.c: Likewise.
3931         * stdio-common/bug11.c (main): Likewise.
3932         * stdio-common/bug7.c (main): Likewise.
3933         * stdio-common/bug8.c (main): Likewise.
3934         * stdio-common/bug9.c (main): Likewise.
3935         * stdio-common/scanf1.c (main): Likewise.
3936         * stdio-common/scanf2.c (main): Likewise.
3937         * stdio-common/scanf5.c (main): Likewise.
3938         * stdio-common/scanf6.c (main): Likewise.
3939         * stdio-common/scanf7.c (main): Likewise.
3940         * stdio-common/scanf8.c (main): Likewise.
3941         * stdio-common/temptest.c (main): Likewise.
3942         * stdio-common/test-fwrite.c (main): Likewise.
3943         * stdio-common/tst-printf.c: Likewise.
3944         * stdio-common/tstdiomisc.c: Likewise.
3945         * stdio-common/tstgetln.c (main): Likewise.
3946         * stdlib/testmb.c (main): Likewise.
3948         * stdio-common/scanf4.c (main): Correct prototype, remove unused
3949         variable n.
3951         * stdio-common/scanf3.c (main): Correct prototype, change
3952         declaration of s to reduce warnings.
3953         * stdio-common/bug10.c (main): Likewise.
3955         * stdio-common/tfformat.c: Provide prototype, remove unused
3956         reference to dump_stats, add braces in sprint_doubles.
3957         * stdio-common/tiformat.c: Likewise.
3959         * stdio-common/test_rdwr.c (main): Parameter `where' is long in
3960         printf call.
3962 Mon Oct  7 14:04:26 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
3964         * sysdeps/unix/sysv/linux/sys/soundcard.h: Fix typo.
3966         * shadow/putspent.c: Don't write colon after flag field.
3968         * sysdeps/unix/sysv/linux/net/if_ppp.h: New file.  Wrapper around
3969         kernel header.
3970         * sysdeps/unix/sysv/linux/net/ppp-comp.h: Likewise.
3971         * sysdeps/unix/sysv/linux/net/ppp_defs.h: Likewise.
3972         * sysdeps/unix/sysv/linux/Dist: Mention new files.
3974 Mon Oct  7 00:58:19 1996  Ulrich Drepper  <drepper@cygnus.com>
3976         * sysdeps/i386/i586/strchr.S: Correct handling of first bytes to
3977         get pointer aligned.  Reported by Matthias Urlichs <smurf@noris.de>.
3979         * sysdeps/posix/euidaccess.c [_LIBC]: Avoid calling get?id functions
3980         by using __libc_enable_secure variable.
3982 Tue Oct  8 13:58:31 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3984         * hurd/ports-get.c (_hurd_ports_get): If the requested port is
3985         null, don't attempt mach_port_mod_refs.
3987 Mon Oct  7 14:51:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3989         * sysdeps/mach/hurd/pipestream.c: New file to avoid use of
3990         sysdeps/unix/pipestream.c. 
3992         * sysdeps/mach/hurd/readdir_r.c: New file, guts copied entirely
3993         from sysdeps/mach/hurd/readdir.c.
3995         * stdio/freopen.c: Complete de-ansideclification.
3996         * stdio/fgets.c (fgets): Likewise.
3997         * stdio/getdelim.c (__getdelim): Likewise.
3998         * sysdeps/posix/pipestream.c (readdecl, writedecl, seekdecl,
3999         popen):
4000         Likewise. 
4001         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
4002         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
4004         * sysdeps/mach/hurd/wait4.c (__wait4): Allow a null value for
4005         STAT_LOC without error.
4007 Sun Oct  6 02:05:52 1996  Ulrich Drepper  <drepper@cygnus.com>
4009         * posix/getopt.c: Add casts to prevent warnings.
4010         * posix/regex.c: Likewise.
4012         * math/Makefile (long-m-routines, long-m-yes): Define to correct
4013         values to make `long double' functions available.
4014         (distribute): Add $(long-m-yes:=.c).
4016         * sysdeps/libm-i387/s_copysignl.S: Correct loading of return value.
4017         Use long double instruction.
4019         * sysdeps/libm-ieee754/e_atanhl.c (huge): Correct constant.
4020         * sysdeps/libm-ieee754/e_asinhl.c: Likewise.
4021         * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
4023         * sysdeps/libm-ieee754/e_coshl.c: New file.
4025         * sysdeps/libm-ieee754/s_asinh.c [!NO_LONG_DOUBLE]: Define names
4026         for `long double' version as alias.
4027         * sysdeps/libm-ieee754/s_atan.c: Likewise.
4028         * sysdeps/libm-ieee754/s_cbrt.c: Likewise.
4029         * sysdeps/libm-ieee754/s_ceil.c: Likewise.
4030         * sysdeps/libm-ieee754/s_copysign.c: Likewise.
4031         * sysdeps/libm-ieee754/s_cos.c: Likewise.
4032         * sysdeps/libm-ieee754/s_erf.c: Likewise.
4033         * sysdeps/libm-ieee754/s_expm1.c: Likewise.
4034         * sysdeps/libm-ieee754/s_fabs.c: Likewise.
4035         * sysdeps/libm-ieee754/s_finite.c: Likewise.
4036         * sysdeps/libm-ieee754/s_floor.c: Likewise.
4037         * sysdeps/libm-ieee754/s_frexp.c: Likewise.
4038         * sysdeps/libm-ieee754/s_ilogb.c: Likewise.
4039         * sysdeps/libm-ieee754/s_ldexp.c: Likewise.
4040         * sysdeps/libm-ieee754/s_log1p.c: Likewise.
4041         * sysdeps/libm-ieee754/s_logb.c: Likewise.
4042         * sysdeps/libm-ieee754/s_modf.c: Likewise.
4043         * sysdeps/libm-ieee754/s_nextafter.c: Likewise.
4044         * sysdeps/libm-ieee754/s_rint.c: Likewise.
4045         * sysdeps/libm-ieee754/s_scalbn.c: Likewise.
4046         * sysdeps/libm-ieee754/s_significand.c: Likewise.
4047         * sysdeps/libm-ieee754/s_sin.c: Likewise.
4048         * sysdeps/libm-ieee754/s_tan.c: Likewise.
4049         * sysdeps/libm-ieee754/s_tanh.c: Likewise.
4050         * sysdeps/libm-ieee754/w_acos.c: Likewise.
4051         * sysdeps/libm-ieee754/w_acosh.c: Likewise.
4052         * sysdeps/libm-ieee754/w_sin.c: Likewise.
4053         * sysdeps/libm-ieee754/w_atan2.c: Likewise.
4054         * sysdeps/libm-ieee754/w_atanh.c: Likewise.
4055         * sysdeps/libm-ieee754/w_cabs.c: Likewise.
4056         * sysdeps/libm-ieee754/w_cosh.c: Likewise.
4057         * sysdeps/libm-ieee754/w_drem.c: Likewise.
4058         * sysdeps/libm-ieee754/w_exp.c: Likewise.
4059         * sysdeps/libm-ieee754/w_fmod.c: Likewise.
4060         * sysdeps/libm-ieee754/w_gamma.c: Likewise.
4061         * sysdeps/libm-ieee754/w_gamma_r.c: Likewise.
4062         * sysdeps/libm-ieee754/w_hypot.c: Likewise.
4063         * sysdeps/libm-ieee754/w_j0.c: Likewise.
4064         * sysdeps/libm-ieee754/w_j1.c: Likewise.
4065         * sysdeps/libm-ieee754/w_jn.c: Likewise.
4066         * sysdeps/libm-ieee754/w_lgamma.c: Likewise.
4067         * sysdeps/libm-ieee754/w_lgamma_r.c: Likewise.
4068         * sysdeps/libm-ieee754/w_log.c: Likewise.
4069         * sysdeps/libm-ieee754/w_log10.c: Likewise.
4070         * sysdeps/libm-ieee754/w_pow.c: Likewise.
4071         * sysdeps/libm-ieee754/w_remainder.c: Likewise.
4072         * sysdeps/libm-ieee754/w_scalb.c: Likewise.
4073         * sysdeps/libm-ieee754/w_sinh.c: Likewise.
4074         * sysdeps/libm-ieee754/w_sqrt.c: Likewise.
4076         Stub files for missing long double math functions.
4077         * sysdeps/stub/e_acoshl.c: New file.
4078         * sysdeps/stub/e_hypotl.c: New file.
4079         * sysdeps/stub/e_j0l.c: New file.
4080         * sysdeps/stub/e_j1l.c: New file.
4081         * sysdeps/stub/e_jnl.c: New file.
4082         * sysdeps/stub/e_lgammal_r.c: New file.
4083         * sysdeps/stub/e_powl.c: New file.
4084         * sysdeps/stub/e_rem_pio2l.c: New file.
4085         * sysdeps/stub/e_sinhl.c: New file.
4086         * sysdeps/stub/k_cosl.c: New file.
4087         * sysdeps/stub/k_rem_pio2l.c: New file.
4088         * sysdeps/stub/k_sinl.c: New file.
4089         * sysdeps/stub/k_tanl.c: New file.
4090         * sysdeps/stub/s_erfl.c: New file.
4091         * sysdeps/stub/s_expm1l.c: New file.
4093         * sysdeps/i386/__longjmp.S: Use PSEUDO_END macro to provide
4094         .size directive.
4095         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4096         * sysdeps/i386/bsd-setjmp.S: Likewise.
4097         * sysdeps/i386/memchr.S: Likewise.
4098         * sysdeps/i386/memcmp.S: Likewise.
4099         * sysdeps/i386/setjmp.S: Likewise.
4100         * sysdeps/i386/stpcpy.S: Likewise.
4101         * sysdeps/i386/stpncpy.S: Likewise.
4102         * sysdeps/i386/strchr.S: Likewise.
4103         * sysdeps/i386/strcspn.S: Likewise.
4104         * sysdeps/i386/strpbrk.S: Likewise.
4105         * sysdeps/i386/strrchr.S: Likewise.
4106         * sysdeps/i386/strspn.S: Likewise.
4107         * sysdeps/i386/strtok.S: Likewise.
4108         * sysdeps/i386/i486/strcat.S: Likewise.
4109         * sysdeps/i386/i486/strlen.S: Likewise.
4110         * sysdeps/i386/i586/memset.S: Likewise.
4111         * sysdeps/i386/i586/strchr.S: Likewise.
4112         * sysdeps/i386/i586/strlen.S: Likewise.
4113         * sysdeps/libm-i387/e_acos.S: Likewise.
4114         * sysdeps/libm-i387/e_acosl.S: Likewise.
4115         * sysdeps/libm-i387/e_asin.S: Likewise.
4116         * sysdeps/libm-i387/e_asinl.S: Likewise.
4117         * sysdeps/libm-i387/e_atan2.S: Likewise.
4118         * sysdeps/libm-i387/e_atan2l.S: Likewise.
4119         * sysdeps/libm-i387/e_exp.S: Likewise.
4120         * sysdeps/libm-i387/e_expl.S: Likewise.
4121         * sysdeps/libm-i387/e_fmod.S: Likewise.
4122         * sysdeps/libm-i387/e_fmodl.S: Likewise.
4123         * sysdeps/libm-i387/e_log.S: Likewise.
4124         * sysdeps/libm-i387/e_log10.S: Likewise.
4125         * sysdeps/libm-i387/e_log10l.S: Likewise.
4126         * sysdeps/libm-i387/e_logl.S: Likewise.
4127         * sysdeps/libm-i387/e_remainder.S: Likewise.
4128         * sysdeps/libm-i387/e_remainderf.S: Likewise.
4129         * sysdeps/libm-i387/e_remainderl.S: Likewise.
4130         * sysdeps/libm-i387/e_scalb.S: Likewise.
4131         * sysdeps/libm-i387/e_scalbl.S: Likewise.
4132         * sysdeps/libm-i387/e_sqrt.S: Likewise.
4133         * sysdeps/libm-i387/e_sqrtf.S: Likewise.
4134         * sysdeps/libm-i387/e_sqrtl.S: Likewise.
4135         * sysdeps/libm-i387/s_atan.S: Likewise.
4136         * sysdeps/libm-i387/s_atanf.S: Likewise.
4137         * sysdeps/libm-i387/s_atanl.S: Likewise.
4138         * sysdeps/libm-i387/s_ceil.S: Likewise.
4139         * sysdeps/libm-i387/s_ceilf.S: Likewise.
4140         * sysdeps/libm-i387/s_ceill.S: Likewise.
4141         * sysdeps/libm-i387/s_copysign.S: Likewise.
4142         * sysdeps/libm-i387/s_copysignf.S: Likewise.
4143         * sysdeps/libm-i387/s_copysignl.S: Likewise.
4144         * sysdeps/libm-i387/s_cos.S: Likewise.
4145         * sysdeps/libm-i387/s_cosf.S: Likewise.
4146         * sysdeps/libm-i387/s_cosl.S: Likewise.
4147         * sysdeps/libm-i387/s_finite.S: Likewise.
4148         * sysdeps/libm-i387/s_finitef.S: Likewise.
4149         * sysdeps/libm-i387/s_finitel.S: Likewise.
4150         * sysdeps/libm-i387/s_floor.S: Likewise.
4151         * sysdeps/libm-i387/s_floorf.S: Likewise.
4152         * sysdeps/libm-i387/s_floorl.S: Likewise.
4153         * sysdeps/libm-i387/s_ilogb.S: Likewise.
4154         * sysdeps/libm-i387/s_ilogbf.S: Likewise.
4155         * sysdeps/libm-i387/s_ilogbl.S: Likewise.
4156         * sysdeps/libm-i387/s_log1p.S: Likewise.
4157         * sysdeps/libm-i387/s_log1pf.S: Likewise.
4158         * sysdeps/libm-i387/s_log1pl.S: Likewise.
4159         * sysdeps/libm-i387/s_logb.S: Likewise.
4160         * sysdeps/libm-i387/s_logbf.S: Likewise.
4161         * sysdeps/libm-i387/s_logbl.S: Likewise.
4162         * sysdeps/libm-i387/s_rint.S: Likewise.
4163         * sysdeps/libm-i387/s_rintf.S: Likewise.
4164         * sysdeps/libm-i387/s_rintl.S: Likewise.
4165         * sysdeps/libm-i387/s_scalbn.S: Likewise.
4166         * sysdeps/libm-i387/s_scalbnf.S: Likewise.
4167         * sysdeps/libm-i387/s_scalbnl.S: Likewise.
4168         * sysdeps/libm-i387/s_significand.S: Likewise.
4169         * sysdeps/libm-i387/s_significandf.S: Likewise.
4170         * sysdeps/libm-i387/s_significandl.S: Likewise.
4171         * sysdeps/libm-i387/s_sin.S: Likewise.
4172         * sysdeps/libm-i387/s_sinf.S: Likewise.
4173         * sysdeps/libm-i387/s_sinl.S: Likewise.
4174         * sysdeps/libm-i387/s_tan.S: Likewise.
4175         * sysdeps/libm-i387/s_tanf.S: Likewise.
4176         * sysdeps/libm-i387/s_tanl.S: Likewise.
4178         * sysdeps/unix/sysv/linux/i386/clone.S: Add .size directive.
4179         * sysdeps/unix/sysv/linux/i386/mmap.S. Likewise.
4180         * sysdeps/unix/sysv/linux/i386/socket.S. Likewise.
4181         * sysdeps/unix/sysv/linux/i386/sysdep.S. More compact .size line.
4183         * sysdeps/i386/sysdep.h (ASM_SIZE_DIRECTIVE): New macro.  Used
4184         to provide .size directive on ELF systems.
4186         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Include
4187         <sigcontext.h> and rename parameter type to sigcontext.
4188         * sysdeps/unix/sysv/linux/i386/sigcontext.h New file.
4190         * sysdeps/unix/sysv/linux/i386/syscall.S: From Linux 2.1 on
4191         negative values might occur as positive results.  Test against
4192         -125 to decide for error or not.
4193         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise for system calls.
4195 Thu Oct  3 21:07:58 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4197         * elf/dl-open.c: Use _DYNAMIC instead of _dl_start to decide
4198         whether this is a statically linked program.  The latter is now
4199         always defined.
4201 Fri Oct  4 17:30:22 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
4203         * hurd/hurdsig.c (signal_allowed): Add SIGWINCH to the list that
4204         controlling terminals are allowed to send.
4206         * hurd/alloc-fd.c (_hurd_alloc_fd): If SIZE is so big that the
4207         table is larger than the allowable address size, then return
4208         failure. 
4210 Fri Oct  4 02:08:10 1996  Bang Jun-Young  <bangjy@nownuri.nowcom.co.kr>
4212         * po/ko.po: Update.
4214 Fri Oct  4 02:07:46 1996  Michel Robitaille  <robitail@IRO.UMontreal.CA>
4216         * po/fr.po: New file.
4218 Fri Oct  4 05:04:52 1996  Ulrich Drepper  <drepper@cygnus.com>
4220         * sysdeps/unix/sysv/linux/i386/sigcontext.h: New file.
4222         Add support for MD5 crypt replacement.
4223         * Makefile (subdirs): Add crypt.
4224         * shlib-versions: Add entry for libcrypt.
4225         * crypt/md5-crypt.c: New file.
4226         * crypt/md5.c: New file.
4227         * crypt/md5.h: New file.
4228         * sysdeps/generic/crypt-entry.c: New file.
4229         * sysdeps/generic/crypt.h: New file.
4231 Thu Oct  3 20:53:23 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
4233         * dirent/tst-seekdir.c: Provide correct prototypes.
4234         * io/test-utime.c: Likewise.
4235         * malloc/mallocbug.c: Likewise.
4236         * posix/testfnm.c: Likewise.
4237         * stdio-common/xbug.c: Likewise.
4238         * sysdeps/posix/cuserid.c: Likewise.
4240 Wed Oct  2 13:33:48 1996  Richard Henderson  <rth@tamu.edu>
4242         Provide optimized string functions for Alpha processors.
4243         * sysdeps/alpha/bzero.S: New file.
4244         * sysdeps/alpha/memset.S: New file.
4245         * sysdeps/alpha/stpcpy.S: New file.
4246         * sysdeps/alpha/stpncpy.S: New file.
4247         * sysdeps/alpha/strcat.S: New file.
4248         * sysdeps/alpha/strchr.S: New file.
4249         * sysdeps/alpha/strcpy.S: New file.
4250         * sysdeps/alpha/strncat.S: New file.
4251         * sysdeps/alpha/strncpy.S: New file.
4252         * sysdeps/alpha/strrchr.S: New file.
4253         * sysdeps/alpha/stxcpy.S: New file.
4254         * sysdeps/alpha/stxncpy.S: New file.
4256         * sysdeps/alpha/Makefile [$(sudir)==string]: Add stxcpy and
4257         stxncpy to sysdep_routines.
4258         Minor correction.
4260 Thu Oct  3 13:33:31 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
4262         * sysdeps/generic/gnu/types.h: Added __loff_t.
4263         Don't declare key_t here.
4265         * hurd/alloc-fd.c (_hurd_alloc_fd): If realloc fails, bother to
4266         set errno (to ENOMEM).
4268 Wed Oct  2 13:41:48 1996  Ulrich Drepper  <drepper@cygnus.com>
4270         * sysdeps/generic/strtok.c: Don't set stored pointer to NULL when
4271         nothing is found.  This guarantees all subsequent calls behave
4272         the same.
4273         * sysdeps/generic/strtok_r.c: Likewise.
4275 Mon Sep 30 22:27:36 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4277         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Don't declare
4278         `i' as const.
4280 Mon Sep 30 22:38:29 1996  Richard Henderson  <rth@tamu.edu>
4282         * sysdeps/generic/strtok.c: When we hit EOS, don't set olds to
4283         NULL immediately; we're going to get called one more time.
4284         * sysdeps/generic/strtok_r.c: Likewise.
4286 Tue Oct  1 09:12:21 1996  Ulrich Drepper  <drepper@cygnus.com>
4288         * locale/programs/ld-time.c: Always write some bytes at the end of
4289         the file even if no `era's are specified.
4291         * stdio-common/tmpname.c (tmpbuf): Don't define as array of
4292         pointers.
4294 Tue Oct  1 01:43:11 1996  Ulrich Drepper  <drepper@cygnus.com>
4296         * libio/iofclose.c: Move unlocking to right position.
4298 Mon Sep 30 03:08:34 1996  Richard Henderson  <rth@tamu.edu>
4300         * misc/Makefile: Kill force-wrapper.
4301         * misc/force-wrapper.c: Delete.
4303         * elf/eval.c: Add <string.h>.
4305         * gmon/sys/gmon_out.h: Nonsense like `char foo[sizeof(char*)]'
4306         followed by `bcopy(&ptr, &foo, sizeof(foo))' helps portability
4307         and binary compatibility not at all.  Better to do `char *foo'
4308         followed by `foo = ptr' as it is much cleaner.
4309         (struct gmon_hdr): Fix version.
4310         (struct gmon_hist_hdr): Fix low_pc, high_pc, hist_size, prof_rate.
4311         (struct gmon_cg_arc_record): Fix from_pc, self_pc, count.
4312         * gmon/gmon.c: De-ansidecl-ify.
4313         (write_hist): De-bcopy-fy.
4314         (write_call_graph): Likewise.
4316         * gmon/mcount.c: Assume _MCOUNT_DECL does the entire declaration.
4317         * sysdeps/alpha/machine-gmon.h: Update _MCOUNT_DECL.
4318         * sysdeps/generic/machine-gmon.h: Likewise.
4320         * resolv/netdb.h: Add __set_h_errno to mimic __set_errno.
4321         * nss/getXXent_r.c: Use __set_h_errno to set h_errno in all funcs.
4322         * nss/nss_dns/dns-network.c: Likewise.
4323         * resolv/getunamaddr.c: Likewise.  Also use __set_errno where needed.
4324         * resolv/getnetnamadr.c: Likewise.
4325         * resolv/res_debug.c: Likewise.
4326         * resolv/res_mkquery.c: Likewise.
4327         * resolv/res_query.c: Likewise.
4329         * libio/clearerr_u.c: It's not necessary to define __ protected
4330         function so don't do it.
4331         * libio/feof_u.c, libio/ferror_u.c, libio/fputc_u.c,
4332           libio/getc_u.c, libio/getchar_u.c, libio/iofflush_u.c: Likewise.
4334         * libio/fgetc.c: Avoid a warning by casting _IO_funlockfile for
4335         the cleanup registrar.
4336         * libio/fputc.c, libio/freopen.c, libio/fseek.c, libio/getc.c,
4337           libio/getchar.c, libio/iofclose.c, libio/iofflush.c,
4338           libio/iofgetpos.c, libio/iofgets.c, libio/iofputs.c,
4339           libio/iofread.c, libio/iofsetpos.c, libio/ioftell.c,
4340           libio/iofwrite.c, libio/iogetdelim.c, libio/iogets.c,
4341           libio/ioputs.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
4342           libio/ioungetc.c, libio/putc.c, libio/putchar.c, libio/rewind.c:
4343         Likewise.
4345         * locale/programs/ld-ctype.c: Include <alloca.h>.
4347         * login/login_tty.c: Get login_tty prototype from <utmp.h>.
4349         * posix/sys/types.h: Change #defines to typedefs.  This is looking
4350         forward to more comprehensive namespace cleanups for C++.
4351         * posix/unistd.h: Likewise for ssize_t.
4353         * pwd/getpw.c: Prototype and rename getpw -> __getpw and add a
4354         weak alias.
4356         * resolv/base64.c: Don't do `for (NULL; ...)' as it causes
4357         `statement with no effect' warnings.
4358         * resolv/inet_neta.c: Include <string.h> for strlen.
4360         * stdio-common/getline.c: Undef ssize_t before libio redefinition.
4361         * stdio-common/tstgetln.c: Same.  De-ansidecl-ify.
4362         * stdio-common/vfprintf.c: Same for va_list.
4363         * stdio-common/vfscanf.c: Same.
4364         * stdio-common/reg-printf.c: Prototype the __ function.
4365         * stdio-common/scanf.c [USE_IN_LIBIO]: Include <libioP.h> for
4366         _IO_vscanf declaration.
4368         * string/tester.c: Tsk, tsk.  Don't cast pointers to int,
4369         but to unsigned long for the health of 64-bit systems.
4371         * sunrpc/svc_udp.c: Define MAX only if we don't have it yet.
4372         Many system's <sys/param.h> pulls this in.
4374         * sysdeps/generic/dl-cache.c: Kill the bottom half of the
4375         patch doubled file.
4377         * sysdeps/generic/pty.c (forkpty): Get login_tty decl from <utmp.h>
4378         instead of defining it locally.
4380         * sysdeps/posix/sigvec.c: Prototype wrapper_handler and convert_mask.
4381         * sysdeps/stub/chflags.c: Prototype chflags.
4382         * sysdeps/stub/fchflags.c: Prototype fchflags.
4383         * sysdeps/stub/sstk.c: Prototype sstk.
4385         * sysdeps/unix/alpha/sysdep.S:  Add strong alias from errno
4386         variable to __errno.  Update __syscall_error to store to both
4387         the global and per-thread variables.
4389         * sysdeps/unix/sysv/linux/init-first.c: Change include of
4390         init-first.h from "" to <> as "" does not search the include path.
4391         Prototype _dl_start.
4393 Sun Sep 29 14:41:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4395         * sysdeps/unix/Makefile ($(common-objpfx)s-proto.d): Make it a
4396         pattern rule to get the right stem.
4398 Sat Sep 28 01:30:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4400         * Makefile ($(objpfx)version-info.h): Fix typo in previous change.
4402 Sat Sep 28 00:44:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4404         * sysdeps/posix/euidaccess.c (__set_errno): Fix typo.
4406 Sat Sep 28 00:40:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4408         * malloc/free.c (_free_internal): Don't call free recursively, use
4409         the internal functions instead.
4411 Sat Sep 28 00:23:20 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4413         * sysdeps/posix/tempname.c (__stdio_gen_tempname) [USE_IN_LIBIO &&
4414         _IO_MTSAFE_IO]: Allocate and initialize the file lock.
4416 Fri Sep 27 23:58:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4418         * catgets/gencat.c (main): Print version information on stdout,
4419         not stderr.
4420         * db/makedb.c: Likewise.
4421         * locale/programs/locale.c: Likewise.
4422         * locale/programs/localedef.c: Likewise.
4424 Mon Sep 30 00:14:26 1996  Ulrich Drepper  <drepper@cygnus.com>
4426         Add implementation of netgroup.
4427         * inet/Makefile (distributes): Add netgroup.h.
4428         (routines): Add getnetgrent.c and getnetgrent_r.c.
4429         * inet/getnetgrent.c: New file.
4430         * inet/getnetgrent_r.c: New file.
4431         * inet/netgroup.h: New file.
4432         * netgroup.h: New file.
4433         * nsswitch.h: New file.
4434         * nss/Makefile (databases): Add getgrp.
4435         * nss/databases.def: Add netgroup.
4436         * nss/db-Makefile: Add rules for netgroup.
4437         * nss/netgrp-lookup.c: New file.
4438         * nss/nss.h: Add new status value NSS_STATUS_RETURN which will
4439         always return without a check of the transition table.
4440         * nss/nsswitch.h (struct service_user): Extend actions array to
4441         five elements.
4442         * nss/nsswitch.c (__nss_next): Allow NSS_STATUS_RETURN as legal
4443         status value.
4444         (nss_parse_service_list): Initialize action for NSS_STATUS_RETURN
4445         to NSS_ACTION_RETURN.
4446         * nss/nss_db/db-netgrp.c: New file.
4447         * nss/nss_files/files-netgrp.c: New file.
4448         * nss/nsswitch.conf: Add entry for netgroup.
4449         * resolv/netdb.h: Add prototypes for netgroup functions.
4451         * nss/nss_db/db-XXX.c: Use `enum nss_status' type when status
4452         value is used.
4454 Sun Sep 29 12:55:58 1996  Ulrich Drepper  <drepper@cygnus.com>
4456         * sysdeps/unix/sysv/linux/syscalls.list: Change function name for
4457         _llseek to _llseek (not llseek).
4458         Reported by Matthias Urlichs <smurf@smurf.noris.de>.
4460 Sun Sep 29 05:34:32 1996  Ulrich Drepper  <drepper@cygnus.com>
4462         * inet/rcmd.c: Remove definition of MIN.
4464 Sat Sep 28 14:22:51 1996  Ulrich Drepper  <drepper@cygnus.com>
4466         * dirent/readdir_r.c: Removed.  We indeed need a real implementation.
4467         * sysdeps/unix/readdir_r.c: New file.
4468         * sysdeps/unix/readdir.c: Remove check for correct parameter
4469         values.  Let them simply die.
4470         * manual/filesys.texi: Document readdir_r.
4472         * sysdeps/gnu/errlist.awk: Define _sys_errlist as `const char* const'.
4473         Proposed by Per Abrahamsen <abraham@dina.kvl.dk>.
4475 Sat Sep 28 03:02:49 1996  Ulrich Drepper  <drepper@cygnus.com>
4477         * dirent/Makefile (routines): Add readdir_r.
4478         * dirent/readdir_r.c: New file.  Wrapper around readdir.c.
4479         * dirent/dirent.h: Add prototype for readdir_r.
4481         * misc/hsearch_r.c (ENTRY): Make field `used' of type `unsigned int'
4482         to prevent warnings.
4484         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
4485         Initialize `result'.
4487 Sat Sep 28 01:16:42 1996  Ulrich Drepper  <drepper@cygnus.com>
4489         * sysdeps/generic/strsep.c: Rename to __strsep and make strsep
4490         weak alias.
4491         * string/string.h: Add prototype for __strsep.
4492         * misc/mntent_r.c: Use __strsep instead of strsep to keep
4493         namespace clean.
4495         * sysdeps/stub/nanosleep.c: Rename to __libc_nanosleep and make
4496         __nanosleep and nanosleep weak aliases.
4497         * sysdeps/unix/sysv/linux/syscalls.list: Add __nanosleep as weak
4498         alias.
4499         * sysdeps/unix/sysv/linux/sleep.c: Call __nanosleep instead of
4500         nanosleep to keep namespace clean.
4502         * sysdeps/posix/ttyname.c (ttyname): Add cast to prevent warning.
4503         * sysdeps/posix/ttyname_r.c (ttyname_r): Likewise.
4504         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
4506         * sysdeps/unix/nlist.c: Use ISO C definition since we don't always
4507         have prototype.
4509         * login/Makefile (headers): Add pty.h.
4510         * login/pty.h: New file.
4511         * sysdeps/generic/pty.h: Include <pty.h>.
4512         * login/pututline_r.c: Add cast to prevent warning.
4514         * gmon/gmon.c: Add prototype for __profile_frequency.
4515         (monstartup): Add cast to prevent warning.
4516         * sysdeps/generic/prof-freq.c: Change to use ISO C style definition.
4518         * locale/programs/ld-time.c (time_output): Write `era' information
4519         in correct order.
4521 Sat Sep 28 00:11:08 1996  Ulrich Drepper  <drepper@cygnus.com>
4523         * sysdeps/unix/sysv/linux/syscalls.list: Add weak alias
4524         `adjtimex'.
4525         Set caller for mlock, mlockall, mremap, munlock, and munlockall
4526         to EXTRA.
4527         Reported by Matthias Urlichs <smurf@smurf.noris.de>.
4529 1996-09-27  Paul Eggert  <eggert@twinsun.com>
4531         * strftime.c (strftime): Output incomplete formats like %E
4532         at end of string.
4534 1996-09-27  Paul Eggert  <eggert@twinsun.com>
4536         * strftime.c (strftime): Add support for %EC and %Ey.
4537         Fix support for %EY.  This uses the new _nl_get_era_entry function.
4539 Fri Sep 27 14:12:27 1996  Ulrich Drepper  <drepper@cygnus.com>
4541         Security related patch by Elliot Lee <sopwith@redhat.com> and
4542         David Holland <dholland@eecs.harvard.edu>.
4544         * inet/rexec.c (rexec): Increase size of `num' array from 8 to 32.
4545         * inet/ruserpass.c (ruserpass): Don't allow $HOME envvar to not exist.
4547         * sysdeps/generic/getenv.c (__secure_getenv): New function.  Return
4548         NULL when programs runs with SUID or SGID enabled.
4549         * sysdeps/stub/getenv.c: Make __secure_getenv an alias of getenv.
4550         * stdlib/stdlib.h: Add prototype for __secure_getenv.
4552         * locale/setlocale.c: Use __secure_getenv.
4553         * resolv/res_init.c: Likewise.
4554         * resolv/res_query.c: Likewise.
4555         * inet/ruserpass.c: Likewise.
4556         * sysdeps/posix/tempname.c: Likewise.
4557         * malloc/mtrace.c: Likewise.
4558         * catgets/catgets.c: Likewise.
4560         Make temporary file handling functions reentrant.
4562         * stdio-common/tmpnam.c: Rewrite to have own buffer to write
4563         result to.  The called __stdio_gen_tempname function must be
4564         thread safe.
4565         * stdio-common/tmpnam_r.c: New file.
4566         * stdio/stdio.h: Add prototype for `tmpnam_r'.
4567         Change prototype for __stdio_gen_tempname.
4568         * stdio/libio.h: Likewise.
4569         * sysdeps/posix/tempname.c: Add new parameters and use them instead
4570         of static buffer.
4571         Don't reset `indeces' when PID changed between calls.
4572         Don't fail for long running programs when index counter once
4573         reached the limit.
4574         * sysdeps/stub/tempname.c: Likewise.
4575         * stdio-common/tempnam.c: Provide local buffer as extra argument
4576         to __stdio_gen_tempname.  This makes this function reentrant.
4577         * stdio-common/tmpfile.c: Likewise.
4578         * stdio-common/temptest.c: Provide extra argument to
4579         __stdio_gen_tempname.
4580         * manual/filesys.texi: Describe tmpnam_r and add comments about
4581         reentrancy of the functions.
4583         * inet/rcmd.c: Fixed address length handling.
4585         * sysdeps/posix/mk-stdiolim.c: Count final \0 byte in L_tmpnam value.
4587         * time/strftime.c: Remove unused variables alt_digits and
4588         end_alt_digits.
4590         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Correct prototype names
4591         for get_nprocs and get_nprocs_conf.
4592         * sysdeps/generic/sys/sysinfo.h: Likewise.
4594         * stdlib/test-canon.c: Finally do the right fix.
4596         * misc/Makefile: Only compile force-wrapper when compiling
4597         reentrant libc.
4599 Fri Sep 27 03:49:56 1996  Ulrich Drepper  <drepper@cygnus.com>
4601         Add support for cancelable system calls.
4603         * csu/initfini.c: Make in crti.o reference to symbol
4604         __libc_force_cancel_wrapper when compiling reentrant version.
4605         * misc/Makefile (routines): Add force-wrapper.
4606         * misc/force-wrapper.c: New file.
4608         * posix/system.c: Rename function to __libc_system and make system
4609         a weak alias.
4610         * sysdeps/stub/system.c: Likewise.
4611         * posix/wait.c: Rename function to __libc_wait and make __wait a
4612         weak alias.  De-ANSI-fy.
4613         * sysdeps/standalone/read.c: Rename function to __libc_read and
4614         make __read a weak alias.
4615         * sysdeps/stub/read.c: Likewise.
4616         * sysdeps/standalone/write.c: Rename function to __libc_write and
4617         make __write a weak alias.
4618         * sysdeps/stub/write.c: Likewise.
4619         * sysdeps/stub/tcdrain.c: Rename function to __libc_tcdrain and
4620         make tcdrain a weak alias.
4621         * sysdeps/unix/bsd/tcdrain.c: Likewise.
4622         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Likewise.
4623         * sysdeps/unix/sysv/tcdrain.c: Likewise.
4624         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
4625         * sysdeps/unix/bsd/bsd4.4/wait.c: Rename function to __libc_wait
4626         and make __wait a weak alias.
4627         * sysdeps/stub/waitpid.c: Rename function to __libc_waitpid and
4628         make __waitpid a weak alias.
4629         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
4630         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
4631         * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
4632         * sysdeps/unix/common/pause.c: Rename function to __libc_pause
4633         and make pause a weak alias.  De-ANSI-fy.
4635         * sysdeps/unix/syscalls.list: Change name for close, fcntl, fsync,
4636         lseek, open, read, and write to have __libc_ prefix and make old
4637         names a weak alias.
4638         * sysdeps/unix/mman/syscalls.list: Likewise for msync.
4639         * sysdeps/unix/sysv/linux/syscalls.list: Likewise for nanosleep.
4641         * io/creat.c: De-ANSI-fy.
4643         * sysdeps/unix/sysv/linux/syscalls.list: Add pause.
4645 Thu Sep 26 19:15:55 1996  Ulrich Drepper  <drepper@cygnus.com>
4647         * misc/mntent.h: Add MNTTYPE_* and MNTOPT_* macros.
4648         Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
4650 Thu Sep 26 14:40:10 1996  Ulrich Drepper  <drepper@cygnus.com>
4652         * sysdeps/posix/pathconf.c: Pass descriptor for just opened file
4653         to fpathconf.
4654         Reported by Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>.
4656 Thu Sep 26 04:02:43 1996  Ulrich Drepper  <drepper@cygnus.com>
4658         * locale/programs/locfile.c (write_locale_data): Allocate room
4659         even for file name for LC_MESSAGES locale.
4660         (locafile_read): `tok_era' must be handled as a string list.
4661         * locale/programs/ld-time.c: Finish correction of handling `era'.
4662         * locale/C-time.c (_nl_C_LC_TIME): Add initializer for new fields.
4663         * locale/categories.def: Add postload function for LC_TIME.
4664         * locale/setlocale.c: Make lock global and rename to
4665         __libc_setlocale_lock.
4666         * locale/localeinfo.h (struct era_entry): New type.  Used in strftime.
4667         Add prototypes for _nl_get_era_entry and _nl_get_alt_digit.
4668         * locale/lc-time.c (_nl_postload_time): New function.  Initialize
4669         lazy intialization.
4670         (_nl_get_era_entry): New function.  Return era entry which corresponds
4671         to given year.
4672         (_nl_get_alt_digit): New function.  Return string with alternate
4673         digit representation for given number.
4675         * time/strftime.c (strftime): Use _nl_get_alt_digit to get
4676         string representing alternate digit notation.
4678 Wed Sep 25 17:31:55 1996  Ulrich Drepper  <drepper@cygnus.com>
4680         * sysdeps/generic/waitstatus.h (union wait): Add w_status field.
4681         Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
4683         * elf/rtld.c (dl_main): Process LD_PRELOAD before loading
4684         ld.so.preload.  Suggested by David Engel <david@elo.ods.com>.
4686 Wed Sep 25 13:10:57 1996  Ulrich Drepper  <drepper@cygnus.com>
4688         * catgets/gencat.c (main): Change --version again because RMS wants
4689         the package name in parentheses.
4690         * db/makedb.c: Likewise.
4691         * locale/programs/locale.c: Likewise.
4692         * locale/programs/localedef.c: Likewise.
4694 Tue Sep 24 01:28:05 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4696         * Makefile ($(objpfx)sysd-dirs): Depend on Subdirs files, command
4697         rewritten.
4698         ($(objpfx)version-info.h): Depend on Banner files, command
4699         rewritten.
4701 Wed Sep 25 02:44:41 1996  Ulrich Drepper  <drepper@cygnus.com>
4703         * sysdeps/unix/sysv/linux/sleep.c: New file.  Based on nanosleep.
4705 Tue Sep 24 21:46:02 1996  Ulrich Drepper  <drepper@cygnus.com>
4707         * shadow/lckpwdf.c (PWD_LOCKFILE): Change to /etc/lock.pwd to be
4708         on the same device as the password file.
4709         * shadow/shadow.h (struct spwd): Change type of numeric fields
4710         to `long int' since there value are days, not seconds.
4711         * shadow/putspent.c: Change casts from time_t to `long int'.
4712         * shadow/sgetspent_r.c (LINE_READER): Likewise.
4714 Mon Sep 23 23:05:24 1996  Ulrich Drepper  <drepper@cygnus.com>
4716         * sysdeps/unix/sysv/linux/errnos.h: Define __set_errno to make
4717         sure the thread specific variable is set as well as the global
4718         variable.
4719         * sysdeps/mach/hurd/errnos.awk: Define macro for source code
4720         compatibility.
4721         * sysdeps/stub/errnos.h: Likewise.
4722         * sysdeps/unix/bsd/bsd4.4/errnos.h: Likewise.
4724         * shadow/putspent.c: Don't include <errno.h>.
4726         * dirent/scandir.c (scandir): Use __set_errno to set errno
4727         variable.
4728         * elf/dl-load.c (open_path): Likewise.
4729         * inet/rcmd.c (rcmd): Likewise.
4730         (rresvport): Likewise.
4731         * intl/dcgettext.c [!__set_errno]: Define __set_errno.
4732         (DCGETTEXT): Use __set_errno to set errno variable.
4733         * io/fts.c (fts_open): Likewise.
4734         (fts_close): Likewise.
4735         (fts_read): Likewise.
4736         (fts_set): Likewise.
4737         (fts_children): Likewise.
4738         (fts_build): Likewise.
4739         (fts_stat): Likewise.
4740         * io/ftw.c (ftw_dir): Likewise.
4741         (ftw): Likewise.
4742         * io/getwd.c (getwd): Likewise.
4743         * io/lockf.c (lockf): Likewise.
4744         * libio/libioP.h [EINVAL]: Use __set_errno to define MAYBE_SET_EINVAL.
4745         * libio/iofdopen.c (_IO_fdopen): Use MAYBE_SET_EINVAL to errno.
4746         * libio/iogetdelim.c (_IO_getdelim): Likewise.
4747         * libio/fileops.c (_IO_file_open): Use __set_errno to set errno
4748         variable.
4749         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
4750         * libio/iofsetpos.c (_IO_fsetpos): Likewise.
4751         * libio/ioftell.c (_IO_ftell): Likewise.
4752         * locale/loadlocale.c (_nl_load_locale): Likewise.
4753         * locale/nl_langinfo.c (nl_langinfo): Likewise.
4754         * locale/setlocale.c (ERROR_RETURN): Likewise.
4755         * login/getutid_r (__getutid_r): Likewise.
4756         * login/getutline_r (__getutline_r): Likewise.
4757         * login/login.c (tty_name): Likewise.
4758         * login/oututline_r.c (__pututline_r): Likewise.
4759         * malloc/malloc.c (morecore): Likewise.
4760         * misc/efgcvt_r.c (fcvt_r): Likewise.
4761         * misc/hsearch_r.c (hcreate_r): Likewise.
4762         (hdestroy_r): Likewise.
4763         (hsearch_r): Likewise.
4764         * nss/nsswitch.c (__nss_configure_lookup): Likewise.
4765         * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Likewise.
4766         (_nss_dns_gethostbyaddr_r): Likewise.
4767         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
4768         * nss/nss_files/files-parse.c (parse_list): Likewise.
4769         * posix/confstr.c (confstr): Likewise.  De-ANSI-fy.
4770         * posix/execvp.c (execvp): Likewise.
4771         * posix/glob.c: Define __set_errno.
4772         (glob): Use __set_errno to set errno variable.
4773         (glob_in_dir): Likewise.
4774         * pwd/getpw.c: Likewise. De-ANSI-fy.
4775         * pwd/putpwent.c: Likewise.
4776         * resolv/inet_net_ntop.c: Likewise.
4777         * resolv/inet_net_pton.c: Likewise.
4778         * resolv/inet_neta.c: Likewise.
4779         * resolv/inet_ntop.c: Likewise.
4780         * resolv/inet_pton.c: Likewise.
4781         * resolv/res_query.c (res_search): Likewise.
4782         * resolv/res_send.c (Aerror): Likewise.
4783         (Perror): Likewise.
4784         (res_send): Likewise.
4785         * signal/sigaddset.c: Likewise.  De-ANSI-fy.
4786         * signal/sigdelset.c: Likewise.
4787         * signal/sigempty.c: Likewise.
4788         * signal/sigfillset.c: Likewise.
4789         * signal/sigismem.c: Likewise.
4790         * stdio/fclose.c: Likewise.
4791         * stdio/feof.c: Likewise.
4792         * stdio/ferror.c: Likewise.
4793         * stdio/fflush.c: Likewise.
4794         * stdio/fgetc.c: Likewise.
4795         * stdio/fgetpos.c: Likewise.
4796         * stdio/fgets.c: Likewise.
4797         * stdio/fileno.c: Likewise.
4798         * stdio/fmemopen.c: Likewise.
4799         * stdio/fopen.c: Likewise.
4800         * stdio/fputc.c: Likewise.
4801         * stdio/fread.c: Likewise.
4802         * stdio/freopen.c: Likewise.
4803         * stdio/fseek.c: Likewise.
4804         * stdio/fsetpos.c: Likewise.
4805         * stdio/ftell.c: Likewise.
4806         * stdio/fwrite.c: Likewise.
4807         * stdio/getdelim.c: Likewise.
4808         * stdio/gets.c: Likewise.
4809         * stdio/glue.c: Likewise.
4810         * stdio/internals.c: Likewise.
4811         * stdio/memstream.c: Likewise.
4812         * stdio/setvbuf.c: Likewise.
4813         * stdio/ungetc.c: Likewise.
4814         * stdio/vsscanf.c: Likewise.
4815         * stdio-common/reg-printf.c: Likewise.
4816         * stdio-common/vfprintf.c: Likewise.
4817         * stdio-common/vfscanf.c: Likewise.
4818         * stdlib/canonicalize.c: Likewise.
4819         * stdlib/msort.c: Likewise.
4820         * stdlib/random_r.c: Likewise.
4821         * stdlib/strfmon.c: Likewise.
4822         * stdlib/strtod.c: Likewise.
4823         * stdlib/strtol.c: Likewise.
4824         * sunrpc/bindrsvprt.c: Likewise.
4825         * time/asctime.c: Likewise.
4826         * time/localtime.c: Likewise.
4827         * wcsmbs/mbrtowc.c: Likewise.
4828         * wcsmbs/mbsnrtowcs.c: Likewise.
4829         * wcsmbs/mbsrtowcs.c: Likewise.
4830         * wcsmbs/wcrtomb.c: Likewise.
4831         * wcsmbs/wcsnrtombs.c: Likewise.
4832         * wcsmbs/wcsrtombs.c: Likewise.
4833         * wcsmbs/wcstok.c: Likewise.
4834         * sysdeps/generic/ftime.c: Likewise.
4835         * sysdeps/generic/pty.c: Likewise.
4836         * sysdeps/generic/setenv.c: Likewise.
4837         * sysdeps/generic/speed.c: Likewise.
4838         * sysdeps/generic/sysd-stdio.c: Likewise.
4839         * sysdeps/generic/uname.c: Likewise.
4840         * sysdeps/generic/vlimit.c: Likewise.
4841         * sysdeps/libm-ieee754/k_standard.c: Likewise.
4842         * sysdeps/libm-ieee754/s_ldexp.c: Likewise.
4843         * sysdeps/libm-ieee754/s_ldexpf.c: Likewise.
4844         * sysdeps/libm-ieee754/s_ldexpl.c: Likewise.
4845         * sysdeps/libm-ieee754/w_scalb.c: Likewise.
4846         * sysdeps/libm-ieee754/w_scalbf.c: Likewise.
4847         * sysdeps/libm-ieee754/w_scalbl.c: Likewise.
4848         * sysdeps/posix/dup2.c: Likewise.
4849         * sysdeps/posix/euidaccess.c: Likewise.
4850         * sysdeps/posix/fdopen.c: Likewise.
4851         * sysdeps/posix/flock.c: Likewise.
4852         * sysdeps/posix/fpathconf.c: Likewise.
4853         * sysdeps/posix/getcwd.c: Likewise.
4854         * sysdeps/posix/gettimeofday.c: Likewise.
4855         * sysdeps/posix/isatty.c: Likewise.
4856         * sysdeps/posix/isfdtype.c: Likewise.
4857         * sysdeps/posix/killpg.c: Likewise.
4858         * sysdeps/posix/mkstemp.c: Likewise.
4859         * sysdeps/posix/mktemp.c: Likewise.
4860         * sysdeps/posix/pathconf.c: Likewise.
4861         * sysdeps/posix/pipestream.c: Likewise.
4862         * sysdeps/posix/remove.c: Likewise.
4863         * sysdeps/posix/rename.c: Likewise.
4864         * sysdeps/posix/sigintr.c: Likewise.
4865         * sysdeps/posix/signal.c: Likewise.
4866         * sysdeps/posix/sigsuspend.c: Likewise.
4867         * sysdeps/posix/sigvec.c: Likewise.
4868         * sysdeps/posix/sleep.c: Likewise.
4869         * sysdeps/posix/sysconf.c: Likewise.
4870         * sysdeps/posix/system.c: Likewise.
4871         * sysdeps/posix/tempname.c: Likewise.
4872         * sysdeps/posix/truncate.c: Likewise.
4873         * sysdeps/posix/ttyname.c: Likewise.
4874         * sysdeps/posix/ttyname_r.c: Likewise.
4875         * sysdeps/posix/wait3.c: Likewise.
4876         * sysdeps/standalone/close.c: Likewise.
4877         * sysdeps/standalone/open.c: Likewise.
4878         * sysdeps/standalone/read.c: Likewise.
4879         * sysdeps/standalone/write.c: Likewise.
4880         * sysdeps/stub/__longjmp.c: Likewise.
4881         * sysdeps/stub/accept.c: Likewise.
4882         * sysdeps/stub/access.c: Likewise.
4883         * sysdeps/stub/acct.c: Likewise.
4884         * sysdeps/stub/adjtime.c: Likewise.
4885         * sysdeps/stub/alarm.c: Likewise.
4886         * sysdeps/stub/bind.c: Likewise.
4887         * sysdeps/stub/brk.c: Likewise.
4888         * sysdeps/stub/chdir.c: Likewise.
4889         * sysdeps/stub/chflags.c: Likewise.
4890         * sysdeps/stub/chmod.c: Likewise.
4891         * sysdeps/stub/chown.c: Likewise.
4892         * sysdeps/stub/chroot.c: Likewise.
4893         * sysdeps/stub/clock.c: Likewise.
4894         * sysdeps/stub/close.c: Likewise.
4895         * sysdeps/stub/closedir.c: Likewise.
4896         * sysdeps/stub/connect.c: Likewise.
4897         * sysdeps/stub/ctermid.c: Likewise.
4898         * sysdeps/stub/cuserid.c: Likewise.
4899         * sysdeps/stub/dirfd.c: Likewise.
4900         * sysdeps/stub/dup.c: Likewise.
4901         * sysdeps/stub/dup2.c: Likewise.
4902         * sysdeps/stub/euidaccess.c: Likewise.
4903         * sysdeps/stub/execve.c: Likewise.
4904         * sysdeps/stub/fchdir.c: Likewise.
4905         * sysdeps/stub/fchflags.c: Likewise.
4906         * sysdeps/stub/fchmod.c: Likewise.
4907         * sysdeps/stub/fchown.c: Likewise.
4908         * sysdeps/stub/fcntl.c: Likewise.
4909         * sysdeps/stub/fdopen.c: Likewise.
4910         * sysdeps/stub/fexecve.c: Likewise.
4911         * sysdeps/stub/flock.c: Likewise.
4912         * sysdeps/stub/fork.c: Likewise.
4913         * sysdeps/stub/fpathconf.c: Likewise.
4914         * sysdeps/stub/fstatfs.c: Likewise.
4915         * sysdeps/stub/fsync.c: Likewise.
4916         * sysdeps/stub/ftruncate.c: Likewise.
4917         * sysdeps/stub/fxstat.c: Likewise.
4918         * sysdeps/stub/getcwd.c: Likewise.
4919         * sysdeps/stub/getdents.c: Likewise.
4920         * sysdeps/stub/getdomain.c: Likewise.
4921         * sysdeps/stub/getdtsz.c: Likewise.
4922         * sysdeps/stub/getegid.c: Likewise.
4923         * sysdeps/stub/getenv.c: Likewise.
4924         * sysdeps/stub/geteuid.c: Likewise.
4925         * sysdeps/stub/getgid.c: Likewise.
4926         * sysdeps/stub/getgroups.c: Likewise.
4927         * sysdeps/stub/gethostid.c: Likewise.
4928         * sysdeps/stub/gethostname.c: Likewise.
4929         * sysdeps/stub/getitimer.c: Likewise.
4930         * sysdeps/stub/getlogin.c: Likewise.
4931         * sysdeps/stub/getlogin_r.c: Likewise.
4932         * sysdeps/stub/getpagesize.c: Likewise.
4933         * sysdeps/stub/getpeername.c: Likewise.
4934         * sysdeps/stub/getpid.c: Likewise.
4935         * sysdeps/stub/getppid.c: Likewise.
4936         * sysdeps/stub/getpriority.c: Likewise.
4937         * sysdeps/stub/getrlimit.c: Likewise.
4938         * sysdeps/stub/getrusage.c: Likewise.
4939         * sysdeps/stub/getsid.c: Likewise.
4940         * sysdeps/stub/getsockname.c: Likewise.
4941         * sysdeps/stub/getsockopt.c: Likewise.
4942         * sysdeps/stub/getsysstats.c: Likewise.
4943         * sysdeps/stub/gettimeofday.c: Likewise.
4944         * sysdeps/stub/getuid.c: Likewise.
4945         * sysdeps/stub/gtty.c: Likewise.
4946         * sysdeps/stub/ioctl.c: Likewise.
4947         * sysdeps/stub/isatty.c: Likewise.
4948         * sysdeps/stub/isfdtype.c: Likewise.
4949         * sysdeps/stub/kill.c: Likewise.
4950         * sysdeps/stub/killpg.c: Likewise.
4951         * sysdeps/stub/link.c: Likewise.
4952         * sysdeps/stub/listen.c: Likewise.
4953         * sysdeps/stub/lseek.c: Likewise.
4954         * sysdeps/stub/lxstat.c: Likewise.
4955         * sysdeps/stub/madvice.c: Likewise.
4956         * sysdeps/stub/mkdir.c: Likewise.
4957         * sysdeps/stub/mkfifo.c: Likewise.
4958         * sysdeps/stub/mkstemp.c: Likewise.
4959         * sysdeps/stub/mktemp.c: Likewise.
4960         * sysdeps/stub/mmap.c: Likewise.
4961         * sysdeps/stub/morecore.c: Likewise.
4962         * sysdeps/stub/mprotect.c: Likewise.
4963         * sysdeps/stub/msgctl.c: Likewise.
4964         * sysdeps/stub/msgget.c: Likewise.
4965         * sysdeps/stub/msgrcv.c: Likewise.
4966         * sysdeps/stub/msgsnd.c: Likewise.
4967         * sysdeps/stub/msync.c: Likewise.
4968         * sysdeps/stub/munmap.c: Likewise.
4969         * sysdeps/stub/nanosleep.c: Likewise.
4970         * sysdeps/stub/nice.c: Likewise.
4971         * sysdeps/stub/nlist.c: Likewise.
4972         * sysdeps/stub/open.c: Likewise.
4973         * sysdeps/stub/opendir.c: Likewise.
4974         * sysdeps/stub/pathconf.c: Likewise.
4975         * sysdeps/stub/pause.c: Likewise.
4976         * sysdeps/stub/pipe.c: Likewise.
4977         * sysdeps/stub/pipestream.c: Likewise.
4978         * sysdeps/stub/poll.c: Likewise.
4979         * sysdeps/stub/profil.c: Likewise.
4980         * sysdeps/stub/ptrace.c: Likewise.
4981         * sysdeps/stub/putenv.c: Likewise.
4982         * sysdeps/stub/raise.c: Likewise.
4983         * sysdeps/stub/read.c: Likewise.
4984         * sysdeps/stub/readdir.c: Likewise.
4985         * sysdeps/stub/readlink.c: Likewise.
4986         * sysdeps/stub/readv.c: Likewise.
4987         * sysdeps/stub/reboot.c: Likewise.
4988         * sysdeps/stub/recv.c: Likewise.
4989         * sysdeps/stub/recvfrom.c: Likewise.
4990         * sysdeps/stub/recvmsg.c: Likewise.
4991         * sysdeps/stub/remove.c: Likewise.
4992         * sysdeps/stub/rename.c: Likewise.
4993         * sysdeps/stub/revoke.c: Likewise.
4994         * sysdeps/stub/rewinddir.c: Likewise.
4995         * sysdeps/stub/rmdir.c: Likewise.
4996         * sysdeps/stub/sbrk.c: Likewise.
4997         * sysdeps/stub/sched_getp.c: Likewise.
4998         * sysdeps/stub/sched_gets.c: Likewise.
4999         * sysdeps/stub/sched_primax.c: Likewise.
5000         * sysdeps/stub/sched_primin.c: Likewise.
5001         * sysdeps/stub/sched_rr_gi.c: Likewise.
5002         * sysdeps/stub/sched_setp.c: Likewise.
5003         * sysdeps/stub/sched_sets.c: Likewise.
5004         * sysdeps/stub/sched_yield.c: Likewise.
5005         * sysdeps/stub/seekdir.c: Likewise.
5006         * sysdeps/stub/select.c: Likewise.
5007         * sysdeps/stub/semctl.c: Likewise.
5008         * sysdeps/stub/semget.c: Likewise.
5009         * sysdeps/stub/semop.c: Likewise.
5010         * sysdeps/stub/send.c: Likewise.
5011         * sysdeps/stub/sendmsg.c: Likewise.
5012         * sysdeps/stub/sendto.c: Likewise.
5013         * sysdeps/stub/setdomain.c: Likewise.
5014         * sysdeps/stub/setegid.c: Likewise.
5015         * sysdeps/stub/setenv.c: Likewise.
5016         * sysdeps/stub/seteuid.c: Likewise.
5017         * sysdeps/stub/setgid.c: Likewise.
5018         * sysdeps/stub/setgroups.c: Likewise.
5019         * sysdeps/stub/sethostid.c: Likewise.
5020         * sysdeps/stub/sethostname.c: Likewise.
5021         * sysdeps/stub/setitimer.c: Likewise.
5022         * sysdeps/stub/setjmp.c: Likewise.
5023         * sysdeps/stub/setlogin.c: Likewise.
5024         * sysdeps/stub/setpgid.c: Likewise.
5025         * sysdeps/stub/setpriority.c: Likewise.
5026         * sysdeps/stub/setregid.c: Likewise.
5027         * sysdeps/stub/setreuid.c: Likewise.
5028         * sysdeps/stub/setrlimit.c: Likewise.
5029         * sysdeps/stub/setsid.c: Likewise.
5030         * sysdeps/stub/setsockopt.c: Likewise.
5031         * sysdeps/stub/settimeofday.c: Likewise.
5032         * sysdeps/stub/setuid.c: Likewise.
5033         * sysdeps/stub/shmat.c: Likewise.
5034         * sysdeps/stub/shmctl.c: Likewise.
5035         * sysdeps/stub/shmdt.c: Likewise.
5036         * sysdeps/stub/shmget.c: Likewise.
5037         * sysdeps/stub/shutdown.c: Likewise.
5038         * sysdeps/stub/sigaction.c: Likewise.
5039         * sysdeps/stub/sigaltstack.c: Likewise.
5040         * sysdeps/stub/sigblock.c: Likewise.
5041         * sysdeps/stub/sigintr.c: Likewise.
5042         * sysdeps/stub/signal.c: Likewise.
5043         * sysdeps/stub/sigpause.c: Likewise.
5044         * sysdeps/stub/sigpending.c: Likewise.
5045         * sysdeps/stub/sigprocmask.c: Likewise.
5046         * sysdeps/stub/sigreturn.c: Likewise.
5047         * sysdeps/stub/sigsetmask.c: Likewise.
5048         * sysdeps/stub/sigstack.c: Likewise.
5049         * sysdeps/stub/sigsuspend.c: Likewise.
5050         * sysdeps/stub/sigvec.c: Likewise.
5051         * sysdeps/stub/sleep.c: Likewise.
5052         * sysdeps/stub/socket.c: Likewise.
5053         * sysdeps/stub/socketpair.c: Likewise.
5054         * sysdeps/stub/sstk.c: Likewise.
5055         * sysdeps/stub/statfs.c: Likewise.
5056         * sysdeps/stub/stime.c: Likewise.
5057         * sysdeps/stub/stty.c: Likewise.
5058         * sysdeps/stub/swapoff.c: Likewise.
5059         * sysdeps/stub/swapon.c: Likewise.
5060         * sysdeps/stub/symlink.c: Likewise.
5061         * sysdeps/stub/sync.c: Likewise.
5062         * sysdeps/stub/syscall.c: Likewise.
5063         * sysdeps/stub/sysconf.c: Likewise.
5064         * sysdeps/stub/sysd-stdio.c: Likewise.
5065         * sysdeps/stub/system.c: Likewise.
5066         * sysdeps/stub/tcdrain.c: Likewise.
5067         * sysdeps/stub/tcflow.c: Likewise.
5068         * sysdeps/stub/tcflush.c: Likewise.
5069         * sysdeps/stub/tcgetattr.c: Likewise.
5070         * sysdeps/stub/tcgetpgrp.c: Likewise.
5071         * sysdeps/stub/tcsendbrk.c: Likewise.
5072         * sysdeps/stub/tcsetattr.c: Likewise.
5073         * sysdeps/stub/tcsetpgrp.c: Likewise.
5074         * sysdeps/stub/telldir.c: Likewise.
5075         * sysdeps/stub/tempname.c: Likewise.
5076         * sysdeps/stub/time.c: Likewise.
5077         * sysdeps/stub/times.c: Likewise.
5078         * sysdeps/stub/truncate.c: Likewise.
5079         * sysdeps/stub/ttyname.c: Likewise.
5080         * sysdeps/stub/ttyname_r.c: Likewise.
5081         * sysdeps/stub/ualarm.c: Likewise.
5082         * sysdeps/stub/ulimit.c: Likewise.
5083         * sysdeps/stub/umask.c: Likewise.
5084         * sysdeps/stub/unlink.c: Likewise.
5085         * sysdeps/stub/usleep.c: Likewise.
5086         * sysdeps/stub/ustat.c: Likewise.
5087         * sysdeps/stub/utime.c: Likewise.
5088         * sysdeps/stub/utimes.c: Likewise.
5089         * sysdeps/stub/vhangup.c: Likewise.
5090         * sysdeps/stub/wait.c: Likewise.
5091         * sysdeps/stub/wait3.c: Likewise.
5092         * sysdeps/stub/wait4.c: Likewise.
5093         * sysdeps/stub/waitpid.c: Likewise.
5094         * sysdeps/stub/write.c: Likewise.
5095         * sysdeps/stub/writev.c: Likewise.
5096         * sysdeps/stub/xmknod.c: Likewise.
5097         * sysdeps/stub/xstat.c: Likewise.
5098         * sysdeps/unix/closedir.c: Likewise.
5099         * sysdeps/unix/fxstat.c: Likewise.
5100         * sysdeps/unix/getlogin.c: Likewise.
5101         * sysdeps/unix/getlogin_r.c: Likewise.
5102         * sysdeps/unix/mkdir.c: Likewise.
5103         * sysdeps/unix/nice.c: Likewise.
5104         * sysdeps/unix/nlist.c: Likewise.
5105         * sysdeps/unix/opendir.c: Likewise.
5106         * sysdeps/unix/readdir.c: Likewise.
5107         * sysdeps/unix/rmdir.c: Likewise.
5108         * sysdeps/unix/stime.c: Likewise.
5109         * sysdeps/unix/xmknod.c: Likewise.
5110         * sysdeps/unix/xstat.c: Likewise.
5111         * sysdeps/unix/bsd/isatty.c: Likewise.
5112         * sysdeps/unix/bsd/setegid.c: Likewise.
5113         * sysdeps/unix/bsd/seteuid.c: Likewise.
5114         * sysdeps/unix/bsd/setsid.c: Likewise.
5115         * sysdeps/unix/bsd/sigaction.c: Likewise.
5116         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
5117         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
5118         * sysdeps/unix/bsd/tcflow.c: Likewise.
5119         * sysdeps/unix/bsd/tcflush.c: Likewise.
5120         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
5121         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
5122         * sysdeps/unix/bsd/times.c: Likewise.
5123         * sysdeps/unix/bsd/ulimit.c: Likewise.
5124         * sysdeps/unix/common/lxstat.c: Likewise.
5125         * sysdeps/unix/common/tcsendbrk.c: Likewise.
5126         * sysdeps/unix/sysv/setrlimit.c: Likewise.
5127         * sysdeps/unix/sysv/settimeofday.c: Likewise.
5128         * sysdeps/unix/sysv/sigaction.c: Likewise.
5129         * sysdeps/unix/sysv/tcflow.c: Likewise.
5130         * sysdeps/unix/sysv/tcflush.c: Likewise.
5131         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
5132         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
5133         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
5134         * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
5135         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
5136         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
5137         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
5138         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
5139         * sysdeps/unix/sysv/linux/gethostname.c: Likewise.
5140         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5141         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
5142         * sysdeps/unix/sysv/linux/speed.c: Likewise.
5143         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
5144         * sysdeps/unix/sysv/sysv4/sigaction.c: Likewise.
5145         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
5146         * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
5147         * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
5148         * sysdeps/unix/bsd/sun/sunos4/speed.c: Likewise.
5149         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c: Likewise.
5150         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Likewise.
5151         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
5152         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5153         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
5155         * sunrpc/clnt_tcp.c: Protect declaration of errno by #ifndef.
5156         * sunrpc/clnt_udp.c: Likewise.
5157         * sunrpc/bindrsvprt.c: Likewise.
5158         * sunrpc/pm_getmaps.c: Likewise.
5159         * sunrpc/pmap_rmt.c: Likewise.
5160         * sunrpc/svc.c: Likewise.
5161         * sunrpc/svc_run.c: Likewise.
5162         * sunrpc/svc_tcp.c: Likewise.
5163         * sunrpc/svc_udp.c: Likewise.
5165         * sysdeps/generic/strtok.c: Don't check argument, just crash.
5166         * sysdeps/generic/strtok_r.c: Likewise.
5168         * sysdeps/stub/start.c: Make __errno a strong alias of errno.
5169         * sysdeps/unix/start.c: Likewise.  De-ANSI-fy.
5170         * sysdeps/unix/sparc/start.c: Likewise.
5171         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
5172         * sysdeps/unix/sysv/irix4/start.c: Likewise.
5173         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
5174         * sysdeps/unix/sysv/linux/i386/sysdep.S: Likewise.
5175         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
5177 Mon Sep 23 17:54:57 1996  Ulrich Drepper  <drepper@cygnus.com>
5179         * catgets/gencat.c (main): Put package name in --version message
5180         in parantheses.  Reported by Jim Meyering.
5181         * db/makedb.c: Likewise.
5182         * locale/programs/locale.c: Likewise.
5183         * locale/programs/localedef.c: Likewise.
5185         * sysdeps/i386/fpu/__math.h (tan): Make sure gcc knows we use
5186         two registers.  Patch by John Bowman.
5188 Sat Sep 21 15:08:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5190         * sysdeps/mach/libc-lock.h: Fix comment.
5191         * sysdeps/stubs/libc-lock.h: Likewise.
5193 Sat Sep 21 13:50:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5195         * libio/genops.c (_IO_init) [_IO_MTSAFE_IO]: Dereference pointer
5196         to lock when passing it to __libc_lock_init macro.
5197         (_IO_default_finish) [_IO_MTSAFE_IO]: Dereference pointer to lock
5198         when passing it to __libc_lock_fini macro.
5200 Sat Sep 21 14:35:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5202         * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYSCALL_ERROR_HANDLER)
5203         [_LIBC_REENTRANT]: Add missing semicolon.
5205         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Move inclusion of
5206         sysdep.h to the top outside of #ifndef PIC.  Don't include errnos.h.
5207         Use the ENTRY macro.
5209 Sat Sep 21 14:33:41 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5211         * libio/Makefile: Make `all' the default target.
5212         * po/Makefile: Likewise.
5214 Mon Sep 23 15:49:47 1996  Ulrich Drepper  <drepper@cygnus.com>
5216         * stdlib/test-canon.c: Correct patch from Thu Sep 12 23:01:16 1996.
5217         I applied it incorrectly.
5218         * sysdeps/m68k/fpu/s_scalbn.c: Likewise.
5219         * sysdeps/m68k/fpu/s_scalbnf.c: Likewise.
5220         * sysdeps/m68k/fpu/s_scalbnl.c: Likewise.
5222 Mon Sep 23 03:00:10 1996  Ulrich Drepper  <drepper@cygnus.com>
5224         * shadow/sgetspent_r.c (LINE_PARSER): Accept empty 9th field.
5225         Patch by NIIBE Yutaka <gniibe@mri.co.jp>.
5227         * shadow/sgetspent_r.c (LINE_PARSER): Don't accept any chars after
5228         9th field.
5230         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
5231         (sysdep_headers): Add sys/debugreg.h, sys/kd.h, sys/soundcard.h,
5232         and sys/vt.h.
5233         * sysdeps/unix/sysv/linux/sys/debugreg.h: New file.
5234         * sysdeps/unix/sysv/linux/sys/kd.h: New file.
5235         * sysdeps/unix/sysv/linux/sys/soundcard.h: New file.
5236         * sysdeps/unix/sysv/linux/sys/vt.h: New file.
5237         Reported by NIIBE Yutaka <gniibe@mri.co.jp>.
5239 Thu Sep 26 13:44:29 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5241         * hurd/Makefile (installed-sunrpc-headers): New variable.
5242         (sunrpc-headers): New variable.
5243         (install-headers-nosubir): Depend on $(installed-sunrpc-headers),
5244         not just <rpc/netdb.h>.
5245         ($(installed-sunrpc-headers)): Provide rule for all of these.
5247 Mon Sep 23 15:31:04 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5249         * hurd/Makefile ($(includedir)/rpc/netdb.h): There is no make
5250         variable `top_srcdir' in libc; use $(..) instead.
5252         * sysdeps/mach/hurd/Makefile (rtld-installed-name): Delete special
5253         definition.  It was a *Mistake*.  (With a capital M.)
5255         * sysdeps/mach/getsysstats.c (__get_nprocs): Renamed from
5256         __get_nproc.
5257         (__get_nprocs_conf): Renamed from __get_nproc_conf.
5259 Sun Sep 22 15:18:41 1996  Ulrich Drepper  <drepper@cygnus.com>
5261         * sysdeps/unix/sysv/linux/init-first.c: Define dummy function
5262         `_dl_start' so that linking fails if this file should ever be used
5263         in ld.so.
5265         * catgets/gencat.c (main): Change --version message according to
5266         RMS' last standard revision.
5267         * db/makedb.c: Likewise.
5268         * locale/programs/locale.c: Likewise.
5269         * locale/programs/localedef.c: Likewise.
5271 Sat Sep 21 23:42:39 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5273         * sysdeps/mach/getsysstats.c: Include <sys/sysinfo.h>.
5274         (__get_nproc_conf): New function.
5276 Sun Sep 22 03:40:52 1996  Ulrich Drepper  <drepper@cygnus.com>
5278         * resolv/resolv.h: Update to bind-4.9.5-T4B.
5279         * resolv/base64.c: Likewise.
5280         * resolv/res_debug.c: Likewise.
5281         * resolv/res_query.c: Likewise.
5282         * resolv/gethnamaddr.c: Likewise.
5283         * nss/nss_dns/dns-host.c: Likewise.
5284         * resolv/res_comp.c: Likewise.
5285         * resolv/res_send.c: Likewise.
5286         * resolv/arpa/nameser.h: Likewise.  Attention: MAXDNAME is much
5287         higher now.
5289         * resolv/Banner: New file.
5290         * resolv/Makefile (distribute): Add Banner.
5292 Sat Sep 21 19:15:24 1996  Ulrich Drepper  <drepper@cygnus.com>
5294         * sysdeps/stub/getsysstats.c: New file.
5295         * sysdeps/unix/sysv/linux/getsysstats.c: New file.
5297         * misc/Makefile (headers): Add sys/sysinfo.h.
5298         (routines): Add getsysstats.
5299         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
5300         (sysdep_headers): Remove sys/sysinfo.h.
5301         * sysdeps/generic/sys/sysinfo.h: New file.
5302         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Add prototype for get_nprocs,
5303         get_phys_pages, and get_avphys_pages.
5305         * misc/Makefile (routines): Add mntent_r.
5306         * misc/mntent_r.c: New file.
5307         * misc/mntent.c: Remove all functions but getmntent and use
5308         __getmntent_r.
5309         * misc/mntent.h: Add prototype for __getmntent_r.
5310         * misc/fstab.c: Use __getmntent_r function instead of getmntent.
5311         This will not clobber the state in getmntent.
5313         * sysdeps/generic/confname.h: Add _SC_PROCESSORS_CONF,
5314         _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES, _SC_AVPHYS_PAGES,
5315         _SC_ATEXIT_MAX, and _SC_PASS_MAX.
5316         * sysdeps/stub/sysconf.c: Add handling _SC_PROCESSORS_CONF and
5317         _SC_NPROCESSORS_ONLN by calling __get_nprocs, _SC_PHYS_PAGES by
5318         calling __get_phys_pages, _SY_AVPHYS_PAGES by calling
5319         __get_avphys_pages, _SC_ATEXIT_MAX and _SC_PASS_MAX.
5320         * sysdeps/posix/sysconf.c: Likewise.
5321         * posix/getconf.c (vars): Add _NPROCESSORS_CONF, _NPROCESSORS_ONLN,
5322         _PHYS_PAGES, _AVPHYS_PAGES, ATEXIT_MAX, and PASS_MAX entries.
5324 Sat Sep 21 05:20:36 1996  Ulrich Drepper  <drepper@cygnus.com>
5326         * version.h (VERSION): Bump to 1.95.
5328         * Make-dist (+tsrcs): Don't filter out files in subdirs which
5329         match files in the sysdeps hierachy (welcome back,
5330         sys/syscall.h!).
5332         * resolv/Makefile (libresolv-routines): Remove getnetnamad.
5334 Sat Sep 21 03:00:19 1996  Ulrich Drepper  <drepper@cygnus.com>
5336         * locale/loadlocale.c (_nl_free_locale): Remove function.
5337         * locale/localeinfo.h: Remove prototype for _nl_free_locale.
5338         * locale/setlocale.c (setlocale): Don't free locale data of
5339         categories which succeeded to load after a wrong or missing data
5340         file was observed.
5342         * locale/setlocale (setlocale): Initialize NEWNAME correctly so
5343         that it works even when the locale data is not used.
5345         * stdlib/random_r.c: Fix typo in comment.
5346         * stdlib/drand48-iter.c: Likewise.
5347         * stdlib/drand48.c: Likewise.
5348         * stdlib/erand48.c: Likewise.
5349         * stdlib/jrand48.c: Likewise.
5350         * stdlib/lcong48.c: Likewise.
5351         * stdlib/lrand48.c: Likewise.
5352         * stdlib/mrand48.c: Likewise.
5353         * stdlib/nrand48.c: Likewise.
5354         * stdlib/random.c: Likewise.
5355         * stdlib/seed48.c: Likewise.
5356         * stdlib/srand48.c: Likewise.
5357         * misc/search.h: Likewise.
5358         * misc/hsearch.c: Likewise.
5359         * misc/hsearch_r.c: Likewise.
5361 Sat Sep 21 14:59:22 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5363         * sysdeps/mach/getsysstats.c: New file.
5365         * shlib-versions (*-*-gnu*): Increment libc to 0.2 for upcoming
5366         binary distribution.
5368         * sysdeps/mach/hurd/Makefile (rtld-installed-name): Provide
5369         definition to override dangerous one in Makeconfig.
5371         * hurd/Makefile (install-headers-nosubdir): Install <rpc/netdb.h>.
5372         ($(includedir)/rpc/netdb.h): New rule.
5373         [ This is XXX until sunrpc can be built; <rpc/netdb.h> is
5374         essential. ]
5376 Fri Sep 20 16:06:06 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5378         * sysdeps/mach/hurd/i386/init-first.c (_dl_start): Add definition,
5379         to guarantee link errors if this is included in ld.so.
5381 Thu Sep 19 23:36:19 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5383         * hurd/hurdinit.c (__libc_argv): Provide common decl.
5384         (_hurd_setproc): Don't declare __libc_argv here.
5386 Tue Sep 17 10:51:58 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5388         * malloc/memalign.c (memalign): Only acquire __libc_malloc_lock
5389         for actual modifications to global state.  
5391 Fri Sep 13 01:21:36 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5393         * sysdeps/mach/Makefile (includes): Add -I$(common-objpfx)mach/.
5394         * sysdeps/mach/hurd/Makefile (includes): Add
5395         -I$(common-objpfx)hurd/.  Reported by Marcus Daniels.
5397         * sysdeps/generic/schedbits.h (struct sched_param): Renamed from
5398         struct sched_params.
5399         * sysdeps/stub/sched_setp.c (__sched_setparam): struct
5400         sched_params -> struct sched_param.
5401         * sysdeps/stub/sched_getp.c (__sched_getparam): Likewise.
5402         * sysdeps/stub/sched_sets.c (__sched_setscheduler): Likewise.
5404 Thu Sep 12 23:58:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5406         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): Fix
5407         syntax error.
5408         
5409         * stdio-common/Makefile: Put lockfile in routines
5410         unconditionally. 
5411                 
5412         * stdio-common/vfprintf.c (__flockfile, __funlockfile): Declare
5413         this always, not just if _LIBC_REENTRANT.
5414         (__funlockfile): Don't use weak_extern for this one;
5415         __libc_cleanup_region_end might be defined and the use of
5416         __funlockfile can't be protected the way the use of __flockfile
5417         can be. 
5418         
5419 Thu Sep 19 21:50:55 1996  Ulrich Drepper  <drepper@cygnus.com>
5421         * sysdeps/posix/gettimeofday.c (__gettimeofday): Use localtime_r
5422         instead of localtime.
5423         Reported by Matthias Urlichs.
5425         * shlib-versions: Remove version number for libcrypt.
5426         * features.h: Define __USE_REENTRANT if _REENTRANT or _THREAD_SAFE.
5427         * libc-symbols.h: Define _REENTRANT while compiling libc.
5429         * sysdeps/unix/sysv/linux/i386/sysdep.S (__errno_location):
5430         Define even if !_LIBC_REENTRANT.
5431         * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location):
5432         Likewise.
5434         * sysdeps/posix/cuserid.h: Remove prototype for geteuid().
5435         De-ANSI-fy.
5437         * MakeTAGS ($P/libc.pot): Generate correctly formed header.
5438         * po/header.pot: Correct title line.
5439         * po/nl.po: Update.
5441 Thu Sep 19 18:59:55 1996  Ulrich Drepper  <drepper@cygnus.com>
5443         * Makeconfig (soversions.mk): Prefer shared lib version numbers
5444         is add ons over version in libc itself.
5446         * sysdeps/unix/sysv/linux/i386/sysdep.S: Include <sysdep.h>.
5447         * sysdeps/unix/sysv/linux/i386/sysdep.h: Prevent multiple
5448         inclusion.
5450         * libio/iofgets.c: Use __flockfile and __funlockfile instead of
5451         _IO_flockfile and _IO_funlockfile resp.
5453         * locale/categories.def: Partly support for correct `era' handling
5454         in LC_TIME category.
5455         * locale/langinfo.h: Likewise.
5456         * locale/programs/ld-time.c: Likewise.
5457         * locale/localeinfo.h: Change comment a bit.
5459         * malloc/memalign.c: Don't use goto, not necessary anymore.
5461 1996-09-18  Paul Eggert  <eggert@twinsun.com>
5463         * time/mktime.c (ydhms_tm_diff):  Work correctly even if year
5464         is negative, or if time_t is unsigned.
5465         * time/strftime.c (tm_diff): Work correctly even if tm_year
5466         is near INT_MIN.
5468 Tue Sep 17 16:14:34 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5470         * sysdeps/m68k/fpu/__math.h (__inline_mathop): Changed to generate
5471         all three versions of the math function.
5472         (__inline_mathopf, __inline_mathopl): Removed.
5473         (__inline_functions): New temporary definition containing all
5474         non-trivial inline functions.
5476 Wed Sep 18 00:25:41 1996  Ulrich Drepper  <drepper@cygnus.com>
5478         * time/strftime.c (strftime): The T_FMT_AMPM string may be empty.
5480 Tue Sep 17 20:27:18 1996  Ulrich Drepper  <drepper@cygnus.com>
5482         * math/Makefile (extra-libs-others): Use $(extra-libs) instead
5483         of $(extra-libc).
5485 Tue Sep 17 17:09:44 1996  Ulrich Drepper  <drepper@cygnus.com>
5487         * sysdeps/stub/fpu_control.h: Correct end of file comment.
5489 Tue Sep 17 05:39:18 1996  Ulrich Drepper  <drepper@cygnus.com>
5491         * stdio-common/bug3.c, stdio-common/bug4.c, stdio-common/bug5.c,
5492         stdio-common/test-popen.c: Remove temporary files after test.
5493         * stdio-common/bug5.c: Use `system' instead of `execlp'.
5494         Patches by Andreas Jaeger.
5496         * stdio-common/bug5.c: Create string for `system' argument to
5497         make sure the input and output file names are really correct.
5499 Sun Sep 15 12:46:44 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5501         * configure.in: If $os contains a hyphen add the part before the
5502         hyphen to $ostry.
5504 Sun Sep 15 18:14:02 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5506         * sysdeps/m68k/fpu/__math.h (__ieee754_pow, __ieee754_powf,
5507         __ieee754_powl): Rename local variable i to __i.
5508         (__ieee754_atan2, __ieee754_atan2f, __ieee754_atan2l): New inline
5509         functions.
5510         * sysdeps/m68k/fpu/e_atan2.c, sysdeps/m68k/fpu/e_atan2f.c,
5511         sysdeps/m68k/fpu/e_atan2l.c: New files.
5513 1996-09-15  Paul Eggert  <eggert@twinsun.com>
5515         * manual/time.texi: Change `range X to Y' to `range X through
5516         Y', to avoid ambiguity in English.
5518         (strftime): Numbers that do not have a range indicated are not padded.
5519         Describe E and O modifiers.
5520         %g, %G, %u: New formats.
5521         %C, %y, %Y: Describe behavior on negative years.
5522         %e: Fix typo (was labeled %d).
5523         %l, %V: Fix typo in range.
5524         %M, %S, %U, %w, %W: Give ranges.
5525         %p: Clarify how noon and midnight are handled for AM and PM.
5526         %s: Clarify leap second handling.
5527         %r: Now locale-defined.
5528         %C, %D, %e, %h, %n, %r, %t, %T: Say that they are POSIX.2 extensions.
5529         %z: Say that it is a GNU extension.
5530         %Z: Wording fix.
5532         * time/strftime.c: (strftime):
5533                 %V: Fix mishandling of week numbers near year boundaries.
5534                 %g, %G: New formats (suggested by Arthur David Olson).
5535                 %U, %W: Use inline expression instead of `week' function.
5536                 %C, %y: Handle negative years portably.
5537                 %C, %Y: Use width 1, since values can be arbitrarily wide.
5538                 %r: Use T_FMT_AMPM format if _NL_CURRENT is defined.
5539                 %u: New Posix.2 format.
5540                 %w: Width is 1, not 2.
5541         (iso_week_days): New function, for %V, %G, %g.
5542         (week): Remove; it didn't handle %V correctly.
5543         (__isleap): New macro.
5544         (mbsinit): Use arg, to pacify GCC -Wall.
5546 1996-09-13  Paul Eggert  <eggert@twinsun.com>
5548         * time/strftime.c (strftime):
5549         If using the GNU C library, do not bother to check for
5550         multibyte encodings, since they're safe in formats.  Otherwise:
5551           - Check for multibyte encodings when encountering any character that
5552           is not in the basic execution character set of the C Standard.
5553           - Use mbrlen (if available) instead of mblen, to avoid modifying
5554           mblen's internal state.
5555           - Do not assume that '%' cannot appear as the first character of a
5556           multibyte character sequence, since this is possible when not in the
5557           initial shift state.
5558         (HAVE_MBRLEN, MULTIBYTE_IS_FORMAT_SAFE): Define if _LIBC is defined.
5559         (DO_MULTIBYTE): New macro.
5560         (<ctype.h>): Do not include.
5561         (<wchar.h>): Include if HAVE_MBRLEN.
5562         (mbstate_t, mbrlen, mbsinit): Define if ! HAVE_MBRLEN.
5563         (mbstate_zero): New constant.
5565 1996-09-12  Paul Eggert  <eggert@twinsun.com>
5567         * time/strftime.c (strftime):
5568         Use an empty zone if it can't be determined; POSIX.2 requires this.
5569         Use plain `int' for pad and modifier (which now contain char value).
5570         Use plain `int' for number_value, to print negative values correctly.
5571         Use plain `int' for digits; there was no need to make it unsigned.
5572         Initialize subfmt consistently.
5573         Remove incorrect code for %EC and %Ey; they aren't implemented yet.
5574         For %O, if there is no alternate digit, output Ascii instead of "".
5575         Output the `%' of an unknown format; this is most likely the right
5576         thing to do if a multibyte string has been misparsed.
5578 Thu Sep 12 23:23:13 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5580         * stdio-common/scanf7.c (main): Remove extra conversion from
5581         printf format string.
5583 Thu Sep 12 23:01:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5585         * stdlib/test-canon.c (tests): Rename structure member from errno
5586         to error, all uses changed.
5588 Thu Sep 12 20:08:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5590         * sysdeps/m68k/fpu/__math.h (__ldexp, __ldexpf, __ldexpl):
5591         Removed.
5592         * sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
5593         sysdeps/m68k/fpu/s_ldexpl.c: Removed, use generic implementation
5594         instead.
5595         * sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
5596         sysdeps/m68k/fpu/s_scalbnl.c: Replaced with old contents of
5597         s_ldexp.c, s_ldexpf.c and s_ldexpl.c, resp., suitably adpted.
5599         * sysdeps/m68k/fpu/__math.h (__frexp, __frexpf, __frexpl):
5600         Return value must be in [0.5, 1), not [1, 2).  Reported by Chris
5601         Lawrence.
5602         (__ilogb, __ilogbf, __ilogbl): Check for argument being zero.
5603         (__scalbn, __scalbnf, __scalbnl): Use second argument directly.
5605 Thu Sep 12 19:59:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5607         * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
5608         * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
5610 Thu Sep 12 19:59:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5612         * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
5613         * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
5615 Thu Sep 12 19:56:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5617         * inet/herrno.c (__h_errno_location): Fix return type.
5619 Thu Sep 19 23:36:19 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5621         * hurd/hurdinit.c (__libc_argv): Provide common decl.
5622         (_hurd_setproc): Don't declare __libc_argv here.
5624 Fri Sep 13 04:33:08 1996  Ulrich Drepper  <drepper@cygnus.com>
5626         * sched.h: New file.  Helper to access posix/sched.h.
5627         * posix/sched.h: Change `sched_params' to `sched_param' to follow
5628         POSIX.4.
5630 Thu Sep 12 20:12:40 1996  Ulrich Drepper  <drepper@cygnus.com>
5632         * db/makedb.c (usage): Print bug report address separately to
5633         ease translators task.
5634         * catgets/gencat.c (usage): Likewise.
5635         * locale/locale.c (usage): Likewise.
5636         * locale/localedef.c (usage): Likewise.
5638 1996-09-12  Paul Eggert  <eggert@twinsun.com>
5640         * time/strftime.c (my_localtime_r): Define if ! HAVE_LOCALTIME_R,
5641         and #define localtime_r to it.  If _LIBC, use __localtime_r instead.
5642         (my_gmtime_r): Similar, except it's not needed if ! HAVE_TM_GMTOFF.
5644 Thu Sep 12 14:03:29 1996  Ulrich Drepper  <drepper@cygnus.com>
5646         * crypt/Makefile: Include Makeconfig and add crypt object dir to
5647         rpath-link so that running the check finds the new library.
5648         * crypt/cert.c: provide correct prototypes to prevent warnings.
5649         Reported by Andreas Jaeger.
5651         * sysdeps/mach/hurd/Makefile (rpath-link): Don't use += because
5652         old and new value must be glued using `:'.
5653         Reported by Marcus Daniels.
5655 Thu Sep 12 12:33:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5657         * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
5658         accidentally added on.
5660         * sysdeps/stub/intr-msg.h: New file.
5662         * stdio-common/vfprintf.c: Include <libc-lock.h>.
5663         * stdio-common/vfscanf.c: Include <libc-lock.h>.
5665         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
5666         macro.
5667         (__libc_cleanup_region_end): New macro.
5669 Thu Sep 12 12:33:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5671         * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
5672         accidentally added on.
5674         * sysdeps/stub/intr-msg.h: New file.
5676         * stdio-common/vfprintf.c: Include <libc-lock.h>.
5677         * stdio-common/vfscanf.c: Include <libc-lock.h>.
5679         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
5680         macro.
5681         (__libc_cleanup_region_end): New macro.
5683 Thu Sep 12 03:35:27 1996  Ulrich Drepper  <drepper@cygnus.com>
5685         * sysdeps/unix/sysv/linux/i386/Dist: Remove init-first.h.
5686         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
5687         * sysdeps/unix/sysv/linux/Dist: Add init-first.h.
5689 1996-09-11  Paul Eggert  <eggert@twinsun.com>
5691         * strftime.c (strftime):
5692         Handle E and O modifiers, required for POSIX.2 and XPG4.
5693         Don't use sprintf to format numbers; this way, we can handle time_t
5694         correctly regardless of whether it's signed.
5695         Don't dump core if format ends in %.
5696         In default %c format, use %e instead of %d, for POSIX.2 compatibility.
5697         For %z:
5698                 Use tm_gmtoff if available.
5699                 Output nothing if tm_isdst is negative.
5700                 Output correct value even if arg is 1969-12-31 23:59:59 UTC.
5701                 Don't assume that UTC offset is less than 24 hours;
5702                 Posix requires support for 24 hours, and there's no point
5703                 limiting it at all.
5704         (HAVE_TM_GMTOFF, TYPE_SIGNED, INT_STRLEN_BOUND): New macros.
5705         (CHAR_BIT): Define if <limits.h> doesn't.
5706         (tm_diff): New function.
5707         (fmt, <stdio.h>): Remove; no longer used.
5709 Thu Sep 12 02:21:44 1996  Ulrich Drepper  <drepper@cygnus.com>
5711         * db/Makefile: Add extra-libs-others variable so that shared
5712         library is built in `others' pass.
5713         * elf/Makefile: Likewise.
5714         * math/Makefile: Likewise.
5715         * resolv/Makefile: Likewise.
5717         * Makefile (generated): Add version.info.h.
5719         * time/checktab.awk: New file.  From ADO 96k.
5720         * time/iso3166.tab: Likewise.
5721         * time/tzselect.ksh: Likewise.
5722         * time/zone.tab: Likewise.
5724         * stdio-common/vfprintf.c: Correct cleanup registration.  We
5725         cannot use a macro
5727 1996-09-11  Paul Eggert  <eggert@twinsun.com>
5729         * time/time.h (tm_gmtoff, tm_zone): Prefix with `__' unless
5730         __USE_BSD; this is required for ANSI C compatibility.
5731         * manual/time.texi: Replace GMT by UTC, daylight savings by
5732         daylight saving, timezone by time zone.
5733         Rewrite description of %V to match ISO 8601.
5734         Fix TZ Posix string example for US Eastern time.
5735         Explain tzname[1] when DST isn't used.
5736         Explain tzname when multiple abbreviations used (e.g. EST/EWT/EDT).
5737         Explain that timezone's sign is opposite from tm_gmtoff, and that
5738         timezone lacks DST adjustment whereas tm_gmtoff has it.
5739         Deprecate tzname and timezone.
5741 Tue Sep 10 14:46:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5743         Implement Roland McGrath's idea of how to put an .interp into
5744         shared libraries.
5745         * interp.c: New file.
5746         * Makerules (interp-obj): New object, linked into every shared
5747         library.
5748         (common-generated): Add interp.so.
5749         (CFLAGS-interp.c): Pass name of interpreter.
5751 Tue Sep 10 21:09:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5753         * db/Makefile: Fix typo.
5755 Tue Sep 10 19:29:53 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5757         * nss/db-Makefile ($(VAR_DB)/passwd.db): Look for multiple
5758         occurences of the same uid, and only generate a mapping for the
5759         first one.
5761 Tue Sep 10 03:14:59 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5763         * sysdeps/unix/sysv/linux/system.c: New file, to override
5764         sysdeps/unix/system.c.
5766 Tue Sep 10 15:05:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5768         * Makefile (before-compile): Add version-info.h, needed to build
5769         version.d.
5771 Tue Sep 10 14:14:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5773         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Remove check for
5774         EWOULDBLOCK, never true on Linux.
5775         (__errno_location): New function.
5776         [_LIBC_REENTRANT]: Set errno using __errno_location function.
5777         * sysdeps/unix/sysv/linux/m68k/sysdep.h [PIC]: Add second
5778         syscall_error handler for reentrant libc.
5780 Tue Sep 10 13:27:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5782         * elf/Makefile (extra-objs): Add eval.so to get dependencies.
5784 Wed Sep 11 04:40:57 1996  Ulrich Drepper  <drepper@cygnus.com>
5786         * time/tzset.c (__tzname_cur_max): Use type `size_t' to avoid
5787         warning.
5788         * time/tzfile.c (compute_tzname_max): Likewise.
5790 Wed Sep 11 02:57:31 1996  Ulrich Drepper  <drepper@cygnus.com>
5792         * configure.in: Quote $add_ons argument in loop to generated
5793         prefices.
5795 Tue Sep 10 20:43:45 1996  Ulrich Drepper  <drepper@cygnus.com>
5797         * db/makedb.c: Include <locale.h>.  Reported by Fila Kolodny.
5799 Tue Sep 10 14:42:39 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5801         * elf/dl-cache.c: Rename to ...
5802         * sysdeps/generic/dl-cache.c:  ... here.
5803         * sysdeps/mach/hurd/dl-cache.c: New file.
5804         
5805         * mach/Makefile (distribute): Add `errsystems.awk'.
5806         * hurd/Makefile (distribute): Add `Notes' and `intr-msg.h'.
5807         * hurd/hurdintr.awk: Delete file.  (Not used in ages.)
5808         * hurd/intr-rpc.awk: Likewise.
5809         * hurd/invoke-trans.c: Likewise.
5810         * sysdeps/mach/hurd/i386/longjmp-ctx.c: Likewise.
5811         * sysdeps/mach/hurd/alpha/longjmp-ctx.c: Likewise.
5812         * sysdeps/mach/hurd/mips/longjmp-ctx.c: Likewise.
5813         * sysdeps/mach/hurd/i386/init-fault.c: Likewise.
5814         * sysdeps/mach/hurd/mips/init-fault.c: Likewise.
5815         * sysdeps/stub/init-fault.c: Likewise.
5816         * sysdeps/stub/longjmp-ctx.c: Likewise.
5817         
5818 Tue Sep 10 13:49:08 1996  Ulrich Drepper  <drepper@cygnus.com>
5820         * inet/herrno.c: Initialize `h_errno' so that we can provide
5821         alias.
5823         * Makefile (version-info.h): Fix typo in shell script.
5825         * sysdeps/i386/i586/strlen.S: Optimize startup code a bit.
5826         * sysdeps/i386/i586/strchr.S: Likewise.
5828 Mon Sep  9 20:31:27 1996  Ulrich Drepper  <drepper@cygnus.com>
5830         * version.c (banner): Report to bug-glibc@prep not @gnu.
5831         Reported by Andreas Jaeger.
5833         * libio/stdio.h [!__USE_REENTRANT]: Don't define getc as
5834         _IO_getc_unlocked.
5835         [__USE_REENTRANT]: Don't define
5837 Mon Sep  9 15:59:32 1996  Ulrich Drepper  <drepper@cygnus.com>
5839         * sysdeps/i386/strrchr.c: Fix bug where NUL byte is not recognized
5840         when it is the third byte in the string.  Reported by
5841         NIIBE Yutaka.
5842         * string/tester.c: Add tests for above bug to strlen, strchr, and
5843         strrchr tests.
5845 Fri Sep  6 21:23:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5847         * sysdeps/m68k/fpu/e_acos.c: Deansideclized.  Include
5848         "math_private.h" to get prototype.
5849         * sysdeps/m68k/fpu/e_fmod.c: Likewise.
5850         * sysdeps/m68k/fpu/k_cos.c: Likewise.
5851         * sysdeps/m68k/fpu/k_sin.c: Likewise.
5852         * sysdeps/m68k/fpu/k_tan.c: Likewise.
5854         * sysdeps/m68k/fpu/k_sin.c: Remove uneeded indirection of
5855         __m81_u.
5856         * sysdeps/m68k/fpu/k_tan.c: Likewise.
5858 Sun Sep  1 18:01:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5860         * sysdeps/m68k/fpu/__math.h: Check for __NO_M81_MATH_INLINES
5861         instead of __NO_MATH_INLINES.
5862         (__M81_MATH_INLINES): Renamed from __MATH_INLINES.
5863         * sysdeps/m68k/fpu/e_acos.c: Define __NO_M81_MATH_INLINES.
5864         * sysdeps/m68k/fpu/e_fmod.c: Likewise.
5865         * sysdeps/m68k/fpu/k_cos.c: Likewise.
5866         * sysdeps/m68k/fpu/k_sin.c: Likewise.
5867         * sysdeps/m68k/fpu/k_tan.c: Likewise.
5868         * sysdeps/m68k/fpu/s_atan.c: Likewise.
5869         * sysdeps/m68k/fpu/s_frexp.c: Likewise.
5870         * sysdeps/m68k/fpu/s_ilogb.c: Likewise.
5871         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
5872         * sysdeps/m68k/fpu/s_ldexp.c: Likewise.
5873         * sysdeps/m68k/fpu/s_modf.c: Likewise.
5874         * sysdeps/m68k/fpu/k_cos.c: Use inline version of __cos.
5875         * sysdeps/m68k/fpu/k_sin.c: Likewise.
5876         * sysdeps/m68k/fpu/k_tan.c: Likewise.
5878 Mon Sep  9 12:55:14 1996  Ulrich Drepper  <drepper@cygnus.com>
5880         * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): Check for
5881         available character before converting number and return with
5882         error if none is available.
5884 Fri Sep  6 22:09:08 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5886         * sysdeps/unix/sysv/linux/init-first.h: New file, generic
5887         implementation for architectures where parameters are passed on
5888         stack.
5889         * sysdeps/unix/sysv/linux/m68k/init-first.h: Removed.
5890         * sysdeps/unix/sysv/linux/i386/init-first.h: Removed.
5892 Fri Sep  6 22:05:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5894         * configure.in: Remove unneeded sysnames frobbing.
5896 Mon Sep  9 05:29:09 1996  Ulrich Drepper  <drepper@cygnus.com>
5898         * time/zic.c: Update from ADO 96l.
5899         * time/africa: Update from ADO 96k.
5900         * time/antarctica: Likewise.
5901         * time/asia: Likewise.
5902         * time/australia: Likewise.
5903         * time/europe: Likewise.
5904         * time/northamerica: Likewise.
5905         * time/southamerica: Likewise.
5907 Mon Sep  9 05:03:47 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
5909         * sysdeps/unix/sysv/linux/i386/init-first.h: Work around buggy
5910         gcc <= 2.7.2.1 which optimizes away address operations on weak
5911         objects.
5913         * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): New macro.
5914         Like INT_FIELD but also accept non-existing field.
5915         * shadow/sgetspent_r.c (LINE_PARSER): Use INT_FIELD_MAYBE_NULL
5916         for last four fields.
5917         * shadow/putspent.c (putspent): Print `:' after numeric value.
5919 Mon Sep  9 02:42:48 1996  Richard Henderson  <rth@tamu.edu>
5921         * libio/stdio.h (BUFSIZ): Define using _IO_BUFSIZ.
5923 Sun Sep  8 16:43:56 1996  Ulrich Drepper  <drepper@cygnus.com>
5925         * Make-dist: Filter out $(add-ons) from $(subdirs).
5926         Don't distribute TAGS files.
5927         ($(tardir).tar): Remove dist.tar when all is done.
5928         * manual/Makefile (distribute): Add libc.info*.
5929         * libio/Makefile (distribute): Add Banner.
5930         * inet/Makefile (headers): Add netinet/tcp.h.
5932         * resolv/Makefile (libresolv-routines): Add getnetnamadr.
5934         * crypt-README: Removed.
5935         * gnu-stabs.h: Removed.
5937         * sysdeps/alpha/copysign.S: Renamed to...
5938         * sysdeps/alpha/s_copysign.S: ...this.
5939         * sysdeps/alpha/fabs.S: Renamed to...
5940         * sysdeps/alpha/s_fabs.S: ...this.
5942         * sysdeps/m68k/isinfl.c: Renamed to...
5943         * sysdeps/m68k/s_isinfl.c: ...this.
5944         * sysdeps/m68k/isnanl.c: Renamed to...
5945         * sysdeps/m68k/s_isnanl.c: ...this.
5947         * sysdeps/sparc/sqrt.c: Renamed to...
5948         * sysdeps/sparc/e_sqrt.c: ...this.  Function name now is
5949         __ieee754_sqrt.
5951         * sysdeps/generic/get_str.c: Removed.
5953         * sysdeps/ieee754/cbrt.c: Removed.
5954         * sysdeps/ieee754/drem.c: Removed.
5955         * sysdeps/ieee754/logb.c: Removed.
5956         * sysdeps/ieee754/sqrt.c: Removed.
5958         * sysdeps/stub/cbrt.c: Removed.
5959         * sysdeps/stub/cos.c: Removed.
5960         * sysdeps/stub/drem.c: Removed.
5961         * sysdeps/stub/isinf.c: Removed.
5962         * sysdeps/stub/isinfl.c: Removed.
5963         * sysdeps/stub/isnanl.c: Removed.
5964         * sysdeps/stub/logb.c: Removed.
5965         * sysdeps/stub/sin.c: Removed.
5966         * sysdeps/stub/sqrt.c: Removed.
5968         * sysdeps/tahoe/log10.c: Removed.
5970         * sysdeps/vax/index.s: Removed.
5971         * sysdeps/vax/rindex.s: Removed.
5972         * sysdeps/vax/bcmp.s: Removed.
5973         * sysdeps/vax/log10.c: Removed.
5974         * sysdeps/vax/infnan.c: Removed.
5975         * sysdeps/vax/Dist: Add fl.h.
5977         * sysdeps/unix/sysv/linux/alpha/Dist: Add llseek.S.
5979         * inet/rcmd.c (rcmd): Make messages more uniform.
5981 Sun Sep  8 14:15:42 1996  Ulrich Drepper  <drepper@cygnus.com>
5983         * po/de.po: Update.
5984         * po/es.po: Update.
5985         * po/ko.po: Update.
5986         * po/pl.po: New file.
5987         * po/nl.po: New file.
5989 Sat Sep  7 18:41:17 1996  Richard Henderson  <rth@tamu.edu>
5991         * Makeconfig (+link): Filter out start, pre & postinit from the
5992         generic depenancies as well.
5993         * Rules: Add start, pre & postinit to the dependancies of
5994         $(others) and $(tests).
5996         * configure.in: elf_dirs missing "sysdeps" component.
5998 Sun Sep  8 02:36:02 1996  Ulrich Drepper  <drepper@cygnus.com>
6000         * locale/SYS_libc.c (_libc_intl_domainname): Change value to "libc".
6001         This is consistent with all other GNU packages.  We shouldn't
6002         take care for a possible clash.  Nobody will name the domain
6003         of a package libc if it is not the libc itself.
6004         * MakeTAGS ($P/SYS_libc.pot): Rename to $P/libc.pot.
6005         * po/Makefile (domainname): Change to libc.
6006         (distribute): Now ship libc.pot.
6007         * catgets/gencat.c (usage): Use `PACKAGE' for package name in
6008         version information banner.
6009         Change bug report address to bug-glibc@prep not @gnu.
6010         * db/makedb.c (PACKAGE): New macro.  Set to _libc_intl_domain.
6011         (main): Use `PACKAGE' for package name in version information
6012         banner.
6013         Change bug report address to bug-glibc@prep not @gnu.
6014         * locale/programs/locale.c (main): Use `PACKAGE' for package name
6015         in version information banner.
6016         Change bug report address to bug-glibc@prep not @gnu.
6017         * locale/programs/localedef.c (main): Likewise.
6019         * version.h (VERSION): Bump to 1.94.
6021         * locale/Makefile (distribute): Add locale.c and localedef.c.
6023 Sat Sep  7 14:00:33 1996  David Mosberger-Tang  <davidm@azstarnet.com>
6025         * catgets/catgets.c (catopen): Allocate sizeof(*result) bytes
6026         instead of sizeof(nl_catd) (which is just a pointer!).
6028 Sat Sep  7 19:39:19 1996  Ulrich Drepper  <drepper@cygnus.com>
6030         * Makefile ($(objpfx)version-info.h): Generate from Banner files.
6031         * version.c (banner): Add contents of version-info.h to string.
6033         * Makerules: If $($(subdir)-version) is available name versioned
6034         shared library according to this value instead of glibc's version.
6036         * libio/Banner: New file.
6038         * elf/eval.c (funcall): Write error message in case function is
6039         not found.
6040         (eval): Recognize `_' in names.
6042 Sat Sep  7 05:15:45 1996  Ulrich Drepper  <drepper@cygnus.com>
6044         * libio/iofdopen: Initialize _lock field only if _IO_MTSAFE_IO.
6045         * libio/iofopen: Likewise.
6046         * libio/iofopncook.c: Likewise.
6047         * libio/iopopen.c: Likewise.
6048         * libio/iovsprintf.c: Likewise.
6049         * libio/iovsscanf.c: Likewise.
6050         * libio/memstream.c: Likewise.
6051         * libio/vasprintf.c: Likewise.
6052         * libio/vdprintf.c: Likewise.
6053         * libio/vsnprintf.c: Likewise.
6055 Sat Sep  7 03:55:47 1996  Ulrich Drepper  <drepper@cygnus.com>
6057         * Makeconfig (soversions.mk): Also use shlib-versions files
6058         in add-on directories.
6059         * config.make.in (config-defines): Remove.  Not used anymore.
6060         (defines): New variable.  Initiliazed by @DEFINES@.
6061         * configure.in: Add AC_SUBST(DEFINES).
6063         * libio/Makefile (routines): When compiling reentrant libc add
6064         clearerr_u, feof_u, ferror_u, fputc_u, getc_u, getchar_u,
6065         iofflush_u, putc_u, putchar_u, ioflockfile.
6066         (CPPFLAGS): Add -D_IO_MTSAFE_IO for reentrant libc.
6068         * sysdeps/stub/libc-lock.h: Add stubs for __libc_cleanup_region_start
6069         and __libc_cleanup_region_end.
6071         * sysdeps/unix/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
6072         using __errno_location function.
6073         * sysdeps/unix/sysv/linux/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
6074         using __errno_location function.
6075         (__errno_location): New function.
6076         * sysdeps/unix/sysv/linux/i386/sysdep.h [PIC]: Add second
6077         syscall_error handler for reentrant libc.
6079         * sysdeps/unix/opendir.c: Remove unneeded `;'.
6081         * libio.h [_IO_MTSAFE_IO]: Include <pthread.h>.
6082         [!_IO_MTSAFE_IO]: Define _IO_flockfile and _IO_funlockfile
6083         as empty macros.
6084         * libioP.h: Include <libc-lock.h>.
6085         * libio/stdio.h: Add prototypes for *_locked and *_unlocked
6086         functions.
6088         * libio/clearerr.c: Use _IO_ protected versions of flockfile
6089         and funlockfile to be namespace clean.
6091         * libio/genops.c: Use __libc_lock_* macros for handling lock.
6093         * libio/iofdopen: Add initialization of _lock in _IO_FILE.
6094         * libio/iofopen: Likewise.
6095         * libio/iofopncook.c: Likewise.
6096         * libio/iopopen.c: Likewise.
6097         * libio/iovsprintf.c: Likewise.
6098         * libio/iovsscanf.c: Likewise.
6099         * libio/memstream.c: Likewise.
6100         * libio/vasprintf.c: Likewise.
6101         * libio/vdprintf.c: Likewise.
6102         * libio/vsnprintf.c: Likewise.
6104         * libio/fgetc.c: Use __libc_cleanup_region_* macros instead
6105         of flockfile etc.
6106         * libio/fputc.c: Likewise.
6107         * libio/freopen.c: Likewise.
6108         * libio/fseek.c: Likewise.
6109         * libio/getc.c: Likewise.
6110         * libio/getchar.c: Likewise.
6111         * libio/iofclose.c: Likewise.
6112         * libio/iofflush.c: Likewise.
6113         * libio/iofgetpos.c: Likewise.
6114         * libio/iofgets.c: Likewise.
6115         * libio/iofputs.c: Likewise.
6116         * libio/iofread.c: Likewise.
6117         * libio/iofsetpos.c: Likewise.
6118         * libio/ioftell.c: Likewise.
6119         * libio/iofwrite.c: Likewise.
6120         * libio/iogetdelim.c: Likewise.
6121         * libio/iogets.c: Likewise.
6122         * libio/ioputs.c: Likewise.
6123         * libio/iosetbuffer.c: Likewise.
6124         * libio/iosetvbuf.c: Likewise.
6125         * libio/ioungetc.c: Likewise.
6126         * libio/putc.c: Likewise.
6127         * libio/putchar.c: Likewise.
6128         * libio/rewind.c: Likewise.
6129         * stdio-common/vfprintf.c: Likewise.
6130         * stdio-common/vfscanf.c: Likewise.
6132         * libio/clearerr_u.c: Correct alias name.
6133         * libio/ferror_u.c: Likewise.
6134         * libio/fileno.c: Likewise.
6135         * libio/fputc_u.c: Likewise.
6136         * libio/getc.c: Likewise.
6137         * libio/getc_u.c: Likewise.
6138         * libio/getchar.c: Likewise.
6139         * libio/getchar_u.c: Likewise.
6140         * libio/putc.c: Likewise.
6141         * libio/putchar.c: Likewise.
6143         * libio/feof_u.c: Undefine macro with name of function before
6144         definition of function itself.
6146         * libio/ioflockfile.c: New file.  Implementation of flockfile and
6147         funlockfile.
6149         * libio/putchar_u.c: Fix typo.  Use stdout instead of fp.
6151         * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
6152         _malloc_loc.
6154         * malloc/free.c: Include <libc-lock.h>.
6155         * malloc/realloc.c: Likewise.
6156         * malloc/malloc-find.c: Likewise.
6157         * malloc/malloc-size.c: Likewise.
6158         * malloc/malloc-walk.c: Likewise.
6159         * malloc/memalign.c: Likewise.
6160         * malloc/malloc.c: Likewise.
6162         * sysdeps/i386/dl-machine.h: Correct clearing of _dl_starting_up.
6164 Fri Sep  6 19:38:49 1996  Ulrich Drepper  <drepper@cygnus.com>
6166         * sysdeps/stub/libc-lock.h: Define __libc_lock_critical_start
6167         and __libc_lock_critical_end as empty macros.
6169         * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
6170         __libc_malloc_lock.
6171         * malloc/free.c: Include <libc-lock.h>.
6172         * malloc/malloc-find.c: Likewise.
6173         * malloc/malloc-size.c: Likewise.
6174         * malloc/malloc-walk.c: Likewise.
6175         * malloc/malloc.c: Likewise.
6176         * malloc/memalign.c: Likewise.
6177         * malloc/realloc.c: Likewise.
6179         * Makefile: Undo change from Mon Sep  2 22:15:14 1996.  No more
6180         extra_solibs pass.
6181         * Rules: Likewise.
6182         * extra-lib.mk: Likewise.
6183         * manual/Makefile: Likewise.
6185         * db/Makefile (makedb): Choose dependecies based on build-shared.
6186         Patch by Andres Schwab.
6188         * sysdeps/posix/sysconf.c: Don't use PTHREAD_DESTRUCTOR_ITERATIONS
6189         but _POSIX_THREAD_DESTRUCTOR_ITERATIONS.
6191         * sysdeps/unix/sysv/linux/errnos.h: New file.
6192         * sysdeps/unix/sysv/linux/schedbits.h: New file.
6193         * sysdeps/unix/sysv/linux/waitflags.h: New file.
6195         * sysdeps/unix/sysv/linux/gnu/types.h: Add definition of `key_t'.
6197 Fri Sep  6 08:26:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6199         * rpm/template: Fix typo in %build section.
6201 Fri Sep  6 03:31:07 1996  Ulrich Drepper  <drepper@cygnus.com>
6203         * sysdeps/unix/sysv/linux/errnos.h: Don't define errno macro when
6204         building libc without thread support.
6205         * resolv/netdb.h: Likewise for h_errno macro.
6207 Thu Sep  5 23:01:48 1996  Ulrich Drepper  <drepper@cygnus.com>
6209         * libc-symbols.h: Add new macro weak_const_function.  It's like
6210         weak_function, but the function is additionally marked as const.
6211         * features.h: Only include <sys/cdefs.h> if !__ASSEMBLER__.
6213 Thu Sep  5 22:55:49 1996  Richard Henderson  <rth@tamu.edu>
6215         * inet/herrno.c (__h_errno_location): New function.
6216         (h_errno): Make strong_alias __h_errno so that we can access
6217         the variable even if `h_errno' is a macro.
6218         * resolv/netdb.h: Define macro h_errno to access thread specific
6219         version of h_errno variable.  Declare alias __h_errno for h_errno.
6220         * resolv/res_query (h_errno): Remove definition.
6221         * sysdeps/unix/sysv/linux/errnos.h [!__ASSEMBLER__ && __USE_REENTRANT]:
6222         Add macro `errno' to get thread specific variable.
6223         * sysdeps/unix/alpha/sysdep.S [_LIBC_REENTRANT]: Set errno using
6224         __errno_location function.
6225         (__errno_location): New function.
6227 Thu Sep  5 21:08:44 1996  Ulrich Drepper  <drepper@cygnus.com>
6229         * posix/gnu/types.h: Remove definition of key_t.
6230         * sysdeps/generic/gnu/types.h: Move it to here.
6231         * sysdeps/unix/sysv/linux/gnu/types.h: Add Linux specific
6232         definition of key_t.
6234         * sysdeps/unix/sysv/linux/waitflags.h: New file.  Linux specific
6235         definitions.
6236         * sysdeps/unix/sysv/linux/schedbits.h: New file.  Include
6237         clone prototypes and associated flags.
6239 Thu Sep  5 13:18:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6241         * sysdeps/mach/hurd/i386/init-first.c (__libc_argc, __libc_argv):
6242         New variables.
6243         (init1): Initialize them.
6244         * hurd/hurdinit.c (_hurd_setproc): Now that happens to be
6245         available, pass __libc_argv in call to __proc_set_arg_locations.
6247         * gmon/gmon.c (write_hist): Call __profile_frequency instead of
6248         hertz.
6249         (hertz): Delete function.
6250         * gmon/Makefile (routines): Add `prof-freq'.
6251         * sysdeps/generic/prof-freq.c: New file.
6252         * sysdeps/mach/hurd/prof-freq.c: New (stubby) file.
6253         * sysdeps/mach/hurd/profil.c (profile_tick): New variable.
6254         (update_waiter): Store frequency in profile_tick.
6255         (__profile_frequency): New function.
6257         * sysdeps/mach/hurd/sendto.c (sendto): Use prototype definition
6258         syntax.
6260         * Rules (generated): Restore reference to $(generated).
6262         * mach/Machrules (mig.uh, mig.__h): Don't include $(user-MIGFLAGS)
6263         here.
6265         * malloc/free.c (free): __lib_malloc_lock -> __libc_malloc_lock.
6267         * malloc/free.c: Provide extern decl of __libc_malloc_lock.
6268         * malloc/realloc.c: Likewise.
6269         * malloc/malloc-find.c: Likewise.
6270         * malloc/malloc-size.c: Likewise.
6271         * malloc/malloc-walk.c: Likewise.
6272         * malloc/memalign.c: Likewise.
6274 Thu Sep  5 08:58:47 1996  Richard Henderson  <rth@tamu.edu>
6276         * sysdeps/alpha/elf/start.S: Make _start global again.
6278 Thu Sep  5 03:20:42 1996  Ulrich Drepper  <drepper@cygnus.com>
6280         Change configuration and Makefiles to allow add-ons to have a
6281         sysdeps/ directory hierachy.
6282         * configure.in: Test for sysdeps/ directory in add-ons.  Before
6283         all test and searches in these hierachies, too.
6284         * Makeconfig (full-config-subdirs): Define based on $(config-sysdirs).
6285         Extend with $(..) if not absolute path.
6286         Use $(full-config-subdirs) where $(config-sysdirs) was used.
6287         * Makefile ($(objpfx)sysd-dirs): Use config-sysdirs.
6288         * MakeTAGS: Use $(full-config-subdirs).
6289         * Makerules: Change comment to libc.so link script.
6290         (sysdirs): Define based on $(full-config-subdirs).
6291         (sysd-Makefile): Define using config-sysdirs.
6292         (sysd-rules): Likewise.
6293         * sysdeps/unix/Makefile (sysd-syscalls): Define based on +sysdep-dirs.
6294         * sysdeps/unix/make-syscalls.sh: Remove basedir argument.
6296 Wed Sep  4 01:32:21 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6298         * sysdeps/m68k/fpu/k_cos.c: Rewritten for better accuracy.
6299         * sysdeps/m68k/fpu/k_sin.c: Likewise.
6300         * sysdeps/m68k/fpu/k_tan.c: Likewise.
6302 Thu Sep  5 01:06:09 1996  Richard Henderson  <rth@tamu.edu>
6304         * malloc/free.c (free): Protect by using __libc_malloc_lock.
6305         * malloc/malloc-find.c (malloc_find_object_address): Likewise.
6306         * malloc/malloc-size.c (malloc_usable_size): Likewise.
6307         * malloc/malloc-walk.c (malloc_walk): Likewise.
6308         * malloc/memalign.c (memalign): Likewise.
6309         * malloc/realloc.c (realloc): Likewise.
6310         * malloc/malloc.c: Define __libc_malloc_lock.
6311         (_malloc_internal): Don't use `malloc'.  Instead look for
6312         `__malloc_hook' or call `_malloc_internal'.
6313         (malloc): Protect by using `__libc_malloc_lock'.
6314         * malloc/malloc.h: Declare `__libc_malloc_lock'.
6316 Mon Sep  2 22:42:59 1996  Richard Henderson  <rth@tamu.edu>
6318         * sysdeps/alpha/elf/start.S: Use weak_alias for __start
6319         instead of the hard definition.
6321         * sysdeps/alpha/dl-machine.h (RTLD_START): Add type info for
6322         _start and _dl_start_user.
6324         * sysdeps/unix/sysv/linux/alpha/init-first.h (SYSDEP_CALL_INIT):
6325         Make _dl_starting_up weak.  Add type info for NAME.
6327 Mon Sep  2 22:15:14 1996  Richard Henderson  <rth@tamu.edu>
6329         * Makefile (all): Add extra_solibs pass.
6330         (+subdir_targets): Same.
6331         * Rules (extra_solibs): New phony empty target for subdirs without
6332         extra libs.
6333         * extra-lib.mk: Build lib*.so* in extra_solibs not lib-noranlib.
6334         * manual/Makefile: Add dummy extra_solibs target.
6336 Sun Sep  1 15:41:22 1996  Richard Henderson  <rth@tamu.edu>
6338         * Makeconfig (+link): Add $(link-extra-libs).
6339         (link-extra-libs): New variable which expands to the full paths of
6340         the other libraries needed by a program, as controled by LDLIBS-$(@F).
6341         * db/Makefile: Use LDLIBS-makedb to link libdb not a dependency, as
6342         the later attempts to install the library before linking it.
6344         * sysdeps/unix/alpha/sysdep.S: Align errno.
6346         * sysdeps/unix/sysv/linux/alpha/ioperm.c (struct platform): Add
6347         hae_shift entry.
6348         (io): Move bus_memory_base and sparse_bus_memory_base into struct.
6349         (_hae_shift): New function.
6350         * sysdeps/unix/sysv/linux/alpha/sys/io.h: New file.  Prototypes
6351         for the bus query functions.
6353 Sat Aug 31 18:14:54 1996  Richard Henderson  <rth@tamu.edu>
6355         * elf/dl-close.c (_dl_close): In static executables, map->l_prev
6356         can be NULL when unloading a library.
6358         * elf/dl-open.c (_dl_open): Pass __environ instead of __libc_envp
6359         to the library .init function.
6361         * sysdeps/alpha/dl-machine.h (elf_machine_rela):  Since we omitted
6362         part of the COPY reloc processing earlier, omit the rest now --
6363         we'll get into less trouble later when some fool does use a COPY.
6365         * sysdeps/unix/sysv/linux/init-first.c (init): Accept argc et al as
6366         parameters.  Move all argc and __libc_multiple_libcs calculation out
6367         to init-first.h.  Use __environ not __libc_envp.
6368         * sysdeps/unix/sysv/linux/alpha/init-first.h: Rewrite.
6369         * sysdeps/unix/sysv/linux/i386/init-first.h: Rewrite.
6371 Thu Aug 29 20:26:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6373         * sysdeps/posix/profil.c (profil): Don't clobber saved timer and
6374         signal settings when profiling was already turned on.
6376         * csu/gmon-start.c (__gmon_start__) [HAVE_INITFINI]: Protect from
6377         being called twice.
6379 Wed Sep  4 01:31:50 1996  Ulrich Drepper  <drepper@cygnus.com>
6381         * sysdeps/unix/sysv/linux/i386/mmap.S: Test for
6382         0 < return value < -4096 and not < 0 to decide about failure.
6383         Reported by Andreas Jaeger.
6385 Tue Sep  3 19:04:05 1996  Ulrich Drepper  <drepper@cygnus.com>
6387         * stdio-common/vfscanf.c (__vfscanf): Don't count EOF char
6388         in %c format.
6390 Sat Aug 31 18:10:51 1996  Ulrich Drepper  <drepper@cygnus.com>
6392         * wcsmbs/wchar.h: Define prototypes for wcstoq and wcstouq only
6393         #ifdef __USE_GNU.
6395 Sat Aug 31 12:34:29 1996  Ulrich Drepper  <drepper@cygnus.com>
6397         * version.c: Add missing newline character in banner.
6399         * sysdeps/unix/sysv/linux/alpha/Dist: Correct typo.
6400         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
6402 Sat Aug 31 03:07:39 1996  Ulrich Drepper  <drepper@cygnus.com>
6404         * intl/l10nflist.c (_nl_normalize_codeset): We convert to lower
6405         case, so don't prepend uppercase `ISO' for only numeric arg.
6407 Wed Sep  4 16:16:13 1996  Ulrich Drepper  <drepper@cygnus.com>
6409         * sysdeps/mach/hurd/send.c (__send): De-ANSI-fy.
6410         * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
6412 Tue Sep  3 11:16:07 1996  Thomas Bushnell/ n/BSG  <thomas@gnu.ai.mit.edu>
6414         * shadow/lckpwdf.c (__ulckpwdf): Don't take address of LOCK in
6415         call to __libc_lock_lock.
6417         * sysdeps/mach/hurd/send.c (__send): Declare BUF const.
6418         * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
6420         * sysdeps/stub/ustat.c: Include <sys/ustat.h>.
6422         * misc/syslog.c (vsyslog): Fix typo (`mow_tm' -> `now_tm').
6424 Fri Aug 30 19:55:27 1996  Ulrich Drepper  <drepper@cygnus.com>
6426         * libio/genops.c: Make _cleanup an alias of _IO_cleanup.
6427         Reported by Erik Troan.
6429 Fri Aug 30 15:40:04 1996  Ulrich Drepper  <drepper@cygnus.com>
6431         * sysdeps/unix/sysv/linux/Dist: Add sys/procfs.h and
6432         sys/sysmacros.h.  Reported by Curtiss <1CMC3466@IBM.MTSAC.EDU>.
6434 Fri Aug 30 13:53:32 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
6436         * sysdeps/unix/mman/syscalls.list: `mmap' has 6 arguments, not 5.
6438 Fri Aug 30 13:01:10 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
6440         * sysdeps/i386/fpu/__math.h (tan): Pop 1.0 in ST to get
6441         real result.
6443 Fri Aug 30 03:33:33 1996  Ulrich Drepper  <drepper@cygnus.com>
6445         * sysdeps/libm-ieee754/s_cbrtl.c: New file.  `long double'
6446         implementation.
6448 Fri Aug 30 13:39:21 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6450         * Makerules (BUILD_CFLAGS): Use @(common-objpfx) for config.h, not
6451         $(..).  Some rules (like sysdeps/posix/Makefile for mk-stdiolim)
6452         do `cd' commands.
6453         (sed-remove-objpfx): Don't substitute for $(objpfx) anymore;
6454         $(common-objpfx) is good enough.
6455         * Rules (common-generated): Provide default (empty) value.
6456         (dummy.o, dummy.c, empty.o, empty.c): Put these in
6457         $(common-generated), not $(generated), and without $(..).
6458         (subdir_echo-distinfo): Treat $(common-generated) just like
6459         $(generated).
6460         (generated): Depend on the (suitably mutated) $(common-generated)
6461         files too.
6462         * Makerules (common-clean): Remove common-generated files too.
6463         * sysdeps/mach/hurd/Makefile (generated): Don't put errnos.d and
6464         stamp-errnos here.
6465         (common-generated): Do put errnos.d and stamp-errnos here.
6466         (rpath-link): Don't use +=; $(rpath-link) is a colon separated list.
6468         * sysdeps/mach/hurd/Makefile (before-compile): Add auth; also add
6469         auth to following rule to get it built.
6471 Fri Aug 30 01:26:44 1996  Ulrich Drepper  <drepper@cygnus.com>
6473         * sysdeps/unix/sysv/linux/i386/Dist: Add clone.S.
6474         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
6475         * sysdeps/unix/sysv/linux/alpha/Dist: Likewise.
6477         * version.c: Add comment about where to report bugs to.
6478         * catgets/gencat.c (usage): Likewise.
6479         * db/makedb.c (usage): Likewise.
6480         * locale/programs/locale.c (usage): Likewise.
6481         * locale/programs/localedef.c (usage): Likewise.
6483         * manual/socket.texi: A little bit better wording.
6485 Thu Aug 29 18:03:06 1996  Ulrich Drepper  <drepper@cygnus.com>
6487         * Makerules: Make sure directory exists before generating stamp file.
6488         (BUILD_CFLAGS): Always refer to using $(..).
6489         * manual/Makefile: Make sure directory exists before generating
6490         stamp file.
6491         (make-target-directory): Add macro definition.
6492         * sysdeps/generic/Makefile: Make sure directory exists before
6493         generating stamp file.
6495         * Makefile (distribute): Add autolock.sh.  Reported by Fila Kolodny.
6497 Tue Aug 27 10:06:22 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6499         When compiling in separate directory put objects into
6500         subdirectories matching the source layout.
6501         * Makeconfig (objpfx) [ifdef objdir]: Append $(subdir).
6502         When looking for configparms try in $(common-objpfx).
6503         Use $(common-objpfx)SUBDIR to find objects from other subdirectory
6504         builds.
6505         * Makerules: Add $(objpfx) to vpath list.
6506         (make-dummy-dep): Use $(common-objpfx) to avoid creating dummy.d
6507         more than once.  All uses in dependency lists changed.
6508         (+make-deps): Make target directory.
6509         (sed-remove-objpfx): Substitute $(common-objpfx).
6510         (do-ar, build-extra-lib, $(common-objpfx)stub-$(subdir)): Use
6511         $(objpfx) instead of $(objdir) for cd command.
6512         (O%-lib): Always find libc relative to $(..).
6513         (subdir-stamps): Collect stamp files from subdirs.
6514         (common-mostlyclean): Remove stub file in $(common-objpfx).
6515         * MakeTAGS ($P/siglist.pot): Find siglist.c in stdio-common.
6516         * Rules (dep-dummy-lib): Use $(common-objpfx) to avoid creating to
6517         more than once.
6518         ($(objpfx)dummy.c, $(objpfx)empty.c): Change target name to use
6519         $(common-objpfx).  All uses in dependency lists changed.
6520         (generated): Prepend $(..) to names.
6521         * bare/Makefile ($(objpfx)lib$(config-vendor).a): Remove $(objpfx)
6522         from $@.
6523         * nss/Makefile ($(objpfx)libnss_dns.so, $(objpfx)libnss_db.so):
6524         Use $(common-objpfx) instead of $(..) in dependencies.
6525         * sysdeps/mach/Makefile (mach-objpfx): Unconditionally use
6526         $(common-objpfx) instead of $(..) and (objpfx).
6527         * sysdeps/mach/hurd/Makefile (hurd-objpfx): Likewise.
6528         (rpath-link): Likewise.
6529         (rpcuserlibs): Likewise.
6530         * sysdeps/unix/Makefile [$(subdir) = stdio-common]: Check for
6531         errlist.c in $(objpfx), not $(common-objpfx).
6532         ($(common-objpfx)s-proto.d): Special rule not covered by pattern
6533         rule.
6534         * sysdeps/unix/make-syscalls.sh: Make syscall rules depending on
6535         s-proto.d in $(common-objpfx), not $(objpfx).
6537 Thu Aug 29 17:45:49 1996  Ulrich Drepper  <drepper@cygnus.com>
6539         * nss/nsswitch.c (nss_dlerror_run): Free returned error
6540         string.
6542 Thu Aug 29 15:53:33 1996  Ulrich Drepper  <drepper@cygnus.com>
6544         * sysdeps/libm-ieee754/e_acoshl.c: New file. `long double'
6545         implementation.
6546         * sysdeps/libm-ieee754/e_atanhl.c: Likewise.
6547         * sysdeps/libm-ieee754/e_remainderl.c: Likewise.
6548         * sysdeps/libm-ieee754/e_scalbl.c: Likewise.
6549         * sysdeps/libm-ieee754/s_asinhl.c: Likewise.
6550         * sysdeps/libm-ieee754/s_cosl.c: Likewise.
6551         * sysdeps/libm-ieee754/s_sinl.c: Likewise.
6552         * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
6553         * sysdeps/libm-ieee754/s_tanl.c: Likewise.
6555 Thu Aug 29 12:00:30 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6556         
6557         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Correct
6558         spelling error of _hurd_itimerval.
6560         * mach/Makefile (MIGFLAGS-mach/mach4): Define variable.
6561         * mach/Machrules (mig.uh, mig.__h): Include $(user-MIGFLAGS) and
6562         $(MIGFLAGS-$*) here too, as well as in the code-generating MiG calls. 
6563         
6564         * hurd/hurdinline.c: Include "hurd.h" for function definitions too. 
6565         
6566         * stdio/fseek.c (fseek): Don't assume we know the file position;
6567         other handles may have changed it.  So set STREAM.__offset to -1
6568         before calling __stdio_check_offset to make sure we have a correct
6569         value.
6571 Thu Aug 29 00:28:08 1996  Ulrich Drepper  <drepper@cygnus.com>
6573         * stdio-common/printf_fp.c (__printf_fp): Use default value '.' if
6574         `decimal' char is 0.
6576         * C-numeric.c (not_available): New constant.
6577         (_nl_C_LC_NUMERIC): Use `not_available' for grouping value.
6579         * nss/nsswitch.conf: Example configuration file.
6580         * nss/db-Makefile: Example Makefile for generation of databases
6581         for nss_db.
6582         * nss/Makefile (distribute): Add nsswitch.conf and db-Makefile.
6584 1996-08-28  Paul Eggert  <eggert@twinsun.com>
6586         * C-messages.c (_nl_C_LC_MESSAGES): Set yesexpr to "^[yY]" and
6587         noexpr to "^[nN]"; this conforms to POSIX.2.
6589         * C-time.c (_nl_C_LC_TIME): Change %d to %e in d_t_format, to
6590         conform to POSIX.2.
6592 1996-08-28  Paul Eggert  <eggert@twinsun.com>
6594         * C-monetary.c (not_available): New constant.
6595         (_nl_C_LC_MONETARY): Set mon_decimal_point to "", and set
6596         mon_grouping, int_frac_digits, frac_digits, p_cs_precedes,
6597         p_sep_by_space, n_cs_precedes, n_sep_by_space, p_sign_posn, and
6598         n_sign_posn to CHAR_MAX, as required by the POSIX Standard.
6600 Wed Aug 28 23:12:28 1996  Ulrich Drepper  <drepper@cygnus.com>
6602         * nss/nss_db/db-XXX.c: Correct function names.  They must be
6603         `_nss_db_*' instead of `_nss_files_*'.
6604         (lookup): `parse_line' returns 1 if succesful.
6605         * nss/nss_files/files-service.c (servbyname): Key for database
6606         must also contain protocol names.
6607         (servbypt): Likewise.
6608         Test must also check for protocol.  Add `proto' argument.
6610 Tue Aug 27 09:56:13 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6612         * MakeTAGS ($P/subdirs.pot): Prefix all file names, not only the
6613         first one.
6615 Tue Aug 27 17:45:21 1996  Ulrich Drepper  <drepper@cygnus.com>
6617         * Makerules: Add some test for correct version of GNU Make.
6619         * io/fcntl.h: Undo change from Mon Aug 26 22:22:17 1996.
6620         * sysdeps/unix/sysv/linux/fcntlbits.h: Place macros here instead.
6622         * sysdeps/generic/dl-sysdep.c: Initialize break address to
6623         avoid overwriting last page (OK, Roland).
6625 Tue Aug 27 16:20:37 1996  Ulrich Drepper  <drepper@cygnus.com>
6627         * resolv/resolv.h: Update from BIND-4.9.5-T3A.
6628         * resolv/arpa/nameser.h: Likewise.
6629         * resolv/res_init.c: Likewise.
6630         * resolv/res_debug.c: Likewise.
6631         * resolv/res_mkquery.c: Likewise.
6633 Tue Aug 27 15:47:04 1996  Ulrich Drepper  <drepper@cygnus.com>
6635         * elf/dl-error.c (catch): Define errstring element not as const.
6636         (_dl_catch_error): ERRSTRING argument is not const pointer.
6637         Initialize *ERRSTRING and *OBJNAME separately.
6638         * elf/link.h: Change prototype for `_dl_catch_error'.
6640         * elf/dl-load.c (_dl_map_object): Use separate variable for
6641         copied NAME to avoid `const' warning.
6643         * elf/dlerror.c: Make `last_errstring' variable not const pointer.
6645         * elf/rtld.c: Implement reading of /etc/ld.so.preload.  This
6646         provides preloading even for SUID binaries.
6647         Add some more casts to avoid signed<->unsigned warnings.
6649 Tue Aug 27 15:40:28 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
6651         * posix/sys/types.h: Define loff_t.
6652         * sysdeps/unix/sysv/linux/gnu/types.h: Define __loff_t.
6654 Mon Aug 26 22:22:17 1996  Ulrich Drepper  <drepper@cygnus.com>
6656         * io/fcntl.h: Add definition for BSD F* macros.
6658         * misc/init-misc.c (__init_misc): Make static.
6659         * misc/Makefile: Pass -fkeep-inline-functions flag for init-misc.c.
6661         * configure.in: Add test for -fno-exception option of gcc.
6662         * config.make.in: Add definition of have-no-exceptions.
6663         * Makerules: Define no-exceptions based on have-no-exceptions.
6664         * csu/Makefile: When translating initfini.c pass $(no-exceptions).
6665         This is necessary for gcc >= ss-960816.
6667 Mon Aug 26 17:16:48 1996  Richard Henderson  <rth@tamu.edu>
6669         * sysdeps/alpha/dl-machine.h: Clear startup flag.
6671 Fri Aug 16 21:17:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6673         * Makerules (o-iterator-doit): Simplify reference to autolock
6674         script.
6676 Sat Aug 24 15:27:41 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6678         * sysdeps/mach/hurd/getcwd.c
6679         (_hurd_canonicalize_directory_name_internal): After resizing the
6680         buffer move the current contents to the end.  Correctly relocate
6681         file name pointer to upper half of the buffer.
6683 Mon Aug 26 15:49:59 1996  Ulrich Drepper  <drepper@cygnus.com>
6685         * rtld.c (dl_main): Remove code to call ld.so initializer.  This
6686         was introduced for compatibility with Linux ld.so and would not
6687         be used anymore.  Now we don't have any good values to use as the
6688         parameters to the initializer so simply remove it.
6690 Sun Aug 25 18:25:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6692         * gmon/gmon.c (ERR): Don't write the terminating NUL.
6694         * sysdeps/posix/profil.c (profil): Disable the profiling timer at
6695         first.
6696         (profil_count): Use 64 bit arithmethic to avoid overflow.
6698         * sysdeps/generic/machine-gmon.h (MCOUNT): Fix argument order.
6700 Mon Aug 26 16:31:33 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6702         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Tolerate NEW
6703         being null; in that case don't touch the timer at all (but do
6704         return something in OLD if necessary).
6706 Mon Aug 26 13:35:16 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6708         * sysdeps/mach/hurd/i386/init-first.c (__libc_multiple_libcs): New
6709         variable.
6710         * sysdeps/i386/init-first.c: Likewise.
6711         * sysdeps/stub/init-first.c: Likewise.
6713 Mon Aug 26 02:01:37 1996  Ulrich Drepper  <drepper@cygnus.com>
6715         * elf/dl-open.c (_dl_open): Call library initializer with
6716         correct command line arguments and environment information.
6717         * elf/rtld.c (dl_main): Provide arguments to initializer of
6718         ld.so itself.
6720 Sun Aug 25 19:15:46 1996  Ulrich Drepper  <drepper@cygnus.com>
6722         * shadow/Makefile (routines): Add lckpwdf.
6723         * shadow/lckpwdf.c: New file.
6725         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Force
6726         argument `cw' to be placed in memory.  Patch by Torbjorn Granlund.
6728 Sun Aug 25 12:53:37 1996  Ulrich Drepper  <drepper@cygnus.com>
6730         * configure.in: Add definition for `__eh_pc' and `__throw' in
6731         test for --no-whole-archive.  The compiler generates dependencies
6732         for this but none of the standard librares and startup files
6733         are used.  Necessary for gcc >= ss-960816.
6735 Sun Aug 25 01:31:33 1996  Ulrich Drepper  <drepper@cygnus.com>
6737         * elf/dl-error.c (_dl_signal_error): If error is catched, malloc
6738         return string since string might be on stack.
6739         * elf/dl-lookup.c (_dl_lookup_symbol): Undo change of
6740         Wed Aug 21 10:14:59 1996.
6741         * elf/dlerror.c (dlerror): Free error string after printing.
6742         (_dlerror_run): If error string was not printed since last error
6743         free string.
6744         * rtld.c (dl_main): Free error string in case of error.
6746 Sat Aug 24 03:16:47 1996  Ulrich Drepper  <drepper@cygnus.com>
6748         * misc/syslog.c (vsyslog): Don't use `localtime' or `gmtime' since
6749         this changes the global state for `localtime' and `gmtime'.  Use
6750         `__localtime_r'/`__gmtime_r' instead.
6751         * resolv/res_debug.c (__p_secstodate): Likewise.
6752         * sysdeps/generic/ftime.c: Likewise.
6753         * sysdeps/posix/gettimeofday.c: Likewise.
6754         Reported by Paul Eggert.
6756         * time/gmtime.c: De-ANSI-fy.
6757         * time/strftime.c: Don't call non-reentrant functions which change
6758         state.
6760 Wed Aug 21 10:14:59 1996  Richard Henderson  <rth@tamu.edu>
6762         * elf/dl-lookup.c (_dl_lookup_symbol): Malloc the error string rather
6763         than putting it on the stack.
6765 Wed Aug 21 10:12:42 1996  Richard Henderson  <rth@tamu.edu>
6767         * elf/rtld.c (dl_main): When looking up symbols in response to --list,
6768         don't find .plt entries.
6770 Mon Aug 19 23:18:12 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6772         * sysdeps/m68k/dl-machine.h (RTLD_START): Optimize clearing
6773         _dl_starting_up.
6775 Tue Aug 20 17:42:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6777         * stdio/linewrap.c (line_wrap_stream): Initialize D->seek.
6779 Sat Aug 17 12:19:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
6781         * login/pututline_r.c (__pututline_r): Fix handling of case where
6782         getutid_r() fails with ESRCH.  Reported by Miquel van Smoorenburg.
6784 Wed Aug 14 14:10:54 1996  David Mosberger-Tang  <davidm@azstarnet.com>
6786         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Change entry
6787         for "Jensen" so _bus_base() returns 0 on that platform.  Use
6788         _bus_base_sparse() to determine base address of sparse memory.
6790         * sysdeps/unix/sysv/linux/sys/io.h: Enclose #include <asm/io.h>
6791         and declarations in __BEGIN_DECLS/__END_DECLS.
6793 Sun Aug 18 13:37:09 1996  Ulrich Drepper  <drepper@cygnus.com>
6795         * err.h: New file.  Wrapper around misc/err.h.
6797         Correct solution of multiple initialization problem by
6798         Roland McGrath.
6799         * csu/initfini.c: Remove global variable __libc_is_static.
6800         * elf/rtld.c: Introduce new global variable _dl_starting_up.
6801         It's nonzero during the startup.
6802         * elf/dl-open.c (_dl_open): When _dl_start function is not
6803         available (i.e., if in static libc) set `__libc_multiple_libcs'
6804         to nonzero value.
6805         * sysdeps/unix/sysv/linux/init-first.c (__libc_multiple_libc):
6806         New global variable.
6807         (init): Undo change of Fri Aug  2 03:12:40 1996.
6808         Initialize `__libc_multiple_libcs' to nonzero only if this is
6809         a shared lib called from a statically linked program and don't
6810         call `personality' and `setfpucw' in this case either.
6811         * sysdeps/generic/sbrk.c: Undo change of Fri Aug  2 03:12:40 1996.
6812         Don't call brk(0) until `__libc_multiple_libcs' is nonzero.
6813         * sysdeps/i386/dl-machine.h (RTLD_START): Clear _dl_starting_up
6814         before jumping to user code.
6815         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
6817 Fri Aug 16 04:59:01 1996  Ulrich Drepper  <drepper@cygnus.com>
6819         * sysdeps/unix/sysv/linux/init-first.c: Remove hack from
6820         Thu Aug  8 12:40:20 1996.
6821         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = csu]: Use
6822         -fkeep-inline-functions flag instead.
6824 Fri Aug 16 16:11:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6826         * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Treat
6827         EPFNOSUPPORT and EAFNOSUPPORT as implying NSS_STATUS_UNAVAIL just
6828         like ECONNREFUSED already does.
6829         (_nss_dns_gethostbyaddr_r): Likewise.
6830         * nss/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
6831         (_nss_dns_getnetbyaddr_r): Likewise.
6833         * sysdeps/mach/hurd/socket.c (socket): For message transmission
6834         and RPC errors that indicate that the socket server is not really
6835         present and able to do its job, turn the error into EPFNOSUPPORT.
6837 Fri Aug 16 01:24:33 1996  Ulrich Drepper  <drepper@cygnus.com>
6839         * inet/ruserpass.c (userpass): Allocate buffer for .netrc file
6840         name dynamically.  Reported by Alan Cox.
6841         Uncomment warnings and mark as translatable.
6843         * time/strftime (strftime): Add implementation for %s and %z
6844         format.  Change behaviour for unknown format character: now
6845         simply print it.  This matches the behaviour of printf.
6846         Reported by Jim Meyering.
6847         * manual/time.texi: Document all formats and flags of strftime.
6849 Thu Aug 15 18:02:51 1996  Ulrich Drepper  <drepper@cygnus.com>
6851         * elf/rtld.c (dl_main): Loaded object has type lt_executable,
6852         not lt_library.
6854         * misc/sys/select.h: Define fd_set using typedef, not #define.
6855         Proposed by David Mosberger-Tang.
6857 Thu Aug 15 12:48:21 1996  Ulrich Drepper  <drepper@cygnus.com>
6859         * po/header.pot: Use real description line.
6861 Thu Aug 15 04:42:44 1996  Ulrich Drepper  <drepper@cygnus.com>
6863         * elf/rtld.c (dl_main): When started with --verify prevent
6864         any warning.  Just exit with an error.
6865         * elf/ldd.sh.in: Don't run given object directly.  This fails for
6866         libraries.  Instead use $RTLD again.
6868 Thu Aug 15 02:08:59 1996  Ulrich Drepper  <drepper@cygnus.com>
6870         * manual/nss.texi: New file.  Document NSS.
6871         * manual/nsswitch.texi: New file.  Example configuration.
6873         * manual/string.texi: Document stpncpy, strdupa, and strndupa.
6874         * manual/example/strdupa.c: New file.  Example for strdupa.
6876 Wed Aug 14 21:36:16 1996  Ulrich Drepper  <drepper@cygnus.com>
6878         * stdlib/strtod.c (STRTOD): Correct assertion about size of
6879         wint_t and wchar_t.  Reported by David Mosberger-Tang.
6881 Mon Aug 12 22:40:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6883         * elf/dl-lookup.c (_dl_lookup_symbol): Remove fifth parameter
6884         RELOC_ADDR and make NOPLT a set of flags.  All callers
6885         changed.  Delete condition that checks for resolving to the
6886         location being filled in.  Add condition to skip the
6887         executable's symbols if requested.
6888         * elf/link.h: Change declaration of _dl_lookup_symbol
6889         accordingly.
6890         (DL_LOOKUP_NOEXEC, DL_LOOKUP_NOPLT): New definitions.
6891         * elf/dl-reloc.c (RESOLVE): Remove second parameter and rename
6892         NOPLT to FLAGS.
6893         * elf/dl-runtime.c (RESOLVE): Likewise.
6894         * elf/rtld.c (RESOLVE): Likewise.
6895         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Pass
6896         DL_LOOKUP_NOEXEC as second argument to the RESOLVE macro if
6897         processing a copy reloc, DL_LOOKUP_NOPLT for a jump slot
6898         reloc, zero otherwise.
6899         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
6900         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
6901         * sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
6903 Wed Aug 14 17:57:08 1996  Ulrich Drepper  <drepper@cygnus.com>
6905         * MakeTAGS: Clean up use of --omit-header and -n for xgettext.
6906         * po/header.pot: Add empty line at end.
6908 Sun Aug 11 13:45:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6910         * MakeTAGS (all-pot): Remove $P/errlist.pot, all error messages
6911         are now in $P/stdio-common.pot.
6912         (XGETTEXTFLAGS-errlist.pot): Variable removed.
6914 Mon Aug 12 19:25:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6916         * Makerules (do-ar, o-iterator-doit): Compute path to autolock
6917         script at run time, not configure time.
6918         * config.make.in, configure.in: Undo previous change.
6920 Wed Aug 14 13:20:02 1996  Ulrich Drepper  <drepper@cygnus.com>
6922         * sysdeps/unix/sysv/linux/i386/close.S: Push return value of thread
6923         on stack as argument for `_exit'.  Reported by Andreas Schwab.
6925 Mon Aug 12 19:36:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6927         * sysdeps/unix/sysv/linux/m68k/clone.S: New file.
6929 Wed Aug 14 04:22:35 1996  Richard Henderson  <rth@tamu.edu>
6931         * elf/dl-load.c (_dl_map_object): Save name in malloced memory.
6932         (_dl_map_object_from_fd): Free name on error.
6934 Wed Aug 14 13:00:09 1996  Ulrich Drepper  <drepper@cygnus.com>
6936         * string/strdup.c: Use result of memcpy to avoid reloading.
6938 Tue Aug 13 00:55:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6940         * shadow/sgetspent_r.c (__sgetspent_r): Copy string to buffer, not
6941         the other way round.
6943 Tue Aug 13 20:51:21 1996  Ulrich Drepper  <drepper@cygnus.com>
6945         * stdlib/canonicalize.c (canonicalize): Add cast to prevent
6946         warning.
6948         * Makerules (o-iterator-doit): Use autolock.sh when running ranlib.
6950 Tue Aug 13 18:26:45 1996  Ulrich Drepper  <drepper@cygnus.com>
6952         * nss/nsswitch.c (__nss_configure_lookup): Use fact that list is
6953         sorted.
6955         Update from bind-4.9.5-T1A.
6956         * resolv/Makefile (libresolv-routines): Add base64, inet_net_ntop,
6957         inet_net_pton, inet_net.
6959         * resolv/gethnamaddr.c: Include <sys/types.h>.
6960         * resolv/getnetnamadr.c: Likewise.
6961         * resolv/herror.c: Likewise.
6962         * resolv/inet_addr.c: Likewise.
6963         * resolv/nsap_addr.c: Likewise.
6964         * resolv/res_comp.c: Likewise.
6965         * resolv/res_data.c: Likewise.
6966         * resolv/res_init.c: Likewise.
6967         * resolv/res_mkquery.c: Likewise.
6968         * resolv/res_query.c: Likewise.
6969         * resolv/res_send.c: Likewise.
6971         * resolv/gethnamaddr.c [! SPRINTF_CHAR] (SPRINTF): Cast return
6972         value of sprintf.
6973         * resolv/inet_ntop.c: Likewise.
6975         * resolv/gethnamaddr.c [BSD]: Include <stdlib.h>.
6976         Remove prototype of gethostbyname_ipv4.
6978         * resolv/inet_ntop.c, resolv/inet_pton.c: Use ISO C `mem*'
6979         functions instead of BSD `b*' functions.
6981         * resolv/nsap_addr.c: Add copyright message.
6983         * resolv/res_comp.c: Remove comment explaining label format.
6984         (res_mailok): Correct check.
6986         * resolv/res_debug: Include missing headers.
6987         (__fp_nquery): Handle `unused', `ad', and `cd' bits.
6988         (__p_fqnname): New function to print FQDN from compressed name.
6989         (__p_rr): Use __p_fqnname.  Correct printing of ".  Handle T_TXT
6990         correctly.  Add handling of T_KEY and T_SIG.
6991         Handle class and type names by using name arrays instead of
6992         explicit `switch'es.
6993         (__sym_ston, __sym_ntos, __sym_ntop): New functions to use arrays.
6994         (__dn_count_labels, __p_secstodate): New functions.
6996         * resolv/resolv.h (__RES): Update version number.
6997         (res_sym): New type.
6998         Add #defines for new functions.
6999         Declare sym_ntos, sym_ntop, b64_ntop, b64_pton, __p_fqnname,
7000         __p_secstodate, dn_count_labels.
7002         * resolv/arpa/nameser.h (__BIND): Update version number.
7003         Add KEYFLAG_* and ALGORITHM_* symbols.
7004         (HEADER): Add `ad' and `cd' flags.
7006         * inet/ient.h: Add prototypes for inet_neta, inet_net_ntop,
7007         and inet_net_pton.
7009         * manual/maint.texi: Document that we use bind-4.9.5.
7010         * INSTALL: Ditto.
7012 Mon Aug 12 19:03:22 1996  Thomas Bushnell n/BSG  <thomas@psilocin.gnu.ai.mit.edu>
7014         * sysdeps/generic/gnu/types.h: Declare __fd_mask as `unsigned long'.
7016         * mach/Makefile (mach/mach_host.uh): Depend on
7017         $(objpfx)/mach-syscalls.mk.
7018         ($(objpfx)mach-shortcuts.h): Depend on $(objpfx)mach/mach_host.h.
7019         (This fixes a make loop; thanks to Marcus Daniels
7020         <marcus@sysc.pdx.edu> for the patch.)
7022 Mon Aug 12 16:41:52 1996  Thomas Bushnell n/BSG  <thomas@gnu.ai.mit.edu>
7024         * io/getwd.c (getwd) [! PATH_MAX]: Don't assume that the user's
7025         buffer is any longer than the amount necessary to hold the
7026         filename; the Hurd getcwd uses the *entire* contents of the
7027         buffer, however long it is specified to be.
7029 Mon Aug 12 04:33:09 1996  Ulrich Drepper  <drepper@cygnus.com>
7031         * nss/nsswitch.c (__nss_database_lookup): Always release locks
7032         before returning.  Reported by Miles Bader.
7034 Mon Aug 12 03:31:58 1996  Ulrich Drepper  <drepper@cygnus.com>
7036         * nss/nsswitch.c (__nss_configure_lookup):  New function.
7037         Allows to specify services.
7038         * nss/XXX-lookup.h: Rename database variable and make global.
7039         * nss/databases.def: New file.  Real names of all databases.
7041         * nss/nss.h: New file.  Contains declaration useful for users
7042         and service developers.
7043         * nss/nsswitch.h: Move some declarations to nss/nss.h.
7044         * nss.h: New file.  Wrapper around nss/nss.h.
7046         * nss/Makefile (headers): Add nss.h.
7047         (distributes): Add databases.def.
7049 Sun Aug 11 16:19:42 1996  Ulrich Drepper  <drepper@cygnus.com>
7051         Help the poor people with fast machines by making sure only
7052         one `ar' commands works on the library.
7053         * autolock.sh: New file.  Written by Tom Tromey.
7054         * Makerules (do-ar): Call autolock.sh shell script instead of
7055         directly using `ar'.
7056         * config.make.in: Make configuration variable AUTOLOCK which
7057         gets initialized by configure.
7058         * configure.in: Define variable AUTOLOCK to point to autolock.sh
7059         script and mark it to substitute.
7061         * string/Makefile: Add -fno-builtin for tst-strlen.c, too.
7063         * sysdeps/generic/sbrk.c (__sbrk):  Get kernel brk address
7064         always only if in static libc or if statically linked program
7065         uses libc.so.
7067         * sysdeps/generic/sbrk.c (__sbrk):  Get kernel brk address
7068         always only if in static libc or if statically linked program
7069         uses libc.so.
7071 Sun Aug 11 01:12:38 1996  Richard Henderson  <rth@tamu.edu>
7073         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW
7074         startup by moving Icache flush from here ...
7075         (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here.
7076         (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused.
7078         * sysdeps/alpha/divrem.h: Update comment to reflect the actual
7079         calling conventions.  The code is already correct.
7081 Sun Aug 11 01:06:42 1996  Richard Henderson  <rth@tamu.edu>
7083         * string/Makefile: Compile tester with -fno-builtin as we want to
7084         test our implementations, not gcc's.
7086 Sat Aug 10 13:17:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7088         * shadow.h: New file.
7090         * sysdeps/unix/sysv/linux/netinet/in.h: Move
7091         __BEGIN_DECLS/__END_DECLS up so ntohl() et al are bracketed as
7092         well.
7094         * socket/sys/socket.h [__cplusplus]: Use old-style __SOCKADDR_ARG.
7095         g++ 2.7.2 (and earlier) has no transparent unions support.
7097 Fri Aug  9 18:50:06 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7099         * sysdeps/unix/sysv/linux/alpha/ioperm.c (_bus_base_sparse): New
7100         function to determine the base address of sparse bus memory.
7101         (APECS_*): Rename to CIA_*.
7102         (APECS_SPARSE_MEM, CIA_SPARSE_MEM): New macros.
7103         (platform): Add sparse_bus_memory_base member and initialize.
7104         (sparse_bus_memory_base): New variable.
7106 Tue Aug  6 10:23:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7108         * sysdeps/posix/ttyname_r.c (ttyname_r),
7109         sysdeps/posix/ttyname.c (ttyname): Return -1/NULL if
7110         !__isatty(fd) (POSIX.1 says so.)
7112         * sysdeps/unix/getlogin.c (getlogin): Fix to check fd 0 only.
7113         This is not a gross hack, after all---for compatibility,
7114         getlogin() really should check fd 0 only and not try to base its
7115         operation on the controlling tty.
7117 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7119         * sysdeps/unix/getlogin.c (getlogin): Add static variable NAME,
7120         change utmp_data from static to auto.
7122 Sun Aug 11 02:56:08 1996  Ulrich Drepper  <drepper@cygnus.com>
7124         * posix/unistd.h [__USE_MISC]: Add prototype for `nice'.
7125         Reported by David Mosberger-Tang.
7127 Sat Aug 10 02:05:28 1996  Richard Henderson  <richard@twiddle.tamu.edu>
7129         * sysdeps/libm-ieee754/s_isnan.c [NO_LONG_DOUBLE]: Add strong
7130         alias to `__isnanl'.
7132 Fri Aug  9 17:38:58 1996  Ulrich Drepper  <drepper@cygnus.com>
7134         * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
7135         get `struct timeval'.
7136         * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
7137         * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
7138         * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
7139         * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
7140         * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
7141         * sysdeps/unix/sysv/linux/direntry.h: Complete types in
7142         <linux/dirent.h>.
7143         * io/fts.h: Include <sys/types.h> to get dev_t.
7144         Reported by Matthias Urlichs.
7146         * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
7147         _IO_file_flags.  It's the same as _flags.
7148         Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
7150 Wed Aug  7 19:38:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7152         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
7154 Thu Aug  8 16:17:38 1996  Ulrich Drepper  <drepper@cygnus.com>
7156         * pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
7157         * pwd/getpwent_r.c: Likewise.
7158         * pwd/getpwnam.c: Likewise.
7159         * pwd/getpwnam_r.c: Likewise.
7160         * pwd/getpwuid.c: Likewise.
7161         * pwd/getpwuid_r.c: Likewise.
7163         * grp/getgrent.c: Define BUFLEN from NSS_BUFLEN_GROUP.
7164         * grp/getgrent_r.c: Likewise.
7165         * grp/getgrgid.c: Likewise.
7166         * grp/getgrgid_r.c: Likewise.
7167         * grp/getgrnam.c: Likewise.
7169         * pwd/fgetpwent_r.c: New file.  Reentrant version of fgetpwent.
7170         * pwd/fgetpwent.c: Rewrite to use fgetpwent_r.
7171         * pwd/Makefile (routines): Add fgetpwent_r.
7172         * pwd/pwd.h: Add prototypes for __fgetpwent_r and fgetpwent_r.
7174         * grp/fgetgrent_r.c: New file.  Reentrant version of fgetgrent.
7175         * grp/fgetgrent.c: Rewrite to use fgetgrent_r.
7176         * grp/Makefile (routines): Add fgetgrent_r.
7177         * grp/grp.h: Add prototypes for __fgetgrent_r and fgetgrent_r.
7179         Implement shadow password lookup functions.  This is no complete
7180         shadow password suite.
7181         * shadow/Makefile: New file.
7182         * shadow/fgetspent.c: New file.
7183         * shadow/fgetspent_r.c: New file.
7184         * shadow/getspent.c: New file.
7185         * shadow/getspent_r.c: New file.
7186         * shadow/getspnam.c: New file.
7187         * shadow/getspnam_r.c: New file.
7188         * shadow/putspent.c: New file.
7189         * shadow/sgetspent.c: New file.
7190         * shadow/sgetspent_r.c: New file.
7191         * shadow/shadow.h: New file.
7192         * shadow/spwd-lookup.c: New file.
7193         * shadow/nss_files/files-spwd.c: New file.
7195 Thu Aug  8 13:33:45 1996  Ulrich Drepper  <drepper@cygnus.com>
7197         * sysdeps/unix/sysv/linux/ftime.c: New file.  Available system
7198         call is only a stub.
7199         Reported by Matthias Urlichs.
7201         * Makeconfig [!default_cflags]: Change default value from `-g'
7202         to `-g -O'.
7204         * configure.in: Recognize i686.
7205         * sysdeps/i386/i686/Implies: Default on i586 optimized code.
7207 Thu Aug  8 12:40:20 1996  Matthias Urlichs  <smurf@smurf.noris.de>
7209         * Makeconfig [$(build-omitfp) == yes]: Add to CFLAGS-.so
7210         value of CFLAGS-.o, not CFLAGS-o.
7212         * sysdeps/unix/sysv/linux/init-first.c (init): Add volatile
7213         pointer to ourself.  Otherwise `gcc -O3' optimized init away.
7215 Thu Aug  8 01:41:43 1996  Ulrich Drepper  <drepper@cygnus.com>
7217         * elf/Makefile: Undo change of Tue Aug  6 14:27:11 1996.
7218         * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
7220 Thu Aug  8 01:15:59 1996  Ulrich Drepper  <drepper@cygnus.com>
7222         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
7223         to 0x137f to allow long double operations.
7225 Sun Aug  4 13:12:05 1996  Richard Henderson  <rth@tamu.edu>
7227         Bug Fixes:
7229         * nss/nsswitch.c (_res): Remove redundant variable definition.
7230         The real one is in resolve/res_init.c, and having both prevents
7231         using -fno-common when building the shared library.
7232         * sunrpc/rpc_prot.c (_null_auth): Same.  Original is in rpc_common.c.
7234         * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
7235         a .bss object not a COMMON symbol.
7237         * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
7238         $gp before referencing __sigsetjmp symbol.  Retain LITUSE for same.
7240         Optimizations:
7242         * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
7243         main loop for better dual-issue on EV5.  Rearrange binary search to
7244         pipeline better and trim one instruction.
7246         Cosmetic Changes:
7248         * time/localtime.c (localtime_r): Move lock declaration back next to
7249         the comment where it was before the 960724 change.
7251         * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
7252         The second word is supposed to be the hardware manufacturer.
7254         * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
7255         * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
7257         * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
7259         * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
7260         sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
7261         Same cleanups as with EV4 GMP stuff.
7263 Tue Jul 25 03:30:56 1996  Richard Henderson  <rth@tamu.edu>
7265         * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
7266         * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
7267         * sysdeps/unix/sysv/linux/i386/clone.S: New file.
7269 Sun Aug  4 00:12:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7271         * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
7272         `unsigned long'.
7274         * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
7276 Sat Aug  3 16:20:02 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7278         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
7279         Mikasa.
7281         * socket/sys/socket.h (send, __send, sendto): Declare buffer
7282         pointer as __const.
7284         * string/tester.c (main): Test stpncpy.
7286         * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
7287         segfault when called with an N that is not a multiple of four and
7288         src[N-1]=='\0'.
7290         * misc/syslog.c (LogType): New variable.
7291         (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
7292         try again with SOCK_STREAM (the Linux syslogd uses a socket of the
7293         latter type).
7294         (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
7295         terminator as a record-delimiter.  If __send(LogFile) fails,
7296         call closelog() so logfile gets re-opened next time.
7298 Wed Aug  7 15:15:14 1996  Ulrich Drepper  <drepper@cygnus.com>
7300         * elf/dl-open (_dl_open): Add cast to avoid warning.
7302         * manual/memory.texi: Improve some examples to give readers better
7303         advice: Use `stpcpy' instead of `strcat' if possible.
7304         * manual/string.texi: Document `strtok_r' and `strtok'.
7306         * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
7307         of Makeconfig.
7308         [$(cross-compiling)=no]: Change test before making librpcsvc
7309         to this from $(cross-compile).
7310         Reported by Andreas Schwab.
7312 Tue Aug  6 14:27:11 1996  Ulrich Drepper  <drepper@cygnus.com>
7314         * elf/Makefile (routines): Move dl-sysdep to here...
7315         (rtld-routines): ...from here.  This should make static linking
7316         work again.
7318         * locale/setlocale.c: Add local variable `lock' and add code to
7319         `setlocale' to avoid simultaneous changing of global data.
7321         * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
7322         * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
7323         `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
7324         of unprotected names.
7326 Tue Aug  6 01:13:56 1996  Ulrich Drepper  <drepper@cygnus.com>
7328         Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
7329         This requires to rename several functions to use __ protected
7330         names.
7331         * dirent/dirent.h: Add prototypes of __opendir, __closedir,
7332         and __readdir.
7333         * sysdeps/mach/hurd/closedir.c: Prepend function name with __
7334         and make old name a weak alias.
7335         * sysdeps/mach/hurd/getrlimit.c: Likewise.
7336         * sysdeps/mach/hurd/opendir.c: Likewise.
7337         * sysdeps/mach/hurd/readdir.c: Likewise.
7338         * sysdeps/stub/closedir.c: Likewise.
7339         * sysdeps/stub/opendir.c: Likewise.
7340         * sysdeps/stub/readdir.c: Likewise.
7341         * sysdeps/unix/closedir.c: Likewise.
7342         * sysdeps/unix/opendir.c: Likewise.
7343         * sysdeps/unix/readdir.c: Likewise.
7345         * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
7347         * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
7348         `__closedir' instead of unprotected names.
7350         * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
7351         instead of `isatty' since later is not part of ISO C.
7352         * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
7353         `open' since later is not part of ISO C.
7355         * login/endutent.c (endutent): Call `__endutent_r', not
7356         `endutent_r'.
7357         * login/endutent_r.c: Rename defined function to `__endutent_r',
7358         make `endutent_r' weak alias.
7359         * login/getutent.c (getutent): Call `__getutent_r', not
7360         `getutent_r'.
7361         * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
7362         * login/getutid_r.c: Rename defined function to `__getutent_r',
7363         make `getutent_r' weak alias.
7364         * login/getutline.c (getutline): Call `__getutline_r', not
7365         `getutline_r'.
7366         * login/getutline_r.c: Rename defined function to `__getutline_r',
7367         make `getutline_r' weak alias.
7368         * login/pututline_r.c: Rename defined function to `__pututline_r',
7369         make `pututline_r' weak alias.
7370         * login/setutent.c (setutent): Call `__setutline_r', not
7371         `setutline_r'.
7372         * login/setutent_r.c: Rename defined function to `__setutline_r',
7373         make `setutline_r' weak alias.
7374         Rename `utmpname' to `__utmpname' and make former weak alias.
7375         (__utmpname): Call `__strdup', not `strdup'.
7376         * login/utmp.h: Add prototypes for name space clean reentrant
7377         versions.
7378         * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
7379         and `__endutent_r' instead of unprotected names.
7381         * math/math.h: Add prototype for `__matherr'.
7382         * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
7383         of `matherr'.
7385         * nss/getXXbyYY.c: Call __ protected reentrant function.
7386         * nss/getXXent.c: Likewise.
7387         * nss/getXXbyYY_r.c: Define `get*' function with __ protected
7388         name.  Make usual name a weak alias.
7389         * nss/getXXent_r.c: Likewise.
7391         * posix/unistd.h: Add prototype for `__ttyname_r'.
7392         * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
7393         and make `ttyname_r' a weak alias.
7395         * resource/sys/resource.h: Add prototype for `__getrlimit'.
7396         * sysdeps/stub/getrlimit.c: Prepend function name with __
7397         and make old name a weak alias.
7398         * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
7399         and make `getrlimit' weak alias.
7401         * libc/stdio/stdio.h: Add prototype for `__vscanf'.
7402         * libc/stdio/vscanf.c: De-ANSI-fy.
7403         Rename function to `__vscanf' and make `vscanf' a weak alias.
7404         * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
7405         of `vscanf'.
7407         * stdio-common/reg-printf.c: De-ANSI-fy.
7408         Rename function to `__register_printf_function' and make
7409         `register_printf_function' weak alias.
7411         * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
7412         `wcsrtombs'.
7414         * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
7415         * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
7416         * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
7417         * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
7418         * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
7419         name a weak alias.
7420         * wcsmbs/mbsrtowcs.c: Likewise.
7421         * wcsmbs/wcrtomb.c: Likewise.
7422         * wcsmbs/wcsrtombs.c: Likewise.
7423         * wcsmbs/wchar.h: Add prototypes for __ protected versions.
7425         * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
7426         instead of `sigprocmask'.
7429         * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
7430         version getgrent_r, getgrgid_r, and getgrnam_r.
7431         * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
7432         version getpwent_r, getpwuid_r, getpwnam_r and __ protected
7433         names.
7434         * resolv/netdb.h: Complete rewrite.  No more BSD ugliness.
7437         * misc/error.c (private_strerror): Translate messages from table,
7438         too.
7440         * io/fcntl.h: Pretty printing.
7441         * misc/fstab.h: Likewise.
7442         * misc/ttyent.h: Likewise.
7443         * resource/sys/resource.h: Likewise.
7444         * string/argz.h: Likewise.
7445         * string/envz.h: Likewise.
7447         Add support for symbols from POSIX.1c (POSIX threads).
7448         * posix/getconf.c: Handle new sysconf symbols.
7449         * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
7450         _POSIX_LOGIN_NAME_MAX with minimal maximal values.
7451         * sysdeps/generic/confname.h: Define new symbols.
7452         * sysdeps/posix/sysconf.c: Handle new symbols.
7453         * sysdeps/stub/sysconf.c: Ditto.
7454         * sysdeps/unix/sysv/linux/sysconf.c: Removed.  Generic version
7455         is ok now.
7457         * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
7458         have real prototype.
7460         * sysdeps/generic/resourcebits.h: Add macro definition for
7461         RLIMIT_* values.  Some sources test using #ifdef whether specific
7462         limit is available.
7463         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
7464         * sysdeps/unix/sysv/linux/resourcebits.h: Removed.  We need
7465         separate files for the architectures.
7466         * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
7467         * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
7468         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
7469         * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
7471         * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
7472         and only default on `OPEN_MAX'.
7473         * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed.  Default is already
7474         the POSIX version.
7476         * time/Makefile (routines): Add ctime_r.
7477         * time/asctime.c: Add implementation of `asctime_r'.  Make
7478         `asctime' implementation based on reentrant version.
7479         * time/ctime_r.c: New file.
7480         * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
7481         and `ctime_r'.
7483 Sat Aug  3 18:41:36 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7485         * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
7486         (_nl_C_LC_CTYPE): Fix ordering.
7487         * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
7488         typo.
7490 Sat Aug  3 12:31:06 1996  Richard Henderson  <rth@tamu.edu>
7492         * csu/initfini.c: Discover the maximum alignment generated by the
7493         compiler when emitting a function.
7494         (_init): Make sure the end of the crti fragment is aligned.
7495         (_fini): Likewise.
7497 Fri Aug  2 03:12:40 1996  Ulrich Drepper  <drepper@cygnus.com>
7499         * initfini.c: (__libc_is_static): New variable.  Will be
7500         initialized in init-first.c.  Some actions in the libc work
7501         different when libc is static or dynamic.
7503         * sysdeps/unix/sysv/linux/init-first.c (init): Use
7504         `__libc_is_static' variable to determine whether call to
7505         `personality' and `setfpucw' is necessary.  When done set variable
7506         to +-1 depending on library type.
7508         * locale/setlocale.c (setlocale): Use global variable
7509         `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
7510         determine whether it's a SET[UG]ID program.
7512 Fri Aug  2 14:40:22 1996  Roland McGrath  <roland@fast.cs.utah.edu>
7514         * Version 1.93 test release.
7516         * manual/Makefile: Use -include for chapters-incl too.
7518         * Makeconfig (+link): Add back start.o, mistakenly removed in last
7519         change.
7521 Fri Aug  2 01:04:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7523         * nss/Makefile (generated): Add db-*.c.
7525         * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
7526         using #include_next.
7528         * configure.in (--enable-add-ons): Quote m4 macro args.
7530         * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
7532 Thu Aug  1 14:40:03 1996  Roland McGrath  <roland@fast.cs.utah.edu>
7534         * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
7536         * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
7538         * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
7539         (+link): Not here.
7541         * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
7542         warning when inline function is elided.
7543         * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
7544         (elf_machine_runtime_setup): Likewise.
7545         * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
7546         * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
7547         (elf_machine_load_address): Likewise.
7549         * catgets/gencat.c: Include <locale.h>.
7551         * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
7553         * login/logwtmp.c (logwtmp): Call time, not __time.
7555         * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
7556         * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
7557         * login/logwtmp.c (logwtmp): Likewise.
7559         * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
7560         comparing ioctl macro values.
7562         * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
7564         * manual/Makefile: Use -include for chapters to suppress warning.
7566         * sysdeps/stub/socket.c: Fix type of TYPE arg.
7567         * sysdeps/stub/socketpair.c: Likewise.
7569         * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
7571         * sysdeps/generic/sysdep.h: New file, broken out of ...
7572         * sysdeps/unix/sysdep.h: ... here.
7573         (C_LABEL): Moved out.
7575         * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
7576         stick to sed.  Do `exit 0' at end because while returns nonzero.
7578         * sysdeps/i386/sysdep.h: New file, broken out of ...
7579         * sysdeps/unix/i386/sysdep.h: ... here.  Generic asm macros moved out.
7581         * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
7582         They are defined unconditionally in libio/stdio.h.
7584         * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
7585         * elf/dl-cache.c: Likewise.
7587 Mon Jul 29 19:20:05 1996  Ulrich Drepper  <drepper@cygnus.com>
7589         * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
7590         (sysdep_headers): Add sys/sysmacros.h.
7591         * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
7593 Wed Jul 31 14:21:36 1996  Ulrich Drepper  <drepper@cygnus.com>
7595         * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
7596         tcgetattr.  We have weak aliases now.
7597         * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
7598         "optimizations" for random functions.
7600 Mon Jul 29 20:33:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7602         * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
7603         htons) [__BIG_ENDIAN]: #undef them before defining to avoid
7604         redefinition warning.
7606 Mon Jul 29 20:28:27 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7608         * time/time.h: Don't optimize tzset() to __tzset() which bypasses
7609         the __tzset_lock.
7611 Tue Jul 30 15:14:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7613         * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
7614         protection.
7616 Tue Jul 30 02:48:28 1996  Ulrich Drepper  <drepper@cygnus.com>
7618         * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
7619         to be 64-bit clean.
7620         Reported by Richard Henderson <rth@tamu.edu>.
7622 Tue Jul 30 15:04:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7624         * locale/programs/ld-collate.c (collate_output): Fix typo reported by
7625         David Miller.
7627 Tue Jul 30 13:23:13 1996  Ulrich Drepper  <drepper@cygnus.com>
7629         * locale/setlocale.c (setlocale): Don't try to free C locale
7630         data.
7631         Reported by Matthias Urlichs.
7633 Tue Jul 30 14:35:17 1996  Miles Bader  <miles@gnu.ai.mit.edu>
7635         * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
7636         (open_file): New function, contents mostly from __open.
7637         (_dl_sysdep_read_whole_file): New function.
7639 Sat Jul 27 11:23:59 1996  Miles Bader  <miles@gnu.ai.mit.edu>
7641         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
7642         `..' dots in sed search string.
7644 Mon Jul 29 01:27:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7646         * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
7647         protection.
7649 Sun Jul 28 23:46:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7651         * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
7652         in those directories.
7653         * config.make.in (add-ons): New varaible, set from @subdirs@.
7654         * Makefile (subdirs): Added $(add-ons) at the end.
7656         * time/strftime.c (strftime: do_number): Initialize PRINTED to
7657         MAXDIGITS in case P is null and so sprintf is never actually called.
7659 Mon Jul 29 02:46:23 1996  Ulrich Drepper  <drepper@cygnus.com>
7661         Add support for the to-be-written internationalized regexp.
7662         This code must be able to use collation symbols and collation
7663         equivalent classes.
7664         * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
7665         _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
7666         New global variables for collation classes.
7667         * locale/categories.def: Add new descriptions for collation symbols
7668         and collation classes.
7669         * locale/langinfo.h: Add constants for collation symbols and
7670         collation classes.
7671         * locale/lc-collate.c: Add new global variables for collation symbols
7672         and collation classes.
7673         (_nl_postload_collate): Initialize new variables.
7674         * locale/programs/ld-collate.c: Add code to emit tables for
7675         collation symbols and collation classes.
7676         * locale/programs/locales.h: Change prototype for `collate_output'.
7677         * locale/programs/locfile.c (write_all_categories): Call
7678         `collate_output' with new argument.
7679         * locale/localeinfo.h: Add declaration for new global vars.
7680         (union locale_data_value): New member wstr for `wchar_t' strings.
7681         * locale/programs/locale-spec.c: Handle `collate-classes'
7682         keyword and print information about available collation classes.
7683         * locale/strlen-hash.h: New file.  Simple hashing function which
7684         takes a string with known length.
7685         * locale/Makefile (distribute): Add strlen-hash.h.
7686         (locale-modules): New var.  Additional files for `locale' program.
7688         * locale/C-ctype.c: Rewrite to avoid using string for giving values
7689         which are of type `u_int32_t'.
7690         Correct entry for EOF in toupper and tolower tables.
7692         * locale/loadlocale.c (_nl_load_locale):  Add cast to prevent
7693         warning.
7695         * locale/programs/ld-ctype.c (ctype_output): Add code to make
7696         sure that all tables in binary file are word-aligned.
7698         * locale/programs/locfile.c (write_locale_data): Correct handling
7699         of LC_MESSAGES locale.  Create directory if necessary.
7701         * locale/setlocale.c (setlocale): Add cast to avoid warning.
7703         * string/string.h: Add prototype for `__strndup'.
7705 Wed Jul 24 19:10:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7707         * wcsmbs/mbrtowc.c: Remove unused variable.
7709 Sun Jul 28 22:40:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7711         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
7712         2.0.10; some problems were reported with an earlier version, and this
7713         one is known to work.
7715         * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
7716         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
7718 Sat Jul 27 13:02:09 1996  Ulrich Drepper  <drepper@cygnus.com>
7720         * elf/rtld.c (dl_main): Ignore arguments when environment variable
7721         LD_TRACE_LOADED_OBJECTS is set.
7723 Sun Jul 28 19:42:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7725         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
7726         __libc_enable_secure instead of _dl_secure.
7727         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
7728         * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
7729         of _dl_secure.
7730         * elf/Makefile (routines): Add enbl-secure.
7731         (elide-routines.so): Here too.
7732         * sysdeps/generic/enbl-secure.c: New file.
7733         * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
7734         * elf/dl-support.c (_dl_secure): Variable removed.
7735         * elf/rtld.c: Likewise.  Replace all uses with __libc_enable_secure.
7737 Sun Jul 28 19:26:40 1996  David S. Miller  <dm@neteng.engr.sgi.com>
7739         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
7740         Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
7741         compiler doesn't elide it.
7742         (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
7744 Sat Jul 27 02:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7746         * elf/rtld.c (dl_main): Take new option --verify when run directly.
7747         In verify mode, exit with status zero iff the argument object's
7748         PT_INTERP matches argv[0].
7749         * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
7750         exits with zero status.  This makes `ldd' secure again.
7752 Fri Jul 26 22:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
7754         * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
7755         environment variable handling.  This makes the dynamic linker
7756         only print loaded libraries and quit.
7758         * elf/ldd.sh.in: Don't use `rtld --list' but instead
7759         LD_TRACE_LOADED_OBJECTS environment variable to print needed
7760         objects.
7762 Sat Jul 27 02:03:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7764         * db/makedb.c (main): Print version on stdout, not stderr.  Don't exit
7765         after printing version until after doing usage for --help.
7766         (long_options, main, usage): Rename -l/--lowercase option to
7767         -f/--fold-case (-f matches sort).
7769 Sat Jul 27 04:32:31 1996  Ulrich Drepper  <drepper@cygnus.com>
7771         * db/makedb.c: New file.  Implement program to create simple <db.h>
7772         database from textual input.  This will be used for nss_db.
7774 Sat Jul 27 01:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7776         * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
7777         * sunrpc/rpc/pmap_clnt.h: Likewise.
7778         * sunrpc/rpc/auth.h: Likewise.
7779         * sunrpc/rpc/pmap_rmt.h: Likewise.
7780         * sunrpc/rpc/rpc_msg.h: Likewise.
7782 Sat Jul 27 04:37:34 1996  Ulrich Drepper  <drepper@cygnus.com>
7784         * string/string.h (strndupa): Change to use return value of
7785         `memcpy' for more performance.
7786         * string/strndup.c: Likewise.
7788         * string/string.h (strdupa): Don't call __builtin_alloca in argument.
7789         This might lead to problems.
7790         (strndupa): Likewise.
7792 Fri Jul 26 15:24:25 1996  Ulrich Drepper  <drepper@cygnus.com>
7794         * sunrpc/rpc/auth.h: Add protection against multiple inclusion
7795         and change K&R prototypes to ANSI prototypes.
7796         * sunrpc/rpc/auth_unix.h: Ditto.
7797         * sunrpc/rpc/clnt.h: Ditto.
7798         * sunrpc/rpc/pmap_clnt.h: Ditto.
7799         * sunrpc/rpc/pmap_prot.h: Ditto.
7800         * sunrpc/rpc/pmap_rmt.h: Ditto.
7801         * sunrpc/rpc/rpc_msg.h: Ditto.
7802         * sunrpc/rpc/svc.h: Ditto.
7803         * sunrpc/rpc/svc_auth.h: Ditto.
7804         * sunrpc/rpc/xdr.h: Ditto.
7806 Fri Jul 26 20:39:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7808         * ctype/test_ctype.c: Test EOF too.
7810 Fri Jul 26 18:06:58 1996  Ulrich Drepper  <drepper@cygnus.com>
7812         * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
7813         * sunrpc/rpc/auth_unix.h: Likewise.
7814         * sunrpc/rpc/clnt.h: Likewise.
7815         * sunrpc/rpc/netdb.h: Likewise.
7816         * sunrpc/rpc/pmap_clnt.h: Likewise.
7817         * sunrpc/rpc/pmap_prot.h: Likewise.
7818         * sunrpc/rpc/rpc_msg.h: Likewise.
7819         * sunrpc/rpc/svc.h: Likewise.
7820         * sunrpc/rpc/svc_auth.h: Likewise.
7821         * sunrpc/rpc/xdr.h: Likewise.
7823         * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
7824         to here from...
7825         * sunrpc/pmap_rmt.c: ...here.
7827 Fri Jul 26 16:10:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
7829         * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
7830         valid ut_id field.
7831         * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
7832         if a search fails.
7834 Fri Jul 26 00:36:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7836         * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
7837         <kkojima@info.kanagawa-u.ac.jp>.
7839 Fri Jul 26 04:41:28 1996  Ulrich Drepper  <drepper@cygnus.com>
7841         * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
7842         defined, not __OPTIMIZED.
7843         (_nl_msg_cat_cntr): Move declaration outside macro definition
7844         to prevent "nested extern" warning.
7845         (dcgettext): Rename local variable `result' to `__result'.
7847 Thu Jul 25 22:46:30 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7849         * locale/programs/localedef.c (__progname): Remove decl.
7850         (main): Use program_invocation_short_name instead of __progname.
7851         (usage): Use program_invocation_name instead of __progname.
7853 Fri Jul 26 03:46:08 1996  Ulrich Drepper  <drepper@cygnus.com>
7855         * catgets/gencat.c: Use "libc" instead of PACKAGE.
7856         * locale/localedef.c: Ditto.
7857         * locale/locale.c: Ditto.
7859         * locale/findlocale.c (_nl_find_locale): Little optimization.
7860         Use new function `strndup'.
7862         * locale/loadlocale.c: Little optimization.  Use constant value
7863         from `_nl_category_num_items' instead of byte-order dependend
7864         value from file.
7866         * locale/programs/ld-time.c (time_add): Correct string constant.
7868         * locale/programs/locale-spec.c: New file.
7869         * locale/programs/locale.c: Call `locale_special' function if
7870         no other field matches.
7872         * locale/programs/localedef.c: No need to define `program_name'.
7873         Use global variable `__progname'.
7875         * locale/programs/locfile.c (write_locale_data): Always write
7876         LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file.  This is
7877         necessary since message catalogs are also installed in the
7878         LC_MESSAGES/ directory.
7880         * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
7881         function instead of writing single bytes.
7882         (encode_char): Also handle little endian.
7884         * locale/setlocale.c (new_composite_name): Little optimization.
7885         Use return value of `memcpy'.
7887         * misc/ttyent.h: Pretty print prototypes, add missing parameter
7888         names, prepend parameter names with __  and use `__const' instead
7889         of `const'.
7890         * posix/unistd.h: Ditto.
7891         * stdlib/stdlib.h: Ditto.
7892         * string/string.h: Ditto.
7894         * posix/getconf.c: De-ANSI-fy.  Recognize POSIX.2 constant names.
7895         Use `error' function instead of doing it by hand.
7896         * sysdeps/posix/sysconf.c: De-ANSI-fy.
7897         Handle _SC_COLL_WEIGHTS_MAX.
7898         * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
7899         _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
7900         since these do not depend on the platform.
7901         Add POSIX.4 symbols.
7903         * posix/posix2_lim.h: Add missing definition of
7904         _POSIX2_COLL_WEIGHTS_MAX.
7905         Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
7906         to high values since we have no fixed limit.
7908         * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
7909         _SC_PAGESIZE for buggy systems (= HP UX) out there.
7911         * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
7912         * wcsmbs/mbsnrtowcs.c: New file.  Non-standard implementation.
7913         * wcsmbs/wcsnrtombs.c: Ditto.
7914         * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
7915         wcsnrtombs.
7917 Thu Jul 25 00:25:54  Richard Henderson  <rth@tamu.edu>
7919         * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
7920         course.
7921         * nss/getXXent_r.c: Likewise.
7922         * nss/nsswitch.c: Likewise.
7923         * nss/nss_files/files-XXX.c: Likewise.
7924         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
7925         * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
7926         * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
7928 Thu Jul 25 00:53:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7930         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
7931         macro, now put the needed Linux version just once, here; update to
7932         needing linux-2.0.3 headers.
7933         (libc_cv_linuxVER): New macro derived from that.
7934         (kernel header check): Use those macros and some m4 magic to replace
7935         hard-coded `201' and `2.0.1' in several places.
7937         * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
7939 Wed Jul 24 17:02:30 1996  Ulrich Drepper  <drepper@cygnus.com>
7941         * time/localtime.c: Move lock variable declaration to end of
7942         variable declarations since if is a dummy macro the ; at the
7943         end terminates the variable section of the function.
7945         * time/tzset.c: Undefine `tzset' before function declaration.
7946         Use `weak_function' macro instead of `weak_symbol'.
7948 Wed Jul 24 18:57:33 1996  Ulrich Drepper  <drepper@cygnus.com>
7950         * stdlib/strtouq.c: Additional weak alias is `strtoull', not
7951         `strotull'.
7953 Wed Jul 24 18:26:23 1996  Ulrich Drepper  <drepper@cygnus.com>
7955         * locale/C-ctype.c: Increment number of fields after change
7956         from Wed Jun 19 03:24:58 1996.
7958 Tue Jul 23 18:13:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7960         * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
7961         ($(common-objpfx)libc.so): Move deps into that, use it.
7962         [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
7963         $(rpcuserlibs:.so=_pic.a).
7964         * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
7965         use $(LDLIBS-c.so).
7967 Thu Jul 18 21:41:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7969         * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
7970         n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
7972 Tue Jul 23 02:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
7974         * locale/iso-4217.def: Add India to comment for symbol "INR ".
7975         Reported by Raja R Harinath  <harinath@cs.umn.edu>.
7977 Sat Jul 20 14:03:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7979         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
7980         #undef RESOLVE.
7982 Sun Jul 21 06:48:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
7984         * time/tzset.c: Include <libc-lock.h>.
7985         (__tzset_lock): New lock variable.
7986         (tzset): New function (weak defn), no longer weak alias for __tzset.
7987         Call __tzset while holding __tzset_lock.
7988         * time/localtime.c: Include <libc-lock.h>.
7989         (__localtime_r): Hold __tzset_lock while doing the work.
7991         * sysdeps/generic/setenv.c (__environ): Change conditional for #define
7992         from [!HAVE_GNU_LD] to [!_LIBC].
7993         [_LIBC]: Include <libc-lock.h> and define a lock.
7994         (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
7995         (setenv, unsetenv): Use them.
7997 Sun Jul 21 01:44:39 1996  Miles Bader  <miles@gnu.ai.mit.edu>
7999         * locale/programs/locfile.c (write_locale_data): Deal with missing
8000         UIO_MAXIOV.
8002         * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
8003         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
8005 Sat Jul 20 21:55:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8007         Win32 hacks from <Rob_Tulloh@tivoli.com>.
8008         * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
8009         use void * for my_realloc; include <malloc.h> for alloca.
8010         (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
8011         * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
8012         * posix/glob.h: Likewise.
8014 Sat Jul 20 13:28:52 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8016         * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
8017         call __io_select unless there's only a single descriptor, as each
8018         descriptor now has its own reply port.
8019         If there is only a single descriptor, just use its reply port for
8020         everything and don't bother creating the port set.
8022         * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
8023         <unistd.h>: New include.
8025         * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
8026         continuation line.
8028 Sat Jul 20 07:15:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8030         * crypt/Makefile, crypt/nocrypt.c: Removed.  It is illegal to export
8031         from the USA any software that even makes it easy to drop in an
8032         encryption module of foreign origin.
8033         * Makerules (cryptobjdir): Variable removed.
8034         ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
8035         * Makefile (subdirs): Remove crypt.
8037 Fri Jul 19 15:45:20 1996  Ulrich Drepper  <drepper@cygnus.com>
8039         * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
8040         operator to yesexpr and noexpr string.
8042 Fri Jul 19 15:10:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8044         * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
8045         old code would have failed on a big-endian 64-bit architecture).
8046         * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
8048         * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
8049         (xdr_u_long): Use switch instead of chain of if-statements.
8050         Remove gratitous parentheses around return expressions.
8051         (xdr_enum): Open code case where INT_MAX<LONG_MAX.
8053         * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
8055         * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
8056         not int.
8058 Fri Jul 19 16:56:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8060         * dlfcn.h, db.h: New wrapper headers.
8062         * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
8063         for `struct stat;' forward decl.
8065 Fri Jul 19 22:25:19 1996  Ulrich Drepper  <drepper@cygnus.com>
8067         * locale/iso-4217.def: Add some more standardized currency
8068         symbols.
8070 Fri Jul 19 13:18:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8072         * hurd/report-wait.c (describe_number): Use unsigned long int for J.
8074 Thu Jul 18 12:33:57 1996  Roland McGrath  <roland@baalperazim.frob.com>
8076         * Rules (dummy.o, empty.o): Targets removed.
8077         (dummy.c, empty.c): New targets replace them.
8079 Thu Jul 18 11:42:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8081         * crypt/Makefile (lib-noranlib): Depend on
8082         $(objpfx)libcrypt.so$(libcrypt.so-version).
8083         (subdir): Fix name.
8085 Thu Jul 18 04:33:21 1996  Roland McGrath  <roland@baalperazim.frob.com>
8087         * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
8088         check.  mib's clueless hacking broke it.
8090 Thu Jul 18 04:27:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8092         * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
8094 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8096         * misc/sys/ustat.h: New file.
8097         * misc/ustat.h: Ditto.
8098         * sysdeps/generic/ustatbits.h: Ditto.
8099         * sysdeps/stub/ustat.c: Ditto.
8100         * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
8101         * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
8102         ustatbits.h.
8103         (routines): Mention ustat.
8105         * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
8106         * sysdeps/alpha/elf/start.S: here.
8108         * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
8109         alphabetically correct place.  Mention ustat.
8111         * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
8112         common symbol (makes errno accessible from gdb).
8114         * login/pututline_r.c (pututline_r): Test ut_id in repositioning
8115         test, not ut_type.
8117         * login/logwtmp.c (logwtmp): Reimplemented.  Must ensure that a
8118         record always gets appended at end of file (wtmp is a log file,
8119         after all).  Set ut_type to DEAD_PROCESS if name is empty.
8121         * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
8122         separate loop from search for UT_ID.  Fix code so it is in
8123         sync with Unix man page.
8125         * login/getutline_r.c (getutline_r): Stop searching only if
8126         ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
8128 Tue Jul 16 15:06:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8130         * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
8131         avoid duplicate declarations.
8133 Sun Jul 14 19:08:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8135         * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
8136         and alpha-gnu-linuxecoff targets.
8138 Fri Jul 12 16:58:44 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8140         * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
8142 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8144         * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
8145         of int.
8147         * resolv/res_comp.c (res_hnok): Use empty statement in place
8148         of NULL (which generates a "useless expression" warning in
8149         gcc).
8151 Wed Jul 17 23:56:35 1996  Roland McGrath  <roland@baalperazim.frob.com>
8153         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
8154         with $(..) in output.
8156 Wed Jul 17 21:53:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8158         * elf/Makefile (dl-routines): Add dl-cache.
8159         * elf/dl-cache.c: New file.
8160         * elf/dl-load.c (_dl_map_object): Check cache before default path.
8162 Wed Jul 17 20:41:30 1996  Ulrich Drepper  <drepper@cygnus.com>
8164         * stdio-common/vfscanf.c: Major change.  Now read character
8165         from stream only if needed.  Before it was read after the
8166         previous character was used.
8167         Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
8169         * stdio-common/tstscanf.c: Change test program so that return
8170         value is != 0 if one test failed.
8172 Wed Jul 17 17:08:48 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8174         * sysdeps/m68k/Makefile (crypt): Variable removed.
8175         * sysdeps/sparc/Makefile: Likewise.
8177         * version.h (VERSION): Update to 1.93.
8179         * Makerules ($(libdir)/libc.so): Depend on
8180         $(common-objpfx)libcrypt.so$(libcrypt.so-version).
8182         * crypt/nocrypt.c: New file.
8183         * Makefile (subdirs): Add crypt.
8184         * crypt/Makefile: New file.
8186         * Makerules (soversions.mk): Move this target, include of it, and
8187         include of version.mk to ...
8188         * Makeconfig: ... here.
8189         (soversions.mk): Depend on Makeconfig instead of Makerules.
8191         * shlib-versions (*-*-*): Set libcrypt=0.
8193 Wed Jul 17 11:29:26 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8195         * stdio/linewrap.c (lwupdate): Fix boundary condition where a
8196         word extends right up to rmargin.
8198         * stdio/linewrap.c (lwupdate): When we've done a word wrap and
8199         output the wrap margin, set point_col to wmargin.
8200         Use negative point_col to deal with a wmargin of 0.
8201         (line_wrap_point): Return 0 for a negative point_col.
8202         (line_wrap_stream): Make wmargin ssize_t.
8203         * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
8204         point_col ssize_t.
8205         (line_wrap_stream): Make wmargin ssize_t.
8206         (line_wrap_point): Return 0 for a negative point_col.
8208 Wed Jul 17 02:43:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8210         * shlib-versions (*-*-gnu*): Set libc=0.0
8212 Tue Jul 16 01:52:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8214         * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
8215         sysdeps/i386/dl-machine.h.
8217 Tue Jul 16 00:18:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8219         * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
8220         to fiddle __put_limit in conjunction with __linebuf_active.
8222 Tue Jul 16 00:14:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8224         * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
8225         to the strong name, not the file name.
8227 Tue Jul 16 16:43:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8229         * csu/initfini.c: More magic.  Detect if .end is produced and put it
8230         in the output iff the compiler does.
8232         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
8233         because that is broken on alpha.
8235         * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
8236         call as in first.
8238         * Makerules (make-link): Install the new link with atomic mv -f in
8239         case ln itself requires the library being installed.
8241 Tue Jul 16 00:31:31 1996  Richard Henderson  <rth@tamu.edu>
8243         * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
8244         i386/dl-machine.h of 960713.
8246         * sysdeps/generic/dl-sysdep.c:  Include <sys/mman.h>.
8247         (_dl_sysdep_read_whole_file): Fix result variable declaration.
8249 Tue Jul 16 00:53:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8251         * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
8252         `nodename' member.
8254 Mon Jul 15 17:23:53 1996  Ulrich Drepper  <drepper@cygnus.com>
8256         * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
8257         with pointer to local variable instead of NULL.
8259 1996-07-15  Paul Eggert  <eggert@twinsun.com>
8261         * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
8263 Sat Jul 13 09:53:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8265         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
8266         that are already added by other means.
8268         * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
8269         caller column to get those syscalls added automagically.
8271 Mon Jul 15 12:24:54 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8273         * login/logout.c (logout): Initialize DATA to a state that will
8274         make setutent_r happy.
8276 Sun Jul 14 01:51:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8278         * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
8279         instead of setting the DT_DEBUG pointer.
8281         * csu/initfini.c (_init, _fini): Generate .end directives after
8282         standalone prologues and filter them out from epilogues.
8284         * Makeconfig (rtld-installed-name): Set to ld.so.1.
8285         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
8286         removed.
8288         * manual/Makefile (glibc-targets): Remove subdir_ from elts.
8290         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
8292         * MakeTAGS (extract): Pass --add-comments=TRANS.
8293         * sysdeps/gnu/errlist.awk: Write comments into the output with the
8294         descriptive paragraphs from the manual preceded by TRANS.
8296         * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
8297         (_dl_start): Move RESOLVE defn inside this function and #include
8298         "dynamic-link.h" a second time there.
8299         [RTLD_START]: Move use of this after _dl_start function.
8301         * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
8303         * elf/rtld.c: Include <string.h>.
8305         * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
8306         ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
8307         Conditionalize defns on [RESOLVE].
8308         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
8309         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8310         Instead use RESOLVE macro with same args.
8311         (elf_machine_rel): Conditionalize defn on [RESOLVE].
8312         * elf/dl-reloc.c (RESOLVE): New macro, define before including
8313         "dynamic-link.h".  It replaces `resolve' local function.
8314         * elf/dl-runtime.c: Likewise.
8315         * elf/rtld.c: Likewise.
8317         * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
8319         * elf/dl-open.c (_dl_open): Force an indirect call for
8320         _dl_relocate_object so there is no chance a PLT fixup will be done
8321         and clobber _dl_global_scope before our call happens.
8323         * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
8324         to =t; must operate on top of fp reg stack, not second from top.
8325         Correct input constraint to 0 from t; must be explicit when input and
8326         output are the same register.
8327         (floor): Use __volatile instead of volatile.
8328         (ceil): Likewise.
8330         * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
8331         other targets.
8333 Sat Jul 13 23:50:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8335         * manual/Makefile (lib): New phony target.  Depend on stamp files.
8336         ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
8338 1996-07-13  Paul Eggert  <eggert@twinsun.com>
8340         * time/strftime.c (strftime): Use space padding for %e, %k, %l,
8341         to match Emacs format-time-string specification.
8342         (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
8344 Sat Jul 13 20:17:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8346         * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
8347         NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
8348         between MAP and its deps.
8349         * elf/link.h: Fix decl.
8350         * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
8351         colon-separated list of names, map those and pass vector of ptrs as
8352         PRELOADS list to _dl_map_object_deps.
8353         * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
8354         _dl_map_object_deps with empty preload list.
8355         * elf/dl-open.c (_dl_open): Likewise.
8357         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
8358         removed.
8359         (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
8360         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
8361         Conditionalize defn on [! MAP_ANON].
8362         * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
8363         on [! MAP_ANON].
8364         * elf/rtld.c (dl_main): Likewise.
8365         * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
8366         (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
8368         * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
8370 Sat Jul 13 02:47:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8372         * stdlib/random.c (__random): Declare as int32_t to be in sync
8373         with declaration.
8375         * socket/Makefile (headers): Add socketbits.h.
8377         * misc/mntent.c (endmntent): Allow for NULL stream.  SunOS does
8378         it that way.
8380         * grp/initgroups.c (initgroups): Add groups that user is a member
8381         of, not the ones he is _not_ a member of.
8383         * nss/nsswitch.c (known_compare): Make known_compare() a static
8384         instead of a local function.  The latter are difficult to debug
8385         and slow to execute on certain platforms.
8387         * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
8388         place of sizeof (dev).  The size of a literal string includes the
8389         NUL byte.
8391         * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
8393 Thu Jul 11 16:59:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8395         * misc/mntent.c (addmntent): Seek to end of file before writing
8396         entry.  Return 1 on error, not -1.
8398 Tue Jul  9 19:08:05 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8400         * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
8401         syscall.
8403 Fri Jul  5 18:44:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8405         * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
8406         shift amount for Jensen must be 5 not 4.
8408 Sat Jul 13 20:04:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8410         * socket/sys/socket.h (struct osockaddr): New type.
8412 Sat Jul 13 03:50:53 1996  Ulrich Drepper  <drepper@cygnus.com>
8414         * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
8415         * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
8416         and `long double' versions can be generated.
8417         * misc/qefgcvt.c, misc/qefgcvt_r.c: New files.  Define macros
8418         so that included efgcvt{,_r}.c file generate `long double'
8419         versions.
8420         * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
8421         functions.
8423         * manual/startup.texi: Document new getsubopt function.
8424         * manual/examples/subopt.c: New example program for documenting
8425         getsubopt function.
8427 Fri Jul 12 23:58:37 1996  Ulrich Drepper  <drepper@cygnus.com>
8429         * stdlib/Makefile (routines): Add getsubopt.
8430         * stdlib/stdlib.h: Add prototype for getsubopt.
8431         * stdlib/getsubopt.c: New file.  Implement getsubopt function
8432         to handle suboption parsing.
8434 Thu Jul 11 20:09:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8436         * inet/getnetent_r.c: Define NEED_H_ERRNO.
8437         * inet/getnetbynm_r.c: Likewise.
8438         * inet/getnetent.c: Likewise.
8439         * inet/getnetbyad_r.c: Likewise.
8440         * inet/getnetbyad.c: Likewise.
8441         * inet/getnetbynm.c: Likewise.
8443         * sysdeps/generic/pselect.c: Include <sys/time.h>.
8445         * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
8446         `struct timespec'.
8448         * math/Makefile (calls): Add s_frexp, s_ldexp.
8449         (routines): Remove them and &f from here.
8451         * sys/socket.h: New file, wrapper for socket/sys/socket.h.
8453         * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
8454         and check it.
8456         * nss/nss_files/files-XXX.c: Comment fix.
8458 Fri Jul 12 01:28:35 1996  Ulrich Drepper  <drepper@cygnus.com>
8460         * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
8461         of reentrant function.
8462         (setup): Pass additional argument with function name we are
8463         looking for.
8464         (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
8465         new argument {SET,END,GET}FUNC_NAME_STRING.
8467         * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
8468         we return a pointer.
8470 Thu Jul 11 18:20:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8472         * nss/nss_files/files-parse.c: Add comment about things to #define.
8474         * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
8476         * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
8477         terminator char as an error.
8479         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
8481 Thu Jul 11 03:21:10 1996  Ulrich Drepper  <drepper@cygnus.com>
8483         * catgets/gencat.c (write_out): Move code to determine new
8484         best size out of inner loop.
8486 Thu Jul 11 00:22:40 1996  Ulrich Drepper  <drepper@cygnus.com>
8488         * sysdeps/libm-ieee754/s_frexpl.c: New file.  `long double'
8489         implementation of frexp() function.
8490         * sysdeps/libm-ieee754/s_ldexpl.c: New file.  `long double'
8491         implementation of ldexp() function.
8493         * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
8494         out before or'ing.
8496 Wed Jul 10 05:24:40 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8498         * misc/mntent.c: Include <sys/types.h>.
8499         (endmntent): Return 1 one success, 0 on failure.
8500         (getmntent): Chop newline and ignore empty lines.
8502 Mon Jul  8 21:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8504         * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
8505         differently based on [RTLD_BOOTSTRAP].
8506         (elf_machine_rela): Use it instead of the fn ptr arg directly.
8508 Tue Jul  9 09:37:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8510         * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
8511         __glob_closedir_hook): Remove decls.
8513         * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
8515         * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
8516         for send and connect syscalls.
8518         * socket/sys/socket.h: New file, taken from non-sysdep parts of
8519         linux/sys/socket.h; break sysdeps parts out into socketbits.h.
8520         Declare __ names for send and connect.
8521         * sysdeps/generic/socketbits.h: New file.
8522         * sysdeps/unix/sysv/linux/socketbits.h: New file.
8523         * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
8524         * sysdeps/generic/sys/socket.h: File removed.
8526         * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
8527         * sysdeps/mach/hurd/send.c: Likewise.
8529         * sysdeps/mach/libc-lock.h: New file.
8530         * sysdeps/unix/readdir.c: Do locking.
8531         * sysdeps/unix/seekdir.c: Likewise.
8532         * sysdeps/unix/rewinddir.c:  Likewise.
8533         * sysdeps/unix/closedir.c: Likewise.
8534         * sysdeps/unix/bsd/telldir.c: Likewise.
8535         * sysdeps/mach/hurd/seekdir.c: Likewise.
8536         * sysdeps/mach/hurd/readdir.c: Likewise.
8537         * sysdeps/mach/hurd/closedir.c: Likewise.
8538         * sysdeps/mach/hurd/opendir.c: Initialize the lock.
8539         * sysdeps/unix/opendir.c: Likewise.
8540         * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
8541         (struct __dirstream): Add lock member using __libc_lock_define.
8542         * sysdeps/unix/dirstream.h: Likewise.
8544         * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
8546         * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
8548         * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
8550 Thu Jul  4 01:34:04 1996  Ulrich Drepper  <drepper@cygnus.com>
8552         * locale/programs/stringtrans.c: Fix typo in copyright.
8554         * stdio-common/printf-prs.c: Add casts to prevent
8555         signed<->unsigned warnings.
8557         * stdio-common/printf-parse.h: Initialize state variable before
8558         calling mbrlen.
8559         * stdio-common/printf-prs.c: Don't initialize state variable here.
8560         * stdio-common/vfprintf.c: Don't initialize state variable.
8561         (vfprintf): While determining length of multibyte string don't
8562         try to be clever in determining characters to use for first
8563         call.
8565         Add real implementation of multibyte<->wide char conversion
8566         functions.  The functions always convert between the fixed wide
8567         char format (ISO 10646 in UCS4) and the UTF8 representation of
8568         this character set.  Conversion between the currently used
8569         8bit character set and ISO 10646 will not take place.  This is
8570         what iconv() is for.
8571         * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
8572         dummy definition.
8573         Add optimized version of `mbrlen' function.
8574         * wcsmbs/btowc.c (btowc): Restrict range of legal characters
8575         to 0...0x7f.
8576         * wcsmbs/wctob.c (wctob): Restrict range of legal characters
8577         to 0..0x7f.
8578         * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
8579         This is needed in the wchar.h header.
8580         * wcsmbs/mbrtowc.c: Replace dummy implementation.  Convert UTF8
8581         encoded character to UCS4.
8582         * wcsmbs/mbsinit.c: Replace dummy implementation.  Test COUNT
8583         element of `mbstate_t' for initial state.
8584         * wcsmbs/mbsrtowcs.c: Replace dummy implementation.  Convert UTF8
8585         encoded string to UCS4 string.
8586         * wcsmbs/wcrtomb.c: Replace dummy implementation.  Convert UCS4
8587         character to UTF8 encoded form.
8588         * wcsmbs/wcsrtombs.c: Replace dummy implementation.  Convert UCS4
8589         encoded string to UTF8 encoded form.
8591 Tue Jul  9 06:19:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8593         * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
8594         variable name, so new a libc with new requirements won't fail to
8595         notice an insufficient Linux version.
8597         * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
8599         * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
8600         instead of 2.0 headers.
8602         * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
8604         * sysdeps/gnu/errlist.awk: Undo mib's bogus changes.  The
8605         sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
8607         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
8608         before using it in lhs of weak_alias.
8610         * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
8611         Call __nss_lookup when not setting STARTP.
8612         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
8613         function-calling loop.
8615 Tue Jul  9 00:14:52 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
8617         * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
8618         PENDIN, NOFLSH): Undefine these at start if they are already
8619         defined to avoid collision with termbits.h.
8620         * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
8621         (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
8623 Mon Jul  8 13:37:40 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8625         * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
8626         already defined to float, long double.  Use those macros for _Mdouble_
8627         defns when including mathcalls.h.
8628         * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
8629         -D_Mlong_double_=double.
8631         Add more -lm functions to -lc because ldexp uses them.
8632         * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
8633         (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
8634         ldexp have both f and l code, and those have f though not l code.
8636 Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
8638         * sysdeps/mach/hurd/errnos.awk: Skip entries where the
8639         error is 0.  The "placeholder" entries recently added to
8640         errno.texi convert to zero since `???/' is at the front of them.
8641         * sysdeps/gnu/errlist.awk (errnoh): Likewise.
8643         * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
8644         __const to conform with unistd.h.
8646         * stdlib/stdlib.h (random): Declare return type to be int32_t.
8648         * string/argz-delete.c (argz_delete): Use memmove instead of
8649         memcpy for possibly overlapping strings.
8651 Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8653         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
8654         storage class.  GCC gives an error for non-extern data defns with the
8655         alias attribute.
8657 Mon Jul  8 01:37:34 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
8659         * string/argz-insert.c (__argz_insert): (__argz_insert): Use
8660         memmove instead of memcpy for possible overlapping strings.
8662 Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8664         * libc-symbols.h (weak_function): New macro.
8665         For GCC 2.7+ define as __attribute__ ((weak)).
8666         * elf/dl-minimal.c: Use weak_function as keyword in function defns
8667         instead of weak_symbol (NAME) after the defn.
8668         * stdlib/strtol.c: Likewise.
8669         * stdlib/strtod.c: Likewise.
8670         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8672         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
8673         If this is defined, don't declare _dl_rtld_map as weak, and
8674         don't check for MAP pointing to it.  RESOLVE is always null in this
8675         case, so test with #ifdef instead of if.
8677         * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
8678         weak_symbol.
8679         * csu/initfini.c (_init): Likewise.
8680         * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
8681         * misc/efgcvt_r.c: Likewise.
8682         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
8683         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
8685         * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
8686         It was not used in any assembler code.
8687         (weak_symbol_asm): Renamed to weak_extern_asm.
8688         (weak_extern): New macro replaces weak_symbol for weak extern refs;
8689         define to weak_extern_asm for [!ASSEMBLER].
8691 Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8693         * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
8694         weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
8695         define those now as aliases.
8696         Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
8697         [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
8698         after GCC weak attribute decl.
8700         * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
8701         map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
8702         (element printer): Check for elt in ALIAS, instead of special case
8703         for EWOULDBLOCK.
8705         * io/Makefile (headers): Add sys/vfs.h.
8706         * io/sys/vfs.h: New file.
8708         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
8709         critical section lock before unlinking dying active resources.
8710         The unlock just before return is right (i.e. old code unlocked twice).
8712 Sun Jun  2 22:28:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8714         * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
8715         Use memmove instead of memcpy where overlap is possible (not
8716         necessary using current implementation of memcpy, but...).
8717         (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
8719 Fri May 31 11:48:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8721         * stdio/linewrap.c (lwupdate): New function, mostly was
8722         __line_wrap_update.  Use POINT_COL field instead of POINT.
8723         (__line_wrap_output): Use lwupdate.
8724         (__line_wrap_update): New function.
8725         (ensure_unwrapped, ensure_wrapped): New functions.
8726         (line_wrap_set_lmargin, line_wrap_set_rmargin,
8727         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
8729         * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
8730         POINT_COL. Add POINT_OFFS field.
8731         (__line_wrap_update): New decl.
8732         (line_wrap_set_lmargin, line_wrap_set_rmargin,
8733         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
8735 Fri Jul  5 17:34:47 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8737         * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
8739         * login/pututline_r.c (pututline_r): Since we assign RESULT from
8740         lseek now, check that it's >= 0, not == 0.
8742 Wed Jul  3 13:28:04 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8744         * login/login.c (login): Make a copy of *UT, fill in various
8745         fields that we supply (ut_line, ut_type, ut_pid), and use the copy
8746         in place of UT.
8748         * login/getutline_r.c (getutline_r): When we return ESRCH, mark
8749         UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
8751 Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8753         * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
8754         signal during critical section doing interruptible RPC, if
8755         _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
8756         before thread_resume.  If in critical section, pass 0 for SIGNO to
8757         _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
8759         * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
8761         * sysdeps/unix/sysv/linux/sys/user.h: New file.
8762         * sysdeps/unix/sysv/linux/Dist: Add it.
8763         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
8765         * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
8766         points within DATA->linebuffer; otherwise use all of DATA->linebuffer
8767         itself, no need to skip past a NUL.
8769         * nss/nsswitch.h (known_function): Comment fix.
8770         * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
8771         directly.  Do the lookup and insertion with a single call, and fill in
8772         the tree node afterwards if new.
8773         (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
8775         * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
8776         (struct timeval): Add bodiless decl for scope.
8778         * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
8779         Move struct timespec defn outside [_TIME_H] so it can be got with
8780         #define __need_timespec.
8782         * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
8783         for `struct timespec' member names.
8784         (TIMESPEC_TO_TIMEVAL): Likewise.
8786         * nss/Makefile (extra-libs-others): New variable.
8788         * extra-lib.mk: Don't test for $($(lib)-no-lib-dep).  Instead match
8789         $(lib) in $(extra-libs-others).
8790         * sunrpc/Makefile (extra-libs-others): New variable.
8791         (librpcsvc-no-lib-dep): Variable removed.
8793         * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
8794         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
8795         _dl_rtld_map.
8796         (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
8797         (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
8798         (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
8799         _dl_rtld_map weak only here.
8801         * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
8803 Thu Jul  4 05:21:59 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8805         * login/utmp.h: Fix typos.
8807         * misc/syslog.c (vsyslog): Use __send instead of send and
8808         __connect instead of connect to avoid name-space collisions (e.g.,
8809         with psgetty).
8811 Wed Jul  3 16:29:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8813         * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
8815         * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
8817         * malloc/malloc-size.c (malloc_usable_size): Renamed from
8818         malloc_object_allocation_size.
8819         * malloc/malloc.h: Fix decl.
8821         * sys/select.h: New file, wrapper header.
8823         * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
8824         fd_set, associated macros, and select decl.
8826         * sysdeps/posix/isfdtype.c: New file.
8828 Tue Jul  2 23:45:14 1996  Ulrich Drepper  <drepper@cygnus.com>
8830         The latest Japanese proposal for POSIX locales renames the
8831         CHARMAP keyword in locale definition files to CHARCONV.
8832         * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
8833         function ctype_is_charmap to ctype_is_charconv.
8834         * locale/programs/locfile-kw.gperf: Replace charmap keyword with
8835         charconv.
8836         * locale/programs/locfile-token.h: Add definition of token
8837         charconv.
8838         * locale/programs/locfile.c: Recognize charconv keyword.  Rename
8839         lables according to this.
8841         * locale/weight.h (get_weight): Cast constants to prevent
8842         warnings.
8844         * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
8845         string/strxfrm.c: Add some more casts to prevent signed<->unsigned
8846         warnings.
8848         New stuff described in P1003.1g.
8849         * misc/Makefile (headers): Add sys/select.h.
8850         (routines): Add pselect.
8851         * misc/sys/select.h: New file.  Declare select functions and
8852         needed data types and macros.
8853         * sysdeps/generic/pselect.c: New file.  Add generic implementation
8854         of pselect() function which uses select().
8856         * posix/getconf.c: Recognize new variables from P1003.1g.
8857         * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
8858         _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
8859         * posix/unistd.h: Add description of the P1003.1g variables.
8860         * sysdeps/generic/confname.h: Define _SC_* values for new
8861         variables.
8862         * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
8863         _PC_SOCK_MAXBUF.
8864         * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
8865         * sysdeps/posix/sysconf.c (sysconf): Add handling of new
8866         P1003.1g variables.
8867         * sysdeps/stub/sysconf.c (sysconf): Ditto.
8868         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
8869         _POSIX_SELECT since Linux has this.
8871         * socket/Makefile (routines): Add isfdtype.
8872         * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
8873         * sysdeps/stub/isfdtype.c: New file.  Stub implementation of
8874         isfdtype.
8876         * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
8878 Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8880         * elf/Makefile (LDFLAGS-dl.so): New variable.
8881         (libdl.so): Depend on eval.so.
8882         (distribute): Add eval.c.
8883         * elf/eval.c: New file.
8885         * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
8886         in case it wrote fewer than MAXDIGITS chars.
8888         * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
8889         newline from flushing full buffer in loop, fix test so no fflush is
8890         done when last byte written exactly fills the buffer.
8892         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
8894         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
8895         (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
8897         * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
8898         extracting _dl_rtld_map.l_addr.
8900         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
8901         weak.
8902         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
8904         * shlib-versions (*-*-*): Set libnss_db=1.
8906 Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8908         * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
8910         * rpm/template (%build): Use @prefix@ instead of always /usr.
8911         Set up configparms only if @prefix@ is in fact /usr.
8912         * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
8914         * elf/Makefile: Add missing endif.
8916         * nss/nss_files/files-ethers.c (ntohost): Fix db key.
8918         * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
8919         (DATABASE): Define this instead of DATAFILE.
8920         * nss/nss_files/files-hosts.c: Likewise.
8921         (hostbyname): Use LOOKUP_NAME macro.
8923         * nss/nss_db/db-XXX.c: New file.
8924         * nss/Makefile (services): Add db.
8925         (libnss_db-inhibit-o): New variable.
8926         (libnss_db-routines): New variable.
8927         (distribute): Append db-XXX.c.
8928         (libnss_db.so): Depend on libdb.so and libnss_files.so.
8929         ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
8931         * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
8932         args, ignored.
8933         (DATAFILE): New macro.
8934         * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
8935         "files-XXX.c".
8936         * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
8937         Pass db key args to DB_LOOKUP.
8938         (DATAFILE): Macro removed.
8939         (DATABASE): New macro replaces it, lacks "/etc/" prefix.
8940         * nss/nss_files/files-service.c: Likewise.
8941         * nss/nss_files/files-pwd.c: Likewise.
8942         * nss/nss_files/files-proto.c: Likewise.
8943         * nss/nss_files/files-grp.c: Likewise.
8944         * nss/nss_files/files-ethers.c: Likewise.
8946         * elf/linux-compat.c: File removed.
8947         * elf/Makefile (distribute): Remove linux-compat.c.
8948         (ld-linux.so.1): Remove target and associated variables.
8950         * sunrpc/xdr.c: Remove malloc decl.
8951         * sunrpc/portmap.c: Likewise.
8953         * sunrpc/svc_tcp.c (abort): Don't declare.  Instead define as macro
8954         casting abort to fn returning bool_t.
8956         * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
8957         the parser function.
8958         [EXTERN_PARSER] (LINE_PARSER): Define to empty.
8959         * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
8960         * nss/nss_files/files-grp.c: Likewise.
8962         * Makeconfig (BUILD_CC): If undefined, define to $(CC).
8964         * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
8966         * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
8967         of ld.so so lookups for that soname find it.
8969         * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
8970         (resobjdir, LDLIBS-nss_dns.so): Variables removed.
8972         * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
8973         define parse_line function.
8974         (parse_line): #define to _nss_files_parse_pwent and
8975         add extern decl for that.
8977         * nss/nss_files/files-XXX.c (internal_getent): Return
8978         NSS_STATUS_TRYAGAIN for ERANGE error.
8980         * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
8981         of null, so next round returns null again instead of bombing.  Fix
8982         from drepper.
8984         * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
8985         Remove ; after `ENTDATA_DECL (data)'.
8986         Truncate line at strpbrk (line, EOLSET "\n").
8987         (ENTDATA_DECL): Put ; at end.
8988         (MIDLINE_COMMENTS): Macro removed.
8989         * nss/nss_files/files-ethers.c: Pass new argument.
8990         * nss/nss_files/files-hosts.c: Likewise.
8991         * nss/nss_files/files-network.c: Likewise.
8992         * nss/nss_files/files-parse.c: Likewise.
8993         * nss/nss_files/files-proto.c: Likewise.
8994         * nss/nss_files/files-rpc.c: Likewise.
8995         * nss/nss_files/files-service.c: Likewise.
8996         * grp/fgetgrent.c: Likewise.
8997         * pwd/fgetpwent.c: Likewise.
8998         * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
8999         fgetpwent.c already defines it.
9000         * nss/nss_files/files-grp.c: Likewise.
9002         * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
9003         as well as any matching with l_libname.  Fix DT_SONAME lookup to use
9004         string table properly.
9006         * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
9007         invoked directly, and l_libname from that if PT_INTERP missing.
9008         Set l_name from l_libname only if not set from argv.
9010         * time/europe, time/northamerica: Updated from ADO 96i.
9012 Mon Jul  1 15:44:34 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9014         * stdio-common/tst-ungetc.c: Include unistd.h.
9016         * inet/Makefile (routines): Change getnetbypt to getnetbyad.
9018 Mon Jul  1 13:32:42 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9020         * hurd/report-wait.c (describe_number): Make I unsigned long.
9022         * login/login.c (login): Only Frob OLD->ut_type if getutline_r
9023         actually found any entry.
9025         * login/pututline_r.c (pututline_r): If not located after any
9026         entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
9027         Lock the file before stating.
9029 Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9031         * nss/Makefile (databases): Change host to hosts.
9032         * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
9034         * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
9036         * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
9038         * string/string.h (strndupa): Pass missing arg to strnlen.
9040         * inet/getnetbypt_r.c: Renamed to ...
9041         * inet/getnetbyad_r.c: this; fixed function name.
9042         * inet/getnetbypt.c: Renamed to ...
9043         * inet/getnetbyad.c: this; fixed function name.
9045 Sat Jun 29 01:08:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
9047         * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
9048         struct passwd.
9050 Fri Jun 28 23:25:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9052         * login/login.c (login): Initialize DATA so that setutent_r will
9053         actually do something.
9055 Fri Jun 28 16:53:01 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9057         * resolv/res_hconf.c (strndup): Remove function.
9059         * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
9060         using ElfW() instead of Elf32_*.
9062         * sysdeps/unix/sysv/linux/alpha/init-first.h,
9063         sysdeps/unix/sysv/linux/m68k/init-first.h,
9064         sysdeps/unix/sysv/linux/i386/init-first.h: New files.
9065         * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
9066         init-first.h to make abstract machine dependent parts of
9067         initialization.
9069         * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
9070         error handling.  It's safer that way.
9072         * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
9073         Fix by Richard Henderson.
9075         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
9076         typo/extraneous whitespace.
9078         * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
9079         determine what integer sizes we're dealing with.
9081 Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
9083         * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
9084         check for signal zero, repair logical sense of test by
9085         parenthesizing correctly.
9087         * hurd/hurdsig.c (_hurd_internal_post_signal): In
9088         check-for-pending signals code, release _hurd_siglock before
9089         jumping to deliver_pending.
9091 Thu Jun 27 04:04:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9093         * configure.in (config_machine): Make ELF the default even for
9094         Linux/Alpha unless a configuration of the form *-*-linux*ecoff
9095         is specified.
9097 Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9099         * nss/nss_files/files-hosts.c (ENTDATA): Define it.
9100         * nss/nss_files/files-parse.c (struct parser_data): Define entdata
9101         member only #ifdef ENTDATA.
9102         (ENTDATA_DECL): New macro.
9103         (LINE_PARSER): Use it for entdata decl.
9104         (parse_list): Find the space for LIST from DATA->linebuffer instead of
9105         from the input LINE, which might not be writable buffer space.
9106         (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
9107         [ENTDATA] (parser_stclass): #define to `static inline'.
9108         [!ENDATA] (parser_stclass): #define to empty.
9109         [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
9110         function is exported to -lnss_files users.
9112         * string/strndup.c: Add missing arg.
9114         * string/string.h (strndupa): Likewise.
9115         * string/strndup.c (strndup): Always terminate the string.
9117 Thu Jun 27 14:22:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
9119         * stdio/Makefile (routines): Add vscanf.
9120         * stdio-common/Makefile (routines): Remove vscanf.
9121         * stdio-common/vscanf.c: Move to ...
9122         * stdio/vscanf.c: here.
9124         * rpm/Makefile (headers, install-lib, install-lib.so,
9125         versioned, install-bin, install-sbin, install-data,
9126         install-others): Add $(-VARIABLE).
9128 Fri Jun 28 02:41:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9130         * nss/Makefile (databases): New variable.
9131         (routines, libnss_files-routines): Use it.
9132         (subdir-dirs): Compute from $(services).
9134         * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
9135         init_module, klogctl): Use EXTRA in the "caller" column so these get
9136         added to unix-extra-syscalls and thus compiled in misc.
9138         * string/Makefile (routines): Add strndup.
9139         * string/strndup.c: New file.
9140         * string/string.h: Declare strndup.
9141         (strndupa): New macro.
9143         * string/string.h: Declare __strdup.
9144         * string/strdup.c: Deansideclized.  Define __ name and weak alias.
9146         * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
9148 Thu Jun 27 02:49:28 1996  Ulrich Drepper  <drepper@cygnus.com>
9150         * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
9152         * grp/initgroups.c (initgroups): De-ansi-fy.
9153         Move declaration of NGROUPS and GROUPS outside #if so that
9154         the code compiles for NGROUPS_MAX != 0.
9156         * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
9157         (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
9158         ether_ntoa, ether_ntoa_r, and ether_ntoh.
9159         * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
9160         inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
9161         inet/ether_ntoh.c: New files.  Implementation of functions to
9162         handle Ethernet address to host mapping.
9163         * inet/netinet/ether.h: New file.  Declare ether_* functions.
9164         * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
9165         compilation.
9166         * nss/ethers-lookup.c: New file.  Lookup function for ethers database.
9167         * nss/Makefile (routines): Add ethers-lookup.
9168         (libnss_files-routines): Add files-ethers.
9170         * nss/getXXent_r.c: Don't define set*ent and end*ent function
9171         with _r suffix.
9173         * nss/nss_files/files-XXX.c (internal_endent): Don't reset
9174         KEEP_STREAM every time called.
9175         (_nss_files_end): Reset KEEP_STREAM here instead.
9176         (internal_getent): If STREAM == NULL try to open instead of
9177         signalling error.
9178         Use cast to prevent warning.
9179         Terminate read line in case the buffer is too small.
9181         * nss/nss_files/files-ethers.c: New file.  Implementation of
9182         Ethernet adress<->hostname lookup through files interface.
9184         * stdlib/mbstowcs.c: Define based on mbsrtowcs().
9185         * stdlib/mbtowc.c: Define based on mbrtowc().
9186         * stdlib/wcstombs.c: Define based on wcsrtombs().
9187         * stdlib/wctomb.c: Define based on wcrtomb().
9189         * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
9190         unexpected_sizes_in_xdr_u_int.
9192         * sysdeps/generic/netinet/if_ether.h: New file.  Generic declaration
9193         of `struct ether_addr'.
9194         * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file.  Linux specific
9195         declaration of `struct ether_addr'.
9197         * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
9198         * wcsmbs/mbsrtowcs.c: Ditto.
9199         * wcsmbs/wcrtomb.c: Ditto.
9200         * wcsmbs/wcsrtombs.c: Ditto.
9202         * wcsmbs/mbsinit.c: Prepare for PS being NULL.
9204 Wed Jun 26 13:19:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9206         * hurd/get-host.c <fcntl.h>: New include.
9207         * hurd/set-host.c <fcntl.h>: New include.
9208         (_hurd_set_host_config): Include NEW in args to dir_link.
9209         Return NWROTE, not NREAD.
9211         * sysdeps/mach/hurd/getcwd.c
9212         (_hurd_canonicalize_directory_name_internal): Don't deallocate
9213         DOTID & DOTDEVID until we're finished with them (we need to keep
9214         them at least until we've fetched the next level of id ports, so
9215         that mach will be able to use the same name if they're the same).
9216         Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
9217         jumps to errlose, for those places where such cleanup is needed.
9219 Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9221         * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
9223         Move DB code into separate -ldb library.
9224         * db/Makefile (extra-libs): New variable, list libdb.
9225         (routines): Renamed to libdb-routines.
9226         * shlib-versions: Add libdb=2.
9228         * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
9229         * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
9231         * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
9232         of strncasecmp.  Extend syntax to grok [!foo=bar].
9234         * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
9235         weak alias.
9236         * string/string.h: Declare __strncasecmp.
9238         * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
9239         (service_alias): Variable removed.
9240         (nss_parse_service_list): New function, broken out of nss_getline.
9241         Remove alias conversion; we will just use symlinks.
9242         (__nss_database_lookup): Take new string arg DEFCONFIG.
9243         If no entry exists, make one with service list parsed from that.
9244         * nss/nsswitch.h: Update protocol for __nss_database_lookup.
9245         * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
9246         (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
9248         * grp/initgroups.c: Rewritten using getgrent.  Handle unlimited group
9249         list size.
9251         * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
9253 Wed Jun 26 01:56:50 1996  Ulrich Drepper  <drepper@cygnus.com>
9255         * locale/programs/locale.c (long_options): Short form of
9256         --version option is `-V'.
9257         (main): Recognize `-V' as option, not `-v'.
9258         Call `usage' instead of printing error message for illegal
9259         option.
9260         (usage): Document `-V'.
9262 Tue Jun 25 17:22:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9264         * sysdeps/mach/hurd/getcwd.c
9265         (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
9266         THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
9268 Tue Jun 25 10:58:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9270         * inet/getrpcent.c: Fix macros.
9271         * inet/getrpcent_r.c: Fix macros.
9273         * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
9275         * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
9277 Tue Jun 25 09:55:47 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
9279         * catgets/gencat.c (write_out): Use %Zu to print variables of type
9280         size_t.
9281         * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
9282         cast it to (unsigned long) to make it work both on 32 and 64
9283         bit architectures.
9285 Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
9287         * locale/Makefile (distribute): Add `programs/' prefix to all
9288         files in that directory.
9290         * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
9291         subdir' works.
9293         * MakeTAGS (sources, headers): Make them simply expanded variables
9294         so that all-dist is expanded before it is changed.
9296 Tue Jun 25 02:59:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9298         * Make-dist (dist): Don't depend on crypt tar file.  Remove that rule.
9299         * Makefile (subdirs): Remove crypt.
9300         * crypt: Directory removed.  It will be made an independent library
9301         distribution.
9303         * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
9305         * inet/getrpcent_r.c (DATABASE_NAME): New macro.
9307         * inet/getrpcbynumber.c (BUFLEN): New macro.
9309         * configure.in (--no-whole-archive check): Remove backslashes in cmd.
9311         * Makefile (headers): Add libc-lock.h.
9312         * sysdeps/stub/libc-lock.h: New file.
9314         * inet/getrpcbynumber.c: Remove _r typo.
9316         * elf/dl-load.c (_dl_map_object): Fix typo in last change.
9318         * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
9319         after the first!
9321         * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
9322         or doesn't mention DATABASE, use an internal default equivalent to
9323         "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
9324         (nss_lookup_function): Call nss_new_service as needed.
9325         (nss_parse_file): Don't bother calling nss_new_service here.
9327         * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
9328         * pwd/fgetpwent.c: Likewise.
9330         * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
9331         * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
9332         * malloc/malloc-size.c: New file.
9333         * malloc/malloc-walk.c: New file.
9335         * malloc/malloc-find.c (malloc_find_object_address): Return null if
9336         PTR is outside the heap.
9338         * elf/dl-load.c (_dl_map_object): If the requested name matches the
9339         soname of a loaded object, use that object.
9341 Mon Jun 24 19:57:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9343         * Makefile (subdirs): Add nss.
9345         * inet/Makefile (routines): Add getrpcent, getrpcbyname,
9346         getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
9347         * inet/getrpcbynumber_r.c: New file.
9348         * inet/getrpcbynumber.c: New file.
9349         * inet/getrpcbyname.c: New file.
9350         * inet/getrpcbyname_r.c: New file.
9351         * inet/getrpcent_r.c: New file.
9352         * inet/getrpcent.c: New file.
9353         * nss/rpc-lookup.c: New file.
9354         * nss/nss_files/files-rpc.c: New file.
9355         * nss/Makefile (routines): Add rpc-lookup.
9356         (libnss_files-routines): Add files-rpc.
9357         * sunrpc/Makefile (routines): Remove getrpcent.
9358         * sunrpc/getrpcent.c: File removed.
9360         * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
9361         non-null on entry.
9363         * Makeconfig (rpath-link): Add $(nssobjdir).
9364         (nssobjdir): New variable.
9366         * Makerules: Move shared library building before objects rules, so
9367         versions are known before extra-lib.mk gets included.
9368         * extra-lib.mk (lib-noranlib): Depend on the shared object too.
9370         * pwd/getpwuid.c: Rewritten using nss.
9371         * pwd/getpwnam.c: Likewise.
9372         * pwd/getpwent.c: Likewise.
9373         * grp/getgrnam.c: Likewise.
9374         * grp/getgrgid.c: Likewise.
9375         * grp/getgrent.c: Likewise.
9376         * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
9377         * pwd/getpwent_r.c: New file.
9378         * pwd/getpwnam_r.c: New file.
9379         * pwd/getpwuid_r.c: New file.
9380         * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
9381         * grp/getgrnam_r.c: New file.
9382         * grp/getgrgid_r.c: New file.
9383         * grp/getgrent_r.c: New file.
9384         * grp/Makefile (routines): Remove grpopen, grpread.
9385         * pwd/Makefile (routines): Remove pwdopen, pwdread.
9386         * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
9388         * pwd/fgetpwent.c: Rewritten using files-parse.c.
9389         * grp/fgetgrent.c: Likewise.
9391         * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
9392         * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
9393         * nss/nss_files/files-grp.c: New file.
9394         * nss/nss_files/files-pwd.c: New file.
9396         * nss/Makefile (subdir-dirs): New variable; use it in vpath.
9398         * nss/nss_files/files-parse.c: New file.
9399         * nss/nss_files/files-XXX.c: New file.
9400         * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
9401         nss/nss_files/files-service.c, nss/nss_files/files-network.c:
9402         Rewritten using them.
9404         * nss/Makefile (libnss_files-routines): Remove files-host.
9405         Add files-hosts, files-grp, files-pwd.
9407         * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
9409 Mon Jun 24 22:39:12 1996  Richard Henderson  <rth@tamu.edu>
9411         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
9412         A .plt entry now loads the .rela.plt offset directly rather
9413         than making us calculate it.
9415 Sun Jun 23 15:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9417         * time/Makefile ($(installed-localtime-file) rule): Do
9418         $(make-target-directory) first.
9420         * resolv.h: Fix wrapper for resolv/resolv.h.
9422         * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
9423         Compile dummy file and pass -nostdlib -nostartfiles so as not to
9424         require installed libraries.
9426         * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
9427         libnss_dns=1.
9429 Sun Jun 23 19:42:05 1996  Ulrich Drepper  <drepper@cygnus.com>
9431         * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
9432         and mapv4v6hostent.h.
9433         (routines): Move res* and gethnamaddr into libresolv-routines.
9434         (libresolv-routines): New variable, put them there.
9435         (extra-libs): New variable, list libresolv.
9436         (CPPFLAGS): Add -D for get*by* to res_get*by*.
9438         * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
9440         * inet/herrno.c: New file.
9442         * resolv/res_init.c: Remove res_hconf calls.
9444         * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
9445         nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
9446         nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
9447         nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
9448         nss/service-lookup.c: New files.  Implementation of name
9449         service switch, following the approach in Solaris.
9450         Interface specification and general structure inspired by Peter
9451         Eriksson <pen@lysator.liu.se>.
9452         * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
9453         nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
9454         Implementation of libnss_files.so module for file based databases
9455         in NSS service.
9456         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
9457         if libnss_dns.so module for DNS name lookup in NSS service.
9459         * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
9460         inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
9461         Changed to serve as interface to NSS.
9462         * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
9463         inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
9464         inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
9465         inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
9466         inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
9467         inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
9468         inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files.  Implement
9469         interfaces to NSS, including reentrant functions.
9471         * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
9472         resolv/sethostent.c: Removed:  Obsoleted by NSS.
9474         * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
9475         gethnamaddr.c.  These private functions are now used in more
9476         than one file.
9478         * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
9480 Sat Jun 22 16:49:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
9482         * rpm/Makefile ($(config)): Make sure the word list in the for
9483         loop is syntactically non-empty.
9485 Sat Jun 22 21:29:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9487         * Version 1.92 test release.
9489 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9491         * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
9492         to klogctl to match prototype in sys/klog.h.
9494         * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
9495         * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
9497         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
9498         Remove.  Code is now part of __getcwd again.  The old function
9499         never really worked for anything but THISDIR==".".
9501         * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
9502         only when building ELF version of library.
9504         * libio/libioP.h (_IO_vscanf): Add prototype.
9506         * posix/unistd.h (syscall): Change sysno arg and return value
9507         to int long.
9509 Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9511         * version.h (VERSION): Updated to 1.92.
9513         * misc/Makefile (headers): Add ar.h.
9514         * misc/ar.h: New file.
9516         * config.make.in (BUILD_CC): New variable.
9517         * configure.in: Check for BUILD_CC if $host != $build.
9519         * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
9521         * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
9522         (stamp$o files): New targets, create them empty, no deps.
9524         * rpm/template (Source): New field.
9525         (%prep, %build, %install): New sections.
9526         (%files): Add %doc FAQ NEWS NOTES README.
9527         * rpm/rpmrc (builddir): Removed.
9529 Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9531         * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
9532         guessing to not assume p_vaddr of first load cmd is zero.
9534         * sysdeps/sparc/elf/start.S: New file.
9535         * sysdeps/sparc/dl-machine.h: New file.
9537         * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
9538         only for ?s, not for *s.  Fix from Chet Ramey.
9540         Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
9541         * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
9542         Use __{BEGIN,END}_DECLS.
9543         (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
9544         * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
9545         New macros, moved here from sysdeps/gnu/utmpbits.h.
9546         * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
9547         * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
9548         * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
9549         Use sizeof instead of UT_*SIZE.
9550         * login/logwtmp.c: Likewise.
9552         * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
9554         * version.c (banner): Add trailing newline.
9556         * login/utmp.h: Declare login_tty.
9558 Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>
9560         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
9561         Changed to a 12-byte PLT entry to remove dependency on $gp.
9562         Take a new got_addr parameter.
9563         (elf_machine_rela): Pass the new parameter.
9564         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
9565         (RTLD_START): Do normal linkage with program entry.
9567 Thu Jun 20 12:18:21 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9569         * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
9571         * hurd/getuids.c (getuids): New weak link to __getuids.
9573 Wed Jun 19 10:21:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9575         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
9576         __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
9577         argument.
9578         Rename nested function lookup to lookup_op.
9579         (__file_name_lookup, __file_name_lookup_under):
9580         Pass 0 for lookup arg to __hurd_file_name_lookup.
9581         (__file_name_split): Likewise for __hurd_file_name_split.
9582         * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
9583         Rename nested function lookup to scan_lookup.
9584         (file_name_path_lookup): Pass 0 for lookup arg to
9585         hurd_file_name_path_lookup.
9586         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
9587         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
9588         __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
9589         Add LOOKUP argument.
9590         * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
9591         __hurd_file_name_lookup.
9593 Mon Jun 17 19:09:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
9595         * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
9596         up a huge list just to discard most of it.
9598         * configure.in (sysnames): Avoid fgrep by using the case shell
9599         builtin.
9601         * Makeconfig (config.status): Fix dependency on Implies files.
9603 Wed Jun 19 01:27:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9605         * math/Makefile (distribute): Add ieee-math.c.
9607 Wed Jun 19 03:24:58 1996  Ulrich Drepper  <drepper@cygnus.com>
9609         * locale/codeset_name.c: New file.  Provide function for information
9610         about currently used character set.
9611         * locale/Makefile (routines): Add codeset_name.
9612         * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
9613         * locale/localeinfo.h: Change magic number because of incompatible
9614         change.
9615         * locale/C-ctype.c: Add initializer for new field `codeset_name'.
9616         * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
9618         * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
9619         name `MAX_IOVEC'.  Instead use standard name `UIO_MAXIOV'.
9621         * locale/setlocale.c (setlocale): Initialize local variables to
9622         prevent warnings.
9624 Thu Jun 13 17:25:11 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9626         * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
9628         * locale/programs/locale.c: Include string.h.
9630         * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
9631         (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
9632         appropriate sign-extension is performed on machines with
9633         sizeof(long) > 4.
9635         * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
9636         sizeof(int)<sizeof(long), we need to go through a temporary
9637         variable.
9639         * locale/programs/ld-numeric.c: Include <alloca.h>
9641         * libio/stdio.h (__libc_fatal): Add prototype.
9643         * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
9644         in efect.
9646         * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
9647         volatile to avoid "might get clobbered by longjmp" warning.
9649         * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
9650         unless _LOOSE_KERNEL_NAMES is in effect (which, with high
9651         probability is a sure loser).
9652         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
9654         * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
9655         * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
9657         * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
9658         to be Linux FSSTND compliant.
9660 Mon Jun 10 17:50:31 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9662         * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
9664         * sysdeps/unix/sysv/linux/alpha/sysdep.S,
9665         sysdeps/unix/sysv/linux/alpha/brk.S,
9666         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
9667         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
9668         sysdeps/unix/sysv/linux/alpha/llseek.S,
9669         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
9670         sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
9671         __syscall_error to avoid intruding application name space.
9673         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
9674         to SYS_get?id so that syscall stubs in sysdeps/unix define
9675         these syscalls in terms of getxpid/getxuid/getxgid.
9677         * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
9678         sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
9679         sysdeps/unix/execve.S, sysdeps/unix/fork.S,
9680         sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
9682         * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
9683         (PSEUDO_END): Rename END() to PSEUDO_END().
9685         * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
9686         to PSEUDO_END to improve branch-prediction.  Include .frame
9687         directive to make syscalls debugabble.
9688         (PSEUDO_END): New macro.
9690         * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
9691         sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
9692         latter is illegal under DEC Unix.
9694         * sysdeps/unix/alpha/sysdep.S: Renamed from
9695         sysdeps/unix/sysv/linux/alpha/sysdep.S.  This file works for OSF/1
9696         as well.
9697         * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
9698         EWOULDBLOCK -> EAGAIN mapping was unnecessary since
9699         EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
9701         * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
9702         address register in the .frame directive.
9704         * sysdeps/alpha/copysign.c: Remove.
9706         * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
9707         avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
9709         * errno.h: Move __END_DECLS to correct place to make file
9710         compilable under c++.
9712         * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro.  Define
9713         d_ino only if <direntry.h> hasn't defined d_fileno.
9715         * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
9716         arguments to weakext to make .weakext detection work on ECOFF systems.
9718         * FAQ: Add Linux/Alpha to list of supported platforms.  Mention
9719         that _validuser() has been replaced by __ivaliduser().
9721 Thu Jun  6 21:39:38 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9723         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
9724         as unsigned long, not as int (to avoid incorrect int->long
9725         promotion).
9729 See ChangeLog.5 for earlier changes.