Update.
[glibc.git] / ChangeLog
blobb09d46f019254e5bf5d69594aea14ab715076359
1 Fri Aug 16 01:24:33 1996  Ulrich Drepper  <drepper@cygnus.com>
3         * inet/ruserpass.c (userpass): Allocate buffer for .netrc file
4         name dynamically.  Reported by Alan Cox.
5         Uncomment warnings and mark as translatable.
7         * time/strftime (strftime): Add implementation for %s and %z
8         format.  Change behaviour for unknown format character: now
9         simply print it.  This matches the behaviour of printf.
10         Reported by Jim Meyering.
11         * manual/time.texi: Document all formats and flags of strftime.
13 Thu Aug 15 18:02:51 1996  Ulrich Drepper  <drepper@cygnus.com>
15         * elf/rtld.c (dl_main): Loaded object has type lt_executable,
16         not lt_library.
18         * misc/sys/select.h: Define fd_set using typedef, not #define.
19         Proposed by David Mosberger-Tang.
21 Thu Aug 15 12:48:21 1996  Ulrich Drepper  <drepper@cygnus.com>
23         * po/header.pot: Use real description line.
25 Thu Aug 15 04:42:44 1996  Ulrich Drepper  <drepper@cygnus.com>
27         * elf/rtld.c (dl_main): When started with --verify prevent
28         any warning.  Just exit with an error.
29         * elf/ldd.sh.in: Don't run given object directly.  This fails for
30         libraries.  Instead use $RTLD again.
32 Thu Aug 15 02:08:59 1996  Ulrich Drepper  <drepper@cygnus.com>
34         * manual/nss.texi: New file.  Document NSS.
35         * manual/nsswitch.texi: New file.  Example configuration.
37         * manual/string.texi: Document stpncpy, strdupa, and strndupa.
38         * manual/example/strdupa.c: New file.  Example for strdupa.
40 Wed Aug 14 21:36:16 1996  Ulrich Drepper  <drepper@cygnus.com>
42         * stdlib/strtod.c (STRTOD): Correct assertion about size of
43         wint_t and wchar_t.  Reported by David Mosberger-Tang.
45 Mon Aug 12 22:40:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
47         * elf/dl-lookup.c (_dl_lookup_symbol): Remove fifth parameter
48         RELOC_ADDR and make NOPLT a set of flags.  All callers
49         changed.  Delete condition that checks for resolving to the
50         location being filled in.  Add condition to skip the
51         executable's symbols if requested.
52         * elf/link.h: Change declaration of _dl_lookup_symbol
53         accordingly.
54         (DL_LOOKUP_NOEXEC, DL_LOOKUP_NOPLT): New definitions.
55         * elf/dl-reloc.c (RESOLVE): Remove second parameter and rename
56         NOPLT to FLAGS.
57         * elf/dl-runtime.c (RESOLVE): Likewise.
58         * elf/rtld.c (RESOLVE): Likewise.
59         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Pass
60         DL_LOOKUP_NOEXEC as second argument to the RESOLVE macro if
61         processing a copy reloc, DL_LOOKUP_NOPLT for a jump slot
62         reloc, zero otherwise.
63         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
64         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
65         * sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
67 Wed Aug 14 17:57:08 1996  Ulrich Drepper  <drepper@cygnus.com>
69         * MakeTAGS: Clean up use of --omit-header and -n for xgettext.
70         * po/header.pot: Add empty line at end.
72 Sun Aug 11 13:45:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
74         * MakeTAGS (all-pot): Remove $P/errlist.pot, all error messages
75         are now in $P/stdio-common.pot.
76         (XGETTEXTFLAGS-errlist.pot): Variable removed.
78 Mon Aug 12 19:25:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80         * Makerules (do-ar, o-iterator-doit): Compute path to autolock
81         script at run time, not configure time.
82         * config.make.in, configure.in: Undo previous change.
84 Wed Aug 14 13:20:02 1996  Ulrich Drepper  <drepper@cygnus.com>
86         * sysdeps/unix/sysv/linux/i386/close.S: Push return value of thread
87         on stack as argument for `_exit'.  Reported by Andreas Schwab.
89 Mon Aug 12 19:36:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91         * sysdeps/unix/sysv/linux/m68k/clone.S: New file.
93 Wed Aug 14 04:22:35 1996  Richard Henderson  <rth@tamu.edu>
95         * elf/dl-load.c (_dl_map_object): Save name in malloced memory.
96         (_dl_map_object_from_fd): Free name on error.
98 Wed Aug 14 13:00:09 1996  Ulrich Drepper  <drepper@cygnus.com>
100         * string/strdup.c: Use result of memcpy to avoid reloading.
102 Tue Aug 13 00:55:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
104         * shadow/sgetspent_r.c (__sgetspent_r): Copy string to buffer, not
105         the other way round.
107 Tue Aug 13 20:51:21 1996  Ulrich Drepper  <drepper@cygnus.com>
109         * stdlib/canonicalize.c (canonicalize): Add cast to prevent
110         warning.
112         * Makerules (o-iterator-doit): Use autolock.sh when running ranlib.
114 Tue Aug 13 18:26:45 1996  Ulrich Drepper  <drepper@cygnus.com>
116         * nss/nsswitch.c (__nss_configure_lookup): Use fact that list is
117         sorted.
119         Update from bind-4.9.5-T1A.
120         * resolv/Makefile (libresolv-routines): Add base64, inet_net_ntop,
121         inet_net_pton, inet_net.
123         * resolv/gethnamaddr.c: Include <sys/types.h>.
124         * resolv/getnetnamadr.c: Likewise.
125         * resolv/herror.c: Likewise.
126         * resolv/inet_addr.c: Likewise.
127         * resolv/nsap_addr.c: Likewise.
128         * resolv/res_comp.c: Likewise.
129         * resolv/res_data.c: Likewise.
130         * resolv/res_init.c: Likewise.
131         * resolv/res_mkquery.c: Likewise.
132         * resolv/res_query.c: Likewise.
133         * resolv/res_send.c: Likewise.
135         * resolv/gethnamaddr.c [! SPRINTF_CHAR] (SPRINTF): Cast return
136         value of sprintf.
137         * resolv/inet_ntop.c: Likewise.
139         * resolv/gethnamaddr.c [BSD]: Include <stdlib.h>.
140         Remove prototype of gethostbyname_ipv4.
142         * resolv/inet_ntop.c, resolv/inet_pton.c: Use ISO C `mem*'
143         functions instead of BSD `b*' functions.
145         * resolv/nsap_addr.c: Add copyright message.
147         * resolv/res_comp.c: Remove comment explaining label format.
148         (res_mailok): Correct check.
150         * resolv/res_debug: Include missing headers.
151         (__fp_nquery): Handle `unused', `ad', and `cd' bits.
152         (__p_fqnname): New function to print FQDN from compressed name.
153         (__p_rr): Use __p_fqnname.  Correct printing of ".  Handle T_TXT
154         correctly.  Add handling of T_KEY and T_SIG.
155         Handle class and type names by using name arrays instead of
156         explicit `switch'es.
157         (__sym_ston, __sym_ntos, __sym_ntop): New functions to use arrays.
158         (__dn_count_labels, __p_secstodate): New functions.
160         * resolv/resolv.h (__RES): Update version number.
161         (res_sym): New type.
162         Add #defines for new functions.
163         Declare sym_ntos, sym_ntop, b64_ntop, b64_pton, __p_fqnname,
164         __p_secstodate, dn_count_labels.
166         * resolv/arpa/nameser.h (__BIND): Update version number.
167         Add KEYFLAG_* and ALGORITHM_* symbols.
168         (HEADER): Add `ad' and `cd' flags.
170         * inet/ient.h: Add prototypes for inet_neta, inet_net_ntop,
171         and inet_net_pton.
173         * manual/maint.texi: Document that we use bind-4.9.5.
174         * INSTALL: Ditto.
176 Mon Aug 12 19:03:22 1996  Thomas Bushnell n/BSG  <thomas@psilocin.gnu.ai.mit.edu>
178         * sysdeps/generic/gnu/types.h: Declare __fd_mask as `unsigned long'.
180         * mach/Makefile (mach/mach_host.uh): Depend on
181         $(objpfx)/mach-syscalls.mk.
182         ($(objpfx)mach-shortcuts.h): Depend on $(objpfx)mach/mach_host.h.
183         (This fixes a make loop; thanks to Marcus Daniels
184         <marcus@sysc.pdx.edu> for the patch.)
186 Mon Aug 12 16:41:52 1996  Thomas Bushnell n/BSG  <thomas@gnu.ai.mit.edu>
188         * io/getwd.c (getwd) [! PATH_MAX]: Don't assume that the user's
189         buffer is any longer than the amount necessary to hold the
190         filename; the Hurd getcwd uses the *entire* contents of the
191         buffer, however long it is specified to be.
193 Mon Aug 12 04:33:09 1996  Ulrich Drepper  <drepper@cygnus.com>
195         * nss/nsswitch.c (__nss_database_lookup): Always release locks
196         before returning.  Reported by Miles Bader.
198 Mon Aug 12 03:31:58 1996  Ulrich Drepper  <drepper@cygnus.com>
200         * nss/nsswitch.c (__nss_configure_lookup):  New function.
201         Allows to specify services.
202         * nss/XXX-lookup.h: Rename database variable and make global.
203         * nss/databases.def: New file.  Real names of all databases.
205         * nss/nss.h: New file.  Contains declaration useful for users
206         and service developers.
207         * nss/nsswitch.h: Move some declarations to nss/nss.h.
208         * nss.h: New file.  Wrapper around nss/nss.h.
210         * nss/Makefile (headers): Add nss.h.
211         (distributes): Add databases.def.
213 Sun Aug 11 16:19:42 1996  Ulrich Drepper  <drepper@cygnus.com>
215         Help the poor people with fast machines by making sure only
216         one `ar' commands works on the library.
217         * autolock.sh: New file.  Written by Tom Tromey.
218         * Makerules (do-ar): Call autolock.sh shell script instead of
219         directly using `ar'.
220         * config.make.in: Make configuration variable AUTOLOCK which
221         gets initialized by configure.
222         * configure.in: Define variable AUTOLOCK to point to autolock.sh
223         script and mark it to substitute.
225         * string/Makefile: Add -fno-builtin for tst-strlen.c, too.
227         * sysdeps/generic/sbrk.c (__sbrk):  Get kernel brk address
228         always only if in static libc or if statically linked program
229         uses libc.so.
231 Sun Aug 11 01:12:38 1996  Richard Henderson  <rth@tamu.edu>
233         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW
234         startup by moving Icache flush from here ...
235         (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here.
236         (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused.
238         * sysdeps/alpha/divrem.h: Update comment to reflect the actual
239         calling conventions.  The code is already correct.
241 Sun Aug 11 01:06:42 1996  Richard Henderson  <rth@tamu.edu>
243         * string/Makefile: Compile tester with -fno-builtin as we want to
244         test our implementations, not gcc's.
246 Sat Aug 10 13:17:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
248         * shadow.h: New file.
250         * sysdeps/unix/sysv/linux/netinet/in.h: Move
251         __BEGIN_DECLS/__END_DECLS up so ntohl() et al are bracketed as
252         well.
254         * socket/sys/socket.h [__cplusplus]: Use old-style __SOCKADDR_ARG.
255         g++ 2.7.2 (and earlier) has no transparent unions support.
257 Fri Aug  9 18:50:06 1996  David Mosberger-Tang  <davidm@azstarnet.com>
259         * sysdeps/unix/sysv/linux/alpha/ioperm.c (_bus_base_sparse): New
260         function to determine the base address of sparse bus memory.
261         (APECS_*): Rename to CIA_*.
262         (APECS_SPARSE_MEM, CIA_SPARSE_MEM): New macros.
263         (platform): Add sparse_bus_memory_base member and initialize.
264         (sparse_bus_memory_base): New variable.
266 Tue Aug  6 10:23:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
268         * sysdeps/posix/ttyname_r.c (ttyname_r),
269         sysdeps/posix/ttyname.c (ttyname): Return -1/NULL if
270         !__isatty(fd) (POSIX.1 says so.)
272         * sysdeps/unix/getlogin.c (getlogin): Fix to check fd 0 only.
273         This is not a gross hack, after all---for compatibility,
274         getlogin() really should check fd 0 only and not try to base its
275         operation on the controlling tty.
277 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
279         * sysdeps/unix/getlogin.c (getlogin): Add static variable NAME,
280         change utmp_data from static to auto.
282 Sun Aug 11 02:56:08 1996  Ulrich Drepper  <drepper@cygnus.com>
284         * posix/unistd.h [__USE_MISC]: Add prototype for `nice'.
285         Reported by David Mosberger-Tang.
287 Sat Aug 10 02:05:28 1996  Richard Henderson  <richard@twiddle.tamu.edu>
289         * sysdeps/libm-ieee754/s_isnan.c [NO_LONG_DOUBLE]: Add strong
290         alias to `__isnanl'.
292 Fri Aug  9 17:38:58 1996  Ulrich Drepper  <drepper@cygnus.com>
294         * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
295         get `struct timeval'.
296         * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
297         * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
298         * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
299         * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
300         * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
301         * sysdeps/unix/sysv/linux/direntry.h: Complete types in
302         <linux/dirent.h>.
303         * io/fts.h: Include <sys/types.h> to get dev_t.
304         Reported by Matthias Urlichs.
306         * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
307         _IO_file_flags.  It's the same as _flags.
308         Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
310 Wed Aug  7 19:38:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
312         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
314 Thu Aug  8 16:17:38 1996  Ulrich Drepper  <drepper@cygnus.com>
316         * pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
317         * pwd/getpwent_r.c: Likewise.
318         * pwd/getpwnam.c: Likewise.
319         * pwd/getpwnam_r.c: Likewise.
320         * pwd/getpwuid.c: Likewise.
321         * pwd/getpwuid_r.c: Likewise.
323         * grp/getgrent.c: Define BUFLEN from NSS_BUFLEN_GROUP.
324         * grp/getgrent_r.c: Likewise.
325         * grp/getgrgid.c: Likewise.
326         * grp/getgrgid_r.c: Likewise.
327         * grp/getgrnam.c: Likewise.
329         * pwd/fgetpwent_r.c: New file.  Reentrant version of fgetpwent.
330         * pwd/fgetpwent.c: Rewrite to use fgetpwent_r.
331         * pwd/Makefile (routines): Add fgetpwent_r.
332         * pwd/pwd.h: Add prototypes for __fgetpwent_r and fgetpwent_r.
334         * grp/fgetgrent_r.c: New file.  Reentrant version of fgetgrent.
335         * grp/fgetgrent.c: Rewrite to use fgetgrent_r.
336         * grp/Makefile (routines): Add fgetgrent_r.
337         * grp/grp.h: Add prototypes for __fgetgrent_r and fgetgrent_r.
339         Implement shadow password lookup functions.  This is no complete
340         shadow password suite.
341         * shadow/Makefile: New file.
342         * shadow/fgetspent.c: New file.
343         * shadow/fgetspent_r.c: New file.
344         * shadow/getspent.c: New file.
345         * shadow/getspent_r.c: New file.
346         * shadow/getspnam.c: New file.
347         * shadow/getspnam_r.c: New file.
348         * shadow/putspent.c: New file.
349         * shadow/sgetspent.c: New file.
350         * shadow/sgetspent_r.c: New file.
351         * shadow/shadow.h: New file.
352         * shadow/spwd-lookup.c: New file.
353         * shadow/nss_files/files-spwd.c: New file.
355 Thu Aug  8 13:33:45 1996  Ulrich Drepper  <drepper@cygnus.com>
357         * sysdeps/unix/sysv/linux/ftime.c: New file.  Available system
358         call is only a stub.
359         Reported by Matthias Urlichs.
361         * Makeconfig [!default_cflags]: Change default value from `-g'
362         to `-g -O'.
364         * configure.in: Recognize i686.
365         * sysdeps/i386/i686/Implies: Default on i586 optimized code.
367 Thu Aug  8 12:40:20 1996  Matthias Urlichs  <smurf@smurf.noris.de>
369         * Makeconfig [$(build-omitfp) == yes]: Add to CFLAGS-.so
370         value of CFLAGS-.o, not CFLAGS-o.
372         * sysdeps/unix/sysv/linux/init-first.c (init): Add volatile
373         pointer to ourself.  Otherwise `gcc -O3' optimized init away.
375 Thu Aug  8 01:41:43 1996  Ulrich Drepper  <drepper@cygnus.com>
377         * elf/Makefile: Undo change of Tue Aug  6 14:27:11 1996.
378         * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
380 Thu Aug  8 01:15:59 1996  Ulrich Drepper  <drepper@cygnus.com>
382         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
383         to 0x137f to allow long double operations.
385 Sun Aug  4 13:12:05 1996  Richard Henderson  <rth@tamu.edu>
387         Bug Fixes:
389         * nss/nsswitch.c (_res): Remove redundant variable definition.
390         The real one is in resolve/res_init.c, and having both prevents
391         using -fno-common when building the shared library.
392         * sunrpc/rpc_prot.c (_null_auth): Same.  Original is in rpc_common.c.
394         * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
395         a .bss object not a COMMON symbol.
397         * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
398         $gp before referencing __sigsetjmp symbol.  Retain LITUSE for same.
400         Optimizations:
402         * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
403         main loop for better dual-issue on EV5.  Rearrange binary search to
404         pipeline better and trim one instruction.
406         Cosmetic Changes:
408         * time/localtime.c (localtime_r): Move lock declaration back next to
409         the comment where it was before the 960724 change.
411         * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
412         The second word is supposed to be the hardware manufacturer.
414         * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
415         * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
417         * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
419         * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
420         sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
421         Same cleanups as with EV4 GMP stuff.
423 Tue Jul 25 03:30:56 1996  Richard Henderson  <rth@tamu.edu>
425         * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
426         * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
427         * sysdeps/unix/sysv/linux/i386/clone.S: New file.
429 Sun Aug  4 00:12:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
431         * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
432         `unsigned long'.
434         * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
436 Sat Aug  3 16:20:02 1996  David Mosberger-Tang  <davidm@azstarnet.com>
438         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
439         Mikasa.
441         * socket/sys/socket.h (send, __send, sendto): Declare buffer
442         pointer as __const.
444         * string/tester.c (main): Test stpncpy.
446         * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
447         segfault when called with an N that is not a multiple of four and
448         src[N-1]=='\0'.
450         * misc/syslog.c (LogType): New variable.
451         (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
452         try again with SOCK_STREAM (the Linux syslogd uses a socket of the
453         latter type).
454         (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
455         terminator as a record-delimiter.  If __send(LogFile) fails,
456         call closelog() so logfile gets re-opened next time.
458 Wed Aug  7 15:15:14 1996  Ulrich Drepper  <drepper@cygnus.com>
460         * elf/dl-open (_dl_open): Add cast to avoid warning.
462         * manual/memory.texi: Improve some examples to give readers better
463         advice: Use `stpcpy' instead of `strcat' if possible.
464         * manual/string.texi: Document `strtok_r' and `strtok'.
466         * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
467         of Makeconfig.
468         [$(cross-compiling)=no]: Change test before making librpcsvc
469         to this from $(cross-compile).
470         Reported by Andreas Schwab.
472 Tue Aug  6 14:27:11 1996  Ulrich Drepper  <drepper@cygnus.com>
474         * elf/Makefile (routines): Move dl-sysdep to here...
475         (rtld-routines): ...from here.  This should make static linking
476         work again.
478         * locale/setlocale.c: Add local variable `lock' and add code to
479         `setlocale' to avoid simultaneous changing of global data.
481         * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
482         * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
483         `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
484         of unprotected names.
486 Tue Aug  6 01:13:56 1996  Ulrich Drepper  <drepper@cygnus.com>
488         Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
489         This requires to rename several functions to use __ protected
490         names.
491         * dirent/dirent.h: Add prototypes of __opendir, __closedir,
492         and __readdir.
493         * sysdeps/mach/hurd/closedir.c: Prepend function name with __
494         and make old name a weak alias.
495         * sysdeps/mach/hurd/getrlimit.c: Likewise.
496         * sysdeps/mach/hurd/opendir.c: Likewise.
497         * sysdeps/mach/hurd/readdir.c: Likewise.
498         * sysdeps/stub/closedir.c: Likewise.
499         * sysdeps/stub/opendir.c: Likewise.
500         * sysdeps/stub/readdir.c: Likewise.
501         * sysdeps/unix/closedir.c: Likewise.
502         * sysdeps/unix/opendir.c: Likewise.
503         * sysdeps/unix/readdir.c: Likewise.
505         * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
507         * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
508         `__closedir' instead of unprotected names.
510         * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
511         instead of `isatty' since later is not part of ISO C.
512         * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
513         `open' since later is not part of ISO C.
515         * login/endutent.c (endutent): Call `__endutent_r', not
516         `endutent_r'.
517         * login/endutent_r.c: Rename defined function to `__endutent_r',
518         make `endutent_r' weak alias.
519         * login/getutent.c (getutent): Call `__getutent_r', not
520         `getutent_r'.
521         * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
522         * login/getutid_r.c: Rename defined function to `__getutent_r',
523         make `getutent_r' weak alias.
524         * login/getutline.c (getutline): Call `__getutline_r', not
525         `getutline_r'.
526         * login/getutline_r.c: Rename defined function to `__getutline_r',
527         make `getutline_r' weak alias.
528         * login/pututline_r.c: Rename defined function to `__pututline_r',
529         make `pututline_r' weak alias.
530         * login/setutent.c (setutent): Call `__setutline_r', not
531         `setutline_r'.
532         * login/setutent_r.c: Rename defined function to `__setutline_r',
533         make `setutline_r' weak alias.
534         Rename `utmpname' to `__utmpname' and make former weak alias.
535         (__utmpname): Call `__strdup', not `strdup'.
536         * login/utmp.h: Add prototypes for name space clean reentrant
537         versions.
538         * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
539         and `__endutent_r' instead of unprotected names.
541         * math/math.h: Add prototype for `__matherr'.
542         * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
543         of `matherr'.
545         * nss/getXXbyYY.c: Call __ protected reentrant function.
546         * nss/getXXent.c: Likewise.
547         * nss/getXXbyYY_r.c: Define `get*' function with __ protected
548         name.  Make usual name a weak alias.
549         * nss/getXXent_r.c: Likewise.
551         * posix/unistd.h: Add prototype for `__ttyname_r'.
552         * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
553         and make `ttyname_r' a weak alias.
555         * resource/sys/resource.h: Add prototype for `__getrlimit'.
556         * sysdeps/stub/getrlimit.c: Prepend function name with __
557         and make old name a weak alias.
558         * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
559         and make `getrlimit' weak alias.
561         * libc/stdio/stdio.h: Add prototype for `__vscanf'.
562         * libc/stdio/vscanf.c: De-ANSI-fy.
563         Rename function to `__vscanf' and make `vscanf' a weak alias.
564         * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
565         of `vscanf'.
567         * stdio-common/reg-printf.c: De-ANSI-fy.
568         Rename function to `__register_printf_function' and make
569         `register_printf_function' weak alias.
571         * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
572         `wcsrtombs'.
574         * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
575         * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
576         * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
577         * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
578         * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
579         name a weak alias.
580         * wcsmbs/mbsrtowcs.c: Likewise.
581         * wcsmbs/wcrtomb.c: Likewise.
582         * wcsmbs/wcsrtombs.c: Likewise.
583         * wcsmbs/wchar.h: Add prototypes for __ protected versions.
585         * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
586         instead of `sigprocmask'.
589         * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
590         version getgrent_r, getgrgid_r, and getgrnam_r.
591         * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
592         version getpwent_r, getpwuid_r, getpwnam_r and __ protected
593         names.
594         * resolv/netdb.h: Complete rewrite.  No more BSD ugliness.
597         * misc/error.c (private_strerror): Translate messages from table,
598         too.
600         * io/fcntl.h: Pretty printing.
601         * misc/fstab.h: Likewise.
602         * misc/ttyent.h: Likewise.
603         * resource/sys/resource.h: Likewise.
604         * string/argz.h: Likewise.
605         * string/envz.h: Likewise.
607         Add support for symbols from POSIX.1c (POSIX threads).
608         * posix/getconf.c: Handle new sysconf symbols.
609         * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
610         _POSIX_LOGIN_NAME_MAX with minimal maximal values.
611         * sysdeps/generic/confname.h: Define new symbols.
612         * sysdeps/posix/sysconf.c: Handle new symbols.
613         * sysdeps/stub/sysconf.c: Ditto.
614         * sysdeps/unix/sysv/linux/sysconf.c: Removed.  Generic version
615         is ok now.
617         * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
618         have real prototype.
620         * sysdeps/generic/resourcebits.h: Add macro definition for
621         RLIMIT_* values.  Some sources test using #ifdef whether specific
622         limit is available.
623         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
624         * sysdeps/unix/sysv/linux/resourcebits.h: Removed.  We need
625         separate files for the architectures.
626         * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
627         * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
628         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
629         * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
631         * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
632         and only default on `OPEN_MAX'.
633         * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed.  Default is already
634         the POSIX version.
636         * time/Makefile (routines): Add ctime_r.
637         * time/asctime.c: Add implementation of `asctime_r'.  Make
638         `asctime' implementation based on reentrant version.
639         * time/ctime_r.c: New file.
640         * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
641         and `ctime_r'.
643 Sat Aug  3 18:41:36 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
645         * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
646         (_nl_C_LC_CTYPE): Fix ordering.
647         * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
648         typo.
650 Sat Aug  3 12:31:06 1996  Richard Henderson  <rth@tamu.edu>
652         * csu/initfini.c: Discover the maximum alignment generated by the
653         compiler when emitting a function.
654         (_init): Make sure the end of the crti fragment is aligned.
655         (_fini): Likewise.
657 Fri Aug  2 03:12:40 1996  Ulrich Drepper  <drepper@cygnus.com>
659         * initfini.c: (__libc_is_static): New variable.  Will be
660         initialized in init-first.c.  Some actions in the libc work
661         different when libc is static or dynamic.
663         * sysdeps/unix/sysv/linux/init-first.c (init): Use
664         `__libc_is_static' variable to determine whether call to
665         `personality' and `setfpucw' is necessary.  When done set variable
666         to +-1 depending on library type.
668         * locale/setlocale.c (setlocale): Use global variable
669         `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
670         determine whether it's a SET[UG]ID program.
672 Fri Aug  2 14:40:22 1996  Roland McGrath  <roland@fast.cs.utah.edu>
674         * Version 1.93 test release.
676         * manual/Makefile: Use -include for chapters-incl too.
678         * Makeconfig (+link): Add back start.o, mistakenly removed in last
679         change.
681 Fri Aug  2 01:04:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
683         * nss/Makefile (generated): Add db-*.c.
685         * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
686         using #include_next.
688         * configure.in (--enable-add-ons): Quote m4 macro args.
690         * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
692 Thu Aug  1 14:40:03 1996  Roland McGrath  <roland@fast.cs.utah.edu>
694         * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
696         * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
698         * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
699         (+link): Not here.
701         * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
702         warning when inline function is elided.
703         * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
704         (elf_machine_runtime_setup): Likewise.
705         * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
706         * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
707         (elf_machine_load_address): Likewise.
709         * catgets/gencat.c: Include <locale.h>.
711         * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
713         * login/logwtmp.c (logwtmp): Call time, not __time.
715         * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
716         * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
717         * login/logwtmp.c (logwtmp): Likewise.
719         * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
720         comparing ioctl macro values.
722         * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
724         * manual/Makefile: Use -include for chapters to suppress warning.
726         * sysdeps/stub/socket.c: Fix type of TYPE arg.
727         * sysdeps/stub/socketpair.c: Likewise.
729         * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
731         * sysdeps/generic/sysdep.h: New file, broken out of ...
732         * sysdeps/unix/sysdep.h: ... here.
733         (C_LABEL): Moved out.
735         * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
736         stick to sed.  Do `exit 0' at end because while returns nonzero.
738         * sysdeps/i386/sysdep.h: New file, broken out of ...
739         * sysdeps/unix/i386/sysdep.h: ... here.  Generic asm macros moved out.
741         * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
742         They are defined unconditionally in libio/stdio.h.
744         * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
745         * elf/dl-cache.c: Likewise.
747 Mon Jul 29 19:20:05 1996  Ulrich Drepper  <drepper@cygnus.com>
749         * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
750         (sysdep_headers): Add sys/sysmacros.h.
751         * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
753 Wed Jul 31 14:21:36 1996  Ulrich Drepper  <drepper@cygnus.com>
755         * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
756         tcgetattr.  We have weak aliases now.
757         * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
758         "optimizations" for random functions.
760 Mon Jul 29 20:33:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
762         * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
763         htons) [__BIG_ENDIAN]: #undef them before defining to avoid
764         redefinition warning.
766 Mon Jul 29 20:28:27 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
768         * time/time.h: Don't optimize tzset() to __tzset() which bypasses
769         the __tzset_lock.
771 Tue Jul 30 15:14:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
773         * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
774         protection.
776 Tue Jul 30 02:48:28 1996  Ulrich Drepper  <drepper@cygnus.com>
778         * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
779         to be 64-bit clean.
780         Reported by Richard Henderson <rth@tamu.edu>.
782 Tue Jul 30 15:04:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
784         * locale/programs/ld-collate.c (collate_output): Fix typo reported by
785         David Miller.
787 Tue Jul 30 13:23:13 1996  Ulrich Drepper  <drepper@cygnus.com>
789         * locale/setlocale.c (setlocale): Don't try to free C locale
790         data.
791         Reported by Matthias Urlichs.
793 Tue Jul 30 14:35:17 1996  Miles Bader  <miles@gnu.ai.mit.edu>
795         * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
796         (open_file): New function, contents mostly from __open.
797         (_dl_sysdep_read_whole_file): New function.
799 Sat Jul 27 11:23:59 1996  Miles Bader  <miles@gnu.ai.mit.edu>
801         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
802         `..' dots in sed search string.
804 Mon Jul 29 01:27:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
806         * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
807         protection.
809 Sun Jul 28 23:46:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
811         * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
812         in those directories.
813         * config.make.in (add-ons): New varaible, set from @subdirs@.
814         * Makefile (subdirs): Added $(add-ons) at the end.
816         * time/strftime.c (strftime: do_number): Initialize PRINTED to
817         MAXDIGITS in case P is null and so sprintf is never actually called.
819 Mon Jul 29 02:46:23 1996  Ulrich Drepper  <drepper@cygnus.com>
821         Add support for the to-be-written internationalized regexp.
822         This code must be able to use collation symbols and collation
823         equivalent classes.
824         * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
825         _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
826         New global variables for collation classes.
827         * locale/categories.def: Add new descriptions for collation symbols
828         and collation classes.
829         * locale/langinfo.h: Add constants for collation symbols and
830         collation classes.
831         * locale/lc-collate.c: Add new global variables for collation symbols
832         and collation classes.
833         (_nl_postload_collate): Initialize new variables.
834         * locale/programs/ld-collate.c: Add code to emit tables for
835         collation symbols and collation classes.
836         * locale/programs/locales.h: Change prototype for `collate_output'.
837         * locale/programs/locfile.c (write_all_categories): Call
838         `collate_output' with new argument.
839         * locale/localeinfo.h: Add declaration for new global vars.
840         (union locale_data_value): New member wstr for `wchar_t' strings.
841         * locale/programs/locale-spec.c: Handle `collate-classes'
842         keyword and print information about available collation classes.
843         * locale/strlen-hash.h: New file.  Simple hashing function which
844         takes a string with known length.
845         * locale/Makefile (distribute): Add strlen-hash.h.
846         (locale-modules): New var.  Additional files for `locale' program.
848         * locale/C-ctype.c: Rewrite to avoid using string for giving values
849         which are of type `u_int32_t'.
850         Correct entry for EOF in toupper and tolower tables.
852         * locale/loadlocale.c (_nl_load_locale):  Add cast to prevent
853         warning.
855         * locale/programs/ld-ctype.c (ctype_output): Add code to make
856         sure that all tables in binary file are word-aligned.
858         * locale/programs/locfile.c (write_locale_data): Correct handling
859         of LC_MESSAGES locale.  Create directory if necessary.
861         * locale/setlocale.c (setlocale): Add cast to avoid warning.
863         * string/string.h: Add prototype for `__strndup'.
865 Wed Jul 24 19:10:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
867         * wcsmbs/mbrtowc.c: Remove unused variable.
869 Sun Jul 28 22:40:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
871         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
872         2.0.10; some problems were reported with an earlier version, and this
873         one is known to work.
875         * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
876         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
878 Sat Jul 27 13:02:09 1996  Ulrich Drepper  <drepper@cygnus.com>
880         * elf/rtld.c (dl_main): Ignore arguments when environment variable
881         LD_TRACE_LOADED_OBJECTS is set.
883 Sun Jul 28 19:42:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
885         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
886         __libc_enable_secure instead of _dl_secure.
887         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
888         * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
889         of _dl_secure.
890         * elf/Makefile (routines): Add enbl-secure.
891         (elide-routines.so): Here too.
892         * sysdeps/generic/enbl-secure.c: New file.
893         * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
894         * elf/dl-support.c (_dl_secure): Variable removed.
895         * elf/rtld.c: Likewise.  Replace all uses with __libc_enable_secure.
897 Sun Jul 28 19:26:40 1996  David S. Miller  <dm@neteng.engr.sgi.com>
899         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
900         Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
901         compiler doesn't elide it.
902         (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
904 Sat Jul 27 02:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
906         * elf/rtld.c (dl_main): Take new option --verify when run directly.
907         In verify mode, exit with status zero iff the argument object's
908         PT_INTERP matches argv[0].
909         * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
910         exits with zero status.  This makes `ldd' secure again.
912 Fri Jul 26 22:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
914         * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
915         environment variable handling.  This makes the dynamic linker
916         only print loaded libraries and quit.
918         * elf/ldd.sh.in: Don't use `rtld --list' but instead
919         LD_TRACE_LOADED_OBJECTS environment variable to print needed
920         objects.
922 Sat Jul 27 02:03:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
924         * db/makedb.c (main): Print version on stdout, not stderr.  Don't exit
925         after printing version until after doing usage for --help.
926         (long_options, main, usage): Rename -l/--lowercase option to
927         -f/--fold-case (-f matches sort).
929 Sat Jul 27 04:32:31 1996  Ulrich Drepper  <drepper@cygnus.com>
931         * db/makedb.c: New file.  Implement program to create simple <db.h>
932         database from textual input.  This will be used for nss_db.
934 Sat Jul 27 01:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
936         * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
937         * sunrpc/rpc/pmap_clnt.h: Likewise.
938         * sunrpc/rpc/auth.h: Likewise.
939         * sunrpc/rpc/pmap_rmt.h: Likewise.
940         * sunrpc/rpc/rpc_msg.h: Likewise.
942 Sat Jul 27 04:37:34 1996  Ulrich Drepper  <drepper@cygnus.com>
944         * string/string.h (strndupa): Change to use return value of
945         `memcpy' for more performance.
946         * string/strndup.c: Likewise.
948         * string/string.h (strdupa): Don't call __builtin_alloca in argument.
949         This might lead to problems.
950         (strndupa): Likewise.
952 Fri Jul 26 15:24:25 1996  Ulrich Drepper  <drepper@cygnus.com>
954         * sunrpc/rpc/auth.h: Add protection against multiple inclusion
955         and change K&R prototypes to ANSI prototypes.
956         * sunrpc/rpc/auth_unix.h: Ditto.
957         * sunrpc/rpc/clnt.h: Ditto.
958         * sunrpc/rpc/pmap_clnt.h: Ditto.
959         * sunrpc/rpc/pmap_prot.h: Ditto.
960         * sunrpc/rpc/pmap_rmt.h: Ditto.
961         * sunrpc/rpc/rpc_msg.h: Ditto.
962         * sunrpc/rpc/svc.h: Ditto.
963         * sunrpc/rpc/svc_auth.h: Ditto.
964         * sunrpc/rpc/xdr.h: Ditto.
966 Fri Jul 26 20:39:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
968         * ctype/test_ctype.c: Test EOF too.
970 Fri Jul 26 18:06:58 1996  Ulrich Drepper  <drepper@cygnus.com>
972         * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
973         * sunrpc/rpc/auth_unix.h: Likewise.
974         * sunrpc/rpc/clnt.h: Likewise.
975         * sunrpc/rpc/netdb.h: Likewise.
976         * sunrpc/rpc/pmap_clnt.h: Likewise.
977         * sunrpc/rpc/pmap_prot.h: Likewise.
978         * sunrpc/rpc/rpc_msg.h: Likewise.
979         * sunrpc/rpc/svc.h: Likewise.
980         * sunrpc/rpc/svc_auth.h: Likewise.
981         * sunrpc/rpc/xdr.h: Likewise.
983         * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
984         to here from...
985         * sunrpc/pmap_rmt.c: ...here.
987 Fri Jul 26 16:10:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
989         * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
990         valid ut_id field.
991         * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
992         if a search fails.
994 Fri Jul 26 00:36:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
996         * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
997         <kkojima@info.kanagawa-u.ac.jp>.
999 Fri Jul 26 04:41:28 1996  Ulrich Drepper  <drepper@cygnus.com>
1001         * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
1002         defined, not __OPTIMIZED.
1003         (_nl_msg_cat_cntr): Move declaration outside macro definition
1004         to prevent "nested extern" warning.
1005         (dcgettext): Rename local variable `result' to `__result'.
1007 Thu Jul 25 22:46:30 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1009         * locale/programs/localedef.c (__progname): Remove decl.
1010         (main): Use program_invocation_short_name instead of __progname.
1011         (usage): Use program_invocation_name instead of __progname.
1013 Fri Jul 26 03:46:08 1996  Ulrich Drepper  <drepper@cygnus.com>
1015         * catgets/gencat.c: Use "libc" instead of PACKAGE.
1016         * locale/localedef.c: Ditto.
1017         * locale/locale.c: Ditto.
1019         * locale/findlocale.c (_nl_find_locale): Little optimization.
1020         Use new function `strndup'.
1022         * locale/loadlocale.c: Little optimization.  Use constant value
1023         from `_nl_category_num_items' instead of byte-order dependend
1024         value from file.
1026         * locale/programs/ld-time.c (time_add): Correct string constant.
1028         * locale/programs/locale-spec.c: New file.
1029         * locale/programs/locale.c: Call `locale_special' function if
1030         no other field matches.
1032         * locale/programs/localedef.c: No need to define `program_name'.
1033         Use global variable `__progname'.
1035         * locale/programs/locfile.c (write_locale_data): Always write
1036         LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file.  This is
1037         necessary since message catalogs are also installed in the
1038         LC_MESSAGES/ directory.
1040         * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
1041         function instead of writing single bytes.
1042         (encode_char): Also handle little endian.
1044         * locale/setlocale.c (new_composite_name): Little optimization.
1045         Use return value of `memcpy'.
1047         * misc/ttyent.h: Pretty print prototypes, add missing parameter
1048         names, prepend parameter names with __  and use `__const' instead
1049         of `const'.
1050         * posix/unistd.h: Ditto.
1051         * stdlib/stdlib.h: Ditto.
1052         * string/string.h: Ditto.
1054         * posix/getconf.c: De-ASNI-fy.  Recognize POSIX.2 constant names.
1055         Use `error' function instead of doing it by hand.
1056         * sysdeps/posix/sysconf.c: De-ANSI-fy.
1057         Handle _SC_COLL_WEIGHTS_MAX.
1058         * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
1059         _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
1060         since these do depend on the platform.
1061         Add POSIX.4 symbols.
1063         * posix/posix2_lim.h: Add missing definition of
1064         _POSIX2_COLL_WEIGHTS_MAX.
1065         Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
1066         to high values since we have no fixed limit.
1068         * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
1069         _SC_PAGESIZE for buggy systems (= HP UX) out there.
1071         * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
1072         * wcsmbs/mbsnrtowcs.c: New file.  Non-standard implementation.
1073         * wcsmbs/wcsnrtombs.c: Ditto.
1074         * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
1075         wcsnrtombs.
1077 Thu Jul 25 00:25:54  Richard Henderson  <rth@tamu.edu>
1079         * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
1080         course.
1081         * nss/getXXent_r.c: Likewise.
1082         * nss/nsswitch.c: Likewise.
1083         * nss/nss_files/files-XXX.c: Likewise.
1084         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
1085         * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
1086         * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
1088 Thu Jul 25 00:53:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1090         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
1091         macro, now put the needed Linux version just once, here; update to
1092         needing linux-2.0.3 headers.
1093         (libc_cv_linuxVER): New macro derived from that.
1094         (kernel header check): Use those macros and some m4 magic to replace
1095         hard-coded `201' and `2.0.1' in several places.
1097         * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
1099 Wed Jul 24 17:02:30 1996  Ulrich Drepper  <drepper@cygnus.com>
1101         * time/localtime.c: Move lock variable declaration to end of
1102         variable declarations since if is a dummy macro the ; at the
1103         end terminates the variable section of the function.
1105         * time/tzset.c: Undefine `tzset' before function declaration.
1106         Use `weak_function' macro instead of `weak_symbol'.
1108 Wed Jul 24 18:57:33 1996  Ulrich Drepper  <drepper@cygnus.com>
1110         * stdlib/strtouq.c: Additional weak alias is `strtoull', not
1111         `strotull'.
1113 Wed Jul 24 18:26:23 1996  Ulrich Drepper  <drepper@cygnus.com>
1115         * locale/C-ctype.c: Increment number of fields after change
1116         from Wed Jun 19 03:24:58 1996.
1118 Tue Jul 23 18:13:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1120         * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
1121         ($(common-objpfx)libc.so): Move deps into that, use it.
1122         [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
1123         $(rpcuserlibs:.so=_pic.a).
1124         * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
1125         use $(LDLIBS-c.so).
1127 Thu Jul 18 21:41:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1129         * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
1130         n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
1132 Tue Jul 23 02:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
1134         * locale/iso-4217.def: Add India to comment for symbol "INR ".
1135         Reported by Raja R Harinath  <harinath@cs.umn.edu>.
1137 Sat Jul 20 14:03:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1139         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
1140         #undef RESOLVE.
1142 Sun Jul 21 06:48:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1144         * time/tzset.c: Include <libc-lock.h>.
1145         (__tzset_lock): New lock variable.
1146         (tzset): New function (weak defn), no longer weak alias for __tzset.
1147         Call __tzset while holding __tzset_lock.
1148         * time/localtime.c: Include <libc-lock.h>.
1149         (__localtime_r): Hold __tzset_lock while doing the work.
1151         * sysdeps/generic/setenv.c (__environ): Change conditional for #define
1152         from [!HAVE_GNU_LD] to [!_LIBC].
1153         [_LIBC]: Include <libc-lock.h> and define a lock.
1154         (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
1155         (setenv, unsetenv): Use them.
1157 Sun Jul 21 01:44:39 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1159         * locale/programs/locfile.c (write_locale_data): Deal with missing
1160         UIO_MAXIOV.
1162         * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
1163         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
1165 Sat Jul 20 21:55:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1167         Win32 hacks from <Rob_Tulloh@tivoli.com>.
1168         * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
1169         use void * for my_realloc; include <malloc.h> for alloca.
1170         (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
1171         * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
1172         * posix/glob.h: Likewise.
1174 Sat Jul 20 13:28:52 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1176         * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
1177         call __io_select unless there's only a single descriptor, as each
1178         descriptor now has its own reply port.
1179         If there is only a single descriptor, just use its reply port for
1180         everything and don't bother creating the port set.
1182         * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
1183         <unistd.h>: New include.
1185         * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
1186         continuation line.
1188 Sat Jul 20 07:15:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1190         * crypt/Makefile, crypt/nocrypt.c: Removed.  It is illegal to export
1191         from the USA any software that even makes it easy to drop in an
1192         encryption module of foreign origin.
1193         * Makerules (cryptobjdir): Variable removed.
1194         ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
1195         * Makefile (subdirs): Remove crypt.
1197 Fri Jul 19 15:45:20 1996  Ulrich Drepper  <drepper@cygnus.com>
1199         * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
1200         operator to yesexpr and noexpr string.
1202 Fri Jul 19 15:10:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1204         * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
1205         old code would have failed on a big-endian 64-bit architecture).
1206         * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
1208         * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
1209         (xdr_u_long): Use switch instead of chain of if-statements.
1210         Remove gratitous parentheses around return expressions.
1211         (xdr_enum): Open code case where INT_MAX<LONG_MAX.
1213         * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
1215         * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
1216         not int.
1218 Fri Jul 19 16:56:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1220         * dlfcn.h, db.h: New wrapper headers.
1222         * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
1223         for `struct stat;' forward decl.
1225 Fri Jul 19 22:25:19 1996  Ulrich Drepper  <drepper@cygnus.com>
1227         * locale/iso-4217.def: Add some more standardized currency
1228         symbols.
1230 Fri Jul 19 13:18:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1232         * hurd/report-wait.c (describe_number): Use unsigned long int for J.
1234 Thu Jul 18 12:33:57 1996  Roland McGrath  <roland@baalperazim.frob.com>
1236         * Rules (dummy.o, empty.o): Targets removed.
1237         (dummy.c, empty.c): New targets replace them.
1239 Thu Jul 18 11:42:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1241         * crypt/Makefile (lib-noranlib): Depend on
1242         $(objpfx)libcrypt.so$(libcrypt.so-version).
1243         (subdir): Fix name.
1245 Thu Jul 18 04:33:21 1996  Roland McGrath  <roland@baalperazim.frob.com>
1247         * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
1248         check.  mib's clueless hacking broke it.
1250 Thu Jul 18 04:27:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1252         * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
1254 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1256         * misc/sys/ustat.h: New file.
1257         * misc/ustat.h: Ditto.
1258         * sysdeps/generic/ustatbits.h: Ditto.
1259         * sysdeps/stub/ustat.c: Ditto.
1260         * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
1261         * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
1262         ustatbits.h.
1263         (routines): Mention ustat.
1265         * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
1266         * sysdeps/alpha/elf/start.S: here.
1268         * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
1269         alphabetically correct place.  Mention ustat.
1271         * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
1272         common symbol (makes errno accessible from gdb).
1274         * login/pututline_r.c (pututline_r): Test ut_id in repositioning
1275         test, not ut_type.
1277         * login/logwtmp.c (logwtmp): Reimplemented.  Must ensure that a
1278         record always gets appended at end of file (wtmp is a log file,
1279         after all).  Set ut_type to DEAD_PROCESS if name is empty.
1281         * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
1282         separate loop from search for UT_ID.  Fix code so it is in
1283         sync with Unix man page.
1285         * login/getutline_r.c (getutline_r): Stop searching only if
1286         ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
1288 Tue Jul 16 15:06:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1290         * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
1291         avoid duplicate declarations.
1293 Sun Jul 14 19:08:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1295         * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
1296         and alpha-gnu-linuxecoff targets.
1298 Fri Jul 12 16:58:44 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1300         * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
1302 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1304         * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
1305         of int.
1307         * resolv/res_comp.c (res_hnok): Use empty statement in place
1308         of NULL (which generates a "useless expression" warning in
1309         gcc).
1311 Wed Jul 17 23:56:35 1996  Roland McGrath  <roland@baalperazim.frob.com>
1313         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
1314         with $(..) in output.
1316 Wed Jul 17 21:53:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1318         * elf/Makefile (dl-routines): Add dl-cache.
1319         * elf/dl-cache.c: New file.
1320         * elf/dl-load.c (_dl_map_object): Check cache before default path.
1322 Wed Jul 17 20:41:30 1996  Ulrich Drepper  <drepper@cygnus.com>
1324         * stdio-common/vfscanf.c: Major change.  Now read character
1325         from stream only if needed.  Before it was read after the
1326         previous character was used.
1327         Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
1329         * stdio-common/tstscanf.c: Change test program so that return
1330         value is != 0 if one test failed.
1332 Wed Jul 17 17:08:48 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1334         * sysdeps/m68k/Makefile (crypt): Variable removed.
1335         * sysdeps/sparc/Makefile: Likewise.
1337         * version.h (VERSION): Update to 1.93.
1339         * Makerules ($(libdir)/libc.so): Depend on
1340         $(common-objpfx)libcrypt.so$(libcrypt.so-version).
1342         * crypt/nocrypt.c: New file.
1343         * Makefile (subdirs): Add crypt.
1344         * crypt/Makefile: New file.
1346         * Makerules (soversions.mk): Move this target, include of it, and
1347         include of version.mk to ...
1348         * Makeconfig: ... here.
1349         (soversions.mk): Depend on Makeconfig instead of Makerules.
1351         * shlib-versions (*-*-*): Set libcrypt=0.
1353 Wed Jul 17 11:29:26 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1355         * stdio/linewrap.c (lwupdate): Fix boundary condition where a
1356         word extends right up to rmargin.
1358         * stdio/linewrap.c (lwupdate): When we've done a word wrap and
1359         output the wrap margin, set point_col to wmargin.
1360         Use negative point_col to deal with a wmargin of 0.
1361         (line_wrap_point): Return 0 for a negative point_col.
1362         (line_wrap_stream): Make wmargin ssize_t.
1363         * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
1364         point_col ssize_t.
1365         (line_wrap_stream): Make wmargin ssize_t.
1366         (line_wrap_point): Return 0 for a negative point_col.
1368 Wed Jul 17 02:43:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1370         * shlib-versions (*-*-gnu*): Set libc=0.0
1372 Tue Jul 16 01:52:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1374         * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
1375         sysdeps/i386/dl-machine.h.
1377 Tue Jul 16 00:18:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1379         * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
1380         to fiddle __put_limit in conjunction with __linebuf_active.
1382 Tue Jul 16 00:14:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1384         * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
1385         to the strong name, not the file name.
1387 Tue Jul 16 16:43:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1389         * csu/initfini.c: More magic.  Detect if .end is produced and put it
1390         in the output iff the compiler does.
1392         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
1393         because that is broken on alpha.
1395         * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
1396         call as in first.
1398         * Makerules (make-link): Install the new link with atomic mv -f in
1399         case ln itself requires the library being installed.
1401 Tue Jul 16 00:31:31 1996  Richard Henderson  <rth@tamu.edu>
1403         * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
1404         i386/dl-machine.h of 960713.
1406         * sysdeps/generic/dl-sysdep.c:  Include <sys/mman.h>.
1407         (_dl_sysdep_read_whole_file): Fix result variable declaration.
1409 Tue Jul 16 00:53:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1411         * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
1412         `nodename' member.
1414 Mon Jul 15 17:23:53 1996  Ulrich Drepper  <drepper@cygnus.com>
1416         * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
1417         with pointer to local variable instead of NULL.
1419 1996-07-15  Paul Eggert  <eggert@twinsun.com>
1421         * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
1423 Sat Jul 13 09:53:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1425         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
1426         that are already added by other means.
1428         * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
1429         caller column to get those syscalls added automagically.
1431 Mon Jul 15 12:24:54 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1433         * login/logout.c (logout): Initialize DATA to a state that will
1434         make setutent_r happy.
1436 Sun Jul 14 01:51:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1438         * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
1439         instead of setting the DT_DEBUG pointer.
1441         * csu/initfini.c (_init, _fini): Generate .end directives after
1442         standalone prologues and filter them out from epilogues.
1444         * Makeconfig (rtld-installed-name): Set to ld.so.1.
1445         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
1446         removed.
1448         * manual/Makefile (glibc-targets): Remove subdir_ from elts.
1450         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
1452         * MakeTAGS (extract): Pass --add-comments=TRANS.
1453         * sysdeps/gnu/errlist.awk: Write comments into the output with the
1454         descriptive paragraphs from the manual preceded by TRANS.
1456         * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
1457         (_dl_start): Move RESOLVE defn inside this function and #include
1458         "dynamic-link.h" a second time there.
1459         [RTLD_START]: Move use of this after _dl_start function.
1461         * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
1463         * elf/rtld.c: Include <string.h>.
1465         * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
1466         ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
1467         Conditionalize defns on [RESOLVE].
1468         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
1469         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1470         Instead use RESOLVE macro with same args.
1471         (elf_machine_rel): Conditionalize defn on [RESOLVE].
1472         * elf/dl-reloc.c (RESOLVE): New macro, define before including
1473         "dynamic-link.h".  It replaces `resolve' local function.
1474         * elf/dl-runtime.c: Likewise.
1475         * elf/rtld.c: Likewise.
1477         * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
1479         * elf/dl-open.c (_dl_open): Force an indirect call for
1480         _dl_relocate_object so there is no chance a PLT fixup will be done
1481         and clobber _dl_global_scope before our call happens.
1483         * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
1484         to =t; must operate on top of fp reg stack, not second from top.
1485         Correct input constraint to 0 from t; must be explicit when input and
1486         output are the same register.
1487         (floor): Use __volatile instead of volatile.
1488         (ceil): Likewise.
1490         * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
1491         other targets.
1493 Sat Jul 13 23:50:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1495         * manual/Makefile (lib): New phony target.  Depend on stamp files.
1496         ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
1498 1996-07-13  Paul Eggert  <eggert@twinsun.com>
1500         * time/strftime.c (strftime): Use space padding for %e, %k, %l,
1501         to match Emacs format-time-string specification.
1502         (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
1504 Sat Jul 13 20:17:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1506         * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
1507         NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
1508         between MAP and its deps.
1509         * elf/link.h: Fix decl.
1510         * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
1511         colon-separated list of names, map those and pass vector of ptrs as
1512         PRELOADS list to _dl_map_object_deps.
1513         * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
1514         _dl_map_object_deps with empty preload list.
1515         * elf/dl-open.c (_dl_open): Likewise.
1517         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
1518         removed.
1519         (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
1520         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
1521         Conditionalize defn on [! MAP_ANON].
1522         * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
1523         on [! MAP_ANON].
1524         * elf/rtld.c (dl_main): Likewise.
1525         * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
1526         (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
1528         * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
1530 Sat Jul 13 02:47:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1532         * stdlib/random.c (__random): Declare as int32_t to be in sync
1533         with declaration.
1535         * socket/Makefile (headers): Add socketbits.h.
1537         * misc/mntent.c (endmntent): Allow for NULL stream.  SunOS does
1538         it that way.
1540         * grp/initgroups.c (initgroups): Add groups that user is a member
1541         of, not the ones he is _not_ a member of.
1543         * nss/nsswitch.c (known_compare): Make known_compare() a static
1544         instead of a local function.  The latter are difficult to debug
1545         and slow to execute on certain platforms.
1547         * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
1548         place of sizeof (dev).  The size of a literal string includes the
1549         NUL byte.
1551         * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
1553 Thu Jul 11 16:59:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1555         * misc/mntent.c (addmntent): Seek to end of file before writing
1556         entry.  Return 1 on error, not -1.
1558 Tue Jul  9 19:08:05 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1560         * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
1561         syscall.
1563 Fri Jul  5 18:44:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1565         * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
1566         shift amount for Jensen must be 5 not 4.
1568 Sat Jul 13 20:04:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1570         * socket/sys/socket.h (struct osockaddr): New type.
1572 Sat Jul 13 03:50:53 1996  Ulrich Drepper  <drepper@cygnus.com>
1574         * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
1575         * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
1576         and `long double' versions can be generated.
1577         * misc/qefgcvt.c, misc/qefgcvt_r.c: New files.  Define macros
1578         so that included efgcvt{,_r}.c file generate `long double'
1579         versions.
1580         * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
1581         functions.
1583         * manual/startup.texi: Document new getsubopt function.
1584         * manual/examples/subopt.c: New example program for documenting
1585         getsubopt function.
1587 Fri Jul 12 23:58:37 1996  Ulrich Drepper  <drepper@cygnus.com>
1589         * stdlib/Makefile (routines): Add getsubopt.
1590         * stdlib/stdlib.h: Add prototype for getsubopt.
1591         * stdlib/getsubopt.c: New file.  Implement getsubopt function
1592         to handle suboption parsing.
1594 Thu Jul 11 20:09:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1596         * inet/getnetent_r.c: Define NEED_H_ERRNO.
1597         * inet/getnetbynm_r.c: Likewise.
1598         * inet/getnetent.c: Likewise.
1599         * inet/getnetbyad_r.c: Likewise.
1600         * inet/getnetbyad.c: Likewise.
1601         * inet/getnetbynm.c: Likewise.
1603         * sysdeps/generic/pselect.c: Include <sys/time.h>.
1605         * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
1606         `struct timespec'.
1608         * math/Makefile (calls): Add s_frexp, s_ldexp.
1609         (routines): Remove them and &f from here.
1611         * sys/socket.h: New file, wrapper for socket/sys/socket.h.
1613         * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
1614         and check it.
1616         * nss/nss_files/files-XXX.c: Comment fix.
1618 Fri Jul 12 01:28:35 1996  Ulrich Drepper  <drepper@cygnus.com>
1620         * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
1621         of reentrant function.
1622         (setup): Pass additional argument with function name we are
1623         looking for.
1624         (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
1625         new argument {SET,END,GET}FUNC_NAME_STRING.
1627         * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
1628         we return a pointer.
1630 Thu Jul 11 18:20:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1632         * nss/nss_files/files-parse.c: Add comment about things to #define.
1634         * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
1636         * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
1637         terminator char as an error.
1639         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
1641 Thu Jul 11 03:21:10 1996  Ulrich Drepper  <drepper@cygnus.com>
1643         * catgets/gencat.c (write_out): Move code to determine new
1644         best size out of inner loop.
1646 Thu Jul 11 00:22:40 1996  Ulrich Drepper  <drepper@cygnus.com>
1648         * sysdeps/libm-ieee754/s_frexpl.c: New file.  `long double'
1649         implementation of frexp() function.
1650         * sysdeps/libm-ieee754/s_ldexpl.c: New file.  `long double'
1651         implementation of ldexp() function.
1653         * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
1654         out before or'ing.
1656 Wed Jul 10 05:24:40 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1658         * misc/mntent.c: Include <sys/types.h>.
1659         (endmntent): Return 1 one success, 0 on failure.
1660         (getmntent): Chop newline and ignore empty lines.
1662 Mon Jul  8 21:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1664         * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
1665         differently based on [RTLD_BOOTSTRAP].
1666         (elf_machine_rela): Use it instead of the fn ptr arg directly.
1668 Tue Jul  9 09:37:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1670         * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
1671         __glob_closedir_hook): Remove decls.
1673         * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
1675         * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
1676         for send and connect syscalls.
1678         * socket/sys/socket.h: New file, taken from non-sysdep parts of
1679         linux/sys/socket.h; break sysdeps parts out into socketbits.h.
1680         Declare __ names for send and connect.
1681         * sysdeps/generic/socketbits.h: New file.
1682         * sysdeps/unix/sysv/linux/socketbits.h: New file.
1683         * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
1684         * sysdeps/generic/sys/socket.h: File removed.
1686         * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
1687         * sysdeps/mach/hurd/send.c: Likewise.
1689         * sysdeps/mach/libc-lock.h: New file.
1690         * sysdeps/unix/readdir.c: Do locking.
1691         * sysdeps/unix/seekdir.c: Likewise.
1692         * sysdeps/unix/rewinddir.c:  Likewise.
1693         * sysdeps/unix/closedir.c: Likewise.
1694         * sysdeps/unix/bsd/telldir.c: Likewise.
1695         * sysdeps/mach/hurd/seekdir.c: Likewise.
1696         * sysdeps/mach/hurd/readdir.c: Likewise.
1697         * sysdeps/mach/hurd/closedir.c: Likewise.
1698         * sysdeps/mach/hurd/opendir.c: Initialize the lock.
1699         * sysdeps/unix/opendir.c: Likewise.
1700         * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
1701         (struct __dirstream): Add lock member using __libc_lock_define.
1702         * sysdeps/unix/dirstream.h: Likewise.
1704         * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
1706         * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
1708         * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
1710 Thu Jul  4 01:34:04 1996  Ulrich Drepper  <drepper@cygnus.com>
1712         * locale/programs/stringtrans.c: Fix typo in copyright.
1714         * stdio-common/printf-prs.c: Add casts to prevent
1715         signed<->unsigned warnings.
1717         * stdio-common/printf-parse.h: Initialize state variable before
1718         calling mbrlen.
1719         * stdio-common/printf-prs.c: Don't initialize state variable here.
1720         * stdio-common/vfprintf.c: Don't initialize state variable.
1721         (vfprintf): While determining length of multibyte string don't
1722         try to be clever in determining characters to use for first
1723         call.
1725         Add real implementation of multibyte<->wide char conversion
1726         functions.  The functions always convert between the fixed wide
1727         char format (ISO 10646 in UCS4) and the UTF8 representation of
1728         this character set.  Conversion between the currently used
1729         8bit character set and ISO 10646 will not take place.  This is
1730         what iconv() is for.
1731         * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
1732         dummy definition.
1733         Add optimized version of `mbrlen' function.
1734         * wcsmbs/btowc.c (btowc): Restrict range of legal characters
1735         to 0...0x7f.
1736         * wcsmbs/wctob.c (wctob): Restrict range of legal characters
1737         to 0..0x7f.
1738         * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
1739         This is needed in the wchar.h header.
1740         * wcsmbs/mbrtowc.c: Replace dummy implementation.  Convert UTF8
1741         encoded character to UCS4.
1742         * wcsmbs/mbsinit.c: Replace dummy implementation.  Test COUNT
1743         element of `mbstate_t' for initial state.
1744         * wcsmbs/mbsrtowcs.c: Replace dummy implementation.  Convert UTF8
1745         encoded string to UCS4 string.
1746         * wcsmbs/wcrtomb.c: Replace dummy implementation.  Convert UCS4
1747         character to UTF8 encoded form.
1748         * wcsmbs/wcsrtombs.c: Replace dummy implementation.  Convert UCS4
1749         encoded string to UTF8 encoded form.
1751 Tue Jul  9 06:19:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1753         * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
1754         variable name, so new a libc with new requirements won't fail to
1755         notice an insufficient Linux version.
1757         * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
1759         * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
1760         instead of 2.0 headers.
1762         * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
1764         * sysdeps/gnu/errlist.awk: Undo mib's bogus changes.  The
1765         sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
1767         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
1768         before using it in lhs of weak_alias.
1770         * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
1771         Call __nss_lookup when not setting STARTP.
1772         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
1773         function-calling loop.
1775 Tue Jul  9 00:14:52 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
1777         * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
1778         PENDIN, NOFLSH): Undefine these at start if they are already
1779         defined to avoid collision with termbits.h.
1780         * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
1781         (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
1783 Mon Jul  8 13:37:40 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1785         * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
1786         already defined to float, long double.  Use those macros for _Mdouble_
1787         defns when including mathcalls.h.
1788         * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
1789         -D_Mlong_double_=double.
1791         Add more -lm functions to -lc because ldexp uses them.
1792         * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
1793         (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
1794         ldexp have both f and l code, and those have f though not l code.
1796 Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
1798         * sysdeps/mach/hurd/errnos.awk: Skip entries where the
1799         error is 0.  The "placeholder" entries recently added to
1800         errno.texi convert to zero since `???/' is at the front of them.
1801         * sysdeps/gnu/errlist.awk (errnoh): Likewise.
1803         * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
1804         __const to conform with unistd.h.
1806         * stdlib/stdlib.h (random): Declare return type to be int32_t.
1808         * string/argz-delete.c (argz_delete): Use memmove instead of
1809         memcpy for possibly overlapping strings.
1811 Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1813         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
1814         storage class.  GCC gives an error for non-extern data defns with the
1815         alias attribute.
1817 Mon Jul  8 01:37:34 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
1819         * string/argz-insert.c (__argz_insert): (__argz_insert): Use
1820         memmove instead of memcpy for possible overlapping strings.
1822 Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1824         * libc-symbols.h (weak_function): New macro.
1825         For GCC 2.7+ define as __attribute__ ((weak)).
1826         * elf/dl-minimal.c: Use weak_function as keyword in function defns
1827         instead of weak_symbol (NAME) after the defn.
1828         * stdlib/strtol.c: Likewise.
1829         * stdlib/strtod.c: Likewise.
1830         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1832         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
1833         If this is defined, don't declare _dl_rtld_map as weak, and
1834         don't check for MAP pointing to it.  RESOLVE is always null in this
1835         case, so test with #ifdef instead of if.
1837         * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
1838         weak_symbol.
1839         * csu/initfini.c (_init): Likewise.
1840         * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
1841         * misc/efgcvt_r.c: Likewise.
1842         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1843         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1845         * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
1846         It was not used in any assembler code.
1847         (weak_symbol_asm): Renamed to weak_extern_asm.
1848         (weak_extern): New macro replaces weak_symbol for weak extern refs;
1849         define to weak_extern_asm for [!ASSEMBLER].
1851 Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1853         * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
1854         weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
1855         define those now as aliases.
1856         Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
1857         [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
1858         after GCC weak attribute decl.
1860         * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
1861         map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
1862         (element printer): Check for elt in ALIAS, instead of special case
1863         for EWOULDBLOCK.
1865         * io/Makefile (headers): Add sys/vfs.h.
1866         * io/sys/vfs.h: New file.
1868         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
1869         critical section lock before unlinking dying active resources.
1870         The unlock just before return is right (i.e. old code unlocked twice).
1872 Sun Jun  2 22:28:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1874         * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
1875         Use memmove instead of memcpy where overlap is possible (not
1876         necessary using current implementation of memcpy, but...).
1877         (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
1879 Fri May 31 11:48:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1881         * stdio/linewrap.c (lwupdate): New function, mostly was
1882         __line_wrap_update.  Use POINT_COL field instead of POINT.
1883         (__line_wrap_output): Use lwupdate.
1884         (__line_wrap_update): New function.
1885         (ensure_unwrapped, ensure_wrapped): New functions.
1886         (line_wrap_set_lmargin, line_wrap_set_rmargin,
1887         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
1889         * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
1890         POINT_COL. Add POINT_OFFS field.
1891         (__line_wrap_update): New decl.
1892         (line_wrap_set_lmargin, line_wrap_set_rmargin,
1893         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
1895 Fri Jul  5 17:34:47 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1897         * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
1899         * login/pututline_r.c (pututline_r): Since we assign RESULT from
1900         lseek now, check that it's >= 0, not == 0.
1902 Wed Jul  3 13:28:04 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1904         * login/login.c (login): Make a copy of *UT, fill in various
1905         fields that we supply (ut_line, ut_type, ut_pid), and use the copy
1906         in place of UT.
1908         * login/getutline_r.c (getutline_r): When we return ESRCH, mark
1909         UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
1911 Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1913         * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
1914         signal during critical section doing interruptible RPC, if
1915         _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
1916         before thread_resume.  If in critical section, pass 0 for SIGNO to
1917         _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
1919         * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
1921         * sysdeps/unix/sysv/linux/sys/user.h: New file.
1922         * sysdeps/unix/sysv/linux/Dist: Add it.
1923         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
1925         * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
1926         points within DATA->linebuffer; otherwise use all of DATA->linebuffer
1927         itself, no need to skip past a NUL.
1929         * nss/nsswitch.h (known_function): Comment fix.
1930         * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
1931         directly.  Do the lookup and insertion with a single call, and fill in
1932         the tree node afterwards if new.
1933         (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
1935         * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
1936         (struct timeval): Add bodiless decl for scope.
1938         * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
1939         Move struct timespec defn outside [_TIME_H] so it can be got with
1940         #define __need_timespec.
1942         * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
1943         for `struct timespec' member names.
1944         (TIMESPEC_TO_TIMEVAL): Likewise.
1946         * nss/Makefile (extra-libs-others): New variable.
1948         * extra-lib.mk: Don't test for $($(lib)-no-lib-dep).  Instead match
1949         $(lib) in $(extra-libs-others).
1950         * sunrpc/Makefile (extra-libs-others): New variable.
1951         (librpcsvc-no-lib-dep): Variable removed.
1953         * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
1954         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
1955         _dl_rtld_map.
1956         (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
1957         (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
1958         (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
1959         _dl_rtld_map weak only here.
1961         * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
1963 Thu Jul  4 05:21:59 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1965         * login/utmp.h: Fix typos.
1967         * misc/syslog.c (vsyslog): Use __send instead of send and
1968         __connect instead of connect to avoid name-space collisions (e.g.,
1969         with psgetty).
1971 Wed Jul  3 16:29:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1973         * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
1975         * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
1977         * malloc/malloc-size.c (malloc_usable_size): Renamed from
1978         malloc_object_allocation_size.
1979         * malloc/malloc.h: Fix decl.
1981         * sys/select.h: New file, wrapper header.
1983         * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
1984         fd_set, associated macros, and select decl.
1986         * sysdeps/posix/isfdtype.c: New file.
1988 Tue Jul  2 23:45:14 1996  Ulrich Drepper  <drepper@cygnus.com>
1990         The latest Japanese proposal for POSIX locales renames the
1991         CHARMAP keyword in locale definition files to CHARCONV.
1992         * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
1993         function ctype_is_charmap to ctype_is_charconv.
1994         * locale/programs/locfile-kw.gperf: Replace charmap keyword with
1995         charconv.
1996         * locale/programs/locfile-token.h: Add definition of token
1997         charconv.
1998         * locale/programs/locfile.c: Recognize charconv keyword.  Rename
1999         lables according to this.
2001         * locale/weight.h (get_weight): Cast constants to prevent
2002         warnings.
2004         * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
2005         string/strxfrm.c: Add some more casts to prevent signed<->unsigned
2006         warnings.
2008         New stuff described in P1003.1g.
2009         * misc/Makefile (headers): Add sys/select.h.
2010         (routines): Add pselect.
2011         * misc/sys/select.h: New file.  Declare select functions and
2012         needed data types and macros.
2013         * sysdeps/generic/pselect.c: New file.  Add generic implementation
2014         of pselect() function which uses select().
2016         * posix/getconf.c: Recognize new variables from P1003.1g.
2017         * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
2018         _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
2019         * posix/unistd.h: Add description of the P1003.1g variables.
2020         * sysdeps/generic/confname.h: Define _SC_* values for new
2021         variables.
2022         * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
2023         _PC_SOCK_MAXBUF.
2024         * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
2025         * sysdeps/posix/sysconf.c (sysconf): Add handling of new
2026         P1003.1g variables.
2027         * sysdeps/stub/sysconf.c (sysconf): Ditto.
2028         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
2029         _POSIX_SELECT since Linux has this.
2031         * socket/Makefile (routines): Add isfdtype.
2032         * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
2033         * sysdeps/stub/isfdtype.c: New file.  Stub implementation of
2034         isfdtype.
2036         * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
2038 Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2040         * elf/Makefile (LDFLAGS-dl.so): New variable.
2041         (libdl.so): Depend on eval.so.
2042         (distribute): Add eval.c.
2043         * elf/eval.c: New file.
2045         * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
2046         in case it wrote fewer than MAXDIGITS chars.
2048         * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
2049         newline from flushing full buffer in loop, fix test so no fflush is
2050         done when last byte written exactly fills the buffer.
2052         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
2054         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
2055         (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
2057         * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
2058         extracting _dl_rtld_map.l_addr.
2060         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
2061         weak.
2062         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
2064         * shlib-versions (*-*-*): Set libnss_db=1.
2066 Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2068         * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
2070         * rpm/template (%build): Use @prefix@ instead of always /usr.
2071         Set up configparms only if @prefix@ is in fact /usr.
2072         * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
2074         * elf/Makefile: Add missing endif.
2076         * nss/nss_files/files-ethers.c (ntohost): Fix db key.
2078         * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
2079         (DATABASE): Define this instead of DATAFILE.
2080         * nss/nss_files/files-hosts.c: Likewise.
2081         (hostbyname): Use LOOKUP_NAME macro.
2083         * nss/nss_db/db-XXX.c: New file.
2084         * nss/Makefile (services): Add db.
2085         (libnss_db-inhibit-o): New variable.
2086         (libnss_db-routines): New variable.
2087         (distribute): Append db-XXX.c.
2088         (libnss_db.so): Depend on libdb.so and libnss_files.so.
2089         ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
2091         * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
2092         args, ignored.
2093         (DATAFILE): New macro.
2094         * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
2095         "files-XXX.c".
2096         * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
2097         Pass db key args to DB_LOOKUP.
2098         (DATAFILE): Macro removed.
2099         (DATABASE): New macro replaces it, lacks "/etc/" prefix.
2100         * nss/nss_files/files-service.c: Likewise.
2101         * nss/nss_files/files-pwd.c: Likewise.
2102         * nss/nss_files/files-proto.c: Likewise.
2103         * nss/nss_files/files-grp.c: Likewise.
2104         * nss/nss_files/files-ethers.c: Likewise.
2106         * elf/linux-compat.c: File removed.
2107         * elf/Makefile (distribute): Remove linux-compat.c.
2108         (ld-linux.so.1): Remove target and associated variables.
2110         * sunrpc/xdr.c: Remove malloc decl.
2111         * sunrpc/portmap.c: Likewise.
2113         * sunrpc/svc_tcp.c (abort): Don't declare.  Instead define as macro
2114         casting abort to fn returning bool_t.
2116         * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
2117         the parser function.
2118         [EXTERN_PARSER] (LINE_PARSER): Define to empty.
2119         * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
2120         * nss/nss_files/files-grp.c: Likewise.
2122         * Makeconfig (BUILD_CC): If undefined, define to $(CC).
2124         * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
2126         * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
2127         of ld.so so lookups for that soname find it.
2129         * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
2130         (resobjdir, LDLIBS-nss_dns.so): Variables removed.
2132         * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
2133         define parse_line function.
2134         (parse_line): #define to _nss_files_parse_pwent and
2135         add extern decl for that.
2137         * nss/nss_files/files-XXX.c (internal_getent): Return
2138         NSS_STATUS_TRYAGAIN for ERANGE error.
2140         * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
2141         of null, so next round returns null again instead of bombing.  Fix
2142         from drepper.
2144         * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
2145         Remove ; after `ENTDATA_DECL (data)'.
2146         Truncate line at strpbrk (line, EOLSET "\n").
2147         (ENTDATA_DECL): Put ; at end.
2148         (MIDLINE_COMMENTS): Macro removed.
2149         * nss/nss_files/files-ethers.c: Pass new argument.
2150         * nss/nss_files/files-hosts.c: Likewise.
2151         * nss/nss_files/files-network.c: Likewise.
2152         * nss/nss_files/files-parse.c: Likewise.
2153         * nss/nss_files/files-proto.c: Likewise.
2154         * nss/nss_files/files-rpc.c: Likewise.
2155         * nss/nss_files/files-service.c: Likewise.
2156         * grp/fgetgrent.c: Likewise.
2157         * pwd/fgetpwent.c: Likewise.
2158         * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
2159         fgetpwent.c already defines it.
2160         * nss/nss_files/files-grp.c: Likewise.
2162         * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
2163         as well as any matching with l_libname.  Fix DT_SONAME lookup to use
2164         string table properly.
2166         * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
2167         invoked directly, and l_libname from that if PT_INTERP missing.
2168         Set l_name from l_libname only if not set from argv.
2170         * time/europe, time/northamerica: Updated from ADO 96i.
2172 Mon Jul  1 15:44:34 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2174         * stdio-common/tst-ungetc.c: Include unistd.h.
2176         * inet/Makefile (routines): Change getnetbypt to getnetbyad.
2178 Mon Jul  1 13:32:42 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2180         * hurd/report-wait.c (describe_number): Make I unsigned long.
2182         * login/login.c (login): Only Frob OLD->ut_type if getutline_r
2183         actually found any entry.
2185         * login/pututline_r.c (pututline_r): If not located after any
2186         entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
2187         Lock the file before stating.
2189 Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2191         * nss/Makefile (databases): Change host to hosts.
2192         * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
2194         * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
2196         * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
2198         * string/string.h (strndupa): Pass missing arg to strnlen.
2200         * inet/getnetbypt_r.c: Renamed to ...
2201         * inet/getnetbyad_r.c: this; fixed function name.
2202         * inet/getnetbypt.c: Renamed to ...
2203         * inet/getnetbyad.c: this; fixed function name.
2205 Sat Jun 29 01:08:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2207         * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
2208         struct passwd.
2210 Fri Jun 28 23:25:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2212         * login/login.c (login): Initialize DATA so that setutent_r will
2213         actually do something.
2215 Fri Jun 28 16:53:01 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2217         * resolv/res_hconf.c (strndup): Remove function.
2219         * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
2220         using ElfW() instead of Elf32_*.
2222         * sysdeps/unix/sysv/linux/alpha/init-first.h,
2223         sysdeps/unix/sysv/linux/m68k/init-first.h,
2224         sysdeps/unix/sysv/linux/i386/init-first.h: New files.
2225         * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
2226         init-first.h to make abstract machine dependent parts of
2227         initialization.
2229         * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
2230         error handling.  It's safer that way.
2232         * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
2233         Fix by Richard Henderson.
2235         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
2236         typo/extraneous whitespace.
2238         * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
2239         determine what integer sizes we're dealing with.
2241 Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
2243         * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
2244         check for signal zero, repair logical sense of test by
2245         parenthesizing correctly.
2247         * hurd/hurdsig.c (_hurd_internal_post_signal): In
2248         check-for-pending signals code, release _hurd_siglock before
2249         jumping to deliver_pending.
2251 Thu Jun 27 04:04:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2253         * configure.in (config_machine): Make ELF the default even for
2254         Linux/Alpha unless a configuration of the form *-*-linux*ecoff
2255         is specified.
2257 Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2259         * nss/nss_files/files-hosts.c (ENTDATA): Define it.
2260         * nss/nss_files/files-parse.c (struct parser_data): Define entdata
2261         member only #ifdef ENTDATA.
2262         (ENTDATA_DECL): New macro.
2263         (LINE_PARSER): Use it for entdata decl.
2264         (parse_list): Find the space for LIST from DATA->linebuffer instead of
2265         from the input LINE, which might not be writable buffer space.
2266         (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
2267         [ENTDATA] (parser_stclass): #define to `static inline'.
2268         [!ENDATA] (parser_stclass): #define to empty.
2269         [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
2270         function is exported to -lnss_files users.
2272         * string/strndup.c: Add missing arg.
2274         * string/string.h (strndupa): Likewise.
2275         * string/strndup.c (strndup): Always terminate the string.
2277 Thu Jun 27 14:22:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2279         * stdio/Makefile (routines): Add vscanf.
2280         * stdio-common/Makefile (routines): Remove vscanf.
2281         * stdio-common/vscanf.c: Move to ...
2282         * stdio/vscanf.c: here.
2284         * rpm/Makefile (headers, install-lib, install-lib.so,
2285         versioned, install-bin, install-sbin, install-data,
2286         install-others): Add $(-VARIABLE).
2288 Fri Jun 28 02:41:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2290         * nss/Makefile (databases): New variable.
2291         (routines, libnss_files-routines): Use it.
2292         (subdir-dirs): Compute from $(services).
2294         * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
2295         init_module, klogctl): Use EXTRA in the "caller" column so these get
2296         added to unix-extra-syscalls and thus compiled in misc.
2298         * string/Makefile (routines): Add strndup.
2299         * string/strndup.c: New file.
2300         * string/string.h: Declare strndup.
2301         (strndupa): New macro.
2303         * string/string.h: Declare __strdup.
2304         * string/strdup.c: Deansideclized.  Define __ name and weak alias.
2306         * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
2308 Thu Jun 27 02:49:28 1996  Ulrich Drepper  <drepper@cygnus.com>
2310         * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
2312         * grp/initgroups.c (initgroups): De-ansi-fy.
2313         Move declaration of NGROUPS and GROUPS outside #if so that
2314         the code compiles for NGROUPS_MAX != 0.
2316         * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
2317         (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
2318         ether_ntoa, ether_ntoa_r, and ether_ntoh.
2319         * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
2320         inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
2321         inet/ether_ntoh.c: New files.  Implementation of functions to
2322         handle Ethernet address to host mapping.
2323         * inet/netinet/ether.h: New file.  Declare ether_* functions.
2324         * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
2325         compilation.
2326         * nss/ethers-lookup.c: New file.  Lookup function for ethers database.
2327         * nss/Makefile (routines): Add ethers-lookup.
2328         (libnss_files-routines): Add files-ethers.
2330         * nss/getXXent_r.c: Don't define set*ent and end*ent function
2331         with _r suffix.
2333         * nss/nss_files/files-XXX.c (internal_endent): Don't reset
2334         KEEP_STREAM every time called.
2335         (_nss_files_end): Reset KEEP_STREAM here instead.
2336         (internal_getent): If STREAM == NULL try to open instead of
2337         signalling error.
2338         Use cast to prevent warning.
2339         Terminate read line in case the buffer is too small.
2341         * nss/nss_files/files-ethers.c: New file.  Implementation of
2342         Ethernet adress<->hostname lookup through files interface.
2344         * stdlib/mbstowcs.c: Define based on mbsrtowcs().
2345         * stdlib/mbtowc.c: Define based on mbrtowc().
2346         * stdlib/wcstombs.c: Define based on wcsrtombs().
2347         * stdlib/wctomb.c: Define based on wcrtomb().
2349         * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
2350         unexpected_sizes_in_xdr_u_int.
2352         * sysdeps/generic/netinet/if_ether.h: New file.  Generic declaration
2353         of `struct ether_addr'.
2354         * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file.  Linux specific
2355         declaration of `struct ether_addr'.
2357         * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
2358         * wcsmbs/mbsrtowcs.c: Ditto.
2359         * wcsmbs/wcrtomb.c: Ditto.
2360         * wcsmbs/wcsrtombs.c: Ditto.
2362         * wcsmbs/mbsinit.c: Prepare for PS being NULL.
2364 Wed Jun 26 13:19:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2366         * hurd/get-host.c <fcntl.h>: New include.
2367         * hurd/set-host.c <fcntl.h>: New include.
2368         (_hurd_set_host_config): Include NEW in args to dir_link.
2369         Return NWROTE, not NREAD.
2371         * sysdeps/mach/hurd/getcwd.c
2372         (_hurd_canonicalize_directory_name_internal): Don't deallocate
2373         DOTID & DOTDEVID until we're finished with them (we need to keep
2374         them at least until we've fetched the next level of id ports, so
2375         that mach will be able to use the same name if they're the same).
2376         Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
2377         jumps to errlose, for those places where such cleanup is needed.
2379 Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2381         * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
2383         Move DB code into separate -ldb library.
2384         * db/Makefile (extra-libs): New variable, list libdb.
2385         (routines): Renamed to libdb-routines.
2386         * shlib-versions: Add libdb=2.
2388         * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
2389         * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
2391         * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
2392         of strncasecmp.  Extend syntax to grok [!foo=bar].
2394         * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
2395         weak alias.
2396         * string/string.h: Declare __strncasecmp.
2398         * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
2399         (service_alias): Variable removed.
2400         (nss_parse_service_list): New function, broken out of nss_getline.
2401         Remove alias conversion; we will just use symlinks.
2402         (__nss_database_lookup): Take new string arg DEFCONFIG.
2403         If no entry exists, make one with service list parsed from that.
2404         * nss/nsswitch.h: Update protocol for __nss_database_lookup.
2405         * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
2406         (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
2408         * grp/initgroups.c: Rewritten using getgrent.  Handle unlimited group
2409         list size.
2411         * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
2413 Wed Jun 26 01:56:50 1996  Ulrich Drepper  <drepper@cygnus.com>
2415         * locale/programs/locale.c (long_options): Short form of
2416         --version option is `-V'.
2417         (main): Recognize `-V' as option, not `-v'.
2418         Call `usage' instead of printing error message for illegal
2419         option.
2420         (usage): Document `-V'.
2422 Tue Jun 25 17:22:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2424         * sysdeps/mach/hurd/getcwd.c
2425         (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
2426         THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
2428 Tue Jun 25 10:58:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2430         * inet/getrpcent.c: Fix macros.
2431         * inet/getrpcent_r.c: Fix macros.
2433         * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
2435         * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
2437 Tue Jun 25 09:55:47 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
2439         * catgets/gencat.c (write_out): Use %Zu to print variables of type
2440         size_t.
2441         * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
2442         cast it to (unsigned long) to make it work both on 32 and 64
2443         bit architectures.
2445 Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2447         * locale/Makefile (distribute): Add `programs/' prefix to all
2448         files in that directory.
2450         * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
2451         subdir' works.
2453         * MakeTAGS (sources, headers): Make them simply expanded variables
2454         so that all-dist is expanded before it is changed.
2456 Tue Jun 25 02:59:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2458         * Make-dist (dist): Don't depend on crypt tar file.  Remove that rule.
2459         * Makefile (subdirs): Remove crypt.
2460         * crypt: Directory removed.  It will be made an independent library
2461         distribution.
2463         * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
2465         * inet/getrpcent_r.c (DATABASE_NAME): New macro.
2467         * inet/getrpcbynumber.c (BUFLEN): New macro.
2469         * configure.in (--no-whole-archive check): Remove backslashes in cmd.
2471         * Makefile (headers): Add libc-lock.h.
2472         * sysdeps/stub/libc-lock.h: New file.
2474         * inet/getrpcbynumber.c: Remove _r typo.
2476         * elf/dl-load.c (_dl_map_object): Fix typo in last change.
2478         * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
2479         after the first!
2481         * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
2482         or doesn't mention DATABASE, use an internal default equivalent to
2483         "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
2484         (nss_lookup_function): Call nss_new_service as needed.
2485         (nss_parse_file): Don't bother calling nss_new_service here.
2487         * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
2488         * pwd/fgetpwent.c: Likewise.
2490         * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
2491         * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
2492         * malloc/malloc-size.c: New file.
2493         * malloc/malloc-walk.c: New file.
2495         * malloc/malloc-find.c (malloc_find_object_address): Return null if
2496         PTR is outside the heap.
2498         * elf/dl-load.c (_dl_map_object): If the requested name matches the
2499         soname of a loaded object, use that object.
2501 Mon Jun 24 19:57:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2503         * Makefile (subdirs): Add nss.
2505         * inet/Makefile (routines): Add getrpcent, getrpcbyname,
2506         getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
2507         * inet/getrpcbynumber_r.c: New file.
2508         * inet/getrpcbynumber.c: New file.
2509         * inet/getrpcbyname.c: New file.
2510         * inet/getrpcbyname_r.c: New file.
2511         * inet/getrpcent_r.c: New file.
2512         * inet/getrpcent.c: New file.
2513         * nss/rpc-lookup.c: New file.
2514         * nss/nss_files/files-rpc.c: New file.
2515         * nss/Makefile (routines): Add rpc-lookup.
2516         (libnss_files-routines): Add files-rpc.
2517         * sunrpc/Makefile (routines): Remove getrpcent.
2518         * sunrpc/getrpcent.c: File removed.
2520         * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
2521         non-null on entry.
2523         * Makeconfig (rpath-link): Add $(nssobjdir).
2524         (nssobjdir): New variable.
2526         * Makerules: Move shared library building before objects rules, so
2527         versions are known before extra-lib.mk gets included.
2528         * extra-lib.mk (lib-noranlib): Depend on the shared object too.
2530         * pwd/getpwuid.c: Rewritten using nss.
2531         * pwd/getpwnam.c: Likewise.
2532         * pwd/getpwent.c: Likewise.
2533         * grp/getgrnam.c: Likewise.
2534         * grp/getgrgid.c: Likewise.
2535         * grp/getgrent.c: Likewise.
2536         * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
2537         * pwd/getpwent_r.c: New file.
2538         * pwd/getpwnam_r.c: New file.
2539         * pwd/getpwuid_r.c: New file.
2540         * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
2541         * grp/getgrnam_r.c: New file.
2542         * grp/getgrgid_r.c: New file.
2543         * grp/getgrent_r.c: New file.
2544         * grp/Makefile (routines): Remove grpopen, grpread.
2545         * pwd/Makefile (routines): Remove pwdopen, pwdread.
2546         * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
2548         * pwd/fgetpwent.c: Rewritten using files-parse.c.
2549         * grp/fgetgrent.c: Likewise.
2551         * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
2552         * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
2553         * nss/nss_files/files-grp.c: New file.
2554         * nss/nss_files/files-pwd.c: New file.
2556         * nss/Makefile (subdir-dirs): New variable; use it in vpath.
2558         * nss/nss_files/files-parse.c: New file.
2559         * nss/nss_files/files-XXX.c: New file.
2560         * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
2561         nss/nss_files/files-service.c, nss/nss_files/files-network.c:
2562         Rewritten using them.
2564         * nss/Makefile (libnss_files-routines): Remove files-host.
2565         Add files-hosts, files-grp, files-pwd.
2567         * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
2569 Mon Jun 24 22:39:12 1996  Richard Henderson  <rth@tamu.edu>
2571         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2572         A .plt entry now loads the .rela.plt offset directly rather
2573         than making us calculate it.
2575 Sun Jun 23 15:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2577         * time/Makefile ($(installed-localtime-file) rule): Do
2578         $(make-target-directory) first.
2580         * resolv.h: Fix wrapper for resolv/resolv.h.
2582         * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
2583         Compile dummy file and pass -nostdlib -nostartfiles so as not to
2584         require installed libraries.
2586         * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
2587         libnss_dns=1.
2589 Sun Jun 23 19:42:05 1996  Ulrich Drepper  <drepper@cygnus.com>
2591         * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
2592         and mapv4v6hostent.h.
2593         (routines): Move res* and gethnamaddr into libresolv-routines.
2594         (libresolv-routines): New variable, put them there.
2595         (extra-libs): New variable, list libresolv.
2596         (CPPFLAGS): Add -D for get*by* to res_get*by*.
2598         * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
2600         * inet/herrno.c: New file.
2602         * resolv/res_init.c: Remove res_hconf calls.
2604         * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
2605         nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
2606         nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
2607         nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
2608         nss/service-lookup.c: New files.  Implementation of name
2609         service switch, following the approach in Solaris.
2610         Interface specification and general structure inspired by Peter
2611         Eriksson <pen@lysator.liu.se>.
2612         * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
2613         nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
2614         Implementation of libnss_files.so module for file based databases
2615         in NSS service.
2616         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
2617         if libnss_dns.so module for DNS name lookup in NSS service.
2619         * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
2620         inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
2621         Changed to serve as interface to NSS.
2622         * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
2623         inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
2624         inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
2625         inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
2626         inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
2627         inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
2628         inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files.  Implement
2629         interfaces to NSS, including reentrant functions.
2631         * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
2632         resolv/sethostent.c: Removed:  Obsoleted by NSS.
2634         * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
2635         gethnamaddr.c.  These private functions are now used in more
2636         than one file.
2638         * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
2640 Sat Jun 22 16:49:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2642         * rpm/Makefile ($(config)): Make sure the word list in the for
2643         loop is syntactically non-empty.
2645 Sat Jun 22 21:29:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2647         * Version 1.92 test release.
2649 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2651         * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
2652         to klogctl to match prototype in sys/klog.h.
2654         * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
2655         * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
2657         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
2658         Remove.  Code is now part of __getcwd again.  The old function
2659         never really worked for anything but THISDIR==".".
2661         * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
2662         only when building ELF version of library.
2664         * libio/libioP.h (_IO_vscanf): Add prototype.
2666         * posix/unistd.h (syscall): Change sysno arg and return value
2667         to int long.
2669 Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2671         * version.h (VERSION): Updated to 1.92.
2673         * misc/Makefile (headers): Add ar.h.
2674         * misc/ar.h: New file.
2676         * config.make.in (BUILD_CC): New variable.
2677         * configure.in: Check for BUILD_CC if $host != $build.
2679         * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
2681         * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
2682         (stamp$o files): New targets, create them empty, no deps.
2684         * rpm/template (Source): New field.
2685         (%prep, %build, %install): New sections.
2686         (%files): Add %doc FAQ NEWS NOTES README.
2687         * rpm/rpmrc (builddir): Removed.
2689 Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2691         * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
2692         guessing to not assume p_vaddr of first load cmd is zero.
2694         * sysdeps/sparc/elf/start.S: New file.
2695         * sysdeps/sparc/dl-machine.h: New file.
2697         * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
2698         only for ?s, not for *s.  Fix from Chet Ramey.
2700         Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
2701         * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
2702         Use __{BEGIN,END}_DECLS.
2703         (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
2704         * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
2705         New macros, moved here from sysdeps/gnu/utmpbits.h.
2706         * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
2707         * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
2708         * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
2709         Use sizeof instead of UT_*SIZE.
2710         * login/logwtmp.c: Likewise.
2712         * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
2714         * version.c (banner): Add trailing newline.
2716         * login/utmp.h: Declare login_tty.
2718 Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>
2720         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
2721         Changed to a 12-byte PLT entry to remove dependency on $gp.
2722         Take a new got_addr parameter.
2723         (elf_machine_rela): Pass the new parameter.
2724         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
2725         (RTLD_START): Do normal linkage with program entry.
2727 Thu Jun 20 12:18:21 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2729         * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
2731         * hurd/getuids.c (getuids): New weak link to __getuids.
2733 Wed Jun 19 10:21:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2735         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
2736         __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
2737         argument.
2738         Rename nested function lookup to lookup_op.
2739         (__file_name_lookup, __file_name_lookup_under):
2740         Pass 0 for lookup arg to __hurd_file_name_lookup.
2741         (__file_name_split): Likewise for __hurd_file_name_split.
2742         * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
2743         Rename nested function lookup to scan_lookup.
2744         (file_name_path_lookup): Pass 0 for lookup arg to
2745         hurd_file_name_path_lookup.
2746         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
2747         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
2748         __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
2749         Add LOOKUP argument.
2750         * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
2751         __hurd_file_name_lookup.
2753 Mon Jun 17 19:09:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2755         * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
2756         up a huge list just to discard most of it.
2758         * configure.in (sysnames): Avoid fgrep by using the case shell
2759         builtin.
2761         * Makeconfig (config.status): Fix dependency on Implies files.
2763 Wed Jun 19 01:27:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2765         * math/Makefile (distribute): Add ieee-math.c.
2767 Wed Jun 19 03:24:58 1996  Ulrich Drepper  <drepper@cygnus.com>
2769         * locale/codeset_name.c: New file.  Provide function for information
2770         about currently used character set.
2771         * locale/Makefile (routines): Add codeset_name.
2772         * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
2773         * locale/localeinfo.h: Change magic number because of incompatible
2774         change.
2775         * locale/C-ctype.c: Add initializer for new field `codeset_name'.
2776         * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
2778         * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
2779         name `MAX_IOVEC'.  Instead use standard name `UIO_MAXIOV'.
2781         * locale/setlocale.c (setlocale): Initialize local variables to
2782         prevent warnings.
2784 Thu Jun 13 17:25:11 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2786         * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
2788         * locale/programs/locale.c: Include string.h.
2790         * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
2791         (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
2792         appropriate sign-extension is performed on machines with
2793         sizeof(long) > 4.
2795         * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
2796         sizeof(int)<sizeof(long), we need to go through a temporary
2797         variable.
2799         * locale/programs/ld-numeric.c: Include <alloca.h>
2801         * libio/stdio.h (__libc_fatal): Add prototype.
2803         * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
2804         in efect.
2806         * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
2807         volatile to avoid "might get clobbered by longjmp" warning.
2809         * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
2810         unless _LOOSE_KERNEL_NAMES is in effect (which, with high
2811         probability is a sure loser).
2812         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
2814         * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
2815         * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
2817         * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
2818         to be Linux FSSTND compliant.
2820 Mon Jun 10 17:50:31 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2822         * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
2824         * sysdeps/unix/sysv/linux/alpha/sysdep.S,
2825         sysdeps/unix/sysv/linux/alpha/brk.S,
2826         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
2827         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
2828         sysdeps/unix/sysv/linux/alpha/llseek.S,
2829         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
2830         sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
2831         __syscall_error to avoid intruding application name space.
2833         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
2834         to SYS_get?id so that syscall stubs in sysdeps/unix define
2835         these syscalls in terms of getxpid/getxuid/getxgid.
2837         * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
2838         sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
2839         sysdeps/unix/execve.S, sysdeps/unix/fork.S,
2840         sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
2842         * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
2843         (PSEUDO_END): Rename END() to PSEUDO_END().
2845         * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
2846         to PSEUDO_END to improve branch-prediction.  Include .frame
2847         directive to make syscalls debugabble.
2848         (PSEUDO_END): New macro.
2850         * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
2851         sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
2852         latter is illegal under DEC Unix.
2854         * sysdeps/unix/alpha/sysdep.S: Renamed from
2855         sysdeps/unix/sysv/linux/alpha/sysdep.S.  This file works for OSF/1
2856         as well.
2857         * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
2858         EWOULDBLOCK -> EAGAIN mapping was unnecessary since
2859         EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
2861         * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
2862         address register in the .frame directive.
2864         * sysdeps/alpha/copysign.c: Remove.
2866         * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
2867         avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
2869         * errno.h: Move __END_DECLS to correct place to make file
2870         compilable under c++.
2872         * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro.  Define
2873         d_ino only if <direntry.h> hasn't defined d_fileno.
2875         * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
2876         arguments to weakext to make .weakext detection work on ECOFF systems.
2878         * FAQ: Add Linux/Alpha to list of supported platforms.  Mention
2879         that _validuser() has been replaced by __ivaliduser().
2881 Thu Jun  6 21:39:38 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2883         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
2884         as unsigned long, not as int (to avoid incorrect int->long
2885         promotion).
2889 See ChangeLog.5 for earlier changes.