1 Wed Aug 14 21:36:16 1996 Ulrich Drepper <drepper@cygnus.com>
3 * stdlib/strtod.c (STRTOD): Correct assertion about size of
4 wint_t and wchar_t. Reported by David Mosberger-Tang.
6 Mon Aug 12 22:40:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8 * elf/dl-lookup.c (_dl_lookup_symbol): Remove fifth parameter
9 RELOC_ADDR and make NOPLT a set of flags. All callers
10 changed. Delete condition that checks for resolving to the
11 location being filled in. Add condition to skip the
12 executable's symbols if requested.
13 * elf/link.h: Change declaration of _dl_lookup_symbol
15 (DL_LOOKUP_NOEXEC, DL_LOOKUP_NOPLT): New definitions.
16 * elf/dl-reloc.c (RESOLVE): Remove second parameter and rename
18 * elf/dl-runtime.c (RESOLVE): Likewise.
19 * elf/rtld.c (RESOLVE): Likewise.
20 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Pass
21 DL_LOOKUP_NOEXEC as second argument to the RESOLVE macro if
22 processing a copy reloc, DL_LOOKUP_NOPLT for a jump slot
23 reloc, zero otherwise.
24 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
25 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
26 * sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
28 Wed Aug 14 17:57:08 1996 Ulrich Drepper <drepper@cygnus.com>
30 * MakeTAGS: Clean up use of --omit-header and -n for xgettext.
31 * po/header.pot: Add empty line at end.
33 Sun Aug 11 13:45:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
35 * MakeTAGS (all-pot): Remove $P/errlist.pot, all error messages
36 are now in $P/stdio-common.pot.
37 (XGETTEXTFLAGS-errlist.pot): Variable removed.
39 Mon Aug 12 19:25:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
41 * Makerules (do-ar, o-iterator-doit): Compute path to autolock
42 script at run time, not configure time.
43 * config.make.in, configure.in: Undo previous change.
45 Wed Aug 14 13:20:02 1996 Ulrich Drepper <drepper@cygnus.com>
47 * sysdeps/unix/sysv/linux/i386/close.S: Push return value of thread
48 on stack as argument for `_exit'. Reported by Andreas Schwab.
50 Mon Aug 12 19:36:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
52 * sysdeps/unix/sysv/linux/m68k/clone.S: New file.
54 Wed Aug 14 04:22:35 1996 Richard Henderson <rth@tamu.edu>
56 * elf/dl-load.c (_dl_map_object): Save name in malloced memory.
57 (_dl_map_object_from_fd): Free name on error.
59 Wed Aug 14 13:00:09 1996 Ulrich Drepper <drepper@cygnus.com>
61 * string/strdup.c: Use result of memcpy to avoid reloading.
63 Tue Aug 13 00:55:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
65 * shadow/sgetspent_r.c (__sgetspent_r): Copy string to buffer, not
68 Tue Aug 13 20:51:21 1996 Ulrich Drepper <drepper@cygnus.com>
70 * stdlib/canonicalize.c (canonicalize): Add cast to prevent
73 * Makerules (o-iterator-doit): Use autolock.sh when running ranlib.
75 Tue Aug 13 18:26:45 1996 Ulrich Drepper <drepper@cygnus.com>
77 * nss/nsswitch.c (__nss_configure_lookup): Use fact that list is
80 Update from bind-4.9.5-T1A.
81 * resolv/Makefile (libresolv-routines): Add base64, inet_net_ntop,
82 inet_net_pton, inet_net.
84 * resolv/gethnamaddr.c: Include <sys/types.h>.
85 * resolv/getnetnamadr.c: Likewise.
86 * resolv/herror.c: Likewise.
87 * resolv/inet_addr.c: Likewise.
88 * resolv/nsap_addr.c: Likewise.
89 * resolv/res_comp.c: Likewise.
90 * resolv/res_data.c: Likewise.
91 * resolv/res_init.c: Likewise.
92 * resolv/res_mkquery.c: Likewise.
93 * resolv/res_query.c: Likewise.
94 * resolv/res_send.c: Likewise.
96 * resolv/gethnamaddr.c [! SPRINTF_CHAR] (SPRINTF): Cast return
98 * resolv/inet_ntop.c: Likewise.
100 * resolv/gethnamaddr.c [BSD]: Include <stdlib.h>.
101 Remove prototype of gethostbyname_ipv4.
103 * resolv/inet_ntop.c, resolv/inet_pton.c: Use ISO C `mem*'
104 functions instead of BSD `b*' functions.
106 * resolv/nsap_addr.c: Add copyright message.
108 * resolv/res_comp.c: Remove comment explaining label format.
109 (res_mailok): Correct check.
111 * resolv/res_debug: Include missing headers.
112 (__fp_nquery): Handle `unused', `ad', and `cd' bits.
113 (__p_fqnname): New function to print FQDN from compressed name.
114 (__p_rr): Use __p_fqnname. Correct printing of ". Handle T_TXT
115 correctly. Add handling of T_KEY and T_SIG.
116 Handle class and type names by using name arrays instead of
118 (__sym_ston, __sym_ntos, __sym_ntop): New functions to use arrays.
119 (__dn_count_labels, __p_secstodate): New functions.
121 * resolv/resolv.h (__RES): Update version number.
123 Add #defines for new functions.
124 Declare sym_ntos, sym_ntop, b64_ntop, b64_pton, __p_fqnname,
125 __p_secstodate, dn_count_labels.
127 * resolv/arpa/nameser.h (__BIND): Update version number.
128 Add KEYFLAG_* and ALGORITHM_* symbols.
129 (HEADER): Add `ad' and `cd' flags.
131 * inet/ient.h: Add prototypes for inet_neta, inet_net_ntop,
134 * manual/maint.texi: Document that we use bind-4.9.5.
137 Mon Aug 12 19:03:22 1996 Thomas Bushnell n/BSG <thomas@psilocin.gnu.ai.mit.edu>
139 * sysdeps/generic/gnu/types.h: Declare __fd_mask as `unsigned long'.
141 * mach/Makefile (mach/mach_host.uh): Depend on
142 $(objpfx)/mach-syscalls.mk.
143 ($(objpfx)mach-shortcuts.h): Depend on $(objpfx)mach/mach_host.h.
144 (This fixes a make loop; thanks to Marcus Daniels
145 <marcus@sysc.pdx.edu> for the patch.)
147 Mon Aug 12 16:41:52 1996 Thomas Bushnell n/BSG <thomas@gnu.ai.mit.edu>
149 * io/getwd.c (getwd) [! PATH_MAX]: Don't assume that the user's
150 buffer is any longer than the amount necessary to hold the
151 filename; the Hurd getcwd uses the *entire* contents of the
152 buffer, however long it is specified to be.
154 Mon Aug 12 04:33:09 1996 Ulrich Drepper <drepper@cygnus.com>
156 * nss/nsswitch.c (__nss_database_lookup): Always release locks
157 before returning. Reported by Miles Bader.
159 Mon Aug 12 03:31:58 1996 Ulrich Drepper <drepper@cygnus.com>
161 * nss/nsswitch.c (__nss_configure_lookup): New function.
162 Allows to specify services.
163 * nss/XXX-lookup.h: Rename database variable and make global.
164 * nss/databases.def: New file. Real names of all databases.
166 * nss/nss.h: New file. Contains declaration useful for users
167 and service developers.
168 * nss/nsswitch.h: Move some declarations to nss/nss.h.
169 * nss.h: New file. Wrapper around nss/nss.h.
171 * nss/Makefile (headers): Add nss.h.
172 (distributes): Add databases.def.
174 Sun Aug 11 16:19:42 1996 Ulrich Drepper <drepper@cygnus.com>
176 Help the poor people with fast machines by making sure only
177 one `ar' commands works on the library.
178 * autolock.sh: New file. Written by Tom Tromey.
179 * Makerules (do-ar): Call autolock.sh shell script instead of
181 * config.make.in: Make configuration variable AUTOLOCK which
182 gets initialized by configure.
183 * configure.in: Define variable AUTOLOCK to point to autolock.sh
184 script and mark it to substitute.
186 * string/Makefile: Add -fno-builtin for tst-strlen.c, too.
188 Sun Aug 11 01:12:38 1996 Richard Henderson <rth@tamu.edu>
190 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW
191 startup by moving Icache flush from here ...
192 (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here.
193 (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused.
195 * sysdeps/alpha/divrem.h: Update comment to reflect the actual
196 calling conventions. The code is already correct.
198 Sun Aug 11 01:06:42 1996 Richard Henderson <rth@tamu.edu>
200 * string/Makefile: Compile tester with -fno-builtin as we want to
201 test our implementations, not gcc's.
203 Sat Aug 10 13:17:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
205 * shadow.h: New file.
207 * sysdeps/unix/sysv/linux/netinet/in.h: Move
208 __BEGIN_DECLS/__END_DECLS up so ntohl() et al are bracketed as
211 * socket/sys/socket.h [__cplusplus]: Use old-style __SOCKADDR_ARG.
212 g++ 2.7.2 (and earlier) has no transparent unions support.
214 Fri Aug 9 18:50:06 1996 David Mosberger-Tang <davidm@azstarnet.com>
216 * sysdeps/unix/sysv/linux/alpha/ioperm.c (_bus_base_sparse): New
217 function to determine the base address of sparse bus memory.
218 (APECS_*): Rename to CIA_*.
219 (APECS_SPARSE_MEM, CIA_SPARSE_MEM): New macros.
220 (platform): Add sparse_bus_memory_base member and initialize.
221 (sparse_bus_memory_base): New variable.
223 Tue Aug 6 10:23:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
225 * sysdeps/posix/ttyname_r.c (ttyname_r),
226 sysdeps/posix/ttyname.c (ttyname): Return -1/NULL if
227 !__isatty(fd) (POSIX.1 says so.)
229 * sysdeps/unix/getlogin.c (getlogin): Fix to check fd 0 only.
230 This is not a gross hack, after all---for compatibility,
231 getlogin() really should check fd 0 only and not try to base its
232 operation on the controlling tty.
234 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
236 * sysdeps/unix/getlogin.c (getlogin): Add static variable NAME,
237 change utmp_data from static to auto.
239 Sun Aug 11 02:56:08 1996 Ulrich Drepper <drepper@cygnus.com>
241 * posix/unistd.h [__USE_MISC]: Add prototype for `nice'.
242 Reported by David Mosberger-Tang.
244 Sat Aug 10 02:05:28 1996 Richard Henderson <richard@twiddle.tamu.edu>
246 * sysdeps/libm-ieee754/s_isnan.c [NO_LONG_DOUBLE]: Add strong
249 Fri Aug 9 17:38:58 1996 Ulrich Drepper <drepper@cygnus.com>
251 * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
252 get `struct timeval'.
253 * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
254 * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
255 * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
256 * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
257 * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
258 * sysdeps/unix/sysv/linux/direntry.h: Complete types in
260 * io/fts.h: Include <sys/types.h> to get dev_t.
261 Reported by Matthias Urlichs.
263 * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
264 _IO_file_flags. It's the same as _flags.
265 Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
267 Wed Aug 7 19:38:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
269 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
271 Thu Aug 8 16:17:38 1996 Ulrich Drepper <drepper@cygnus.com>
273 * pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
274 * pwd/getpwent_r.c: Likewise.
275 * pwd/getpwnam.c: Likewise.
276 * pwd/getpwnam_r.c: Likewise.
277 * pwd/getpwuid.c: Likewise.
278 * pwd/getpwuid_r.c: Likewise.
280 * grp/getgrent.c: Define BUFLEN from NSS_BUFLEN_GROUP.
281 * grp/getgrent_r.c: Likewise.
282 * grp/getgrgid.c: Likewise.
283 * grp/getgrgid_r.c: Likewise.
284 * grp/getgrnam.c: Likewise.
286 * pwd/fgetpwent_r.c: New file. Reentrant version of fgetpwent.
287 * pwd/fgetpwent.c: Rewrite to use fgetpwent_r.
288 * pwd/Makefile (routines): Add fgetpwent_r.
289 * pwd/pwd.h: Add prototypes for __fgetpwent_r and fgetpwent_r.
291 * grp/fgetgrent_r.c: New file. Reentrant version of fgetgrent.
292 * grp/fgetgrent.c: Rewrite to use fgetgrent_r.
293 * grp/Makefile (routines): Add fgetgrent_r.
294 * grp/grp.h: Add prototypes for __fgetgrent_r and fgetgrent_r.
296 Implement shadow password lookup functions. This is no complete
297 shadow password suite.
298 * shadow/Makefile: New file.
299 * shadow/fgetspent.c: New file.
300 * shadow/fgetspent_r.c: New file.
301 * shadow/getspent.c: New file.
302 * shadow/getspent_r.c: New file.
303 * shadow/getspnam.c: New file.
304 * shadow/getspnam_r.c: New file.
305 * shadow/putspent.c: New file.
306 * shadow/sgetspent.c: New file.
307 * shadow/sgetspent_r.c: New file.
308 * shadow/shadow.h: New file.
309 * shadow/spwd-lookup.c: New file.
310 * shadow/nss_files/files-spwd.c: New file.
312 Thu Aug 8 13:33:45 1996 Ulrich Drepper <drepper@cygnus.com>
314 * sysdeps/unix/sysv/linux/ftime.c: New file. Available system
316 Reported by Matthias Urlichs.
318 * Makeconfig [!default_cflags]: Change default value from `-g'
321 * configure.in: Recognize i686.
322 * sysdeps/i386/i686/Implies: Default on i586 optimized code.
324 Thu Aug 8 12:40:20 1996 Matthias Urlichs <smurf@smurf.noris.de>
326 * Makeconfig [$(build-omitfp) == yes]: Add to CFLAGS-.so
327 value of CFLAGS-.o, not CFLAGS-o.
329 * sysdeps/unix/sysv/linux/init-first.c (init): Add volatile
330 pointer to ourself. Otherwise `gcc -O3' optimized init away.
332 Thu Aug 8 01:41:43 1996 Ulrich Drepper <drepper@cygnus.com>
334 * elf/Makefile: Undo change of Tue Aug 6 14:27:11 1996.
335 * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
337 Thu Aug 8 01:15:59 1996 Ulrich Drepper <drepper@cygnus.com>
339 * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
340 to 0x137f to allow long double operations.
342 Sun Aug 4 13:12:05 1996 Richard Henderson <rth@tamu.edu>
346 * nss/nsswitch.c (_res): Remove redundant variable definition.
347 The real one is in resolve/res_init.c, and having both prevents
348 using -fno-common when building the shared library.
349 * sunrpc/rpc_prot.c (_null_auth): Same. Original is in rpc_common.c.
351 * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
352 a .bss object not a COMMON symbol.
354 * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
355 $gp before referencing __sigsetjmp symbol. Retain LITUSE for same.
359 * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
360 main loop for better dual-issue on EV5. Rearrange binary search to
361 pipeline better and trim one instruction.
365 * time/localtime.c (localtime_r): Move lock declaration back next to
366 the comment where it was before the 960724 change.
368 * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
369 The second word is supposed to be the hardware manufacturer.
371 * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
372 * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
374 * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
376 * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
377 sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
378 Same cleanups as with EV4 GMP stuff.
380 Tue Jul 25 03:30:56 1996 Richard Henderson <rth@tamu.edu>
382 * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
383 * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
384 * sysdeps/unix/sysv/linux/i386/clone.S: New file.
386 Sun Aug 4 00:12:41 1996 David Mosberger-Tang <davidm@azstarnet.com>
388 * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
391 * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
393 Sat Aug 3 16:20:02 1996 David Mosberger-Tang <davidm@azstarnet.com>
395 * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
398 * socket/sys/socket.h (send, __send, sendto): Declare buffer
401 * string/tester.c (main): Test stpncpy.
403 * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
404 segfault when called with an N that is not a multiple of four and
407 * misc/syslog.c (LogType): New variable.
408 (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
409 try again with SOCK_STREAM (the Linux syslogd uses a socket of the
411 (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
412 terminator as a record-delimiter. If __send(LogFile) fails,
413 call closelog() so logfile gets re-opened next time.
415 Wed Aug 7 15:15:14 1996 Ulrich Drepper <drepper@cygnus.com>
417 * elf/dl-open (_dl_open): Add cast to avoid warning.
419 * manual/memory.texi: Improve some examples to give readers better
420 advice: Use `stpcpy' instead of `strcat' if possible.
421 * manual/string.texi: Document `strtok_r' and `strtok'.
423 * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
425 [$(cross-compiling)=no]: Change test before making librpcsvc
426 to this from $(cross-compile).
427 Reported by Andreas Schwab.
429 Tue Aug 6 14:27:11 1996 Ulrich Drepper <drepper@cygnus.com>
431 * elf/Makefile (routines): Move dl-sysdep to here...
432 (rtld-routines): ...from here. This should make static linking
435 * locale/setlocale.c: Add local variable `lock' and add code to
436 `setlocale' to avoid simultaneous changing of global data.
438 * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
439 * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
440 `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
441 of unprotected names.
443 Tue Aug 6 01:13:56 1996 Ulrich Drepper <drepper@cygnus.com>
445 Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
446 This requires to rename several functions to use __ protected
448 * dirent/dirent.h: Add prototypes of __opendir, __closedir,
450 * sysdeps/mach/hurd/closedir.c: Prepend function name with __
451 and make old name a weak alias.
452 * sysdeps/mach/hurd/getrlimit.c: Likewise.
453 * sysdeps/mach/hurd/opendir.c: Likewise.
454 * sysdeps/mach/hurd/readdir.c: Likewise.
455 * sysdeps/stub/closedir.c: Likewise.
456 * sysdeps/stub/opendir.c: Likewise.
457 * sysdeps/stub/readdir.c: Likewise.
458 * sysdeps/unix/closedir.c: Likewise.
459 * sysdeps/unix/opendir.c: Likewise.
460 * sysdeps/unix/readdir.c: Likewise.
462 * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
464 * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
465 `__closedir' instead of unprotected names.
467 * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
468 instead of `isatty' since later is not part of ISO C.
469 * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
470 `open' since later is not part of ISO C.
472 * login/endutent.c (endutent): Call `__endutent_r', not
474 * login/endutent_r.c: Rename defined function to `__endutent_r',
475 make `endutent_r' weak alias.
476 * login/getutent.c (getutent): Call `__getutent_r', not
478 * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
479 * login/getutid_r.c: Rename defined function to `__getutent_r',
480 make `getutent_r' weak alias.
481 * login/getutline.c (getutline): Call `__getutline_r', not
483 * login/getutline_r.c: Rename defined function to `__getutline_r',
484 make `getutline_r' weak alias.
485 * login/pututline_r.c: Rename defined function to `__pututline_r',
486 make `pututline_r' weak alias.
487 * login/setutent.c (setutent): Call `__setutline_r', not
489 * login/setutent_r.c: Rename defined function to `__setutline_r',
490 make `setutline_r' weak alias.
491 Rename `utmpname' to `__utmpname' and make former weak alias.
492 (__utmpname): Call `__strdup', not `strdup'.
493 * login/utmp.h: Add prototypes for name space clean reentrant
495 * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
496 and `__endutent_r' instead of unprotected names.
498 * math/math.h: Add prototype for `__matherr'.
499 * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
502 * nss/getXXbyYY.c: Call __ protected reentrant function.
503 * nss/getXXent.c: Likewise.
504 * nss/getXXbyYY_r.c: Define `get*' function with __ protected
505 name. Make usual name a weak alias.
506 * nss/getXXent_r.c: Likewise.
508 * posix/unistd.h: Add prototype for `__ttyname_r'.
509 * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
510 and make `ttyname_r' a weak alias.
512 * resource/sys/resource.h: Add prototype for `__getrlimit'.
513 * sysdeps/stub/getrlimit.c: Prepend function name with __
514 and make old name a weak alias.
515 * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
516 and make `getrlimit' weak alias.
518 * libc/stdio/stdio.h: Add prototype for `__vscanf'.
519 * libc/stdio/vscanf.c: De-ANSI-fy.
520 Rename function to `__vscanf' and make `vscanf' a weak alias.
521 * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
524 * stdio-common/reg-printf.c: De-ANSI-fy.
525 Rename function to `__register_printf_function' and make
526 `register_printf_function' weak alias.
528 * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
531 * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
532 * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
533 * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
534 * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
535 * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
537 * wcsmbs/mbsrtowcs.c: Likewise.
538 * wcsmbs/wcrtomb.c: Likewise.
539 * wcsmbs/wcsrtombs.c: Likewise.
540 * wcsmbs/wchar.h: Add prototypes for __ protected versions.
542 * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
543 instead of `sigprocmask'.
546 * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
547 version getgrent_r, getgrgid_r, and getgrnam_r.
548 * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
549 version getpwent_r, getpwuid_r, getpwnam_r and __ protected
551 * resolv/netdb.h: Complete rewrite. No more BSD ugliness.
554 * misc/error.c (private_strerror): Translate messages from table,
557 * io/fcntl.h: Pretty printing.
558 * misc/fstab.h: Likewise.
559 * misc/ttyent.h: Likewise.
560 * resource/sys/resource.h: Likewise.
561 * string/argz.h: Likewise.
562 * string/envz.h: Likewise.
564 Add support for symbols from POSIX.1c (POSIX threads).
565 * posix/getconf.c: Handle new sysconf symbols.
566 * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
567 _POSIX_LOGIN_NAME_MAX with minimal maximal values.
568 * sysdeps/generic/confname.h: Define new symbols.
569 * sysdeps/posix/sysconf.c: Handle new symbols.
570 * sysdeps/stub/sysconf.c: Ditto.
571 * sysdeps/unix/sysv/linux/sysconf.c: Removed. Generic version
574 * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
577 * sysdeps/generic/resourcebits.h: Add macro definition for
578 RLIMIT_* values. Some sources test using #ifdef whether specific
580 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
581 * sysdeps/unix/sysv/linux/resourcebits.h: Removed. We need
582 separate files for the architectures.
583 * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
584 * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
585 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
586 * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
588 * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
589 and only default on `OPEN_MAX'.
590 * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed. Default is already
593 * time/Makefile (routines): Add ctime_r.
594 * time/asctime.c: Add implementation of `asctime_r'. Make
595 `asctime' implementation based on reentrant version.
596 * time/ctime_r.c: New file.
597 * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
600 Sat Aug 3 18:41:36 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
602 * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
603 (_nl_C_LC_CTYPE): Fix ordering.
604 * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
607 Sat Aug 3 12:31:06 1996 Richard Henderson <rth@tamu.edu>
609 * csu/initfini.c: Discover the maximum alignment generated by the
610 compiler when emitting a function.
611 (_init): Make sure the end of the crti fragment is aligned.
614 Fri Aug 2 03:12:40 1996 Ulrich Drepper <drepper@cygnus.com>
616 * initfini.c: (__libc_is_static): New variable. Will be
617 initialized in init-first.c. Some actions in the libc work
618 different when libc is static or dynamic.
620 * sysdeps/unix/sysv/linux/init-first.c (init): Use
621 `__libc_is_static' variable to determine whether call to
622 `personality' and `setfpucw' is necessary. When done set variable
623 to +-1 depending on library type.
625 * locale/setlocale.c (setlocale): Use global variable
626 `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
627 determine whether it's a SET[UG]ID program.
629 Fri Aug 2 14:40:22 1996 Roland McGrath <roland@fast.cs.utah.edu>
631 * Version 1.93 test release.
633 * manual/Makefile: Use -include for chapters-incl too.
635 * Makeconfig (+link): Add back start.o, mistakenly removed in last
638 Fri Aug 2 01:04:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
640 * nss/Makefile (generated): Add db-*.c.
642 * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
645 * configure.in (--enable-add-ons): Quote m4 macro args.
647 * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
649 Thu Aug 1 14:40:03 1996 Roland McGrath <roland@fast.cs.utah.edu>
651 * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
653 * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
655 * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
658 * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
659 warning when inline function is elided.
660 * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
661 (elf_machine_runtime_setup): Likewise.
662 * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
663 * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
664 (elf_machine_load_address): Likewise.
666 * catgets/gencat.c: Include <locale.h>.
668 * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
670 * login/logwtmp.c (logwtmp): Call time, not __time.
672 * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
673 * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
674 * login/logwtmp.c (logwtmp): Likewise.
676 * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
677 comparing ioctl macro values.
679 * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
681 * manual/Makefile: Use -include for chapters to suppress warning.
683 * sysdeps/stub/socket.c: Fix type of TYPE arg.
684 * sysdeps/stub/socketpair.c: Likewise.
686 * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
688 * sysdeps/generic/sysdep.h: New file, broken out of ...
689 * sysdeps/unix/sysdep.h: ... here.
690 (C_LABEL): Moved out.
692 * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
693 stick to sed. Do `exit 0' at end because while returns nonzero.
695 * sysdeps/i386/sysdep.h: New file, broken out of ...
696 * sysdeps/unix/i386/sysdep.h: ... here. Generic asm macros moved out.
698 * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
699 They are defined unconditionally in libio/stdio.h.
701 * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
702 * elf/dl-cache.c: Likewise.
704 Mon Jul 29 19:20:05 1996 Ulrich Drepper <drepper@cygnus.com>
706 * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
707 (sysdep_headers): Add sys/sysmacros.h.
708 * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
710 Wed Jul 31 14:21:36 1996 Ulrich Drepper <drepper@cygnus.com>
712 * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
713 tcgetattr. We have weak aliases now.
714 * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
715 "optimizations" for random functions.
717 Mon Jul 29 20:33:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
719 * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
720 htons) [__BIG_ENDIAN]: #undef them before defining to avoid
721 redefinition warning.
723 Mon Jul 29 20:28:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
725 * time/time.h: Don't optimize tzset() to __tzset() which bypasses
728 Tue Jul 30 15:14:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
730 * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
733 Tue Jul 30 02:48:28 1996 Ulrich Drepper <drepper@cygnus.com>
735 * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
737 Reported by Richard Henderson <rth@tamu.edu>.
739 Tue Jul 30 15:04:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
741 * locale/programs/ld-collate.c (collate_output): Fix typo reported by
744 Tue Jul 30 13:23:13 1996 Ulrich Drepper <drepper@cygnus.com>
746 * locale/setlocale.c (setlocale): Don't try to free C locale
748 Reported by Matthias Urlichs.
750 Tue Jul 30 14:35:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
752 * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
753 (open_file): New function, contents mostly from __open.
754 (_dl_sysdep_read_whole_file): New function.
756 Sat Jul 27 11:23:59 1996 Miles Bader <miles@gnu.ai.mit.edu>
758 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
759 `..' dots in sed search string.
761 Mon Jul 29 01:27:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
763 * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
766 Sun Jul 28 23:46:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
768 * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
769 in those directories.
770 * config.make.in (add-ons): New varaible, set from @subdirs@.
771 * Makefile (subdirs): Added $(add-ons) at the end.
773 * time/strftime.c (strftime: do_number): Initialize PRINTED to
774 MAXDIGITS in case P is null and so sprintf is never actually called.
776 Mon Jul 29 02:46:23 1996 Ulrich Drepper <drepper@cygnus.com>
778 Add support for the to-be-written internationalized regexp.
779 This code must be able to use collation symbols and collation
781 * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
782 _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
783 New global variables for collation classes.
784 * locale/categories.def: Add new descriptions for collation symbols
785 and collation classes.
786 * locale/langinfo.h: Add constants for collation symbols and
788 * locale/lc-collate.c: Add new global variables for collation symbols
789 and collation classes.
790 (_nl_postload_collate): Initialize new variables.
791 * locale/programs/ld-collate.c: Add code to emit tables for
792 collation symbols and collation classes.
793 * locale/programs/locales.h: Change prototype for `collate_output'.
794 * locale/programs/locfile.c (write_all_categories): Call
795 `collate_output' with new argument.
796 * locale/localeinfo.h: Add declaration for new global vars.
797 (union locale_data_value): New member wstr for `wchar_t' strings.
798 * locale/programs/locale-spec.c: Handle `collate-classes'
799 keyword and print information about available collation classes.
800 * locale/strlen-hash.h: New file. Simple hashing function which
801 takes a string with known length.
802 * locale/Makefile (distribute): Add strlen-hash.h.
803 (locale-modules): New var. Additional files for `locale' program.
805 * locale/C-ctype.c: Rewrite to avoid using string for giving values
806 which are of type `u_int32_t'.
807 Correct entry for EOF in toupper and tolower tables.
809 * locale/loadlocale.c (_nl_load_locale): Add cast to prevent
812 * locale/programs/ld-ctype.c (ctype_output): Add code to make
813 sure that all tables in binary file are word-aligned.
815 * locale/programs/locfile.c (write_locale_data): Correct handling
816 of LC_MESSAGES locale. Create directory if necessary.
818 * locale/setlocale.c (setlocale): Add cast to avoid warning.
820 * string/string.h: Add prototype for `__strndup'.
822 Wed Jul 24 19:10:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
824 * wcsmbs/mbrtowc.c: Remove unused variable.
826 Sun Jul 28 22:40:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
828 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
829 2.0.10; some problems were reported with an earlier version, and this
830 one is known to work.
832 * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
833 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
835 Sat Jul 27 13:02:09 1996 Ulrich Drepper <drepper@cygnus.com>
837 * elf/rtld.c (dl_main): Ignore arguments when environment variable
838 LD_TRACE_LOADED_OBJECTS is set.
840 Sun Jul 28 19:42:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
842 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
843 __libc_enable_secure instead of _dl_secure.
844 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
845 * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
847 * elf/Makefile (routines): Add enbl-secure.
848 (elide-routines.so): Here too.
849 * sysdeps/generic/enbl-secure.c: New file.
850 * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
851 * elf/dl-support.c (_dl_secure): Variable removed.
852 * elf/rtld.c: Likewise. Replace all uses with __libc_enable_secure.
854 Sun Jul 28 19:26:40 1996 David S. Miller <dm@neteng.engr.sgi.com>
856 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
857 Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
858 compiler doesn't elide it.
859 (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
861 Sat Jul 27 02:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
863 * elf/rtld.c (dl_main): Take new option --verify when run directly.
864 In verify mode, exit with status zero iff the argument object's
865 PT_INTERP matches argv[0].
866 * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
867 exits with zero status. This makes `ldd' secure again.
869 Fri Jul 26 22:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
871 * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
872 environment variable handling. This makes the dynamic linker
873 only print loaded libraries and quit.
875 * elf/ldd.sh.in: Don't use `rtld --list' but instead
876 LD_TRACE_LOADED_OBJECTS environment variable to print needed
879 Sat Jul 27 02:03:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
881 * db/makedb.c (main): Print version on stdout, not stderr. Don't exit
882 after printing version until after doing usage for --help.
883 (long_options, main, usage): Rename -l/--lowercase option to
884 -f/--fold-case (-f matches sort).
886 Sat Jul 27 04:32:31 1996 Ulrich Drepper <drepper@cygnus.com>
888 * db/makedb.c: New file. Implement program to create simple <db.h>
889 database from textual input. This will be used for nss_db.
891 Sat Jul 27 01:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
893 * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
894 * sunrpc/rpc/pmap_clnt.h: Likewise.
895 * sunrpc/rpc/auth.h: Likewise.
896 * sunrpc/rpc/pmap_rmt.h: Likewise.
897 * sunrpc/rpc/rpc_msg.h: Likewise.
899 Sat Jul 27 04:37:34 1996 Ulrich Drepper <drepper@cygnus.com>
901 * string/string.h (strndupa): Change to use return value of
902 `memcpy' for more performance.
903 * string/strndup.c: Likewise.
905 * string/string.h (strdupa): Don't call __builtin_alloca in argument.
906 This might lead to problems.
907 (strndupa): Likewise.
909 Fri Jul 26 15:24:25 1996 Ulrich Drepper <drepper@cygnus.com>
911 * sunrpc/rpc/auth.h: Add protection against multiple inclusion
912 and change K&R prototypes to ANSI prototypes.
913 * sunrpc/rpc/auth_unix.h: Ditto.
914 * sunrpc/rpc/clnt.h: Ditto.
915 * sunrpc/rpc/pmap_clnt.h: Ditto.
916 * sunrpc/rpc/pmap_prot.h: Ditto.
917 * sunrpc/rpc/pmap_rmt.h: Ditto.
918 * sunrpc/rpc/rpc_msg.h: Ditto.
919 * sunrpc/rpc/svc.h: Ditto.
920 * sunrpc/rpc/svc_auth.h: Ditto.
921 * sunrpc/rpc/xdr.h: Ditto.
923 Fri Jul 26 20:39:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
925 * ctype/test_ctype.c: Test EOF too.
927 Fri Jul 26 18:06:58 1996 Ulrich Drepper <drepper@cygnus.com>
929 * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
930 * sunrpc/rpc/auth_unix.h: Likewise.
931 * sunrpc/rpc/clnt.h: Likewise.
932 * sunrpc/rpc/netdb.h: Likewise.
933 * sunrpc/rpc/pmap_clnt.h: Likewise.
934 * sunrpc/rpc/pmap_prot.h: Likewise.
935 * sunrpc/rpc/rpc_msg.h: Likewise.
936 * sunrpc/rpc/svc.h: Likewise.
937 * sunrpc/rpc/svc_auth.h: Likewise.
938 * sunrpc/rpc/xdr.h: Likewise.
940 * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
942 * sunrpc/pmap_rmt.c: ...here.
944 Fri Jul 26 16:10:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
946 * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
948 * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
951 Fri Jul 26 00:36:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
953 * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
954 <kkojima@info.kanagawa-u.ac.jp>.
956 Fri Jul 26 04:41:28 1996 Ulrich Drepper <drepper@cygnus.com>
958 * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
959 defined, not __OPTIMIZED.
960 (_nl_msg_cat_cntr): Move declaration outside macro definition
961 to prevent "nested extern" warning.
962 (dcgettext): Rename local variable `result' to `__result'.
964 Thu Jul 25 22:46:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
966 * locale/programs/localedef.c (__progname): Remove decl.
967 (main): Use program_invocation_short_name instead of __progname.
968 (usage): Use program_invocation_name instead of __progname.
970 Fri Jul 26 03:46:08 1996 Ulrich Drepper <drepper@cygnus.com>
972 * catgets/gencat.c: Use "libc" instead of PACKAGE.
973 * locale/localedef.c: Ditto.
974 * locale/locale.c: Ditto.
976 * locale/findlocale.c (_nl_find_locale): Little optimization.
977 Use new function `strndup'.
979 * locale/loadlocale.c: Little optimization. Use constant value
980 from `_nl_category_num_items' instead of byte-order dependend
983 * locale/programs/ld-time.c (time_add): Correct string constant.
985 * locale/programs/locale-spec.c: New file.
986 * locale/programs/locale.c: Call `locale_special' function if
987 no other field matches.
989 * locale/programs/localedef.c: No need to define `program_name'.
990 Use global variable `__progname'.
992 * locale/programs/locfile.c (write_locale_data): Always write
993 LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file. This is
994 necessary since message catalogs are also installed in the
995 LC_MESSAGES/ directory.
997 * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
998 function instead of writing single bytes.
999 (encode_char): Also handle little endian.
1001 * locale/setlocale.c (new_composite_name): Little optimization.
1002 Use return value of `memcpy'.
1004 * misc/ttyent.h: Pretty print prototypes, add missing parameter
1005 names, prepend parameter names with __ and use `__const' instead
1007 * posix/unistd.h: Ditto.
1008 * stdlib/stdlib.h: Ditto.
1009 * string/string.h: Ditto.
1011 * posix/getconf.c: De-ASNI-fy. Recognize POSIX.2 constant names.
1012 Use `error' function instead of doing it by hand.
1013 * sysdeps/posix/sysconf.c: De-ANSI-fy.
1014 Handle _SC_COLL_WEIGHTS_MAX.
1015 * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
1016 _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
1017 since these do depend on the platform.
1018 Add POSIX.4 symbols.
1020 * posix/posix2_lim.h: Add missing definition of
1021 _POSIX2_COLL_WEIGHTS_MAX.
1022 Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
1023 to high values since we have no fixed limit.
1025 * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
1026 _SC_PAGESIZE for buggy systems (= HP UX) out there.
1028 * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
1029 * wcsmbs/mbsnrtowcs.c: New file. Non-standard implementation.
1030 * wcsmbs/wcsnrtombs.c: Ditto.
1031 * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
1034 Thu Jul 25 00:25:54 Richard Henderson <rth@tamu.edu>
1036 * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
1038 * nss/getXXent_r.c: Likewise.
1039 * nss/nsswitch.c: Likewise.
1040 * nss/nss_files/files-XXX.c: Likewise.
1041 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
1042 * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
1043 * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
1045 Thu Jul 25 00:53:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1047 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
1048 macro, now put the needed Linux version just once, here; update to
1049 needing linux-2.0.3 headers.
1050 (libc_cv_linuxVER): New macro derived from that.
1051 (kernel header check): Use those macros and some m4 magic to replace
1052 hard-coded `201' and `2.0.1' in several places.
1054 * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
1056 Wed Jul 24 17:02:30 1996 Ulrich Drepper <drepper@cygnus.com>
1058 * time/localtime.c: Move lock variable declaration to end of
1059 variable declarations since if is a dummy macro the ; at the
1060 end terminates the variable section of the function.
1062 * time/tzset.c: Undefine `tzset' before function declaration.
1063 Use `weak_function' macro instead of `weak_symbol'.
1065 Wed Jul 24 18:57:33 1996 Ulrich Drepper <drepper@cygnus.com>
1067 * stdlib/strtouq.c: Additional weak alias is `strtoull', not
1070 Wed Jul 24 18:26:23 1996 Ulrich Drepper <drepper@cygnus.com>
1072 * locale/C-ctype.c: Increment number of fields after change
1073 from Wed Jun 19 03:24:58 1996.
1075 Tue Jul 23 18:13:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1077 * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
1078 ($(common-objpfx)libc.so): Move deps into that, use it.
1079 [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
1080 $(rpcuserlibs:.so=_pic.a).
1081 * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
1084 Thu Jul 18 21:41:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1086 * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
1087 n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
1089 Tue Jul 23 02:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
1091 * locale/iso-4217.def: Add India to comment for symbol "INR ".
1092 Reported by Raja R Harinath <harinath@cs.umn.edu>.
1094 Sat Jul 20 14:03:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1096 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
1099 Sun Jul 21 06:48:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1101 * time/tzset.c: Include <libc-lock.h>.
1102 (__tzset_lock): New lock variable.
1103 (tzset): New function (weak defn), no longer weak alias for __tzset.
1104 Call __tzset while holding __tzset_lock.
1105 * time/localtime.c: Include <libc-lock.h>.
1106 (__localtime_r): Hold __tzset_lock while doing the work.
1108 * sysdeps/generic/setenv.c (__environ): Change conditional for #define
1109 from [!HAVE_GNU_LD] to [!_LIBC].
1110 [_LIBC]: Include <libc-lock.h> and define a lock.
1111 (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
1112 (setenv, unsetenv): Use them.
1114 Sun Jul 21 01:44:39 1996 Miles Bader <miles@gnu.ai.mit.edu>
1116 * locale/programs/locfile.c (write_locale_data): Deal with missing
1119 * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
1120 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
1122 Sat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1124 Win32 hacks from <Rob_Tulloh@tivoli.com>.
1125 * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
1126 use void * for my_realloc; include <malloc.h> for alloca.
1127 (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
1128 * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
1129 * posix/glob.h: Likewise.
1131 Sat Jul 20 13:28:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
1133 * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
1134 call __io_select unless there's only a single descriptor, as each
1135 descriptor now has its own reply port.
1136 If there is only a single descriptor, just use its reply port for
1137 everything and don't bother creating the port set.
1139 * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
1140 <unistd.h>: New include.
1142 * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
1145 Sat Jul 20 07:15:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1147 * crypt/Makefile, crypt/nocrypt.c: Removed. It is illegal to export
1148 from the USA any software that even makes it easy to drop in an
1149 encryption module of foreign origin.
1150 * Makerules (cryptobjdir): Variable removed.
1151 ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
1152 * Makefile (subdirs): Remove crypt.
1154 Fri Jul 19 15:45:20 1996 Ulrich Drepper <drepper@cygnus.com>
1156 * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
1157 operator to yesexpr and noexpr string.
1159 Fri Jul 19 15:10:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
1161 * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
1162 old code would have failed on a big-endian 64-bit architecture).
1163 * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
1165 * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
1166 (xdr_u_long): Use switch instead of chain of if-statements.
1167 Remove gratitous parentheses around return expressions.
1168 (xdr_enum): Open code case where INT_MAX<LONG_MAX.
1170 * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
1172 * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
1175 Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1177 * dlfcn.h, db.h: New wrapper headers.
1179 * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
1180 for `struct stat;' forward decl.
1182 Fri Jul 19 22:25:19 1996 Ulrich Drepper <drepper@cygnus.com>
1184 * locale/iso-4217.def: Add some more standardized currency
1187 Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1189 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
1191 Thu Jul 18 12:33:57 1996 Roland McGrath <roland@baalperazim.frob.com>
1193 * Rules (dummy.o, empty.o): Targets removed.
1194 (dummy.c, empty.c): New targets replace them.
1196 Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1198 * crypt/Makefile (lib-noranlib): Depend on
1199 $(objpfx)libcrypt.so$(libcrypt.so-version).
1202 Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
1204 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
1205 check. mib's clueless hacking broke it.
1207 Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1209 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
1211 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
1213 * misc/sys/ustat.h: New file.
1214 * misc/ustat.h: Ditto.
1215 * sysdeps/generic/ustatbits.h: Ditto.
1216 * sysdeps/stub/ustat.c: Ditto.
1217 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
1218 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
1220 (routines): Mention ustat.
1222 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
1223 * sysdeps/alpha/elf/start.S: here.
1225 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
1226 alphabetically correct place. Mention ustat.
1228 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
1229 common symbol (makes errno accessible from gdb).
1231 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
1234 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
1235 record always gets appended at end of file (wtmp is a log file,
1236 after all). Set ut_type to DEAD_PROCESS if name is empty.
1238 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
1239 separate loop from search for UT_ID. Fix code so it is in
1240 sync with Unix man page.
1242 * login/getutline_r.c (getutline_r): Stop searching only if
1243 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
1245 Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
1247 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
1248 avoid duplicate declarations.
1250 Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
1252 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
1253 and alpha-gnu-linuxecoff targets.
1255 Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
1257 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
1259 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
1261 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
1264 * resolv/res_comp.c (res_hnok): Use empty statement in place
1265 of NULL (which generates a "useless expression" warning in
1268 Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
1270 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
1271 with $(..) in output.
1273 Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1275 * elf/Makefile (dl-routines): Add dl-cache.
1276 * elf/dl-cache.c: New file.
1277 * elf/dl-load.c (_dl_map_object): Check cache before default path.
1279 Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
1281 * stdio-common/vfscanf.c: Major change. Now read character
1282 from stream only if needed. Before it was read after the
1283 previous character was used.
1284 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
1286 * stdio-common/tstscanf.c: Change test program so that return
1287 value is != 0 if one test failed.
1289 Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1291 * sysdeps/m68k/Makefile (crypt): Variable removed.
1292 * sysdeps/sparc/Makefile: Likewise.
1294 * version.h (VERSION): Update to 1.93.
1296 * Makerules ($(libdir)/libc.so): Depend on
1297 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
1299 * crypt/nocrypt.c: New file.
1300 * Makefile (subdirs): Add crypt.
1301 * crypt/Makefile: New file.
1303 * Makerules (soversions.mk): Move this target, include of it, and
1304 include of version.mk to ...
1305 * Makeconfig: ... here.
1306 (soversions.mk): Depend on Makeconfig instead of Makerules.
1308 * shlib-versions (*-*-*): Set libcrypt=0.
1310 Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
1312 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
1313 word extends right up to rmargin.
1315 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
1316 output the wrap margin, set point_col to wmargin.
1317 Use negative point_col to deal with a wmargin of 0.
1318 (line_wrap_point): Return 0 for a negative point_col.
1319 (line_wrap_stream): Make wmargin ssize_t.
1320 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
1322 (line_wrap_stream): Make wmargin ssize_t.
1323 (line_wrap_point): Return 0 for a negative point_col.
1325 Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1327 * shlib-versions (*-*-gnu*): Set libc=0.0
1329 Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1331 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
1332 sysdeps/i386/dl-machine.h.
1334 Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
1336 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
1337 to fiddle __put_limit in conjunction with __linebuf_active.
1339 Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1341 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
1342 to the strong name, not the file name.
1344 Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1346 * csu/initfini.c: More magic. Detect if .end is produced and put it
1347 in the output iff the compiler does.
1349 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
1350 because that is broken on alpha.
1352 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
1355 * Makerules (make-link): Install the new link with atomic mv -f in
1356 case ln itself requires the library being installed.
1358 Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
1360 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
1361 i386/dl-machine.h of 960713.
1363 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
1364 (_dl_sysdep_read_whole_file): Fix result variable declaration.
1366 Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1368 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
1371 Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
1373 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
1374 with pointer to local variable instead of NULL.
1376 1996-07-15 Paul Eggert <eggert@twinsun.com>
1378 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
1380 Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1382 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
1383 that are already added by other means.
1385 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
1386 caller column to get those syscalls added automagically.
1388 Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
1390 * login/logout.c (logout): Initialize DATA to a state that will
1391 make setutent_r happy.
1393 Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1395 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
1396 instead of setting the DT_DEBUG pointer.
1398 * csu/initfini.c (_init, _fini): Generate .end directives after
1399 standalone prologues and filter them out from epilogues.
1401 * Makeconfig (rtld-installed-name): Set to ld.so.1.
1402 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
1405 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
1407 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
1409 * MakeTAGS (extract): Pass --add-comments=TRANS.
1410 * sysdeps/gnu/errlist.awk: Write comments into the output with the
1411 descriptive paragraphs from the manual preceded by TRANS.
1413 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
1414 (_dl_start): Move RESOLVE defn inside this function and #include
1415 "dynamic-link.h" a second time there.
1416 [RTLD_START]: Move use of this after _dl_start function.
1418 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
1420 * elf/rtld.c: Include <string.h>.
1422 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
1423 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
1424 Conditionalize defns on [RESOLVE].
1425 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
1426 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1427 Instead use RESOLVE macro with same args.
1428 (elf_machine_rel): Conditionalize defn on [RESOLVE].
1429 * elf/dl-reloc.c (RESOLVE): New macro, define before including
1430 "dynamic-link.h". It replaces `resolve' local function.
1431 * elf/dl-runtime.c: Likewise.
1432 * elf/rtld.c: Likewise.
1434 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
1436 * elf/dl-open.c (_dl_open): Force an indirect call for
1437 _dl_relocate_object so there is no chance a PLT fixup will be done
1438 and clobber _dl_global_scope before our call happens.
1440 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
1441 to =t; must operate on top of fp reg stack, not second from top.
1442 Correct input constraint to 0 from t; must be explicit when input and
1443 output are the same register.
1444 (floor): Use __volatile instead of volatile.
1447 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
1450 Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1452 * manual/Makefile (lib): New phony target. Depend on stamp files.
1453 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
1455 1996-07-13 Paul Eggert <eggert@twinsun.com>
1457 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
1458 to match Emacs format-time-string specification.
1459 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
1461 Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1463 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
1464 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
1465 between MAP and its deps.
1466 * elf/link.h: Fix decl.
1467 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
1468 colon-separated list of names, map those and pass vector of ptrs as
1469 PRELOADS list to _dl_map_object_deps.
1470 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
1471 _dl_map_object_deps with empty preload list.
1472 * elf/dl-open.c (_dl_open): Likewise.
1474 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
1476 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
1477 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
1478 Conditionalize defn on [! MAP_ANON].
1479 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
1481 * elf/rtld.c (dl_main): Likewise.
1482 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
1483 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
1485 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
1487 Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
1489 * stdlib/random.c (__random): Declare as int32_t to be in sync
1492 * socket/Makefile (headers): Add socketbits.h.
1494 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
1497 * grp/initgroups.c (initgroups): Add groups that user is a member
1498 of, not the ones he is _not_ a member of.
1500 * nss/nsswitch.c (known_compare): Make known_compare() a static
1501 instead of a local function. The latter are difficult to debug
1502 and slow to execute on certain platforms.
1504 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
1505 place of sizeof (dev). The size of a literal string includes the
1508 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
1510 Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
1512 * misc/mntent.c (addmntent): Seek to end of file before writing
1513 entry. Return 1 on error, not -1.
1515 Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
1517 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
1520 Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
1522 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
1523 shift amount for Jensen must be 5 not 4.
1525 Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1527 * socket/sys/socket.h (struct osockaddr): New type.
1529 Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
1531 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
1532 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
1533 and `long double' versions can be generated.
1534 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
1535 so that included efgcvt{,_r}.c file generate `long double'
1537 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
1540 * manual/startup.texi: Document new getsubopt function.
1541 * manual/examples/subopt.c: New example program for documenting
1544 Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
1546 * stdlib/Makefile (routines): Add getsubopt.
1547 * stdlib/stdlib.h: Add prototype for getsubopt.
1548 * stdlib/getsubopt.c: New file. Implement getsubopt function
1549 to handle suboption parsing.
1551 Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1553 * inet/getnetent_r.c: Define NEED_H_ERRNO.
1554 * inet/getnetbynm_r.c: Likewise.
1555 * inet/getnetent.c: Likewise.
1556 * inet/getnetbyad_r.c: Likewise.
1557 * inet/getnetbyad.c: Likewise.
1558 * inet/getnetbynm.c: Likewise.
1560 * sysdeps/generic/pselect.c: Include <sys/time.h>.
1562 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
1565 * math/Makefile (calls): Add s_frexp, s_ldexp.
1566 (routines): Remove them and &f from here.
1568 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
1570 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
1573 * nss/nss_files/files-XXX.c: Comment fix.
1575 Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
1577 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
1578 of reentrant function.
1579 (setup): Pass additional argument with function name we are
1581 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
1582 new argument {SET,END,GET}FUNC_NAME_STRING.
1584 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
1585 we return a pointer.
1587 Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1589 * nss/nss_files/files-parse.c: Add comment about things to #define.
1591 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
1593 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
1594 terminator char as an error.
1596 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
1598 Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
1600 * catgets/gencat.c (write_out): Move code to determine new
1601 best size out of inner loop.
1603 Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
1605 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
1606 implementation of frexp() function.
1607 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
1608 implementation of ldexp() function.
1610 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
1613 Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
1615 * misc/mntent.c: Include <sys/types.h>.
1616 (endmntent): Return 1 one success, 0 on failure.
1617 (getmntent): Chop newline and ignore empty lines.
1619 Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1621 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
1622 differently based on [RTLD_BOOTSTRAP].
1623 (elf_machine_rela): Use it instead of the fn ptr arg directly.
1625 Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1627 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
1628 __glob_closedir_hook): Remove decls.
1630 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
1632 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
1633 for send and connect syscalls.
1635 * socket/sys/socket.h: New file, taken from non-sysdep parts of
1636 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
1637 Declare __ names for send and connect.
1638 * sysdeps/generic/socketbits.h: New file.
1639 * sysdeps/unix/sysv/linux/socketbits.h: New file.
1640 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
1641 * sysdeps/generic/sys/socket.h: File removed.
1643 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
1644 * sysdeps/mach/hurd/send.c: Likewise.
1646 * sysdeps/mach/libc-lock.h: New file.
1647 * sysdeps/unix/readdir.c: Do locking.
1648 * sysdeps/unix/seekdir.c: Likewise.
1649 * sysdeps/unix/rewinddir.c: Likewise.
1650 * sysdeps/unix/closedir.c: Likewise.
1651 * sysdeps/unix/bsd/telldir.c: Likewise.
1652 * sysdeps/mach/hurd/seekdir.c: Likewise.
1653 * sysdeps/mach/hurd/readdir.c: Likewise.
1654 * sysdeps/mach/hurd/closedir.c: Likewise.
1655 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
1656 * sysdeps/unix/opendir.c: Likewise.
1657 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
1658 (struct __dirstream): Add lock member using __libc_lock_define.
1659 * sysdeps/unix/dirstream.h: Likewise.
1661 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
1663 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
1665 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
1667 Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
1669 * locale/programs/stringtrans.c: Fix typo in copyright.
1671 * stdio-common/printf-prs.c: Add casts to prevent
1672 signed<->unsigned warnings.
1674 * stdio-common/printf-parse.h: Initialize state variable before
1676 * stdio-common/printf-prs.c: Don't initialize state variable here.
1677 * stdio-common/vfprintf.c: Don't initialize state variable.
1678 (vfprintf): While determining length of multibyte string don't
1679 try to be clever in determining characters to use for first
1682 Add real implementation of multibyte<->wide char conversion
1683 functions. The functions always convert between the fixed wide
1684 char format (ISO 10646 in UCS4) and the UTF8 representation of
1685 this character set. Conversion between the currently used
1686 8bit character set and ISO 10646 will not take place. This is
1687 what iconv() is for.
1688 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
1690 Add optimized version of `mbrlen' function.
1691 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
1693 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
1695 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
1696 This is needed in the wchar.h header.
1697 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
1698 encoded character to UCS4.
1699 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
1700 element of `mbstate_t' for initial state.
1701 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
1702 encoded string to UCS4 string.
1703 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
1704 character to UTF8 encoded form.
1705 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
1706 encoded string to UTF8 encoded form.
1708 Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1710 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
1711 variable name, so new a libc with new requirements won't fail to
1712 notice an insufficient Linux version.
1714 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
1716 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
1717 instead of 2.0 headers.
1719 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
1721 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
1722 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
1724 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
1725 before using it in lhs of weak_alias.
1727 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
1728 Call __nss_lookup when not setting STARTP.
1729 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
1730 function-calling loop.
1732 Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
1734 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
1735 PENDIN, NOFLSH): Undefine these at start if they are already
1736 defined to avoid collision with termbits.h.
1737 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
1738 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
1740 Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1742 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
1743 already defined to float, long double. Use those macros for _Mdouble_
1744 defns when including mathcalls.h.
1745 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
1746 -D_Mlong_double_=double.
1748 Add more -lm functions to -lc because ldexp uses them.
1749 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
1750 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
1751 ldexp have both f and l code, and those have f though not l code.
1753 Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
1755 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
1756 error is 0. The "placeholder" entries recently added to
1757 errno.texi convert to zero since `???/' is at the front of them.
1758 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
1760 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
1761 __const to conform with unistd.h.
1763 * stdlib/stdlib.h (random): Declare return type to be int32_t.
1765 * string/argz-delete.c (argz_delete): Use memmove instead of
1766 memcpy for possibly overlapping strings.
1768 Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1770 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
1771 storage class. GCC gives an error for non-extern data defns with the
1774 Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
1776 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
1777 memmove instead of memcpy for possible overlapping strings.
1779 Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1781 * libc-symbols.h (weak_function): New macro.
1782 For GCC 2.7+ define as __attribute__ ((weak)).
1783 * elf/dl-minimal.c: Use weak_function as keyword in function defns
1784 instead of weak_symbol (NAME) after the defn.
1785 * stdlib/strtol.c: Likewise.
1786 * stdlib/strtod.c: Likewise.
1787 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1789 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
1790 If this is defined, don't declare _dl_rtld_map as weak, and
1791 don't check for MAP pointing to it. RESOLVE is always null in this
1792 case, so test with #ifdef instead of if.
1794 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
1796 * csu/initfini.c (_init): Likewise.
1797 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
1798 * misc/efgcvt_r.c: Likewise.
1799 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1800 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1802 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
1803 It was not used in any assembler code.
1804 (weak_symbol_asm): Renamed to weak_extern_asm.
1805 (weak_extern): New macro replaces weak_symbol for weak extern refs;
1806 define to weak_extern_asm for [!ASSEMBLER].
1808 Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1810 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
1811 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
1812 define those now as aliases.
1813 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
1814 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
1815 after GCC weak attribute decl.
1817 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
1818 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
1819 (element printer): Check for elt in ALIAS, instead of special case
1822 * io/Makefile (headers): Add sys/vfs.h.
1823 * io/sys/vfs.h: New file.
1825 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
1826 critical section lock before unlinking dying active resources.
1827 The unlock just before return is right (i.e. old code unlocked twice).
1829 Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
1831 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
1832 Use memmove instead of memcpy where overlap is possible (not
1833 necessary using current implementation of memcpy, but...).
1834 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
1836 Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
1838 * stdio/linewrap.c (lwupdate): New function, mostly was
1839 __line_wrap_update. Use POINT_COL field instead of POINT.
1840 (__line_wrap_output): Use lwupdate.
1841 (__line_wrap_update): New function.
1842 (ensure_unwrapped, ensure_wrapped): New functions.
1843 (line_wrap_set_lmargin, line_wrap_set_rmargin,
1844 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
1846 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
1847 POINT_COL. Add POINT_OFFS field.
1848 (__line_wrap_update): New decl.
1849 (line_wrap_set_lmargin, line_wrap_set_rmargin,
1850 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
1852 Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
1854 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
1856 * login/pututline_r.c (pututline_r): Since we assign RESULT from
1857 lseek now, check that it's >= 0, not == 0.
1859 Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
1861 * login/login.c (login): Make a copy of *UT, fill in various
1862 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
1865 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
1866 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
1868 Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1870 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
1871 signal during critical section doing interruptible RPC, if
1872 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
1873 before thread_resume. If in critical section, pass 0 for SIGNO to
1874 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
1876 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
1878 * sysdeps/unix/sysv/linux/sys/user.h: New file.
1879 * sysdeps/unix/sysv/linux/Dist: Add it.
1880 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
1882 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
1883 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
1884 itself, no need to skip past a NUL.
1886 * nss/nsswitch.h (known_function): Comment fix.
1887 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
1888 directly. Do the lookup and insertion with a single call, and fill in
1889 the tree node afterwards if new.
1890 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
1892 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
1893 (struct timeval): Add bodiless decl for scope.
1895 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
1896 Move struct timespec defn outside [_TIME_H] so it can be got with
1897 #define __need_timespec.
1899 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
1900 for `struct timespec' member names.
1901 (TIMESPEC_TO_TIMEVAL): Likewise.
1903 * nss/Makefile (extra-libs-others): New variable.
1905 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
1906 $(lib) in $(extra-libs-others).
1907 * sunrpc/Makefile (extra-libs-others): New variable.
1908 (librpcsvc-no-lib-dep): Variable removed.
1910 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
1911 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
1913 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
1914 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
1915 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
1916 _dl_rtld_map weak only here.
1918 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
1920 Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
1922 * login/utmp.h: Fix typos.
1924 * misc/syslog.c (vsyslog): Use __send instead of send and
1925 __connect instead of connect to avoid name-space collisions (e.g.,
1928 Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1930 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
1932 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
1934 * malloc/malloc-size.c (malloc_usable_size): Renamed from
1935 malloc_object_allocation_size.
1936 * malloc/malloc.h: Fix decl.
1938 * sys/select.h: New file, wrapper header.
1940 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
1941 fd_set, associated macros, and select decl.
1943 * sysdeps/posix/isfdtype.c: New file.
1945 Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
1947 The latest Japanese proposal for POSIX locales renames the
1948 CHARMAP keyword in locale definition files to CHARCONV.
1949 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
1950 function ctype_is_charmap to ctype_is_charconv.
1951 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
1953 * locale/programs/locfile-token.h: Add definition of token
1955 * locale/programs/locfile.c: Recognize charconv keyword. Rename
1956 lables according to this.
1958 * locale/weight.h (get_weight): Cast constants to prevent
1961 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
1962 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
1965 New stuff described in P1003.1g.
1966 * misc/Makefile (headers): Add sys/select.h.
1967 (routines): Add pselect.
1968 * misc/sys/select.h: New file. Declare select functions and
1969 needed data types and macros.
1970 * sysdeps/generic/pselect.c: New file. Add generic implementation
1971 of pselect() function which uses select().
1973 * posix/getconf.c: Recognize new variables from P1003.1g.
1974 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
1975 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
1976 * posix/unistd.h: Add description of the P1003.1g variables.
1977 * sysdeps/generic/confname.h: Define _SC_* values for new
1979 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
1981 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
1982 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
1984 * sysdeps/stub/sysconf.c (sysconf): Ditto.
1985 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
1986 _POSIX_SELECT since Linux has this.
1988 * socket/Makefile (routines): Add isfdtype.
1989 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
1990 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
1993 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
1995 Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1997 * elf/Makefile (LDFLAGS-dl.so): New variable.
1998 (libdl.so): Depend on eval.so.
1999 (distribute): Add eval.c.
2000 * elf/eval.c: New file.
2002 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
2003 in case it wrote fewer than MAXDIGITS chars.
2005 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
2006 newline from flushing full buffer in loop, fix test so no fflush is
2007 done when last byte written exactly fills the buffer.
2009 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
2011 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
2012 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
2014 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
2015 extracting _dl_rtld_map.l_addr.
2017 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
2019 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
2021 * shlib-versions (*-*-*): Set libnss_db=1.
2023 Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2025 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
2027 * rpm/template (%build): Use @prefix@ instead of always /usr.
2028 Set up configparms only if @prefix@ is in fact /usr.
2029 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
2031 * elf/Makefile: Add missing endif.
2033 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
2035 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
2036 (DATABASE): Define this instead of DATAFILE.
2037 * nss/nss_files/files-hosts.c: Likewise.
2038 (hostbyname): Use LOOKUP_NAME macro.
2040 * nss/nss_db/db-XXX.c: New file.
2041 * nss/Makefile (services): Add db.
2042 (libnss_db-inhibit-o): New variable.
2043 (libnss_db-routines): New variable.
2044 (distribute): Append db-XXX.c.
2045 (libnss_db.so): Depend on libdb.so and libnss_files.so.
2046 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
2048 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
2050 (DATAFILE): New macro.
2051 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
2053 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
2054 Pass db key args to DB_LOOKUP.
2055 (DATAFILE): Macro removed.
2056 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
2057 * nss/nss_files/files-service.c: Likewise.
2058 * nss/nss_files/files-pwd.c: Likewise.
2059 * nss/nss_files/files-proto.c: Likewise.
2060 * nss/nss_files/files-grp.c: Likewise.
2061 * nss/nss_files/files-ethers.c: Likewise.
2063 * elf/linux-compat.c: File removed.
2064 * elf/Makefile (distribute): Remove linux-compat.c.
2065 (ld-linux.so.1): Remove target and associated variables.
2067 * sunrpc/xdr.c: Remove malloc decl.
2068 * sunrpc/portmap.c: Likewise.
2070 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
2071 casting abort to fn returning bool_t.
2073 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
2074 the parser function.
2075 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
2076 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
2077 * nss/nss_files/files-grp.c: Likewise.
2079 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
2081 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
2083 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
2084 of ld.so so lookups for that soname find it.
2086 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
2087 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
2089 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
2090 define parse_line function.
2091 (parse_line): #define to _nss_files_parse_pwent and
2092 add extern decl for that.
2094 * nss/nss_files/files-XXX.c (internal_getent): Return
2095 NSS_STATUS_TRYAGAIN for ERANGE error.
2097 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
2098 of null, so next round returns null again instead of bombing. Fix
2101 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
2102 Remove ; after `ENTDATA_DECL (data)'.
2103 Truncate line at strpbrk (line, EOLSET "\n").
2104 (ENTDATA_DECL): Put ; at end.
2105 (MIDLINE_COMMENTS): Macro removed.
2106 * nss/nss_files/files-ethers.c: Pass new argument.
2107 * nss/nss_files/files-hosts.c: Likewise.
2108 * nss/nss_files/files-network.c: Likewise.
2109 * nss/nss_files/files-parse.c: Likewise.
2110 * nss/nss_files/files-proto.c: Likewise.
2111 * nss/nss_files/files-rpc.c: Likewise.
2112 * nss/nss_files/files-service.c: Likewise.
2113 * grp/fgetgrent.c: Likewise.
2114 * pwd/fgetpwent.c: Likewise.
2115 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
2116 fgetpwent.c already defines it.
2117 * nss/nss_files/files-grp.c: Likewise.
2119 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
2120 as well as any matching with l_libname. Fix DT_SONAME lookup to use
2121 string table properly.
2123 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
2124 invoked directly, and l_libname from that if PT_INTERP missing.
2125 Set l_name from l_libname only if not set from argv.
2127 * time/europe, time/northamerica: Updated from ADO 96i.
2129 Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2131 * stdio-common/tst-ungetc.c: Include unistd.h.
2133 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
2135 Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
2137 * hurd/report-wait.c (describe_number): Make I unsigned long.
2139 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
2140 actually found any entry.
2142 * login/pututline_r.c (pututline_r): If not located after any
2143 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
2144 Lock the file before stating.
2146 Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2148 * nss/Makefile (databases): Change host to hosts.
2149 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
2151 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
2153 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
2155 * string/string.h (strndupa): Pass missing arg to strnlen.
2157 * inet/getnetbypt_r.c: Renamed to ...
2158 * inet/getnetbyad_r.c: this; fixed function name.
2159 * inet/getnetbypt.c: Renamed to ...
2160 * inet/getnetbyad.c: this; fixed function name.
2162 Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2164 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
2167 Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
2169 * login/login.c (login): Initialize DATA so that setutent_r will
2170 actually do something.
2172 Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
2174 * resolv/res_hconf.c (strndup): Remove function.
2176 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
2177 using ElfW() instead of Elf32_*.
2179 * sysdeps/unix/sysv/linux/alpha/init-first.h,
2180 sysdeps/unix/sysv/linux/m68k/init-first.h,
2181 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
2182 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
2183 init-first.h to make abstract machine dependent parts of
2186 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
2187 error handling. It's safer that way.
2189 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
2190 Fix by Richard Henderson.
2192 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
2193 typo/extraneous whitespace.
2195 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
2196 determine what integer sizes we're dealing with.
2198 Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
2200 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
2201 check for signal zero, repair logical sense of test by
2202 parenthesizing correctly.
2204 * hurd/hurdsig.c (_hurd_internal_post_signal): In
2205 check-for-pending signals code, release _hurd_siglock before
2206 jumping to deliver_pending.
2208 Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
2210 * configure.in (config_machine): Make ELF the default even for
2211 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
2214 Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2216 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
2217 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
2218 member only #ifdef ENTDATA.
2219 (ENTDATA_DECL): New macro.
2220 (LINE_PARSER): Use it for entdata decl.
2221 (parse_list): Find the space for LIST from DATA->linebuffer instead of
2222 from the input LINE, which might not be writable buffer space.
2223 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
2224 [ENTDATA] (parser_stclass): #define to `static inline'.
2225 [!ENDATA] (parser_stclass): #define to empty.
2226 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
2227 function is exported to -lnss_files users.
2229 * string/strndup.c: Add missing arg.
2231 * string/string.h (strndupa): Likewise.
2232 * string/strndup.c (strndup): Always terminate the string.
2234 Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2236 * stdio/Makefile (routines): Add vscanf.
2237 * stdio-common/Makefile (routines): Remove vscanf.
2238 * stdio-common/vscanf.c: Move to ...
2239 * stdio/vscanf.c: here.
2241 * rpm/Makefile (headers, install-lib, install-lib.so,
2242 versioned, install-bin, install-sbin, install-data,
2243 install-others): Add $(-VARIABLE).
2245 Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2247 * nss/Makefile (databases): New variable.
2248 (routines, libnss_files-routines): Use it.
2249 (subdir-dirs): Compute from $(services).
2251 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
2252 init_module, klogctl): Use EXTRA in the "caller" column so these get
2253 added to unix-extra-syscalls and thus compiled in misc.
2255 * string/Makefile (routines): Add strndup.
2256 * string/strndup.c: New file.
2257 * string/string.h: Declare strndup.
2258 (strndupa): New macro.
2260 * string/string.h: Declare __strdup.
2261 * string/strdup.c: Deansideclized. Define __ name and weak alias.
2263 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
2265 Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
2267 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
2269 * grp/initgroups.c (initgroups): De-ansi-fy.
2270 Move declaration of NGROUPS and GROUPS outside #if so that
2271 the code compiles for NGROUPS_MAX != 0.
2273 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
2274 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
2275 ether_ntoa, ether_ntoa_r, and ether_ntoh.
2276 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
2277 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
2278 inet/ether_ntoh.c: New files. Implementation of functions to
2279 handle Ethernet address to host mapping.
2280 * inet/netinet/ether.h: New file. Declare ether_* functions.
2281 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
2283 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
2284 * nss/Makefile (routines): Add ethers-lookup.
2285 (libnss_files-routines): Add files-ethers.
2287 * nss/getXXent_r.c: Don't define set*ent and end*ent function
2290 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
2291 KEEP_STREAM every time called.
2292 (_nss_files_end): Reset KEEP_STREAM here instead.
2293 (internal_getent): If STREAM == NULL try to open instead of
2295 Use cast to prevent warning.
2296 Terminate read line in case the buffer is too small.
2298 * nss/nss_files/files-ethers.c: New file. Implementation of
2299 Ethernet adress<->hostname lookup through files interface.
2301 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
2302 * stdlib/mbtowc.c: Define based on mbrtowc().
2303 * stdlib/wcstombs.c: Define based on wcsrtombs().
2304 * stdlib/wctomb.c: Define based on wcrtomb().
2306 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
2307 unexpected_sizes_in_xdr_u_int.
2309 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
2310 of `struct ether_addr'.
2311 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
2312 declaration of `struct ether_addr'.
2314 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
2315 * wcsmbs/mbsrtowcs.c: Ditto.
2316 * wcsmbs/wcrtomb.c: Ditto.
2317 * wcsmbs/wcsrtombs.c: Ditto.
2319 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
2321 Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
2323 * hurd/get-host.c <fcntl.h>: New include.
2324 * hurd/set-host.c <fcntl.h>: New include.
2325 (_hurd_set_host_config): Include NEW in args to dir_link.
2326 Return NWROTE, not NREAD.
2328 * sysdeps/mach/hurd/getcwd.c
2329 (_hurd_canonicalize_directory_name_internal): Don't deallocate
2330 DOTID & DOTDEVID until we're finished with them (we need to keep
2331 them at least until we've fetched the next level of id ports, so
2332 that mach will be able to use the same name if they're the same).
2333 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
2334 jumps to errlose, for those places where such cleanup is needed.
2336 Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2338 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
2340 Move DB code into separate -ldb library.
2341 * db/Makefile (extra-libs): New variable, list libdb.
2342 (routines): Renamed to libdb-routines.
2343 * shlib-versions: Add libdb=2.
2345 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
2346 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
2348 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
2349 of strncasecmp. Extend syntax to grok [!foo=bar].
2351 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
2353 * string/string.h: Declare __strncasecmp.
2355 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
2356 (service_alias): Variable removed.
2357 (nss_parse_service_list): New function, broken out of nss_getline.
2358 Remove alias conversion; we will just use symlinks.
2359 (__nss_database_lookup): Take new string arg DEFCONFIG.
2360 If no entry exists, make one with service list parsed from that.
2361 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
2362 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
2363 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
2365 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
2368 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
2370 Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
2372 * locale/programs/locale.c (long_options): Short form of
2373 --version option is `-V'.
2374 (main): Recognize `-V' as option, not `-v'.
2375 Call `usage' instead of printing error message for illegal
2377 (usage): Document `-V'.
2379 Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
2381 * sysdeps/mach/hurd/getcwd.c
2382 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
2383 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
2385 Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2387 * inet/getrpcent.c: Fix macros.
2388 * inet/getrpcent_r.c: Fix macros.
2390 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
2392 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
2394 Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
2396 * catgets/gencat.c (write_out): Use %Zu to print variables of type
2398 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
2399 cast it to (unsigned long) to make it work both on 32 and 64
2402 Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2404 * locale/Makefile (distribute): Add `programs/' prefix to all
2405 files in that directory.
2407 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
2410 * MakeTAGS (sources, headers): Make them simply expanded variables
2411 so that all-dist is expanded before it is changed.
2413 Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2415 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
2416 * Makefile (subdirs): Remove crypt.
2417 * crypt: Directory removed. It will be made an independent library
2420 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
2422 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
2424 * inet/getrpcbynumber.c (BUFLEN): New macro.
2426 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
2428 * Makefile (headers): Add libc-lock.h.
2429 * sysdeps/stub/libc-lock.h: New file.
2431 * inet/getrpcbynumber.c: Remove _r typo.
2433 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
2435 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
2438 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
2439 or doesn't mention DATABASE, use an internal default equivalent to
2440 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
2441 (nss_lookup_function): Call nss_new_service as needed.
2442 (nss_parse_file): Don't bother calling nss_new_service here.
2444 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
2445 * pwd/fgetpwent.c: Likewise.
2447 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
2448 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
2449 * malloc/malloc-size.c: New file.
2450 * malloc/malloc-walk.c: New file.
2452 * malloc/malloc-find.c (malloc_find_object_address): Return null if
2453 PTR is outside the heap.
2455 * elf/dl-load.c (_dl_map_object): If the requested name matches the
2456 soname of a loaded object, use that object.
2458 Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2460 * Makefile (subdirs): Add nss.
2462 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
2463 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
2464 * inet/getrpcbynumber_r.c: New file.
2465 * inet/getrpcbynumber.c: New file.
2466 * inet/getrpcbyname.c: New file.
2467 * inet/getrpcbyname_r.c: New file.
2468 * inet/getrpcent_r.c: New file.
2469 * inet/getrpcent.c: New file.
2470 * nss/rpc-lookup.c: New file.
2471 * nss/nss_files/files-rpc.c: New file.
2472 * nss/Makefile (routines): Add rpc-lookup.
2473 (libnss_files-routines): Add files-rpc.
2474 * sunrpc/Makefile (routines): Remove getrpcent.
2475 * sunrpc/getrpcent.c: File removed.
2477 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
2480 * Makeconfig (rpath-link): Add $(nssobjdir).
2481 (nssobjdir): New variable.
2483 * Makerules: Move shared library building before objects rules, so
2484 versions are known before extra-lib.mk gets included.
2485 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
2487 * pwd/getpwuid.c: Rewritten using nss.
2488 * pwd/getpwnam.c: Likewise.
2489 * pwd/getpwent.c: Likewise.
2490 * grp/getgrnam.c: Likewise.
2491 * grp/getgrgid.c: Likewise.
2492 * grp/getgrent.c: Likewise.
2493 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
2494 * pwd/getpwent_r.c: New file.
2495 * pwd/getpwnam_r.c: New file.
2496 * pwd/getpwuid_r.c: New file.
2497 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
2498 * grp/getgrnam_r.c: New file.
2499 * grp/getgrgid_r.c: New file.
2500 * grp/getgrent_r.c: New file.
2501 * grp/Makefile (routines): Remove grpopen, grpread.
2502 * pwd/Makefile (routines): Remove pwdopen, pwdread.
2503 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
2505 * pwd/fgetpwent.c: Rewritten using files-parse.c.
2506 * grp/fgetgrent.c: Likewise.
2508 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
2509 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
2510 * nss/nss_files/files-grp.c: New file.
2511 * nss/nss_files/files-pwd.c: New file.
2513 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
2515 * nss/nss_files/files-parse.c: New file.
2516 * nss/nss_files/files-XXX.c: New file.
2517 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
2518 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
2519 Rewritten using them.
2521 * nss/Makefile (libnss_files-routines): Remove files-host.
2522 Add files-hosts, files-grp, files-pwd.
2524 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
2526 Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
2528 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2529 A .plt entry now loads the .rela.plt offset directly rather
2530 than making us calculate it.
2532 Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2534 * time/Makefile ($(installed-localtime-file) rule): Do
2535 $(make-target-directory) first.
2537 * resolv.h: Fix wrapper for resolv/resolv.h.
2539 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
2540 Compile dummy file and pass -nostdlib -nostartfiles so as not to
2541 require installed libraries.
2543 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
2546 Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
2548 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
2549 and mapv4v6hostent.h.
2550 (routines): Move res* and gethnamaddr into libresolv-routines.
2551 (libresolv-routines): New variable, put them there.
2552 (extra-libs): New variable, list libresolv.
2553 (CPPFLAGS): Add -D for get*by* to res_get*by*.
2555 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
2557 * inet/herrno.c: New file.
2559 * resolv/res_init.c: Remove res_hconf calls.
2561 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
2562 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
2563 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
2564 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
2565 nss/service-lookup.c: New files. Implementation of name
2566 service switch, following the approach in Solaris.
2567 Interface specification and general structure inspired by Peter
2568 Eriksson <pen@lysator.liu.se>.
2569 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
2570 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
2571 Implementation of libnss_files.so module for file based databases
2573 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
2574 if libnss_dns.so module for DNS name lookup in NSS service.
2576 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
2577 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
2578 Changed to serve as interface to NSS.
2579 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
2580 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
2581 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
2582 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
2583 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
2584 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
2585 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
2586 interfaces to NSS, including reentrant functions.
2588 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
2589 resolv/sethostent.c: Removed: Obsoleted by NSS.
2591 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
2592 gethnamaddr.c. These private functions are now used in more
2595 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
2597 Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2599 * rpm/Makefile ($(config)): Make sure the word list in the for
2600 loop is syntactically non-empty.
2602 Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2604 * Version 1.92 test release.
2606 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
2608 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
2609 to klogctl to match prototype in sys/klog.h.
2611 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
2612 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
2614 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
2615 Remove. Code is now part of __getcwd again. The old function
2616 never really worked for anything but THISDIR==".".
2618 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
2619 only when building ELF version of library.
2621 * libio/libioP.h (_IO_vscanf): Add prototype.
2623 * posix/unistd.h (syscall): Change sysno arg and return value
2626 Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2628 * version.h (VERSION): Updated to 1.92.
2630 * misc/Makefile (headers): Add ar.h.
2631 * misc/ar.h: New file.
2633 * config.make.in (BUILD_CC): New variable.
2634 * configure.in: Check for BUILD_CC if $host != $build.
2636 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
2638 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
2639 (stamp$o files): New targets, create them empty, no deps.
2641 * rpm/template (Source): New field.
2642 (%prep, %build, %install): New sections.
2643 (%files): Add %doc FAQ NEWS NOTES README.
2644 * rpm/rpmrc (builddir): Removed.
2646 Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2648 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
2649 guessing to not assume p_vaddr of first load cmd is zero.
2651 * sysdeps/sparc/elf/start.S: New file.
2652 * sysdeps/sparc/dl-machine.h: New file.
2654 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
2655 only for ?s, not for *s. Fix from Chet Ramey.
2657 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
2658 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
2659 Use __{BEGIN,END}_DECLS.
2660 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
2661 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
2662 New macros, moved here from sysdeps/gnu/utmpbits.h.
2663 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
2664 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
2665 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
2666 Use sizeof instead of UT_*SIZE.
2667 * login/logwtmp.c: Likewise.
2669 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
2671 * version.c (banner): Add trailing newline.
2673 * login/utmp.h: Declare login_tty.
2675 Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
2677 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
2678 Changed to a 12-byte PLT entry to remove dependency on $gp.
2679 Take a new got_addr parameter.
2680 (elf_machine_rela): Pass the new parameter.
2681 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
2682 (RTLD_START): Do normal linkage with program entry.
2684 Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
2686 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
2688 * hurd/getuids.c (getuids): New weak link to __getuids.
2690 Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
2692 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
2693 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
2695 Rename nested function lookup to lookup_op.
2696 (__file_name_lookup, __file_name_lookup_under):
2697 Pass 0 for lookup arg to __hurd_file_name_lookup.
2698 (__file_name_split): Likewise for __hurd_file_name_split.
2699 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
2700 Rename nested function lookup to scan_lookup.
2701 (file_name_path_lookup): Pass 0 for lookup arg to
2702 hurd_file_name_path_lookup.
2703 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
2704 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
2705 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
2706 Add LOOKUP argument.
2707 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
2708 __hurd_file_name_lookup.
2710 Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2712 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
2713 up a huge list just to discard most of it.
2715 * configure.in (sysnames): Avoid fgrep by using the case shell
2718 * Makeconfig (config.status): Fix dependency on Implies files.
2720 Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2722 * math/Makefile (distribute): Add ieee-math.c.
2724 Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
2726 * locale/codeset_name.c: New file. Provide function for information
2727 about currently used character set.
2728 * locale/Makefile (routines): Add codeset_name.
2729 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
2730 * locale/localeinfo.h: Change magic number because of incompatible
2732 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
2733 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
2735 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
2736 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
2738 * locale/setlocale.c (setlocale): Initialize local variables to
2741 Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
2743 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
2745 * locale/programs/locale.c: Include string.h.
2747 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
2748 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
2749 appropriate sign-extension is performed on machines with
2752 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
2753 sizeof(int)<sizeof(long), we need to go through a temporary
2756 * locale/programs/ld-numeric.c: Include <alloca.h>
2758 * libio/stdio.h (__libc_fatal): Add prototype.
2760 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
2763 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
2764 volatile to avoid "might get clobbered by longjmp" warning.
2766 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
2767 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
2768 probability is a sure loser).
2769 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
2771 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
2772 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
2774 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
2775 to be Linux FSSTND compliant.
2777 Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
2779 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
2781 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
2782 sysdeps/unix/sysv/linux/alpha/brk.S,
2783 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
2784 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
2785 sysdeps/unix/sysv/linux/alpha/llseek.S,
2786 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
2787 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
2788 __syscall_error to avoid intruding application name space.
2790 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
2791 to SYS_get?id so that syscall stubs in sysdeps/unix define
2792 these syscalls in terms of getxpid/getxuid/getxgid.
2794 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
2795 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
2796 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
2797 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
2799 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
2800 (PSEUDO_END): Rename END() to PSEUDO_END().
2802 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
2803 to PSEUDO_END to improve branch-prediction. Include .frame
2804 directive to make syscalls debugabble.
2805 (PSEUDO_END): New macro.
2807 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
2808 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
2809 latter is illegal under DEC Unix.
2811 * sysdeps/unix/alpha/sysdep.S: Renamed from
2812 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
2814 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
2815 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
2816 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
2818 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
2819 address register in the .frame directive.
2821 * sysdeps/alpha/copysign.c: Remove.
2823 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
2824 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
2826 * errno.h: Move __END_DECLS to correct place to make file
2827 compilable under c++.
2829 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
2830 d_ino only if <direntry.h> hasn't defined d_fileno.
2832 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
2833 arguments to weakext to make .weakext detection work on ECOFF systems.
2835 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
2836 that _validuser() has been replaced by __ivaliduser().
2838 Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
2840 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
2841 as unsigned long, not as int (to avoid incorrect int->long
2846 See ChangeLog.5 for earlier changes.