1 Thu Sep 12 03:35:27 1996 Ulrich Drepper <drepper@cygnus.com>
3 * sysdeps/unix/sysv/linux/i386/Dist: Remove init-first.h.
4 * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
5 * sysdeps/unix/sysv/linux/Dist: Add init-first.h.
7 1996-09-11 Paul Eggert <eggert@twinsun.com>
9 * strftime.c (strftime):
10 Handle E and O modifiers, required for POSIX.2 and XPG4.
11 Don't use sprintf to format numbers; this way, we can handle time_t
12 correctly regardless of whether it's signed.
13 Don't dump core if format ends in %.
14 In default %c format, use %e instead of %d, for POSIX.2 compatibility.
16 Use tm_gmtoff if available.
17 Output nothing if tm_isdst is negative.
18 Output correct value even if arg is 1969-12-31 23:59:59 UTC.
19 Don't assume that UTC offset is less than 24 hours;
20 Posix requires support for 24 hours, and there's no point
22 (HAVE_TM_GMTOFF, TYPE_SIGNED, INT_STRLEN_BOUND): New macros.
23 (CHAR_BIT): Define if <limits.h> doesn't.
24 (tm_diff): New function.
25 (fmt, <stdio.h>): Remove; no longer used.
27 Thu Sep 12 02:21:44 1996 Ulrich Drepper <drepper@cygnus.com>
29 * db/Makefile: Add extra-libs-others variable so that shared
30 library is built in `others' pass.
31 * elf/Makefile: Likewise.
32 * math/Makefile: Likewise.
33 * resolv/Makefile: Likewise.
35 * Makefile (generated): Add version.info.h.
37 * time/checktab.awk: New file. From ADO 96k.
38 * time/iso3166.tab: Likewise.
39 * time/tzselect.ksh: Likewise.
40 * time/zone.tab: Likewise.
42 * stdio-common/vfprintf.c: Correct cleanup registration. We
45 1996-09-11 Paul Eggert <eggert@twinsun.com>
47 * time/time.h (tm_gmtoff, tm_zone): Prefix with `__' unless
48 __USE_BSD; this is required for ANSI C compatibility.
49 * manual/time.texi: Replace GMT by UTC, daylight savings by
50 daylight saving, timezone by time zone.
51 Rewrite description of %V to match ISO 8601.
52 Fix TZ Posix string example for US Eastern time.
53 Explain tzname[1] when DST isn't used.
54 Explain tzname when multiple abbreviations used (e.g. EST/EWT/EDT).
55 Explain that timezone's sign is opposite from tm_gmtoff, and that
56 timezone lacks DST adjustment whereas tm_gmtoff has it.
57 Deprecate tzname and timezone.
59 Tue Sep 10 14:46:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
61 Implement Roland McGrath's idea of how to put an .interp into
64 * Makerules (interp-obj): New object, linked into every shared
66 (common-generated): Add interp.so.
67 (CFLAGS-interp.c): Pass name of interpreter.
69 Tue Sep 10 21:09:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
71 * db/Makefile: Fix typo.
73 Tue Sep 10 19:29:53 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
75 * nss/db-Makefile ($(VAR_DB)/passwd.db): Look for multiple
76 occurences of the same uid, and only generate a mapping for the
79 Tue Sep 10 03:14:59 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
81 * sysdeps/unix/sysv/linux/system.c: New file, to override
82 sysdeps/unix/system.c.
84 Tue Sep 10 15:05:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
86 * Makefile (before-compile): Add version-info.h, needed to build
89 Tue Sep 10 14:14:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
91 * sysdeps/unix/sysv/linux/m68k/sysdep.S: Remove check for
92 EWOULDBLOCK, never true on Linux.
93 (__errno_location): New function.
94 [_LIBC_REENTRANT]: Set errno using __errno_location function.
95 * sysdeps/unix/sysv/linux/m68k/sysdep.h [PIC]: Add second
96 syscall_error handler for reentrant libc.
98 Tue Sep 10 13:27:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
100 * elf/Makefile (extra-objs): Add eval.so to get dependencies.
102 Wed Sep 11 04:40:57 1996 Ulrich Drepper <drepper@cygnus.com>
104 * time/tzset.c (__tzname_cur_max): Use type `size_t' to avoid
106 * time/tzfile.c (compute_tzname_max): Likewise.
108 Wed Sep 11 02:57:31 1996 Ulrich Drepper <drepper@cygnus.com>
110 * configure.in: Quote $add_ons argument in loop to generated
113 Tue Sep 10 20:43:45 1996 Ulrich Drepper <drepper@cygnus.com>
115 * db/makedb.c: Include <locale.h>. Reported by Fila Kolodny.
117 Tue Sep 10 14:42:39 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
119 * elf/dl-cache.c: Rename to ...
120 * sysdeps/generic/dl-cache.c: ... here.
121 * sysdeps/mach/hurd/dl-cache.c: New file.
123 * mach/Makefile (distribute): Add `errsystems.awk'.
124 * hurd/Makefile (distribute): Add `Notes' and `intr-msg.h'.
125 * hurd/hurdintr.awk: Delete file. (Not used in ages.)
126 * hurd/intr-rpc.awk: Likewise.
127 * hurd/invoke-trans.c: Likewise.
128 * sysdeps/mach/hurd/i386/longjmp-ctx.c: Likewise.
129 * sysdeps/mach/hurd/alpha/longjmp-ctx.c: Likewise.
130 * sysdeps/mach/hurd/mips/longjmp-ctx.c: Likewise.
131 * sysdeps/mach/hurd/i386/init-fault.c: Likewise.
132 * sysdeps/mach/hurd/mips/init-fault.c: Likewise.
133 * sysdeps/stub/init-fault.c: Likewise.
134 * sysdeps/stub/longjmp-ctx.c: Likewise.
136 Tue Sep 10 13:49:08 1996 Ulrich Drepper <drepper@cygnus.com>
138 * inet/herrno.c: Initialize `h_errno' so that we can provide
141 * Makefile (version-info.h): Fix typo in shell script.
143 * sysdeps/i386/i586/strlen.S: Optimize startup code a bit.
144 * sysdeps/i386/i586/strchr.S: Likewise.
146 Mon Sep 9 20:31:27 1996 Ulrich Drepper <drepper@cygnus.com>
148 * version.c (banner): Report to bug-glibc@prep not @gnu.
149 Reported by Andreas Jaeger.
151 * libio/stdio.h [!__USE_REENTRANT]: Don't define getc as
153 [__USE_REENTRANT]: Don't define
155 Mon Sep 9 15:59:32 1996 Ulrich Drepper <drepper@cygnus.com>
157 * sysdeps/i386/strrchr.c: Fix bug where NUL byte is not recognized
158 when it is the third byte in the string. Reported by
160 * string/tester.c: Add tests for above bug to strlen, strchr, and
163 Fri Sep 6 21:23:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
165 * sysdeps/m68k/fpu/e_acos.c: Deansideclized. Include
166 "math_private.h" to get prototype.
167 * sysdeps/m68k/fpu/e_fmod.c: Likewise.
168 * sysdeps/m68k/fpu/k_cos.c: Likewise.
169 * sysdeps/m68k/fpu/k_sin.c: Likewise.
170 * sysdeps/m68k/fpu/k_tan.c: Likewise.
172 * sysdeps/m68k/fpu/k_sin.c: Remove uneeded indirection of
174 * sysdeps/m68k/fpu/k_tan.c: Likewise.
176 Sun Sep 1 18:01:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
178 * sysdeps/m68k/fpu/__math.h: Check for __NO_M81_MATH_INLINES
179 instead of __NO_MATH_INLINES.
180 (__M81_MATH_INLINES): Renamed from __MATH_INLINES.
181 * sysdeps/m68k/fpu/e_acos.c: Define __NO_M81_MATH_INLINES.
182 * sysdeps/m68k/fpu/e_fmod.c: Likewise.
183 * sysdeps/m68k/fpu/k_cos.c: Likewise.
184 * sysdeps/m68k/fpu/k_sin.c: Likewise.
185 * sysdeps/m68k/fpu/k_tan.c: Likewise.
186 * sysdeps/m68k/fpu/s_atan.c: Likewise.
187 * sysdeps/m68k/fpu/s_frexp.c: Likewise.
188 * sysdeps/m68k/fpu/s_ilogb.c: Likewise.
189 * sysdeps/m68k/fpu/s_isinf.c: Likewise.
190 * sysdeps/m68k/fpu/s_ldexp.c: Likewise.
191 * sysdeps/m68k/fpu/s_modf.c: Likewise.
192 * sysdeps/m68k/fpu/k_cos.c: Use inline version of __cos.
193 * sysdeps/m68k/fpu/k_sin.c: Likewise.
194 * sysdeps/m68k/fpu/k_tan.c: Likewise.
196 Mon Sep 9 12:55:14 1996 Ulrich Drepper <drepper@cygnus.com>
198 * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): Check for
199 available character before converting number and return with
200 error if none is available.
202 Fri Sep 6 22:09:08 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
204 * sysdeps/unix/sysv/linux/init-first.h: New file, generic
205 implementation for architectures where parameters are passed on
207 * sysdeps/unix/sysv/linux/m68k/init-first.h: Removed.
208 * sysdeps/unix/sysv/linux/i386/init-first.h: Removed.
210 Fri Sep 6 22:05:32 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
212 * configure.in: Remove unneeded sysnames frobbing.
214 Mon Sep 9 05:29:09 1996 Ulrich Drepper <drepper@cygnus.com>
216 * time/zic.c: Update from ADO 96l.
217 * time/africa: Update from ADO 96k.
218 * time/antarctica: Likewise.
219 * time/asia: Likewise.
220 * time/australia: Likewise.
221 * time/europe: Likewise.
222 * time/northamerica: Likewise.
223 * time/southamerica: Likewise.
225 Mon Sep 9 05:03:47 1996 NIIBE Yutaka <gniibe@mri.co.jp>
227 * sysdeps/unix/sysv/linux/i386/init-first.h: Work around buggy
228 gcc <= 2.7.2.1 which optimizes away address operations on weak
231 * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): New macro.
232 Like INT_FIELD but also accept non-existing field.
233 * shadow/sgetspent_r.c (LINE_PARSER): Use INT_FIELD_MAYBE_NULL
234 for last four fields.
235 * shadow/putspent.c (putspent): Print `:' after numeric value.
237 Mon Sep 9 02:42:48 1996 Richard Henderson <rth@tamu.edu>
239 * libio/stdio.h (BUFSIZ): Define using _IO_BUFSIZ.
241 Sun Sep 8 16:43:56 1996 Ulrich Drepper <drepper@cygnus.com>
243 * Make-dist: Filter out $(add-ons) from $(subdirs).
244 Don't distribute TAGS files.
245 ($(tardir).tar): Remove dist.tar when all is done.
246 * manual/Makefile (distribute): Add libc.info*.
247 * libio/Makefile (distribute): Add Banner.
248 * inet/Makefile (headers): Add netinet/tcp.h.
250 * resolv/Makefile (libresolv-routines): Add getnetnamadr.
252 * crypt-README: Removed.
253 * gnu-stabs.h: Removed.
255 * sysdeps/alpha/copysign.S: Renamed to...
256 * sysdeps/alpha/s_copysign.S: ...this.
257 * sysdeps/alpha/fabs.S: Renamed to...
258 * sysdeps/alpha/s_fabs.S: ...this.
260 * sysdeps/m68k/isinfl.c: Renamed to...
261 * sysdeps/m68k/s_isinfl.c: ...this.
262 * sysdeps/m68k/isnanl.c: Renamed to...
263 * sysdeps/m68k/s_isnanl.c: ...this.
265 * sysdeps/sparc/sqrt.c: Renamed to...
266 * sysdeps/sparc/e_sqrt.c: ...this. Function name now is
269 * sysdeps/generic/get_str.c: Removed.
271 * sysdeps/ieee754/cbrt.c: Removed.
272 * sysdeps/ieee754/drem.c: Removed.
273 * sysdeps/ieee754/logb.c: Removed.
274 * sysdeps/ieee754/sqrt.c: Removed.
276 * sysdeps/stub/cbrt.c: Removed.
277 * sysdeps/stub/cos.c: Removed.
278 * sysdeps/stub/drem.c: Removed.
279 * sysdeps/stub/isinf.c: Removed.
280 * sysdeps/stub/isinfl.c: Removed.
281 * sysdeps/stub/isnanl.c: Removed.
282 * sysdeps/stub/logb.c: Removed.
283 * sysdeps/stub/sin.c: Removed.
284 * sysdeps/stub/sqrt.c: Removed.
286 * sysdeps/tahoe/log10.c: Removed.
288 * sysdeps/vax/index.s: Removed.
289 * sysdeps/vax/rindex.s: Removed.
290 * sysdeps/vax/bcmp.s: Removed.
291 * sysdeps/vax/log10.c: Removed.
292 * sysdeps/vax/infnan.c: Removed.
293 * sysdeps/vax/Dist: Add fl.h.
295 * sysdeps/unix/sysv/linux/alpha/Dist: Add llseek.S.
297 * inet/rcmd.c (rcmd): Make messages more uniform.
299 Sun Sep 8 14:15:42 1996 Ulrich Drepper <drepper@cygnus.com>
304 * po/pl.po: New file.
305 * po/nl.po: New file.
307 Sat Sep 7 18:41:17 1996 Richard Henderson <rth@tamu.edu>
309 * Makeconfig (+link): Filter out start, pre & postinit from the
310 generic depenancies as well.
311 * Rules: Add start, pre & postinit to the dependancies of
312 $(others) and $(tests).
314 * configure.in: elf_dirs missing "sysdeps" component.
316 Sun Sep 8 02:36:02 1996 Ulrich Drepper <drepper@cygnus.com>
318 * locale/SYS_libc.c (_libc_intl_domainname): Change value to "libc".
319 This is consistent with all other GNU packages. We shouldn't
320 take care for a possible clash. Nobody will name the domain
321 of a package libc if it is not the libc itself.
322 * MakeTAGS ($P/SYS_libc.pot): Rename to $P/libc.pot.
323 * po/Makefile (domainname): Change to libc.
324 (distribute): Now ship libc.pot.
325 * catgets/gencat.c (usage): Use `PACKAGE' for package name in
326 version information banner.
327 Change bug report address to bug-glibc@prep not @gnu.
328 * db/makedb.c (PACKAGE): New macro. Set to _libc_intl_domain.
329 (main): Use `PACKAGE' for package name in version information
331 Change bug report address to bug-glibc@prep not @gnu.
332 * locale/programs/locale.c (main): Use `PACKAGE' for package name
333 in version information banner.
334 Change bug report address to bug-glibc@prep not @gnu.
335 * locale/programs/localedef.c (main): Likewise.
337 * version.h (VERSION): Bump to 1.94.
339 * locale/Makefile (distribute): Add locale.c and localedef.c.
341 Sat Sep 7 14:00:33 1996 David Mosberger-Tang <davidm@azstarnet.com>
343 * catgets/catgets.c (catopen): Allocate sizeof(*result) bytes
344 instead of sizeof(nl_catd) (which is just a pointer!).
346 Sat Sep 7 19:39:19 1996 Ulrich Drepper <drepper@cygnus.com>
348 * Makefile ($(objpfx)version-info.h): Generate from Banner files.
349 * version.c (banner): Add contents of version-info.h to string.
351 * Makerules: If $($(subdir)-version) is available name versioned
352 shared library according to this value instead of glibc's version.
354 * libio/Banner: New file.
356 * elf/eval.c (funcall): Write error message in case function is
358 (eval): Recognize `_' in names.
360 Sat Sep 7 05:15:45 1996 Ulrich Drepper <drepper@cygnus.com>
362 * libio/iofdopen: Initialize _lock field only if _IO_MTSAFE_IO.
363 * libio/iofopen: Likewise.
364 * libio/iofopncook.c: Likewise.
365 * libio/iopopen.c: Likewise.
366 * libio/iovsprintf.c: Likewise.
367 * libio/iovsscanf.c: Likewise.
368 * libio/memstream.c: Likewise.
369 * libio/vasprintf.c: Likewise.
370 * libio/vdprintf.c: Likewise.
371 * libio/vsnprintf.c: Likewise.
373 Sat Sep 7 03:55:47 1996 Ulrich Drepper <drepper@cygnus.com>
375 * Makeconfig (soversions.mk): Also use shlib-versions files
376 in add-on directories.
377 * config.make.in (config-defines): Remove. Not used anymore.
378 (defines): New variable. Initiliazed by @DEFINES@.
379 * configure.in: Add AC_SUBST(DEFINES).
381 * libio/Makefile (routines): When compiling reentrant libc add
382 clearerr_u, feof_u, ferror_u, fputc_u, getc_u, getchar_u,
383 iofflush_u, putc_u, putchar_u, ioflockfile.
384 (CPPFLAGS): Add -D_IO_MTSAFE_IO for reentrant libc.
386 * sysdeps/stub/libc-lock.h: Add stubs for __libc_cleanup_region_start
387 and __libc_cleanup_region_end.
389 * sysdeps/unix/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
390 using __errno_location function.
391 * sysdeps/unix/sysv/linux/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
392 using __errno_location function.
393 (__errno_location): New function.
394 * sysdeps/unix/sysv/linux/i386/sysdep.h [PIC]: Add second
395 syscall_error handler for reentrant libc.
397 * sysdeps/unix/opendir.c: Remove unneeded `;'.
399 * libio.h [_IO_MTSAFE_IO]: Include <pthread.h>.
400 [!_IO_MTSAFE_IO]: Define _IO_flockfile and _IO_funlockfile
402 * libioP.h: Include <libc-lock.h>.
403 * libio/stdio.h: Add prototypes for *_locked and *_unlocked
406 * libio/clearerr.c: Use _IO_ protected versions of flockfile
407 and funlockfile to be namespace clean.
409 * libio/genops.c: Use __libc_lock_* macros for handling lock.
411 * libio/iofdopen: Add initialization of _lock in _IO_FILE.
412 * libio/iofopen: Likewise.
413 * libio/iofopncook.c: Likewise.
414 * libio/iopopen.c: Likewise.
415 * libio/iovsprintf.c: Likewise.
416 * libio/iovsscanf.c: Likewise.
417 * libio/memstream.c: Likewise.
418 * libio/vasprintf.c: Likewise.
419 * libio/vdprintf.c: Likewise.
420 * libio/vsnprintf.c: Likewise.
422 * libio/fgetc.c: Use __libc_cleanup_region_* macros instead
424 * libio/fputc.c: Likewise.
425 * libio/freopen.c: Likewise.
426 * libio/fseek.c: Likewise.
427 * libio/getc.c: Likewise.
428 * libio/getchar.c: Likewise.
429 * libio/iofclose.c: Likewise.
430 * libio/iofflush.c: Likewise.
431 * libio/iofgetpos.c: Likewise.
432 * libio/iofgets.c: Likewise.
433 * libio/iofputs.c: Likewise.
434 * libio/iofread.c: Likewise.
435 * libio/iofsetpos.c: Likewise.
436 * libio/ioftell.c: Likewise.
437 * libio/iofwrite.c: Likewise.
438 * libio/iogetdelim.c: Likewise.
439 * libio/iogets.c: Likewise.
440 * libio/ioputs.c: Likewise.
441 * libio/iosetbuffer.c: Likewise.
442 * libio/iosetvbuf.c: Likewise.
443 * libio/ioungetc.c: Likewise.
444 * libio/putc.c: Likewise.
445 * libio/putchar.c: Likewise.
446 * libio/rewind.c: Likewise.
447 * stdio-common/vfprintf.c: Likewise.
448 * stdio-common/vfscanf.c: Likewise.
450 * libio/clearerr_u.c: Correct alias name.
451 * libio/ferror_u.c: Likewise.
452 * libio/fileno.c: Likewise.
453 * libio/fputc_u.c: Likewise.
454 * libio/getc.c: Likewise.
455 * libio/getc_u.c: Likewise.
456 * libio/getchar.c: Likewise.
457 * libio/getchar_u.c: Likewise.
458 * libio/putc.c: Likewise.
459 * libio/putchar.c: Likewise.
461 * libio/feof_u.c: Undefine macro with name of function before
462 definition of function itself.
464 * libio/ioflockfile.c: New file. Implementation of flockfile and
467 * libio/putchar_u.c: Fix typo. Use stdout instead of fp.
469 * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
472 * malloc/free.c: Include <libc-lock.h>.
473 * malloc/realloc.c: Likewise.
474 * malloc/malloc-find.c: Likewise.
475 * malloc/malloc-size.c: Likewise.
476 * malloc/malloc-walk.c: Likewise.
477 * malloc/memalign.c: Likewise.
478 * malloc/malloc.c: Likewise.
480 * sysdeps/i386/dl-machine.h: Correct clearing of _dl_starting_up.
482 Fri Sep 6 19:38:49 1996 Ulrich Drepper <drepper@cygnus.com>
484 * sysdeps/stub/libc-lock.h: Define __libc_lock_critical_start
485 and __libc_lock_critical_end as empty macros.
487 * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
489 * malloc/free.c: Include <libc-lock.h>.
490 * malloc/malloc-find.c: Likewise.
491 * malloc/malloc-size.c: Likewise.
492 * malloc/malloc-walk.c: Likewise.
493 * malloc/malloc.c: Likewise.
494 * malloc/memalign.c: Likewise.
495 * malloc/realloc.c: Likewise.
497 * Makefile: Undo change from Mon Sep 2 22:15:14 1996. No more
500 * extra-lib.mk: Likewise.
501 * manual/Makefile: Likewise.
503 * db/Makefile (makedb): Choose dependecies based on build-shared.
504 Patch by Andres Schwab.
506 * sysdeps/posix/sysconf.c: Don't use PTHREAD_DESTRUCTOR_ITERATIONS
507 but _POSIX_THREAD_DESTRUCTOR_ITERATIONS.
509 * sysdeps/unix/sysv/linux/errnos.h: New file.
510 * sysdeps/unix/sysv/linux/schedbits.h: New file.
511 * sysdeps/unix/sysv/linux/waitflags.h: New file.
513 * sysdeps/unix/sysv/linux/gnu/types.h: Add definition of `key_t'.
515 Fri Sep 6 08:26:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
517 * rpm/template: Fix typo in %build section.
519 Fri Sep 6 03:31:07 1996 Ulrich Drepper <drepper@cygnus.com>
521 * sysdeps/unix/sysv/linux/errnos.h: Don't define errno macro when
522 building libc without thread support.
523 * resolv/netdb.h: Likewise for h_errno macro.
525 Thu Sep 5 23:01:48 1996 Ulrich Drepper <drepper@cygnus.com>
527 * libc-symbols.h: Add new macro weak_const_function. It's like
528 weak_function, but the function is additionally marked as const.
529 * features.h: Only include <sys/cdefs.h> if !__ASSEMBLER__.
531 Thu Sep 5 22:55:49 1996 Richard Henderson <rth@tamu.edu>
533 * inet/herrno.c (__h_errno_location): New function.
534 (h_errno): Make strong_alias __h_errno so that we can access
535 the variable even if `h_errno' is a macro.
536 * resolv/netdb.h: Define macro h_errno to access thread specific
537 version of h_errno variable. Declare alias __h_errno for h_errno.
538 * resolv/res_query (h_errno): Remove definition.
539 * sysdeps/unix/sysv/linux/errnos.h [!__ASSEMBLER__ && __USE_REENTRANT]:
540 Add macro `errno' to get thread specific variable.
541 * sysdeps/unix/alpha/sysdep.S [_LIBC_REENTRANT]: Set errno using
542 __errno_location function.
543 (__errno_location): New function.
545 Thu Sep 5 21:08:44 1996 Ulrich Drepper <drepper@cygnus.com>
547 * posix/gnu/types.h: Remove definition of key_t.
548 * sysdeps/generic/gnu/types.h: Move it to here.
549 * sysdeps/unix/sysv/linux/gnu/types.h: Add Linux specific
552 * sysdeps/unix/sysv/linux/waitflags.h: New file. Linux specific
554 * sysdeps/unix/sysv/linux/schedbits.h: New file. Include
555 clone prototypes and associated flags.
557 Thu Sep 5 13:18:25 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
559 * sysdeps/mach/hurd/i386/init-first.c (__libc_argc, __libc_argv):
561 (init1): Initialize them.
562 * hurd/hurdinit.c (_hurd_setproc): Now that happens to be
563 available, pass __libc_argv in call to __proc_set_arg_locations.
565 * gmon/gmon.c (write_hist): Call __profile_frequency instead of
567 (hertz): Delete function.
568 * gmon/Makefile (routines): Add `prof-freq'.
569 * sysdeps/generic/prof-freq.c: New file.
570 * sysdeps/mach/hurd/prof-freq.c: New (stubby) file.
571 * sysdeps/mach/hurd/profil.c (profile_tick): New variable.
572 (update_waiter): Store frequency in profile_tick.
573 (__profile_frequency): New function.
575 * sysdeps/mach/hurd/sendto.c (sendto): Use prototype definition
578 * Rules (generated): Restore reference to $(generated).
580 * mach/Machrules (mig.uh, mig.__h): Don't include $(user-MIGFLAGS)
583 * malloc/free.c (free): __lib_malloc_lock -> __libc_malloc_lock.
585 * malloc/free.c: Provide extern decl of __libc_malloc_lock.
586 * malloc/realloc.c: Likewise.
587 * malloc/malloc-find.c: Likewise.
588 * malloc/malloc-size.c: Likewise.
589 * malloc/malloc-walk.c: Likewise.
590 * malloc/memalign.c: Likewise.
592 Thu Sep 5 08:58:47 1996 Richard Henderson <rth@tamu.edu>
594 * sysdeps/alpha/elf/start.S: Make _start global again.
596 Thu Sep 5 03:20:42 1996 Ulrich Drepper <drepper@cygnus.com>
598 Change configuration and Makefiles to allow add-ons to have a
599 sysdeps/ directory hierachy.
600 * configure.in: Test for sysdeps/ directory in add-ons. Before
601 all test and searches in these hierachies, too.
602 * Makeconfig (full-config-subdirs): Define based on $(config-sysdirs).
603 Extend with $(..) if not absolute path.
604 Use $(full-config-subdirs) where $(config-sysdirs) was used.
605 * Makefile ($(objpfx)sysd-dirs): Use config-sysdirs.
606 * MakeTAGS: Use $(full-config-subdirs).
607 * Makerules: Change comment to libc.so link script.
608 (sysdirs): Define based on $(full-config-subdirs).
609 (sysd-Makefile): Define using config-sysdirs.
610 (sysd-rules): Likewise.
611 * sysdeps/unix/Makefile (sysd-syscalls): Define based on +sysdep-dirs.
612 * sysdeps/unix/make-syscalls.sh: Remove basedir argument.
614 Wed Sep 4 01:32:21 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
616 * sysdeps/m68k/fpu/k_cos.c: Rewritten for better accuracy.
617 * sysdeps/m68k/fpu/k_sin.c: Likewise.
618 * sysdeps/m68k/fpu/k_tan.c: Likewise.
620 Thu Sep 5 01:06:09 1996 Richard Henderson <rth@tamu.edu>
622 * malloc/free.c (free): Protect by using __libc_malloc_lock.
623 * malloc/malloc-find.c (malloc_find_object_address): Likewise.
624 * malloc/malloc-size.c (malloc_usable_size): Likewise.
625 * malloc/malloc-walk.c (malloc_walk): Likewise.
626 * malloc/memalign.c (memalign): Likewise.
627 * malloc/realloc.c (realloc): Likewise.
628 * malloc/malloc.c: Define __libc_malloc_lock.
629 (_malloc_internal): Don't use `malloc'. Instead look for
630 `__malloc_hook' or call `_malloc_internal'.
631 (malloc): Protect by using `__libc_malloc_lock'.
632 * malloc/malloc.h: Declare `__libc_malloc_lock'.
634 Mon Sep 2 22:42:59 1996 Richard Henderson <rth@tamu.edu>
636 * sysdeps/alpha/elf/start.S: Use weak_alias for __start
637 instead of the hard definition.
639 * sysdeps/alpha/dl-machine.h (RTLD_START): Add type info for
640 _start and _dl_start_user.
642 * sysdeps/unix/sysv/linux/alpha/init-first.h (SYSDEP_CALL_INIT):
643 Make _dl_starting_up weak. Add type info for NAME.
645 Mon Sep 2 22:15:14 1996 Richard Henderson <rth@tamu.edu>
647 * Makefile (all): Add extra_solibs pass.
648 (+subdir_targets): Same.
649 * Rules (extra_solibs): New phony empty target for subdirs without
651 * extra-lib.mk: Build lib*.so* in extra_solibs not lib-noranlib.
652 * manual/Makefile: Add dummy extra_solibs target.
654 Sun Sep 1 15:41:22 1996 Richard Henderson <rth@tamu.edu>
656 * Makeconfig (+link): Add $(link-extra-libs).
657 (link-extra-libs): New variable which expands to the full paths of
658 the other libraries needed by a program, as controled by LDLIBS-$(@F).
659 * db/Makefile: Use LDLIBS-makedb to link libdb not a dependency, as
660 the later attempts to install the library before linking it.
662 * sysdeps/unix/alpha/sysdep.S: Align errno.
664 * sysdeps/unix/sysv/linux/alpha/ioperm.c (struct platform): Add
666 (io): Move bus_memory_base and sparse_bus_memory_base into struct.
667 (_hae_shift): New function.
668 * sysdeps/unix/sysv/linux/alpha/sys/io.h: New file. Prototypes
669 for the bus query functions.
671 Sat Aug 31 18:14:54 1996 Richard Henderson <rth@tamu.edu>
673 * elf/dl-close.c (_dl_close): In static executables, map->l_prev
674 can be NULL when unloading a library.
676 * elf/dl-open.c (_dl_open): Pass __environ instead of __libc_envp
677 to the library .init function.
679 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Since we omitted
680 part of the COPY reloc processing earlier, omit the rest now --
681 we'll get into less trouble later when some fool does use a COPY.
683 * sysdeps/unix/sysv/linux/init-first.c (init): Accept argc et al as
684 parameters. Move all argc and __libc_multiple_libcs calculation out
685 to init-first.h. Use __environ not __libc_envp.
686 * sysdeps/unix/sysv/linux/alpha/init-first.h: Rewrite.
687 * sysdeps/unix/sysv/linux/i386/init-first.h: Rewrite.
689 Thu Aug 29 20:26:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
691 * sysdeps/posix/profil.c (profil): Don't clobber saved timer and
692 signal settings when profiling was already turned on.
694 * csu/gmon-start.c (__gmon_start__) [HAVE_INITFINI]: Protect from
697 Wed Sep 4 01:31:50 1996 Ulrich Drepper <drepper@cygnus.com>
699 * sysdeps/unix/sysv/linux/i386/mmap.S: Test for
700 0 < return value < -4096 and not < 0 to decide about failure.
701 Reported by Andreas Jaeger.
703 Tue Sep 3 19:04:05 1996 Ulrich Drepper <drepper@cygnus.com>
705 * stdio-common/vfscanf.c (__vfscanf): Don't count EOF char
708 Sat Aug 31 18:10:51 1996 Ulrich Drepper <drepper@cygnus.com>
710 * wcsmbs/wchar.h: Define prototypes for wcstoq and wcstouq only
713 Sat Aug 31 12:34:29 1996 Ulrich Drepper <drepper@cygnus.com>
715 * version.c: Add missing newline character in banner.
717 * sysdeps/unix/sysv/linux/alpha/Dist: Correct typo.
718 * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
720 Sat Aug 31 03:07:39 1996 Ulrich Drepper <drepper@cygnus.com>
722 * intl/l10nflist.c (_nl_normalize_codeset): We convert to lower
723 case, so don't prepend uppercase `ISO' for only numeric arg.
725 Wed Sep 4 16:16:13 1996 Ulrich Drepper <drepper@cygnus.com>
727 * sysdeps/mach/hurd/send.c (__send): De-ANSI-fy.
728 * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
730 Tue Sep 3 11:16:07 1996 Thomas Bushnell/ n/BSG <thomas@gnu.ai.mit.edu>
732 * shadow/lckpwdf.c (__ulckpwdf): Don't take address of LOCK in
733 call to __libc_lock_lock.
735 * sysdeps/mach/hurd/send.c (__send): Declare BUF const.
736 * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
738 * sysdeps/stub/ustat.c: Include <sys/ustat.h>.
740 * misc/syslog.c (vsyslog): Fix typo (`mow_tm' -> `now_tm').
742 Fri Aug 30 19:55:27 1996 Ulrich Drepper <drepper@cygnus.com>
744 * libio/genops.c: Make _cleanup an alias of _IO_cleanup.
745 Reported by Erik Troan.
747 Fri Aug 30 15:40:04 1996 Ulrich Drepper <drepper@cygnus.com>
749 * sysdeps/unix/sysv/linux/Dist: Add sys/procfs.h and
750 sys/sysmacros.h. Reported by Curtiss <1CMC3466@IBM.MTSAC.EDU>.
752 Fri Aug 30 13:53:32 1996 Andreas Jaeger <aj@arthur.pfalz.de>
754 * sysdeps/unix/mman/syscalls.list: `mmap' has 6 arguments, not 5.
756 Fri Aug 30 13:01:10 1996 NIIBE Yutaka <gniibe@mri.co.jp>
758 * sysdeps/i386/fpu/__math.h (tan): Pop 1.0 in ST to get
761 Fri Aug 30 03:33:33 1996 Ulrich Drepper <drepper@cygnus.com>
763 * sysdeps/libm-ieee754/s_cbrtl.c: New file. `long double'
766 Fri Aug 30 13:39:21 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
768 * Makerules (BUILD_CFLAGS): Use @(common-objpfx) for config.h, not
769 $(..). Some rules (like sysdeps/posix/Makefile for mk-stdiolim)
771 (sed-remove-objpfx): Don't substitute for $(objpfx) anymore;
772 $(common-objpfx) is good enough.
773 * Rules (common-generated): Provide default (empty) value.
774 (dummy.o, dummy.c, empty.o, empty.c): Put these in
775 $(common-generated), not $(generated), and without $(..).
776 (subdir_echo-distinfo): Treat $(common-generated) just like
778 (generated): Depend on the (suitably mutated) $(common-generated)
780 * Makerules (common-clean): Remove common-generated files too.
781 * sysdeps/mach/hurd/Makefile (generated): Don't put errnos.d and
783 (common-generated): Do put errnos.d and stamp-errnos here.
784 (rpath-link): Don't use +=; $(rpath-link) is a colon separated list.
786 * sysdeps/mach/hurd/Makefile (before-compile): Add auth; also add
787 auth to following rule to get it built.
789 Fri Aug 30 01:26:44 1996 Ulrich Drepper <drepper@cygnus.com>
791 * sysdeps/unix/sysv/linux/i386/Dist: Add clone.S.
792 * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
793 * sysdeps/unix/sysv/linux/alpha/Dist: Likewise.
795 * version.c: Add comment about where to report bugs to.
796 * catgets/gencat.c (usage): Likewise.
797 * db/makedb.c (usage): Likewise.
798 * locale/programs/locale.c (usage): Likewise.
799 * locale/programs/localedef.c (usage): Likewise.
801 * manual/socket.texi: A little bit better wording.
803 Thu Aug 29 18:03:06 1996 Ulrich Drepper <drepper@cygnus.com>
805 * Makerules: Make sure directory exists before generating stamp file.
806 (BUILD_CFLAGS): Always refer to using $(..).
807 * manual/Makefile: Make sure directory exists before generating
809 (make-target-directory): Add macro definition.
810 * sysdeps/generic/Makefile: Make sure directory exists before
811 generating stamp file.
813 * Makefile (distribute): Add autolock.sh. Reported by Fila Kolodny.
815 Tue Aug 27 10:06:22 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
817 When compiling in separate directory put objects into
818 subdirectories matching the source layout.
819 * Makeconfig (objpfx) [ifdef objdir]: Append $(subdir).
820 When looking for configparms try in $(common-objpfx).
821 Use $(common-objpfx)SUBDIR to find objects from other subdirectory
823 * Makerules: Add $(objpfx) to vpath list.
824 (make-dummy-dep): Use $(common-objpfx) to avoid creating dummy.d
825 more than once. All uses in dependency lists changed.
826 (+make-deps): Make target directory.
827 (sed-remove-objpfx): Substitute $(common-objpfx).
828 (do-ar, build-extra-lib, $(common-objpfx)stub-$(subdir)): Use
829 $(objpfx) instead of $(objdir) for cd command.
830 (O%-lib): Always find libc relative to $(..).
831 (subdir-stamps): Collect stamp files from subdirs.
832 (common-mostlyclean): Remove stub file in $(common-objpfx).
833 * MakeTAGS ($P/siglist.pot): Find siglist.c in stdio-common.
834 * Rules (dep-dummy-lib): Use $(common-objpfx) to avoid creating to
836 ($(objpfx)dummy.c, $(objpfx)empty.c): Change target name to use
837 $(common-objpfx). All uses in dependency lists changed.
838 (generated): Prepend $(..) to names.
839 * bare/Makefile ($(objpfx)lib$(config-vendor).a): Remove $(objpfx)
841 * nss/Makefile ($(objpfx)libnss_dns.so, $(objpfx)libnss_db.so):
842 Use $(common-objpfx) instead of $(..) in dependencies.
843 * sysdeps/mach/Makefile (mach-objpfx): Unconditionally use
844 $(common-objpfx) instead of $(..) and (objpfx).
845 * sysdeps/mach/hurd/Makefile (hurd-objpfx): Likewise.
846 (rpath-link): Likewise.
847 (rpcuserlibs): Likewise.
848 * sysdeps/unix/Makefile [$(subdir) = stdio-common]: Check for
849 errlist.c in $(objpfx), not $(common-objpfx).
850 ($(common-objpfx)s-proto.d): Special rule not covered by pattern
852 * sysdeps/unix/make-syscalls.sh: Make syscall rules depending on
853 s-proto.d in $(common-objpfx), not $(objpfx).
855 Thu Aug 29 17:45:49 1996 Ulrich Drepper <drepper@cygnus.com>
857 * nss/nsswitch.c (nss_dlerror_run): Free returned error
860 Thu Aug 29 15:53:33 1996 Ulrich Drepper <drepper@cygnus.com>
862 * sysdeps/libm-ieee754/e_acoshl.c: New file. `long double'
864 * sysdeps/libm-ieee754/e_atanhl.c: Likewise.
865 * sysdeps/libm-ieee754/e_remainderl.c: Likewise.
866 * sysdeps/libm-ieee754/e_scalbl.c: Likewise.
867 * sysdeps/libm-ieee754/s_asinhl.c: Likewise.
868 * sysdeps/libm-ieee754/s_cosl.c: Likewise.
869 * sysdeps/libm-ieee754/s_sinl.c: Likewise.
870 * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
871 * sysdeps/libm-ieee754/s_tanl.c: Likewise.
873 Thu Aug 29 12:00:30 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
875 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Correct
876 spelling error of _hurd_itimerval.
878 * mach/Makefile (MIGFLAGS-mach/mach4): Define variable.
879 * mach/Machrules (mig.uh, mig.__h): Include $(user-MIGFLAGS) and
880 $(MIGFLAGS-$*) here too, as well as in the code-generating MiG calls.
882 * hurd/hurdinline.c: Include "hurd.h" for function definitions too.
884 * stdio/fseek.c (fseek): Don't assume we know the file position;
885 other handles may have changed it. So set STREAM.__offset to -1
886 before calling __stdio_check_offset to make sure we have a correct
889 Thu Aug 29 00:28:08 1996 Ulrich Drepper <drepper@cygnus.com>
891 * stdio-common/printf_fp.c (__printf_fp): Use default value '.' if
894 * C-numeric.c (not_available): New constant.
895 (_nl_C_LC_NUMERIC): Use `not_available' for grouping value.
897 * nss/nsswitch.conf: Example configuration file.
898 * nss/db-Makefile: Example Makefile for generation of databases
900 * nss/Makefile (distribute): Add nsswitch.conf and db-Makefile.
902 1996-08-28 Paul Eggert <eggert@twinsun.com>
904 * C-messages.c (_nl_C_LC_MESSAGES): Set yesexpr to "^[yY]" and
905 noexpr to "^[nN]"; this conforms to POSIX.2.
907 * C-time.c (_nl_C_LC_TIME): Change %d to %e in d_t_format, to
910 1996-08-28 Paul Eggert <eggert@twinsun.com>
912 * C-monetary.c (not_available): New constant.
913 (_nl_C_LC_MONETARY): Set mon_decimal_point to "", and set
914 mon_grouping, int_frac_digits, frac_digits, p_cs_precedes,
915 p_sep_by_space, n_cs_precedes, n_sep_by_space, p_sign_posn, and
916 n_sign_posn to CHAR_MAX, as required by the POSIX Standard.
918 Wed Aug 28 23:12:28 1996 Ulrich Drepper <drepper@cygnus.com>
920 * nss/nss_db/db-XXX.c: Correct function names. They must be
921 `_nss_db_*' instead of `_nss_files_*'.
922 (lookup): `parse_line' returns 1 if succesful.
923 * nss/nss_files/files-service.c (servbyname): Key for database
924 must also contain protocol names.
925 (servbypt): Likewise.
926 Test must also check for protocol. Add `proto' argument.
928 Tue Aug 27 09:56:13 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
930 * MakeTAGS ($P/subdirs.pot): Prefix all file names, not only the
933 Tue Aug 27 17:45:21 1996 Ulrich Drepper <drepper@cygnus.com>
935 * Makerules: Add some test for correct version of GNU Make.
937 * io/fcntl.h: Undo change from Mon Aug 26 22:22:17 1996.
938 * sysdeps/unix/sysv/linux/fcntlbits.h: Place macros here instead.
940 * sysdeps/generic/dl-sysdep.c: Initialize break address to
941 avoid overwriting last page (OK, Roland).
943 Tue Aug 27 16:20:37 1996 Ulrich Drepper <drepper@cygnus.com>
945 * resolv/resolv.h: Update from BIND-4.9.5-T3A.
946 * resolv/arpa/nameser.h: Likewise.
947 * resolv/res_init.c: Likewise.
948 * resolv/res_debug.c: Likewise.
949 * resolv/res_mkquery.c: Likewise.
951 Tue Aug 27 15:47:04 1996 Ulrich Drepper <drepper@cygnus.com>
953 * elf/dl-error.c (catch): Define errstring element not as const.
954 (_dl_catch_error): ERRSTRING argument is not const pointer.
955 Initialize *ERRSTRING and *OBJNAME separately.
956 * elf/link.h: Change prototype for `_dl_catch_error'.
958 * elf/dl-load.c (_dl_map_object): Use separate variable for
959 copied NAME to avoid `const' warning.
961 * elf/dlerror.c: Make `last_errstring' variable not const pointer.
963 * elf/rtld.c: Implement reading of /etc/ld.so.preload. This
964 provides preloading even for SUID binaries.
965 Add some more casts to avoid signed<->unsigned warnings.
967 Tue Aug 27 15:40:28 1996 NIIBE Yutaka <gniibe@mri.co.jp>
969 * posix/sys/types.h: Define loff_t.
970 * sysdeps/unix/sysv/linux/gnu/types.h: Define __loff_t.
972 Mon Aug 26 22:22:17 1996 Ulrich Drepper <drepper@cygnus.com>
974 * io/fcntl.h: Add definition for BSD F* macros.
976 * misc/init-misc.c (__init_misc): Make static.
977 * misc/Makefile: Pass -fkeep-inline-functions flag for init-misc.c.
979 * configure.in: Add test for -fno-exception option of gcc.
980 * config.make.in: Add definition of have-no-exceptions.
981 * Makerules: Define no-exceptions based on have-no-exceptions.
982 * csu/Makefile: When translating initfini.c pass $(no-exceptions).
983 This is necessary for gcc >= ss-960816.
985 Mon Aug 26 17:16:48 1996 Richard Henderson <rth@tamu.edu>
987 * sysdeps/alpha/dl-machine.h: Clear startup flag.
989 Fri Aug 16 21:17:50 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
991 * Makerules (o-iterator-doit): Simplify reference to autolock
994 Sat Aug 24 15:27:41 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
996 * sysdeps/mach/hurd/getcwd.c
997 (_hurd_canonicalize_directory_name_internal): After resizing the
998 buffer move the current contents to the end. Correctly relocate
999 file name pointer to upper half of the buffer.
1001 Mon Aug 26 15:49:59 1996 Ulrich Drepper <drepper@cygnus.com>
1003 * rtld.c (dl_main): Remove code to call ld.so initializer. This
1004 was introduced for compatibility with Linux ld.so and would not
1005 be used anymore. Now we don't have any good values to use as the
1006 parameters to the initializer so simply remove it.
1008 Sun Aug 25 18:25:52 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1010 * gmon/gmon.c (ERR): Don't write the terminating NUL.
1012 * sysdeps/posix/profil.c (profil): Disable the profiling timer at
1014 (profil_count): Use 64 bit arithmethic to avoid overflow.
1016 * sysdeps/generic/machine-gmon.h (MCOUNT): Fix argument order.
1018 Mon Aug 26 16:31:33 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1020 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Tolerate NEW
1021 being null; in that case don't touch the timer at all (but do
1022 return something in OLD if necessary).
1024 Mon Aug 26 13:35:16 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1026 * sysdeps/mach/hurd/i386/init-first.c (__libc_multiple_libcs): New
1028 * sysdeps/i386/init-first.c: Likewise.
1029 * sysdeps/stub/init-first.c: Likewise.
1031 Mon Aug 26 02:01:37 1996 Ulrich Drepper <drepper@cygnus.com>
1033 * elf/dl-open.c (_dl_open): Call library initializer with
1034 correct command line arguments and environment information.
1035 * elf/rtld.c (dl_main): Provide arguments to initializer of
1038 Sun Aug 25 19:15:46 1996 Ulrich Drepper <drepper@cygnus.com>
1040 * shadow/Makefile (routines): Add lckpwdf.
1041 * shadow/lckpwdf.c: New file.
1043 * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Force
1044 argument `cw' to be placed in memory. Patch by Torbjorn Granlund.
1046 Sun Aug 25 12:53:37 1996 Ulrich Drepper <drepper@cygnus.com>
1048 * configure.in: Add definition for `__eh_pc' and `__throw' in
1049 test for --no-whole-archive. The compiler generates dependencies
1050 for this but none of the standard librares and startup files
1051 are used. Necessary for gcc >= ss-960816.
1053 Sun Aug 25 01:31:33 1996 Ulrich Drepper <drepper@cygnus.com>
1055 * elf/dl-error.c (_dl_signal_error): If error is catched, malloc
1056 return string since string might be on stack.
1057 * elf/dl-lookup.c (_dl_lookup_symbol): Undo change of
1058 Wed Aug 21 10:14:59 1996.
1059 * elf/dlerror.c (dlerror): Free error string after printing.
1060 (_dlerror_run): If error string was not printed since last error
1062 * rtld.c (dl_main): Free error string in case of error.
1064 Sat Aug 24 03:16:47 1996 Ulrich Drepper <drepper@cygnus.com>
1066 * misc/syslog.c (vsyslog): Don't use `localtime' or `gmtime' since
1067 this changes the global state for `localtime' and `gmtime'. Use
1068 `__localtime_r'/`__gmtime_r' instead.
1069 * resolv/res_debug.c (__p_secstodate): Likewise.
1070 * sysdeps/generic/ftime.c: Likewise.
1071 * sysdeps/posix/gettimeofday.c: Likewise.
1072 Reported by Paul Eggert.
1074 * time/gmtime.c: De-ANSI-fy.
1075 * time/strftime.c: Don't call non-reentrant functions which change
1078 Wed Aug 21 10:14:59 1996 Richard Henderson <rth@tamu.edu>
1080 * elf/dl-lookup.c (_dl_lookup_symbol): Malloc the error string rather
1081 than putting it on the stack.
1083 Wed Aug 21 10:12:42 1996 Richard Henderson <rth@tamu.edu>
1085 * elf/rtld.c (dl_main): When looking up symbols in response to --list,
1086 don't find .plt entries.
1088 Mon Aug 19 23:18:12 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1090 * sysdeps/m68k/dl-machine.h (RTLD_START): Optimize clearing
1093 Tue Aug 20 17:42:10 1996 Miles Bader <miles@gnu.ai.mit.edu>
1095 * stdio/linewrap.c (line_wrap_stream): Initialize D->seek.
1097 Sat Aug 17 12:19:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
1099 * login/pututline_r.c (__pututline_r): Fix handling of case where
1100 getutid_r() fails with ESRCH. Reported by Miquel van Smoorenburg.
1102 Wed Aug 14 14:10:54 1996 David Mosberger-Tang <davidm@azstarnet.com>
1104 * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Change entry
1105 for "Jensen" so _bus_base() returns 0 on that platform. Use
1106 _bus_base_sparse() to determine base address of sparse memory.
1108 * sysdeps/unix/sysv/linux/sys/io.h: Enclose #include <asm/io.h>
1109 and declarations in __BEGIN_DECLS/__END_DECLS.
1111 Sun Aug 18 13:37:09 1996 Ulrich Drepper <drepper@cygnus.com>
1113 * err.h: New file. Wrapper around misc/err.h.
1115 Correct solution of multiple initialization problem by
1117 * csu/initfini.c: Remove global variable __libc_is_static.
1118 * elf/rtld.c: Introduce new global variable _dl_starting_up.
1119 It's nonzero during the startup.
1120 * elf/dl-open.c (_dl_open): When _dl_start function is not
1121 available (i.e., if in static libc) set `__libc_multiple_libcs'
1123 * sysdeps/unix/sysv/linux/init-first.c (__libc_multiple_libc):
1124 New global variable.
1125 (init): Undo change of Fri Aug 2 03:12:40 1996.
1126 Initialize `__libc_multiple_libcs' to nonzero only if this is
1127 a shared lib called from a statically linked program and don't
1128 call `personality' and `setfpucw' in this case either.
1129 * sysdeps/generic/sbrk.c: Undo change of Fri Aug 2 03:12:40 1996.
1130 Don't call brk(0) until `__libc_multiple_libcs' is nonzero.
1131 * sysdeps/i386/dl-machine.h (RTLD_START): Clear _dl_starting_up
1132 before jumping to user code.
1133 * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
1135 Fri Aug 16 04:59:01 1996 Ulrich Drepper <drepper@cygnus.com>
1137 * sysdeps/unix/sysv/linux/init-first.c: Remove hack from
1138 Thu Aug 8 12:40:20 1996.
1139 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = csu]: Use
1140 -fkeep-inline-functions flag instead.
1142 Fri Aug 16 16:11:25 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
1144 * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Treat
1145 EPFNOSUPPORT and EAFNOSUPPORT as implying NSS_STATUS_UNAVAIL just
1146 like ECONNREFUSED already does.
1147 (_nss_dns_gethostbyaddr_r): Likewise.
1148 * nss/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
1149 (_nss_dns_getnetbyaddr_r): Likewise.
1151 * sysdeps/mach/hurd/socket.c (socket): For message transmission
1152 and RPC errors that indicate that the socket server is not really
1153 present and able to do its job, turn the error into EPFNOSUPPORT.
1155 Fri Aug 16 01:24:33 1996 Ulrich Drepper <drepper@cygnus.com>
1157 * inet/ruserpass.c (userpass): Allocate buffer for .netrc file
1158 name dynamically. Reported by Alan Cox.
1159 Uncomment warnings and mark as translatable.
1161 * time/strftime (strftime): Add implementation for %s and %z
1162 format. Change behaviour for unknown format character: now
1163 simply print it. This matches the behaviour of printf.
1164 Reported by Jim Meyering.
1165 * manual/time.texi: Document all formats and flags of strftime.
1167 Thu Aug 15 18:02:51 1996 Ulrich Drepper <drepper@cygnus.com>
1169 * elf/rtld.c (dl_main): Loaded object has type lt_executable,
1172 * misc/sys/select.h: Define fd_set using typedef, not #define.
1173 Proposed by David Mosberger-Tang.
1175 Thu Aug 15 12:48:21 1996 Ulrich Drepper <drepper@cygnus.com>
1177 * po/header.pot: Use real description line.
1179 Thu Aug 15 04:42:44 1996 Ulrich Drepper <drepper@cygnus.com>
1181 * elf/rtld.c (dl_main): When started with --verify prevent
1182 any warning. Just exit with an error.
1183 * elf/ldd.sh.in: Don't run given object directly. This fails for
1184 libraries. Instead use $RTLD again.
1186 Thu Aug 15 02:08:59 1996 Ulrich Drepper <drepper@cygnus.com>
1188 * manual/nss.texi: New file. Document NSS.
1189 * manual/nsswitch.texi: New file. Example configuration.
1191 * manual/string.texi: Document stpncpy, strdupa, and strndupa.
1192 * manual/example/strdupa.c: New file. Example for strdupa.
1194 Wed Aug 14 21:36:16 1996 Ulrich Drepper <drepper@cygnus.com>
1196 * stdlib/strtod.c (STRTOD): Correct assertion about size of
1197 wint_t and wchar_t. Reported by David Mosberger-Tang.
1199 Mon Aug 12 22:40:16 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1201 * elf/dl-lookup.c (_dl_lookup_symbol): Remove fifth parameter
1202 RELOC_ADDR and make NOPLT a set of flags. All callers
1203 changed. Delete condition that checks for resolving to the
1204 location being filled in. Add condition to skip the
1205 executable's symbols if requested.
1206 * elf/link.h: Change declaration of _dl_lookup_symbol
1208 (DL_LOOKUP_NOEXEC, DL_LOOKUP_NOPLT): New definitions.
1209 * elf/dl-reloc.c (RESOLVE): Remove second parameter and rename
1211 * elf/dl-runtime.c (RESOLVE): Likewise.
1212 * elf/rtld.c (RESOLVE): Likewise.
1213 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Pass
1214 DL_LOOKUP_NOEXEC as second argument to the RESOLVE macro if
1215 processing a copy reloc, DL_LOOKUP_NOPLT for a jump slot
1216 reloc, zero otherwise.
1217 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1218 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1219 * sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
1221 Wed Aug 14 17:57:08 1996 Ulrich Drepper <drepper@cygnus.com>
1223 * MakeTAGS: Clean up use of --omit-header and -n for xgettext.
1224 * po/header.pot: Add empty line at end.
1226 Sun Aug 11 13:45:33 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1228 * MakeTAGS (all-pot): Remove $P/errlist.pot, all error messages
1229 are now in $P/stdio-common.pot.
1230 (XGETTEXTFLAGS-errlist.pot): Variable removed.
1232 Mon Aug 12 19:25:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1234 * Makerules (do-ar, o-iterator-doit): Compute path to autolock
1235 script at run time, not configure time.
1236 * config.make.in, configure.in: Undo previous change.
1238 Wed Aug 14 13:20:02 1996 Ulrich Drepper <drepper@cygnus.com>
1240 * sysdeps/unix/sysv/linux/i386/close.S: Push return value of thread
1241 on stack as argument for `_exit'. Reported by Andreas Schwab.
1243 Mon Aug 12 19:36:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1245 * sysdeps/unix/sysv/linux/m68k/clone.S: New file.
1247 Wed Aug 14 04:22:35 1996 Richard Henderson <rth@tamu.edu>
1249 * elf/dl-load.c (_dl_map_object): Save name in malloced memory.
1250 (_dl_map_object_from_fd): Free name on error.
1252 Wed Aug 14 13:00:09 1996 Ulrich Drepper <drepper@cygnus.com>
1254 * string/strdup.c: Use result of memcpy to avoid reloading.
1256 Tue Aug 13 00:55:03 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1258 * shadow/sgetspent_r.c (__sgetspent_r): Copy string to buffer, not
1259 the other way round.
1261 Tue Aug 13 20:51:21 1996 Ulrich Drepper <drepper@cygnus.com>
1263 * stdlib/canonicalize.c (canonicalize): Add cast to prevent
1266 * Makerules (o-iterator-doit): Use autolock.sh when running ranlib.
1268 Tue Aug 13 18:26:45 1996 Ulrich Drepper <drepper@cygnus.com>
1270 * nss/nsswitch.c (__nss_configure_lookup): Use fact that list is
1273 Update from bind-4.9.5-T1A.
1274 * resolv/Makefile (libresolv-routines): Add base64, inet_net_ntop,
1275 inet_net_pton, inet_net.
1277 * resolv/gethnamaddr.c: Include <sys/types.h>.
1278 * resolv/getnetnamadr.c: Likewise.
1279 * resolv/herror.c: Likewise.
1280 * resolv/inet_addr.c: Likewise.
1281 * resolv/nsap_addr.c: Likewise.
1282 * resolv/res_comp.c: Likewise.
1283 * resolv/res_data.c: Likewise.
1284 * resolv/res_init.c: Likewise.
1285 * resolv/res_mkquery.c: Likewise.
1286 * resolv/res_query.c: Likewise.
1287 * resolv/res_send.c: Likewise.
1289 * resolv/gethnamaddr.c [! SPRINTF_CHAR] (SPRINTF): Cast return
1291 * resolv/inet_ntop.c: Likewise.
1293 * resolv/gethnamaddr.c [BSD]: Include <stdlib.h>.
1294 Remove prototype of gethostbyname_ipv4.
1296 * resolv/inet_ntop.c, resolv/inet_pton.c: Use ISO C `mem*'
1297 functions instead of BSD `b*' functions.
1299 * resolv/nsap_addr.c: Add copyright message.
1301 * resolv/res_comp.c: Remove comment explaining label format.
1302 (res_mailok): Correct check.
1304 * resolv/res_debug: Include missing headers.
1305 (__fp_nquery): Handle `unused', `ad', and `cd' bits.
1306 (__p_fqnname): New function to print FQDN from compressed name.
1307 (__p_rr): Use __p_fqnname. Correct printing of ". Handle T_TXT
1308 correctly. Add handling of T_KEY and T_SIG.
1309 Handle class and type names by using name arrays instead of
1310 explicit `switch'es.
1311 (__sym_ston, __sym_ntos, __sym_ntop): New functions to use arrays.
1312 (__dn_count_labels, __p_secstodate): New functions.
1314 * resolv/resolv.h (__RES): Update version number.
1315 (res_sym): New type.
1316 Add #defines for new functions.
1317 Declare sym_ntos, sym_ntop, b64_ntop, b64_pton, __p_fqnname,
1318 __p_secstodate, dn_count_labels.
1320 * resolv/arpa/nameser.h (__BIND): Update version number.
1321 Add KEYFLAG_* and ALGORITHM_* symbols.
1322 (HEADER): Add `ad' and `cd' flags.
1324 * inet/ient.h: Add prototypes for inet_neta, inet_net_ntop,
1327 * manual/maint.texi: Document that we use bind-4.9.5.
1330 Mon Aug 12 19:03:22 1996 Thomas Bushnell n/BSG <thomas@psilocin.gnu.ai.mit.edu>
1332 * sysdeps/generic/gnu/types.h: Declare __fd_mask as `unsigned long'.
1334 * mach/Makefile (mach/mach_host.uh): Depend on
1335 $(objpfx)/mach-syscalls.mk.
1336 ($(objpfx)mach-shortcuts.h): Depend on $(objpfx)mach/mach_host.h.
1337 (This fixes a make loop; thanks to Marcus Daniels
1338 <marcus@sysc.pdx.edu> for the patch.)
1340 Mon Aug 12 16:41:52 1996 Thomas Bushnell n/BSG <thomas@gnu.ai.mit.edu>
1342 * io/getwd.c (getwd) [! PATH_MAX]: Don't assume that the user's
1343 buffer is any longer than the amount necessary to hold the
1344 filename; the Hurd getcwd uses the *entire* contents of the
1345 buffer, however long it is specified to be.
1347 Mon Aug 12 04:33:09 1996 Ulrich Drepper <drepper@cygnus.com>
1349 * nss/nsswitch.c (__nss_database_lookup): Always release locks
1350 before returning. Reported by Miles Bader.
1352 Mon Aug 12 03:31:58 1996 Ulrich Drepper <drepper@cygnus.com>
1354 * nss/nsswitch.c (__nss_configure_lookup): New function.
1355 Allows to specify services.
1356 * nss/XXX-lookup.h: Rename database variable and make global.
1357 * nss/databases.def: New file. Real names of all databases.
1359 * nss/nss.h: New file. Contains declaration useful for users
1360 and service developers.
1361 * nss/nsswitch.h: Move some declarations to nss/nss.h.
1362 * nss.h: New file. Wrapper around nss/nss.h.
1364 * nss/Makefile (headers): Add nss.h.
1365 (distributes): Add databases.def.
1367 Sun Aug 11 16:19:42 1996 Ulrich Drepper <drepper@cygnus.com>
1369 Help the poor people with fast machines by making sure only
1370 one `ar' commands works on the library.
1371 * autolock.sh: New file. Written by Tom Tromey.
1372 * Makerules (do-ar): Call autolock.sh shell script instead of
1373 directly using `ar'.
1374 * config.make.in: Make configuration variable AUTOLOCK which
1375 gets initialized by configure.
1376 * configure.in: Define variable AUTOLOCK to point to autolock.sh
1377 script and mark it to substitute.
1379 * string/Makefile: Add -fno-builtin for tst-strlen.c, too.
1381 * sysdeps/generic/sbrk.c (__sbrk): Get kernel brk address
1382 always only if in static libc or if statically linked program
1385 * sysdeps/generic/sbrk.c (__sbrk): Get kernel brk address
1386 always only if in static libc or if statically linked program
1389 Sun Aug 11 01:12:38 1996 Richard Henderson <rth@tamu.edu>
1391 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW
1392 startup by moving Icache flush from here ...
1393 (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here.
1394 (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused.
1396 * sysdeps/alpha/divrem.h: Update comment to reflect the actual
1397 calling conventions. The code is already correct.
1399 Sun Aug 11 01:06:42 1996 Richard Henderson <rth@tamu.edu>
1401 * string/Makefile: Compile tester with -fno-builtin as we want to
1402 test our implementations, not gcc's.
1404 Sat Aug 10 13:17:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
1406 * shadow.h: New file.
1408 * sysdeps/unix/sysv/linux/netinet/in.h: Move
1409 __BEGIN_DECLS/__END_DECLS up so ntohl() et al are bracketed as
1412 * socket/sys/socket.h [__cplusplus]: Use old-style __SOCKADDR_ARG.
1413 g++ 2.7.2 (and earlier) has no transparent unions support.
1415 Fri Aug 9 18:50:06 1996 David Mosberger-Tang <davidm@azstarnet.com>
1417 * sysdeps/unix/sysv/linux/alpha/ioperm.c (_bus_base_sparse): New
1418 function to determine the base address of sparse bus memory.
1419 (APECS_*): Rename to CIA_*.
1420 (APECS_SPARSE_MEM, CIA_SPARSE_MEM): New macros.
1421 (platform): Add sparse_bus_memory_base member and initialize.
1422 (sparse_bus_memory_base): New variable.
1424 Tue Aug 6 10:23:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
1426 * sysdeps/posix/ttyname_r.c (ttyname_r),
1427 sysdeps/posix/ttyname.c (ttyname): Return -1/NULL if
1428 !__isatty(fd) (POSIX.1 says so.)
1430 * sysdeps/unix/getlogin.c (getlogin): Fix to check fd 0 only.
1431 This is not a gross hack, after all---for compatibility,
1432 getlogin() really should check fd 0 only and not try to base its
1433 operation on the controlling tty.
1435 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
1437 * sysdeps/unix/getlogin.c (getlogin): Add static variable NAME,
1438 change utmp_data from static to auto.
1440 Sun Aug 11 02:56:08 1996 Ulrich Drepper <drepper@cygnus.com>
1442 * posix/unistd.h [__USE_MISC]: Add prototype for `nice'.
1443 Reported by David Mosberger-Tang.
1445 Sat Aug 10 02:05:28 1996 Richard Henderson <richard@twiddle.tamu.edu>
1447 * sysdeps/libm-ieee754/s_isnan.c [NO_LONG_DOUBLE]: Add strong
1448 alias to `__isnanl'.
1450 Fri Aug 9 17:38:58 1996 Ulrich Drepper <drepper@cygnus.com>
1452 * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
1453 get `struct timeval'.
1454 * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
1455 * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
1456 * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
1457 * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
1458 * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
1459 * sysdeps/unix/sysv/linux/direntry.h: Complete types in
1461 * io/fts.h: Include <sys/types.h> to get dev_t.
1462 Reported by Matthias Urlichs.
1464 * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
1465 _IO_file_flags. It's the same as _flags.
1466 Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
1468 Wed Aug 7 19:38:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1470 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
1472 Thu Aug 8 16:17:38 1996 Ulrich Drepper <drepper@cygnus.com>
1474 * pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
1475 * pwd/getpwent_r.c: Likewise.
1476 * pwd/getpwnam.c: Likewise.
1477 * pwd/getpwnam_r.c: Likewise.
1478 * pwd/getpwuid.c: Likewise.
1479 * pwd/getpwuid_r.c: Likewise.
1481 * grp/getgrent.c: Define BUFLEN from NSS_BUFLEN_GROUP.
1482 * grp/getgrent_r.c: Likewise.
1483 * grp/getgrgid.c: Likewise.
1484 * grp/getgrgid_r.c: Likewise.
1485 * grp/getgrnam.c: Likewise.
1487 * pwd/fgetpwent_r.c: New file. Reentrant version of fgetpwent.
1488 * pwd/fgetpwent.c: Rewrite to use fgetpwent_r.
1489 * pwd/Makefile (routines): Add fgetpwent_r.
1490 * pwd/pwd.h: Add prototypes for __fgetpwent_r and fgetpwent_r.
1492 * grp/fgetgrent_r.c: New file. Reentrant version of fgetgrent.
1493 * grp/fgetgrent.c: Rewrite to use fgetgrent_r.
1494 * grp/Makefile (routines): Add fgetgrent_r.
1495 * grp/grp.h: Add prototypes for __fgetgrent_r and fgetgrent_r.
1497 Implement shadow password lookup functions. This is no complete
1498 shadow password suite.
1499 * shadow/Makefile: New file.
1500 * shadow/fgetspent.c: New file.
1501 * shadow/fgetspent_r.c: New file.
1502 * shadow/getspent.c: New file.
1503 * shadow/getspent_r.c: New file.
1504 * shadow/getspnam.c: New file.
1505 * shadow/getspnam_r.c: New file.
1506 * shadow/putspent.c: New file.
1507 * shadow/sgetspent.c: New file.
1508 * shadow/sgetspent_r.c: New file.
1509 * shadow/shadow.h: New file.
1510 * shadow/spwd-lookup.c: New file.
1511 * shadow/nss_files/files-spwd.c: New file.
1513 Thu Aug 8 13:33:45 1996 Ulrich Drepper <drepper@cygnus.com>
1515 * sysdeps/unix/sysv/linux/ftime.c: New file. Available system
1516 call is only a stub.
1517 Reported by Matthias Urlichs.
1519 * Makeconfig [!default_cflags]: Change default value from `-g'
1522 * configure.in: Recognize i686.
1523 * sysdeps/i386/i686/Implies: Default on i586 optimized code.
1525 Thu Aug 8 12:40:20 1996 Matthias Urlichs <smurf@smurf.noris.de>
1527 * Makeconfig [$(build-omitfp) == yes]: Add to CFLAGS-.so
1528 value of CFLAGS-.o, not CFLAGS-o.
1530 * sysdeps/unix/sysv/linux/init-first.c (init): Add volatile
1531 pointer to ourself. Otherwise `gcc -O3' optimized init away.
1533 Thu Aug 8 01:41:43 1996 Ulrich Drepper <drepper@cygnus.com>
1535 * elf/Makefile: Undo change of Tue Aug 6 14:27:11 1996.
1536 * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
1538 Thu Aug 8 01:15:59 1996 Ulrich Drepper <drepper@cygnus.com>
1540 * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
1541 to 0x137f to allow long double operations.
1543 Sun Aug 4 13:12:05 1996 Richard Henderson <rth@tamu.edu>
1547 * nss/nsswitch.c (_res): Remove redundant variable definition.
1548 The real one is in resolve/res_init.c, and having both prevents
1549 using -fno-common when building the shared library.
1550 * sunrpc/rpc_prot.c (_null_auth): Same. Original is in rpc_common.c.
1552 * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
1553 a .bss object not a COMMON symbol.
1555 * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
1556 $gp before referencing __sigsetjmp symbol. Retain LITUSE for same.
1560 * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
1561 main loop for better dual-issue on EV5. Rearrange binary search to
1562 pipeline better and trim one instruction.
1566 * time/localtime.c (localtime_r): Move lock declaration back next to
1567 the comment where it was before the 960724 change.
1569 * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
1570 The second word is supposed to be the hardware manufacturer.
1572 * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
1573 * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
1575 * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
1577 * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
1578 sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
1579 Same cleanups as with EV4 GMP stuff.
1581 Tue Jul 25 03:30:56 1996 Richard Henderson <rth@tamu.edu>
1583 * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
1584 * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
1585 * sysdeps/unix/sysv/linux/i386/clone.S: New file.
1587 Sun Aug 4 00:12:41 1996 David Mosberger-Tang <davidm@azstarnet.com>
1589 * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
1592 * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
1594 Sat Aug 3 16:20:02 1996 David Mosberger-Tang <davidm@azstarnet.com>
1596 * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
1599 * socket/sys/socket.h (send, __send, sendto): Declare buffer
1602 * string/tester.c (main): Test stpncpy.
1604 * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
1605 segfault when called with an N that is not a multiple of four and
1608 * misc/syslog.c (LogType): New variable.
1609 (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
1610 try again with SOCK_STREAM (the Linux syslogd uses a socket of the
1612 (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
1613 terminator as a record-delimiter. If __send(LogFile) fails,
1614 call closelog() so logfile gets re-opened next time.
1616 Wed Aug 7 15:15:14 1996 Ulrich Drepper <drepper@cygnus.com>
1618 * elf/dl-open (_dl_open): Add cast to avoid warning.
1620 * manual/memory.texi: Improve some examples to give readers better
1621 advice: Use `stpcpy' instead of `strcat' if possible.
1622 * manual/string.texi: Document `strtok_r' and `strtok'.
1624 * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
1626 [$(cross-compiling)=no]: Change test before making librpcsvc
1627 to this from $(cross-compile).
1628 Reported by Andreas Schwab.
1630 Tue Aug 6 14:27:11 1996 Ulrich Drepper <drepper@cygnus.com>
1632 * elf/Makefile (routines): Move dl-sysdep to here...
1633 (rtld-routines): ...from here. This should make static linking
1636 * locale/setlocale.c: Add local variable `lock' and add code to
1637 `setlocale' to avoid simultaneous changing of global data.
1639 * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
1640 * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
1641 `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
1642 of unprotected names.
1644 Tue Aug 6 01:13:56 1996 Ulrich Drepper <drepper@cygnus.com>
1646 Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
1647 This requires to rename several functions to use __ protected
1649 * dirent/dirent.h: Add prototypes of __opendir, __closedir,
1651 * sysdeps/mach/hurd/closedir.c: Prepend function name with __
1652 and make old name a weak alias.
1653 * sysdeps/mach/hurd/getrlimit.c: Likewise.
1654 * sysdeps/mach/hurd/opendir.c: Likewise.
1655 * sysdeps/mach/hurd/readdir.c: Likewise.
1656 * sysdeps/stub/closedir.c: Likewise.
1657 * sysdeps/stub/opendir.c: Likewise.
1658 * sysdeps/stub/readdir.c: Likewise.
1659 * sysdeps/unix/closedir.c: Likewise.
1660 * sysdeps/unix/opendir.c: Likewise.
1661 * sysdeps/unix/readdir.c: Likewise.
1663 * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
1665 * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
1666 `__closedir' instead of unprotected names.
1668 * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
1669 instead of `isatty' since later is not part of ISO C.
1670 * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
1671 `open' since later is not part of ISO C.
1673 * login/endutent.c (endutent): Call `__endutent_r', not
1675 * login/endutent_r.c: Rename defined function to `__endutent_r',
1676 make `endutent_r' weak alias.
1677 * login/getutent.c (getutent): Call `__getutent_r', not
1679 * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
1680 * login/getutid_r.c: Rename defined function to `__getutent_r',
1681 make `getutent_r' weak alias.
1682 * login/getutline.c (getutline): Call `__getutline_r', not
1684 * login/getutline_r.c: Rename defined function to `__getutline_r',
1685 make `getutline_r' weak alias.
1686 * login/pututline_r.c: Rename defined function to `__pututline_r',
1687 make `pututline_r' weak alias.
1688 * login/setutent.c (setutent): Call `__setutline_r', not
1690 * login/setutent_r.c: Rename defined function to `__setutline_r',
1691 make `setutline_r' weak alias.
1692 Rename `utmpname' to `__utmpname' and make former weak alias.
1693 (__utmpname): Call `__strdup', not `strdup'.
1694 * login/utmp.h: Add prototypes for name space clean reentrant
1696 * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
1697 and `__endutent_r' instead of unprotected names.
1699 * math/math.h: Add prototype for `__matherr'.
1700 * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
1703 * nss/getXXbyYY.c: Call __ protected reentrant function.
1704 * nss/getXXent.c: Likewise.
1705 * nss/getXXbyYY_r.c: Define `get*' function with __ protected
1706 name. Make usual name a weak alias.
1707 * nss/getXXent_r.c: Likewise.
1709 * posix/unistd.h: Add prototype for `__ttyname_r'.
1710 * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
1711 and make `ttyname_r' a weak alias.
1713 * resource/sys/resource.h: Add prototype for `__getrlimit'.
1714 * sysdeps/stub/getrlimit.c: Prepend function name with __
1715 and make old name a weak alias.
1716 * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
1717 and make `getrlimit' weak alias.
1719 * libc/stdio/stdio.h: Add prototype for `__vscanf'.
1720 * libc/stdio/vscanf.c: De-ANSI-fy.
1721 Rename function to `__vscanf' and make `vscanf' a weak alias.
1722 * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
1725 * stdio-common/reg-printf.c: De-ANSI-fy.
1726 Rename function to `__register_printf_function' and make
1727 `register_printf_function' weak alias.
1729 * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
1732 * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
1733 * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
1734 * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
1735 * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
1736 * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
1738 * wcsmbs/mbsrtowcs.c: Likewise.
1739 * wcsmbs/wcrtomb.c: Likewise.
1740 * wcsmbs/wcsrtombs.c: Likewise.
1741 * wcsmbs/wchar.h: Add prototypes for __ protected versions.
1743 * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
1744 instead of `sigprocmask'.
1747 * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
1748 version getgrent_r, getgrgid_r, and getgrnam_r.
1749 * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
1750 version getpwent_r, getpwuid_r, getpwnam_r and __ protected
1752 * resolv/netdb.h: Complete rewrite. No more BSD ugliness.
1755 * misc/error.c (private_strerror): Translate messages from table,
1758 * io/fcntl.h: Pretty printing.
1759 * misc/fstab.h: Likewise.
1760 * misc/ttyent.h: Likewise.
1761 * resource/sys/resource.h: Likewise.
1762 * string/argz.h: Likewise.
1763 * string/envz.h: Likewise.
1765 Add support for symbols from POSIX.1c (POSIX threads).
1766 * posix/getconf.c: Handle new sysconf symbols.
1767 * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
1768 _POSIX_LOGIN_NAME_MAX with minimal maximal values.
1769 * sysdeps/generic/confname.h: Define new symbols.
1770 * sysdeps/posix/sysconf.c: Handle new symbols.
1771 * sysdeps/stub/sysconf.c: Ditto.
1772 * sysdeps/unix/sysv/linux/sysconf.c: Removed. Generic version
1775 * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
1776 have real prototype.
1778 * sysdeps/generic/resourcebits.h: Add macro definition for
1779 RLIMIT_* values. Some sources test using #ifdef whether specific
1781 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
1782 * sysdeps/unix/sysv/linux/resourcebits.h: Removed. We need
1783 separate files for the architectures.
1784 * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
1785 * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
1786 * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
1787 * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
1789 * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
1790 and only default on `OPEN_MAX'.
1791 * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed. Default is already
1794 * time/Makefile (routines): Add ctime_r.
1795 * time/asctime.c: Add implementation of `asctime_r'. Make
1796 `asctime' implementation based on reentrant version.
1797 * time/ctime_r.c: New file.
1798 * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
1801 Sat Aug 3 18:41:36 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1803 * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
1804 (_nl_C_LC_CTYPE): Fix ordering.
1805 * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
1808 Sat Aug 3 12:31:06 1996 Richard Henderson <rth@tamu.edu>
1810 * csu/initfini.c: Discover the maximum alignment generated by the
1811 compiler when emitting a function.
1812 (_init): Make sure the end of the crti fragment is aligned.
1815 Fri Aug 2 03:12:40 1996 Ulrich Drepper <drepper@cygnus.com>
1817 * initfini.c: (__libc_is_static): New variable. Will be
1818 initialized in init-first.c. Some actions in the libc work
1819 different when libc is static or dynamic.
1821 * sysdeps/unix/sysv/linux/init-first.c (init): Use
1822 `__libc_is_static' variable to determine whether call to
1823 `personality' and `setfpucw' is necessary. When done set variable
1824 to +-1 depending on library type.
1826 * locale/setlocale.c (setlocale): Use global variable
1827 `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
1828 determine whether it's a SET[UG]ID program.
1830 Fri Aug 2 14:40:22 1996 Roland McGrath <roland@fast.cs.utah.edu>
1832 * Version 1.93 test release.
1834 * manual/Makefile: Use -include for chapters-incl too.
1836 * Makeconfig (+link): Add back start.o, mistakenly removed in last
1839 Fri Aug 2 01:04:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1841 * nss/Makefile (generated): Add db-*.c.
1843 * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
1844 using #include_next.
1846 * configure.in (--enable-add-ons): Quote m4 macro args.
1848 * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
1850 Thu Aug 1 14:40:03 1996 Roland McGrath <roland@fast.cs.utah.edu>
1852 * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
1854 * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
1856 * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
1859 * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
1860 warning when inline function is elided.
1861 * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
1862 (elf_machine_runtime_setup): Likewise.
1863 * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
1864 * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
1865 (elf_machine_load_address): Likewise.
1867 * catgets/gencat.c: Include <locale.h>.
1869 * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
1871 * login/logwtmp.c (logwtmp): Call time, not __time.
1873 * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
1874 * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
1875 * login/logwtmp.c (logwtmp): Likewise.
1877 * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
1878 comparing ioctl macro values.
1880 * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
1882 * manual/Makefile: Use -include for chapters to suppress warning.
1884 * sysdeps/stub/socket.c: Fix type of TYPE arg.
1885 * sysdeps/stub/socketpair.c: Likewise.
1887 * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
1889 * sysdeps/generic/sysdep.h: New file, broken out of ...
1890 * sysdeps/unix/sysdep.h: ... here.
1891 (C_LABEL): Moved out.
1893 * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
1894 stick to sed. Do `exit 0' at end because while returns nonzero.
1896 * sysdeps/i386/sysdep.h: New file, broken out of ...
1897 * sysdeps/unix/i386/sysdep.h: ... here. Generic asm macros moved out.
1899 * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
1900 They are defined unconditionally in libio/stdio.h.
1902 * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
1903 * elf/dl-cache.c: Likewise.
1905 Mon Jul 29 19:20:05 1996 Ulrich Drepper <drepper@cygnus.com>
1907 * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
1908 (sysdep_headers): Add sys/sysmacros.h.
1909 * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
1911 Wed Jul 31 14:21:36 1996 Ulrich Drepper <drepper@cygnus.com>
1913 * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
1914 tcgetattr. We have weak aliases now.
1915 * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
1916 "optimizations" for random functions.
1918 Mon Jul 29 20:33:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1920 * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
1921 htons) [__BIG_ENDIAN]: #undef them before defining to avoid
1922 redefinition warning.
1924 Mon Jul 29 20:28:27 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1926 * time/time.h: Don't optimize tzset() to __tzset() which bypasses
1929 Tue Jul 30 15:14:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1931 * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
1934 Tue Jul 30 02:48:28 1996 Ulrich Drepper <drepper@cygnus.com>
1936 * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
1938 Reported by Richard Henderson <rth@tamu.edu>.
1940 Tue Jul 30 15:04:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1942 * locale/programs/ld-collate.c (collate_output): Fix typo reported by
1945 Tue Jul 30 13:23:13 1996 Ulrich Drepper <drepper@cygnus.com>
1947 * locale/setlocale.c (setlocale): Don't try to free C locale
1949 Reported by Matthias Urlichs.
1951 Tue Jul 30 14:35:17 1996 Miles Bader <miles@gnu.ai.mit.edu>
1953 * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
1954 (open_file): New function, contents mostly from __open.
1955 (_dl_sysdep_read_whole_file): New function.
1957 Sat Jul 27 11:23:59 1996 Miles Bader <miles@gnu.ai.mit.edu>
1959 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
1960 `..' dots in sed search string.
1962 Mon Jul 29 01:27:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1964 * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
1967 Sun Jul 28 23:46:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
1969 * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
1970 in those directories.
1971 * config.make.in (add-ons): New varaible, set from @subdirs@.
1972 * Makefile (subdirs): Added $(add-ons) at the end.
1974 * time/strftime.c (strftime: do_number): Initialize PRINTED to
1975 MAXDIGITS in case P is null and so sprintf is never actually called.
1977 Mon Jul 29 02:46:23 1996 Ulrich Drepper <drepper@cygnus.com>
1979 Add support for the to-be-written internationalized regexp.
1980 This code must be able to use collation symbols and collation
1982 * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
1983 _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
1984 New global variables for collation classes.
1985 * locale/categories.def: Add new descriptions for collation symbols
1986 and collation classes.
1987 * locale/langinfo.h: Add constants for collation symbols and
1989 * locale/lc-collate.c: Add new global variables for collation symbols
1990 and collation classes.
1991 (_nl_postload_collate): Initialize new variables.
1992 * locale/programs/ld-collate.c: Add code to emit tables for
1993 collation symbols and collation classes.
1994 * locale/programs/locales.h: Change prototype for `collate_output'.
1995 * locale/programs/locfile.c (write_all_categories): Call
1996 `collate_output' with new argument.
1997 * locale/localeinfo.h: Add declaration for new global vars.
1998 (union locale_data_value): New member wstr for `wchar_t' strings.
1999 * locale/programs/locale-spec.c: Handle `collate-classes'
2000 keyword and print information about available collation classes.
2001 * locale/strlen-hash.h: New file. Simple hashing function which
2002 takes a string with known length.
2003 * locale/Makefile (distribute): Add strlen-hash.h.
2004 (locale-modules): New var. Additional files for `locale' program.
2006 * locale/C-ctype.c: Rewrite to avoid using string for giving values
2007 which are of type `u_int32_t'.
2008 Correct entry for EOF in toupper and tolower tables.
2010 * locale/loadlocale.c (_nl_load_locale): Add cast to prevent
2013 * locale/programs/ld-ctype.c (ctype_output): Add code to make
2014 sure that all tables in binary file are word-aligned.
2016 * locale/programs/locfile.c (write_locale_data): Correct handling
2017 of LC_MESSAGES locale. Create directory if necessary.
2019 * locale/setlocale.c (setlocale): Add cast to avoid warning.
2021 * string/string.h: Add prototype for `__strndup'.
2023 Wed Jul 24 19:10:00 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2025 * wcsmbs/mbrtowc.c: Remove unused variable.
2027 Sun Jul 28 22:40:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2029 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
2030 2.0.10; some problems were reported with an earlier version, and this
2031 one is known to work.
2033 * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
2034 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2036 Sat Jul 27 13:02:09 1996 Ulrich Drepper <drepper@cygnus.com>
2038 * elf/rtld.c (dl_main): Ignore arguments when environment variable
2039 LD_TRACE_LOADED_OBJECTS is set.
2041 Sun Jul 28 19:42:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2043 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
2044 __libc_enable_secure instead of _dl_secure.
2045 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2046 * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
2048 * elf/Makefile (routines): Add enbl-secure.
2049 (elide-routines.so): Here too.
2050 * sysdeps/generic/enbl-secure.c: New file.
2051 * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
2052 * elf/dl-support.c (_dl_secure): Variable removed.
2053 * elf/rtld.c: Likewise. Replace all uses with __libc_enable_secure.
2055 Sun Jul 28 19:26:40 1996 David S. Miller <dm@neteng.engr.sgi.com>
2057 * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2058 Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
2059 compiler doesn't elide it.
2060 (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
2062 Sat Jul 27 02:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2064 * elf/rtld.c (dl_main): Take new option --verify when run directly.
2065 In verify mode, exit with status zero iff the argument object's
2066 PT_INTERP matches argv[0].
2067 * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
2068 exits with zero status. This makes `ldd' secure again.
2070 Fri Jul 26 22:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
2072 * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
2073 environment variable handling. This makes the dynamic linker
2074 only print loaded libraries and quit.
2076 * elf/ldd.sh.in: Don't use `rtld --list' but instead
2077 LD_TRACE_LOADED_OBJECTS environment variable to print needed
2080 Sat Jul 27 02:03:26 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2082 * db/makedb.c (main): Print version on stdout, not stderr. Don't exit
2083 after printing version until after doing usage for --help.
2084 (long_options, main, usage): Rename -l/--lowercase option to
2085 -f/--fold-case (-f matches sort).
2087 Sat Jul 27 04:32:31 1996 Ulrich Drepper <drepper@cygnus.com>
2089 * db/makedb.c: New file. Implement program to create simple <db.h>
2090 database from textual input. This will be used for nss_db.
2092 Sat Jul 27 01:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2094 * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
2095 * sunrpc/rpc/pmap_clnt.h: Likewise.
2096 * sunrpc/rpc/auth.h: Likewise.
2097 * sunrpc/rpc/pmap_rmt.h: Likewise.
2098 * sunrpc/rpc/rpc_msg.h: Likewise.
2100 Sat Jul 27 04:37:34 1996 Ulrich Drepper <drepper@cygnus.com>
2102 * string/string.h (strndupa): Change to use return value of
2103 `memcpy' for more performance.
2104 * string/strndup.c: Likewise.
2106 * string/string.h (strdupa): Don't call __builtin_alloca in argument.
2107 This might lead to problems.
2108 (strndupa): Likewise.
2110 Fri Jul 26 15:24:25 1996 Ulrich Drepper <drepper@cygnus.com>
2112 * sunrpc/rpc/auth.h: Add protection against multiple inclusion
2113 and change K&R prototypes to ANSI prototypes.
2114 * sunrpc/rpc/auth_unix.h: Ditto.
2115 * sunrpc/rpc/clnt.h: Ditto.
2116 * sunrpc/rpc/pmap_clnt.h: Ditto.
2117 * sunrpc/rpc/pmap_prot.h: Ditto.
2118 * sunrpc/rpc/pmap_rmt.h: Ditto.
2119 * sunrpc/rpc/rpc_msg.h: Ditto.
2120 * sunrpc/rpc/svc.h: Ditto.
2121 * sunrpc/rpc/svc_auth.h: Ditto.
2122 * sunrpc/rpc/xdr.h: Ditto.
2124 Fri Jul 26 20:39:42 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2126 * ctype/test_ctype.c: Test EOF too.
2128 Fri Jul 26 18:06:58 1996 Ulrich Drepper <drepper@cygnus.com>
2130 * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
2131 * sunrpc/rpc/auth_unix.h: Likewise.
2132 * sunrpc/rpc/clnt.h: Likewise.
2133 * sunrpc/rpc/netdb.h: Likewise.
2134 * sunrpc/rpc/pmap_clnt.h: Likewise.
2135 * sunrpc/rpc/pmap_prot.h: Likewise.
2136 * sunrpc/rpc/rpc_msg.h: Likewise.
2137 * sunrpc/rpc/svc.h: Likewise.
2138 * sunrpc/rpc/svc_auth.h: Likewise.
2139 * sunrpc/rpc/xdr.h: Likewise.
2141 * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
2143 * sunrpc/pmap_rmt.c: ...here.
2145 Fri Jul 26 16:10:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
2147 * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
2149 * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
2152 Fri Jul 26 00:36:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2154 * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
2155 <kkojima@info.kanagawa-u.ac.jp>.
2157 Fri Jul 26 04:41:28 1996 Ulrich Drepper <drepper@cygnus.com>
2159 * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
2160 defined, not __OPTIMIZED.
2161 (_nl_msg_cat_cntr): Move declaration outside macro definition
2162 to prevent "nested extern" warning.
2163 (dcgettext): Rename local variable `result' to `__result'.
2165 Thu Jul 25 22:46:30 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2167 * locale/programs/localedef.c (__progname): Remove decl.
2168 (main): Use program_invocation_short_name instead of __progname.
2169 (usage): Use program_invocation_name instead of __progname.
2171 Fri Jul 26 03:46:08 1996 Ulrich Drepper <drepper@cygnus.com>
2173 * catgets/gencat.c: Use "libc" instead of PACKAGE.
2174 * locale/localedef.c: Ditto.
2175 * locale/locale.c: Ditto.
2177 * locale/findlocale.c (_nl_find_locale): Little optimization.
2178 Use new function `strndup'.
2180 * locale/loadlocale.c: Little optimization. Use constant value
2181 from `_nl_category_num_items' instead of byte-order dependend
2184 * locale/programs/ld-time.c (time_add): Correct string constant.
2186 * locale/programs/locale-spec.c: New file.
2187 * locale/programs/locale.c: Call `locale_special' function if
2188 no other field matches.
2190 * locale/programs/localedef.c: No need to define `program_name'.
2191 Use global variable `__progname'.
2193 * locale/programs/locfile.c (write_locale_data): Always write
2194 LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file. This is
2195 necessary since message catalogs are also installed in the
2196 LC_MESSAGES/ directory.
2198 * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
2199 function instead of writing single bytes.
2200 (encode_char): Also handle little endian.
2202 * locale/setlocale.c (new_composite_name): Little optimization.
2203 Use return value of `memcpy'.
2205 * misc/ttyent.h: Pretty print prototypes, add missing parameter
2206 names, prepend parameter names with __ and use `__const' instead
2208 * posix/unistd.h: Ditto.
2209 * stdlib/stdlib.h: Ditto.
2210 * string/string.h: Ditto.
2212 * posix/getconf.c: De-ASNI-fy. Recognize POSIX.2 constant names.
2213 Use `error' function instead of doing it by hand.
2214 * sysdeps/posix/sysconf.c: De-ANSI-fy.
2215 Handle _SC_COLL_WEIGHTS_MAX.
2216 * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
2217 _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
2218 since these do depend on the platform.
2219 Add POSIX.4 symbols.
2221 * posix/posix2_lim.h: Add missing definition of
2222 _POSIX2_COLL_WEIGHTS_MAX.
2223 Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
2224 to high values since we have no fixed limit.
2226 * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
2227 _SC_PAGESIZE for buggy systems (= HP UX) out there.
2229 * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
2230 * wcsmbs/mbsnrtowcs.c: New file. Non-standard implementation.
2231 * wcsmbs/wcsnrtombs.c: Ditto.
2232 * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
2235 Thu Jul 25 00:25:54 Richard Henderson <rth@tamu.edu>
2237 * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
2239 * nss/getXXent_r.c: Likewise.
2240 * nss/nsswitch.c: Likewise.
2241 * nss/nss_files/files-XXX.c: Likewise.
2242 * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
2243 * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
2244 * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
2246 Thu Jul 25 00:53:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2248 * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
2249 macro, now put the needed Linux version just once, here; update to
2250 needing linux-2.0.3 headers.
2251 (libc_cv_linuxVER): New macro derived from that.
2252 (kernel header check): Use those macros and some m4 magic to replace
2253 hard-coded `201' and `2.0.1' in several places.
2255 * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
2257 Wed Jul 24 17:02:30 1996 Ulrich Drepper <drepper@cygnus.com>
2259 * time/localtime.c: Move lock variable declaration to end of
2260 variable declarations since if is a dummy macro the ; at the
2261 end terminates the variable section of the function.
2263 * time/tzset.c: Undefine `tzset' before function declaration.
2264 Use `weak_function' macro instead of `weak_symbol'.
2266 Wed Jul 24 18:57:33 1996 Ulrich Drepper <drepper@cygnus.com>
2268 * stdlib/strtouq.c: Additional weak alias is `strtoull', not
2271 Wed Jul 24 18:26:23 1996 Ulrich Drepper <drepper@cygnus.com>
2273 * locale/C-ctype.c: Increment number of fields after change
2274 from Wed Jun 19 03:24:58 1996.
2276 Tue Jul 23 18:13:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2278 * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
2279 ($(common-objpfx)libc.so): Move deps into that, use it.
2280 [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
2281 $(rpcuserlibs:.so=_pic.a).
2282 * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
2285 Thu Jul 18 21:41:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2287 * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
2288 n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
2290 Tue Jul 23 02:49:58 1996 Ulrich Drepper <drepper@cygnus.com>
2292 * locale/iso-4217.def: Add India to comment for symbol "INR ".
2293 Reported by Raja R Harinath <harinath@cs.umn.edu>.
2295 Sat Jul 20 14:03:45 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2297 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
2300 Sun Jul 21 06:48:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2302 * time/tzset.c: Include <libc-lock.h>.
2303 (__tzset_lock): New lock variable.
2304 (tzset): New function (weak defn), no longer weak alias for __tzset.
2305 Call __tzset while holding __tzset_lock.
2306 * time/localtime.c: Include <libc-lock.h>.
2307 (__localtime_r): Hold __tzset_lock while doing the work.
2309 * sysdeps/generic/setenv.c (__environ): Change conditional for #define
2310 from [!HAVE_GNU_LD] to [!_LIBC].
2311 [_LIBC]: Include <libc-lock.h> and define a lock.
2312 (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
2313 (setenv, unsetenv): Use them.
2315 Sun Jul 21 01:44:39 1996 Miles Bader <miles@gnu.ai.mit.edu>
2317 * locale/programs/locfile.c (write_locale_data): Deal with missing
2320 * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
2321 * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
2323 Sat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2325 Win32 hacks from <Rob_Tulloh@tivoli.com>.
2326 * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
2327 use void * for my_realloc; include <malloc.h> for alloca.
2328 (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
2329 * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
2330 * posix/glob.h: Likewise.
2332 Sat Jul 20 13:28:52 1996 Miles Bader <miles@gnu.ai.mit.edu>
2334 * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
2335 call __io_select unless there's only a single descriptor, as each
2336 descriptor now has its own reply port.
2337 If there is only a single descriptor, just use its reply port for
2338 everything and don't bother creating the port set.
2340 * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
2341 <unistd.h>: New include.
2343 * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
2346 Sat Jul 20 07:15:33 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2348 * crypt/Makefile, crypt/nocrypt.c: Removed. It is illegal to export
2349 from the USA any software that even makes it easy to drop in an
2350 encryption module of foreign origin.
2351 * Makerules (cryptobjdir): Variable removed.
2352 ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
2353 * Makefile (subdirs): Remove crypt.
2355 Fri Jul 19 15:45:20 1996 Ulrich Drepper <drepper@cygnus.com>
2357 * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
2358 operator to yesexpr and noexpr string.
2360 Fri Jul 19 15:10:37 1996 David Mosberger-Tang <davidm@azstarnet.com>
2362 * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
2363 old code would have failed on a big-endian 64-bit architecture).
2364 * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
2366 * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
2367 (xdr_u_long): Use switch instead of chain of if-statements.
2368 Remove gratitous parentheses around return expressions.
2369 (xdr_enum): Open code case where INT_MAX<LONG_MAX.
2371 * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
2373 * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
2376 Fri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2378 * dlfcn.h, db.h: New wrapper headers.
2380 * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
2381 for `struct stat;' forward decl.
2383 Fri Jul 19 22:25:19 1996 Ulrich Drepper <drepper@cygnus.com>
2385 * locale/iso-4217.def: Add some more standardized currency
2388 Fri Jul 19 13:18:02 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2390 * hurd/report-wait.c (describe_number): Use unsigned long int for J.
2392 Thu Jul 18 12:33:57 1996 Roland McGrath <roland@baalperazim.frob.com>
2394 * Rules (dummy.o, empty.o): Targets removed.
2395 (dummy.c, empty.c): New targets replace them.
2397 Thu Jul 18 11:42:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2399 * crypt/Makefile (lib-noranlib): Depend on
2400 $(objpfx)libcrypt.so$(libcrypt.so-version).
2403 Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com>
2405 * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
2406 check. mib's clueless hacking broke it.
2408 Thu Jul 18 04:27:21 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2410 * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
2412 Wed Jul 17 10:54:20 1996 David Mosberger-Tang <davidm@azstarnet.com>
2414 * misc/sys/ustat.h: New file.
2415 * misc/ustat.h: Ditto.
2416 * sysdeps/generic/ustatbits.h: Ditto.
2417 * sysdeps/stub/ustat.c: Ditto.
2418 * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
2419 * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
2421 (routines): Mention ustat.
2423 * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
2424 * sysdeps/alpha/elf/start.S: here.
2426 * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
2427 alphabetically correct place. Mention ustat.
2429 * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
2430 common symbol (makes errno accessible from gdb).
2432 * login/pututline_r.c (pututline_r): Test ut_id in repositioning
2435 * login/logwtmp.c (logwtmp): Reimplemented. Must ensure that a
2436 record always gets appended at end of file (wtmp is a log file,
2437 after all). Set ut_type to DEAD_PROCESS if name is empty.
2439 * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
2440 separate loop from search for UT_ID. Fix code so it is in
2441 sync with Unix man page.
2443 * login/getutline_r.c (getutline_r): Stop searching only if
2444 ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
2446 Tue Jul 16 15:06:18 1996 David Mosberger-Tang <davidm@azstarnet.com>
2448 * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
2449 avoid duplicate declarations.
2451 Sun Jul 14 19:08:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
2453 * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
2454 and alpha-gnu-linuxecoff targets.
2456 Fri Jul 12 16:58:44 1996 David Mosberger-Tang <davidm@azstarnet.com>
2458 * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
2460 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
2462 * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
2465 * resolv/res_comp.c (res_hnok): Use empty statement in place
2466 of NULL (which generates a "useless expression" warning in
2469 Wed Jul 17 23:56:35 1996 Roland McGrath <roland@baalperazim.frob.com>
2471 * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
2472 with $(..) in output.
2474 Wed Jul 17 21:53:45 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2476 * elf/Makefile (dl-routines): Add dl-cache.
2477 * elf/dl-cache.c: New file.
2478 * elf/dl-load.c (_dl_map_object): Check cache before default path.
2480 Wed Jul 17 20:41:30 1996 Ulrich Drepper <drepper@cygnus.com>
2482 * stdio-common/vfscanf.c: Major change. Now read character
2483 from stream only if needed. Before it was read after the
2484 previous character was used.
2485 Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
2487 * stdio-common/tstscanf.c: Change test program so that return
2488 value is != 0 if one test failed.
2490 Wed Jul 17 17:08:48 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2492 * sysdeps/m68k/Makefile (crypt): Variable removed.
2493 * sysdeps/sparc/Makefile: Likewise.
2495 * version.h (VERSION): Update to 1.93.
2497 * Makerules ($(libdir)/libc.so): Depend on
2498 $(common-objpfx)libcrypt.so$(libcrypt.so-version).
2500 * crypt/nocrypt.c: New file.
2501 * Makefile (subdirs): Add crypt.
2502 * crypt/Makefile: New file.
2504 * Makerules (soversions.mk): Move this target, include of it, and
2505 include of version.mk to ...
2506 * Makeconfig: ... here.
2507 (soversions.mk): Depend on Makeconfig instead of Makerules.
2509 * shlib-versions (*-*-*): Set libcrypt=0.
2511 Wed Jul 17 11:29:26 1996 Miles Bader <miles@gnu.ai.mit.edu>
2513 * stdio/linewrap.c (lwupdate): Fix boundary condition where a
2514 word extends right up to rmargin.
2516 * stdio/linewrap.c (lwupdate): When we've done a word wrap and
2517 output the wrap margin, set point_col to wmargin.
2518 Use negative point_col to deal with a wmargin of 0.
2519 (line_wrap_point): Return 0 for a negative point_col.
2520 (line_wrap_stream): Make wmargin ssize_t.
2521 * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
2523 (line_wrap_stream): Make wmargin ssize_t.
2524 (line_wrap_point): Return 0 for a negative point_col.
2526 Wed Jul 17 02:43:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2528 * shlib-versions (*-*-gnu*): Set libc=0.0
2530 Tue Jul 16 01:52:42 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2532 * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
2533 sysdeps/i386/dl-machine.h.
2535 Tue Jul 16 00:18:19 1996 Miles Bader <miles@gnu.ai.mit.edu>
2537 * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
2538 to fiddle __put_limit in conjunction with __linebuf_active.
2540 Tue Jul 16 00:14:07 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2542 * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
2543 to the strong name, not the file name.
2545 Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2547 * csu/initfini.c: More magic. Detect if .end is produced and put it
2548 in the output iff the compiler does.
2550 * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
2551 because that is broken on alpha.
2553 * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
2556 * Makerules (make-link): Install the new link with atomic mv -f in
2557 case ln itself requires the library being installed.
2559 Tue Jul 16 00:31:31 1996 Richard Henderson <rth@tamu.edu>
2561 * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
2562 i386/dl-machine.h of 960713.
2564 * sysdeps/generic/dl-sysdep.c: Include <sys/mman.h>.
2565 (_dl_sysdep_read_whole_file): Fix result variable declaration.
2567 Tue Jul 16 00:53:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2569 * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
2572 Mon Jul 15 17:23:53 1996 Ulrich Drepper <drepper@cygnus.com>
2574 * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
2575 with pointer to local variable instead of NULL.
2577 1996-07-15 Paul Eggert <eggert@twinsun.com>
2579 * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
2581 Sat Jul 13 09:53:39 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2583 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
2584 that are already added by other means.
2586 * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
2587 caller column to get those syscalls added automagically.
2589 Mon Jul 15 12:24:54 1996 Miles Bader <miles@gnu.ai.mit.edu>
2591 * login/logout.c (logout): Initialize DATA to a state that will
2592 make setutent_r happy.
2594 Sun Jul 14 01:51:39 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2596 * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
2597 instead of setting the DT_DEBUG pointer.
2599 * csu/initfini.c (_init, _fini): Generate .end directives after
2600 standalone prologues and filter them out from epilogues.
2602 * Makeconfig (rtld-installed-name): Set to ld.so.1.
2603 * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
2606 * manual/Makefile (glibc-targets): Remove subdir_ from elts.
2608 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
2610 * MakeTAGS (extract): Pass --add-comments=TRANS.
2611 * sysdeps/gnu/errlist.awk: Write comments into the output with the
2612 descriptive paragraphs from the manual preceded by TRANS.
2614 * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
2615 (_dl_start): Move RESOLVE defn inside this function and #include
2616 "dynamic-link.h" a second time there.
2617 [RTLD_START]: Move use of this after _dl_start function.
2619 * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
2621 * elf/rtld.c: Include <string.h>.
2623 * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
2624 ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
2625 Conditionalize defns on [RESOLVE].
2626 * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
2627 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
2628 Instead use RESOLVE macro with same args.
2629 (elf_machine_rel): Conditionalize defn on [RESOLVE].
2630 * elf/dl-reloc.c (RESOLVE): New macro, define before including
2631 "dynamic-link.h". It replaces `resolve' local function.
2632 * elf/dl-runtime.c: Likewise.
2633 * elf/rtld.c: Likewise.
2635 * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
2637 * elf/dl-open.c (_dl_open): Force an indirect call for
2638 _dl_relocate_object so there is no chance a PLT fixup will be done
2639 and clobber _dl_global_scope before our call happens.
2641 * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
2642 to =t; must operate on top of fp reg stack, not second from top.
2643 Correct input constraint to 0 from t; must be explicit when input and
2644 output are the same register.
2645 (floor): Use __volatile instead of volatile.
2648 * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
2651 Sat Jul 13 23:50:17 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2653 * manual/Makefile (lib): New phony target. Depend on stamp files.
2654 ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
2656 1996-07-13 Paul Eggert <eggert@twinsun.com>
2658 * time/strftime.c (strftime): Use space padding for %e, %k, %l,
2659 to match Emacs format-time-string specification.
2660 (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
2662 Sat Jul 13 20:17:38 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2664 * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
2665 NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
2666 between MAP and its deps.
2667 * elf/link.h: Fix decl.
2668 * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
2669 colon-separated list of names, map those and pass vector of ptrs as
2670 PRELOADS list to _dl_map_object_deps.
2671 * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
2672 _dl_map_object_deps with empty preload list.
2673 * elf/dl-open.c (_dl_open): Likewise.
2675 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
2677 (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
2678 * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
2679 Conditionalize defn on [! MAP_ANON].
2680 * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
2682 * elf/rtld.c (dl_main): Likewise.
2683 * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
2684 (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
2686 * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
2688 Sat Jul 13 02:47:53 1996 David Mosberger-Tang <davidm@azstarnet.com>
2690 * stdlib/random.c (__random): Declare as int32_t to be in sync
2693 * socket/Makefile (headers): Add socketbits.h.
2695 * misc/mntent.c (endmntent): Allow for NULL stream. SunOS does
2698 * grp/initgroups.c (initgroups): Add groups that user is a member
2699 of, not the ones he is _not_ a member of.
2701 * nss/nsswitch.c (known_compare): Make known_compare() a static
2702 instead of a local function. The latter are difficult to debug
2703 and slow to execute on certain platforms.
2705 * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
2706 place of sizeof (dev). The size of a literal string includes the
2709 * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
2711 Thu Jul 11 16:59:10 1996 David Mosberger-Tang <davidm@azstarnet.com>
2713 * misc/mntent.c (addmntent): Seek to end of file before writing
2714 entry. Return 1 on error, not -1.
2716 Tue Jul 9 19:08:05 1996 David Mosberger-Tang <davidm@azstarnet.com>
2718 * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
2721 Fri Jul 5 18:44:55 1996 David Mosberger-Tang <davidm@azstarnet.com>
2723 * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
2724 shift amount for Jensen must be 5 not 4.
2726 Sat Jul 13 20:04:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2728 * socket/sys/socket.h (struct osockaddr): New type.
2730 Sat Jul 13 03:50:53 1996 Ulrich Drepper <drepper@cygnus.com>
2732 * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
2733 * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
2734 and `long double' versions can be generated.
2735 * misc/qefgcvt.c, misc/qefgcvt_r.c: New files. Define macros
2736 so that included efgcvt{,_r}.c file generate `long double'
2738 * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
2741 * manual/startup.texi: Document new getsubopt function.
2742 * manual/examples/subopt.c: New example program for documenting
2745 Fri Jul 12 23:58:37 1996 Ulrich Drepper <drepper@cygnus.com>
2747 * stdlib/Makefile (routines): Add getsubopt.
2748 * stdlib/stdlib.h: Add prototype for getsubopt.
2749 * stdlib/getsubopt.c: New file. Implement getsubopt function
2750 to handle suboption parsing.
2752 Thu Jul 11 20:09:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2754 * inet/getnetent_r.c: Define NEED_H_ERRNO.
2755 * inet/getnetbynm_r.c: Likewise.
2756 * inet/getnetent.c: Likewise.
2757 * inet/getnetbyad_r.c: Likewise.
2758 * inet/getnetbyad.c: Likewise.
2759 * inet/getnetbynm.c: Likewise.
2761 * sysdeps/generic/pselect.c: Include <sys/time.h>.
2763 * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
2766 * math/Makefile (calls): Add s_frexp, s_ldexp.
2767 (routines): Remove them and &f from here.
2769 * sys/socket.h: New file, wrapper for socket/sys/socket.h.
2771 * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
2774 * nss/nss_files/files-XXX.c: Comment fix.
2776 Fri Jul 12 01:28:35 1996 Ulrich Drepper <drepper@cygnus.com>
2778 * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
2779 of reentrant function.
2780 (setup): Pass additional argument with function name we are
2782 (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
2783 new argument {SET,END,GET}FUNC_NAME_STRING.
2785 * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
2786 we return a pointer.
2788 Thu Jul 11 18:20:44 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2790 * nss/nss_files/files-parse.c: Add comment about things to #define.
2792 * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
2794 * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
2795 terminator char as an error.
2797 * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
2799 Thu Jul 11 03:21:10 1996 Ulrich Drepper <drepper@cygnus.com>
2801 * catgets/gencat.c (write_out): Move code to determine new
2802 best size out of inner loop.
2804 Thu Jul 11 00:22:40 1996 Ulrich Drepper <drepper@cygnus.com>
2806 * sysdeps/libm-ieee754/s_frexpl.c: New file. `long double'
2807 implementation of frexp() function.
2808 * sysdeps/libm-ieee754/s_ldexpl.c: New file. `long double'
2809 implementation of ldexp() function.
2811 * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
2814 Wed Jul 10 05:24:40 1996 David Mosberger-Tang <davidm@azstarnet.com>
2816 * misc/mntent.c: Include <sys/types.h>.
2817 (endmntent): Return 1 one success, 0 on failure.
2818 (getmntent): Chop newline and ignore empty lines.
2820 Mon Jul 8 21:18:40 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2822 * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
2823 differently based on [RTLD_BOOTSTRAP].
2824 (elf_machine_rela): Use it instead of the fn ptr arg directly.
2826 Tue Jul 9 09:37:55 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2828 * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
2829 __glob_closedir_hook): Remove decls.
2831 * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
2833 * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
2834 for send and connect syscalls.
2836 * socket/sys/socket.h: New file, taken from non-sysdep parts of
2837 linux/sys/socket.h; break sysdeps parts out into socketbits.h.
2838 Declare __ names for send and connect.
2839 * sysdeps/generic/socketbits.h: New file.
2840 * sysdeps/unix/sysv/linux/socketbits.h: New file.
2841 * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
2842 * sysdeps/generic/sys/socket.h: File removed.
2844 * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
2845 * sysdeps/mach/hurd/send.c: Likewise.
2847 * sysdeps/mach/libc-lock.h: New file.
2848 * sysdeps/unix/readdir.c: Do locking.
2849 * sysdeps/unix/seekdir.c: Likewise.
2850 * sysdeps/unix/rewinddir.c: Likewise.
2851 * sysdeps/unix/closedir.c: Likewise.
2852 * sysdeps/unix/bsd/telldir.c: Likewise.
2853 * sysdeps/mach/hurd/seekdir.c: Likewise.
2854 * sysdeps/mach/hurd/readdir.c: Likewise.
2855 * sysdeps/mach/hurd/closedir.c: Likewise.
2856 * sysdeps/mach/hurd/opendir.c: Initialize the lock.
2857 * sysdeps/unix/opendir.c: Likewise.
2858 * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
2859 (struct __dirstream): Add lock member using __libc_lock_define.
2860 * sysdeps/unix/dirstream.h: Likewise.
2862 * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
2864 * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
2866 * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
2868 Thu Jul 4 01:34:04 1996 Ulrich Drepper <drepper@cygnus.com>
2870 * locale/programs/stringtrans.c: Fix typo in copyright.
2872 * stdio-common/printf-prs.c: Add casts to prevent
2873 signed<->unsigned warnings.
2875 * stdio-common/printf-parse.h: Initialize state variable before
2877 * stdio-common/printf-prs.c: Don't initialize state variable here.
2878 * stdio-common/vfprintf.c: Don't initialize state variable.
2879 (vfprintf): While determining length of multibyte string don't
2880 try to be clever in determining characters to use for first
2883 Add real implementation of multibyte<->wide char conversion
2884 functions. The functions always convert between the fixed wide
2885 char format (ISO 10646 in UCS4) and the UTF8 representation of
2886 this character set. Conversion between the currently used
2887 8bit character set and ISO 10646 will not take place. This is
2888 what iconv() is for.
2889 * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
2891 Add optimized version of `mbrlen' function.
2892 * wcsmbs/btowc.c (btowc): Restrict range of legal characters
2894 * wcsmbs/wctob.c (wctob): Restrict range of legal characters
2896 * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
2897 This is needed in the wchar.h header.
2898 * wcsmbs/mbrtowc.c: Replace dummy implementation. Convert UTF8
2899 encoded character to UCS4.
2900 * wcsmbs/mbsinit.c: Replace dummy implementation. Test COUNT
2901 element of `mbstate_t' for initial state.
2902 * wcsmbs/mbsrtowcs.c: Replace dummy implementation. Convert UTF8
2903 encoded string to UCS4 string.
2904 * wcsmbs/wcrtomb.c: Replace dummy implementation. Convert UCS4
2905 character to UTF8 encoded form.
2906 * wcsmbs/wcsrtombs.c: Replace dummy implementation. Convert UCS4
2907 encoded string to UTF8 encoded form.
2909 Tue Jul 9 06:19:29 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2911 * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
2912 variable name, so new a libc with new requirements won't fail to
2913 notice an insufficient Linux version.
2915 * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
2917 * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
2918 instead of 2.0 headers.
2920 * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
2922 * sysdeps/gnu/errlist.awk: Undo mib's bogus changes. The
2923 sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
2925 * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
2926 before using it in lhs of weak_alias.
2928 * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
2929 Call __nss_lookup when not setting STARTP.
2930 (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
2931 function-calling loop.
2933 Tue Jul 9 00:14:52 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
2935 * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
2936 PENDIN, NOFLSH): Undefine these at start if they are already
2937 defined to avoid collision with termbits.h.
2938 * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
2939 (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
2941 Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2943 * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
2944 already defined to float, long double. Use those macros for _Mdouble_
2945 defns when including mathcalls.h.
2946 * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
2947 -D_Mlong_double_=double.
2949 Add more -lm functions to -lc because ldexp uses them.
2950 * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
2951 (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
2952 ldexp have both f and l code, and those have f though not l code.
2954 Mon Jul 8 13:10:50 1996 Michael I. Bushnell p/BSG <mib@gnu.ai.mit.edu>
2956 * sysdeps/mach/hurd/errnos.awk: Skip entries where the
2957 error is 0. The "placeholder" entries recently added to
2958 errno.texi convert to zero since `???/' is at the front of them.
2959 * sysdeps/gnu/errlist.awk (errnoh): Likewise.
2961 * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
2962 __const to conform with unistd.h.
2964 * stdlib/stdlib.h (random): Declare return type to be int32_t.
2966 * string/argz-delete.c (argz_delete): Use memmove instead of
2967 memcpy for possibly overlapping strings.
2969 Mon Jul 8 02:14:25 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2971 * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
2972 storage class. GCC gives an error for non-extern data defns with the
2975 Mon Jul 8 01:37:34 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
2977 * string/argz-insert.c (__argz_insert): (__argz_insert): Use
2978 memmove instead of memcpy for possible overlapping strings.
2980 Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
2982 * libc-symbols.h (weak_function): New macro.
2983 For GCC 2.7+ define as __attribute__ ((weak)).
2984 * elf/dl-minimal.c: Use weak_function as keyword in function defns
2985 instead of weak_symbol (NAME) after the defn.
2986 * stdlib/strtol.c: Likewise.
2987 * stdlib/strtod.c: Likewise.
2988 * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2990 * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
2991 If this is defined, don't declare _dl_rtld_map as weak, and
2992 don't check for MAP pointing to it. RESOLVE is always null in this
2993 case, so test with #ifdef instead of if.
2995 * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
2997 * csu/initfini.c (_init): Likewise.
2998 * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
2999 * misc/efgcvt_r.c: Likewise.
3000 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
3001 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3003 * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
3004 It was not used in any assembler code.
3005 (weak_symbol_asm): Renamed to weak_extern_asm.
3006 (weak_extern): New macro replaces weak_symbol for weak extern refs;
3007 define to weak_extern_asm for [!ASSEMBLER].
3009 Sun Jul 7 18:42:06 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3011 * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
3012 weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
3013 define those now as aliases.
3014 Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
3015 [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
3016 after GCC weak attribute decl.
3018 * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
3019 map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
3020 (element printer): Check for elt in ALIAS, instead of special case
3023 * io/Makefile (headers): Add sys/vfs.h.
3024 * io/sys/vfs.h: New file.
3026 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
3027 critical section lock before unlinking dying active resources.
3028 The unlock just before return is right (i.e. old code unlocked twice).
3030 Sun Jun 2 22:28:43 1996 Miles Bader <miles@gnu.ai.mit.edu>
3032 * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
3033 Use memmove instead of memcpy where overlap is possible (not
3034 necessary using current implementation of memcpy, but...).
3035 (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
3037 Fri May 31 11:48:46 1996 Miles Bader <miles@gnu.ai.mit.edu>
3039 * stdio/linewrap.c (lwupdate): New function, mostly was
3040 __line_wrap_update. Use POINT_COL field instead of POINT.
3041 (__line_wrap_output): Use lwupdate.
3042 (__line_wrap_update): New function.
3043 (ensure_unwrapped, ensure_wrapped): New functions.
3044 (line_wrap_set_lmargin, line_wrap_set_rmargin,
3045 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
3047 * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
3048 POINT_COL. Add POINT_OFFS field.
3049 (__line_wrap_update): New decl.
3050 (line_wrap_set_lmargin, line_wrap_set_rmargin,
3051 line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
3053 Fri Jul 5 17:34:47 1996 Miles Bader <miles@gnu.ai.mit.edu>
3055 * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
3057 * login/pututline_r.c (pututline_r): Since we assign RESULT from
3058 lseek now, check that it's >= 0, not == 0.
3060 Wed Jul 3 13:28:04 1996 Miles Bader <miles@gnu.ai.mit.edu>
3062 * login/login.c (login): Make a copy of *UT, fill in various
3063 fields that we supply (ut_line, ut_type, ut_pid), and use the copy
3066 * login/getutline_r.c (getutline_r): When we return ESRCH, mark
3067 UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
3069 Fri Jul 5 12:22:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3071 * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
3072 signal during critical section doing interruptible RPC, if
3073 _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
3074 before thread_resume. If in critical section, pass 0 for SIGNO to
3075 _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
3077 * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
3079 * sysdeps/unix/sysv/linux/sys/user.h: New file.
3080 * sysdeps/unix/sysv/linux/Dist: Add it.
3081 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
3083 * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
3084 points within DATA->linebuffer; otherwise use all of DATA->linebuffer
3085 itself, no need to skip past a NUL.
3087 * nss/nsswitch.h (known_function): Comment fix.
3088 * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
3089 directly. Do the lookup and insertion with a single call, and fill in
3090 the tree node afterwards if new.
3091 (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
3093 * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
3094 (struct timeval): Add bodiless decl for scope.
3096 * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
3097 Move struct timespec defn outside [_TIME_H] so it can be got with
3098 #define __need_timespec.
3100 * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
3101 for `struct timespec' member names.
3102 (TIMESPEC_TO_TIMEVAL): Likewise.
3104 * nss/Makefile (extra-libs-others): New variable.
3106 * extra-lib.mk: Don't test for $($(lib)-no-lib-dep). Instead match
3107 $(lib) in $(extra-libs-others).
3108 * sunrpc/Makefile (extra-libs-others): New variable.
3109 (librpcsvc-no-lib-dep): Variable removed.
3111 * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
3112 * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
3114 (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
3115 (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
3116 (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
3117 _dl_rtld_map weak only here.
3119 * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
3121 Thu Jul 4 05:21:59 1996 David Mosberger-Tang <davidm@azstarnet.com>
3123 * login/utmp.h: Fix typos.
3125 * misc/syslog.c (vsyslog): Use __send instead of send and
3126 __connect instead of connect to avoid name-space collisions (e.g.,
3129 Wed Jul 3 16:29:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3131 * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
3133 * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
3135 * malloc/malloc-size.c (malloc_usable_size): Renamed from
3136 malloc_object_allocation_size.
3137 * malloc/malloc.h: Fix decl.
3139 * sys/select.h: New file, wrapper header.
3141 * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
3142 fd_set, associated macros, and select decl.
3144 * sysdeps/posix/isfdtype.c: New file.
3146 Tue Jul 2 23:45:14 1996 Ulrich Drepper <drepper@cygnus.com>
3148 The latest Japanese proposal for POSIX locales renames the
3149 CHARMAP keyword in locale definition files to CHARCONV.
3150 * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
3151 function ctype_is_charmap to ctype_is_charconv.
3152 * locale/programs/locfile-kw.gperf: Replace charmap keyword with
3154 * locale/programs/locfile-token.h: Add definition of token
3156 * locale/programs/locfile.c: Recognize charconv keyword. Rename
3157 lables according to this.
3159 * locale/weight.h (get_weight): Cast constants to prevent
3162 * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
3163 string/strxfrm.c: Add some more casts to prevent signed<->unsigned
3166 New stuff described in P1003.1g.
3167 * misc/Makefile (headers): Add sys/select.h.
3168 (routines): Add pselect.
3169 * misc/sys/select.h: New file. Declare select functions and
3170 needed data types and macros.
3171 * sysdeps/generic/pselect.c: New file. Add generic implementation
3172 of pselect() function which uses select().
3174 * posix/getconf.c: Recognize new variables from P1003.1g.
3175 * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
3176 _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
3177 * posix/unistd.h: Add description of the P1003.1g variables.
3178 * sysdeps/generic/confname.h: Define _SC_* values for new
3180 * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
3182 * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
3183 * sysdeps/posix/sysconf.c (sysconf): Add handling of new
3185 * sysdeps/stub/sysconf.c (sysconf): Ditto.
3186 * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
3187 _POSIX_SELECT since Linux has this.
3189 * socket/Makefile (routines): Add isfdtype.
3190 * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
3191 * sysdeps/stub/isfdtype.c: New file. Stub implementation of
3194 * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
3196 Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3198 * elf/Makefile (LDFLAGS-dl.so): New variable.
3199 (libdl.so): Depend on eval.so.
3200 (distribute): Add eval.c.
3201 * elf/eval.c: New file.
3203 * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
3204 in case it wrote fewer than MAXDIGITS chars.
3206 * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
3207 newline from flushing full buffer in loop, fix test so no fflush is
3208 done when last byte written exactly fills the buffer.
3210 * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
3212 * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
3213 (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
3215 * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
3216 extracting _dl_rtld_map.l_addr.
3218 * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
3220 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
3222 * shlib-versions (*-*-*): Set libnss_db=1.
3224 Tue Jul 2 10:44:37 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3226 * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
3228 * rpm/template (%build): Use @prefix@ instead of always /usr.
3229 Set up configparms only if @prefix@ is in fact /usr.
3230 * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
3232 * elf/Makefile: Add missing endif.
3234 * nss/nss_files/files-ethers.c (ntohost): Fix db key.
3236 * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
3237 (DATABASE): Define this instead of DATAFILE.
3238 * nss/nss_files/files-hosts.c: Likewise.
3239 (hostbyname): Use LOOKUP_NAME macro.
3241 * nss/nss_db/db-XXX.c: New file.
3242 * nss/Makefile (services): Add db.
3243 (libnss_db-inhibit-o): New variable.
3244 (libnss_db-routines): New variable.
3245 (distribute): Append db-XXX.c.
3246 (libnss_db.so): Depend on libdb.so and libnss_files.so.
3247 ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
3249 * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
3251 (DATAFILE): New macro.
3252 * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
3254 * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
3255 Pass db key args to DB_LOOKUP.
3256 (DATAFILE): Macro removed.
3257 (DATABASE): New macro replaces it, lacks "/etc/" prefix.
3258 * nss/nss_files/files-service.c: Likewise.
3259 * nss/nss_files/files-pwd.c: Likewise.
3260 * nss/nss_files/files-proto.c: Likewise.
3261 * nss/nss_files/files-grp.c: Likewise.
3262 * nss/nss_files/files-ethers.c: Likewise.
3264 * elf/linux-compat.c: File removed.
3265 * elf/Makefile (distribute): Remove linux-compat.c.
3266 (ld-linux.so.1): Remove target and associated variables.
3268 * sunrpc/xdr.c: Remove malloc decl.
3269 * sunrpc/portmap.c: Likewise.
3271 * sunrpc/svc_tcp.c (abort): Don't declare. Instead define as macro
3272 casting abort to fn returning bool_t.
3274 * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
3275 the parser function.
3276 [EXTERN_PARSER] (LINE_PARSER): Define to empty.
3277 * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
3278 * nss/nss_files/files-grp.c: Likewise.
3280 * Makeconfig (BUILD_CC): If undefined, define to $(CC).
3282 * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
3284 * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
3285 of ld.so so lookups for that soname find it.
3287 * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
3288 (resobjdir, LDLIBS-nss_dns.so): Variables removed.
3290 * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
3291 define parse_line function.
3292 (parse_line): #define to _nss_files_parse_pwent and
3293 add extern decl for that.
3295 * nss/nss_files/files-XXX.c (internal_getent): Return
3296 NSS_STATUS_TRYAGAIN for ERANGE error.
3298 * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
3299 of null, so next round returns null again instead of bombing. Fix
3302 * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
3303 Remove ; after `ENTDATA_DECL (data)'.
3304 Truncate line at strpbrk (line, EOLSET "\n").
3305 (ENTDATA_DECL): Put ; at end.
3306 (MIDLINE_COMMENTS): Macro removed.
3307 * nss/nss_files/files-ethers.c: Pass new argument.
3308 * nss/nss_files/files-hosts.c: Likewise.
3309 * nss/nss_files/files-network.c: Likewise.
3310 * nss/nss_files/files-parse.c: Likewise.
3311 * nss/nss_files/files-proto.c: Likewise.
3312 * nss/nss_files/files-rpc.c: Likewise.
3313 * nss/nss_files/files-service.c: Likewise.
3314 * grp/fgetgrent.c: Likewise.
3315 * pwd/fgetpwent.c: Likewise.
3316 * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
3317 fgetpwent.c already defines it.
3318 * nss/nss_files/files-grp.c: Likewise.
3320 * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
3321 as well as any matching with l_libname. Fix DT_SONAME lookup to use
3322 string table properly.
3324 * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
3325 invoked directly, and l_libname from that if PT_INTERP missing.
3326 Set l_name from l_libname only if not set from argv.
3328 * time/europe, time/northamerica: Updated from ADO 96i.
3330 Mon Jul 1 15:44:34 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3332 * stdio-common/tst-ungetc.c: Include unistd.h.
3334 * inet/Makefile (routines): Change getnetbypt to getnetbyad.
3336 Mon Jul 1 13:32:42 1996 Miles Bader <miles@gnu.ai.mit.edu>
3338 * hurd/report-wait.c (describe_number): Make I unsigned long.
3340 * login/login.c (login): Only Frob OLD->ut_type if getutline_r
3341 actually found any entry.
3343 * login/pututline_r.c (pututline_r): If not located after any
3344 entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
3345 Lock the file before stating.
3347 Mon Jul 1 12:29:50 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3349 * nss/Makefile (databases): Change host to hosts.
3350 * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
3352 * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
3354 * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
3356 * string/string.h (strndupa): Pass missing arg to strnlen.
3358 * inet/getnetbypt_r.c: Renamed to ...
3359 * inet/getnetbyad_r.c: this; fixed function name.
3360 * inet/getnetbypt.c: Renamed to ...
3361 * inet/getnetbyad.c: this; fixed function name.
3363 Sat Jun 29 01:08:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3365 * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
3368 Fri Jun 28 23:25:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
3370 * login/login.c (login): Initialize DATA so that setutent_r will
3371 actually do something.
3373 Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
3375 * resolv/res_hconf.c (strndup): Remove function.
3377 * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
3378 using ElfW() instead of Elf32_*.
3380 * sysdeps/unix/sysv/linux/alpha/init-first.h,
3381 sysdeps/unix/sysv/linux/m68k/init-first.h,
3382 sysdeps/unix/sysv/linux/i386/init-first.h: New files.
3383 * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
3384 init-first.h to make abstract machine dependent parts of
3387 * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
3388 error handling. It's safer that way.
3390 * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
3391 Fix by Richard Henderson.
3393 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
3394 typo/extraneous whitespace.
3396 * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
3397 determine what integer sizes we're dealing with.
3399 Fri Jun 28 15:46:02 1996 Michael I. Bushnell, p/BSG <mib@gnu.ai.mit.edu>
3401 * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
3402 check for signal zero, repair logical sense of test by
3403 parenthesizing correctly.
3405 * hurd/hurdsig.c (_hurd_internal_post_signal): In
3406 check-for-pending signals code, release _hurd_siglock before
3407 jumping to deliver_pending.
3409 Thu Jun 27 04:04:27 1996 David Mosberger-Tang <davidm@azstarnet.com>
3411 * configure.in (config_machine): Make ELF the default even for
3412 Linux/Alpha unless a configuration of the form *-*-linux*ecoff
3415 Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3417 * nss/nss_files/files-hosts.c (ENTDATA): Define it.
3418 * nss/nss_files/files-parse.c (struct parser_data): Define entdata
3419 member only #ifdef ENTDATA.
3420 (ENTDATA_DECL): New macro.
3421 (LINE_PARSER): Use it for entdata decl.
3422 (parse_list): Find the space for LIST from DATA->linebuffer instead of
3423 from the input LINE, which might not be writable buffer space.
3424 (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
3425 [ENTDATA] (parser_stclass): #define to `static inline'.
3426 [!ENDATA] (parser_stclass): #define to empty.
3427 [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
3428 function is exported to -lnss_files users.
3430 * string/strndup.c: Add missing arg.
3432 * string/string.h (strndupa): Likewise.
3433 * string/strndup.c (strndup): Always terminate the string.
3435 Thu Jun 27 14:22:31 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3437 * stdio/Makefile (routines): Add vscanf.
3438 * stdio-common/Makefile (routines): Remove vscanf.
3439 * stdio-common/vscanf.c: Move to ...
3440 * stdio/vscanf.c: here.
3442 * rpm/Makefile (headers, install-lib, install-lib.so,
3443 versioned, install-bin, install-sbin, install-data,
3444 install-others): Add $(-VARIABLE).
3446 Fri Jun 28 02:41:08 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3448 * nss/Makefile (databases): New variable.
3449 (routines, libnss_files-routines): Use it.
3450 (subdir-dirs): Compute from $(services).
3452 * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
3453 init_module, klogctl): Use EXTRA in the "caller" column so these get
3454 added to unix-extra-syscalls and thus compiled in misc.
3456 * string/Makefile (routines): Add strndup.
3457 * string/strndup.c: New file.
3458 * string/string.h: Declare strndup.
3459 (strndupa): New macro.
3461 * string/string.h: Declare __strdup.
3462 * string/strdup.c: Deansideclized. Define __ name and weak alias.
3464 * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
3466 Thu Jun 27 02:49:28 1996 Ulrich Drepper <drepper@cygnus.com>
3468 * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
3470 * grp/initgroups.c (initgroups): De-ansi-fy.
3471 Move declaration of NGROUPS and GROUPS outside #if so that
3472 the code compiles for NGROUPS_MAX != 0.
3474 * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
3475 (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
3476 ether_ntoa, ether_ntoa_r, and ether_ntoh.
3477 * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
3478 inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
3479 inet/ether_ntoh.c: New files. Implementation of functions to
3480 handle Ethernet address to host mapping.
3481 * inet/netinet/ether.h: New file. Declare ether_* functions.
3482 * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
3484 * nss/ethers-lookup.c: New file. Lookup function for ethers database.
3485 * nss/Makefile (routines): Add ethers-lookup.
3486 (libnss_files-routines): Add files-ethers.
3488 * nss/getXXent_r.c: Don't define set*ent and end*ent function
3491 * nss/nss_files/files-XXX.c (internal_endent): Don't reset
3492 KEEP_STREAM every time called.
3493 (_nss_files_end): Reset KEEP_STREAM here instead.
3494 (internal_getent): If STREAM == NULL try to open instead of
3496 Use cast to prevent warning.
3497 Terminate read line in case the buffer is too small.
3499 * nss/nss_files/files-ethers.c: New file. Implementation of
3500 Ethernet adress<->hostname lookup through files interface.
3502 * stdlib/mbstowcs.c: Define based on mbsrtowcs().
3503 * stdlib/mbtowc.c: Define based on mbrtowc().
3504 * stdlib/wcstombs.c: Define based on wcsrtombs().
3505 * stdlib/wctomb.c: Define based on wcrtomb().
3507 * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
3508 unexpected_sizes_in_xdr_u_int.
3510 * sysdeps/generic/netinet/if_ether.h: New file. Generic declaration
3511 of `struct ether_addr'.
3512 * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file. Linux specific
3513 declaration of `struct ether_addr'.
3515 * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
3516 * wcsmbs/mbsrtowcs.c: Ditto.
3517 * wcsmbs/wcrtomb.c: Ditto.
3518 * wcsmbs/wcsrtombs.c: Ditto.
3520 * wcsmbs/mbsinit.c: Prepare for PS being NULL.
3522 Wed Jun 26 13:19:35 1996 Miles Bader <miles@gnu.ai.mit.edu>
3524 * hurd/get-host.c <fcntl.h>: New include.
3525 * hurd/set-host.c <fcntl.h>: New include.
3526 (_hurd_set_host_config): Include NEW in args to dir_link.
3527 Return NWROTE, not NREAD.
3529 * sysdeps/mach/hurd/getcwd.c
3530 (_hurd_canonicalize_directory_name_internal): Don't deallocate
3531 DOTID & DOTDEVID until we're finished with them (we need to keep
3532 them at least until we've fetched the next level of id ports, so
3533 that mach will be able to use the same name if they're the same).
3534 Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
3535 jumps to errlose, for those places where such cleanup is needed.
3537 Wed Jun 26 01:58:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3539 * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
3541 Move DB code into separate -ldb library.
3542 * db/Makefile (extra-libs): New variable, list libdb.
3543 (routines): Renamed to libdb-routines.
3544 * shlib-versions: Add libdb=2.
3546 * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
3547 * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
3549 * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
3550 of strncasecmp. Extend syntax to grok [!foo=bar].
3552 * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
3554 * string/string.h: Declare __strncasecmp.
3556 * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
3557 (service_alias): Variable removed.
3558 (nss_parse_service_list): New function, broken out of nss_getline.
3559 Remove alias conversion; we will just use symlinks.
3560 (__nss_database_lookup): Take new string arg DEFCONFIG.
3561 If no entry exists, make one with service list parsed from that.
3562 * nss/nsswitch.h: Update protocol for __nss_database_lookup.
3563 * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
3564 (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
3566 * grp/initgroups.c: Rewritten using getgrent. Handle unlimited group
3569 * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
3571 Wed Jun 26 01:56:50 1996 Ulrich Drepper <drepper@cygnus.com>
3573 * locale/programs/locale.c (long_options): Short form of
3574 --version option is `-V'.
3575 (main): Recognize `-V' as option, not `-v'.
3576 Call `usage' instead of printing error message for illegal
3578 (usage): Document `-V'.
3580 Tue Jun 25 17:22:55 1996 Miles Bader <miles@gnu.ai.mit.edu>
3582 * sysdeps/mach/hurd/getcwd.c
3583 (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
3584 THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
3586 Tue Jun 25 10:58:23 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3588 * inet/getrpcent.c: Fix macros.
3589 * inet/getrpcent_r.c: Fix macros.
3591 * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
3593 * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
3595 Tue Jun 25 09:55:47 1996 David Mosberger-Tang <davidm@AZStarNet.com>
3597 * catgets/gencat.c (write_out): Use %Zu to print variables of type
3599 * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
3600 cast it to (unsigned long) to make it work both on 32 and 64
3603 Sat Jun 22 13:05:25 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3605 * locale/Makefile (distribute): Add `programs/' prefix to all
3606 files in that directory.
3608 * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
3611 * MakeTAGS (sources, headers): Make them simply expanded variables
3612 so that all-dist is expanded before it is changed.
3614 Tue Jun 25 02:59:11 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3616 * Make-dist (dist): Don't depend on crypt tar file. Remove that rule.
3617 * Makefile (subdirs): Remove crypt.
3618 * crypt: Directory removed. It will be made an independent library
3621 * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
3623 * inet/getrpcent_r.c (DATABASE_NAME): New macro.
3625 * inet/getrpcbynumber.c (BUFLEN): New macro.
3627 * configure.in (--no-whole-archive check): Remove backslashes in cmd.
3629 * Makefile (headers): Add libc-lock.h.
3630 * sysdeps/stub/libc-lock.h: New file.
3632 * inet/getrpcbynumber.c: Remove _r typo.
3634 * elf/dl-load.c (_dl_map_object): Fix typo in last change.
3636 * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
3639 * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
3640 or doesn't mention DATABASE, use an internal default equivalent to
3641 "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
3642 (nss_lookup_function): Call nss_new_service as needed.
3643 (nss_parse_file): Don't bother calling nss_new_service here.
3645 * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
3646 * pwd/fgetpwent.c: Likewise.
3648 * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
3649 * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
3650 * malloc/malloc-size.c: New file.
3651 * malloc/malloc-walk.c: New file.
3653 * malloc/malloc-find.c (malloc_find_object_address): Return null if
3654 PTR is outside the heap.
3656 * elf/dl-load.c (_dl_map_object): If the requested name matches the
3657 soname of a loaded object, use that object.
3659 Mon Jun 24 19:57:01 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3661 * Makefile (subdirs): Add nss.
3663 * inet/Makefile (routines): Add getrpcent, getrpcbyname,
3664 getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
3665 * inet/getrpcbynumber_r.c: New file.
3666 * inet/getrpcbynumber.c: New file.
3667 * inet/getrpcbyname.c: New file.
3668 * inet/getrpcbyname_r.c: New file.
3669 * inet/getrpcent_r.c: New file.
3670 * inet/getrpcent.c: New file.
3671 * nss/rpc-lookup.c: New file.
3672 * nss/nss_files/files-rpc.c: New file.
3673 * nss/Makefile (routines): Add rpc-lookup.
3674 (libnss_files-routines): Add files-rpc.
3675 * sunrpc/Makefile (routines): Remove getrpcent.
3676 * sunrpc/getrpcent.c: File removed.
3678 * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
3681 * Makeconfig (rpath-link): Add $(nssobjdir).
3682 (nssobjdir): New variable.
3684 * Makerules: Move shared library building before objects rules, so
3685 versions are known before extra-lib.mk gets included.
3686 * extra-lib.mk (lib-noranlib): Depend on the shared object too.
3688 * pwd/getpwuid.c: Rewritten using nss.
3689 * pwd/getpwnam.c: Likewise.
3690 * pwd/getpwent.c: Likewise.
3691 * grp/getgrnam.c: Likewise.
3692 * grp/getgrgid.c: Likewise.
3693 * grp/getgrent.c: Likewise.
3694 * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
3695 * pwd/getpwent_r.c: New file.
3696 * pwd/getpwnam_r.c: New file.
3697 * pwd/getpwuid_r.c: New file.
3698 * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
3699 * grp/getgrnam_r.c: New file.
3700 * grp/getgrgid_r.c: New file.
3701 * grp/getgrent_r.c: New file.
3702 * grp/Makefile (routines): Remove grpopen, grpread.
3703 * pwd/Makefile (routines): Remove pwdopen, pwdread.
3704 * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
3706 * pwd/fgetpwent.c: Rewritten using files-parse.c.
3707 * grp/fgetgrent.c: Likewise.
3709 * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
3710 * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
3711 * nss/nss_files/files-grp.c: New file.
3712 * nss/nss_files/files-pwd.c: New file.
3714 * nss/Makefile (subdir-dirs): New variable; use it in vpath.
3716 * nss/nss_files/files-parse.c: New file.
3717 * nss/nss_files/files-XXX.c: New file.
3718 * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
3719 nss/nss_files/files-service.c, nss/nss_files/files-network.c:
3720 Rewritten using them.
3722 * nss/Makefile (libnss_files-routines): Remove files-host.
3723 Add files-hosts, files-grp, files-pwd.
3725 * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
3727 Mon Jun 24 22:39:12 1996 Richard Henderson <rth@tamu.edu>
3729 * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3730 A .plt entry now loads the .rela.plt offset directly rather
3731 than making us calculate it.
3733 Sun Jun 23 15:24:05 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3735 * time/Makefile ($(installed-localtime-file) rule): Do
3736 $(make-target-directory) first.
3738 * resolv.h: Fix wrapper for resolv/resolv.h.
3740 * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
3741 Compile dummy file and pass -nostdlib -nostartfiles so as not to
3742 require installed libraries.
3744 * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
3747 Sun Jun 23 19:42:05 1996 Ulrich Drepper <drepper@cygnus.com>
3749 * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
3750 and mapv4v6hostent.h.
3751 (routines): Move res* and gethnamaddr into libresolv-routines.
3752 (libresolv-routines): New variable, put them there.
3753 (extra-libs): New variable, list libresolv.
3754 (CPPFLAGS): Add -D for get*by* to res_get*by*.
3756 * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
3758 * inet/herrno.c: New file.
3760 * resolv/res_init.c: Remove res_hconf calls.
3762 * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
3763 nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
3764 nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
3765 nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
3766 nss/service-lookup.c: New files. Implementation of name
3767 service switch, following the approach in Solaris.
3768 Interface specification and general structure inspired by Peter
3769 Eriksson <pen@lysator.liu.se>.
3770 * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
3771 nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
3772 Implementation of libnss_files.so module for file based databases
3774 * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
3775 if libnss_dns.so module for DNS name lookup in NSS service.
3777 * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
3778 inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
3779 Changed to serve as interface to NSS.
3780 * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
3781 inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
3782 inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
3783 inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
3784 inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
3785 inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
3786 inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files. Implement
3787 interfaces to NSS, including reentrant functions.
3789 * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
3790 resolv/sethostent.c: Removed: Obsoleted by NSS.
3792 * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
3793 gethnamaddr.c. These private functions are now used in more
3796 * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
3798 Sat Jun 22 16:49:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3800 * rpm/Makefile ($(config)): Make sure the word list in the for
3801 loop is syntactically non-empty.
3803 Sat Jun 22 21:29:52 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3805 * Version 1.92 test release.
3807 Sat Jun 22 23:30:07 1996 David Mosberger-Tang <davidm@azstarnet.com>
3809 * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
3810 to klogctl to match prototype in sys/klog.h.
3812 * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
3813 * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
3815 * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
3816 Remove. Code is now part of __getcwd again. The old function
3817 never really worked for anything but THISDIR==".".
3819 * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
3820 only when building ELF version of library.
3822 * libio/libioP.h (_IO_vscanf): Add prototype.
3824 * posix/unistd.h (syscall): Change sysno arg and return value
3827 Sat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3829 * version.h (VERSION): Updated to 1.92.
3831 * misc/Makefile (headers): Add ar.h.
3832 * misc/ar.h: New file.
3834 * config.make.in (BUILD_CC): New variable.
3835 * configure.in: Check for BUILD_CC if $host != $build.
3837 * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
3839 * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
3840 (stamp$o files): New targets, create them empty, no deps.
3842 * rpm/template (Source): New field.
3843 (%prep, %build, %install): New sections.
3844 (%files): Add %doc FAQ NEWS NOTES README.
3845 * rpm/rpmrc (builddir): Removed.
3847 Fri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3849 * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
3850 guessing to not assume p_vaddr of first load cmd is zero.
3852 * sysdeps/sparc/elf/start.S: New file.
3853 * sysdeps/sparc/dl-machine.h: New file.
3855 * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
3856 only for ?s, not for *s. Fix from Chet Ramey.
3858 Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
3859 * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
3860 Use __{BEGIN,END}_DECLS.
3861 (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
3862 * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
3863 New macros, moved here from sysdeps/gnu/utmpbits.h.
3864 * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
3865 * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
3866 * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
3867 Use sizeof instead of UT_*SIZE.
3868 * login/logwtmp.c: Likewise.
3870 * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
3872 * version.c (banner): Add trailing newline.
3874 * login/utmp.h: Declare login_tty.
3876 Thu Jun 20 21:19:07 1996 Richard Henderson <rth@tamu.edu>
3878 * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
3879 Changed to a 12-byte PLT entry to remove dependency on $gp.
3880 Take a new got_addr parameter.
3881 (elf_machine_rela): Pass the new parameter.
3882 (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
3883 (RTLD_START): Do normal linkage with program entry.
3885 Thu Jun 20 12:18:21 1996 Miles Bader <miles@gnu.ai.mit.edu>
3887 * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
3889 * hurd/getuids.c (getuids): New weak link to __getuids.
3891 Wed Jun 19 10:21:24 1996 Miles Bader <miles@gnu.ai.mit.edu>
3893 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
3894 __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
3896 Rename nested function lookup to lookup_op.
3897 (__file_name_lookup, __file_name_lookup_under):
3898 Pass 0 for lookup arg to __hurd_file_name_lookup.
3899 (__file_name_split): Likewise for __hurd_file_name_split.
3900 * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
3901 Rename nested function lookup to scan_lookup.
3902 (file_name_path_lookup): Pass 0 for lookup arg to
3903 hurd_file_name_path_lookup.
3904 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
3905 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
3906 __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
3907 Add LOOKUP argument.
3908 * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
3909 __hurd_file_name_lookup.
3911 Mon Jun 17 19:09:49 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3913 * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
3914 up a huge list just to discard most of it.
3916 * configure.in (sysnames): Avoid fgrep by using the case shell
3919 * Makeconfig (config.status): Fix dependency on Implies files.
3921 Wed Jun 19 01:27:57 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
3923 * math/Makefile (distribute): Add ieee-math.c.
3925 Wed Jun 19 03:24:58 1996 Ulrich Drepper <drepper@cygnus.com>
3927 * locale/codeset_name.c: New file. Provide function for information
3928 about currently used character set.
3929 * locale/Makefile (routines): Add codeset_name.
3930 * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
3931 * locale/localeinfo.h: Change magic number because of incompatible
3933 * locale/C-ctype.c: Add initializer for new field `codeset_name'.
3934 * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
3936 * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
3937 name `MAX_IOVEC'. Instead use standard name `UIO_MAXIOV'.
3939 * locale/setlocale.c (setlocale): Initialize local variables to
3942 Thu Jun 13 17:25:11 1996 David Mosberger-Tang <davidm@azstarnet.com>
3944 * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
3946 * locale/programs/locale.c: Include string.h.
3948 * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
3949 (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
3950 appropriate sign-extension is performed on machines with
3953 * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
3954 sizeof(int)<sizeof(long), we need to go through a temporary
3957 * locale/programs/ld-numeric.c: Include <alloca.h>
3959 * libio/stdio.h (__libc_fatal): Add prototype.
3961 * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
3964 * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
3965 volatile to avoid "might get clobbered by longjmp" warning.
3967 * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
3968 unless _LOOSE_KERNEL_NAMES is in effect (which, with high
3969 probability is a sure loser).
3970 * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
3972 * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
3973 * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
3975 * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
3976 to be Linux FSSTND compliant.
3978 Mon Jun 10 17:50:31 1996 David Mosberger-Tang <davidm@azstarnet.com>
3980 * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
3982 * sysdeps/unix/sysv/linux/alpha/sysdep.S,
3983 sysdeps/unix/sysv/linux/alpha/brk.S,
3984 sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
3985 sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
3986 sysdeps/unix/sysv/linux/alpha/llseek.S,
3987 sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
3988 sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
3989 __syscall_error to avoid intruding application name space.
3991 * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
3992 to SYS_get?id so that syscall stubs in sysdeps/unix define
3993 these syscalls in terms of getxpid/getxuid/getxgid.
3995 * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
3996 sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
3997 sysdeps/unix/execve.S, sysdeps/unix/fork.S,
3998 sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
4000 * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
4001 (PSEUDO_END): Rename END() to PSEUDO_END().
4003 * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
4004 to PSEUDO_END to improve branch-prediction. Include .frame
4005 directive to make syscalls debugabble.
4006 (PSEUDO_END): New macro.
4008 * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
4009 sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
4010 latter is illegal under DEC Unix.
4012 * sysdeps/unix/alpha/sysdep.S: Renamed from
4013 sysdeps/unix/sysv/linux/alpha/sysdep.S. This file works for OSF/1
4015 * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
4016 EWOULDBLOCK -> EAGAIN mapping was unnecessary since
4017 EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
4019 * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
4020 address register in the .frame directive.
4022 * sysdeps/alpha/copysign.c: Remove.
4024 * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
4025 avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
4027 * errno.h: Move __END_DECLS to correct place to make file
4028 compilable under c++.
4030 * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro. Define
4031 d_ino only if <direntry.h> hasn't defined d_fileno.
4033 * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
4034 arguments to weakext to make .weakext detection work on ECOFF systems.
4036 * FAQ: Add Linux/Alpha to list of supported platforms. Mention
4037 that _validuser() has been replaced by __ivaliduser().
4039 Thu Jun 6 21:39:38 1996 David Mosberger-Tang <davidm@azstarnet.com>
4041 * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
4042 as unsigned long, not as int (to avoid incorrect int->long
4047 See ChangeLog.5 for earlier changes.