1 Tue Aug 6 01:13:56 1996 Ulrich Drepper <drepper@cygnus.com>
3 Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
4 This requires to rename several functions to use __ protected
6 * dirent/dirent.h: Add prototypes of __opendir, __closedir,
8 * sysdeps/mach/hurd/closedir.c: Prepend function name with __
9 and make old name a weak alias.
10 * sysdeps/mach/hurd/getrlimit.c: Likewise.
11 * sysdeps/mach/hurd/opendir.c: Likewise.
12 * sysdeps/mach/hurd/readdir.c: Likewise.
13 * sysdeps/stub/closedir.c: Likewise.
14 * sysdeps/stub/opendir.c: Likewise.
15 * sysdeps/stub/readdir.c: Likewise.
16 * sysdeps/unix/closedir.c: Likewise.
17 * sysdeps/unix/opendir.c: Likewise.
18 * sysdeps/unix/readdir.c: Likewise.
20 * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
22 * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
23 `__closedir' instead of unprotected names.
25 * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
26 instead of `isatty' since later is not part of ISO C.
27 * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
28 `open' since later is not part of ISO C.
30 * login/endutent.c (endutent): Call `__endutent_r', not
32 * login/endutent_r.c: Rename defined function to `__endutent_r',
33 make `endutent_r' weak alias.
34 * login/getutent.c (getutent): Call `__getutent_r', not
36 * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
37 * login/getutid_r.c: Rename defined function to `__getutent_r',
38 make `getutent_r' weak alias.
39 * login/getutline.c (getutline): Call `__getutline_r', not
41 * login/getutline_r.c: Rename defined function to `__getutline_r',
42 make `getutline_r' weak alias.
43 * login/pututline_r.c: Rename defined function to `__pututline_r',
44 make `pututline_r' weak alias.
45 * login/setutent.c (setutent): Call `__setutline_r', not
47 * login/setutent_r.c: Rename defined function to `__setutline_r',
48 make `setutline_r' weak alias.
49 Rename `utmpname' to `__utmpname' and make former weak alias.
50 (__utmpname): Call `__strdup', not `strdup'.
51 * login/utmp.h: Add prototypes for name space clean reentrant
53 * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
54 and `__endutent_r' instead of unprotected names.
56 * math/math.h: Add prototype for `__matherr'.
57 * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
60 * nss/getXXbyYY.c: Call __ protected reentrant function.
61 * nss/getXXent.c: Likewise.
62 * nss/getXXbyYY_r.c: Define `get*' function with __ protected
63 name. Make usual name a weak alias.
64 * nss/getXXent_r.c: Likewise.
66 * posix/unistd.h: Add prototype for `__ttyname_r'.
67 * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
68 and make `ttyname_r' a weak alias.
70 * resource/sys/resource.h: Add prototype for `__getrlimit'.
71 * sysdeps/stub/getrlimit.c: Prepend function name with __
72 and make old name a weak alias.
73 * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
74 and make `getrlimit' weak alias.
76 * libc/stdio/stdio.h: Add prototype for `__vscanf'.
77 * libc/stdio/vscanf.c: De-ANSI-fy.
78 Rename function to `__vscanf' and make `vscanf' a weak alias.
79 * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
82 * stdio-common/reg-printf.c: De-ANSI-fy.
83 Rename function to `__register_printf_function' and make
84 `register_printf_function' weak alias.
86 * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
89 * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
90 * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
91 * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
92 * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
93 * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
95 * wcsmbs/mbsrtowcs.c: Likewise.
96 * wcsmbs/wcrtomb.c: Likewise.
97 * wcsmbs/wcsrtombs.c: Likewise.
98 * wcsmbs/wchar.h: Add prototypes for __ protected versions.
100 * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
101 instead of `sigprocmask'.
104 * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
105 version getgrent_r, getgrgid_r, and getgrnam_r.
106 * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
107 version getpwent_r, getpwuid_r, getpwnam_r and __ protected
109 * resolv/netdb.h: Complete rewrite. No more BSD ugliness.
112 * misc/error.c (private_strerror): Translate messages from table,
115 * io/fcntl.h: Pretty printing.
116 * misc/fstab.h: Likewise.
117 * misc/ttyent.h: Likewise.
118 * resource/sys/resource.h: Likewise.
119 * string/argz.h: Likewise.
120 * string/envz.h: Likewise.
122 Add support for symbols from POSIX.1c (POSIX threads).
123 * posix/getconf.c: Handle new sysconf symbols.
124 * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
125 _POSIX_LOGIN_NAME_MAX with minimal maximal values.
126 * sysdeps/generic/confname.h: Define new symbols.
127 * sysdeps/posix/sysconf.c: Handle new symbols.
128 * sysdeps/stub/sysconf.c: Ditto.
129 * sysdeps/unix/sysv/linux/sysconf.c: Removed. Generic version
132 * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
135 * sysdeps/generic/resourcebits.h: Add macro definition for
136 RLIMIT_* values. Some sources test using #ifdef whether specific
138 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
139 * sysdeps/unix/sysv/linux/resourcebits.h: Removed. We need
140 separate files for the architectures.
141 * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
142 * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
143 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
144 * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
146 * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
147 and only default on `OPEN_MAX'.
148 * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed. Default is already
151 * time/Makefile (routines): Add ctime_r.
152 * time/asctime.c: Add implementation of `asctime_r'. Make
153 `asctime' implementation based on reentrant version.
154 * time/ctime_r.c: New file.
155 * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
158 Sat Aug 3 18:41:36 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
160 * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
161 (_nl_C_LC_CTYPE): Fix ordering.
162 * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
165 Sat Aug 3 12:31:06 1996 Richard Henderson <rth@tamu.edu>
167 * csu/initfini.c: Discover the maximum alignment generated by the
168 compiler when emitting a function.
169 (_init): Make sure the end of the crti fragment is aligned.
172 Fri Aug 2 03:12:40 1996 Ulrich Drepper <drepper@cygnus.com>
174 * initfini.c: (__libc_is_static): New variable. Will be
175 initialized in init-first.c. Some actions in the libc work
176 different when libc is static or dynamic.
178 * sysdeps/unix/sysv/linux/init-first.c (init): Use
179 `__libc_is_static' variable to determine whether call to
180 `personality' and `setfpucw' is necessary. When done set variable
181 to +-1 depending on library type.
183 * locale/setlocale.c (setlocale): Use global variable
184 `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
185 determine whether it's a SET[UG]ID program.
187 Fri Aug 2 14:40:22 1996 Roland McGrath <roland@fast.cs.utah.edu>
189 * Version 1.93 test release.
191 * manual/Makefile: Use -include for chapters-incl too.
193 * Makeconfig (+link): Add back start.o, mistakenly removed in last
196 Fri Aug 2 01:04:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
198 * nss/Makefile (generated): Add db-*.c.
200 * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
203 * configure.in (--enable-add-ons): Quote m4 macro args.
205 * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
207 Thu Aug 1 14:40:03 1996 Roland McGrath <roland@fast.cs.utah.edu>
209 * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
211 * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
213 * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
216 * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
217 warning when inline function is elided.
218 * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
219 (elf_machine_runtime_setup): Likewise.
220 * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
221 * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
222 (elf_machine_load_address): Likewise.
224 * catgets/gencat.c: Include <locale.h>.
226 * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
228 * login/logwtmp.c (logwtmp): Call time, not __time.
230 * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
231 * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
232 * login/logwtmp.c (logwtmp): Likewise.
234 * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
235 comparing ioctl macro values.
237 * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
239 * manual/Makefile: Use -include for chapters to suppress warning.
241 * sysdeps/stub/socket.c: Fix type of TYPE arg.
242 * sysdeps/stub/socketpair.c: Likewise.
244 * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
246 * sysdeps/generic/sysdep.h: New file, broken out of ...
247 * sysdeps/unix/sysdep.h: ... here.
248 (C_LABEL): Moved out.
250 * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
251 stick to sed. Do `exit 0' at end because while returns nonzero.
253 * sysdeps/i386/sysdep.h: New file, broken out of ...
254 * sysdeps/unix/i386/sysdep.h: ... here. Generic asm macros moved out.
256 * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
257 They are defined unconditionally in libio/stdio.h.
259 * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
260 * elf/dl-cache.c: Likewise.
262 Mon Jul 29 19:20:05 1996 Ulrich Drepper <drepper@cygnus.com>
264 * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
265 (sysdep_headers): Add sys/sysmacros.h.
266 * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
268 Wed Jul 31 14:21:36 1996 Ulrich Drepper <drepper@cygnus.com>
270 * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
271 tcgetattr. We have weak aliases now.
272 * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
273 "optimizations" for random functions.
275 Mon Jul 29 20:33:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
277 * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
278 htons) [__BIG_ENDIAN]: #undef them before defining to avoid
279 redefinition warning.
281 Mon Jul 29 20:28:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
283 * time/time.h: Don't optimize tzset() to __tzset() which bypasses
286 Tue Jul 30 15:14:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
288 * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
291 Tue Jul 30 02:48:28 1996 Ulrich Drepper <drepper@cygnus.com>
293 * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
295 Reported by Richard Henderson <rth@tamu.edu>.
297 Tue Jul 30 15:04:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
299 * locale/programs/ld-collate.c (collate_output): Fix typo reported by
302 Tue Jul 30 13:23:13 1996 Ulrich Drepper <drepper@cygnus.com>
304 * locale/setlocale.c (setlocale): Don't try to free C locale
306 Reported by Matthias Urlichs.
308 Tue Jul 30 14:35:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
310 * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
311 (open_file): New function, contents mostly from __open.
312 (_dl_sysdep_read_whole_file): New function.
314 Sat Jul 27 11:23:59 1996 Miles Bader <miles@gnu.ai.mit.edu>
316 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
317 `..' dots in sed search string.
319 Mon Jul 29 01:27:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
321 * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
324 Sun Jul 28 23:46:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
326 * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
327 in those directories.
328 * config.make.in (add-ons): New varaible, set from @subdirs@.
329 * Makefile (subdirs): Added $(add-ons) at the end.
331 * time/strftime.c (strftime: do_number): Initialize PRINTED to
332 MAXDIGITS in case P is null and so sprintf is never actually called.
334 Mon Jul 29 02:46:23 1996 Ulrich Drepper <drepper@cygnus.com>
336 Add support for the to-be-written internationalized regexp.
337 This code must be able to use collation symbols and collation
339 * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
340 _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
341 New global variables for collation classes.
342 * locale/categories.def: Add new descriptions for collation symbols
343 and collation classes.
344 * locale/langinfo.h: Add constants for collation symbols and
346 * locale/lc-collate.c: Add new global variables for collation symbols
347 and collation classes.
348 (_nl_postload_collate): Initialize new variables.
349 * locale/programs/ld-collate.c: Add code to emit tables for
350 collation symbols and collation classes.
351 * locale/programs/locales.h: Change prototype for `collate_output'.
352 * locale/programs/locfile.c (write_all_categories): Call
353 `collate_output' with new argument.
354 * locale/localeinfo.h: Add declaration for new global vars.
355 (union locale_data_value): New member wstr for `wchar_t' strings.
356 * locale/programs/locale-spec.c: Handle `collate-classes'
357 keyword and print information about available collation classes.
358 * locale/strlen-hash.h: New file. Simple hashing function which
359 takes a string with known length.
360 * locale/Makefile (distribute): Add strlen-hash.h.
361 (locale-modules): New var. Additional files for `locale' program.
363 * locale/C-ctype.c: Rewrite to avoid using string for giving values
364 which are of type `u_int32_t'.
365 Correct entry for EOF in toupper and tolower tables.
367 * locale/loadlocale.c (_nl_load_locale): Add cast to prevent
370 * locale/programs/ld-ctype.c (ctype_output): Add code to make
371 sure that all tables in binary file are words aligned.
373 * locale/programs/locfile.c (write_locale_data): Correct handling
374 of LC_MESSAGES locale. Create directory if necessary.
376 * locale/setlocale.c (setlocale): Add cast to avoid warning.
378 * string/string.h: Add prototype for `__strndup'.
380 Wed Jul 24 19:10:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
382 * wcsmbs/mbrtowc.c: Remove unused variable.
384 Sun Jul 28 22:40:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
386 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
387 2.0.10; some problems were reported with an earlier version, and this
388 one is known to work.
390 * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
391 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
393 Sat Jul 27 13:02:09 1996 Ulrich Drepper <drepper@cygnus.com>
395 * elf/rtld.c (dl_main): Ignore arguments when environment variable
396 LD_TRACE_LOADED_OBJECTS is set.
398 Sun Jul 28 19:42:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
400 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
401 __libc_enable_secure instead of _dl_secure.
402 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
403 * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
405 * elf/Makefile (routines): Add enbl-secure.
406 (elide-routines.so): Here too.
407 * sysdeps/generic/enbl-secure.c: New file.
408 * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
409 * elf/dl-support.c (_dl_secure): Variable removed.
410 * elf/rtld.c: Likewise. Replace all uses with __libc_enable_secure.
412 Sun Jul 28 19:26:40 1996 David S. Miller <dm@neteng.engr.sgi.com>
414 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
415 Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
416 compiler doesn't elide it.
417 (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
419 Sat Jul 27 02:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
421 * elf/rtld.c (dl_main): Take new option --verify when run directly.
422 In verify mode, exit with status zero iff the argument object's
423 PT_INTERP matches argv[0].
424 * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
425 exits with zero status. This makes `ldd' secure again.
427 Fri Jul 26 22:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
429 * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
430 environment variable handling. This makes the dynamic linker
431 only print loaded libraries and quit.
433 * elf/ldd.sh.in: Don't use `rtld --list' but instead
434 LD_TRACE_LOADED_OBJECTS environment variable to print needed
437 Sat Jul 27 02:03:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
439 * db/makedb.c (main): Print version on stdout, not stderr. Don't exit
440 after printing version until after doing usage for --help.
441 (long_options, main, usage): Rename -l/--lowercase option to
442 -f/--fold-case (-f matches sort).
444 Sat Jul 27 04:32:31 1996 Ulrich Drepper <drepper@cygnus.com>
446 * db/makedb.c: New file. Implement program to create simple <db.h>
447 database from textual input. This will be used for nss_db.
449 Sat Jul 27 01:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
451 * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
452 * sunrpc/rpc/pmap_clnt.h: Likewise.
453 * sunrpc/rpc/auth.h: Likewise.
454 * sunrpc/rpc/pmap_rmt.h: Likewise.
455 * sunrpc/rpc/rpc_msg.h: Likewise.
457 Sat Jul 27 04:37:34 1996 Ulrich Drepper <drepper@cygnus.com>
459 * string/string.h (strndupa): Change to use return value of
460 `memcpy' for more performance.
461 * string/strndup.c: Likewise.
463 * string/string.h (strdupa): Don't call __builtin_alloca in argument.
464 This might lead to problems.
465 (strndupa): Likewise.
467 Fri Jul 26 15:24:25 1996 Ulrich Drepper <drepper@cygnus.com>
469 * sunrpc/rpc/auth.h: Add protection against multiple inclusion
470 and change K&R prototypes to ANSI prototypes.
471 * sunrpc/rpc/auth_unix.h: Ditto.
472 * sunrpc/rpc/clnt.h: Ditto.
473 * sunrpc/rpc/pmap_clnt.h: Ditto.
474 * sunrpc/rpc/pmap_prot.h: Ditto.
475 * sunrpc/rpc/pmap_rmt.h: Ditto.
476 * sunrpc/rpc/rpc_msg.h: Ditto.
477 * sunrpc/rpc/svc.h: Ditto.
478 * sunrpc/rpc/svc_auth.h: Ditto.
479 * sunrpc/rpc/xdr.h: Ditto.
481 Fri Jul 26 20:39:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
483 * ctype/test_ctype.c: Test EOF too.
485 Fri Jul 26 18:06:58 1996 Ulrich Drepper <drepper@cygnus.com>
487 * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
488 * sunrpc/rpc/auth_unix.h: Likewise.
489 * sunrpc/rpc/clnt.h: Likewise.
490 * sunrpc/rpc/netdb.h: Likewise.
491 * sunrpc/rpc/pmap_clnt.h: Likewise.
492 * sunrpc/rpc/pmap_prot.h: Likewise.
493 * sunrpc/rpc/rpc_msg.h: Likewise.
494 * sunrpc/rpc/svc.h: Likewise.
495 * sunrpc/rpc/svc_auth.h: Likewise.
496 * sunrpc/rpc/xdr.h: Likewise.
498 * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
500 * sunrpc/pmap_rmt.c: ...here.
502 Fri Jul 26 16:10:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
504 * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
506 * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
509 Fri Jul 26 00:36:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
511 * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
512 <kkojima@info.kanagawa-u.ac.jp>.
514 Fri Jul 26 04:41:28 1996 Ulrich Drepper <drepper@cygnus.com>
516 * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
517 defined, not __OPTIMIZED.
518 (_nl_msg_cat_cntr): Move declaration outside macro definition
519 to prevent "nested extern" warning.
520 (dcgettext): Rename local variable `result' to `__result'.
522 Thu Jul 25 22:46:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
524 * locale/programs/localedef.c (__progname): Remove decl.
525 (main): Use program_invocation_short_name instead of __progname.
526 (usage): Use program_invocation_name instead of __progname.
528 Fri Jul 26 03:46:08 1996 Ulrich Drepper <drepper@cygnus.com>
530 * catgets/gencat.c: Use "libc" instead of PACKAGE.
531 * locale/localedef.c: Ditto.
532 * locale/locale.c: Ditto.
534 * locale/findlocale.c (_nl_find_locale): Little optimization.
535 Use new function `strndup'.
537 * locale/loadlocale.c: Little optimization. Use constant value
538 from `_nl_category_num_items' instead of byte-order dependend
541 * locale/programs/ld-time.c (time_add): Correct string constant.
543 * locale/programs/locale-spec.c: New file.
544 * locale/programs/locale.c: Call `locale_special' function if
545 no other field matches.
547 * locale/programs/localedef.c: No need to define `program_name'.
548 Use global variable `__progname'.
550 * locale/programs/locfile.c (write_locale_data): Always write
551 LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file. This is
552 necessary since message catalogs are also installed in the
553 LC_MESSAGES/ directory.
555 * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
556 function instead of writing single bytes.
557 (encode_char): Also handle little endian.
559 * locale/setlocale.c (new_composite_name): Little optimization.
560 Use return value of `memcpy'.
562 * misc/ttyent.h: Pretty print prototypes, add missing parameter
563 names, prepend parameter names with __ and use `__const' instead
565 * posix/unistd.h: Ditto.
566 * stdlib/stdlib.h: Ditto.
567 * string/string.h: Ditto.
569 * posix/getconf.c: De-ASNI-fy. Recognize POSIX.2 constant names.
570 Use `error' function instead of doing it by hand.
571 * sysdeps/posix/sysconf.c: De-ANSI-fy.
572 Handle _SC_COLL_WEIGHTS_MAX.
573 * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
574 _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
575 since these do depend on the platform.
578 * posix/posix2_lim.h: Add missing definition of
579 _POSIX2_COLL_WEIGHTS_MAX.
580 Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
581 to high values since we have no fixed limit.
583 * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
584 _SC_PAGESIZE for buggy systems (= HP UX) out there.
586 * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
587 * wcsmbs/mbsnrtowcs.c: New file. Non-standard implementation.
588 * wcsmbs/wcsnrtombs.c: Ditto.
589 * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
592 Thu Jul 25 00:25:54 Richard Henderson <rth@tamu.edu>
594 * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
596 * nss/getXXent_r.c: Likewise.
597 * nss/nsswitch.c: Likewise.
598 * nss/nss_files/files-XXX.c: Likewise.
599 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
600 * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
601 * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
603 Thu Jul 25 00:53:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
605 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
606 macro, now put the needed Linux version just once, here; update to
607 needing linux-2.0.3 headers.
608 (libc_cv_linuxVER): New macro derived from that.
609 (kernel header check): Use those macros and some m4 magic to replace
610 hard-coded `201' and `2.0.1' in several places.
612 * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
614 Wed Jul 24 17:02:30 1996 Ulrich Drepper <drepper@cygnus.com>
616 * time/localtime.c: Move lock variable declaration to end of
617 variable declarations since if is a dummy macro the ; at the
618 end terminates the variable section of the function.
620 * time/tzset.c: Undefine `tzset' before function declaration.
621 Use `weak_function' macro instead of `weak_symbol'.
623 Wed Jul 24 18:57:33 1996 Ulrich Drepper <drepper@cygnus.com>
625 * stdlib/strtouq.c: Additional weak alias is `strtoull', not
628 Wed Jul 24 18:26:23 1996 Ulrich Drepper <drepper@cygnus.com>
630 * locale/C-ctype.c: Increment number of fields after change
631 from Wed Jun 19 03:24:58 1996.
633 Tue Jul 23 18:13:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
635 * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
636 ($(common-objpfx)libc.so): Move deps into that, use it.
637 [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
638 $(rpcuserlibs:.so=_pic.a).
639 * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
642 Thu Jul 18 21:41:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
644 * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
645 n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
647 Tue Jul 23 02:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
649 * locale/iso-4217.def: Add India to comment for symbol "INR ".
650 Reported by Raja R Harinath <harinath@cs.umn.edu>.
652 Sat Jul 20 14:03:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
654 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
657 Sun Jul 21 06:48:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
659 * time/tzset.c: Include <libc-lock.h>.
660 (__tzset_lock): New lock variable.
661 (tzset): New function (weak defn), no longer weak alias for __tzset.
662 Call __tzset while holding __tzset_lock.
663 * time/localtime.c: Include <libc-lock.h>.
664 (__localtime_r): Hold __tzset_lock while doing the work.
666 * sysdeps/generic/setenv.c (__environ): Change conditional for #define
667 from [!HAVE_GNU_LD] to [!_LIBC].
668 [_LIBC]: Include <libc-lock.h> and define a lock.
669 (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
670 (setenv, unsetenv): Use them.
672 Sun Jul 21 01:44:39 1996 Miles Bader <miles@gnu.ai.mit.edu>
674 * locale/programs/locfile.c (write_locale_data): Deal with missing
677 * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
678 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
680 Sat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
682 Win32 hacks from <Rob_Tulloh@tivoli.com>.
683 * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
684 use void * for my_realloc; include <malloc.h> for alloca.
685 (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
686 * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
687 * posix/glob.h: Likewise.
689 Sat Jul 20 13:28:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
691 * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
692 call __io_select unless there's only a single descriptor, as each
693 descriptor now has its own reply port.
694 If there is only a single descriptor, just use its reply port for
695 everything and don't bother creating the port set.
697 * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
698 <unistd.h>: New include.
700 * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
703 Sat Jul 20 07:15:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
705 * crypt/Makefile, crypt/nocrypt.c: Removed. It is illegal to export
706 from the USA any software that even makes it easy to drop in an
707 encryption module of foreign origin.
708 * Makerules (cryptobjdir): Variable removed.
709 ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
710 * Makefile (subdirs): Remove crypt.
712 Fri Jul 19 15:45:20 1996 Ulrich Drepper <drepper@cygnus.com>
714 * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
715 operator to yesexpr and noexpr string.
717 Fri Jul 19 15:10:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
719 * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
720 old code would have failed on a big-endian 64-bit architecture).
721 * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
723 * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
724 (xdr_u_long): Use switch instead of chain of if-statements.
725 Remove gratitous parentheses around return expressions.
726 (xdr_enum): Open code case where INT_MAX<LONG_MAX.
728 * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
730 * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
733 Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
735 * dlfcn.h, db.h: New wrapper headers.
737 * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
738 for `struct stat;' forward decl.
740 Fri Jul 19 22:25:19 1996 Ulrich Drepper <drepper@cygnus.com>
742 * locale/iso-4217.def: Add some more standardized currency
745 Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
747 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
749 Thu Jul 18 12:33:57 1996 Roland McGrath <roland@baalperazim.frob.com>
751 * Rules (dummy.o, empty.o): Targets removed.
752 (dummy.c, empty.c): New targets replace them.
754 Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
756 * crypt/Makefile (lib-noranlib): Depend on
757 $(objpfx)libcrypt.so$(libcrypt.so-version).
760 Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
762 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
763 check. mib's clueless hacking broke it.
765 Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
767 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
769 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
771 * misc/sys/ustat.h: New file.
772 * misc/ustat.h: Ditto.
773 * sysdeps/generic/ustatbits.h: Ditto.
774 * sysdeps/stub/ustat.c: Ditto.
775 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
776 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
778 (routines): Mention ustat.
780 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
781 * sysdeps/alpha/elf/start.S: here.
783 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
784 alphabetically correct place. Mention ustat.
786 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
787 common symbol (makes errno accessible from gdb).
789 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
792 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
793 record always gets appended at end of file (wtmp is a log file,
794 after all). Set ut_type to DEAD_PROCESS if name is empty.
796 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
797 separate loop from search for UT_ID. Fix code so it is in
798 sync with Unix man page.
800 * login/getutline_r.c (getutline_r): Stop searching only if
801 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
803 Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
805 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
806 avoid duplicate declarations.
808 Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
810 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
811 and alpha-gnu-linuxecoff targets.
813 Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
815 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
817 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
819 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
822 * resolv/res_comp.c (res_hnok): Use empty statement in place
823 of NULL (which generates a "useless expression" warning in
826 Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
828 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
829 with $(..) in output.
831 Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
833 * elf/Makefile (dl-routines): Add dl-cache.
834 * elf/dl-cache.c: New file.
835 * elf/dl-load.c (_dl_map_object): Check cache before default path.
837 Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
839 * stdio-common/vfscanf.c: Major change. Now read character
840 from stream only if needed. Before it was read after the
841 previous character was used.
842 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
844 * stdio-common/tstscanf.c: Change test program so that return
845 value is != 0 if one test failed.
847 Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
849 * sysdeps/m68k/Makefile (crypt): Variable removed.
850 * sysdeps/sparc/Makefile: Likewise.
852 * version.h (VERSION): Update to 1.93.
854 * Makerules ($(libdir)/libc.so): Depend on
855 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
857 * crypt/nocrypt.c: New file.
858 * Makefile (subdirs): Add crypt.
859 * crypt/Makefile: New file.
861 * Makerules (soversions.mk): Move this target, include of it, and
862 include of version.mk to ...
863 * Makeconfig: ... here.
864 (soversions.mk): Depend on Makeconfig instead of Makerules.
866 * shlib-versions (*-*-*): Set libcrypt=0.
868 Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
870 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
871 word extends right up to rmargin.
873 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
874 output the wrap margin, set point_col to wmargin.
875 Use negative point_col to deal with a wmargin of 0.
876 (line_wrap_point): Return 0 for a negative point_col.
877 (line_wrap_stream): Make wmargin ssize_t.
878 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
880 (line_wrap_stream): Make wmargin ssize_t.
881 (line_wrap_point): Return 0 for a negative point_col.
883 Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
885 * shlib-versions (*-*-gnu*): Set libc=0.0
887 Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
889 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
890 sysdeps/i386/dl-machine.h.
892 Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
894 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
895 to fiddle __put_limit in conjunction with __linebuf_active.
897 Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
899 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
900 to the strong name, not the file name.
902 Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
904 * csu/initfini.c: More magic. Detect if .end is produced and put it
905 in the output iff the compiler does.
907 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
908 because that is broken on alpha.
910 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
913 * Makerules (make-link): Install the new link with atomic mv -f in
914 case ln itself requires the library being installed.
916 Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
918 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
919 i386/dl-machine.h of 960713.
921 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
922 (_dl_sysdep_read_whole_file): Fix result variable declaration.
924 Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
926 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
929 Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
931 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
932 with pointer to local variable instead of NULL.
934 1996-07-15 Paul Eggert <eggert@twinsun.com>
936 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
938 Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
940 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
941 that are already added by other means.
943 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
944 caller column to get those syscalls added automagically.
946 Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
948 * login/logout.c (logout): Initialize DATA to a state that will
949 make setutent_r happy.
951 Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
953 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
954 instead of setting the DT_DEBUG pointer.
956 * csu/initfini.c (_init, _fini): Generate .end directives after
957 standalone prologues and filter them out from epilogues.
959 * Makeconfig (rtld-installed-name): Set to ld.so.1.
960 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
963 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
965 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
967 * MakeTAGS (extract): Pass --add-comments=TRANS.
968 * sysdeps/gnu/errlist.awk: Write comments into the output with the
969 descriptive paragraphs from the manual preceded by TRANS.
971 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
972 (_dl_start): Move RESOLVE defn inside this function and #include
973 "dynamic-link.h" a second time there.
974 [RTLD_START]: Move use of this after _dl_start function.
976 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
978 * elf/rtld.c: Include <string.h>.
980 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
981 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
982 Conditionalize defns on [RESOLVE].
983 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
984 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
985 Instead use RESOLVE macro with same args.
986 (elf_machine_rel): Conditionalize defn on [RESOLVE].
987 * elf/dl-reloc.c (RESOLVE): New macro, define before including
988 "dynamic-link.h". It replaces `resolve' local function.
989 * elf/dl-runtime.c: Likewise.
990 * elf/rtld.c: Likewise.
992 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
994 * elf/dl-open.c (_dl_open): Force an indirect call for
995 _dl_relocate_object so there is no chance a PLT fixup will be done
996 and clobber _dl_global_scope before our call happens.
998 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
999 to =t; must operate on top of fp reg stack, not second from top.
1000 Correct input constraint to 0 from t; must be explicit when input and
1001 output are the same register.
1002 (floor): Use __volatile instead of volatile.
1005 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
1008 Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1010 * manual/Makefile (lib): New phony target. Depend on stamp files.
1011 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
1013 1996-07-13 Paul Eggert <eggert@twinsun.com>
1015 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
1016 to match Emacs format-time-string specification.
1017 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
1019 Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1021 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
1022 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
1023 between MAP and its deps.
1024 * elf/link.h: Fix decl.
1025 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
1026 colon-separated list of names, map those and pass vector of ptrs as
1027 PRELOADS list to _dl_map_object_deps.
1028 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
1029 _dl_map_object_deps with empty preload list.
1030 * elf/dl-open.c (_dl_open): Likewise.
1032 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
1034 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
1035 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
1036 Conditionalize defn on [! MAP_ANON].
1037 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
1039 * elf/rtld.c (dl_main): Likewise.
1040 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
1041 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
1043 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
1045 Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
1047 * stdlib/random.c (__random): Declare as int32_t to be in sync
1050 * socket/Makefile (headers): Add socketbits.h.
1052 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
1055 * grp/initgroups.c (initgroups): Add groups that user is a member
1056 of, not the ones he is _not_ a member of.
1058 * nss/nsswitch.c (known_compare): Make known_compare() a static
1059 instead of a local function. The latter are difficult to debug
1060 and slow to execute on certain platforms.
1062 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
1063 place of sizeof (dev). The size of a literal string includes the
1066 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
1068 Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
1070 * misc/mntent.c (addmntent): Seek to end of file before writing
1071 entry. Return 1 on error, not -1.
1073 Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
1075 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
1078 Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
1080 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
1081 shift amount for Jensen must be 5 not 4.
1083 Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1085 * socket/sys/socket.h (struct osockaddr): New type.
1087 Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
1089 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
1090 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
1091 and `long double' versions can be generated.
1092 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
1093 so that included efgcvt{,_r}.c file generate `long double'
1095 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
1098 * manual/startup.texi: Document new getsubopt function.
1099 * manual/examples/subopt.c: New example program for documenting
1102 Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
1104 * stdlib/Makefile (routines): Add getsubopt.
1105 * stdlib/stdlib.h: Add prototype for getsubopt.
1106 * stdlib/getsubopt.c: New file. Implement getsubopt function
1107 to handle suboption parsing.
1109 Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1111 * inet/getnetent_r.c: Define NEED_H_ERRNO.
1112 * inet/getnetbynm_r.c: Likewise.
1113 * inet/getnetent.c: Likewise.
1114 * inet/getnetbyad_r.c: Likewise.
1115 * inet/getnetbyad.c: Likewise.
1116 * inet/getnetbynm.c: Likewise.
1118 * sysdeps/generic/pselect.c: Include <sys/time.h>.
1120 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
1123 * math/Makefile (calls): Add s_frexp, s_ldexp.
1124 (routines): Remove them and &f from here.
1126 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
1128 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
1131 * nss/nss_files/files-XXX.c: Comment fix.
1133 Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
1135 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
1136 of reentrant function.
1137 (setup): Pass additional argument with function name we are
1139 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
1140 new argument {SET,END,GET}FUNC_NAME_STRING.
1142 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
1143 we return a pointer.
1145 Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1147 * nss/nss_files/files-parse.c: Add comment about things to #define.
1149 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
1151 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
1152 terminator char as an error.
1154 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
1156 Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
1158 * catgets/gencat.c (write_out): Move code to determine new
1159 best size out of inner loop.
1161 Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
1163 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
1164 implementation of frexp() function.
1165 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
1166 implementation of ldexp() function.
1168 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
1171 Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
1173 * misc/mntent.c: Include <sys/types.h>.
1174 (endmntent): Return 1 one success, 0 on failure.
1175 (getmntent): Chop newline and ignore empty lines.
1177 Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1179 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
1180 differently based on [RTLD_BOOTSTRAP].
1181 (elf_machine_rela): Use it instead of the fn ptr arg directly.
1183 Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1185 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
1186 __glob_closedir_hook): Remove decls.
1188 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
1190 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
1191 for send and connect syscalls.
1193 * socket/sys/socket.h: New file, taken from non-sysdep parts of
1194 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
1195 Declare __ names for send and connect.
1196 * sysdeps/generic/socketbits.h: New file.
1197 * sysdeps/unix/sysv/linux/socketbits.h: New file.
1198 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
1199 * sysdeps/generic/sys/socket.h: File removed.
1201 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
1202 * sysdeps/mach/hurd/send.c: Likewise.
1204 * sysdeps/mach/libc-lock.h: New file.
1205 * sysdeps/unix/readdir.c: Do locking.
1206 * sysdeps/unix/seekdir.c: Likewise.
1207 * sysdeps/unix/rewinddir.c: Likewise.
1208 * sysdeps/unix/closedir.c: Likewise.
1209 * sysdeps/unix/bsd/telldir.c: Likewise.
1210 * sysdeps/mach/hurd/seekdir.c: Likewise.
1211 * sysdeps/mach/hurd/readdir.c: Likewise.
1212 * sysdeps/mach/hurd/closedir.c: Likewise.
1213 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
1214 * sysdeps/unix/opendir.c: Likewise.
1215 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
1216 (struct __dirstream): Add lock member using __libc_lock_define.
1217 * sysdeps/unix/dirstream.h: Likewise.
1219 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
1221 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
1223 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
1225 Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
1227 * locale/programs/stringtrans.c: Fix typo in copyright.
1229 * stdio-common/printf-prs.c: Add casts to prevent
1230 signed<->unsigned warnings.
1232 * stdio-common/printf-parse.h: Initialize state variable before
1234 * stdio-common/printf-prs.c: Don't initialize state variable here.
1235 * stdio-common/vfprintf.c: Don't initialize state variable.
1236 (vfprintf): While determining length of multibyte string don't
1237 try to be clever in determining characters to use for first
1240 Add real implementation of multibyte<->wide char conversion
1241 functions. The functions always convert between the fixed wide
1242 char format (ISO 10646 in UCS4) and the UTF8 representation of
1243 this character set. Conversion between the currently used
1244 8bit character set and ISO 10646 will not take place. This is
1245 what iconv() is for.
1246 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
1248 Add optimized version of `mbrlen' function.
1249 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
1251 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
1253 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
1254 This is needed in the wchar.h header.
1255 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
1256 encoded character to UCS4.
1257 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
1258 element of `mbstate_t' for initial state.
1259 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
1260 encoded string to UCS4 string.
1261 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
1262 character to UTF8 encoded form.
1263 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
1264 encoded string to UTF8 encoded form.
1266 Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1268 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
1269 variable name, so new a libc with new requirements won't fail to
1270 notice an insufficient Linux version.
1272 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
1274 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
1275 instead of 2.0 headers.
1277 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
1279 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
1280 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
1282 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
1283 before using it in lhs of weak_alias.
1285 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
1286 Call __nss_lookup when not setting STARTP.
1287 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
1288 function-calling loop.
1290 Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
1292 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
1293 PENDIN, NOFLSH): Undefine these at start if they are already
1294 defined to avoid collision with termbits.h.
1295 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
1296 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
1298 Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1300 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
1301 already defined to float, long double. Use those macros for _Mdouble_
1302 defns when including mathcalls.h.
1303 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
1304 -D_Mlong_double_=double.
1306 Add more -lm functions to -lc because ldexp uses them.
1307 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
1308 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
1309 ldexp have both f and l code, and those have f though not l code.
1311 Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
1313 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
1314 error is 0. The "placeholder" entries recently added to
1315 errno.texi convert to zero since `???/' is at the front of them.
1316 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
1318 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
1319 __const to conform with unistd.h.
1321 * stdlib/stdlib.h (random): Declare return type to be int32_t.
1323 * string/argz-delete.c (argz_delete): Use memmove instead of
1324 memcpy for possibly overlapping strings.
1326 Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1328 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
1329 storage class. GCC gives an error for non-extern data defns with the
1332 Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
1334 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
1335 memmove instead of memcpy for possible overlapping strings.
1337 Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1339 * libc-symbols.h (weak_function): New macro.
1340 For GCC 2.7+ define as __attribute__ ((weak)).
1341 * elf/dl-minimal.c: Use weak_function as keyword in function defns
1342 instead of weak_symbol (NAME) after the defn.
1343 * stdlib/strtol.c: Likewise.
1344 * stdlib/strtod.c: Likewise.
1345 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
1347 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
1348 If this is defined, don't declare _dl_rtld_map as weak, and
1349 don't check for MAP pointing to it. RESOLVE is always null in this
1350 case, so test with #ifdef instead of if.
1352 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
1354 * csu/initfini.c (_init): Likewise.
1355 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
1356 * misc/efgcvt_r.c: Likewise.
1357 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1358 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1360 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
1361 It was not used in any assembler code.
1362 (weak_symbol_asm): Renamed to weak_extern_asm.
1363 (weak_extern): New macro replaces weak_symbol for weak extern refs;
1364 define to weak_extern_asm for [!ASSEMBLER].
1366 Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1368 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
1369 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
1370 define those now as aliases.
1371 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
1372 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
1373 after GCC weak attribute decl.
1375 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
1376 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
1377 (element printer): Check for elt in ALIAS, instead of special case
1380 * io/Makefile (headers): Add sys/vfs.h.
1381 * io/sys/vfs.h: New file.
1383 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
1384 critical section lock before unlinking dying active resources.
1385 The unlock just before return is right (i.e. old code unlocked twice).
1387 Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
1389 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
1390 Use memmove instead of memcpy where overlap is possible (not
1391 necessary using current implementation of memcpy, but...).
1392 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
1394 Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
1396 * stdio/linewrap.c (lwupdate): New function, mostly was
1397 __line_wrap_update. Use POINT_COL field instead of POINT.
1398 (__line_wrap_output): Use lwupdate.
1399 (__line_wrap_update): New function.
1400 (ensure_unwrapped, ensure_wrapped): New functions.
1401 (line_wrap_set_lmargin, line_wrap_set_rmargin,
1402 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
1404 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
1405 POINT_COL. Add POINT_OFFS field.
1406 (__line_wrap_update): New decl.
1407 (line_wrap_set_lmargin, line_wrap_set_rmargin,
1408 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
1410 Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
1412 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
1414 * login/pututline_r.c (pututline_r): Since we assign RESULT from
1415 lseek now, check that it's >= 0, not == 0.
1417 Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
1419 * login/login.c (login): Make a copy of *UT, fill in various
1420 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
1423 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
1424 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
1426 Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1428 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
1429 signal during critical section doing interruptible RPC, if
1430 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
1431 before thread_resume. If in critical section, pass 0 for SIGNO to
1432 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
1434 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
1436 * sysdeps/unix/sysv/linux/sys/user.h: New file.
1437 * sysdeps/unix/sysv/linux/Dist: Add it.
1438 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
1440 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
1441 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
1442 itself, no need to skip past a NUL.
1444 * nss/nsswitch.h (known_function): Comment fix.
1445 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
1446 directly. Do the lookup and insertion with a single call, and fill in
1447 the tree node afterwards if new.
1448 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
1450 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
1451 (struct timeval): Add bodiless decl for scope.
1453 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
1454 Move struct timespec defn outside [_TIME_H] so it can be got with
1455 #define __need_timespec.
1457 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
1458 for `struct timespec' member names.
1459 (TIMESPEC_TO_TIMEVAL): Likewise.
1461 * nss/Makefile (extra-libs-others): New variable.
1463 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
1464 $(lib) in $(extra-libs-others).
1465 * sunrpc/Makefile (extra-libs-others): New variable.
1466 (librpcsvc-no-lib-dep): Variable removed.
1468 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
1469 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
1471 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
1472 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
1473 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
1474 _dl_rtld_map weak only here.
1476 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
1478 Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
1480 * login/utmp.h: Fix typos.
1482 * misc/syslog.c (vsyslog): Use __send instead of send and
1483 __connect instead of connect to avoid name-space collisions (e.g.,
1486 Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1488 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
1490 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
1492 * malloc/malloc-size.c (malloc_usable_size): Renamed from
1493 malloc_object_allocation_size.
1494 * malloc/malloc.h: Fix decl.
1496 * sys/select.h: New file, wrapper header.
1498 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
1499 fd_set, associated macros, and select decl.
1501 * sysdeps/posix/isfdtype.c: New file.
1503 Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
1505 The latest Japanese proposal for POSIX locales renames the
1506 CHARMAP keyword in locale definition files to CHARCONV.
1507 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
1508 function ctype_is_charmap to ctype_is_charconv.
1509 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
1511 * locale/programs/locfile-token.h: Add definition of token
1513 * locale/programs/locfile.c: Recognize charconv keyword. Rename
1514 lables according to this.
1516 * locale/weight.h (get_weight): Cast constants to prevent
1519 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
1520 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
1523 New stuff described in P1003.1g.
1524 * misc/Makefile (headers): Add sys/select.h.
1525 (routines): Add pselect.
1526 * misc/sys/select.h: New file. Declare select functions and
1527 needed data types and macros.
1528 * sysdeps/generic/pselect.c: New file. Add generic implementation
1529 of pselect() function which uses select().
1531 * posix/getconf.c: Recognize new variables from P1003.1g.
1532 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
1533 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
1534 * posix/unistd.h: Add description of the P1003.1g variables.
1535 * sysdeps/generic/confname.h: Define _SC_* values for new
1537 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
1539 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
1540 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
1542 * sysdeps/stub/sysconf.c (sysconf): Ditto.
1543 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
1544 _POSIX_SELECT since Linux has this.
1546 * socket/Makefile (routines): Add isfdtype.
1547 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
1548 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
1551 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
1553 Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1555 * elf/Makefile (LDFLAGS-dl.so): New variable.
1556 (libdl.so): Depend on eval.so.
1557 (distribute): Add eval.c.
1558 * elf/eval.c: New file.
1560 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
1561 in case it wrote fewer than MAXDIGITS chars.
1563 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
1564 newline from flushing full buffer in loop, fix test so no fflush is
1565 done when last byte written exactly fills the buffer.
1567 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
1569 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
1570 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
1572 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
1573 extracting _dl_rtld_map.l_addr.
1575 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
1577 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1579 * shlib-versions (*-*-*): Set libnss_db=1.
1581 Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1583 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
1585 * rpm/template (%build): Use @prefix@ instead of always /usr.
1586 Set up configparms only if @prefix@ is in fact /usr.
1587 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
1589 * elf/Makefile: Add missing endif.
1591 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
1593 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
1594 (DATABASE): Define this instead of DATAFILE.
1595 * nss/nss_files/files-hosts.c: Likewise.
1596 (hostbyname): Use LOOKUP_NAME macro.
1598 * nss/nss_db/db-XXX.c: New file.
1599 * nss/Makefile (services): Add db.
1600 (libnss_db-inhibit-o): New variable.
1601 (libnss_db-routines): New variable.
1602 (distribute): Append db-XXX.c.
1603 (libnss_db.so): Depend on libdb.so and libnss_files.so.
1604 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
1606 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
1608 (DATAFILE): New macro.
1609 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
1611 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
1612 Pass db key args to DB_LOOKUP.
1613 (DATAFILE): Macro removed.
1614 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
1615 * nss/nss_files/files-service.c: Likewise.
1616 * nss/nss_files/files-pwd.c: Likewise.
1617 * nss/nss_files/files-proto.c: Likewise.
1618 * nss/nss_files/files-grp.c: Likewise.
1619 * nss/nss_files/files-ethers.c: Likewise.
1621 * elf/linux-compat.c: File removed.
1622 * elf/Makefile (distribute): Remove linux-compat.c.
1623 (ld-linux.so.1): Remove target and associated variables.
1625 * sunrpc/xdr.c: Remove malloc decl.
1626 * sunrpc/portmap.c: Likewise.
1628 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
1629 casting abort to fn returning bool_t.
1631 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
1632 the parser function.
1633 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
1634 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
1635 * nss/nss_files/files-grp.c: Likewise.
1637 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
1639 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
1641 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
1642 of ld.so so lookups for that soname find it.
1644 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
1645 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
1647 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
1648 define parse_line function.
1649 (parse_line): #define to _nss_files_parse_pwent and
1650 add extern decl for that.
1652 * nss/nss_files/files-XXX.c (internal_getent): Return
1653 NSS_STATUS_TRYAGAIN for ERANGE error.
1655 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
1656 of null, so next round returns null again instead of bombing. Fix
1659 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
1660 Remove ; after `ENTDATA_DECL (data)'.
1661 Truncate line at strpbrk (line, EOLSET "\n").
1662 (ENTDATA_DECL): Put ; at end.
1663 (MIDLINE_COMMENTS): Macro removed.
1664 * nss/nss_files/files-ethers.c: Pass new argument.
1665 * nss/nss_files/files-hosts.c: Likewise.
1666 * nss/nss_files/files-network.c: Likewise.
1667 * nss/nss_files/files-parse.c: Likewise.
1668 * nss/nss_files/files-proto.c: Likewise.
1669 * nss/nss_files/files-rpc.c: Likewise.
1670 * nss/nss_files/files-service.c: Likewise.
1671 * grp/fgetgrent.c: Likewise.
1672 * pwd/fgetpwent.c: Likewise.
1673 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
1674 fgetpwent.c already defines it.
1675 * nss/nss_files/files-grp.c: Likewise.
1677 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
1678 as well as any matching with l_libname. Fix DT_SONAME lookup to use
1679 string table properly.
1681 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
1682 invoked directly, and l_libname from that if PT_INTERP missing.
1683 Set l_name from l_libname only if not set from argv.
1685 * time/europe, time/northamerica: Updated from ADO 96i.
1687 Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1689 * stdio-common/tst-ungetc.c: Include unistd.h.
1691 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
1693 Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
1695 * hurd/report-wait.c (describe_number): Make I unsigned long.
1697 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
1698 actually found any entry.
1700 * login/pututline_r.c (pututline_r): If not located after any
1701 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
1702 Lock the file before stating.
1704 Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1706 * nss/Makefile (databases): Change host to hosts.
1707 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
1709 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
1711 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
1713 * string/string.h (strndupa): Pass missing arg to strnlen.
1715 * inet/getnetbypt_r.c: Renamed to ...
1716 * inet/getnetbyad_r.c: this; fixed function name.
1717 * inet/getnetbypt.c: Renamed to ...
1718 * inet/getnetbyad.c: this; fixed function name.
1720 Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1722 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
1725 Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1727 * login/login.c (login): Initialize DATA so that setutent_r will
1728 actually do something.
1730 Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
1732 * resolv/res_hconf.c (strndup): Remove function.
1734 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
1735 using ElfW() instead of Elf32_*.
1737 * sysdeps/unix/sysv/linux/alpha/init-first.h,
1738 sysdeps/unix/sysv/linux/m68k/init-first.h,
1739 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
1740 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
1741 init-first.h to make abstract machine dependent parts of
1744 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
1745 error handling. It's safer that way.
1747 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
1748 Fix by Richard Henderson.
1750 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
1751 typo/extraneous whitespace.
1753 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
1754 determine what integer sizes we're dealing with.
1756 Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
1758 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
1759 check for signal zero, repair logical sense of test by
1760 parenthesizing correctly.
1762 * hurd/hurdsig.c (_hurd_internal_post_signal): In
1763 check-for-pending signals code, release _hurd_siglock before
1764 jumping to deliver_pending.
1766 Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
1768 * configure.in (config_machine): Make ELF the default even for
1769 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
1772 Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1774 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
1775 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
1776 member only #ifdef ENTDATA.
1777 (ENTDATA_DECL): New macro.
1778 (LINE_PARSER): Use it for entdata decl.
1779 (parse_list): Find the space for LIST from DATA->linebuffer instead of
1780 from the input LINE, which might not be writable buffer space.
1781 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
1782 [ENTDATA] (parser_stclass): #define to `static inline'.
1783 [!ENDATA] (parser_stclass): #define to empty.
1784 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
1785 function is exported to -lnss_files users.
1787 * string/strndup.c: Add missing arg.
1789 * string/string.h (strndupa): Likewise.
1790 * string/strndup.c (strndup): Always terminate the string.
1792 Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1794 * stdio/Makefile (routines): Add vscanf.
1795 * stdio-common/Makefile (routines): Remove vscanf.
1796 * stdio-common/vscanf.c: Move to ...
1797 * stdio/vscanf.c: here.
1799 * rpm/Makefile (headers, install-lib, install-lib.so,
1800 versioned, install-bin, install-sbin, install-data,
1801 install-others): Add $(-VARIABLE).
1803 Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1805 * nss/Makefile (databases): New variable.
1806 (routines, libnss_files-routines): Use it.
1807 (subdir-dirs): Compute from $(services).
1809 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
1810 init_module, klogctl): Use EXTRA in the "caller" column so these get
1811 added to unix-extra-syscalls and thus compiled in misc.
1813 * string/Makefile (routines): Add strndup.
1814 * string/strndup.c: New file.
1815 * string/string.h: Declare strndup.
1816 (strndupa): New macro.
1818 * string/string.h: Declare __strdup.
1819 * string/strdup.c: Deansideclized. Define __ name and weak alias.
1821 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
1823 Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
1825 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
1827 * grp/initgroups.c (initgroups): De-ansi-fy.
1828 Move declaration of NGROUPS and GROUPS outside #if so that
1829 the code compiles for NGROUPS_MAX != 0.
1831 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
1832 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
1833 ether_ntoa, ether_ntoa_r, and ether_ntoh.
1834 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
1835 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
1836 inet/ether_ntoh.c: New files. Implementation of functions to
1837 handle Ethernet address to host mapping.
1838 * inet/netinet/ether.h: New file. Declare ether_* functions.
1839 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
1841 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
1842 * nss/Makefile (routines): Add ethers-lookup.
1843 (libnss_files-routines): Add files-ethers.
1845 * nss/getXXent_r.c: Don't define set*ent and end*ent function
1848 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
1849 KEEP_STREAM every time called.
1850 (_nss_files_end): Reset KEEP_STREAM here instead.
1851 (internal_getent): If STREAM == NULL try to open instead of
1853 Use cast to prevent warning.
1854 Terminate read line in case the buffer is too small.
1856 * nss/nss_files/files-ethers.c: New file. Implementation of
1857 Ethernet adress<->hostname lookup through files interface.
1859 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
1860 * stdlib/mbtowc.c: Define based on mbrtowc().
1861 * stdlib/wcstombs.c: Define based on wcsrtombs().
1862 * stdlib/wctomb.c: Define based on wcrtomb().
1864 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
1865 unexpected_sizes_in_xdr_u_int.
1867 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
1868 of `struct ether_addr'.
1869 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
1870 declaration of `struct ether_addr'.
1872 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
1873 * wcsmbs/mbsrtowcs.c: Ditto.
1874 * wcsmbs/wcrtomb.c: Ditto.
1875 * wcsmbs/wcsrtombs.c: Ditto.
1877 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
1879 Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
1881 * hurd/get-host.c <fcntl.h>: New include.
1882 * hurd/set-host.c <fcntl.h>: New include.
1883 (_hurd_set_host_config): Include NEW in args to dir_link.
1884 Return NWROTE, not NREAD.
1886 * sysdeps/mach/hurd/getcwd.c
1887 (_hurd_canonicalize_directory_name_internal): Don't deallocate
1888 DOTID & DOTDEVID until we're finished with them (we need to keep
1889 them at least until we've fetched the next level of id ports, so
1890 that mach will be able to use the same name if they're the same).
1891 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
1892 jumps to errlose, for those places where such cleanup is needed.
1894 Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1896 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
1898 Move DB code into separate -ldb library.
1899 * db/Makefile (extra-libs): New variable, list libdb.
1900 (routines): Renamed to libdb-routines.
1901 * shlib-versions: Add libdb=2.
1903 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
1904 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
1906 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
1907 of strncasecmp. Extend syntax to grok [!foo=bar].
1909 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
1911 * string/string.h: Declare __strncasecmp.
1913 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
1914 (service_alias): Variable removed.
1915 (nss_parse_service_list): New function, broken out of nss_getline.
1916 Remove alias conversion; we will just use symlinks.
1917 (__nss_database_lookup): Take new string arg DEFCONFIG.
1918 If no entry exists, make one with service list parsed from that.
1919 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
1920 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
1921 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
1923 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
1926 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
1928 Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
1930 * locale/programs/locale.c (long_options): Short form of
1931 --version option is `-V'.
1932 (main): Recognize `-V' as option, not `-v'.
1933 Call `usage' instead of printing error message for illegal
1935 (usage): Document `-V'.
1937 Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
1939 * sysdeps/mach/hurd/getcwd.c
1940 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
1941 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
1943 Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1945 * inet/getrpcent.c: Fix macros.
1946 * inet/getrpcent_r.c: Fix macros.
1948 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
1950 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
1952 Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
1954 * catgets/gencat.c (write_out): Use %Zu to print variables of type
1956 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
1957 cast it to (unsigned long) to make it work both on 32 and 64
1960 Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1962 * locale/Makefile (distribute): Add `programs/' prefix to all
1963 files in that directory.
1965 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
1968 * MakeTAGS (sources, headers): Make them simply expanded variables
1969 so that all-dist is expanded before it is changed.
1971 Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1973 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
1974 * Makefile (subdirs): Remove crypt.
1975 * crypt: Directory removed. It will be made an independent library
1978 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
1980 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
1982 * inet/getrpcbynumber.c (BUFLEN): New macro.
1984 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
1986 * Makefile (headers): Add libc-lock.h.
1987 * sysdeps/stub/libc-lock.h: New file.
1989 * inet/getrpcbynumber.c: Remove _r typo.
1991 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
1993 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
1996 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
1997 or doesn't mention DATABASE, use an internal default equivalent to
1998 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
1999 (nss_lookup_function): Call nss_new_service as needed.
2000 (nss_parse_file): Don't bother calling nss_new_service here.
2002 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
2003 * pwd/fgetpwent.c: Likewise.
2005 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
2006 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
2007 * malloc/malloc-size.c: New file.
2008 * malloc/malloc-walk.c: New file.
2010 * malloc/malloc-find.c (malloc_find_object_address): Return null if
2011 PTR is outside the heap.
2013 * elf/dl-load.c (_dl_map_object): If the requested name matches the
2014 soname of a loaded object, use that object.
2016 Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2018 * Makefile (subdirs): Add nss.
2020 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
2021 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
2022 * inet/getrpcbynumber_r.c: New file.
2023 * inet/getrpcbynumber.c: New file.
2024 * inet/getrpcbyname.c: New file.
2025 * inet/getrpcbyname_r.c: New file.
2026 * inet/getrpcent_r.c: New file.
2027 * inet/getrpcent.c: New file.
2028 * nss/rpc-lookup.c: New file.
2029 * nss/nss_files/files-rpc.c: New file.
2030 * nss/Makefile (routines): Add rpc-lookup.
2031 (libnss_files-routines): Add files-rpc.
2032 * sunrpc/Makefile (routines): Remove getrpcent.
2033 * sunrpc/getrpcent.c: File removed.
2035 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
2038 * Makeconfig (rpath-link): Add $(nssobjdir).
2039 (nssobjdir): New variable.
2041 * Makerules: Move shared library building before objects rules, so
2042 versions are known before extra-lib.mk gets included.
2043 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
2045 * pwd/getpwuid.c: Rewritten using nss.
2046 * pwd/getpwnam.c: Likewise.
2047 * pwd/getpwent.c: Likewise.
2048 * grp/getgrnam.c: Likewise.
2049 * grp/getgrgid.c: Likewise.
2050 * grp/getgrent.c: Likewise.
2051 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
2052 * pwd/getpwent_r.c: New file.
2053 * pwd/getpwnam_r.c: New file.
2054 * pwd/getpwuid_r.c: New file.
2055 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
2056 * grp/getgrnam_r.c: New file.
2057 * grp/getgrgid_r.c: New file.
2058 * grp/getgrent_r.c: New file.
2059 * grp/Makefile (routines): Remove grpopen, grpread.
2060 * pwd/Makefile (routines): Remove pwdopen, pwdread.
2061 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
2063 * pwd/fgetpwent.c: Rewritten using files-parse.c.
2064 * grp/fgetgrent.c: Likewise.
2066 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
2067 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
2068 * nss/nss_files/files-grp.c: New file.
2069 * nss/nss_files/files-pwd.c: New file.
2071 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
2073 * nss/nss_files/files-parse.c: New file.
2074 * nss/nss_files/files-XXX.c: New file.
2075 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
2076 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
2077 Rewritten using them.
2079 * nss/Makefile (libnss_files-routines): Remove files-host.
2080 Add files-hosts, files-grp, files-pwd.
2082 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
2084 Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
2086 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2087 A .plt entry now loads the .rela.plt offset directly rather
2088 than making us calculate it.
2090 Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2092 * time/Makefile ($(installed-localtime-file) rule): Do
2093 $(make-target-directory) first.
2095 * resolv.h: Fix wrapper for resolv/resolv.h.
2097 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
2098 Compile dummy file and pass -nostdlib -nostartfiles so as not to
2099 require installed libraries.
2101 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
2104 Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
2106 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
2107 and mapv4v6hostent.h.
2108 (routines): Move res* and gethnamaddr into libresolv-routines.
2109 (libresolv-routines): New variable, put them there.
2110 (extra-libs): New variable, list libresolv.
2111 (CPPFLAGS): Add -D for get*by* to res_get*by*.
2113 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
2115 * inet/herrno.c: New file.
2117 * resolv/res_init.c: Remove res_hconf calls.
2119 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
2120 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
2121 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
2122 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
2123 nss/service-lookup.c: New files. Implementation of name
2124 service switch, following the approach in Solaris.
2125 Interface specification and general structure inspired by Peter
2126 Eriksson <pen@lysator.liu.se>.
2127 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
2128 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
2129 Implementation of libnss_files.so module for file based databases
2131 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
2132 if libnss_dns.so module for DNS name lookup in NSS service.
2134 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
2135 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
2136 Changed to serve as interface to NSS.
2137 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
2138 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
2139 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
2140 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
2141 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
2142 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
2143 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
2144 interfaces to NSS, including reentrant functions.
2146 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
2147 resolv/sethostent.c: Removed: Obsoleted by NSS.
2149 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
2150 gethnamaddr.c. These private functions are now used in more
2153 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
2155 Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2157 * rpm/Makefile ($(config)): Make sure the word list in the for
2158 loop is syntactically non-empty.
2160 Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2162 * Version 1.92 test release.
2164 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
2166 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
2167 to klogctl to match prototype in sys/klog.h.
2169 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
2170 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
2172 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
2173 Remove. Code is now part of __getcwd again. The old function
2174 never really worked for anything but THISDIR==".".
2176 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
2177 only when building ELF version of library.
2179 * libio/libioP.h (_IO_vscanf): Add prototype.
2181 * posix/unistd.h (syscall): Change sysno arg and return value
2184 Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2186 * version.h (VERSION): Updated to 1.92.
2188 * misc/Makefile (headers): Add ar.h.
2189 * misc/ar.h: New file.
2191 * config.make.in (BUILD_CC): New variable.
2192 * configure.in: Check for BUILD_CC if $host != $build.
2194 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
2196 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
2197 (stamp$o files): New targets, create them empty, no deps.
2199 * rpm/template (Source): New field.
2200 (%prep, %build, %install): New sections.
2201 (%files): Add %doc FAQ NEWS NOTES README.
2202 * rpm/rpmrc (builddir): Removed.
2204 Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2206 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
2207 guessing to not assume p_vaddr of first load cmd is zero.
2209 * sysdeps/sparc/elf/start.S: New file.
2210 * sysdeps/sparc/dl-machine.h: New file.
2212 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
2213 only for ?s, not for *s. Fix from Chet Ramey.
2215 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
2216 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
2217 Use __{BEGIN,END}_DECLS.
2218 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
2219 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
2220 New macros, moved here from sysdeps/gnu/utmpbits.h.
2221 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
2222 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
2223 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
2224 Use sizeof instead of UT_*SIZE.
2225 * login/logwtmp.c: Likewise.
2227 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
2229 * version.c (banner): Add trailing newline.
2231 * login/utmp.h: Declare login_tty.
2233 Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
2235 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
2236 Changed to a 12-byte PLT entry to remove dependency on $gp.
2237 Take a new got_addr parameter.
2238 (elf_machine_rela): Pass the new parameter.
2239 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
2240 (RTLD_START): Do normal linkage with program entry.
2242 Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
2244 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
2246 * hurd/getuids.c (getuids): New weak link to __getuids.
2248 Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
2250 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
2251 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
2253 Rename nested function lookup to lookup_op.
2254 (__file_name_lookup, __file_name_lookup_under):
2255 Pass 0 for lookup arg to __hurd_file_name_lookup.
2256 (__file_name_split): Likewise for __hurd_file_name_split.
2257 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
2258 Rename nested function lookup to scan_lookup.
2259 (file_name_path_lookup): Pass 0 for lookup arg to
2260 hurd_file_name_path_lookup.
2261 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
2262 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
2263 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
2264 Add LOOKUP argument.
2265 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
2266 __hurd_file_name_lookup.
2268 Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2270 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
2271 up a huge list just to discard most of it.
2273 * configure.in (sysnames): Avoid fgrep by using the case shell
2276 * Makeconfig (config.status): Fix dependency on Implies files.
2278 Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2280 * math/Makefile (distribute): Add ieee-math.c.
2282 Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
2284 * locale/codeset_name.c: New file. Provide function for information
2285 about currently used character set.
2286 * locale/Makefile (routines): Add codeset_name.
2287 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
2288 * locale/localeinfo.h: Change magic number because of incompatible
2290 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
2291 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
2293 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
2294 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
2296 * locale/setlocale.c (setlocale): Initialize local variables to
2299 Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
2301 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
2303 * locale/programs/locale.c: Include string.h.
2305 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
2306 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
2307 appropriate sign-extension is performed on machines with
2310 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
2311 sizeof(int)<sizeof(long), we need to go through a temporary
2314 * locale/programs/ld-numeric.c: Include <alloca.h>
2316 * libio/stdio.h (__libc_fatal): Add prototype.
2318 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
2321 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
2322 volatile to avoid "might get clobbered by longjmp" warning.
2324 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
2325 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
2326 probability is a sure loser).
2327 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
2329 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
2330 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
2332 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
2333 to be Linux FSSTND compliant.
2335 Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
2337 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
2339 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
2340 sysdeps/unix/sysv/linux/alpha/brk.S,
2341 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
2342 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
2343 sysdeps/unix/sysv/linux/alpha/llseek.S,
2344 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
2345 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
2346 __syscall_error to avoid intruding application name space.
2348 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
2349 to SYS_get?id so that syscall stubs in sysdeps/unix define
2350 these syscalls in terms of getxpid/getxuid/getxgid.
2352 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
2353 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
2354 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
2355 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
2357 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
2358 (PSEUDO_END): Rename END() to PSEUDO_END().
2360 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
2361 to PSEUDO_END to improve branch-prediction. Include .frame
2362 directive to make syscalls debugabble.
2363 (PSEUDO_END): New macro.
2365 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
2366 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
2367 latter is illegal under DEC Unix.
2369 * sysdeps/unix/alpha/sysdep.S: Renamed from
2370 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
2372 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
2373 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
2374 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
2376 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
2377 address register in the .frame directive.
2379 * sysdeps/alpha/copysign.c: Remove.
2381 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
2382 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
2384 * errno.h: Move __END_DECLS to correct place to make file
2385 compilable under c++.
2387 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
2388 d_ino only if <direntry.h> hasn't defined d_fileno.
2390 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
2391 arguments to weakext to make .weakext detection work on ECOFF systems.
2393 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
2394 that _validuser() has been replaced by __ivaliduser().
2396 Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
2398 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
2399 as unsigned long, not as int (to avoid incorrect int->long
2404 See ChangeLog.5 for earlier changes.