1 Tue Aug 13 20:51:21 1996 Ulrich Drepper <drepper@cygnus.com>
3 * stdlib/canonicalize.c (canonicalize): Add cast to prevent
6 * Makerules (o-iterator-doit): Use autolock.sh when running ranlib.
8 Tue Aug 13 18:26:45 1996 Ulrich Drepper <drepper@cygnus.com>
10 * nss/nsswitch.c (__nss_configure_lookup): Use fact that list is
13 Update from bind-4.9.5-T1A.
14 * resolv/Makefile (routines): Add inet_net_ntop, inet_net_pton,
16 (libresolv-routines): Add base64.
18 * resolv/gethnamaddr.c: Include <sys/types.h>.
19 * resolv/getnetnamadr.c: Likewise.
20 * resolv/herror.c: Likewise.
21 * resolv/inet_addr.c: Likewise.
22 * resolv/nsap_addr.c: Likewise.
23 * resolv/res_comp.c: Likewise.
24 * resolv/res_data.c: Likewise.
25 * resolv/res_init.c: Likewise.
26 * resolv/res_mkquery.c: Likewise.
27 * resolv/res_query.c: Likewise.
28 * resolv/res_send.c: Likewise.
30 * resolv/gethnamaddr.c [! SPRINTF_CHAR] (SPRINTF): Cast return
32 * resolv/inet_ntop.c: Likewise.
34 * resolv/gethnamaddr.c [BSD]: Include <stdlib.h>.
35 Remove prototype of gethostbyname_ipv4.
37 * resolv/inet_ntop.c, resolv/inet_pton.c: Use ISO C `mem*'
38 functions instead of BSD `b*' functions.
40 * resolv/nsap_addr.c: Add copyright message.
42 * resolv/res_comp.c: Remove comment explaining label format.
43 (res_mailok): Correct check.
45 * resolv/res_debug: Include missing headers.
46 (__fp_nquery): Handle `unused', `ad', and `cd' bits.
47 (__p_fqnname): New function to print FQDN from compressed name.
48 (__p_rr): Use __p_fqnname. Correct printing of ". Handle T_TXT
49 correctly. Add handling of T_KEY and T_SIG.
50 Handle class and type names by using name arrays instead of
52 (__sym_ston, __sym_ntos, __sym_ntop): New functions to use arrays.
53 (__dn_count_labels, __p_secstodate): New functions.
55 * resolv/resolv.h (__RES): Update version number.
57 Add #defines for new functions.
58 Declare sym_ntos, sym_ntop, b64_ntop, b64_pton, __p_fqnname,
59 __p_secstodate, dn_count_labels.
61 * resolv/arpa/nameser.h (__BIND): Update verison number.
62 Add KEYFLAG_* and ALGORITHM_* symbols.
63 (HEADER): Add `ad' and `cd' flags.
65 * inet/ient.h: Add prototypes for inet_neta, inet_net_ntop,
68 * manual/maint.texi: Document that we use bind-4.9.5.
71 Mon Aug 12 16:41:52 1996 Thomas Bushnell n/BSG <thomas@gnu.ai.mit.edu>
73 * io/getwd.c (getwd) [! PATH_MAX]: Don't assume that the user's
74 buffer is any longer than the amount necessary to hold the
75 filename; the Hurd getcwd uses the *entire* contents of the
76 buffer, however long it is specified to be.
78 Mon Aug 12 04:33:09 1996 Ulrich Drepper <drepper@cygnus.com>
80 * nss/nsswitch.c (__nss_database_lookup): Always release locks
81 before returning. Reported by Miles Bader.
83 Mon Aug 12 03:31:58 1996 Ulrich Drepper <drepper@cygnus.com>
85 * nss/nsswitch.c (__nss_configure_lookup): New function.
86 Allows to specify services.
87 * nss/XXX-lookup.h: Rename database variable and make global.
88 * nss/databases.def: New file. Real names of all databases.
90 * nss/nss.h: New file. Contains declaration useful for users
91 and service developers.
92 * nss/nsswitch.h: Move some declarations to nss/nss.h.
93 * nss.h: New file. Wrapper around nss/nss.h.
95 * nss/Makefile (headers): Add nss.h.
96 (distributes): Add databases.def.
98 Sun Aug 11 16:19:42 1996 Ulrich Drepper <drepper@cygnus.com>
100 Help the poor people with fast machines by making sure only
101 one `ar' commands works on the library.
102 * autolock.sh: New file. Written by Tom Tromey.
103 * Makerules (do-ar): Call autolock.sh shell script instead of
105 * config.make.in: Make configuration variable AUTOLOCK which
106 gets initialized by configure.
107 * configure.in: Define variable AUTOLOCK to point to autolock.sh
108 script and mark it to substitute.
110 * string/Makefile: Add -fno-builtin for tst-strlen.c, too.
112 Sun Aug 11 01:12:38 1996 Richard Henderson <rth@tamu.edu>
114 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW
115 startup by moving Icache flush from here ...
116 (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here.
117 (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused.
119 * sysdeps/alpha/divrem.h: Update comment to reflect the actual
120 calling conventions. The code is already correct.
122 Sun Aug 11 01:06:42 1996 Richard Henderson <rth@tamu.edu>
124 * string/Makefile: Compile tester with -fno-builtin as we want to
125 test our implementations, not gcc's.
127 Sat Aug 10 13:17:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
129 * shadow.h: New file.
131 * sysdeps/unix/sysv/linux/netinet/in.h: Move
132 __BEGIN_DECLS/__END_DECLS up so ntohl() et al are bracketed as
135 * socket/sys/socket.h [__cplusplus]: Use old-style __SOCKADDR_ARG.
136 g++ 2.7.2 (and earlier) has no transparent unions support.
138 Fri Aug 9 18:50:06 1996 David Mosberger-Tang <davidm@azstarnet.com>
140 * sysdeps/unix/sysv/linux/alpha/ioperm.c (_bus_base_sparse): New
141 function to determine the base address of sparse bus memory.
142 (APECS_*): Rename to CIA_*.
143 (APECS_SPARSE_MEM, CIA_SPARSE_MEM): New macros.
144 (platform): Add sparse_bus_memory_base member and initialize.
145 (sparse_bus_memory_base): New variable.
147 Tue Aug 6 10:23:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
149 * sysdeps/posix/ttyname_r.c (ttyname_r),
150 sysdeps/posix/ttyname.c (ttyname): Return -1/NULL if
151 !__isatty(fd) (POSIX.1 says so.)
153 * sysdeps/unix/getlogin.c (getlogin): Fix to check fd 0 only.
154 This is not a gross hack, after all---for compatibility,
155 getlogin() really should check fd 0 only and not try to base its
156 operation on the controlling tty.
158 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
160 * sysdeps/unix/getlogin.c (getlogin): Add static variable NAME,
161 change utmp_data from static to auto.
163 Sun Aug 11 02:56:08 1996 Ulrich Drepper <drepper@cygnus.com>
165 * posix/unistd.h [__USE_MISC]: Add prototype for `nice'.
166 Reported by David Mosberger-Tang.
168 Sat Aug 10 02:05:28 1996 Richard Henderson <richard@twiddle.tamu.edu>
170 * sysdeps/libm-ieee754/s_isnan.c [NO_LONG_DOUBLE]: Add strong
173 Fri Aug 9 17:38:58 1996 Ulrich Drepper <drepper@cygnus.com>
175 * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
176 get `struct timeval'.
177 * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
178 * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
179 * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
180 * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
181 * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
182 * sysdeps/unix/sysv/linux/direntry.h: Complete types in
184 * io/fts.h: Include <sys/types.h> to get dev_t.
185 Reported by Matthias Urlichs.
187 * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
188 _IO_file_flags. It's the same as _flags.
189 Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
191 Wed Aug 7 19:38:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
193 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
195 Thu Aug 8 16:17:38 1996 Ulrich Drepper <drepper@cygnus.com>
197 * pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
198 * pwd/getpwent_r.c: Likewise.
199 * pwd/getpwnam.c: Likewise.
200 * pwd/getpwnam_r.c: Likewise.
201 * pwd/getpwuid.c: Likewise.
202 * pwd/getpwuid_r.c: Likewise.
204 * grp/getgrent.c: Define BUFLEN from NSS_BUFLEN_GROUP.
205 * grp/getgrent_r.c: Likewise.
206 * grp/getgrgid.c: Likewise.
207 * grp/getgrgid_r.c: Likewise.
208 * grp/getgrnam.c: Likewise.
210 * pwd/fgetpwent_r.c: New file. Reentrant version of fgetpwent.
211 * pwd/fgetpwent.c: Rewrite to use fgetpwent_r.
212 * pwd/Makefile (routines): Add fgetpwent_r.
213 * pwd/pwd.h: Add prototypes for __fgetpwent_r and fgetpwent_r.
215 * grp/fgetgrent_r.c: New file. Reentrant version of fgetgrent.
216 * grp/fgetgrent.c: Rewrite to use fgetgrent_r.
217 * grp/Makefile (routines): Add fgetgrent_r.
218 * grp/grp.h: Add prototypes for __fgetgrent_r and fgetgrent_r.
220 Implement shadow password lookup functions. This is no complete
221 shadow password suite.
222 * shadow/Makefile: New file.
223 * shadow/fgetspent.c: New file.
224 * shadow/fgetspent_r.c: New file.
225 * shadow/getspent.c: New file.
226 * shadow/getspent_r.c: New file.
227 * shadow/getspnam.c: New file.
228 * shadow/getspnam_r.c: New file.
229 * shadow/putspent.c: New file.
230 * shadow/sgetspent.c: New file.
231 * shadow/sgetspent_r.c: New file.
232 * shadow/shadow.h: New file.
233 * shadow/spwd-lookup.c: New file.
234 * shadow/nss_files/files-spwd.c: New file.
236 Thu Aug 8 13:33:45 1996 Ulrich Drepper <drepper@cygnus.com>
238 * sysdeps/unix/sysv/linux/ftime.c: New file. Available system
240 Reported by Matthias Urlichs.
242 * Makeconfig [!default_cflags]: Change default value from `-g'
245 * configure.in: Recognize i686.
246 * sysdeps/i386/i686/Implies: Default on i586 optimized code.
248 Thu Aug 8 12:40:20 1996 Matthias Urlichs <smurf@smurf.noris.de>
250 * Makeconfig [$(build-omitfp) == yes]: Add to CFLAGS-.so
251 value of CFLAGS-.o, not CFLAGS-o.
253 * sysdeps/unix/sysv/linux/init-first.c (init): Add volatile
254 pointer to ourself. Otherwise `gcc -O3' optimized init away.
256 Thu Aug 8 01:41:43 1996 Ulrich Drepper <drepper@cygnus.com>
258 * elf/Makefile: Undo change of Tue Aug 6 14:27:11 1996.
259 * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
261 Thu Aug 8 01:15:59 1996 Ulrich Drepper <drepper@cygnus.com>
263 * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
264 to 0x137f to allow long double operations.
266 Sun Aug 4 13:12:05 1996 Richard Henderson <rth@tamu.edu>
270 * nss/nsswitch.c (_res): Remove redundant variable definition.
271 The real one is in resolve/res_init.c, and having both prevents
272 using -fno-common when building the shared library.
273 * sunrpc/rpc_prot.c (_null_auth): Same. Original is in rpc_common.c.
275 * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
276 a .bss object not a COMMON symbol.
278 * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
279 $gp before referencing __sigsetjmp symbol. Retain LITUSE for same.
283 * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
284 main loop for better dual-issue on EV5. Rearrange binary search to
285 pipeline better and trim one instruction.
289 * time/localtime.c (localtime_r): Move lock declaration back next to
290 the comment where it was before the 960724 change.
292 * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
293 The second word is supposed to be the hardware manufacturer.
295 * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
296 * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
298 * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
300 * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
301 sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
302 Same cleanups as with EV4 GMP stuff.
304 Tue Jul 25 03:30:56 1996 Richard Henderson <rth@tamu.edu>
306 * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
307 * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
308 * sysdeps/unix/sysv/linux/i386/clone.S: New file.
310 Sun Aug 4 00:12:41 1996 David Mosberger-Tang <davidm@azstarnet.com>
312 * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
315 * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
317 Sat Aug 3 16:20:02 1996 David Mosberger-Tang <davidm@azstarnet.com>
319 * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
322 * socket/sys/socket.h (send, __send, sendto): Declare buffer
325 * string/tester.c (main): Test stpncpy.
327 * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
328 segfault when called with an N that is not a multiple of four and
331 * misc/syslog.c (LogType): New variable.
332 (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
333 try again with SOCK_STREAM (the Linux syslogd uses a socket of the
335 (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
336 terminator as a record-delimiter. If __send(LogFile) fails,
337 call closelog() so logfile gets re-opened next time.
339 Wed Aug 7 15:15:14 1996 Ulrich Drepper <drepper@cygnus.com>
341 * elf/dl-open (_dl_open): Add cast to avoid warning.
343 * manual/memory.texi: Improve some examples to give readers better
344 advice: Use `stpcpy' instead of `strcat' if possible.
345 * manual/string.texi: Document `strtok_r' and `strtok'.
347 * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
349 [$(cross-compiling)=no]: Change test before making librpcsvc
350 to this from $(cross-compile).
351 Reported by Andreas Schwab.
353 Tue Aug 6 14:27:11 1996 Ulrich Drepper <drepper@cygnus.com>
355 * elf/Makefile (routines): Move dl-sysdep to here...
356 (rtld-routines): ...from here. This should make static linking
359 * locale/setlocale.c: Add local variable `lock' and add code to
360 `setlocale' to avoid simultaneous changing of global data.
362 * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
363 * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
364 `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
365 of unprotected names.
367 Tue Aug 6 01:13:56 1996 Ulrich Drepper <drepper@cygnus.com>
369 Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
370 This requires to rename several functions to use __ protected
372 * dirent/dirent.h: Add prototypes of __opendir, __closedir,
374 * sysdeps/mach/hurd/closedir.c: Prepend function name with __
375 and make old name a weak alias.
376 * sysdeps/mach/hurd/getrlimit.c: Likewise.
377 * sysdeps/mach/hurd/opendir.c: Likewise.
378 * sysdeps/mach/hurd/readdir.c: Likewise.
379 * sysdeps/stub/closedir.c: Likewise.
380 * sysdeps/stub/opendir.c: Likewise.
381 * sysdeps/stub/readdir.c: Likewise.
382 * sysdeps/unix/closedir.c: Likewise.
383 * sysdeps/unix/opendir.c: Likewise.
384 * sysdeps/unix/readdir.c: Likewise.
386 * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
388 * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
389 `__closedir' instead of unprotected names.
391 * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
392 instead of `isatty' since later is not part of ISO C.
393 * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
394 `open' since later is not part of ISO C.
396 * login/endutent.c (endutent): Call `__endutent_r', not
398 * login/endutent_r.c: Rename defined function to `__endutent_r',
399 make `endutent_r' weak alias.
400 * login/getutent.c (getutent): Call `__getutent_r', not
402 * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
403 * login/getutid_r.c: Rename defined function to `__getutent_r',
404 make `getutent_r' weak alias.
405 * login/getutline.c (getutline): Call `__getutline_r', not
407 * login/getutline_r.c: Rename defined function to `__getutline_r',
408 make `getutline_r' weak alias.
409 * login/pututline_r.c: Rename defined function to `__pututline_r',
410 make `pututline_r' weak alias.
411 * login/setutent.c (setutent): Call `__setutline_r', not
413 * login/setutent_r.c: Rename defined function to `__setutline_r',
414 make `setutline_r' weak alias.
415 Rename `utmpname' to `__utmpname' and make former weak alias.
416 (__utmpname): Call `__strdup', not `strdup'.
417 * login/utmp.h: Add prototypes for name space clean reentrant
419 * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
420 and `__endutent_r' instead of unprotected names.
422 * math/math.h: Add prototype for `__matherr'.
423 * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
426 * nss/getXXbyYY.c: Call __ protected reentrant function.
427 * nss/getXXent.c: Likewise.
428 * nss/getXXbyYY_r.c: Define `get*' function with __ protected
429 name. Make usual name a weak alias.
430 * nss/getXXent_r.c: Likewise.
432 * posix/unistd.h: Add prototype for `__ttyname_r'.
433 * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
434 and make `ttyname_r' a weak alias.
436 * resource/sys/resource.h: Add prototype for `__getrlimit'.
437 * sysdeps/stub/getrlimit.c: Prepend function name with __
438 and make old name a weak alias.
439 * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
440 and make `getrlimit' weak alias.
442 * libc/stdio/stdio.h: Add prototype for `__vscanf'.
443 * libc/stdio/vscanf.c: De-ANSI-fy.
444 Rename function to `__vscanf' and make `vscanf' a weak alias.
445 * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
448 * stdio-common/reg-printf.c: De-ANSI-fy.
449 Rename function to `__register_printf_function' and make
450 `register_printf_function' weak alias.
452 * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
455 * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
456 * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
457 * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
458 * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
459 * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
461 * wcsmbs/mbsrtowcs.c: Likewise.
462 * wcsmbs/wcrtomb.c: Likewise.
463 * wcsmbs/wcsrtombs.c: Likewise.
464 * wcsmbs/wchar.h: Add prototypes for __ protected versions.
466 * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
467 instead of `sigprocmask'.
470 * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
471 version getgrent_r, getgrgid_r, and getgrnam_r.
472 * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
473 version getpwent_r, getpwuid_r, getpwnam_r and __ protected
475 * resolv/netdb.h: Complete rewrite. No more BSD ugliness.
478 * misc/error.c (private_strerror): Translate messages from table,
481 * io/fcntl.h: Pretty printing.
482 * misc/fstab.h: Likewise.
483 * misc/ttyent.h: Likewise.
484 * resource/sys/resource.h: Likewise.
485 * string/argz.h: Likewise.
486 * string/envz.h: Likewise.
488 Add support for symbols from POSIX.1c (POSIX threads).
489 * posix/getconf.c: Handle new sysconf symbols.
490 * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
491 _POSIX_LOGIN_NAME_MAX with minimal maximal values.
492 * sysdeps/generic/confname.h: Define new symbols.
493 * sysdeps/posix/sysconf.c: Handle new symbols.
494 * sysdeps/stub/sysconf.c: Ditto.
495 * sysdeps/unix/sysv/linux/sysconf.c: Removed. Generic version
498 * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
501 * sysdeps/generic/resourcebits.h: Add macro definition for
502 RLIMIT_* values. Some sources test using #ifdef whether specific
504 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
505 * sysdeps/unix/sysv/linux/resourcebits.h: Removed. We need
506 separate files for the architectures.
507 * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
508 * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
509 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
510 * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
512 * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
513 and only default on `OPEN_MAX'.
514 * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed. Default is already
517 * time/Makefile (routines): Add ctime_r.
518 * time/asctime.c: Add implementation of `asctime_r'. Make
519 `asctime' implementation based on reentrant version.
520 * time/ctime_r.c: New file.
521 * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
524 Sat Aug 3 18:41:36 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
526 * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
527 (_nl_C_LC_CTYPE): Fix ordering.
528 * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
531 Sat Aug 3 12:31:06 1996 Richard Henderson <rth@tamu.edu>
533 * csu/initfini.c: Discover the maximum alignment generated by the
534 compiler when emitting a function.
535 (_init): Make sure the end of the crti fragment is aligned.
538 Fri Aug 2 03:12:40 1996 Ulrich Drepper <drepper@cygnus.com>
540 * initfini.c: (__libc_is_static): New variable. Will be
541 initialized in init-first.c. Some actions in the libc work
542 different when libc is static or dynamic.
544 * sysdeps/unix/sysv/linux/init-first.c (init): Use
545 `__libc_is_static' variable to determine whether call to
546 `personality' and `setfpucw' is necessary. When done set variable
547 to +-1 depending on library type.
549 * locale/setlocale.c (setlocale): Use global variable
550 `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
551 determine whether it's a SET[UG]ID program.
553 Fri Aug 2 14:40:22 1996 Roland McGrath <roland@fast.cs.utah.edu>
555 * Version 1.93 test release.
557 * manual/Makefile: Use -include for chapters-incl too.
559 * Makeconfig (+link): Add back start.o, mistakenly removed in last
562 Fri Aug 2 01:04:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
564 * nss/Makefile (generated): Add db-*.c.
566 * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
569 * configure.in (--enable-add-ons): Quote m4 macro args.
571 * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
573 Thu Aug 1 14:40:03 1996 Roland McGrath <roland@fast.cs.utah.edu>
575 * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
577 * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
579 * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
582 * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
583 warning when inline function is elided.
584 * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
585 (elf_machine_runtime_setup): Likewise.
586 * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
587 * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
588 (elf_machine_load_address): Likewise.
590 * catgets/gencat.c: Include <locale.h>.
592 * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
594 * login/logwtmp.c (logwtmp): Call time, not __time.
596 * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
597 * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
598 * login/logwtmp.c (logwtmp): Likewise.
600 * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
601 comparing ioctl macro values.
603 * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
605 * manual/Makefile: Use -include for chapters to suppress warning.
607 * sysdeps/stub/socket.c: Fix type of TYPE arg.
608 * sysdeps/stub/socketpair.c: Likewise.
610 * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
612 * sysdeps/generic/sysdep.h: New file, broken out of ...
613 * sysdeps/unix/sysdep.h: ... here.
614 (C_LABEL): Moved out.
616 * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
617 stick to sed. Do `exit 0' at end because while returns nonzero.
619 * sysdeps/i386/sysdep.h: New file, broken out of ...
620 * sysdeps/unix/i386/sysdep.h: ... here. Generic asm macros moved out.
622 * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
623 They are defined unconditionally in libio/stdio.h.
625 * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
626 * elf/dl-cache.c: Likewise.
628 Mon Jul 29 19:20:05 1996 Ulrich Drepper <drepper@cygnus.com>
630 * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
631 (sysdep_headers): Add sys/sysmacros.h.
632 * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
634 Wed Jul 31 14:21:36 1996 Ulrich Drepper <drepper@cygnus.com>
636 * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
637 tcgetattr. We have weak aliases now.
638 * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
639 "optimizations" for random functions.
641 Mon Jul 29 20:33:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
643 * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
644 htons) [__BIG_ENDIAN]: #undef them before defining to avoid
645 redefinition warning.
647 Mon Jul 29 20:28:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
649 * time/time.h: Don't optimize tzset() to __tzset() which bypasses
652 Tue Jul 30 15:14:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
654 * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
657 Tue Jul 30 02:48:28 1996 Ulrich Drepper <drepper@cygnus.com>
659 * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
661 Reported by Richard Henderson <rth@tamu.edu>.
663 Tue Jul 30 15:04:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
665 * locale/programs/ld-collate.c (collate_output): Fix typo reported by
668 Tue Jul 30 13:23:13 1996 Ulrich Drepper <drepper@cygnus.com>
670 * locale/setlocale.c (setlocale): Don't try to free C locale
672 Reported by Matthias Urlichs.
674 Tue Jul 30 14:35:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
676 * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
677 (open_file): New function, contents mostly from __open.
678 (_dl_sysdep_read_whole_file): New function.
680 Sat Jul 27 11:23:59 1996 Miles Bader <miles@gnu.ai.mit.edu>
682 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
683 `..' dots in sed search string.
685 Mon Jul 29 01:27:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
687 * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
690 Sun Jul 28 23:46:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
692 * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
693 in those directories.
694 * config.make.in (add-ons): New varaible, set from @subdirs@.
695 * Makefile (subdirs): Added $(add-ons) at the end.
697 * time/strftime.c (strftime: do_number): Initialize PRINTED to
698 MAXDIGITS in case P is null and so sprintf is never actually called.
700 Mon Jul 29 02:46:23 1996 Ulrich Drepper <drepper@cygnus.com>
702 Add support for the to-be-written internationalized regexp.
703 This code must be able to use collation symbols and collation
705 * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
706 _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
707 New global variables for collation classes.
708 * locale/categories.def: Add new descriptions for collation symbols
709 and collation classes.
710 * locale/langinfo.h: Add constants for collation symbols and
712 * locale/lc-collate.c: Add new global variables for collation symbols
713 and collation classes.
714 (_nl_postload_collate): Initialize new variables.
715 * locale/programs/ld-collate.c: Add code to emit tables for
716 collation symbols and collation classes.
717 * locale/programs/locales.h: Change prototype for `collate_output'.
718 * locale/programs/locfile.c (write_all_categories): Call
719 `collate_output' with new argument.
720 * locale/localeinfo.h: Add declaration for new global vars.
721 (union locale_data_value): New member wstr for `wchar_t' strings.
722 * locale/programs/locale-spec.c: Handle `collate-classes'
723 keyword and print information about available collation classes.
724 * locale/strlen-hash.h: New file. Simple hashing function which
725 takes a string with known length.
726 * locale/Makefile (distribute): Add strlen-hash.h.
727 (locale-modules): New var. Additional files for `locale' program.
729 * locale/C-ctype.c: Rewrite to avoid using string for giving values
730 which are of type `u_int32_t'.
731 Correct entry for EOF in toupper and tolower tables.
733 * locale/loadlocale.c (_nl_load_locale): Add cast to prevent
736 * locale/programs/ld-ctype.c (ctype_output): Add code to make
737 sure that all tables in binary file are word-aligned.
739 * locale/programs/locfile.c (write_locale_data): Correct handling
740 of LC_MESSAGES locale. Create directory if necessary.
742 * locale/setlocale.c (setlocale): Add cast to avoid warning.
744 * string/string.h: Add prototype for `__strndup'.
746 Wed Jul 24 19:10:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
748 * wcsmbs/mbrtowc.c: Remove unused variable.
750 Sun Jul 28 22:40:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
752 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
753 2.0.10; some problems were reported with an earlier version, and this
754 one is known to work.
756 * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
757 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
759 Sat Jul 27 13:02:09 1996 Ulrich Drepper <drepper@cygnus.com>
761 * elf/rtld.c (dl_main): Ignore arguments when environment variable
762 LD_TRACE_LOADED_OBJECTS is set.
764 Sun Jul 28 19:42:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
766 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
767 __libc_enable_secure instead of _dl_secure.
768 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
769 * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
771 * elf/Makefile (routines): Add enbl-secure.
772 (elide-routines.so): Here too.
773 * sysdeps/generic/enbl-secure.c: New file.
774 * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
775 * elf/dl-support.c (_dl_secure): Variable removed.
776 * elf/rtld.c: Likewise. Replace all uses with __libc_enable_secure.
778 Sun Jul 28 19:26:40 1996 David S. Miller <dm@neteng.engr.sgi.com>
780 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
781 Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
782 compiler doesn't elide it.
783 (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
785 Sat Jul 27 02:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
787 * elf/rtld.c (dl_main): Take new option --verify when run directly.
788 In verify mode, exit with status zero iff the argument object's
789 PT_INTERP matches argv[0].
790 * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
791 exits with zero status. This makes `ldd' secure again.
793 Fri Jul 26 22:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
795 * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
796 environment variable handling. This makes the dynamic linker
797 only print loaded libraries and quit.
799 * elf/ldd.sh.in: Don't use `rtld --list' but instead
800 LD_TRACE_LOADED_OBJECTS environment variable to print needed
803 Sat Jul 27 02:03:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
805 * db/makedb.c (main): Print version on stdout, not stderr. Don't exit
806 after printing version until after doing usage for --help.
807 (long_options, main, usage): Rename -l/--lowercase option to
808 -f/--fold-case (-f matches sort).
810 Sat Jul 27 04:32:31 1996 Ulrich Drepper <drepper@cygnus.com>
812 * db/makedb.c: New file. Implement program to create simple <db.h>
813 database from textual input. This will be used for nss_db.
815 Sat Jul 27 01:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
817 * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
818 * sunrpc/rpc/pmap_clnt.h: Likewise.
819 * sunrpc/rpc/auth.h: Likewise.
820 * sunrpc/rpc/pmap_rmt.h: Likewise.
821 * sunrpc/rpc/rpc_msg.h: Likewise.
823 Sat Jul 27 04:37:34 1996 Ulrich Drepper <drepper@cygnus.com>
825 * string/string.h (strndupa): Change to use return value of
826 `memcpy' for more performance.
827 * string/strndup.c: Likewise.
829 * string/string.h (strdupa): Don't call __builtin_alloca in argument.
830 This might lead to problems.
831 (strndupa): Likewise.
833 Fri Jul 26 15:24:25 1996 Ulrich Drepper <drepper@cygnus.com>
835 * sunrpc/rpc/auth.h: Add protection against multiple inclusion
836 and change K&R prototypes to ANSI prototypes.
837 * sunrpc/rpc/auth_unix.h: Ditto.
838 * sunrpc/rpc/clnt.h: Ditto.
839 * sunrpc/rpc/pmap_clnt.h: Ditto.
840 * sunrpc/rpc/pmap_prot.h: Ditto.
841 * sunrpc/rpc/pmap_rmt.h: Ditto.
842 * sunrpc/rpc/rpc_msg.h: Ditto.
843 * sunrpc/rpc/svc.h: Ditto.
844 * sunrpc/rpc/svc_auth.h: Ditto.
845 * sunrpc/rpc/xdr.h: Ditto.
847 Fri Jul 26 20:39:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
849 * ctype/test_ctype.c: Test EOF too.
851 Fri Jul 26 18:06:58 1996 Ulrich Drepper <drepper@cygnus.com>
853 * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
854 * sunrpc/rpc/auth_unix.h: Likewise.
855 * sunrpc/rpc/clnt.h: Likewise.
856 * sunrpc/rpc/netdb.h: Likewise.
857 * sunrpc/rpc/pmap_clnt.h: Likewise.
858 * sunrpc/rpc/pmap_prot.h: Likewise.
859 * sunrpc/rpc/rpc_msg.h: Likewise.
860 * sunrpc/rpc/svc.h: Likewise.
861 * sunrpc/rpc/svc_auth.h: Likewise.
862 * sunrpc/rpc/xdr.h: Likewise.
864 * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
866 * sunrpc/pmap_rmt.c: ...here.
868 Fri Jul 26 16:10:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
870 * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
872 * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
875 Fri Jul 26 00:36:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
877 * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
878 <kkojima@info.kanagawa-u.ac.jp>.
880 Fri Jul 26 04:41:28 1996 Ulrich Drepper <drepper@cygnus.com>
882 * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
883 defined, not __OPTIMIZED.
884 (_nl_msg_cat_cntr): Move declaration outside macro definition
885 to prevent "nested extern" warning.
886 (dcgettext): Rename local variable `result' to `__result'.
888 Thu Jul 25 22:46:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
890 * locale/programs/localedef.c (__progname): Remove decl.
891 (main): Use program_invocation_short_name instead of __progname.
892 (usage): Use program_invocation_name instead of __progname.
894 Fri Jul 26 03:46:08 1996 Ulrich Drepper <drepper@cygnus.com>
896 * catgets/gencat.c: Use "libc" instead of PACKAGE.
897 * locale/localedef.c: Ditto.
898 * locale/locale.c: Ditto.
900 * locale/findlocale.c (_nl_find_locale): Little optimization.
901 Use new function `strndup'.
903 * locale/loadlocale.c: Little optimization. Use constant value
904 from `_nl_category_num_items' instead of byte-order dependend
907 * locale/programs/ld-time.c (time_add): Correct string constant.
909 * locale/programs/locale-spec.c: New file.
910 * locale/programs/locale.c: Call `locale_special' function if
911 no other field matches.
913 * locale/programs/localedef.c: No need to define `program_name'.
914 Use global variable `__progname'.
916 * locale/programs/locfile.c (write_locale_data): Always write
917 LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file. This is
918 necessary since message catalogs are also installed in the
919 LC_MESSAGES/ directory.
921 * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
922 function instead of writing single bytes.
923 (encode_char): Also handle little endian.
925 * locale/setlocale.c (new_composite_name): Little optimization.
926 Use return value of `memcpy'.
928 * misc/ttyent.h: Pretty print prototypes, add missing parameter
929 names, prepend parameter names with __ and use `__const' instead
931 * posix/unistd.h: Ditto.
932 * stdlib/stdlib.h: Ditto.
933 * string/string.h: Ditto.
935 * posix/getconf.c: De-ASNI-fy. Recognize POSIX.2 constant names.
936 Use `error' function instead of doing it by hand.
937 * sysdeps/posix/sysconf.c: De-ANSI-fy.
938 Handle _SC_COLL_WEIGHTS_MAX.
939 * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
940 _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
941 since these do depend on the platform.
944 * posix/posix2_lim.h: Add missing definition of
945 _POSIX2_COLL_WEIGHTS_MAX.
946 Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
947 to high values since we have no fixed limit.
949 * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
950 _SC_PAGESIZE for buggy systems (= HP UX) out there.
952 * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
953 * wcsmbs/mbsnrtowcs.c: New file. Non-standard implementation.
954 * wcsmbs/wcsnrtombs.c: Ditto.
955 * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
958 Thu Jul 25 00:25:54 Richard Henderson <rth@tamu.edu>
960 * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
962 * nss/getXXent_r.c: Likewise.
963 * nss/nsswitch.c: Likewise.
964 * nss/nss_files/files-XXX.c: Likewise.
965 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
966 * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
967 * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
969 Thu Jul 25 00:53:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
971 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
972 macro, now put the needed Linux version just once, here; update to
973 needing linux-2.0.3 headers.
974 (libc_cv_linuxVER): New macro derived from that.
975 (kernel header check): Use those macros and some m4 magic to replace
976 hard-coded `201' and `2.0.1' in several places.
978 * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
980 Wed Jul 24 17:02:30 1996 Ulrich Drepper <drepper@cygnus.com>
982 * time/localtime.c: Move lock variable declaration to end of
983 variable declarations since if is a dummy macro the ; at the
984 end terminates the variable section of the function.
986 * time/tzset.c: Undefine `tzset' before function declaration.
987 Use `weak_function' macro instead of `weak_symbol'.
989 Wed Jul 24 18:57:33 1996 Ulrich Drepper <drepper@cygnus.com>
991 * stdlib/strtouq.c: Additional weak alias is `strtoull', not
994 Wed Jul 24 18:26:23 1996 Ulrich Drepper <drepper@cygnus.com>
996 * locale/C-ctype.c: Increment number of fields after change
997 from Wed Jun 19 03:24:58 1996.
999 Tue Jul 23 18:13:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1001 * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
1002 ($(common-objpfx)libc.so): Move deps into that, use it.
1003 [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
1004 $(rpcuserlibs:.so=_pic.a).
1005 * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
1008 Thu Jul 18 21:41:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1010 * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
1011 n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
1013 Tue Jul 23 02:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
1015 * locale/iso-4217.def: Add India to comment for symbol "INR ".
1016 Reported by Raja R Harinath <harinath@cs.umn.edu>.
1018 Sat Jul 20 14:03:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1020 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
1023 Sun Jul 21 06:48:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1025 * time/tzset.c: Include <libc-lock.h>.
1026 (__tzset_lock): New lock variable.
1027 (tzset): New function (weak defn), no longer weak alias for __tzset.
1028 Call __tzset while holding __tzset_lock.
1029 * time/localtime.c: Include <libc-lock.h>.
1030 (__localtime_r): Hold __tzset_lock while doing the work.
1032 * sysdeps/generic/setenv.c (__environ): Change conditional for #define
1033 from [!HAVE_GNU_LD] to [!_LIBC].
1034 [_LIBC]: Include <libc-lock.h> and define a lock.
1035 (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
1036 (setenv, unsetenv): Use them.
1038 Sun Jul 21 01:44:39 1996 Miles Bader <miles@gnu.ai.mit.edu>
1040 * locale/programs/locfile.c (write_locale_data): Deal with missing
1043 * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
1044 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
1046 Sat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1048 Win32 hacks from <Rob_Tulloh@tivoli.com>.
1049 * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
1050 use void * for my_realloc; include <malloc.h> for alloca.
1051 (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
1052 * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
1053 * posix/glob.h: Likewise.
1055 Sat Jul 20 13:28:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
1057 * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
1058 call __io_select unless there's only a single descriptor, as each
1059 descriptor now has its own reply port.
1060 If there is only a single descriptor, just use its reply port for
1061 everything and don't bother creating the port set.
1063 * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
1064 <unistd.h>: New include.
1066 * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
1069 Sat Jul 20 07:15:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1071 * crypt/Makefile, crypt/nocrypt.c: Removed. It is illegal to export
1072 from the USA any software that even makes it easy to drop in an
1073 encryption module of foreign origin.
1074 * Makerules (cryptobjdir): Variable removed.
1075 ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
1076 * Makefile (subdirs): Remove crypt.
1078 Fri Jul 19 15:45:20 1996 Ulrich Drepper <drepper@cygnus.com>
1080 * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
1081 operator to yesexpr and noexpr string.
1083 Fri Jul 19 15:10:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
1085 * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
1086 old code would have failed on a big-endian 64-bit architecture).
1087 * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
1089 * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
1090 (xdr_u_long): Use switch instead of chain of if-statements.
1091 Remove gratitous parentheses around return expressions.
1092 (xdr_enum): Open code case where INT_MAX<LONG_MAX.
1094 * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
1096 * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
1099 Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1101 * dlfcn.h, db.h: New wrapper headers.
1103 * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
1104 for `struct stat;' forward decl.
1106 Fri Jul 19 22:25:19 1996 Ulrich Drepper <drepper@cygnus.com>
1108 * locale/iso-4217.def: Add some more standardized currency
1111 Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1113 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
1115 Thu Jul 18 12:33:57 1996 Roland McGrath <roland@baalperazim.frob.com>
1117 * Rules (dummy.o, empty.o): Targets removed.
1118 (dummy.c, empty.c): New targets replace them.
1120 Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1122 * crypt/Makefile (lib-noranlib): Depend on
1123 $(objpfx)libcrypt.so$(libcrypt.so-version).
1126 Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
1128 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
1129 check. mib's clueless hacking broke it.
1131 Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1133 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
1135 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
1137 * misc/sys/ustat.h: New file.
1138 * misc/ustat.h: Ditto.
1139 * sysdeps/generic/ustatbits.h: Ditto.
1140 * sysdeps/stub/ustat.c: Ditto.
1141 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
1142 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
1144 (routines): Mention ustat.
1146 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
1147 * sysdeps/alpha/elf/start.S: here.
1149 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
1150 alphabetically correct place. Mention ustat.
1152 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
1153 common symbol (makes errno accessible from gdb).
1155 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
1158 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
1159 record always gets appended at end of file (wtmp is a log file,
1160 after all). Set ut_type to DEAD_PROCESS if name is empty.
1162 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
1163 separate loop from search for UT_ID. Fix code so it is in
1164 sync with Unix man page.
1166 * login/getutline_r.c (getutline_r): Stop searching only if
1167 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
1169 Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
1171 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
1172 avoid duplicate declarations.
1174 Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
1176 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
1177 and alpha-gnu-linuxecoff targets.
1179 Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
1181 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
1183 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
1185 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
1188 * resolv/res_comp.c (res_hnok): Use empty statement in place
1189 of NULL (which generates a "useless expression" warning in
1192 Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
1194 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
1195 with $(..) in output.
1197 Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1199 * elf/Makefile (dl-routines): Add dl-cache.
1200 * elf/dl-cache.c: New file.
1201 * elf/dl-load.c (_dl_map_object): Check cache before default path.
1203 Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
1205 * stdio-common/vfscanf.c: Major change. Now read character
1206 from stream only if needed. Before it was read after the
1207 previous character was used.
1208 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
1210 * stdio-common/tstscanf.c: Change test program so that return
1211 value is != 0 if one test failed.
1213 Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1215 * sysdeps/m68k/Makefile (crypt): Variable removed.
1216 * sysdeps/sparc/Makefile: Likewise.
1218 * version.h (VERSION): Update to 1.93.
1220 * Makerules ($(libdir)/libc.so): Depend on
1221 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
1223 * crypt/nocrypt.c: New file.
1224 * Makefile (subdirs): Add crypt.
1225 * crypt/Makefile: New file.
1227 * Makerules (soversions.mk): Move this target, include of it, and
1228 include of version.mk to ...
1229 * Makeconfig: ... here.
1230 (soversions.mk): Depend on Makeconfig instead of Makerules.
1232 * shlib-versions (*-*-*): Set libcrypt=0.
1234 Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
1236 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
1237 word extends right up to rmargin.
1239 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
1240 output the wrap margin, set point_col to wmargin.
1241 Use negative point_col to deal with a wmargin of 0.
1242 (line_wrap_point): Return 0 for a negative point_col.
1243 (line_wrap_stream): Make wmargin ssize_t.
1244 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
1246 (line_wrap_stream): Make wmargin ssize_t.
1247 (line_wrap_point): Return 0 for a negative point_col.
1249 Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1251 * shlib-versions (*-*-gnu*): Set libc=0.0
1253 Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1255 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
1256 sysdeps/i386/dl-machine.h.
1258 Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
1260 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
1261 to fiddle __put_limit in conjunction with __linebuf_active.
1263 Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1265 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
1266 to the strong name, not the file name.
1268 Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1270 * csu/initfini.c: More magic. Detect if .end is produced and put it
1271 in the output iff the compiler does.
1273 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
1274 because that is broken on alpha.
1276 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
1279 * Makerules (make-link): Install the new link with atomic mv -f in
1280 case ln itself requires the library being installed.
1282 Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
1284 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
1285 i386/dl-machine.h of 960713.
1287 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
1288 (_dl_sysdep_read_whole_file): Fix result variable declaration.
1290 Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1292 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
1295 Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
1297 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
1298 with pointer to local variable instead of NULL.
1300 1996-07-15 Paul Eggert <eggert@twinsun.com>
1302 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
1304 Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1306 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
1307 that are already added by other means.
1309 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
1310 caller column to get those syscalls added automagically.
1312 Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
1314 * login/logout.c (logout): Initialize DATA to a state that will
1315 make setutent_r happy.
1317 Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1319 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
1320 instead of setting the DT_DEBUG pointer.
1322 * csu/initfini.c (_init, _fini): Generate .end directives after
1323 standalone prologues and filter them out from epilogues.
1325 * Makeconfig (rtld-installed-name): Set to ld.so.1.
1326 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
1329 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
1331 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
1333 * MakeTAGS (extract): Pass --add-comments=TRANS.
1334 * sysdeps/gnu/errlist.awk: Write comments into the output with the
1335 descriptive paragraphs from the manual preceded by TRANS.
1337 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
1338 (_dl_start): Move RESOLVE defn inside this function and #include
1339 "dynamic-link.h" a second time there.
1340 [RTLD_START]: Move use of this after _dl_start function.
1342 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
1344 * elf/rtld.c: Include <string.h>.
1346 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
1347 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
1348 Conditionalize defns on [RESOLVE].
1349 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
1350 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1351 Instead use RESOLVE macro with same args.
1352 (elf_machine_rel): Conditionalize defn on [RESOLVE].
1353 * elf/dl-reloc.c (RESOLVE): New macro, define before including
1354 "dynamic-link.h". It replaces `resolve' local function.
1355 * elf/dl-runtime.c: Likewise.
1356 * elf/rtld.c: Likewise.
1358 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
1360 * elf/dl-open.c (_dl_open): Force an indirect call for
1361 _dl_relocate_object so there is no chance a PLT fixup will be done
1362 and clobber _dl_global_scope before our call happens.
1364 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
1365 to =t; must operate on top of fp reg stack, not second from top.
1366 Correct input constraint to 0 from t; must be explicit when input and
1367 output are the same register.
1368 (floor): Use __volatile instead of volatile.
1371 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
1374 Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1376 * manual/Makefile (lib): New phony target. Depend on stamp files.
1377 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
1379 1996-07-13 Paul Eggert <eggert@twinsun.com>
1381 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
1382 to match Emacs format-time-string specification.
1383 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
1385 Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1387 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
1388 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
1389 between MAP and its deps.
1390 * elf/link.h: Fix decl.
1391 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
1392 colon-separated list of names, map those and pass vector of ptrs as
1393 PRELOADS list to _dl_map_object_deps.
1394 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
1395 _dl_map_object_deps with empty preload list.
1396 * elf/dl-open.c (_dl_open): Likewise.
1398 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
1400 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
1401 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
1402 Conditionalize defn on [! MAP_ANON].
1403 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
1405 * elf/rtld.c (dl_main): Likewise.
1406 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
1407 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
1409 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
1411 Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
1413 * stdlib/random.c (__random): Declare as int32_t to be in sync
1416 * socket/Makefile (headers): Add socketbits.h.
1418 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
1421 * grp/initgroups.c (initgroups): Add groups that user is a member
1422 of, not the ones he is _not_ a member of.
1424 * nss/nsswitch.c (known_compare): Make known_compare() a static
1425 instead of a local function. The latter are difficult to debug
1426 and slow to execute on certain platforms.
1428 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
1429 place of sizeof (dev). The size of a literal string includes the
1432 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
1434 Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
1436 * misc/mntent.c (addmntent): Seek to end of file before writing
1437 entry. Return 1 on error, not -1.
1439 Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
1441 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
1444 Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
1446 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
1447 shift amount for Jensen must be 5 not 4.
1449 Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1451 * socket/sys/socket.h (struct osockaddr): New type.
1453 Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
1455 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
1456 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
1457 and `long double' versions can be generated.
1458 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
1459 so that included efgcvt{,_r}.c file generate `long double'
1461 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
1464 * manual/startup.texi: Document new getsubopt function.
1465 * manual/examples/subopt.c: New example program for documenting
1468 Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
1470 * stdlib/Makefile (routines): Add getsubopt.
1471 * stdlib/stdlib.h: Add prototype for getsubopt.
1472 * stdlib/getsubopt.c: New file. Implement getsubopt function
1473 to handle suboption parsing.
1475 Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1477 * inet/getnetent_r.c: Define NEED_H_ERRNO.
1478 * inet/getnetbynm_r.c: Likewise.
1479 * inet/getnetent.c: Likewise.
1480 * inet/getnetbyad_r.c: Likewise.
1481 * inet/getnetbyad.c: Likewise.
1482 * inet/getnetbynm.c: Likewise.
1484 * sysdeps/generic/pselect.c: Include <sys/time.h>.
1486 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
1489 * math/Makefile (calls): Add s_frexp, s_ldexp.
1490 (routines): Remove them and &f from here.
1492 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
1494 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
1497 * nss/nss_files/files-XXX.c: Comment fix.
1499 Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
1501 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
1502 of reentrant function.
1503 (setup): Pass additional argument with function name we are
1505 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
1506 new argument {SET,END,GET}FUNC_NAME_STRING.
1508 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
1509 we return a pointer.
1511 Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1513 * nss/nss_files/files-parse.c: Add comment about things to #define.
1515 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
1517 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
1518 terminator char as an error.
1520 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
1522 Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
1524 * catgets/gencat.c (write_out): Move code to determine new
1525 best size out of inner loop.
1527 Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
1529 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
1530 implementation of frexp() function.
1531 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
1532 implementation of ldexp() function.
1534 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
1537 Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
1539 * misc/mntent.c: Include <sys/types.h>.
1540 (endmntent): Return 1 one success, 0 on failure.
1541 (getmntent): Chop newline and ignore empty lines.
1543 Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1545 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
1546 differently based on [RTLD_BOOTSTRAP].
1547 (elf_machine_rela): Use it instead of the fn ptr arg directly.
1549 Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1551 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
1552 __glob_closedir_hook): Remove decls.
1554 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
1556 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
1557 for send and connect syscalls.
1559 * socket/sys/socket.h: New file, taken from non-sysdep parts of
1560 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
1561 Declare __ names for send and connect.
1562 * sysdeps/generic/socketbits.h: New file.
1563 * sysdeps/unix/sysv/linux/socketbits.h: New file.
1564 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
1565 * sysdeps/generic/sys/socket.h: File removed.
1567 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
1568 * sysdeps/mach/hurd/send.c: Likewise.
1570 * sysdeps/mach/libc-lock.h: New file.
1571 * sysdeps/unix/readdir.c: Do locking.
1572 * sysdeps/unix/seekdir.c: Likewise.
1573 * sysdeps/unix/rewinddir.c: Likewise.
1574 * sysdeps/unix/closedir.c: Likewise.
1575 * sysdeps/unix/bsd/telldir.c: Likewise.
1576 * sysdeps/mach/hurd/seekdir.c: Likewise.
1577 * sysdeps/mach/hurd/readdir.c: Likewise.
1578 * sysdeps/mach/hurd/closedir.c: Likewise.
1579 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
1580 * sysdeps/unix/opendir.c: Likewise.
1581 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
1582 (struct __dirstream): Add lock member using __libc_lock_define.
1583 * sysdeps/unix/dirstream.h: Likewise.
1585 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
1587 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
1589 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
1591 Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
1593 * locale/programs/stringtrans.c: Fix typo in copyright.
1595 * stdio-common/printf-prs.c: Add casts to prevent
1596 signed<->unsigned warnings.
1598 * stdio-common/printf-parse.h: Initialize state variable before
1600 * stdio-common/printf-prs.c: Don't initialize state variable here.
1601 * stdio-common/vfprintf.c: Don't initialize state variable.
1602 (vfprintf): While determining length of multibyte string don't
1603 try to be clever in determining characters to use for first
1606 Add real implementation of multibyte<->wide char conversion
1607 functions. The functions always convert between the fixed wide
1608 char format (ISO 10646 in UCS4) and the UTF8 representation of
1609 this character set. Conversion between the currently used
1610 8bit character set and ISO 10646 will not take place. This is
1611 what iconv() is for.
1612 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
1614 Add optimized version of `mbrlen' function.
1615 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
1617 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
1619 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
1620 This is needed in the wchar.h header.
1621 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
1622 encoded character to UCS4.
1623 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
1624 element of `mbstate_t' for initial state.
1625 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
1626 encoded string to UCS4 string.
1627 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
1628 character to UTF8 encoded form.
1629 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
1630 encoded string to UTF8 encoded form.
1632 Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1634 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
1635 variable name, so new a libc with new requirements won't fail to
1636 notice an insufficient Linux version.
1638 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
1640 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
1641 instead of 2.0 headers.
1643 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
1645 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
1646 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
1648 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
1649 before using it in lhs of weak_alias.
1651 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
1652 Call __nss_lookup when not setting STARTP.
1653 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
1654 function-calling loop.
1656 Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
1658 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
1659 PENDIN, NOFLSH): Undefine these at start if they are already
1660 defined to avoid collision with termbits.h.
1661 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
1662 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
1664 Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1666 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
1667 already defined to float, long double. Use those macros for _Mdouble_
1668 defns when including mathcalls.h.
1669 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
1670 -D_Mlong_double_=double.
1672 Add more -lm functions to -lc because ldexp uses them.
1673 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
1674 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
1675 ldexp have both f and l code, and those have f though not l code.
1677 Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
1679 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
1680 error is 0. The "placeholder" entries recently added to
1681 errno.texi convert to zero since `???/' is at the front of them.
1682 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
1684 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
1685 __const to conform with unistd.h.
1687 * stdlib/stdlib.h (random): Declare return type to be int32_t.
1689 * string/argz-delete.c (argz_delete): Use memmove instead of
1690 memcpy for possibly overlapping strings.
1692 Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1694 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
1695 storage class. GCC gives an error for non-extern data defns with the
1698 Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
1700 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
1701 memmove instead of memcpy for possible overlapping strings.
1703 Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1705 * libc-symbols.h (weak_function): New macro.
1706 For GCC 2.7+ define as __attribute__ ((weak)).
1707 * elf/dl-minimal.c: Use weak_function as keyword in function defns
1708 instead of weak_symbol (NAME) after the defn.
1709 * stdlib/strtol.c: Likewise.
1710 * stdlib/strtod.c: Likewise.
1711 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1713 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
1714 If this is defined, don't declare _dl_rtld_map as weak, and
1715 don't check for MAP pointing to it. RESOLVE is always null in this
1716 case, so test with #ifdef instead of if.
1718 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
1720 * csu/initfini.c (_init): Likewise.
1721 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
1722 * misc/efgcvt_r.c: Likewise.
1723 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1724 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1726 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
1727 It was not used in any assembler code.
1728 (weak_symbol_asm): Renamed to weak_extern_asm.
1729 (weak_extern): New macro replaces weak_symbol for weak extern refs;
1730 define to weak_extern_asm for [!ASSEMBLER].
1732 Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1734 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
1735 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
1736 define those now as aliases.
1737 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
1738 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
1739 after GCC weak attribute decl.
1741 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
1742 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
1743 (element printer): Check for elt in ALIAS, instead of special case
1746 * io/Makefile (headers): Add sys/vfs.h.
1747 * io/sys/vfs.h: New file.
1749 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
1750 critical section lock before unlinking dying active resources.
1751 The unlock just before return is right (i.e. old code unlocked twice).
1753 Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
1755 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
1756 Use memmove instead of memcpy where overlap is possible (not
1757 necessary using current implementation of memcpy, but...).
1758 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
1760 Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
1762 * stdio/linewrap.c (lwupdate): New function, mostly was
1763 __line_wrap_update. Use POINT_COL field instead of POINT.
1764 (__line_wrap_output): Use lwupdate.
1765 (__line_wrap_update): New function.
1766 (ensure_unwrapped, ensure_wrapped): New functions.
1767 (line_wrap_set_lmargin, line_wrap_set_rmargin,
1768 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
1770 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
1771 POINT_COL. Add POINT_OFFS field.
1772 (__line_wrap_update): New decl.
1773 (line_wrap_set_lmargin, line_wrap_set_rmargin,
1774 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
1776 Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
1778 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
1780 * login/pututline_r.c (pututline_r): Since we assign RESULT from
1781 lseek now, check that it's >= 0, not == 0.
1783 Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
1785 * login/login.c (login): Make a copy of *UT, fill in various
1786 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
1789 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
1790 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
1792 Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1794 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
1795 signal during critical section doing interruptible RPC, if
1796 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
1797 before thread_resume. If in critical section, pass 0 for SIGNO to
1798 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
1800 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
1802 * sysdeps/unix/sysv/linux/sys/user.h: New file.
1803 * sysdeps/unix/sysv/linux/Dist: Add it.
1804 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
1806 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
1807 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
1808 itself, no need to skip past a NUL.
1810 * nss/nsswitch.h (known_function): Comment fix.
1811 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
1812 directly. Do the lookup and insertion with a single call, and fill in
1813 the tree node afterwards if new.
1814 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
1816 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
1817 (struct timeval): Add bodiless decl for scope.
1819 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
1820 Move struct timespec defn outside [_TIME_H] so it can be got with
1821 #define __need_timespec.
1823 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
1824 for `struct timespec' member names.
1825 (TIMESPEC_TO_TIMEVAL): Likewise.
1827 * nss/Makefile (extra-libs-others): New variable.
1829 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
1830 $(lib) in $(extra-libs-others).
1831 * sunrpc/Makefile (extra-libs-others): New variable.
1832 (librpcsvc-no-lib-dep): Variable removed.
1834 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
1835 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
1837 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
1838 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
1839 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
1840 _dl_rtld_map weak only here.
1842 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
1844 Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
1846 * login/utmp.h: Fix typos.
1848 * misc/syslog.c (vsyslog): Use __send instead of send and
1849 __connect instead of connect to avoid name-space collisions (e.g.,
1852 Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1854 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
1856 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
1858 * malloc/malloc-size.c (malloc_usable_size): Renamed from
1859 malloc_object_allocation_size.
1860 * malloc/malloc.h: Fix decl.
1862 * sys/select.h: New file, wrapper header.
1864 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
1865 fd_set, associated macros, and select decl.
1867 * sysdeps/posix/isfdtype.c: New file.
1869 Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
1871 The latest Japanese proposal for POSIX locales renames the
1872 CHARMAP keyword in locale definition files to CHARCONV.
1873 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
1874 function ctype_is_charmap to ctype_is_charconv.
1875 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
1877 * locale/programs/locfile-token.h: Add definition of token
1879 * locale/programs/locfile.c: Recognize charconv keyword. Rename
1880 lables according to this.
1882 * locale/weight.h (get_weight): Cast constants to prevent
1885 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
1886 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
1889 New stuff described in P1003.1g.
1890 * misc/Makefile (headers): Add sys/select.h.
1891 (routines): Add pselect.
1892 * misc/sys/select.h: New file. Declare select functions and
1893 needed data types and macros.
1894 * sysdeps/generic/pselect.c: New file. Add generic implementation
1895 of pselect() function which uses select().
1897 * posix/getconf.c: Recognize new variables from P1003.1g.
1898 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
1899 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
1900 * posix/unistd.h: Add description of the P1003.1g variables.
1901 * sysdeps/generic/confname.h: Define _SC_* values for new
1903 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
1905 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
1906 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
1908 * sysdeps/stub/sysconf.c (sysconf): Ditto.
1909 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
1910 _POSIX_SELECT since Linux has this.
1912 * socket/Makefile (routines): Add isfdtype.
1913 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
1914 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
1917 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
1919 Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1921 * elf/Makefile (LDFLAGS-dl.so): New variable.
1922 (libdl.so): Depend on eval.so.
1923 (distribute): Add eval.c.
1924 * elf/eval.c: New file.
1926 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
1927 in case it wrote fewer than MAXDIGITS chars.
1929 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
1930 newline from flushing full buffer in loop, fix test so no fflush is
1931 done when last byte written exactly fills the buffer.
1933 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
1935 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
1936 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
1938 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
1939 extracting _dl_rtld_map.l_addr.
1941 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
1943 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1945 * shlib-versions (*-*-*): Set libnss_db=1.
1947 Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1949 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
1951 * rpm/template (%build): Use @prefix@ instead of always /usr.
1952 Set up configparms only if @prefix@ is in fact /usr.
1953 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
1955 * elf/Makefile: Add missing endif.
1957 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
1959 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
1960 (DATABASE): Define this instead of DATAFILE.
1961 * nss/nss_files/files-hosts.c: Likewise.
1962 (hostbyname): Use LOOKUP_NAME macro.
1964 * nss/nss_db/db-XXX.c: New file.
1965 * nss/Makefile (services): Add db.
1966 (libnss_db-inhibit-o): New variable.
1967 (libnss_db-routines): New variable.
1968 (distribute): Append db-XXX.c.
1969 (libnss_db.so): Depend on libdb.so and libnss_files.so.
1970 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
1972 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
1974 (DATAFILE): New macro.
1975 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
1977 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
1978 Pass db key args to DB_LOOKUP.
1979 (DATAFILE): Macro removed.
1980 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
1981 * nss/nss_files/files-service.c: Likewise.
1982 * nss/nss_files/files-pwd.c: Likewise.
1983 * nss/nss_files/files-proto.c: Likewise.
1984 * nss/nss_files/files-grp.c: Likewise.
1985 * nss/nss_files/files-ethers.c: Likewise.
1987 * elf/linux-compat.c: File removed.
1988 * elf/Makefile (distribute): Remove linux-compat.c.
1989 (ld-linux.so.1): Remove target and associated variables.
1991 * sunrpc/xdr.c: Remove malloc decl.
1992 * sunrpc/portmap.c: Likewise.
1994 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
1995 casting abort to fn returning bool_t.
1997 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
1998 the parser function.
1999 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
2000 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
2001 * nss/nss_files/files-grp.c: Likewise.
2003 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
2005 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
2007 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
2008 of ld.so so lookups for that soname find it.
2010 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
2011 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
2013 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
2014 define parse_line function.
2015 (parse_line): #define to _nss_files_parse_pwent and
2016 add extern decl for that.
2018 * nss/nss_files/files-XXX.c (internal_getent): Return
2019 NSS_STATUS_TRYAGAIN for ERANGE error.
2021 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
2022 of null, so next round returns null again instead of bombing. Fix
2025 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
2026 Remove ; after `ENTDATA_DECL (data)'.
2027 Truncate line at strpbrk (line, EOLSET "\n").
2028 (ENTDATA_DECL): Put ; at end.
2029 (MIDLINE_COMMENTS): Macro removed.
2030 * nss/nss_files/files-ethers.c: Pass new argument.
2031 * nss/nss_files/files-hosts.c: Likewise.
2032 * nss/nss_files/files-network.c: Likewise.
2033 * nss/nss_files/files-parse.c: Likewise.
2034 * nss/nss_files/files-proto.c: Likewise.
2035 * nss/nss_files/files-rpc.c: Likewise.
2036 * nss/nss_files/files-service.c: Likewise.
2037 * grp/fgetgrent.c: Likewise.
2038 * pwd/fgetpwent.c: Likewise.
2039 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
2040 fgetpwent.c already defines it.
2041 * nss/nss_files/files-grp.c: Likewise.
2043 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
2044 as well as any matching with l_libname. Fix DT_SONAME lookup to use
2045 string table properly.
2047 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
2048 invoked directly, and l_libname from that if PT_INTERP missing.
2049 Set l_name from l_libname only if not set from argv.
2051 * time/europe, time/northamerica: Updated from ADO 96i.
2053 Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2055 * stdio-common/tst-ungetc.c: Include unistd.h.
2057 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
2059 Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
2061 * hurd/report-wait.c (describe_number): Make I unsigned long.
2063 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
2064 actually found any entry.
2066 * login/pututline_r.c (pututline_r): If not located after any
2067 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
2068 Lock the file before stating.
2070 Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2072 * nss/Makefile (databases): Change host to hosts.
2073 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
2075 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
2077 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
2079 * string/string.h (strndupa): Pass missing arg to strnlen.
2081 * inet/getnetbypt_r.c: Renamed to ...
2082 * inet/getnetbyad_r.c: this; fixed function name.
2083 * inet/getnetbypt.c: Renamed to ...
2084 * inet/getnetbyad.c: this; fixed function name.
2086 Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2088 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
2091 Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
2093 * login/login.c (login): Initialize DATA so that setutent_r will
2094 actually do something.
2096 Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
2098 * resolv/res_hconf.c (strndup): Remove function.
2100 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
2101 using ElfW() instead of Elf32_*.
2103 * sysdeps/unix/sysv/linux/alpha/init-first.h,
2104 sysdeps/unix/sysv/linux/m68k/init-first.h,
2105 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
2106 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
2107 init-first.h to make abstract machine dependent parts of
2110 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
2111 error handling. It's safer that way.
2113 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
2114 Fix by Richard Henderson.
2116 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
2117 typo/extraneous whitespace.
2119 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
2120 determine what integer sizes we're dealing with.
2122 Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
2124 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
2125 check for signal zero, repair logical sense of test by
2126 parenthesizing correctly.
2128 * hurd/hurdsig.c (_hurd_internal_post_signal): In
2129 check-for-pending signals code, release _hurd_siglock before
2130 jumping to deliver_pending.
2132 Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
2134 * configure.in (config_machine): Make ELF the default even for
2135 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
2138 Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2140 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
2141 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
2142 member only #ifdef ENTDATA.
2143 (ENTDATA_DECL): New macro.
2144 (LINE_PARSER): Use it for entdata decl.
2145 (parse_list): Find the space for LIST from DATA->linebuffer instead of
2146 from the input LINE, which might not be writable buffer space.
2147 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
2148 [ENTDATA] (parser_stclass): #define to `static inline'.
2149 [!ENDATA] (parser_stclass): #define to empty.
2150 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
2151 function is exported to -lnss_files users.
2153 * string/strndup.c: Add missing arg.
2155 * string/string.h (strndupa): Likewise.
2156 * string/strndup.c (strndup): Always terminate the string.
2158 Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2160 * stdio/Makefile (routines): Add vscanf.
2161 * stdio-common/Makefile (routines): Remove vscanf.
2162 * stdio-common/vscanf.c: Move to ...
2163 * stdio/vscanf.c: here.
2165 * rpm/Makefile (headers, install-lib, install-lib.so,
2166 versioned, install-bin, install-sbin, install-data,
2167 install-others): Add $(-VARIABLE).
2169 Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2171 * nss/Makefile (databases): New variable.
2172 (routines, libnss_files-routines): Use it.
2173 (subdir-dirs): Compute from $(services).
2175 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
2176 init_module, klogctl): Use EXTRA in the "caller" column so these get
2177 added to unix-extra-syscalls and thus compiled in misc.
2179 * string/Makefile (routines): Add strndup.
2180 * string/strndup.c: New file.
2181 * string/string.h: Declare strndup.
2182 (strndupa): New macro.
2184 * string/string.h: Declare __strdup.
2185 * string/strdup.c: Deansideclized. Define __ name and weak alias.
2187 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
2189 Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
2191 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
2193 * grp/initgroups.c (initgroups): De-ansi-fy.
2194 Move declaration of NGROUPS and GROUPS outside #if so that
2195 the code compiles for NGROUPS_MAX != 0.
2197 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
2198 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
2199 ether_ntoa, ether_ntoa_r, and ether_ntoh.
2200 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
2201 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
2202 inet/ether_ntoh.c: New files. Implementation of functions to
2203 handle Ethernet address to host mapping.
2204 * inet/netinet/ether.h: New file. Declare ether_* functions.
2205 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
2207 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
2208 * nss/Makefile (routines): Add ethers-lookup.
2209 (libnss_files-routines): Add files-ethers.
2211 * nss/getXXent_r.c: Don't define set*ent and end*ent function
2214 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
2215 KEEP_STREAM every time called.
2216 (_nss_files_end): Reset KEEP_STREAM here instead.
2217 (internal_getent): If STREAM == NULL try to open instead of
2219 Use cast to prevent warning.
2220 Terminate read line in case the buffer is too small.
2222 * nss/nss_files/files-ethers.c: New file. Implementation of
2223 Ethernet adress<->hostname lookup through files interface.
2225 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
2226 * stdlib/mbtowc.c: Define based on mbrtowc().
2227 * stdlib/wcstombs.c: Define based on wcsrtombs().
2228 * stdlib/wctomb.c: Define based on wcrtomb().
2230 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
2231 unexpected_sizes_in_xdr_u_int.
2233 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
2234 of `struct ether_addr'.
2235 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
2236 declaration of `struct ether_addr'.
2238 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
2239 * wcsmbs/mbsrtowcs.c: Ditto.
2240 * wcsmbs/wcrtomb.c: Ditto.
2241 * wcsmbs/wcsrtombs.c: Ditto.
2243 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
2245 Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
2247 * hurd/get-host.c <fcntl.h>: New include.
2248 * hurd/set-host.c <fcntl.h>: New include.
2249 (_hurd_set_host_config): Include NEW in args to dir_link.
2250 Return NWROTE, not NREAD.
2252 * sysdeps/mach/hurd/getcwd.c
2253 (_hurd_canonicalize_directory_name_internal): Don't deallocate
2254 DOTID & DOTDEVID until we're finished with them (we need to keep
2255 them at least until we've fetched the next level of id ports, so
2256 that mach will be able to use the same name if they're the same).
2257 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
2258 jumps to errlose, for those places where such cleanup is needed.
2260 Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2262 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
2264 Move DB code into separate -ldb library.
2265 * db/Makefile (extra-libs): New variable, list libdb.
2266 (routines): Renamed to libdb-routines.
2267 * shlib-versions: Add libdb=2.
2269 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
2270 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
2272 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
2273 of strncasecmp. Extend syntax to grok [!foo=bar].
2275 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
2277 * string/string.h: Declare __strncasecmp.
2279 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
2280 (service_alias): Variable removed.
2281 (nss_parse_service_list): New function, broken out of nss_getline.
2282 Remove alias conversion; we will just use symlinks.
2283 (__nss_database_lookup): Take new string arg DEFCONFIG.
2284 If no entry exists, make one with service list parsed from that.
2285 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
2286 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
2287 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
2289 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
2292 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
2294 Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
2296 * locale/programs/locale.c (long_options): Short form of
2297 --version option is `-V'.
2298 (main): Recognize `-V' as option, not `-v'.
2299 Call `usage' instead of printing error message for illegal
2301 (usage): Document `-V'.
2303 Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
2305 * sysdeps/mach/hurd/getcwd.c
2306 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
2307 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
2309 Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2311 * inet/getrpcent.c: Fix macros.
2312 * inet/getrpcent_r.c: Fix macros.
2314 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
2316 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
2318 Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
2320 * catgets/gencat.c (write_out): Use %Zu to print variables of type
2322 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
2323 cast it to (unsigned long) to make it work both on 32 and 64
2326 Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2328 * locale/Makefile (distribute): Add `programs/' prefix to all
2329 files in that directory.
2331 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
2334 * MakeTAGS (sources, headers): Make them simply expanded variables
2335 so that all-dist is expanded before it is changed.
2337 Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2339 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
2340 * Makefile (subdirs): Remove crypt.
2341 * crypt: Directory removed. It will be made an independent library
2344 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
2346 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
2348 * inet/getrpcbynumber.c (BUFLEN): New macro.
2350 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
2352 * Makefile (headers): Add libc-lock.h.
2353 * sysdeps/stub/libc-lock.h: New file.
2355 * inet/getrpcbynumber.c: Remove _r typo.
2357 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
2359 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
2362 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
2363 or doesn't mention DATABASE, use an internal default equivalent to
2364 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
2365 (nss_lookup_function): Call nss_new_service as needed.
2366 (nss_parse_file): Don't bother calling nss_new_service here.
2368 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
2369 * pwd/fgetpwent.c: Likewise.
2371 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
2372 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
2373 * malloc/malloc-size.c: New file.
2374 * malloc/malloc-walk.c: New file.
2376 * malloc/malloc-find.c (malloc_find_object_address): Return null if
2377 PTR is outside the heap.
2379 * elf/dl-load.c (_dl_map_object): If the requested name matches the
2380 soname of a loaded object, use that object.
2382 Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2384 * Makefile (subdirs): Add nss.
2386 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
2387 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
2388 * inet/getrpcbynumber_r.c: New file.
2389 * inet/getrpcbynumber.c: New file.
2390 * inet/getrpcbyname.c: New file.
2391 * inet/getrpcbyname_r.c: New file.
2392 * inet/getrpcent_r.c: New file.
2393 * inet/getrpcent.c: New file.
2394 * nss/rpc-lookup.c: New file.
2395 * nss/nss_files/files-rpc.c: New file.
2396 * nss/Makefile (routines): Add rpc-lookup.
2397 (libnss_files-routines): Add files-rpc.
2398 * sunrpc/Makefile (routines): Remove getrpcent.
2399 * sunrpc/getrpcent.c: File removed.
2401 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
2404 * Makeconfig (rpath-link): Add $(nssobjdir).
2405 (nssobjdir): New variable.
2407 * Makerules: Move shared library building before objects rules, so
2408 versions are known before extra-lib.mk gets included.
2409 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
2411 * pwd/getpwuid.c: Rewritten using nss.
2412 * pwd/getpwnam.c: Likewise.
2413 * pwd/getpwent.c: Likewise.
2414 * grp/getgrnam.c: Likewise.
2415 * grp/getgrgid.c: Likewise.
2416 * grp/getgrent.c: Likewise.
2417 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
2418 * pwd/getpwent_r.c: New file.
2419 * pwd/getpwnam_r.c: New file.
2420 * pwd/getpwuid_r.c: New file.
2421 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
2422 * grp/getgrnam_r.c: New file.
2423 * grp/getgrgid_r.c: New file.
2424 * grp/getgrent_r.c: New file.
2425 * grp/Makefile (routines): Remove grpopen, grpread.
2426 * pwd/Makefile (routines): Remove pwdopen, pwdread.
2427 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
2429 * pwd/fgetpwent.c: Rewritten using files-parse.c.
2430 * grp/fgetgrent.c: Likewise.
2432 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
2433 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
2434 * nss/nss_files/files-grp.c: New file.
2435 * nss/nss_files/files-pwd.c: New file.
2437 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
2439 * nss/nss_files/files-parse.c: New file.
2440 * nss/nss_files/files-XXX.c: New file.
2441 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
2442 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
2443 Rewritten using them.
2445 * nss/Makefile (libnss_files-routines): Remove files-host.
2446 Add files-hosts, files-grp, files-pwd.
2448 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
2450 Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
2452 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2453 A .plt entry now loads the .rela.plt offset directly rather
2454 than making us calculate it.
2456 Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2458 * time/Makefile ($(installed-localtime-file) rule): Do
2459 $(make-target-directory) first.
2461 * resolv.h: Fix wrapper for resolv/resolv.h.
2463 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
2464 Compile dummy file and pass -nostdlib -nostartfiles so as not to
2465 require installed libraries.
2467 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
2470 Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
2472 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
2473 and mapv4v6hostent.h.
2474 (routines): Move res* and gethnamaddr into libresolv-routines.
2475 (libresolv-routines): New variable, put them there.
2476 (extra-libs): New variable, list libresolv.
2477 (CPPFLAGS): Add -D for get*by* to res_get*by*.
2479 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
2481 * inet/herrno.c: New file.
2483 * resolv/res_init.c: Remove res_hconf calls.
2485 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
2486 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
2487 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
2488 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
2489 nss/service-lookup.c: New files. Implementation of name
2490 service switch, following the approach in Solaris.
2491 Interface specification and general structure inspired by Peter
2492 Eriksson <pen@lysator.liu.se>.
2493 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
2494 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
2495 Implementation of libnss_files.so module for file based databases
2497 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
2498 if libnss_dns.so module for DNS name lookup in NSS service.
2500 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
2501 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
2502 Changed to serve as interface to NSS.
2503 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
2504 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
2505 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
2506 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
2507 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
2508 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
2509 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
2510 interfaces to NSS, including reentrant functions.
2512 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
2513 resolv/sethostent.c: Removed: Obsoleted by NSS.
2515 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
2516 gethnamaddr.c. These private functions are now used in more
2519 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
2521 Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2523 * rpm/Makefile ($(config)): Make sure the word list in the for
2524 loop is syntactically non-empty.
2526 Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2528 * Version 1.92 test release.
2530 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
2532 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
2533 to klogctl to match prototype in sys/klog.h.
2535 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
2536 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
2538 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
2539 Remove. Code is now part of __getcwd again. The old function
2540 never really worked for anything but THISDIR==".".
2542 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
2543 only when building ELF version of library.
2545 * libio/libioP.h (_IO_vscanf): Add prototype.
2547 * posix/unistd.h (syscall): Change sysno arg and return value
2550 Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2552 * version.h (VERSION): Updated to 1.92.
2554 * misc/Makefile (headers): Add ar.h.
2555 * misc/ar.h: New file.
2557 * config.make.in (BUILD_CC): New variable.
2558 * configure.in: Check for BUILD_CC if $host != $build.
2560 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
2562 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
2563 (stamp$o files): New targets, create them empty, no deps.
2565 * rpm/template (Source): New field.
2566 (%prep, %build, %install): New sections.
2567 (%files): Add %doc FAQ NEWS NOTES README.
2568 * rpm/rpmrc (builddir): Removed.
2570 Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2572 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
2573 guessing to not assume p_vaddr of first load cmd is zero.
2575 * sysdeps/sparc/elf/start.S: New file.
2576 * sysdeps/sparc/dl-machine.h: New file.
2578 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
2579 only for ?s, not for *s. Fix from Chet Ramey.
2581 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
2582 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
2583 Use __{BEGIN,END}_DECLS.
2584 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
2585 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
2586 New macros, moved here from sysdeps/gnu/utmpbits.h.
2587 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
2588 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
2589 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
2590 Use sizeof instead of UT_*SIZE.
2591 * login/logwtmp.c: Likewise.
2593 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
2595 * version.c (banner): Add trailing newline.
2597 * login/utmp.h: Declare login_tty.
2599 Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
2601 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
2602 Changed to a 12-byte PLT entry to remove dependency on $gp.
2603 Take a new got_addr parameter.
2604 (elf_machine_rela): Pass the new parameter.
2605 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
2606 (RTLD_START): Do normal linkage with program entry.
2608 Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
2610 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
2612 * hurd/getuids.c (getuids): New weak link to __getuids.
2614 Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
2616 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
2617 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
2619 Rename nested function lookup to lookup_op.
2620 (__file_name_lookup, __file_name_lookup_under):
2621 Pass 0 for lookup arg to __hurd_file_name_lookup.
2622 (__file_name_split): Likewise for __hurd_file_name_split.
2623 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
2624 Rename nested function lookup to scan_lookup.
2625 (file_name_path_lookup): Pass 0 for lookup arg to
2626 hurd_file_name_path_lookup.
2627 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
2628 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
2629 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
2630 Add LOOKUP argument.
2631 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
2632 __hurd_file_name_lookup.
2634 Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2636 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
2637 up a huge list just to discard most of it.
2639 * configure.in (sysnames): Avoid fgrep by using the case shell
2642 * Makeconfig (config.status): Fix dependency on Implies files.
2644 Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2646 * math/Makefile (distribute): Add ieee-math.c.
2648 Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
2650 * locale/codeset_name.c: New file. Provide function for information
2651 about currently used character set.
2652 * locale/Makefile (routines): Add codeset_name.
2653 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
2654 * locale/localeinfo.h: Change magic number because of incompatible
2656 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
2657 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
2659 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
2660 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
2662 * locale/setlocale.c (setlocale): Initialize local variables to
2665 Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
2667 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
2669 * locale/programs/locale.c: Include string.h.
2671 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
2672 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
2673 appropriate sign-extension is performed on machines with
2676 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
2677 sizeof(int)<sizeof(long), we need to go through a temporary
2680 * locale/programs/ld-numeric.c: Include <alloca.h>
2682 * libio/stdio.h (__libc_fatal): Add prototype.
2684 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
2687 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
2688 volatile to avoid "might get clobbered by longjmp" warning.
2690 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
2691 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
2692 probability is a sure loser).
2693 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
2695 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
2696 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
2698 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
2699 to be Linux FSSTND compliant.
2701 Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
2703 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
2705 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
2706 sysdeps/unix/sysv/linux/alpha/brk.S,
2707 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
2708 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
2709 sysdeps/unix/sysv/linux/alpha/llseek.S,
2710 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
2711 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
2712 __syscall_error to avoid intruding application name space.
2714 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
2715 to SYS_get?id so that syscall stubs in sysdeps/unix define
2716 these syscalls in terms of getxpid/getxuid/getxgid.
2718 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
2719 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
2720 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
2721 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
2723 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
2724 (PSEUDO_END): Rename END() to PSEUDO_END().
2726 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
2727 to PSEUDO_END to improve branch-prediction. Include .frame
2728 directive to make syscalls debugabble.
2729 (PSEUDO_END): New macro.
2731 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
2732 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
2733 latter is illegal under DEC Unix.
2735 * sysdeps/unix/alpha/sysdep.S: Renamed from
2736 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
2738 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
2739 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
2740 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
2742 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
2743 address register in the .frame directive.
2745 * sysdeps/alpha/copysign.c: Remove.
2747 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
2748 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
2750 * errno.h: Move __END_DECLS to correct place to make file
2751 compilable under c++.
2753 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
2754 d_ino only if <direntry.h> hasn't defined d_fileno.
2756 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
2757 arguments to weakext to make .weakext detection work on ECOFF systems.
2759 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
2760 that _validuser() has been replaced by __ivaliduser().
2762 Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
2764 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
2765 as unsigned long, not as int (to avoid incorrect int->long
2770 See ChangeLog.5 for earlier changes.