update from main archive 961105
[glibc.git] / ChangeLog
blob1d4d396c9089674778faf2f650ea554fcf2f52d6
1 Wed Nov  6 04:30:26 1996  Ulrich Drepper  <drepper@cygnus.com>
3         * sysdeps/unix/sysv/linux/syscalls.list: Add weak alias llseek for
4         _llseek syscall.  Reported by Andy Sewell <puck@pookhill.demon.co.uk>.
6         * string/argz.h: Don't protect by __USE_GNU.
8 Tue Nov  5 23:38:28 1996  Ulrich Drepper  <drepper@cygnus.com>
10         * Lots of files: Update and reformat copyright.
12         * Makefile (headers): Add xopen_lim.h.
14         * catgets/nl_types.h: Move __BEGIN_DECLS before definition of nl_catd.
16         * grp/grp.h: Define setgrent, getgrent, endgrent, and getgrent_r
17         if __USE_XOPEN_EXTENDED is defined.
18         * pwd/pwd.h: Define setpwent, getpwent, endpwent, and getpwent_r
19         if __USE_XOPEN_EXTENDED is defined.
21         * io/Makefile (routines): Add lchown.
23         * io/sys/poll.h: Add definition of POLLWRNORM.
25         * io/sys/stat.h: Declare lstat, fchmod, mknod when
26         __USE_XOPEN_EXTENDED is defined.
28         * libio/Makefile (routines): Add obprintf.
29         * libio/obprintf.c: New file.
30         * libio/iolibio.h: Add prototypes for _IO_obstack_vprintf and
31         _IO_obstack_printf.
32         * libio/libio.h: Fix typo.
33         * libio/stdio.h: Declare tempnam if __USE_XOPEN_EXTENDED is defined.
34         Add prototypes for obstack_vprintf and obstack_printf.
36         * manual/creature.texi: Describe _XOPEN_SOURCE macro.
37         * manual/intro.texi: Add reference to NSS chapter.
38         * manual/libc.texinfo: Update UPDATED.
39         Comment out `@printindex cp'.  It works again.
40         * manual/memory.texi: Add description for obstack_ptr_grow,
41         obstack_int_grow, obstack_ptr_grow_fast, and obstack_int_grow_fast.
42         * manual/nss.texi: Add a few @cindex entries and change NSS_STATUS_*
43         index entries to @vindex.
44         * manual/users.texi: Correct @cindex entry for Netgroup.
46         * math/mathcalls.h: Use __USE_XOPEN and __USE_XOPEN_EXTENDED to
47         make declarations visible for X/Open sources.
49         * misc/search.h: Declare insque/remque only is __USE_SVID or
50         __USE_XOPEN_EXTENDED is defined.
52         * misc/sys/uio.h (readv, writev): Change return value from int to
53         ssize_t.
55         * posix/Makefile (headers): Add re_comp.h.
56         * posix/re_comp.h: New file.  XPG interface to regex functions.
58         * posix/getconf.c: Add all names from XPG4.2.
59         * posix/posix1_lim.h: Increase minimum values for _POSIX_CHILD_MAX
60         and _POSIX_OPEN_MAX to minimums from XPG4.2.
61         * sysdeps/generic/confname.h: Add all _SC_* names from XPG4.2.
62         * sysdeps/posix/sysconf.c: Handle new _SC_* values.
63         * sysdeps/stub/sysconf.c: Likewise.
65         * posix/unistd.h: Add declaration of ualarm and lchown.  Declare
66         usleep, fchown, fchdir, nice, getpgid, setsid, getsid, setreuid,
67         setregid, vfork, ttyslot, symlink, readlink, gethostid, truncate,
68         ftruncate, getdtablesize, brk, sbrk, lockf when
69         __USE_XOPEN_EXTENDED is defined.
71         * posix/sys/wait.h: Declare wait3 if __USE_XOPEN_EXTENDED is defined.
73         * shadow/shadow.h: Define SHADOW using _PATH_SHADOW.
74         * sysdeps/generic/paths.h: Define _PATH_SHADOW.
75         * sysdeps/unix/sysv/linux/paths.h: Likewise.
77         * signal/signal.h: Declare killpg, sigstack and sigaltstack when
78         __USE_XOPEN_EXTENDED is defined.
80         * stdio/stdio.h: Declare tempnam when __USE_XOPEN is defined.
82         * stdlib/stdlib.h: Make rand48 functions available when __USE_XOPEN
83         is defined.
84         Likewise for valloc, putenv, realpath, [efg]cvt*, and getsubopt
85         functions.
87         * string/string.h: Make memccpy, strdup, bcmp, bcopy, bzero, index,
88         and rindex available when __USE_XOPEN_EXTENDED is defined.
90         * sysdeps/mach/getpagesize.c: De-ANSI-fy.  Change return type to int.
91         * sysdeps/posix/getpagesize.c: Likewise.
92         * sysdeps/stub/getpagesize.c: Likewise.
93         * sysdeps/unix/getpagesize.c: Likewise.
95         * time/africa: Update from tzdata1996l.
96         * time/asia: Likewise.
97         * time/australia: Likewise.
98         * time/europe: Likewise.
99         * time/northamerica: Likewise.
100         * time/pacificnew: Likewise.
101         * time/southamerica: Likewise.
102         * time/tzfile.h: Update from tzcode1996m.
104         * time/time.h: Declare strptime if __USE_XOPEN.
105         Declare daylight and timezone also if __USE_XOPEN.
107         * time/sys/time.h: Remove declaration of ualarm.
109         * wctype/wctype.h: Just reference ISO C standard.
111 Tue Nov  5 01:26:32 1996  Richard Henderson  <rth@tamu.edu>
113         * crypt/Makefile: Add crypt routines to libc as well iff
114         $(crypt-in-libc) is set.  Do this for temporary binary compatibility
115         on existing Linux/Alpha installations.
117         * stdlib/div.c, sysdeps/generic/div.c: Move file to .../generic/.
118         * stdlib/ldiv.c, sysdeps/generic/ldiv.c: Likewise.
119         * stdlib/lldiv.c, sysdeps/generic/lldiv.c: Likewise.
120         * sysdeps/alpha/Makefile (divrem): Add divlu, dviqu, remlu, and
121         remqu.
122         * sysdeps/alpha/div.S: New file.
123         * sysdeps/alpha/ldiv.S: New file.
124         * sysdeps/alpha/lldiv.S: New file.
125         * sysdeps/alpha/divrem.h: Merge signed and unsigned division.
126         Take pointers from Linus and tighten the inner loops a bit.
127         * sysdeps/alpha/divl.S: Change defines for merged routines.
128         * sysdeps/alpha/divq.S: Likewise.
129         * sysdeps/alpha/reml.S: Likewise.
130         * sysdeps/alpha/remq.S: Likewise.
131         * sysdeps/alpha/divlu.S: Remove file.
132         * sysdeps/alpha/divqu.S: Likewise.
133         * sysdeps/alpha/remlu.S: Likewise.
134         * sysdeps/alpha/remqu.S: Likewise.
136         * sysdeps/alpha/bsd-_setjmp.S: If PROF, call _mcount.
137         * sysdeps/alpha/bsd-setjmp.S: Likewise.
138         * sysdeps/alpha/bzero.S: Likewise.
139         * sysdeps/alpha/ffs.S: Likewise.
140         * sysdeps/alpha/htonl.S: Likewise.
141         * sysdeps/alpha/htons.S: Likewise.
142         * sysdeps/alpha/memchr.S: Likewise.
143         * sysdeps/alpha/memset.S: Likewise.
144         * sysdeps/alpha/s_copysign.S: Likewise.
145         * sysdeps/alpha/s_fabs.S: Likewise.
146         * sysdeps/alpha/setjmp.S: Likewise.
147         * sysdeps/alpha/stpcpy.S: Likewise.
148         * sysdeps/alpha/stpncpy.S: Likewise.
149         * sysdeps/alpha/strcat.S: Likewise.
150         * sysdeps/alpha/strchr.S: Likewise.
151         * sysdeps/alpha/strcpy.S: Likewise.
152         * sysdeps/alpha/strlen.S: Likewise.
153         * sysdeps/alpha/strncat.S: Likewise.
154         * sysdeps/alpha/strncpy.S: Likewise.
155         * sysdeps/alpha/strrchr.S: Likewise.
156         * sysdeps/alpha/udiv_qrnnd.S: Likewise.  Fix private labels.
157         Convert two small jumps to use conditional moves.
158         * sysdeps/unix/alpha/sysdep.h: Compress all __STDC__ nastiness.
159         (PSEUDO): If PROF, call _mcount.
160         * sysdeps/unix/sysv/linux/alpha/brk.S: If PROF, call _mcount.
161         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
162         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
163         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
164         * sysdeps/unix/sysv/linux/alpha/llseek.S: Likewise.
165         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
166         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
168         * sysdeps/alpha/memcpy.S: New file.  Odd layout because it should
169         eventually contain memmove as well.
170         * sysdeps/alpha/strcmp.S: New file.
171         * sysdeps/alpha/strncmp.S: New file.
172         * sysdeps/alpha/w_sqrt.S: New file.
174 Tue Nov  5 18:06:06 1996  Ulrich Drepper  <drepper@cygnus.com>
176         * sysdeps/mach/hurd/ttyname_r.c: Use `size_t' for len variable.
178 Tue Nov  5 12:09:29 1996  Ulrich Drepper  <drepper@cygnus.com>
180         * sysdep/generic/sysdep.h: Define END only if not yet defined.
181         * sysdep/unix/sysdep.h: Define PSEUDO_END only if not yet defined.
182         Reported by Thomas Bushnell, n/BSG.
184 Mon Nov  4 22:46:53 1996  Ulrich Drepper  <drepper@cygnus.com>
186         * manual/users.texi (Netgroup Data): Remove { } around @cindex.
188 Mon Nov  4 19:07:05 1996  Ulrich Drepper  <drepper@cygnus.com>
190         * malloc/calloc.c: Check for overflow before trying to allocate
191         memory.  Proposed by Neil Matthews <nm@adv.sbc.sony.co.jp>.
193 Fri Nov  1 18:18:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
195         * manual/llio.texi (Operating Modes): Add missing arguments to
196         @deftypevr in O_NONBLOCK description.
198         * manual/time.texi (Time Zone Functions): Enclose type name in
199         braces in description of tzname.  FIXME: this does not yet work
200         correctly in info.
202 Sun Nov  3 17:29:06 1996  Ulrich Drepper  <drepper@cygnus.com>
204         * features.h: Add X/Open macros.
205         * posix/unistd.h: Define X/Open macros.
206         * sysdeps/generic/confname.h: Add _SC_XOPEN_XCU_VERSION,
207         _SC_XOPEN_UNIX, _SC_XOPEN_CRYPT, _SC_XOPEN_ENH_I18N,
208         _SC_XOPEN_SHM, _SC_2_CHAR_TERM, _SC_2_C_VERSION, and _SC_2_UPE.
209         * sysdeps/posix/sysconf.c: Handle new constants.
210         * sysdeps/stub/sysconf.c: Likewise.
211         * sysdeps/unix/sysv/linux/posix_opt.h: Add definition of _XOPEN_SHM.
213         * catgets/catgets.c (catopen): Set errno to ENOMEM when
214         we run out of memory.
215         (catgets): Set errno to EBADF when catalog handle is invalid.
216         Set errno to ENOMSG when translation is not available.
217         (catclose): Set errno to EBADF when catalog handle is invalid.
219         * ctype/ctype.h: Declare isascii and toascii when __USE_XOPEN.
220         Likewise for _toupper and _tolower.
222         * manual/arith.texi: Document strtoq, strtoll, strtouq, strtoull,
223         strtof, and strtold.
224         * manual/math.texi: Document HUGE_VALf and HUGE_VALl.
225         * manual/stdio.h: Document ' flag for numeric formats of scanf.
226         * manual/users.texi: Document that cuserid shouldn't be used.
228         * misc/Makefile (routines): Add dirname.
229         (headers): Add libgen.h.
230         (tests): Add tst-dirname.
231         * misc/dirname.c: New file.
232         * misc/libgen.h: New file.
233         * misc/tst-dirname.c: New file.
235         * misc/search.h: Parameter of hcreate must be of type size_t.
236         * misc/hsearch.c: Likewise.
237         * misc/hsearch_r.c: Likewise for hcreate_r.
238         * misc/search.h: Parameters of insque and remque must be `void *'.
239         * misc/insremque.c: Likewise.
241         * posix/unistd.h: Move declarations of mktemp and mkstemp to...
242         * stdlib/stdlib.h: ...here.
243         * posix/unistd.h [__USE_XOPEN]: Add prototypes for crypt, setkey,
244         encrypt, and swab.
246         * stdio-common/printf-parse.h (struct printf_spec): Add pa_wchar
247         and pa_wstring.
248         (parse_one_spec): Remove Linux compatibility code.
249         Recognize %C and %S formats.
250         * stdio-common/printf.h: Add PA_WCHAR and PA_WSTRING.
251         * stdio-common/vfprintf.c: Add implementation of %C and %S format.
252         * stdio-common/vfscanf.c: Likewise for scanf.
254         * stdlib/l64a.c: Return value for 0 must be the empty string.
255         * stdlib/stdlib.h: Declare reentrant function from rand49 family
256         only if __USE_REENTRANT.
257         Declare rand48 functions also if __USE_XOPEN.
259         * stdlib/strtol.c: Return 0 and set errno to EINVAL when BASE is
260         not a legal value.
261         Return 0 and set errno to EINVAL when strou* sees negativ number.
262         * stdlib/tst-strtol.c: De-ANSI-fy.
263         Change expected results for test of unsigned function and negative
264         input.
266         * string/stratcliff.c: Prevent warnings.
267         * string.h: Move declaration of swab to <unistd.h>.
268         * string/swab.c: De-ANSI-fy.
270         * sysdeps/posix/cuserid.c: Implement using getpwuid_r.
271         * sysdeps/posix/mkstemp.c: Include <stdlib.h> for prototype.
272         * sysdeps/posix/mktemp.c: Likewise.
273         * sysdeps/stub/mkstemp.c: Likewise.
274         * sysdeps/stub/mktemp.c: Likewise.
276         * sysvipc/sys/ipc.h: Prototypes of ftok have to be of types `const
277         char *' and `int'.
278         * sysvipc/ftok.c: Likewise.  Make sure only lower 8 bits of
279         PROJ_ID are used.
281 Sun Nov  3 03:21:28 1996  Heiko Schroeder  <Heiko.Schroeder@post.rwth-aachen.de>
283         * locale/programs/ld-numeric.c (numeric_output): Compute idx[0]
284         correctly.
286 Sat Nov  2 17:44:32 1996  Ulrich Drepper  <drepper@cygnus.com>
288         * sysdeps/posix/cuserid.c: Use reentrant functions.
289         * manual/users.texi: Tell that cuserid is marked to be withdrawn in
290         XPG4.2.
292 Sat Nov  2 14:26:37 1996  Ulrich Drepper  <drepper@cygnus.com>
294         Linus said he will make sure no system call will return a value
295         in -1 ... -4095 as a valid result.
296         * sysdeps/unix/sysv/linux/i386/sysdep.h: Correct test for error.
297         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
298         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
299         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
301 Sat Nov  2 16:54:49 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
303         * sysdeps/stub/lockfile.c [!USE_IN_LIBIO]: Define weak alias for
304         __funlockfile, not a circular alias.
305         Define __IO_ftrylockfile if USE_IN_LIBIO and __ftrylockfile if not,
306         not vice versa.
308         * sysdeps/unix/sysv/linux/i386/sysdep.S (__errno_location): Make
309         it a weak symbol.
310         * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location): Likewise.
312 Tue Nov  5 00:04:48 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
314         * stdio-common/vfprintf.c: Include <libc-lock.h>.
316 Mon Nov  4 16:57:42 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
318         * sysdeps/mach/hurd/ttyname_r.c (ttyname_r): Change prototype to
319         match POSIX.1c.
321         * sysdeps/stub/lockfile.c [! USE_IN_LIBIO]: Second definition of
322         __internal_funlockfile (in terms of itself) should actually be a
323         definition of __funlockfile.
325         * pwd/pwd.h: Get `size_t' from <stddef.h>.
326         * grp/grp.h: Likewise.
327         * shadow/shadow.h: Likewise.
329         * stdlib/atexit.c (__new_exitfn): Add missing semicolons after
330         calls to __libc_lock_lock and __libc_lock_unlock.
331         * stdlib/random.c (__srandom, __initstate, __setstate, __random):
332         Likewise.
334         * hurd/hurdsig.c (write_corefile): Fix typo.
336         * sysdeps/mach/hurd/sigwait.c: New file.
338 Sat Nov  2 01:48:47 1996  Ulrich Drepper  <drepper@cygnus.com>
340         * sysdeps/unix/sysv/linux/errnos.h: Move declaration of errno
341         and __errno_location to correct position.
343 Thu Oct 31 22:51:25 1996  Ulrich Drepper  <drepper@cygnus.com>
345         * Makefile (distribute): Add rellns-sh.
346         * rellns-sh: New file.
347         * Makerules (make-link): Use rellns-sh.
348         * time/Makefile ($(installed-localtime-file)): Likewise.
350 Thu Oct 31 11:33:01 1996  Ulrich Drepper  <drepper@cygnus.com>
352         * elf/Makefile ($objpfx)ldd) Substitute $(version) for @VERSION@.
353         (distribute): Add ldd.bash.in.
354         * elf/ldd.sh.in: Process --help and --version parameter.
355         Correct comments.
356         * elf/ldd.bash.in: New file.
358         * stdlib/stdlib.h: Add prototype for clearenv.
359         * sysdeps/generic/setenv.c: Add implementation of clearenv.
360         (setenv): Handle __environ == NULL correctly.
361         * sysdeps/stub/setenv.c: Add stub definition for unsetenv and
362         clearenv.
364         * sysdeps/generic/putenv.c: Correct layout to fit in libit.
365         * sysdeps/generic/setenv.c: Likewise.
366         * stdlib/strtol.h: Likewise.
368         * time/sys/time.h: Define __need_timeval and include <timebits.h>.
369         Remove definition of struct timeval.
370         * sysdeps/stub/timebits.h [__need_timeval]: Define struct timeval
371         using `time_t' for members.
372         * sysdeps/unix/sysv/linux/timebits.h [__need_timeval]: Likewise.
373         * sysdeps/unix/sysv/linux/alpha/timebits.h: New file.  Same
374         as old Linux specific version.
376 Thu Oct 31 00:01:39 1996  Ulrich Drepper  <drepper@cygnus.com>
378         * signal/Makefile (routines): Add sigwait.
379         * signal/signal.h: Add prototype for sigwait.
380         * sysdeps/posix/sigwait.c: New file.  Implementation of sigwait
381         function from POSIX.1c.
382         * sysdeps/stub/sigwait.c: New file.  Stub version of sigwait.
384 Wed Oct 30 02:01:17 1996  Richard Henderson  <rth@tamu.edu>
386         * sunrpc/xdr_float.c (xdr_float): Handle sizeof(float)!=sizeof(long),
387         but don't bother going farther than sizeof(float)==sizeof(int).
388         (xdr_double): Handle little-endian machines!  Handle sizeof(double)
389         != 2*sizeof(long), though again don't bother with more than int.
391 Thu Oct 29 16:09:42 1996  Craig Metz  <cmetz@inner.net>
393         * sysdeps/posix/getaddrinfo.c: Use buffer limits for inet_ntop
394         function.
396 Tue Oct 29 12:37:22 1996  Ulrich Drepper  <drepper@cygnus.com>
398         * Makerules: Create symbolic links for linking in $(libdir).
399         (make-link): Use absolute path for destination if this is not in
400         the same directory.
402         * elf/rtld.c (dl_main): When verifying don't check the name of
403         the dynamic linker.
405         * shlib-versions: Change entries for Hurd specific libs from
406         *-*-gnu* to *-*-gnu?* so that i586-pc-linux-gnu does not match
407         these entries.
409         * assert/assert.h: Reformat copyright.
410         Change reference to ANSI into reference to ISO C.
411         * ctype/ctype.h: Likewise.
412         * errno.h: Likewise.
413         * limits.h: Likewise.
414         * math/math.h: Likewise.
415         * setjmp/setjmp.h: Likewise.
416         * stdio/stdio.h: Likewise.
417         * libio/stdio.h: Likewise.
418         * stdlib/stdlib.h: Likewise.
419         * string/string.h: Likewise.
420         * time/time.h: Likewise.
422         * string/argz.h: Use __const in definitions.
424         * elf/dlfcn.h: Use __const and __P.  Reformat copyright.
425         * misc/err.h: Likewise.
427         * wctype/wctype.h (wctrans_t): Use __const instead of const.
429         * Makeconfig ($(common-objpfx)soversions.mk): Generate list of
430         sonames for versioned libraries.
431         * Makefile: Remove code to generate libc-version.h.
432         Generate gnu/lib-names.h with info from soversions.mk.
433         * features.h: Define __GLIBC__ and __GLIBC_MINOR__.
435         * dirent/tst-seekdir.c: Initialize save3.
436         * grp/testgrp.c: Initialize my_group.
438         * grp/fgetgrent_r.c: Change interface to follow POSIX.1c.
439         * grp/grp.h: Likewise.
440         * nss/getXXbyYY.c: Likewise.
441         * nss/getXXbyYY_r.c: Likewise.
442         * nss/getXXent.c: Likewise.
443         * nss/getXXent_r.c: Likewise.
444         * pwd/fgetpwent_r.c: Likewise.
445         * pwd/pwd.h: Likewise.
446         * shadow/fgetspent_r.c: Likewise.
447         * shadow/sgetspent.c: Likewise.
448         * shadow/sgetspent_r.c: Likewise.
449         * grp/fgetgrent.c: Adapt for change in interface of fgetgrent_r.
450         * pwd/fgetpwent.c: Likewise, for fgetpwent_r.c.
451         * shadow/fgetspent.c: Likewise, for fgetpwent_r.c.
452         * resolv/netdb.h: Adapt prototypes for reentrant functions to
453         follow POSIX.1c.
454         * sunrpc/rpc/netdb.h: Likewise,
455         * shadow/shadow.h: Likewise.
457         * inet/getnetgrent_r.c: Follow change in pwd/grp function interface.
459         * sysdeps/unix/getlogin_r.c: Return ERANGE when buffer is too small.
461         * inet/herrno.c: Don't define __h_errno, only h_errno otherwise the
462         ELF aliasing creates strange situations.
463         * sysdeps/unix/sysv/linux/errnos.H: Define __set_errno as inline
464         function.
465         * sysdeps/unix/sysv/linux/i386/sysdep.S: Don't define __errno.
466         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
468         * libio/libio.h: Don't declare _IO_flockfile and _IO_funlockfile
469         weak.
471         * locale/programs/charmap.c: Add casts to prevent warnings.
472         * locale/programs/linereader.h: Likewise.
473         * locale/programs/ld-collate.c: Likewise.
474         * locale/programs/stringtrans.c: Likewise.
475         Change types for various variables to prevent warnings.
476         * locale/programs/ld-ctype.c: Likewise.
477         * locale/programs/linereader.h (lr_ungetc): Likewise.
478         * locale/programs/charset.h (struct charset): Use `unsigned int'
479         as type for width_default.
480         * posix/regex.c: Change type of `this_reg' variables.
481         * stdio-common/Makefile: Use -Wno-format for tstdiomisc.c.
482         * stdio-common/bug5.c: De-ANSI-fy.  Use correct types for
483         variables.
484         * stdio-common/printf_fp.c: Initialize to_shift.
485         * stdio-common/test_rdwr.c: Add cast.
486         * stdio-common/vfprintf.c: Add casts and use correct types to
487         prevent warnings.
488         * stdio-common/vfscanf.c: Initialize str and strptr.
489         * sysdeps/libm-ieee754/e_jnf.c: Use correct types to prevent warnings.
490         * sysdeps/libm-ieee754/e_pow.c: Likewise.
491         * sysdeps/libm-ieee754/e_powf.c: Likewise.
492         * sysdeps/libm-ieee754/e_rem_pio2f.c: Likewise.
493         * time/test-tz.c: Likewise.
495         * manual/creature.texi: Document _REENTRANT and _THREAD_SAFE.
496         * manual/libc.texinfo: Prevent makeinfo failure by avoiding
497         libc.cp index.  This must be fixed.
498         * manual/nss.texi: Adapt for correct POSIX.1c interface of
499         reentrant functions.
500         * manual/users.texi: Document netgroup functions.
502         * po/es.po: Updated.
503         * po/fr.po: Updated.
505         * posix/fnmatch.c: Change to match libit version.
507         * posix/unistd.h: Change prototype for ttyname_r to match POSIX.1c.
508         * sysdep/posix/ttyname_r.c: Likewise.
510         * stdlib/atexit.h (__new_exitfn): Add internal locking.
511         * stdlib/exit.c: De-ANSI-fy.  Handle new ef_us value for flavor.
512         * stdlib/exit.h: De-ANSI-fy.  Define new ef_us value for flavor.
513         * stdlib/random.c (__srandom): Add internal locking.
514         (__initstate): Likewise.
515         (__setstate): Likewise.
516         (__random): Likewise.
518 Mon Oct 28 22:28:37 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
520         * sysdeps/generic/crypt-entry.c (crypt_r): Use __set_errno.
521         (crypt): Likewise.
522         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
523         * sysdeps/generic/uname.c: Likewise.
524         * sysdeps/posix/rename.c: Likewise.
525         * sysdeps/stub/setrlimit.c: Likewise.
527         * nss/nss_db/db-netgrp.c (_nss_db_setnetgrent): Fix typo.
529 Sun Oct 27 11:12:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
531         * locale/programs/ld-collate.c (collate_order_elem): Fix format
532         string.
533         (collate_element_to): Cast field width argument to `int' for
534         format string.
535         (collate_symbol): Likewise.
536         (collate_order_elem): Likewise.
537         (collate_weight_bsymbol): Likewise.
538         (collate_simple_weight): Likewise.
540         * locale/programs/ld-time.c (STRARR_ELEM): Fix format string.
542         * locale/programs/ld-ctype.c (ctype_class_newP): Add missing
543         argument for format string.
544         (ctype_map_newP): Likewise.
545         (set_class_defaults): Fix format string.
547         * locale/programs/localedef.c (construct_output_path): Putting an
548         explicit \0 into the format string does not work, use %c.
550 Sat Oct 26 20:38:36 1996  Richard Henderson  <rth@tamu.edu>
552         * Makerules: Install all shared libraries in $(slibdir).
554         * login/Makefile: Build libutil.so in others pass after
555         libc.so is created.
557         * misc/mntent.h: Include <paths.h> for _PATH_MNTTAB & _PATH_MOUNTED.
559         * string/stratcliff.c: Allocate 3 pages instead of one, then use
560         mprotect so that we know that the adjacent pages are inaccessible.
562         * resource/sys/resource.h: Move all structures and enums to ...
563         * sysdeps/generic/resourcebits.h: ... here ...
564         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: ... and here.
565         * sysdeps/unix/sysv/linux/alpha/resourcebits.h: Remove.
566         * sysdeps/unix/sysv/linux/i386/resourcebits.h: Remove.
567         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Remove.
568         * sysdeps/unix/sysv/linux/mips/resourcebits.h: Remove.
569         * sysdeps/unix/sysv/linux/resourcebits.h: New file.  Use kernel
570         header for RLIMIT_* definitions.  The members of struct rlimit
571         are longs.
574 Thu Oct 24 17:43:34 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
576         * MakeTAGS (sysdep-dirs): Fix typo.
578 Thu Oct 24 17:32:57 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
580         * hurd/hurdsig.c (write_corefile): If we can't create the core
581         file, still call crash_dump_task with a null FILE arg.  Maybe it
582         won't actually need the file.
584 Wed Oct 23 03:45:22 1996  Ulrich Drepper  <drepper@cygnus.com>
586         * Makefile (headers): Don't mention libc-version.h.
587         (install-others): ...but here.
589 Tue Oct 22 21:38:21 1996  Ulrich Drepper  <drepper@cygnus.com>
591         * version.h: Bump version number to 1.97.
593         * features.h: Undo change of Sun Oct 20 22:19:58 1996.
594         Include libc-version.h.
595         * features.h.in: Removed.
596         * Makefile: Change rules to generate libc-version.h instead of
597         features.h.
599         * malloc/free.c: Add cast to prevent warning.
600         * malloc/malloc-walk.c: Likewise.
601         * malloc/ralloc.c: Likewise.
602         * malloc/realloc.c: Likewise.
604         * grp/fgetgrent_r.c: Accept empty numeric field if name start with +
605         or -.
606         * pwd/fgetpwent_r.c: Likewise.
607         * nss/nss_files/files-grp.c: Don't accept entries with names starting
608         with + or - in lookup functions.
609         * nss/nss_files/files-pwd.c: Likewise.
611         * Makerules: Call autolock.sh using $(SHELL).
613 Mon Oct 21 22:52:16 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
615         * elf/dl-minimal.c: Don't define `dgettext' replacement but
616         `dcgettext'.  When optimizing the macros in <libintl.h> define
617         `dgettext' as a macro and so this function will never be called.
619 Mon Oct 21 15:41:59 1996  Ulrich Drepper  <drepper@cygnus.com>
621         * sysdeps/i386/sysdep.h: Define END to use .size when available.
622         (PSEUDO_END): Use END.
623         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_END to
624         define SYSCALL_ERROR_HANDLER before using END.
625         (SYSCALL_ERROR_HANDLER): Don't use .size directive.
626         * sysdeps/unix/sysv/linux/clone.S: Don't use SYSCALL_ERROR_HANDLER
627         and .size directive but PSEUDO_END.
628         * sysdeps/unix/sysv/linux/mmap.S: Likewise.
629         * sysdeps/unix/sysv/linux/socket.S: Likewise.
630         * sysdeps/unix/sysv/linux/syscall.S: Likewise.
631         * sysdeps/unix/sysv/linux/sysdep.S (__errno_location): Use END.
632         * sysdeps/unix/i386/sysdep.S (__syscall_error): Likewise.
633         * sysdeps/i386/__longjmp.S: Use END instead of PSEUDO_END.
634         * sysdeps/i386/bsd-_setjmp.S: Likewise.
635         * sysdeps/i386/bsd-setjmp.S: Likewise.
636         * sysdeps/i386/memchr.S: Likewise.
637         * sysdeps/i386/memcmp.S: Likewise.
638         * sysdeps/i386/setjmp.S: Likewise.
639         * sysdeps/i386/stpcpy.S: Likewise.
640         * sysdeps/i386/stpncpy.S: Likewise.
641         * sysdeps/i386/strchr.S: Likewise.
642         * sysdeps/i386/strcspn.S: Likewise.
643         * sysdeps/i386/strpbrk.S: Likewise.
644         * sysdeps/i386/strrchr.S: Likewise.
645         * sysdeps/i386/strspn.S: Likewise.
646         * sysdeps/i386/strtok.S: Likewise.
647         * sysdeps/i386/i486/strcat.S: Likewise.
648         * sysdeps/i386/i486/strlen.S: Likewise.
649         * sysdeps/i386/i586/memset.S: Likewise.
650         * sysdeps/i386/i586/strchr.S: Likewise.
651         * sysdeps/i386/i586/strlen.S: Likewise.
653         * sysdeps/i386/strlen.c: De-ANSI-fy.
655         * sysdeps/generic/_strerror.c: Undo change of Mon Oct 21 01:32:36 1996.
656         Define dgettext if not defined to use dcgettext.
657         * sysdeps/mach/_strerror.c: Likewise.
659         * sysdeps/unix/sysv/i386/time.S: Add PSEUDO_END to get
660         __syscall_error defined.
662 Sat Oct 19 12:27:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
664         * sysdeps/unix/sysv/linux/m68k/mmap.S: Fix braino: CALL_MCOUNT is
665         already included in the ENTRY macro.  Remove SYSCALL_ERROR_HANDLER
666         now provided by PSEUDO_END.
667         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
668         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
669         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
670         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
671         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.  Use JUMPTARGET.
673         * sysdeps/generic/sysdep.h (END): Provide default empty
674         definition.
675         * sysdeps/unix/sysv/linux/m68k/sysdep.h (END): Redefine to use
676         size directive.
677         (PSEUDO): Don't include SYSCALL_ERROR_HANDLER.
678         (PSEUDO_END): Include it here instead.
679         (SYSCALL_ERROR_HANDLER): Remove type directive.
680         * sysdeps/m68k/bsd-_setjmp.S: Use END, not PSEUDO_END.
681         * sysdeps/m68k/bsd-setjmp.S: Likewise.
682         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
683         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
684         (__syscall_error): Can't use ENTRY macro.
686 Sat Oct 19 12:13:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
688         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, setresuid):
689         Set caller to EXTRA.
691 Mon Oct 21 01:32:36 1996  Ulrich Drepper  <drepper@cygnus.com>
693         * elf/rtld.c (dl_main): Move initialization of `_dl_starting_up'
694         to beginning of function.  So libc functions can use this flag.
695         * sysdeps/generic/_strerror.c: Don't use dgettext for message
696         translation while `_dl_starting_up' is nonzero.
698         * elf/dl-deps.c (_dl_map_object_deps): Add new parameter
699         TRACE_MODE.
700         Pass parameter value to _dl_map_object.
701         * elf/dl-load (_dl_map_object): Add new parameter TRACE_MODE.
702         If TRACE_MODE is nonzero don#t signal error when shared lib
703         is not found.  Instead create fake entry for link map.
704         * dl-open.c (dl-open): Pass 0 for new argument to _dl_map_object.
705         * dl-runtime.c (_dl_object_relocation_scope): Pass 0 for new
706         argument to _dl_map_object_deps.
707         * elf/link.h: Add new parameter TRACE_MODE for prototypes of
708         _dl_map_object and _dl_map_object_deps.
709         * elf/rtld.c (dl_main): Pass 0 for new argument to _dl_map_object
710         and _dl_map_object_deps.
711         When mode == trace test for l_opencount == 0 before printing
712         link information since this means the lib is not found.
714 Sun Oct 20 22:19:58 1996  Ulrich Drepper  <drepper@cygnus.com>
716         * rpm/template: Add INSTALL to %doc line to follow copyright
717         restrictions which demand the distribution of the copyright
718         messages in INSTALL even for binary distributions.
720         * features.h: Rename to...
721         * features.h.in: ...this.  Change value of __GNU_LIBRARY__ to 2
722         (for major version numberof package) and add __GNU_LIBRARY_MINOR__
723         and __GNU_LIBRARY_INTERFACE__.
724         * Makefile ($(objpfx)features.h): New rule to generate features.h
725         from template features.h.in.
727         * sysdeps/unix/sysv/linux/getsysstats.c: Include <paths.h>.
729 Sun Oct 20 00:00:13 1996  Richard Henderson  <rth@tamu.edu>
731         * locale/programs/linereader.c (lr_open): Cast away const before free.
732         (lr_close): Likewise.
734         * misc/mntent.h: Move _PATH_MNTTAB & _PATH_MOUNTED to paths.h.
735         * misc/paths.h: Move to ...
736         * sysdeps/generic/paths.h: ... here.
737         * paths.h: Remove.
738         * sysdeps/unix/sysv/linux/paths.h: New file.  Correct _PATH_STDPATH,
739         _PATH_MAILDIR, _PATH_MOUNTED, _PATH_UNIX to comply with the fsstd.
741         * nss/nss_db/db-netgrp.h: Include <string.h>.
743         * stdio-common/psignal.c: De-ansidecl-ify.  Allow NULL entries in
744         _sys_siglist, which result in the "Unknown signal" message.
745         * string/strsignal.c: Likewise.
746         * sysdeps/generic/Makefile [stdio-common]: If $(inhibit-siglist),
747         don't auto-generate siglist.c.
748         * sysdeps/unix/sysv/linux/Makefile [stdio-common]: Set inhibit-siglist.
749         * sysdeps/unix/sysv/linux/siglist.c: New file.  Not needing to
750         autogenerate makes bootstrapping and cross-compiling much easier.
751         * sysdeps/unix/sysv/linux/siglist.h: New file.
753         * stdlib/longlong.h: Prototype __udiv_qrnnd.
755         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_headers): Remove
756         sys/io.h.  It is already added in .../linux/Makefile.
758         * sysdeps/unix/sysv/linux/alpha/sigaction.h: New file.
759         * sysdeps/unix/sysv/linux/alpha/signum.h: New file.
760         * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
762 Sun Oct 20 17:17:12 1996  Ulrich Drepper  <drepper@cygnus.com>
764         Add implementation of POSIX.1g function getaddrinfo.
765         * posix/Makefile (routines): Add getaddrinfo.
766         * sysdeps/posix/getaddrinfo.c.: New file.  Add implementation by
767         Craig Metz.
768         * sysdeps/stub/getaddrinfo.c: New file.  Stub implementation.
769         * resolv/netdb.h [__USE_POSIX]: Add getaddrinfo prototypes and
770         related constants and structures.
772 Sun Oct 20 13:02:34 1996  Ulrich Drepper  <drepper@cygnus.com>
774         * sysdeps/stub/lockfile.c: Rename functions to __internal_*.
775         Make all old names weak alises so that they can be replaced
776         by libpthread.
778         * stdio-common/vfprintf.c: Only declare __flockfile and __funlockfile
779         for !USE_IN_LIBIO.
780         [USE_IN_LIBIO]: Call _IO_flockfile and _IO_funlockfile instead of
781         __flockfile and __funlockfile.
782         Reported by NIIBE Yutaka.
784         * crypt/md5.c: Change form of copyright message according to GNITS
785         rules.
786         Add warning for requirement on RESBUF parameter for `md5_finish_ctx'
787         and `md5_read_ctx' function.
788         * crypt/md5.h: Likewise.
790         * grp/testgrp.c: Don't use perror for error cases since getgr* and
791         getpw* functions do not return usable error codes.
793 Sun Oct 19 23:05:32 1996  Jim Meyering  <meyering@asic.sc.ti.com>
795         * crypt/md5.c (md5_process_bytes): Used casting for pointer
796         arithmetic.
798 Sun Oct 20 03:53:23 1996  Ulrich Drepper  <drepper@cygnus.com>
800         * sunrpc/Makefile (others): Remove portmap here, too.
802 Sat Oct 19 17:42:24 1996  Ulrich Drepper  <drepper@cygnus.com>
804         * intl/locale.alias: Language for entry `czech' is `cs'.
806 Fri Oct 17 13:20:35 1996  Thorsten Kukuk  <kukuk@weber.uni-paderborn.de>
808         * sunrpc/etc.rpc: Update from ti-rpcsvc 2.3.
810 Fri Oct 18 22:56:45 1996  Ulrich Drepper  <drepper@cygnus.com>
812         * sunrpc/Makefile (install-sbin): Remove portmap.  This version is
813         buggy and more competent people work on a usable version which is
814         distributed separately.
815         * sunrpc/portmap.c: Removed.
816         Suggested by Thorsten Kukuk.
818 Fri Oct 18 12:17:09 1996  Enrique Melero  <justine@iprolink.ch>
820         * sysdeps/libm-ieee754/s_finitel.c: Change function name to
821         `finitel'.
823 Fri Oct 18 00:01:10 1996  Ulrich Drepper  <drepper@cygnus.com>
825         * string/Makefile (tests): Add stratcliff.
826         * string/stratcliff.c: New file.  Test for string function at
827         the edge of the usable memory.
829 Thu Oct 17 22:10:19 1996  Ulrich Drepper  <drepper@cygnus.com>
831         * Makerules ($(libdir)/libc.so): Fix typo.
833         * elf/ldd.sh.in: Test whether given file really exist and give
834         better message if it is not available.
836 Thu Oct 17 04:25:38 1996  Ulrich Drepper  <drepper@cygnus.com>
838         * sysdeps/unix/sysv/linux/sys/shm_buf.h: Add definition for
839         SHM_R and SHM_W.
841 Thu Oct 17 01:55:34 1996  Ulrich Drepper  <drepper@cygnus.com>
843         * sunrpc/Makefile ($(objpfx)rpcsvc/%.h, $(objpfx)x%.c): Write
844         output to $@T and move to $@ later since the new rpcgen will not
845         overwrite existing files.
847         * po/Makefile (libc.pot): Fix typo.
849 Sun Oct 13 20:52:07 1996  Thorsten Kukuk  <kukuk@weber.uni-paderborn.de>
851         Update rpcgen program to TI-rpc code.
852         * sunrpc/Makefile (rpcgen-objs): Add rpc_tblout.o and rpc_sample.o.
853         (distribute): Add proto.h.
854         * sunrpc/proto.h: New file.  Prototypes for all the RPC functions.
855         * sunrpc/rpc_clntout.c: Change to allow generation of ISO C code.
856         * sunrpc/rpc_cout.c: Likewise.
857         * sunrpc/rpc_hout.c: Likewise.
858         * sunrpc/rpc_main.c: Likewise.
859         * sunrpc/rpc_parse.c: Likewise.
860         * sunrpc/rpc_parse.h: Likewise.
861         * sunrpc/rpc_scan.c: Likewise.
862         * sunrpc/rpc_scan.h: Likewise.
863         * sunrpc/rpc_svcout.c: Likewise.
864         * sunrpc/rpc_util.c: Likewise.
865         * sunrpc/rpc_util.h: Likewise.
867         * sunrpc/rpc_tblout.c: New file.
868         * sunrpc/rpc_sample.c: Likewise.
870 Thu Oct 17 00:26:20 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
872         * sysdeps/unix/opendir.c: Add semicolon for consistency.
874 Wed Oct 16 12:26:53 1996  Sven Verdoolaege  <skimo@breughel.ufsia.ac.be>
876         * locale/programs/localedef.c (main): Test with -1 to find out
877         whether read failed.
879 Wed Oct 16 14:54:59 1996  Ulrich Drepper  <drepper@cygnus.com>
881         * sysdeps/unix/sysv/linux/i386/clone.S: Use JUMPTARGET and
882         PSEUDO_END macro.
884 Tue Oct 15 21:27:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
886         * sysdeps/unix/sysv/linux/m68k/sigcontext.h: Removed.
888 Tue Oct 15 15:52:29 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
890         * sysdeps/unix/sysv/linux/m68k/clone.S: Add CALL_MCOUNT.
891         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
892         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
893         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
894         * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location):
895         Likewise.
896         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
897         Correct generation of system call.
899 Tue Oct 15 15:13:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
901         * Makerules (sysd-Makefile): Fix command so that it works in the
902         subdirectories.
903         (BUILD_CFLAGS): Change back using $(..) instead of
904         $(common-objpfx), the latter fails in the toplevel directory when
905         $(objdir) is relative.
906         (common-objdir-compile): Run compiler in $(objdir).
907         * sysdeps/posix/Makefile (mk-stdiolim): Likewise.
909 Tue Oct 15 23:39:48 1996  Ulrich Drepper  <drepper@cygnus.com>
911         * string/string.h [__USE_SVID]: Add prototype for swab.
912         * time/sys/time.h [__USE_BSD]: Add prototype for ualarm.
913         Reported by Andreas Jaeger.
915         The available nlist implementation is not generally usable.
916         Especially on the currently supported ELF systems the nlist
917         function comes with the libelf.
918         * misc/Makefile (headers): Remove nlist.h.
919         (routines): Remove nlist.
921         * Makefile ($(objpfx)version-info.h): Include information about
922         system the libc is built on in version-info.h file.
924         * po/Makefile (distribute): Add header.pot.
926 Tue Oct 15 16:34:15 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
928         * sysdeps/unix/sysv/linux/sleep.c: Include file with prototype.
929         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
930         * misc/error.c: Likewise.
932 Tue Oct 15 22:41:27 1996  Ulrich Drepper  <drepper@cygnus.com>
934         * sysdeps/unix/sysv/linux/syscalls.list: Add {get,set}resuid.
936 Tue Oct 15 08:06:02 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
938         * crypt/Makefile (rpath-link): Extend search path to current directory.
940 Fri Oct 11 09:18:06 1996  Sven Verdoolaege  <skimo@breughel.ufsia.ac.be>
942         * sysdeps/i386/i586/strlen.S: Correct handling of prolog for
943         aligning pointer.
945 Tue Oct 15 02:13:21 1996  Ulrich Drepper  <drepper@cygnus.com>
947         * stdio-common/vfprintf.c: Don't declare __flockfile as weak.
949         * crypt/md5-crypt.c (md5_crypt_r): Add cast to prevent warning.
951 Tue Oct 15 14:37:40 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
953         * sysdeps/mach/hurd/fcntlbits.h (O_HURD): Add O_EXLOCK and
954         O_SHLOCK.
956 Tue Oct 15 14:37:40 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
958         * sysdeps/mach/hurd/fcntlbits.h (O_HURD): Add O_EXLOCK and
959         O_SHLOCK. 
961 Sun Oct 13 19:16:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
963         * sysdeps/unix/sysv/linux/m68k/sysdep.h (POUND): Macro removed,
964         replaced by `&'.
965         (PSEUDO_END): Provide definition to use .size directive.
966         (PSEUDO): Don't interpret negative return values less than -128 as
967         syscall error.
968         * sysdeps/unix/sysv/linux/m68k/syscall.S (syscall): Likewise.
970         * sysdeps/m68k/bsd-_setjmp.S: Use PSEUDO_END macro to provide
971         .size directive.
972         * sysdeps/m68k/bsd-setjmp.S: Likewise.
973         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
974         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
975         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
976         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
977         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
978         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Use PSEUDO_END instead of
979         explicit .size directive.
981 Sun Oct 13 22:52:56 1996  Ulrich Drepper  <drepper@cygnus.com>
983         * shlib-versions: Add version number/name for ld.so.
984         * Makeconfig: Move definition of rtld-installed-name after
985         inclusion of soversions.mk.
986         Don't add . before version number from shlib-versions file when
987         when name does not start with digit.  This is needed for ld.so.
989 Sat Oct 12 20:31:58 1996  Richard Henderson  <rth@tamu.edu>
991         * libio/iogets.c: Warn when gets is used.
992         * stdio/gets.c: Strengthen the warning.
994 Sat Oct 12 23:10:43 1996  Ulrich Drepper  <drepper@cygnus.com>
996         * libio/Makefile [_LIBC_REENTRANT] (routines): Add peekc.
997         * libio/libio.h: Add prototypes for _IO_getc, _IO_putc, _IO_feof,
998         _IO_ferror, _IO_peekc_locked, and _IO_ftrylockfile.
999         Remove prototypes for _IO_getc_locked and _IO_putc_locked.
1000         [_IO_MTSAFE_IO]: Add weak aliases for _IO_flockfile and
1001         _IO_funlockfile.
1002         [! _IO_MTSAFE_IO]: Define _IO_ftrylockfile as empty.
1003         Define _IO_getc, _IO_peekc, _IO_putc, _IO_feof, _IO_ferror to
1004         appropriate values according to __USE_REENTRANT.
1005         * libio/stdio.h: Add prototype for ftrylockfile.
1006         [!_LIBC]: Define getc_locked, getchar_locked, putchar_locked,
1007         getc, getchar, putc, and putchar using _IO_* names.
1008         * libio/feof.c: Rename to _IO_feof and make feof weak alias.
1009         * libio/ferror.c: Rename to _IO_ferror and make ferror weak alias.
1010         * libio/getc.c: Rename to _IO_getc and make getc weak alias.
1011         * libio/putc.c: Rename to _IO_putc and make putc weak alias.
1012         * libio/putc_u.c: Don't define alias _IO_putc_unlocked.
1013         * libio/peekc.c: New file.
1015         * stdio-common/vfprintf.c (vfprintf): Unconditionally call
1016         __flockfile.
1018         * sysdeps/stub/locfile.c [USE_IN_LIBIO]: Also define _IO_* names.
1020         * crypt/Makefile (tests): Add md5test and md5c-test.
1021         * crypt/md5-crypt.c: Correct various error.  Now md5_process_bytes
1022         is called, the buffer limit is honoured and a loop in a inner
1023         loop is corrected.
1024         * crypt/md5.h (struct md5_ctx): Add new fields.
1025         Add prototypes for new functions.
1026         * crypt/md5.c (md5_init_ctx): Initialize new fields.
1027         (md5_finish_ctx): New function.  Like md5_read_ctx but before
1028         perform correct finalization.
1029         (md5_process_bytes): New function.  Similar to md5_proces_block,
1030         but does not require input size to be multiple of 64.
1031         (md5_stream): Rewrite using md5_process_bytes and md5_finish_ctx.
1032         (md5_buffer): Likewise.
1033         (md5_process_block): Count number of bytes.
1034         * crypt/md5test.c: New file.  Test program for MD5 functions.
1035         * crypt/md5c-test.c: New file:  Test program for MD5 crypt
1036         function.
1038         * po/fr.po: Update.
1040         * time/strptime.c: Recognize %s, %u, %g, and %G format.
1042         * posix/getopt.c: Add some more casts and initializations to
1043         prevent warnings.
1045 Sat Oct 12 16:15:29 1996  Ulrich Drepper  <drepper@cygnus.com>
1047         * sysdeps/unix/sysv/linux/speed.c (speeds): Removed.  We provide
1048         an extra function to provide this functionality.
1049         (cfgetospeed): Simply return masked value.
1050         (cfsetospeed): Don't use speeds array and so we can simply test
1051         the value of SPEED for illegal values.
1052         * termios/cfsetspeed.c: Rewrite.  We convert here between the
1053         real values and the B* constants.
1054         Changes suggested by Uwe Ohse <uwe@tirka.gun.de>.
1056 Fri Oct 11 21:45:34 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
1058         * locale/programs/xstrdup.c: Define prototypes.
1059         * locale/programs/xmalloc.c: Likewise.
1061         * stdio-common/xbug.c (main): Change definition to avoid warning.
1063 Fri Oct 11 23:36:31 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1065         * db/hash/hash.c (__hash_open): Correctly test for a read-write db.
1067 Fri Oct 11 19:13:34 1996  Ulrich Drepper  <drepper@cygnus.com>
1069         * locale/Makefile (CPPFLAGS): Set CHARMAP_PATH to
1070         "$(i18ndir)/charmaps".
1072 Fri Oct 11 22:12:41 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
1074         * sysdeps/unix/sysv/linux/sys/procfs.h: Include <asm/user.h>
1075         to get definition of FPU description struct.
1077         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (subdir_headers):
1078         Add net/if.h, net/if_ppp.h, net/ppp-comp.h, net/ppp_defs.h,
1079         net/if_arp.h, and net/route.h.
1080         * sysdeps/unix/sysv/linux/net/if_arp.h: New file.
1081         * sysdeps/unix/sysv/linux/net/route.h: New file.
1083 Fri Oct 11 14:49:13 1996  Ulrich Drepper  <drepper@cygnus.com>
1085         * sysdeps/stub/readdir_r.c: New file.  We need a stub version.
1086         * sysdeps/stub/e_acosl.c: Likewise.
1087         * sysdeps/stub/e_asinl.c: Likewise.
1088         * sysdeps/stub/e_atan2l.c: Likewise.
1089         * sysdeps/stub/e_expl.c: Likewise.
1090         * sysdeps/stub/e_fmodl.c: Likewise.
1091         * sysdeps/stub/e_log10l.c: Likewise.
1092         * sysdeps/stub/e_logl.c: Likewise.
1093         * sysdeps/stub/e_sqrtl.c: Likewise.
1094         * sysdeps/stub/s_atanl.c: Likewise.
1095         * sysdeps/stub/s_log1pl.c: Likewise.
1097         * Makefile (distribute): Add nsswitch.h and netgroup.h.
1099         * nss/Makefile (generated): db-netgrp.c is not generated.
1101         * sysdeps/alpha/Dist: Add stxcpy.S and stxncpy.S.
1103         * Make-dist (+out): Add $(dont_distribute).
1105 Fri Oct 11 00:27:18 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1107         * stdio-common/Makefile (routines): Add tmpnam_r.
1109 Fri Oct 11 05:32:51 1996  Ulrich Drepper  <drepper@cygnus.com>
1111         * version.h: Bump version to 1.96.
1113 Fri Oct 11 18:13:47 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
1115         * stdio-common/tst-printf.c: Some more cleanups.
1117 Fri Oct 11 02:48:02 1996  Ulrich Drepper  <drepper@cygnus.com>
1119         * resolv/arpa/nameser.h: Update from bind-4.9.5-T6B.
1120         * resolv/resolv.h: Likewise.
1121         * resolv/gethnamaddr.c: Likewise.
1122         * resolv/res_comp.c: Likewise.
1123         * resolv/res_debug.c: Likewise.
1124         * resolv/res_init.c: Likewise.
1125         * resolv/res_send.c: Likewise.
1126         * resolv/Banner: Update version number.
1128         * nss/nss_dns/dns-host.c: Update according to change in
1129         resolv/gethnamaddr.c.
1131 Fri Oct 10 20:52:28 1996  Ralph Loader  <loader@maths.ox.ac.uk>
1133         * crypt/md5.c (md5_stream): When reading the block in several
1134         pieces append to instead of replace previously read data.
1136 Thu Oct 10 15:53:17 1996  Richard Henderson  <rth@tamu.edu>
1138         * sysdeps/alpha/stxcpy.S ($unaligned): In single word copy, correct
1139         last-byte-written bit for source word misalignment.
1140         * sysdeps/alpha/strchr.c: Removed.  There is now an assembler
1141         version.
1143 Thu Oct 10 17:17:23 1996  Ulrich Drepper  <drepper@cygnus.com>
1145         * sunrpc/Makefile (rpcsvc): Remove yp.x.  The corrected version
1146         comes with glibc-nis.
1147         * sunrpc/rpcsvc/yp.x: Removed.
1149         * nss/nss_files/files-netgr.c (_nss_netgroup_parseline): Test
1150         for *CURSOR to be NULL and dump a core if yes.
1152 Thu Oct  9 20:09:53 1996  Matthew Jacob  <mjacob@feral.com>
1154         * sysdeps/unix/sysv/linux/alpha/brk.S: Define _ERRNO_H before
1155         including <errnos.h> to get error numbers.
1157 Thu Oct 10 14:00:01 1996  Ulrich Drepper  <drepper@cygnus.com>
1159         * sysdeps/unix/sysv/linux/i386/sigcontext.h: Moved file...
1160         * sysdeps/unix/sysv/linux/sigcontext.h: ...to here.  So the
1161         Alpha people find a correct file.
1162         * sysdeps/libm-ieee754/w_cabs.c: We cannot make __cabsl simply
1163         an alias of __cabs since the structures have different names.
1164         * sysdeps/libm-ieee754/w_log10.c: Fix typo in weak_alias.
1165         Reported by Matthew Jacob <mjacob@feral.com>.
1167 Thu Oct 10 17:25:55 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1169         * Makerules (sysd-Makefile): Look for sysdep Makefiles using $(..)
1170         so that it still works right if we happen to get called in a
1171         subdir it still works.
1173         * sysdeps/mach/hurd/fcntlbits.h (O_SHLOCK, O_EXLOCK): Redesignate
1174         as file name translation flags.
1175         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Don't pretend
1176         to do anything for O_SHLOCK or O_EXLOCK.  Those are now file name
1177         translation flags.
1178         
1179         * Makerules ($(libdir)/libc.so): Mention the actual libc.a archive
1180         name (changed according to libc-name) to avoid getting the
1181         Hurd-ish linker script for libc.a when we only want the archive
1182         library. 
1184 Wed Oct  9 00:24:52 1996  Jim Meyering  <meyering@asic.sc.ti.com>
1186         * time/strftime.c: Allow old K&R compilers compile this file.
1188 Wed Oct  9 12:03:56 1996  Ulrich Drepper  <drepper@cygnus.com>
1190         * posix/execlp.c: Add first argument parameter to be compliant
1191         with POSIX.  Rearrange body to start vararg counter after
1192         this new argument.
1194 Wed Oct  9 04:34:50 1996  Ulrich Drepper  <drepper@cygnus.com>
1196         * sysdeps/unix/sysv/linux/sys/procfs.h: Rewrite.  We cannot use
1197         simply a wrapper around the <linux/elfcore.h> file since the
1198         kernel header is not clean enough.  We provide the definitions
1199         in this file instead.
1201 Wed Oct  9 01:43:18 1996  Ulrich Drepper  <drepper@cygnus.com>
1203         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Avoid
1204         get?id calls by using __libc_enable_secure.
1206 Wed Oct  9 00:30:33 1996  Ulrich Drepper  <drepper@cygnus.com>
1208         * inet/getnetgrent_r.c: Correct netgroup implementation.  A
1209         specification of a netgroup can also name another netgroup.
1210         * nss/nss_files/files-netgrp.c: Likewise.
1211         * inet/netgroup.h: Add fields to hold additional information.
1213 Tue Oct  8 21:51:14 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
1215         * posix/getopt.c: Implement POSIX -W option handling.  When the
1216         option string contains "W;" -W foo is handled like --foo.
1218 Tue Oct  8 12:27:26 1996  Ulrich Drepper  <drepper@cygnus.com>
1220         * sysdeps/unix/sysv/linux/i386/clone.S: Define _ERRNO_H before
1221         inclusing <errnos.h> so we really get error symbols defined.
1222         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
1223         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
1225         * sunrpc/auth_unix.c (authunix_create_default): Don't use fixed
1226         size array for getgroups call.  Instead get maximal number via
1227         sysconf.  But discard list to NGRPS elements before calling XDR
1228         function since Sun's code cannot handle longer lists.
1229         Based on a patch by Thorsten Kukuk <kukuk@weber.uni-paderborn.de>.
1231         * sysdeps/stub/e_j0l.c: Define y0l as well.
1232         * sysdeps/stub/e_j1l.c: Define y1l as well.
1233         * sysdeps/stub/e_jnl.c: Define ynl as well.
1235         * posix/unistd.h: Correct prototype for execlp.
1237         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_NO_TRUNC.
1239 Mon Oct  7 22:18:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1241         * Makeconfig (sysdep-library-path): New variable.
1242         (built-program-cmd): Use it here to properly build a colon
1243         separated library path.
1245 Mon Oct  7 22:11:55 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1247         * crypt/md5-crypt.c (md5_crypt_r): Add missing parens around &
1248         within comparison.  Fix comments.
1249         (md5_crypt): Fix comment.
1251 Tue Oct  8 05:10:49 1996  Ulrich Drepper  <drepper@cygnus.com>
1253         * sysdeps/unix/sysv/linux/errnos.h: Only include <linux/errnos.h>
1254         when _ERRNO_H is defined.
1255         [!_ERRNO_H && __need_Emath]: Define value for EDOM and ERANGE.
1256         Should there ever be a Linux port where the numeric values are
1257         not 33 and 34 this file must change.
1259 Mon Oct  7 13:54:04 1996  Ulrich Drepper  <drepper@cygnus.com>
1261         * libio/iofgets.c (_IO_fgets): Use _IO_flockfile instead of
1262         __flockfile.
1264 Mon Oct  7 11:01:45 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
1266         * string/tst-strlen.c (main): Provide prototype.
1267         * malloc/mallocbug.c: Likewise.
1268         * io/test-utime.c: Likewise.
1270         * sysdeps/generic/crypt-entry.c: Correct typo.
1272 Mon Oct  7 13:42:20 1996  Ulrich Drepper  <drepper@cygnus.com>
1274         * elf/dl-open.c (_dl_open): Check against _dl_sysdep_start to
1275         test for libc.a.  Checking _DYNAMIC is of no worth here.
1276         Suggested by Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
1278         * nss/nss_files/files-parse.c: Define LOOKUP_NAME even if
1279         EXTERN_PARSER is defined.
1281 Sat Oct  5 17:05:36 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
1283         * Rules (dep-dummy-lib): Correct prototype for __dummy__.
1285         * crypt/md5-crypt.c: Fix typos in comments.
1287         * gmon/gmon.c: Provide prototypes.
1288         * db/makedb.c: Likewise.
1289         * locale/programs/xmalloc.c: Likewise.
1290         * stdio-common/bug11.c (main): Likewise.
1291         * stdio-common/bug7.c (main): Likewise.
1292         * stdio-common/bug8.c (main): Likewise.
1293         * stdio-common/bug9.c (main): Likewise.
1294         * stdio-common/scanf1.c (main): Likewise.
1295         * stdio-common/scanf2.c (main): Likewise.
1296         * stdio-common/scanf5.c (main): Likewise.
1297         * stdio-common/scanf6.c (main): Likewise.
1298         * stdio-common/scanf7.c (main): Likewise.
1299         * stdio-common/scanf8.c (main): Likewise.
1300         * stdio-common/temptest.c (main): Likewise.
1301         * stdio-common/test-fwrite.c (main): Likewise.
1302         * stdio-common/tst-printf.c: Likewise.
1303         * stdio-common/tstdiomisc.c: Likewise.
1304         * stdio-common/tstgetln.c (main): Likewise.
1305         * stdlib/testmb.c (main): Likewise.
1307         * stdio-common/scanf4.c (main): Correct prototype, remove unused
1308         variable n.
1310         * stdio-common/scanf3.c (main): Correct prototype, change
1311         declaration of s to reduce warnings.
1312         * stdio-common/bug10.c (main): Likewise.
1314         * stdio-common/tfformat.c: Provide prototype, remove unused
1315         reference to dump_stats, add braces in sprint_doubles.
1316         * stdio-common/tiformat.c: Likewise.
1318         * stdio-common/test_rdwr.c (main): Parameter `where' is long in
1319         printf call.
1321 Mon Oct  7 14:04:26 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
1323         * sysdeps/unix/sysv/linux/sys/soundcard.h: Fix typo.
1325         * shadow/putspent.c: Don't write colon after flag field.
1327         * sysdeps/unix/sysv/linux/net/if_ppp.h: New file.  Wrapper around
1328         kernel header.
1329         * sysdeps/unix/sysv/linux/net/ppp-comp.h: Likewise.
1330         * sysdeps/unix/sysv/linux/net/ppp_defs.h: Likewise.
1331         * sysdeps/unix/sysv/linux/Dist: Mention new files.
1333 Mon Oct  7 00:58:19 1996  Ulrich Drepper  <drepper@cygnus.com>
1335         * sysdeps/i386/i586/strchr.S: Correct handling of first bytes to
1336         get pointer aligned.  Reported by Matthias Urlichs <smurf@noris.de>.
1338         * sysdeps/posix/euidaccess.c [_LIBC]: Avoid calling get?id functions
1339         by using __libc_enable_secure variable.
1341 Tue Oct  8 13:58:31 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1343         * hurd/ports-get.c (_hurd_ports_get): If the requested port is
1344         null, don't attempt mach_port_mod_refs.
1346 Mon Oct  7 14:51:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1348         * sysdeps/mach/hurd/pipestream.c: New file to avoid use of
1349         sysdeps/unix/pipestream.c. 
1351         * sysdeps/mach/hurd/readdir_r.c: New file, guts copied entirely
1352         from sysdeps/mach/hurd/readdir.c.
1354         * stdio/freopen.c: Complete de-ansideclification.
1355         * stdio/fgets.c (fgets): Likewise.
1356         * stdio/getdelim.c (__getdelim): Likewise.
1357         * sysdeps/posix/pipestream.c (readdecl, writedecl, seekdecl,
1358         popen):
1359         Likewise. 
1360         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
1361         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
1363         * sysdeps/mach/hurd/wait4.c (__wait4): Allow a null value for
1364         STAT_LOC without error.
1366 Sun Oct  6 02:05:52 1996  Ulrich Drepper  <drepper@cygnus.com>
1368         * posix/getopt.c: Add casts to prevent warnings.
1369         * posix/regex.c: Likewise.
1371         * math/Makefile (long-m-routines, long-m-yes): Define to correct
1372         values to make `long double' functions available.
1373         (distribute): Add $(long-m-yes:=.c).
1375         * sysdeps/libm-i387/s_copysignl.S: Correct loading of return value.
1376         Use long double instruction.
1378         * sysdeps/libm-ieee754/e_atanhl.c (huge): Correct constant.
1379         * sysdeps/libm-ieee754/e_asinhl.c: Likewise.
1380         * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
1382         * sysdeps/libm-ieee754/e_coshl.c: New file.
1384         * sysdeps/libm-ieee754/s_asinh.c [!NO_LONG_DOUBLE]: Define names
1385         for `long double' version as alias.
1386         * sysdeps/libm-ieee754/s_atan.c: Likewise.
1387         * sysdeps/libm-ieee754/s_cbrt.c: Likewise.
1388         * sysdeps/libm-ieee754/s_ceil.c: Likewise.
1389         * sysdeps/libm-ieee754/s_copysign.c: Likewise.
1390         * sysdeps/libm-ieee754/s_cos.c: Likewise.
1391         * sysdeps/libm-ieee754/s_erf.c: Likewise.
1392         * sysdeps/libm-ieee754/s_expm1.c: Likewise.
1393         * sysdeps/libm-ieee754/s_fabs.c: Likewise.
1394         * sysdeps/libm-ieee754/s_finite.c: Likewise.
1395         * sysdeps/libm-ieee754/s_floor.c: Likewise.
1396         * sysdeps/libm-ieee754/s_frexp.c: Likewise.
1397         * sysdeps/libm-ieee754/s_ilogb.c: Likewise.
1398         * sysdeps/libm-ieee754/s_ldexp.c: Likewise.
1399         * sysdeps/libm-ieee754/s_log1p.c: Likewise.
1400         * sysdeps/libm-ieee754/s_logb.c: Likewise.
1401         * sysdeps/libm-ieee754/s_modf.c: Likewise.
1402         * sysdeps/libm-ieee754/s_nextafter.c: Likewise.
1403         * sysdeps/libm-ieee754/s_rint.c: Likewise.
1404         * sysdeps/libm-ieee754/s_scalbn.c: Likewise.
1405         * sysdeps/libm-ieee754/s_significand.c: Likewise.
1406         * sysdeps/libm-ieee754/s_sin.c: Likewise.
1407         * sysdeps/libm-ieee754/s_tan.c: Likewise.
1408         * sysdeps/libm-ieee754/s_tanh.c: Likewise.
1409         * sysdeps/libm-ieee754/w_acos.c: Likewise.
1410         * sysdeps/libm-ieee754/w_acosh.c: Likewise.
1411         * sysdeps/libm-ieee754/w_sin.c: Likewise.
1412         * sysdeps/libm-ieee754/w_atan2.c: Likewise.
1413         * sysdeps/libm-ieee754/w_atanh.c: Likewise.
1414         * sysdeps/libm-ieee754/w_cabs.c: Likewise.
1415         * sysdeps/libm-ieee754/w_cosh.c: Likewise.
1416         * sysdeps/libm-ieee754/w_drem.c: Likewise.
1417         * sysdeps/libm-ieee754/w_exp.c: Likewise.
1418         * sysdeps/libm-ieee754/w_fmod.c: Likewise.
1419         * sysdeps/libm-ieee754/w_gamma.c: Likewise.
1420         * sysdeps/libm-ieee754/w_gamma_r.c: Likewise.
1421         * sysdeps/libm-ieee754/w_hypot.c: Likewise.
1422         * sysdeps/libm-ieee754/w_j0.c: Likewise.
1423         * sysdeps/libm-ieee754/w_j1.c: Likewise.
1424         * sysdeps/libm-ieee754/w_jn.c: Likewise.
1425         * sysdeps/libm-ieee754/w_lgamma.c: Likewise.
1426         * sysdeps/libm-ieee754/w_lgamma_r.c: Likewise.
1427         * sysdeps/libm-ieee754/w_log.c: Likewise.
1428         * sysdeps/libm-ieee754/w_log10.c: Likewise.
1429         * sysdeps/libm-ieee754/w_pow.c: Likewise.
1430         * sysdeps/libm-ieee754/w_remainder.c: Likewise.
1431         * sysdeps/libm-ieee754/w_scalb.c: Likewise.
1432         * sysdeps/libm-ieee754/w_sinh.c: Likewise.
1433         * sysdeps/libm-ieee754/w_sqrt.c: Likewise.
1435         Stub files for missing long double math functions.
1436         * sysdeps/stub/e_acoshl.c: New file.
1437         * sysdeps/stub/e_hypotl.c: New file.
1438         * sysdeps/stub/e_j0l.c: New file.
1439         * sysdeps/stub/e_j1l.c: New file.
1440         * sysdeps/stub/e_jnl.c: New file.
1441         * sysdeps/stub/e_lgammal_r.c: New file.
1442         * sysdeps/stub/e_powl.c: New file.
1443         * sysdeps/stub/e_rem_pio2l.c: New file.
1444         * sysdeps/stub/e_sinhl.c: New file.
1445         * sysdeps/stub/k_cosl.c: New file.
1446         * sysdeps/stub/k_rem_pio2l.c: New file.
1447         * sysdeps/stub/k_sinl.c: New file.
1448         * sysdeps/stub/k_tanl.c: New file.
1449         * sysdeps/stub/s_erfl.c: New file.
1450         * sysdeps/stub/s_expm1l.c: New file.
1452         * sysdeps/i386/__longjmp.S: Use PSEUDO_END macro to provide
1453         .size directive.
1454         * sysdeps/i386/bsd-_setjmp.S: Likewise.
1455         * sysdeps/i386/bsd-setjmp.S: Likewise.
1456         * sysdeps/i386/memchr.S: Likewise.
1457         * sysdeps/i386/memcmp.S: Likewise.
1458         * sysdeps/i386/setjmp.S: Likewise.
1459         * sysdeps/i386/stpcpy.S: Likewise.
1460         * sysdeps/i386/stpncpy.S: Likewise.
1461         * sysdeps/i386/strchr.S: Likewise.
1462         * sysdeps/i386/strcspn.S: Likewise.
1463         * sysdeps/i386/strpbrk.S: Likewise.
1464         * sysdeps/i386/strrchr.S: Likewise.
1465         * sysdeps/i386/strspn.S: Likewise.
1466         * sysdeps/i386/strtok.S: Likewise.
1467         * sysdeps/i386/i486/strcat.S: Likewise.
1468         * sysdeps/i386/i486/strlen.S: Likewise.
1469         * sysdeps/i386/i586/memset.S: Likewise.
1470         * sysdeps/i386/i586/strchr.S: Likewise.
1471         * sysdeps/i386/i586/strlen.S: Likewise.
1472         * sysdeps/libm-i387/e_acos.S: Likewise.
1473         * sysdeps/libm-i387/e_acosl.S: Likewise.
1474         * sysdeps/libm-i387/e_asin.S: Likewise.
1475         * sysdeps/libm-i387/e_asinl.S: Likewise.
1476         * sysdeps/libm-i387/e_atan2.S: Likewise.
1477         * sysdeps/libm-i387/e_atan2l.S: Likewise.
1478         * sysdeps/libm-i387/e_exp.S: Likewise.
1479         * sysdeps/libm-i387/e_expl.S: Likewise.
1480         * sysdeps/libm-i387/e_fmod.S: Likewise.
1481         * sysdeps/libm-i387/e_fmodl.S: Likewise.
1482         * sysdeps/libm-i387/e_log.S: Likewise.
1483         * sysdeps/libm-i387/e_log10.S: Likewise.
1484         * sysdeps/libm-i387/e_log10l.S: Likewise.
1485         * sysdeps/libm-i387/e_logl.S: Likewise.
1486         * sysdeps/libm-i387/e_remainder.S: Likewise.
1487         * sysdeps/libm-i387/e_remainderf.S: Likewise.
1488         * sysdeps/libm-i387/e_remainderl.S: Likewise.
1489         * sysdeps/libm-i387/e_scalb.S: Likewise.
1490         * sysdeps/libm-i387/e_scalbl.S: Likewise.
1491         * sysdeps/libm-i387/e_sqrt.S: Likewise.
1492         * sysdeps/libm-i387/e_sqrtf.S: Likewise.
1493         * sysdeps/libm-i387/e_sqrtl.S: Likewise.
1494         * sysdeps/libm-i387/s_atan.S: Likewise.
1495         * sysdeps/libm-i387/s_atanf.S: Likewise.
1496         * sysdeps/libm-i387/s_atanl.S: Likewise.
1497         * sysdeps/libm-i387/s_ceil.S: Likewise.
1498         * sysdeps/libm-i387/s_ceilf.S: Likewise.
1499         * sysdeps/libm-i387/s_ceill.S: Likewise.
1500         * sysdeps/libm-i387/s_copysign.S: Likewise.
1501         * sysdeps/libm-i387/s_copysignf.S: Likewise.
1502         * sysdeps/libm-i387/s_copysignl.S: Likewise.
1503         * sysdeps/libm-i387/s_cos.S: Likewise.
1504         * sysdeps/libm-i387/s_cosf.S: Likewise.
1505         * sysdeps/libm-i387/s_cosl.S: Likewise.
1506         * sysdeps/libm-i387/s_finite.S: Likewise.
1507         * sysdeps/libm-i387/s_finitef.S: Likewise.
1508         * sysdeps/libm-i387/s_finitel.S: Likewise.
1509         * sysdeps/libm-i387/s_floor.S: Likewise.
1510         * sysdeps/libm-i387/s_floorf.S: Likewise.
1511         * sysdeps/libm-i387/s_floorl.S: Likewise.
1512         * sysdeps/libm-i387/s_ilogb.S: Likewise.
1513         * sysdeps/libm-i387/s_ilogbf.S: Likewise.
1514         * sysdeps/libm-i387/s_ilogbl.S: Likewise.
1515         * sysdeps/libm-i387/s_log1p.S: Likewise.
1516         * sysdeps/libm-i387/s_log1pf.S: Likewise.
1517         * sysdeps/libm-i387/s_log1pl.S: Likewise.
1518         * sysdeps/libm-i387/s_logb.S: Likewise.
1519         * sysdeps/libm-i387/s_logbf.S: Likewise.
1520         * sysdeps/libm-i387/s_logbl.S: Likewise.
1521         * sysdeps/libm-i387/s_rint.S: Likewise.
1522         * sysdeps/libm-i387/s_rintf.S: Likewise.
1523         * sysdeps/libm-i387/s_rintl.S: Likewise.
1524         * sysdeps/libm-i387/s_scalbn.S: Likewise.
1525         * sysdeps/libm-i387/s_scalbnf.S: Likewise.
1526         * sysdeps/libm-i387/s_scalbnl.S: Likewise.
1527         * sysdeps/libm-i387/s_significand.S: Likewise.
1528         * sysdeps/libm-i387/s_significandf.S: Likewise.
1529         * sysdeps/libm-i387/s_significandl.S: Likewise.
1530         * sysdeps/libm-i387/s_sin.S: Likewise.
1531         * sysdeps/libm-i387/s_sinf.S: Likewise.
1532         * sysdeps/libm-i387/s_sinl.S: Likewise.
1533         * sysdeps/libm-i387/s_tan.S: Likewise.
1534         * sysdeps/libm-i387/s_tanf.S: Likewise.
1535         * sysdeps/libm-i387/s_tanl.S: Likewise.
1537         * sysdeps/unix/sysv/linux/i386/clone.S: Add .size directive.
1538         * sysdeps/unix/sysv/linux/i386/mmap.S. Likewise.
1539         * sysdeps/unix/sysv/linux/i386/socket.S. Likewise.
1540         * sysdeps/unix/sysv/linux/i386/sysdep.S. More compact .size line.
1542         * sysdeps/i386/sysdep.h (ASM_SIZE_DIRECTIVE): New macro.  Used
1543         to provide .size directive on ELF systems.
1545         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Include
1546         <sigcontext.h> and rename parameter type to sigcontext.
1547         * sysdeps/unix/sysv/linux/i386/sigcontext.h New file.
1549         * sysdeps/unix/sysv/linux/i386/syscall.S: From Linux 2.1 on
1550         negative values might occur as positive results.  Test against
1551         -125 to decide for error or not.
1552         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise for system calls.
1554 Thu Oct  3 21:07:58 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1556         * elf/dl-open.c: Use _DYNAMIC instead of _dl_start to decide
1557         whether this is a statically linked program.  The latter is now
1558         always defined.
1560 Fri Oct  4 17:30:22 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1562         * hurd/hurdsig.c (signal_allowed): Add SIGWINCH to the list that
1563         controlling terminals are allowed to send.
1565         * hurd/alloc-fd.c (_hurd_alloc_fd): If SIZE is so big that the
1566         table is larger than the allowable address size, then return
1567         failure. 
1569 Fri Oct  4 02:08:10 1996  Bang Jun-Young  <bangjy@nownuri.nowcom.co.kr>
1571         * po/ko.po: Update.
1573 Fri Oct  4 02:07:46 1996  Michel Robitaille  <robitail@IRO.UMontreal.CA>
1575         * po/fr.po: New file.
1577 Fri Oct  4 05:04:52 1996  Ulrich Drepper  <drepper@cygnus.com>
1579         * sysdeps/unix/sysv/linux/i386/sigcontext.h: New file.
1581         Add support for MD5 crypt replacement.
1582         * Makefile (subdirs): Add crypt.
1583         * shlib-versions: Add entry for libcrypt.
1584         * crypt/md5-crypt.c: New file.
1585         * crypt/md5.c: New file.
1586         * crypt/md5.h: New file.
1587         * sysdeps/generic/crypt-entry.c: New file.
1588         * sysdeps/generic/crypt.h: New file.
1590 Thu Oct  3 20:53:23 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
1592         * dirent/tst-seekdir.c: Provide correct prototypes.
1593         * io/test-utime.c: Likewise.
1594         * malloc/mallocbug.c: Likewise.
1595         * posix/testfnm.c: Likewise.
1596         * stdio-common/xbug.c: Likewise.
1597         * sysdeps/posix/cuserid.c: Likewise.
1599 Wed Oct  2 13:33:48 1996  Richard Henderson  <rth@tamu.edu>
1601         Provide optimized string functions for Alpha processors.
1602         * sysdeps/alpha/bzero.S: New file.
1603         * sysdeps/alpha/memset.S: New file.
1604         * sysdeps/alpha/stpcpy.S: New file.
1605         * sysdeps/alpha/stpncpy.S: New file.
1606         * sysdeps/alpha/strcat.S: New file.
1607         * sysdeps/alpha/strchr.S: New file.
1608         * sysdeps/alpha/strcpy.S: New file.
1609         * sysdeps/alpha/strncat.S: New file.
1610         * sysdeps/alpha/strncpy.S: New file.
1611         * sysdeps/alpha/strrchr.S: New file.
1612         * sysdeps/alpha/stxcpy.S: New file.
1613         * sysdeps/alpha/stxncpy.S: New file.
1615         * sysdeps/alpha/Makefile [$(sudir)==string]: Add stxcpy and
1616         stxncpy to sysdep_routines.
1617         Minor correction.
1619 Thu Oct  3 13:33:31 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1621         * sysdeps/generic/gnu/types.h: Added __loff_t.
1622         Don't declare key_t here.
1624         * hurd/alloc-fd.c (_hurd_alloc_fd): If realloc fails, bother to
1625         set errno (to ENOMEM).
1627 Wed Oct  2 13:41:48 1996  Ulrich Drepper  <drepper@cygnus.com>
1629         * sysdeps/generic/strtok.c: Don't set stored pointer to NULL when
1630         nothing is found.  This guarantees all subsequent calls behave
1631         the same.
1632         * sysdeps/generic/strtok_r.c: Likewise.
1634 Mon Sep 30 22:27:36 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1636         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Don't declare
1637         `i' as const.
1639 Mon Sep 30 22:38:29 1996  Richard Henderson  <rth@tamu.edu>
1641         * sysdeps/generic/strtok.c: When we hit EOS, don't set olds to
1642         NULL immediately; we're going to get called one more time.
1643         * sysdeps/generic/strtok_r.c: Likewise.
1645 Tue Oct  1 09:12:21 1996  Ulrich Drepper  <drepper@cygnus.com>
1647         * locale/programs/ld-time.c: Always write some bytes at the end of
1648         the file even if no `era's are specified.
1650         * stdio-common/tmpname.c (tmpbuf): Don't define as array of
1651         pointers.
1653 Tue Oct  1 01:43:11 1996  Ulrich Drepper  <drepper@cygnus.com>
1655         * libio/iofclose.c: Move unlocking to right position.
1657 Mon Sep 30 03:08:34 1996  Richard Henderson  <rth@tamu.edu>
1659         * misc/Makefile: Kill force-wrapper.
1660         * misc/force-wrapper.c: Delete.
1662         * elf/eval.c: Add <string.h>.
1664         * gmon/sys/gmon_out.h: Nonsense like `char foo[sizeof(char*)]'
1665         followed by `bcopy(&ptr, &foo, sizeof(foo))' helps portability
1666         and binary compatibility not at all.  Better to do `char *foo'
1667         followed by `foo = ptr' as it is much cleaner.
1668         (struct gmon_hdr): Fix version.
1669         (struct gmon_hist_hdr): Fix low_pc, high_pc, hist_size, prof_rate.
1670         (struct gmon_cg_arc_record): Fix from_pc, self_pc, count.
1671         * gmon/gmon.c: De-ansidecl-ify.
1672         (write_hist): De-bcopy-fy.
1673         (write_call_graph): Likewise.
1675         * gmon/mcount.c: Assume _MCOUNT_DECL does the entire declaration.
1676         * sysdeps/alpha/machine-gmon.h: Update _MCOUNT_DECL.
1677         * sysdeps/generic/machine-gmon.h: Likewise.
1679         * resolv/netdb.h: Add __set_h_errno to mimic __set_errno.
1680         * nss/getXXent_r.c: Use __set_h_errno to set h_errno in all funcs.
1681         * nss/nss_dns/dns-network.c: Likewise.
1682         * resolv/getunamaddr.c: Likewise.  Also use __set_errno where needed.
1683         * resolv/getnetnamadr.c: Likewise.
1684         * resolv/res_debug.c: Likewise.
1685         * resolv/res_mkquery.c: Likewise.
1686         * resolv/res_query.c: Likewise.
1688         * libio/clearerr_u.c: It's not necessary to define __ protected
1689         function so don't do it.
1690         * libio/feof_u.c, libio/ferror_u.c, libio/fputc_u.c,
1691           libio/getc_u.c, libio/getchar_u.c, libio/iofflush_u.c: Likewise.
1693         * libio/fgetc.c: Avoid a warning by casting _IO_funlockfile for
1694         the cleanup registrar.
1695         * libio/fputc.c, libio/freopen.c, libio/fseek.c, libio/getc.c,
1696           libio/getchar.c, libio/iofclose.c, libio/iofflush.c,
1697           libio/iofgetpos.c, libio/iofgets.c, libio/iofputs.c,
1698           libio/iofread.c, libio/iofsetpos.c, libio/ioftell.c,
1699           libio/iofwrite.c, libio/iogetdelim.c, libio/iogets.c,
1700           libio/ioputs.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
1701           libio/ioungetc.c, libio/putc.c, libio/putchar.c, libio/rewind.c:
1702         Likewise.
1704         * locale/programs/ld-ctype.c: Include <alloca.h>.
1706         * login/login_tty.c: Get login_tty prototype from <utmp.h>.
1708         * posix/sys/types.h: Change #defines to typedefs.  This is looking
1709         forward to more comprehensive namespace cleanups for C++.
1710         * posix/unistd.h: Likewise for ssize_t.
1712         * pwd/getpw.c: Prototype and rename getpw -> __getpw and add a
1713         weak alias.
1715         * resolv/base64.c: Don't do `for (NULL; ...)' as it causes
1716         `statement with no effect' warnings.
1717         * resolv/inet_neta.c: Include <string.h> for strlen.
1719         * stdio-common/getline.c: Undef ssize_t before libio redefinition.
1720         * stdio-common/tstgetln.c: Same.  De-ansidecl-ify.
1721         * stdio-common/vfprintf.c: Same for va_list.
1722         * stdio-common/vfscanf.c: Same.
1723         * stdio-common/reg-printf.c: Prototype the __ function.
1724         * stdio-common/scanf.c [USE_IN_LIBIO]: Include <libioP.h> for
1725         _IO_vscanf declaration.
1727         * string/tester.c: Tsk, tsk.  Don't cast pointers to int,
1728         but to unsigned long for the health of 64-bit systems.
1730         * sunrpc/svc_udp.c: Define MAX only if we don't have it yet.
1731         Many system's <sys/param.h> pulls this in.
1733         * sysdeps/generic/dl-cache.c: Kill the bottom half of the
1734         patch doubled file.
1736         * sysdeps/generic/pty.c (forkpty): Get login_tty decl from <utmp.h>
1737         instead of defining it locally.
1739         * sysdeps/posix/sigvec.c: Prototype wrapper_handler and convert_mask.
1740         * sysdeps/stub/chflags.c: Prototype chflags.
1741         * sysdeps/stub/fchflags.c: Prototype fchflags.
1742         * sysdeps/stub/sstk.c: Prototype sstk.
1744         * sysdeps/unix/alpha/sysdep.S:  Add strong alias from errno
1745         variable to __errno.  Update __syscall_error to store to both
1746         the global and per-thread variables.
1748         * sysdeps/unix/sysv/linux/init-first.c: Change include of
1749         init-first.h from "" to <> as "" does not search the include path.
1750         Prototype _dl_start.
1752 Sun Sep 29 14:41:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1754         * sysdeps/unix/Makefile ($(common-objpfx)s-proto.d): Make it a
1755         pattern rule to get the right stem.
1757 Sat Sep 28 01:30:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1759         * Makefile ($(objpfx)version-info.h): Fix typo in previous change.
1761 Sat Sep 28 00:44:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1763         * sysdeps/posix/euidaccess.c (__set_errno): Fix typo.
1765 Sat Sep 28 00:40:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1767         * malloc/free.c (_free_internal): Don't call free recursively, use
1768         the internal functions instead.
1770 Sat Sep 28 00:23:20 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1772         * sysdeps/posix/tempname.c (__stdio_gen_tempname) [USE_IN_LIBIO &&
1773         _IO_MTSAFE_IO]: Allocate and initialize the file lock.
1775 Fri Sep 27 23:58:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1777         * catgets/gencat.c (main): Print version information on stdout,
1778         not stderr.
1779         * db/makedb.c: Likewise.
1780         * locale/programs/locale.c: Likewise.
1781         * locale/programs/localedef.c: Likewise.
1783 Mon Sep 30 00:14:26 1996  Ulrich Drepper  <drepper@cygnus.com>
1785         Add implementation of netgroup.
1786         * inet/Makefile (distributes): Add netgroup.h.
1787         (routines): Add getnetgrent.c and getnetgrent_r.c.
1788         * inet/getnetgrent.c: New file.
1789         * inet/getnetgrent_r.c: New file.
1790         * inet/netgroup.h: New file.
1791         * netgroup.h: New file.
1792         * nsswitch.h: New file.
1793         * nss/Makefile (databases): Add getgrp.
1794         * nss/databases.def: Add netgroup.
1795         * nss/db-Makefile: Add rules for netgroup.
1796         * nss/netgrp-lookup.c: New file.
1797         * nss/nss.h: Add new status value NSS_STATUS_RETURN which will
1798         always return without a check of the transition table.
1799         * nss/nsswitch.h (struct service_user): Extend actions array to
1800         five elements.
1801         * nss/nsswitch.c (__nss_next): Allow NSS_STATUS_RETURN as legal
1802         status value.
1803         (nss_parse_service_list): Initialize action for NSS_STATUS_RETURN
1804         to NSS_ACTION_RETURN.
1805         * nss/nss_db/db-netgrp.c: New file.
1806         * nss/nss_files/files-netgrp.c: New file.
1807         * nss/nsswitch.conf: Add entry for netgroup.
1808         * resolv/netdb.h: Add prototypes for netgroup functions.
1810         * nss/nss_db/db-XXX.c: Use `enum nss_status' type when status
1811         value is used.
1813 Sun Sep 29 12:55:58 1996  Ulrich Drepper  <drepper@cygnus.com>
1815         * sysdeps/unix/sysv/linux/syscalls.list: Change function name for
1816         _llseek to _llseek (not llseek).
1817         Reported by Matthias Urlichs <smurf@smurf.noris.de>.
1819 Sun Sep 29 05:34:32 1996  Ulrich Drepper  <drepper@cygnus.com>
1821         * inet/rcmd.c: Remove definition of MIN.
1823 Sat Sep 28 14:22:51 1996  Ulrich Drepper  <drepper@cygnus.com>
1825         * dirent/readdir_r.c: Removed.  We indeed need a real implementation.
1826         * sysdeps/unix/readdir_r.c: New file.
1827         * sysdeps/unix/readdir.c: Remove check for correct parameter
1828         values.  Let them simply die.
1829         * manual/filesys.texi: Document readdir_r.
1831         * sysdeps/gnu/errlist.awk: Define _sys_errlist as `const char* const'.
1832         Proposed by Per Abrahamsen <abraham@dina.kvl.dk>.
1834 Sat Sep 28 03:02:49 1996  Ulrich Drepper  <drepper@cygnus.com>
1836         * dirent/Makefile (routines): Add readdir_r.
1837         * dirent/readdir_r.c: New file.  Wrapper around readdir.c.
1838         * dirent/dirent.h: Add prototype for readdir_r.
1840         * misc/hsearch_r.c (ENTRY): Make field `used' of type `unsigned int'
1841         to prevent warnings.
1843         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
1844         Initialize `result'.
1846 Sat Sep 28 01:16:42 1996  Ulrich Drepper  <drepper@cygnus.com>
1848         * sysdeps/generic/strsep.c: Rename to __strsep and make strsep
1849         weak alias.
1850         * string/string.h: Add prototype for __strsep.
1851         * misc/mntent_r.c: Use __strsep instead of strsep to keep
1852         namespace clean.
1854         * sysdeps/stub/nanosleep.c: Rename to __libc_nanosleep and make
1855         __nanosleep and nanosleep weak aliases.
1856         * sysdeps/unix/sysv/linux/syscalls.list: Add __nanosleep as weak
1857         alias.
1858         * sysdeps/unix/sysv/linux/sleep.c: Call __nanosleep instead of
1859         nanosleep to keep namespace clean.
1861         * sysdeps/posix/ttyname.c (ttyname): Add cast to prevent warning.
1862         * sysdeps/posix/ttyname_r.c (ttyname_r): Likewise.
1863         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
1865         * sysdeps/unix/nlist.c: Use ISO C definition since we don't always
1866         have prototype.
1868         * login/Makefile (headers): Add pty.h.
1869         * login/pty.h: New file.
1870         * sysdeps/generic/pty.h: Include <pty.h>.
1871         * login/pututline_r.c: Add cast to prevent warning.
1873         * gmon/gmon.c: Add prototype for __profile_frequency.
1874         (monstartup): Add cast to prevent warning.
1875         * sysdeps/generic/prof-freq.c: Change to use ISO C style definition.
1877         * locale/programs/ld-time.c (time_output): Write `era' information
1878         in correct order.
1880 Sat Sep 28 00:11:08 1996  Ulrich Drepper  <drepper@cygnus.com>
1882         * sysdeps/unix/sysv/linux/syscalls.list: Add weak alias
1883         `adjtimex'.
1884         Set caller for mlock, mlockall, mremap, munlock, and munlockall
1885         to EXTRA.
1886         Reported by Matthias Urlichs <smurf@smurf.noris.de>.
1888 1996-09-27  Paul Eggert  <eggert@twinsun.com>
1890         * strftime.c (strftime): Output incomplete formats like %E
1891         at end of string.
1893 1996-09-27  Paul Eggert  <eggert@twinsun.com>
1895         * strftime.c (strftime): Add support for %EC and %Ey.
1896         Fix support for %EY.  This uses the new _nl_get_era_entry function.
1898 Fri Sep 27 14:12:27 1996  Ulrich Drepper  <drepper@cygnus.com>
1900         Security related patch by Elliot Lee <sopwith@redhat.com> and
1901         David Holland <dholland@eecs.harvard.edu>.
1903         * inet/rexec.c (rexec): Increase size of `num' array from 8 to 32.
1904         * inet/ruserpass.c (ruserpass): Don't allow $HOME envvar to not exist.
1906         * sysdeps/generic/getenv.c (__secure_getenv): New function.  Return
1907         NULL when programs runs with SUID or SGID enabled.
1908         * sysdeps/stub/getenv.c: Make __secure_getenv an alias of getenv.
1909         * stdlib/stdlib.h: Add prototype for __secure_getenv.
1911         * locale/setlocale.c: Use __secure_getenv.
1912         * resolv/res_init.c: Likewise.
1913         * resolv/res_query.c: Likewise.
1914         * inet/ruserpass.c: Likewise.
1915         * sysdeps/posix/tempname.c: Likewise.
1916         * malloc/mtrace.c: Likewise.
1917         * catgets/catgets.c: Likewise.
1919         Make temporary file handling functions reentrant.
1921         * stdio-common/tmpnam.c: Rewrite to have own buffer to write
1922         result to.  The called __stdio_gen_tempname function must be
1923         thread safe.
1924         * stdio-common/tmpnam_r.c: New file.
1925         * stdio/stdio.h: Add prototype for `tmpnam_r'.
1926         Change prototype for __stdio_gen_tempname.
1927         * stdio/libio.h: Likewise.
1928         * sysdeps/posix/tempname.c: Add new parameters and use them instead
1929         of static buffer.
1930         Don't reset `indeces' when PID changed between calls.
1931         Don't fail for long running programs when index counter once
1932         reached the limit.
1933         * sysdeps/stub/tempname.c: Likewise.
1934         * stdio-common/tempnam.c: Provide local buffer as extra argument
1935         to __stdio_gen_tempname.  This makes this function reentrant.
1936         * stdio-common/tmpfile.c: Likewise.
1937         * stdio-common/temptest.c: Provide extra argument to
1938         __stdio_gen_tempname.
1939         * manual/filesys.texi: Describe tmpnam_r and add comments about
1940         reentrancy of the functions.
1942         * inet/rcmd.c: Fixed address length handling.
1944         * sysdeps/posix/mk-stdiolim.c: Count final \0 byte in L_tmpnam value.
1946         * time/strftime.c: Remove unused variables alt_digits and
1947         end_alt_digits.
1949         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Correct prototype names
1950         for get_nprocs and get_nprocs_conf.
1951         * sysdeps/generic/sys/sysinfo.h: Likewise.
1953         * stdlib/test-canon.c: Finally do the right fix.
1955         * misc/Makefile: Only compile force-wrapper when compiling
1956         reentrant libc.
1958 Fri Sep 27 03:49:56 1996  Ulrich Drepper  <drepper@cygnus.com>
1960         Add support for cancelable system calls.
1962         * csu/initfini.c: Make in crti.o reference to symbol
1963         __libc_force_cancel_wrapper when compiling reentrant version.
1964         * misc/Makefile (routines): Add force-wrapper.
1965         * misc/force-wrapper.c: New file.
1967         * posix/system.c: Rename function to __libc_system and make system
1968         a weak alias.
1969         * sysdeps/stub/system.c: Likewise.
1970         * posix/wait.c: Rename function to __libc_wait and make __wait a
1971         weak alias.  De-ANSI-fy.
1972         * sysdeps/standalone/read.c: Rename function to __libc_read and
1973         make __read a weak alias.
1974         * sysdeps/stub/read.c: Likewise.
1975         * sysdeps/standalone/write.c: Rename function to __libc_write and
1976         make __write a weak alias.
1977         * sysdeps/stub/write.c: Likewise.
1978         * sysdeps/stub/tcdrain.c: Rename function to __libc_tcdrain and
1979         make tcdrain a weak alias.
1980         * sysdeps/unix/bsd/tcdrain.c: Likewise.
1981         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Likewise.
1982         * sysdeps/unix/sysv/tcdrain.c: Likewise.
1983         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
1984         * sysdeps/unix/bsd/bsd4.4/wait.c: Rename function to __libc_wait
1985         and make __wait a weak alias.
1986         * sysdeps/stub/waitpid.c: Rename function to __libc_waitpid and
1987         make __waitpid a weak alias.
1988         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
1989         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
1990         * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
1991         * sysdeps/unix/common/pause.c: Rename function to __libc_pause
1992         and make pause a weak alias.  De-ANSI-fy.
1994         * sysdeps/unix/syscalls.list: Change name for close, fcntl, fsync,
1995         lseek, open, read, and write to have __libc_ prefix and make old
1996         names a weak alias.
1997         * sysdeps/unix/mman/syscalls.list: Likewise for msync.
1998         * sysdeps/unix/sysv/linux/syscalls.list: Likewise for nanosleep.
2000         * io/creat.c: De-ANSI-fy.
2002         * sysdeps/unix/sysv/linux/syscalls.list: Add pause.
2004 Thu Sep 26 19:15:55 1996  Ulrich Drepper  <drepper@cygnus.com>
2006         * misc/mntent.h: Add MNTTYPE_* and MNTOPT_* macros.
2007         Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
2009 Thu Sep 26 14:40:10 1996  Ulrich Drepper  <drepper@cygnus.com>
2011         * sysdeps/posix/pathconf.c: Pass descriptor for just opened file
2012         to fpathconf.
2013         Reported by Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>.
2015 Thu Sep 26 04:02:43 1996  Ulrich Drepper  <drepper@cygnus.com>
2017         * locale/programs/locfile.c (write_locale_data): Allocate room
2018         even for file name for LC_MESSAGES locale.
2019         (locafile_read): `tok_era' must be handled as a string list.
2020         * locale/programs/ld-time.c: Finish correction of handling `era'.
2021         * locale/C-time.c (_nl_C_LC_TIME): Add initializer for new fields.
2022         * locale/categories.def: Add postload function for LC_TIME.
2023         * locale/setlocale.c: Make lock global and rename to
2024         __libc_setlocale_lock.
2025         * locale/localeinfo.h (struct era_entry): New type.  Used in strftime.
2026         Add prototypes for _nl_get_era_entry and _nl_get_alt_digit.
2027         * locale/lc-time.c (_nl_postload_time): New function.  Initialize
2028         lazy intialization.
2029         (_nl_get_era_entry): New function.  Return era entry which corresponds
2030         to given year.
2031         (_nl_get_alt_digit): New function.  Return string with alternate
2032         digit representation for given number.
2034         * time/strftime.c (strftime): Use _nl_get_alt_digit to get
2035         string representing alternate digit notation.
2037 Wed Sep 25 17:31:55 1996  Ulrich Drepper  <drepper@cygnus.com>
2039         * sysdeps/generic/waitstatus.h (union wait): Add w_status field.
2040         Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
2042         * elf/rtld.c (dl_main): Process LD_PRELOAD before loading
2043         ld.so.preload.  Suggested by David Engel <david@elo.ods.com>.
2045 Wed Sep 25 13:10:57 1996  Ulrich Drepper  <drepper@cygnus.com>
2047         * catgets/gencat.c (main): Change --version again because RMS wants
2048         the package name in parentheses.
2049         * db/makedb.c: Likewise.
2050         * locale/programs/locale.c: Likewise.
2051         * locale/programs/localedef.c: Likewise.
2053 Tue Sep 24 01:28:05 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2055         * Makefile ($(objpfx)sysd-dirs): Depend on Subdirs files, command
2056         rewritten.
2057         ($(objpfx)version-info.h): Depend on Banner files, command
2058         rewritten.
2060 Wed Sep 25 02:44:41 1996  Ulrich Drepper  <drepper@cygnus.com>
2062         * sysdeps/unix/sysv/linux/sleep.c: New file.  Based on nanosleep.
2064 Tue Sep 24 21:46:02 1996  Ulrich Drepper  <drepper@cygnus.com>
2066         * shadow/lckpwdf.c (PWD_LOCKFILE): Change to /etc/lock.pwd to be
2067         on the same device as the password file.
2068         * shadow/shadow.h (struct spwd): Change type of numeric fields
2069         to `long int' since there value are days, not seconds.
2070         * shadow/putspent.c: Change casts from time_t to `long int'.
2071         * shadow/sgetspent_r.c (LINE_READER): Likewise.
2073 Mon Sep 23 23:05:24 1996  Ulrich Drepper  <drepper@cygnus.com>
2075         * sysdeps/unix/sysv/linux/errnos.h: Define __set_errno to make
2076         sure the thread specific variable is set as well as the global
2077         variable.
2078         * sysdeps/mach/hurd/errnos.awk: Define macro for source code
2079         compatibility.
2080         * sysdeps/stub/errnos.h: Likewise.
2081         * sysdeps/unix/bsd/bsd4.4/errnos.h: Likewise.
2083         * shadow/putspent.c: Don't include <errno.h>.
2085         * dirent/scandir.c (scandir): Use __set_errno to set errno
2086         variable.
2087         * elf/dl-load.c (open_path): Likewise.
2088         * inet/rcmd.c (rcmd): Likewise.
2089         (rresvport): Likewise.
2090         * intl/dcgettext.c [!__set_errno]: Define __set_errno.
2091         (DCGETTEXT): Use __set_errno to set errno variable.
2092         * io/fts.c (fts_open): Likewise.
2093         (fts_close): Likewise.
2094         (fts_read): Likewise.
2095         (fts_set): Likewise.
2096         (fts_children): Likewise.
2097         (fts_build): Likewise.
2098         (fts_stat): Likewise.
2099         * io/ftw.c (ftw_dir): Likewise.
2100         (ftw): Likewise.
2101         * io/getwd.c (getwd): Likewise.
2102         * io/lockf.c (lockf): Likewise.
2103         * libio/libioP.h [EINVAL]: Use __set_errno to define MAYBE_SET_EINVAL.
2104         * libio/iofdopen.c (_IO_fdopen): Use MAYBE_SET_EINVAL to errno.
2105         * libio/iogetdelim.c (_IO_getdelim): Likewise.
2106         * libio/fileops.c (_IO_file_open): Use __set_errno to set errno
2107         variable.
2108         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
2109         * libio/iofsetpos.c (_IO_fsetpos): Likewise.
2110         * libio/ioftell.c (_IO_ftell): Likewise.
2111         * locale/loadlocale.c (_nl_load_locale): Likewise.
2112         * locale/nl_langinfo.c (nl_langinfo): Likewise.
2113         * locale/setlocale.c (ERROR_RETURN): Likewise.
2114         * login/getutid_r (__getutid_r): Likewise.
2115         * login/getutline_r (__getutline_r): Likewise.
2116         * login/login.c (tty_name): Likewise.
2117         * login/oututline_r.c (__pututline_r): Likewise.
2118         * malloc/malloc.c (morecore): Likewise.
2119         * misc/efgcvt_r.c (fcvt_r): Likewise.
2120         * misc/hsearch_r.c (hcreate_r): Likewise.
2121         (hdestroy_r): Likewise.
2122         (hsearch_r): Likewise.
2123         * nss/nsswitch.c (__nss_configure_lookup): Likewise.
2124         * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Likewise.
2125         (_nss_dns_gethostbyaddr_r): Likewise.
2126         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
2127         * nss/nss_files/files-parse.c (parse_list): Likewise.
2128         * posix/confstr.c (confstr): Likewise.  De-ANSI-fy.
2129         * posix/execvp.c (execvp): Likewise.
2130         * posix/glob.c: Define __set_errno.
2131         (glob): Use __set_errno to set errno variable.
2132         (glob_in_dir): Likewise.
2133         * pwd/getpw.c: Likewise. De-ANSI-fy.
2134         * pwd/putpwent.c: Likewise.
2135         * resolv/inet_net_ntop.c: Likewise.
2136         * resolv/inet_net_pton.c: Likewise.
2137         * resolv/inet_neta.c: Likewise.
2138         * resolv/inet_ntop.c: Likewise.
2139         * resolv/inet_pton.c: Likewise.
2140         * resolv/res_query.c (res_search): Likewise.
2141         * resolv/res_send.c (Aerror): Likewise.
2142         (Perror): Likewise.
2143         (res_send): Likewise.
2144         * signal/sigaddset.c: Likewise.  De-ANSI-fy.
2145         * signal/sigdelset.c: Likewise.
2146         * signal/sigempty.c: Likewise.
2147         * signal/sigfillset.c: Likewise.
2148         * signal/sigismem.c: Likewise.
2149         * stdio/fclose.c: Likewise.
2150         * stdio/feof.c: Likewise.
2151         * stdio/ferror.c: Likewise.
2152         * stdio/fflush.c: Likewise.
2153         * stdio/fgetc.c: Likewise.
2154         * stdio/fgetpos.c: Likewise.
2155         * stdio/fgets.c: Likewise.
2156         * stdio/fileno.c: Likewise.
2157         * stdio/fmemopen.c: Likewise.
2158         * stdio/fopen.c: Likewise.
2159         * stdio/fputc.c: Likewise.
2160         * stdio/fread.c: Likewise.
2161         * stdio/freopen.c: Likewise.
2162         * stdio/fseek.c: Likewise.
2163         * stdio/fsetpos.c: Likewise.
2164         * stdio/ftell.c: Likewise.
2165         * stdio/fwrite.c: Likewise.
2166         * stdio/getdelim.c: Likewise.
2167         * stdio/gets.c: Likewise.
2168         * stdio/glue.c: Likewise.
2169         * stdio/internals.c: Likewise.
2170         * stdio/memstream.c: Likewise.
2171         * stdio/setvbuf.c: Likewise.
2172         * stdio/ungetc.c: Likewise.
2173         * stdio/vsscanf.c: Likewise.
2174         * stdio-common/reg-printf.c: Likewise.
2175         * stdio-common/vfprintf.c: Likewise.
2176         * stdio-common/vfscanf.c: Likewise.
2177         * stdlib/canonicalize.c: Likewise.
2178         * stdlib/msort.c: Likewise.
2179         * stdlib/random_r.c: Likewise.
2180         * stdlib/strfmon.c: Likewise.
2181         * stdlib/strtod.c: Likewise.
2182         * stdlib/strtol.c: Likewise.
2183         * sunrpc/bindrsvprt.c: Likewise.
2184         * time/asctime.c: Likewise.
2185         * time/localtime.c: Likewise.
2186         * wcsmbs/mbrtowc.c: Likewise.
2187         * wcsmbs/mbsnrtowcs.c: Likewise.
2188         * wcsmbs/mbsrtowcs.c: Likewise.
2189         * wcsmbs/wcrtomb.c: Likewise.
2190         * wcsmbs/wcsnrtombs.c: Likewise.
2191         * wcsmbs/wcsrtombs.c: Likewise.
2192         * wcsmbs/wcstok.c: Likewise.
2193         * sysdeps/generic/ftime.c: Likewise.
2194         * sysdeps/generic/pty.c: Likewise.
2195         * sysdeps/generic/setenv.c: Likewise.
2196         * sysdeps/generic/speed.c: Likewise.
2197         * sysdeps/generic/sysd-stdio.c: Likewise.
2198         * sysdeps/generic/uname.c: Likewise.
2199         * sysdeps/generic/vlimit.c: Likewise.
2200         * sysdeps/libm-ieee754/k_standard.c: Likewise.
2201         * sysdeps/libm-ieee754/s_ldexp.c: Likewise.
2202         * sysdeps/libm-ieee754/s_ldexpf.c: Likewise.
2203         * sysdeps/libm-ieee754/s_ldexpl.c: Likewise.
2204         * sysdeps/libm-ieee754/w_scalb.c: Likewise.
2205         * sysdeps/libm-ieee754/w_scalbf.c: Likewise.
2206         * sysdeps/libm-ieee754/w_scalbl.c: Likewise.
2207         * sysdeps/posix/dup2.c: Likewise.
2208         * sysdeps/posix/euidaccess.c: Likewise.
2209         * sysdeps/posix/fdopen.c: Likewise.
2210         * sysdeps/posix/flock.c: Likewise.
2211         * sysdeps/posix/fpathconf.c: Likewise.
2212         * sysdeps/posix/getcwd.c: Likewise.
2213         * sysdeps/posix/gettimeofday.c: Likewise.
2214         * sysdeps/posix/isatty.c: Likewise.
2215         * sysdeps/posix/isfdtype.c: Likewise.
2216         * sysdeps/posix/killpg.c: Likewise.
2217         * sysdeps/posix/mkstemp.c: Likewise.
2218         * sysdeps/posix/mktemp.c: Likewise.
2219         * sysdeps/posix/pathconf.c: Likewise.
2220         * sysdeps/posix/pipestream.c: Likewise.
2221         * sysdeps/posix/remove.c: Likewise.
2222         * sysdeps/posix/rename.c: Likewise.
2223         * sysdeps/posix/sigintr.c: Likewise.
2224         * sysdeps/posix/signal.c: Likewise.
2225         * sysdeps/posix/sigsuspend.c: Likewise.
2226         * sysdeps/posix/sigvec.c: Likewise.
2227         * sysdeps/posix/sleep.c: Likewise.
2228         * sysdeps/posix/sysconf.c: Likewise.
2229         * sysdeps/posix/system.c: Likewise.
2230         * sysdeps/posix/tempname.c: Likewise.
2231         * sysdeps/posix/truncate.c: Likewise.
2232         * sysdeps/posix/ttyname.c: Likewise.
2233         * sysdeps/posix/ttyname_r.c: Likewise.
2234         * sysdeps/posix/wait3.c: Likewise.
2235         * sysdeps/standalone/close.c: Likewise.
2236         * sysdeps/standalone/open.c: Likewise.
2237         * sysdeps/standalone/read.c: Likewise.
2238         * sysdeps/standalone/write.c: Likewise.
2239         * sysdeps/stub/__longjmp.c: Likewise.
2240         * sysdeps/stub/accept.c: Likewise.
2241         * sysdeps/stub/access.c: Likewise.
2242         * sysdeps/stub/acct.c: Likewise.
2243         * sysdeps/stub/adjtime.c: Likewise.
2244         * sysdeps/stub/alarm.c: Likewise.
2245         * sysdeps/stub/bind.c: Likewise.
2246         * sysdeps/stub/brk.c: Likewise.
2247         * sysdeps/stub/chdir.c: Likewise.
2248         * sysdeps/stub/chflags.c: Likewise.
2249         * sysdeps/stub/chmod.c: Likewise.
2250         * sysdeps/stub/chown.c: Likewise.
2251         * sysdeps/stub/chroot.c: Likewise.
2252         * sysdeps/stub/clock.c: Likewise.
2253         * sysdeps/stub/close.c: Likewise.
2254         * sysdeps/stub/closedir.c: Likewise.
2255         * sysdeps/stub/connect.c: Likewise.
2256         * sysdeps/stub/ctermid.c: Likewise.
2257         * sysdeps/stub/cuserid.c: Likewise.
2258         * sysdeps/stub/dirfd.c: Likewise.
2259         * sysdeps/stub/dup.c: Likewise.
2260         * sysdeps/stub/dup2.c: Likewise.
2261         * sysdeps/stub/euidaccess.c: Likewise.
2262         * sysdeps/stub/execve.c: Likewise.
2263         * sysdeps/stub/fchdir.c: Likewise.
2264         * sysdeps/stub/fchflags.c: Likewise.
2265         * sysdeps/stub/fchmod.c: Likewise.
2266         * sysdeps/stub/fchown.c: Likewise.
2267         * sysdeps/stub/fcntl.c: Likewise.
2268         * sysdeps/stub/fdopen.c: Likewise.
2269         * sysdeps/stub/fexecve.c: Likewise.
2270         * sysdeps/stub/flock.c: Likewise.
2271         * sysdeps/stub/fork.c: Likewise.
2272         * sysdeps/stub/fpathconf.c: Likewise.
2273         * sysdeps/stub/fstatfs.c: Likewise.
2274         * sysdeps/stub/fsync.c: Likewise.
2275         * sysdeps/stub/ftruncate.c: Likewise.
2276         * sysdeps/stub/fxstat.c: Likewise.
2277         * sysdeps/stub/getcwd.c: Likewise.
2278         * sysdeps/stub/getdents.c: Likewise.
2279         * sysdeps/stub/getdomain.c: Likewise.
2280         * sysdeps/stub/getdtsz.c: Likewise.
2281         * sysdeps/stub/getegid.c: Likewise.
2282         * sysdeps/stub/getenv.c: Likewise.
2283         * sysdeps/stub/geteuid.c: Likewise.
2284         * sysdeps/stub/getgid.c: Likewise.
2285         * sysdeps/stub/getgroups.c: Likewise.
2286         * sysdeps/stub/gethostid.c: Likewise.
2287         * sysdeps/stub/gethostname.c: Likewise.
2288         * sysdeps/stub/getitimer.c: Likewise.
2289         * sysdeps/stub/getlogin.c: Likewise.
2290         * sysdeps/stub/getlogin_r.c: Likewise.
2291         * sysdeps/stub/getpagesize.c: Likewise.
2292         * sysdeps/stub/getpeername.c: Likewise.
2293         * sysdeps/stub/getpid.c: Likewise.
2294         * sysdeps/stub/getppid.c: Likewise.
2295         * sysdeps/stub/getpriority.c: Likewise.
2296         * sysdeps/stub/getrlimit.c: Likewise.
2297         * sysdeps/stub/getrusage.c: Likewise.
2298         * sysdeps/stub/getsid.c: Likewise.
2299         * sysdeps/stub/getsockname.c: Likewise.
2300         * sysdeps/stub/getsockopt.c: Likewise.
2301         * sysdeps/stub/getsysstats.c: Likewise.
2302         * sysdeps/stub/gettimeofday.c: Likewise.
2303         * sysdeps/stub/getuid.c: Likewise.
2304         * sysdeps/stub/gtty.c: Likewise.
2305         * sysdeps/stub/ioctl.c: Likewise.
2306         * sysdeps/stub/isatty.c: Likewise.
2307         * sysdeps/stub/isfdtype.c: Likewise.
2308         * sysdeps/stub/kill.c: Likewise.
2309         * sysdeps/stub/killpg.c: Likewise.
2310         * sysdeps/stub/link.c: Likewise.
2311         * sysdeps/stub/listen.c: Likewise.
2312         * sysdeps/stub/lseek.c: Likewise.
2313         * sysdeps/stub/lxstat.c: Likewise.
2314         * sysdeps/stub/madvice.c: Likewise.
2315         * sysdeps/stub/mkdir.c: Likewise.
2316         * sysdeps/stub/mkfifo.c: Likewise.
2317         * sysdeps/stub/mkstemp.c: Likewise.
2318         * sysdeps/stub/mktemp.c: Likewise.
2319         * sysdeps/stub/mmap.c: Likewise.
2320         * sysdeps/stub/morecore.c: Likewise.
2321         * sysdeps/stub/mprotect.c: Likewise.
2322         * sysdeps/stub/msgctl.c: Likewise.
2323         * sysdeps/stub/msgget.c: Likewise.
2324         * sysdeps/stub/msgrcv.c: Likewise.
2325         * sysdeps/stub/msgsnd.c: Likewise.
2326         * sysdeps/stub/msync.c: Likewise.
2327         * sysdeps/stub/munmap.c: Likewise.
2328         * sysdeps/stub/nanosleep.c: Likewise.
2329         * sysdeps/stub/nice.c: Likewise.
2330         * sysdeps/stub/nlist.c: Likewise.
2331         * sysdeps/stub/open.c: Likewise.
2332         * sysdeps/stub/opendir.c: Likewise.
2333         * sysdeps/stub/pathconf.c: Likewise.
2334         * sysdeps/stub/pause.c: Likewise.
2335         * sysdeps/stub/pipe.c: Likewise.
2336         * sysdeps/stub/pipestream.c: Likewise.
2337         * sysdeps/stub/poll.c: Likewise.
2338         * sysdeps/stub/profil.c: Likewise.
2339         * sysdeps/stub/ptrace.c: Likewise.
2340         * sysdeps/stub/putenv.c: Likewise.
2341         * sysdeps/stub/raise.c: Likewise.
2342         * sysdeps/stub/read.c: Likewise.
2343         * sysdeps/stub/readdir.c: Likewise.
2344         * sysdeps/stub/readlink.c: Likewise.
2345         * sysdeps/stub/readv.c: Likewise.
2346         * sysdeps/stub/reboot.c: Likewise.
2347         * sysdeps/stub/recv.c: Likewise.
2348         * sysdeps/stub/recvfrom.c: Likewise.
2349         * sysdeps/stub/recvmsg.c: Likewise.
2350         * sysdeps/stub/remove.c: Likewise.
2351         * sysdeps/stub/rename.c: Likewise.
2352         * sysdeps/stub/revoke.c: Likewise.
2353         * sysdeps/stub/rewinddir.c: Likewise.
2354         * sysdeps/stub/rmdir.c: Likewise.
2355         * sysdeps/stub/sbrk.c: Likewise.
2356         * sysdeps/stub/sched_getp.c: Likewise.
2357         * sysdeps/stub/sched_gets.c: Likewise.
2358         * sysdeps/stub/sched_primax.c: Likewise.
2359         * sysdeps/stub/sched_primin.c: Likewise.
2360         * sysdeps/stub/sched_rr_gi.c: Likewise.
2361         * sysdeps/stub/sched_setp.c: Likewise.
2362         * sysdeps/stub/sched_sets.c: Likewise.
2363         * sysdeps/stub/sched_yield.c: Likewise.
2364         * sysdeps/stub/seekdir.c: Likewise.
2365         * sysdeps/stub/select.c: Likewise.
2366         * sysdeps/stub/semctl.c: Likewise.
2367         * sysdeps/stub/semget.c: Likewise.
2368         * sysdeps/stub/semop.c: Likewise.
2369         * sysdeps/stub/send.c: Likewise.
2370         * sysdeps/stub/sendmsg.c: Likewise.
2371         * sysdeps/stub/sendto.c: Likewise.
2372         * sysdeps/stub/setdomain.c: Likewise.
2373         * sysdeps/stub/setegid.c: Likewise.
2374         * sysdeps/stub/setenv.c: Likewise.
2375         * sysdeps/stub/seteuid.c: Likewise.
2376         * sysdeps/stub/setgid.c: Likewise.
2377         * sysdeps/stub/setgroups.c: Likewise.
2378         * sysdeps/stub/sethostid.c: Likewise.
2379         * sysdeps/stub/sethostname.c: Likewise.
2380         * sysdeps/stub/setitimer.c: Likewise.
2381         * sysdeps/stub/setjmp.c: Likewise.
2382         * sysdeps/stub/setlogin.c: Likewise.
2383         * sysdeps/stub/setpgid.c: Likewise.
2384         * sysdeps/stub/setpriority.c: Likewise.
2385         * sysdeps/stub/setregid.c: Likewise.
2386         * sysdeps/stub/setreuid.c: Likewise.
2387         * sysdeps/stub/setrlimit.c: Likewise.
2388         * sysdeps/stub/setsid.c: Likewise.
2389         * sysdeps/stub/setsockopt.c: Likewise.
2390         * sysdeps/stub/settimeofday.c: Likewise.
2391         * sysdeps/stub/setuid.c: Likewise.
2392         * sysdeps/stub/shmat.c: Likewise.
2393         * sysdeps/stub/shmctl.c: Likewise.
2394         * sysdeps/stub/shmdt.c: Likewise.
2395         * sysdeps/stub/shmget.c: Likewise.
2396         * sysdeps/stub/shutdown.c: Likewise.
2397         * sysdeps/stub/sigaction.c: Likewise.
2398         * sysdeps/stub/sigaltstack.c: Likewise.
2399         * sysdeps/stub/sigblock.c: Likewise.
2400         * sysdeps/stub/sigintr.c: Likewise.
2401         * sysdeps/stub/signal.c: Likewise.
2402         * sysdeps/stub/sigpause.c: Likewise.
2403         * sysdeps/stub/sigpending.c: Likewise.
2404         * sysdeps/stub/sigprocmask.c: Likewise.
2405         * sysdeps/stub/sigreturn.c: Likewise.
2406         * sysdeps/stub/sigsetmask.c: Likewise.
2407         * sysdeps/stub/sigstack.c: Likewise.
2408         * sysdeps/stub/sigsuspend.c: Likewise.
2409         * sysdeps/stub/sigvec.c: Likewise.
2410         * sysdeps/stub/sleep.c: Likewise.
2411         * sysdeps/stub/socket.c: Likewise.
2412         * sysdeps/stub/socketpair.c: Likewise.
2413         * sysdeps/stub/sstk.c: Likewise.
2414         * sysdeps/stub/statfs.c: Likewise.
2415         * sysdeps/stub/stime.c: Likewise.
2416         * sysdeps/stub/stty.c: Likewise.
2417         * sysdeps/stub/swapoff.c: Likewise.
2418         * sysdeps/stub/swapon.c: Likewise.
2419         * sysdeps/stub/symlink.c: Likewise.
2420         * sysdeps/stub/sync.c: Likewise.
2421         * sysdeps/stub/syscall.c: Likewise.
2422         * sysdeps/stub/sysconf.c: Likewise.
2423         * sysdeps/stub/sysd-stdio.c: Likewise.
2424         * sysdeps/stub/system.c: Likewise.
2425         * sysdeps/stub/tcdrain.c: Likewise.
2426         * sysdeps/stub/tcflow.c: Likewise.
2427         * sysdeps/stub/tcflush.c: Likewise.
2428         * sysdeps/stub/tcgetattr.c: Likewise.
2429         * sysdeps/stub/tcgetpgrp.c: Likewise.
2430         * sysdeps/stub/tcsendbrk.c: Likewise.
2431         * sysdeps/stub/tcsetattr.c: Likewise.
2432         * sysdeps/stub/tcsetpgrp.c: Likewise.
2433         * sysdeps/stub/telldir.c: Likewise.
2434         * sysdeps/stub/tempname.c: Likewise.
2435         * sysdeps/stub/time.c: Likewise.
2436         * sysdeps/stub/times.c: Likewise.
2437         * sysdeps/stub/truncate.c: Likewise.
2438         * sysdeps/stub/ttyname.c: Likewise.
2439         * sysdeps/stub/ttyname_r.c: Likewise.
2440         * sysdeps/stub/ualarm.c: Likewise.
2441         * sysdeps/stub/ulimit.c: Likewise.
2442         * sysdeps/stub/umask.c: Likewise.
2443         * sysdeps/stub/unlink.c: Likewise.
2444         * sysdeps/stub/usleep.c: Likewise.
2445         * sysdeps/stub/ustat.c: Likewise.
2446         * sysdeps/stub/utime.c: Likewise.
2447         * sysdeps/stub/utimes.c: Likewise.
2448         * sysdeps/stub/vhangup.c: Likewise.
2449         * sysdeps/stub/wait.c: Likewise.
2450         * sysdeps/stub/wait3.c: Likewise.
2451         * sysdeps/stub/wait4.c: Likewise.
2452         * sysdeps/stub/waitpid.c: Likewise.
2453         * sysdeps/stub/write.c: Likewise.
2454         * sysdeps/stub/writev.c: Likewise.
2455         * sysdeps/stub/xmknod.c: Likewise.
2456         * sysdeps/stub/xstat.c: Likewise.
2457         * sysdeps/unix/closedir.c: Likewise.
2458         * sysdeps/unix/fxstat.c: Likewise.
2459         * sysdeps/unix/getlogin.c: Likewise.
2460         * sysdeps/unix/getlogin_r.c: Likewise.
2461         * sysdeps/unix/mkdir.c: Likewise.
2462         * sysdeps/unix/nice.c: Likewise.
2463         * sysdeps/unix/nlist.c: Likewise.
2464         * sysdeps/unix/opendir.c: Likewise.
2465         * sysdeps/unix/readdir.c: Likewise.
2466         * sysdeps/unix/rmdir.c: Likewise.
2467         * sysdeps/unix/stime.c: Likewise.
2468         * sysdeps/unix/xmknod.c: Likewise.
2469         * sysdeps/unix/xstat.c: Likewise.
2470         * sysdeps/unix/bsd/isatty.c: Likewise.
2471         * sysdeps/unix/bsd/setegid.c: Likewise.
2472         * sysdeps/unix/bsd/seteuid.c: Likewise.
2473         * sysdeps/unix/bsd/setsid.c: Likewise.
2474         * sysdeps/unix/bsd/sigaction.c: Likewise.
2475         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
2476         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
2477         * sysdeps/unix/bsd/tcflow.c: Likewise.
2478         * sysdeps/unix/bsd/tcflush.c: Likewise.
2479         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
2480         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
2481         * sysdeps/unix/bsd/times.c: Likewise.
2482         * sysdeps/unix/bsd/ulimit.c: Likewise.
2483         * sysdeps/unix/common/lxstat.c: Likewise.
2484         * sysdeps/unix/common/tcsendbrk.c: Likewise.
2485         * sysdeps/unix/sysv/setrlimit.c: Likewise.
2486         * sysdeps/unix/sysv/settimeofday.c: Likewise.
2487         * sysdeps/unix/sysv/sigaction.c: Likewise.
2488         * sysdeps/unix/sysv/tcflow.c: Likewise.
2489         * sysdeps/unix/sysv/tcflush.c: Likewise.
2490         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
2491         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
2492         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
2493         * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
2494         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
2495         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
2496         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
2497         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
2498         * sysdeps/unix/sysv/linux/gethostname.c: Likewise.
2499         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
2500         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
2501         * sysdeps/unix/sysv/linux/speed.c: Likewise.
2502         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
2503         * sysdeps/unix/sysv/sysv4/sigaction.c: Likewise.
2504         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
2505         * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
2506         * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
2507         * sysdeps/unix/bsd/sun/sunos4/speed.c: Likewise.
2508         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c: Likewise.
2509         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Likewise.
2510         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
2511         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
2512         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
2514         * sunrpc/clnt_tcp.c: Protect declaration of errno by #ifndef.
2515         * sunrpc/clnt_udp.c: Likewise.
2516         * sunrpc/bindrsvprt.c: Likewise.
2517         * sunrpc/pm_getmaps.c: Likewise.
2518         * sunrpc/pmap_rmt.c: Likewise.
2519         * sunrpc/svc.c: Likewise.
2520         * sunrpc/svc_run.c: Likewise.
2521         * sunrpc/svc_tcp.c: Likewise.
2522         * sunrpc/svc_udp.c: Likewise.
2524         * sysdeps/generic/strtok.c: Don't check argument, just crash.
2525         * sysdeps/generic/strtok_r.c: Likewise.
2527         * sysdeps/stub/start.c: Make __errno a strong alias of errno.
2528         * sysdeps/unix/start.c: Likewise.  De-ANSI-fy.
2529         * sysdeps/unix/sparc/start.c: Likewise.
2530         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
2531         * sysdeps/unix/sysv/irix4/start.c: Likewise.
2532         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
2533         * sysdeps/unix/sysv/linux/i386/sysdep.S: Likewise.
2534         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2536 Mon Sep 23 17:54:57 1996  Ulrich Drepper  <drepper@cygnus.com>
2538         * catgets/gencat.c (main): Put package name in --version message
2539         in parantheses.  Reported by Jim Meyering.
2540         * db/makedb.c: Likewise.
2541         * locale/programs/locale.c: Likewise.
2542         * locale/programs/localedef.c: Likewise.
2544         * sysdeps/i386/fpu/__math.h (tan): Make sure gcc knows we use
2545         two registers.  Patch by John Bowman.
2547 Sat Sep 21 15:08:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2549         * sysdeps/mach/libc-lock.h: Fix comment.
2550         * sysdeps/stubs/libc-lock.h: Likewise.
2552 Sat Sep 21 13:50:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2554         * libio/genops.c (_IO_init) [_IO_MTSAFE_IO]: Dereference pointer
2555         to lock when passing it to __libc_lock_init macro.
2556         (_IO_default_finish) [_IO_MTSAFE_IO]: Dereference pointer to lock
2557         when passing it to __libc_lock_fini macro.
2559 Sat Sep 21 14:35:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2561         * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYSCALL_ERROR_HANDLER)
2562         [_LIBC_REENTRANT]: Add missing semicolon.
2564         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Move inclusion of
2565         sysdep.h to the top outside of #ifndef PIC.  Don't include errnos.h.
2566         Use the ENTRY macro.
2568 Sat Sep 21 14:33:41 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2570         * libio/Makefile: Make `all' the default target.
2571         * po/Makefile: Likewise.
2573 Mon Sep 23 15:49:47 1996  Ulrich Drepper  <drepper@cygnus.com>
2575         * stdlib/test-canon.c: Correct patch from Thu Sep 12 23:01:16 1996.
2576         I applied it incorrectly.
2577         * sysdeps/m68k/fpu/s_scalbn.c: Likewise.
2578         * sysdeps/m68k/fpu/s_scalbnf.c: Likewise.
2579         * sysdeps/m68k/fpu/s_scalbnl.c: Likewise.
2581 Mon Sep 23 03:00:10 1996  Ulrich Drepper  <drepper@cygnus.com>
2583         * shadow/sgetspent_r.c (LINE_PARSER): Accept empty 9th field.
2584         Patch by NIIBE Yutaka <gniibe@mri.co.jp>.
2586         * shadow/sgetspent_r.c (LINE_PARSER): Don't accept any chars after
2587         9th field.
2589         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
2590         (sysdep_headers): Add sys/debugreg.h, sys/kd.h, sys/soundcard.h,
2591         and sys/vt.h.
2592         * sysdeps/unix/sysv/linux/sys/debugreg.h: New file.
2593         * sysdeps/unix/sysv/linux/sys/kd.h: New file.
2594         * sysdeps/unix/sysv/linux/sys/soundcard.h: New file.
2595         * sysdeps/unix/sysv/linux/sys/vt.h: New file.
2596         Reported by NIIBE Yutaka <gniibe@mri.co.jp>.
2598 Thu Sep 26 13:44:29 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2600         * hurd/Makefile (installed-sunrpc-headers): New variable.
2601         (sunrpc-headers): New variable.
2602         (install-headers-nosubir): Depend on $(installed-sunrpc-headers),
2603         not just <rpc/netdb.h>.
2604         ($(installed-sunrpc-headers)): Provide rule for all of these.
2606 Mon Sep 23 15:31:04 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2608         * hurd/Makefile ($(includedir)/rpc/netdb.h): There is no make
2609         variable `top_srcdir' in libc; use $(..) instead.
2611         * sysdeps/mach/hurd/Makefile (rtld-installed-name): Delete special
2612         definition.  It was a *Mistake*.  (With a capital M.)
2614         * sysdeps/mach/getsysstats.c (__get_nprocs): Renamed from
2615         __get_nproc.
2616         (__get_nprocs_conf): Renamed from __get_nproc_conf.
2618 Sun Sep 22 15:18:41 1996  Ulrich Drepper  <drepper@cygnus.com>
2620         * sysdeps/unix/sysv/linux/init-first.c: Define dummy function
2621         `_dl_start' so that linking fails if this file should ever be used
2622         in ld.so.
2624         * catgets/gencat.c (main): Change --version message according to
2625         RMS' last standard revision.
2626         * db/makedb.c: Likewise.
2627         * locale/programs/locale.c: Likewise.
2628         * locale/programs/localedef.c: Likewise.
2630 Sat Sep 21 23:42:39 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2632         * sysdeps/mach/getsysstats.c: Include <sys/sysinfo.h>.
2633         (__get_nproc_conf): New function.
2635 Sun Sep 22 03:40:52 1996  Ulrich Drepper  <drepper@cygnus.com>
2637         * resolv/resolv.h: Update to bind-4.9.5-T4B.
2638         * resolv/base64.c: Likewise.
2639         * resolv/res_debug.c: Likewise.
2640         * resolv/res_query.c: Likewise.
2641         * resolv/gethnamaddr.c: Likewise.
2642         * nss/nss_dns/dns-host.c: Likewise.
2643         * resolv/res_comp.c: Likewise.
2644         * resolv/res_send.c: Likewise.
2645         * resolv/arpa/nameser.h: Likewise.  Attention: MAXDNAME is much
2646         higher now.
2648         * resolv/Banner: New file.
2649         * resolv/Makefile (distribute): Add Banner.
2651 Sat Sep 21 19:15:24 1996  Ulrich Drepper  <drepper@cygnus.com>
2653         * sysdeps/stub/getsysstats.c: New file.
2654         * sysdeps/unix/sysv/linux/getsysstats.c: New file.
2656         * misc/Makefile (headers): Add sys/sysinfo.h.
2657         (routines): Add getsysstats.
2658         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
2659         (sysdep_headers): Remove sys/sysinfo.h.
2660         * sysdeps/generic/sys/sysinfo.h: New file.
2661         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Add prototype for get_nprocs,
2662         get_phys_pages, and get_avphys_pages.
2664         * misc/Makefile (routines): Add mntent_r.
2665         * misc/mntent_r.c: New file.
2666         * misc/mntent.c: Remove all functions but getmntent and use
2667         __getmntent_r.
2668         * misc/mntent.h: Add prototype for __getmntent_r.
2669         * misc/fstab.c: Use __getmntent_r function instead of getmntent.
2670         This will not clobber the state in getmntent.
2672         * sysdeps/generic/confname.h: Add _SC_PROCESSORS_CONF,
2673         _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES, _SC_AVPHYS_PAGES,
2674         _SC_ATEXIT_MAX, and _SC_PASS_MAX.
2675         * sysdeps/stub/sysconf.c: Add handling _SC_PROCESSORS_CONF and
2676         _SC_NPROCESSORS_ONLN by calling __get_nprocs, _SC_PHYS_PAGES by
2677         calling __get_phys_pages, _SY_AVPHYS_PAGES by calling
2678         __get_avphys_pages, _SC_ATEXIT_MAX and _SC_PASS_MAX.
2679         * sysdeps/posix/sysconf.c: Likewise.
2680         * posix/getconf.c (vars): Add _NPROCESSORS_CONF, _NPROCESSORS_ONLN,
2681         _PHYS_PAGES, _AVPHYS_PAGES, ATEXIT_MAX, and PASS_MAX entries.
2683 Sat Sep 21 05:20:36 1996  Ulrich Drepper  <drepper@cygnus.com>
2685         * version.h (VERSION): Bump to 1.95.
2687         * Make-dist (+tsrcs): Don't filter out files in subdirs which
2688         match files in the sysdeps hierachy (welcome back,
2689         sys/syscall.h!).
2691         * resolv/Makefile (libresolv-routines): Remove getnetnamad.
2693 Sat Sep 21 03:00:19 1996  Ulrich Drepper  <drepper@cygnus.com>
2695         * locale/loadlocale.c (_nl_free_locale): Remove function.
2696         * locale/localeinfo.h: Remove prototype for _nl_free_locale.
2697         * locale/setlocale.c (setlocale): Don't free locale data of
2698         categories which succeeded to load after a wrong or missing data
2699         file was observed.
2701         * locale/setlocale (setlocale): Initialize NEWNAME correctly so
2702         that it works even when the locale data is not used.
2704         * stdlib/random_r.c: Fix typo in comment.
2705         * stdlib/drand48-iter.c: Likewise.
2706         * stdlib/drand48.c: Likewise.
2707         * stdlib/erand48.c: Likewise.
2708         * stdlib/jrand48.c: Likewise.
2709         * stdlib/lcong48.c: Likewise.
2710         * stdlib/lrand48.c: Likewise.
2711         * stdlib/mrand48.c: Likewise.
2712         * stdlib/nrand48.c: Likewise.
2713         * stdlib/random.c: Likewise.
2714         * stdlib/seed48.c: Likewise.
2715         * stdlib/srand48.c: Likewise.
2716         * misc/search.h: Likewise.
2717         * misc/hsearch.c: Likewise.
2718         * misc/hsearch_r.c: Likewise.
2720 Sat Sep 21 14:59:22 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2722         * sysdeps/mach/getsysstats.c: New file.
2724         * shlib-versions (*-*-gnu*): Increment libc to 0.2 for upcoming
2725         binary distribution.
2727         * sysdeps/mach/hurd/Makefile (rtld-installed-name): Provide
2728         definition to override dangerous one in Makeconfig.
2730         * hurd/Makefile (install-headers-nosubdir): Install <rpc/netdb.h>.
2731         ($(includedir)/rpc/netdb.h): New rule.
2732         [ This is XXX until sunrpc can be built; <rpc/netdb.h> is
2733         essential. ]
2735 Fri Sep 20 16:06:06 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2737         * sysdeps/mach/hurd/i386/init-first.c (_dl_start): Add definition,
2738         to guarantee link errors if this is included in ld.so.
2740 Thu Sep 19 23:36:19 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2742         * hurd/hurdinit.c (__libc_argv): Provide common decl.
2743         (_hurd_setproc): Don't declare __libc_argv here.
2745 Tue Sep 17 10:51:58 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2747         * malloc/memalign.c (memalign): Only acquire __libc_malloc_lock
2748         for actual modifications to global state.  
2750 Fri Sep 13 01:21:36 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2752         * sysdeps/mach/Makefile (includes): Add -I$(common-objpfx)mach/.
2753         * sysdeps/mach/hurd/Makefile (includes): Add
2754         -I$(common-objpfx)hurd/.  Reported by Marcus Daniels.
2756         * sysdeps/generic/schedbits.h (struct sched_param): Renamed from
2757         struct sched_params.
2758         * sysdeps/stub/sched_setp.c (__sched_setparam): struct
2759         sched_params -> struct sched_param.
2760         * sysdeps/stub/sched_getp.c (__sched_getparam): Likewise.
2761         * sysdeps/stub/sched_sets.c (__sched_setscheduler): Likewise.
2763 Thu Sep 12 23:58:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2765         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): Fix
2766         syntax error.
2767         
2768         * stdio-common/Makefile: Put lockfile in routines
2769         unconditionally. 
2770                 
2771         * stdio-common/vfprintf.c (__flockfile, __funlockfile): Declare
2772         this always, not just if _LIBC_REENTRANT.
2773         (__funlockfile): Don't use weak_extern for this one;
2774         __libc_cleanup_region_end might be defined and the use of
2775         __funlockfile can't be protected the way the use of __flockfile
2776         can be. 
2777         
2778 Thu Sep 19 21:50:55 1996  Ulrich Drepper  <drepper@cygnus.com>
2780         * sysdeps/posix/gettimeofday.c (__gettimeofday): Use localtime_r
2781         instead of localtime.
2782         Reported by Matthias Urlichs.
2784         * shlib-versions: Remove version number for libcrypt.
2785         * features.h: Define __USE_REENTRANT if _REENTRANT or _THREAD_SAFE.
2786         * libc-symbols.h: Define _REENTRANT while compiling libc.
2788         * sysdeps/unix/sysv/linux/i386/sysdep.S (__errno_location):
2789         Define even if !_LIBC_REENTRANT.
2790         * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location):
2791         Likewise.
2793         * sysdeps/posix/cuserid.h: Remove prototype for geteuid().
2794         De-ANSI-fy.
2796         * MakeTAGS ($P/libc.pot): Generate correctly formed header.
2797         * po/header.pot: Correct title line.
2798         * po/nl.po: Update.
2800 Thu Sep 19 18:59:55 1996  Ulrich Drepper  <drepper@cygnus.com>
2802         * Makeconfig (soversions.mk): Prefer shared lib version numbers
2803         is add ons over version in libc itself.
2805         * sysdeps/unix/sysv/linux/i386/sysdep.S: Include <sysdep.h>.
2806         * sysdeps/unix/sysv/linux/i386/sysdep.h: Prevent multiple
2807         inclusion.
2809         * libio/iofgets.c: Use __flockfile and __funlockfile instead of
2810         _IO_flockfile and _IO_funlockfile resp.
2812         * locale/categories.def: Partly support for correct `era' handling
2813         in LC_TIME category.
2814         * locale/langinfo.h: Likewise.
2815         * locale/programs/ld-time.c: Likewise.
2816         * locale/localeinfo.h: Change comment a bit.
2818         * malloc/memalign.c: Don't use goto, not necessary anymore.
2820 1996-09-18  Paul Eggert  <eggert@twinsun.com>
2822         * time/mktime.c (ydhms_tm_diff):  Work correctly even if year
2823         is negative, or if time_t is unsigned.
2824         * time/strftime.c (tm_diff): Work correctly even if tm_year
2825         is near INT_MIN.
2827 Tue Sep 17 16:14:34 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2829         * sysdeps/m68k/fpu/__math.h (__inline_mathop): Changed to generate
2830         all three versions of the math function.
2831         (__inline_mathopf, __inline_mathopl): Removed.
2832         (__inline_functions): New temporary definition containing all
2833         non-trivial inline functions.
2835 Wed Sep 18 00:25:41 1996  Ulrich Drepper  <drepper@cygnus.com>
2837         * time/strftime.c (strftime): The T_FMT_AMPM string may be empty.
2839 Tue Sep 17 20:27:18 1996  Ulrich Drepper  <drepper@cygnus.com>
2841         * math/Makefile (extra-libs-others): Use $(extra-libs) instead
2842         of $(extra-libc).
2844 Tue Sep 17 17:09:44 1996  Ulrich Drepper  <drepper@cygnus.com>
2846         * sysdeps/stub/fpu_control.h: Correct end of file comment.
2848 Tue Sep 17 05:39:18 1996  Ulrich Drepper  <drepper@cygnus.com>
2850         * stdio-common/bug3.c, stdio-common/bug4.c, stdio-common/bug5.c,
2851         stdio-common/test-popen.c: Remove temporary files after test.
2852         * stdio-common/bug5.c: Use `system' instead of `execlp'.
2853         Patches by Andreas Jaeger.
2855         * stdio-common/bug5.c: Create string for `system' argument to
2856         make sure the input and output file names are really correct.
2858 Sun Sep 15 12:46:44 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2860         * configure.in: If $os contains a hyphen add the part before the
2861         hyphen to $ostry.
2863 Sun Sep 15 18:14:02 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2865         * sysdeps/m68k/fpu/__math.h (__ieee754_pow, __ieee754_powf,
2866         __ieee754_powl): Rename local variable i to __i.
2867         (__ieee754_atan2, __ieee754_atan2f, __ieee754_atan2l): New inline
2868         functions.
2869         * sysdeps/m68k/fpu/e_atan2.c, sysdeps/m68k/fpu/e_atan2f.c,
2870         sysdeps/m68k/fpu/e_atan2l.c: New files.
2872 1996-09-15  Paul Eggert  <eggert@twinsun.com>
2874         * manual/time.texi: Change `range X to Y' to `range X through
2875         Y', to avoid ambiguity in English.
2877         (strftime): Numbers that do not have a range indicated are not padded.
2878         Describe E and O modifiers.
2879         %g, %G, %u: New formats.
2880         %C, %y, %Y: Describe behavior on negative years.
2881         %e: Fix typo (was labeled %d).
2882         %l, %V: Fix typo in range.
2883         %M, %S, %U, %w, %W: Give ranges.
2884         %p: Clarify how noon and midnight are handled for AM and PM.
2885         %s: Clarify leap second handling.
2886         %r: Now locale-defined.
2887         %C, %D, %e, %h, %n, %r, %t, %T: Say that they are POSIX.2 extensions.
2888         %z: Say that it is a GNU extension.
2889         %Z: Wording fix.
2891         * time/strftime.c: (strftime):
2892                 %V: Fix mishandling of week numbers near year boundaries.
2893                 %g, %G: New formats (suggested by Arthur David Olson).
2894                 %U, %W: Use inline expression instead of `week' function.
2895                 %C, %y: Handle negative years portably.
2896                 %C, %Y: Use width 1, since values can be arbitrarily wide.
2897                 %r: Use T_FMT_AMPM format if _NL_CURRENT is defined.
2898                 %u: New Posix.2 format.
2899                 %w: Width is 1, not 2.
2900         (iso_week_days): New function, for %V, %G, %g.
2901         (week): Remove; it didn't handle %V correctly.
2902         (__isleap): New macro.
2903         (mbsinit): Use arg, to pacify GCC -Wall.
2905 1996-09-13  Paul Eggert  <eggert@twinsun.com>
2907         * time/strftime.c (strftime):
2908         If using the GNU C library, do not bother to check for
2909         multibyte encodings, since they're safe in formats.  Otherwise:
2910           - Check for multibyte encodings when encountering any character that
2911           is not in the basic execution character set of the C Standard.
2912           - Use mbrlen (if available) instead of mblen, to avoid modifying
2913           mblen's internal state.
2914           - Do not assume that '%' cannot appear as the first character of a
2915           multibyte character sequence, since this is possible when not in the
2916           initial shift state.
2917         (HAVE_MBRLEN, MULTIBYTE_IS_FORMAT_SAFE): Define if _LIBC is defined.
2918         (DO_MULTIBYTE): New macro.
2919         (<ctype.h>): Do not include.
2920         (<wchar.h>): Include if HAVE_MBRLEN.
2921         (mbstate_t, mbrlen, mbsinit): Define if ! HAVE_MBRLEN.
2922         (mbstate_zero): New constant.
2924 1996-09-12  Paul Eggert  <eggert@twinsun.com>
2926         * time/strftime.c (strftime):
2927         Use an empty zone if it can't be determined; POSIX.2 requires this.
2928         Use plain `int' for pad and modifier (which now contain char value).
2929         Use plain `int' for number_value, to print negative values correctly.
2930         Use plain `int' for digits; there was no need to make it unsigned.
2931         Initialize subfmt consistently.
2932         Remove incorrect code for %EC and %Ey; they aren't implemented yet.
2933         For %O, if there is no alternate digit, output Ascii instead of "".
2934         Output the `%' of an unknown format; this is most likely the right
2935         thing to do if a multibyte string has been misparsed.
2937 Thu Sep 12 23:23:13 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2939         * stdio-common/scanf7.c (main): Remove extra conversion from
2940         printf format string.
2942 Thu Sep 12 23:01:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2944         * stdlib/test-canon.c (tests): Rename structure member from errno
2945         to error, all uses changed.
2947 Thu Sep 12 20:08:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2949         * sysdeps/m68k/fpu/__math.h (__ldexp, __ldexpf, __ldexpl):
2950         Removed.
2951         * sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
2952         sysdeps/m68k/fpu/s_ldexpl.c: Removed, use generic implementation
2953         instead.
2954         * sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
2955         sysdeps/m68k/fpu/s_scalbnl.c: Replaced with old contents of
2956         s_ldexp.c, s_ldexpf.c and s_ldexpl.c, resp., suitably adpted.
2958         * sysdeps/m68k/fpu/__math.h (__frexp, __frexpf, __frexpl):
2959         Return value must be in [0.5, 1), not [1, 2).  Reported by Chris
2960         Lawrence.
2961         (__ilogb, __ilogbf, __ilogbl): Check for argument being zero.
2962         (__scalbn, __scalbnf, __scalbnl): Use second argument directly.
2964 Thu Sep 12 19:59:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2966         * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
2967         * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
2969 Thu Sep 12 19:59:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2971         * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
2972         * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
2974 Thu Sep 12 19:56:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2976         * inet/herrno.c (__h_errno_location): Fix return type.
2978 Thu Sep 19 23:36:19 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2980         * hurd/hurdinit.c (__libc_argv): Provide common decl.
2981         (_hurd_setproc): Don't declare __libc_argv here.
2983 Fri Sep 13 04:33:08 1996  Ulrich Drepper  <drepper@cygnus.com>
2985         * sched.h: New file.  Helper to access posix/sched.h.
2986         * posix/sched.h: Change `sched_params' to `sched_param' to follow
2987         POSIX.4.
2989 Thu Sep 12 20:12:40 1996  Ulrich Drepper  <drepper@cygnus.com>
2991         * db/makedb.c (usage): Print bug report address separately to
2992         ease translators task.
2993         * catgets/gencat.c (usage): Likewise.
2994         * locale/locale.c (usage): Likewise.
2995         * locale/localedef.c (usage): Likewise.
2997 1996-09-12  Paul Eggert  <eggert@twinsun.com>
2999         * time/strftime.c (my_localtime_r): Define if ! HAVE_LOCALTIME_R,
3000         and #define localtime_r to it.  If _LIBC, use __localtime_r instead.
3001         (my_gmtime_r): Similar, except it's not needed if ! HAVE_TM_GMTOFF.
3003 Thu Sep 12 14:03:29 1996  Ulrich Drepper  <drepper@cygnus.com>
3005         * crypt/Makefile: Include Makeconfig and add crypt object dir to
3006         rpath-link so that running the check finds the new library.
3007         * crypt/cert.c: provide correct prototypes to prevent warnings.
3008         Reported by Andreas Jaeger.
3010         * sysdeps/mach/hurd/Makefile (rpath-link): Don't use += because
3011         old and new value must be glued using `:'.
3012         Reported by Marcus Daniels.
3014 Thu Sep 12 12:33:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3016         * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
3017         accidentally added on.
3019         * sysdeps/stub/intr-msg.h: New file.
3021         * stdio-common/vfprintf.c: Include <libc-lock.h>.
3022         * stdio-common/vfscanf.c: Include <libc-lock.h>.
3024         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
3025         macro.
3026         (__libc_cleanup_region_end): New macro.
3028 Thu Sep 12 12:33:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3030         * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
3031         accidentally added on.
3033         * sysdeps/stub/intr-msg.h: New file.
3035         * stdio-common/vfprintf.c: Include <libc-lock.h>.
3036         * stdio-common/vfscanf.c: Include <libc-lock.h>.
3038         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
3039         macro.
3040         (__libc_cleanup_region_end): New macro.
3042 Thu Sep 12 03:35:27 1996  Ulrich Drepper  <drepper@cygnus.com>
3044         * sysdeps/unix/sysv/linux/i386/Dist: Remove init-first.h.
3045         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
3046         * sysdeps/unix/sysv/linux/Dist: Add init-first.h.
3048 1996-09-11  Paul Eggert  <eggert@twinsun.com>
3050         * strftime.c (strftime):
3051         Handle E and O modifiers, required for POSIX.2 and XPG4.
3052         Don't use sprintf to format numbers; this way, we can handle time_t
3053         correctly regardless of whether it's signed.
3054         Don't dump core if format ends in %.
3055         In default %c format, use %e instead of %d, for POSIX.2 compatibility.
3056         For %z:
3057                 Use tm_gmtoff if available.
3058                 Output nothing if tm_isdst is negative.
3059                 Output correct value even if arg is 1969-12-31 23:59:59 UTC.
3060                 Don't assume that UTC offset is less than 24 hours;
3061                 Posix requires support for 24 hours, and there's no point
3062                 limiting it at all.
3063         (HAVE_TM_GMTOFF, TYPE_SIGNED, INT_STRLEN_BOUND): New macros.
3064         (CHAR_BIT): Define if <limits.h> doesn't.
3065         (tm_diff): New function.
3066         (fmt, <stdio.h>): Remove; no longer used.
3068 Thu Sep 12 02:21:44 1996  Ulrich Drepper  <drepper@cygnus.com>
3070         * db/Makefile: Add extra-libs-others variable so that shared
3071         library is built in `others' pass.
3072         * elf/Makefile: Likewise.
3073         * math/Makefile: Likewise.
3074         * resolv/Makefile: Likewise.
3076         * Makefile (generated): Add version.info.h.
3078         * time/checktab.awk: New file.  From ADO 96k.
3079         * time/iso3166.tab: Likewise.
3080         * time/tzselect.ksh: Likewise.
3081         * time/zone.tab: Likewise.
3083         * stdio-common/vfprintf.c: Correct cleanup registration.  We
3084         cannot use a macro
3086 1996-09-11  Paul Eggert  <eggert@twinsun.com>
3088         * time/time.h (tm_gmtoff, tm_zone): Prefix with `__' unless
3089         __USE_BSD; this is required for ANSI C compatibility.
3090         * manual/time.texi: Replace GMT by UTC, daylight savings by
3091         daylight saving, timezone by time zone.
3092         Rewrite description of %V to match ISO 8601.
3093         Fix TZ Posix string example for US Eastern time.
3094         Explain tzname[1] when DST isn't used.
3095         Explain tzname when multiple abbreviations used (e.g. EST/EWT/EDT).
3096         Explain that timezone's sign is opposite from tm_gmtoff, and that
3097         timezone lacks DST adjustment whereas tm_gmtoff has it.
3098         Deprecate tzname and timezone.
3100 Tue Sep 10 14:46:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3102         Implement Roland McGrath's idea of how to put an .interp into
3103         shared libraries.
3104         * interp.c: New file.
3105         * Makerules (interp-obj): New object, linked into every shared
3106         library.
3107         (common-generated): Add interp.so.
3108         (CFLAGS-interp.c): Pass name of interpreter.
3110 Tue Sep 10 21:09:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3112         * db/Makefile: Fix typo.
3114 Tue Sep 10 19:29:53 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3116         * nss/db-Makefile ($(VAR_DB)/passwd.db): Look for multiple
3117         occurences of the same uid, and only generate a mapping for the
3118         first one.
3120 Tue Sep 10 03:14:59 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3122         * sysdeps/unix/sysv/linux/system.c: New file, to override
3123         sysdeps/unix/system.c.
3125 Tue Sep 10 15:05:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3127         * Makefile (before-compile): Add version-info.h, needed to build
3128         version.d.
3130 Tue Sep 10 14:14:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3132         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Remove check for
3133         EWOULDBLOCK, never true on Linux.
3134         (__errno_location): New function.
3135         [_LIBC_REENTRANT]: Set errno using __errno_location function.
3136         * sysdeps/unix/sysv/linux/m68k/sysdep.h [PIC]: Add second
3137         syscall_error handler for reentrant libc.
3139 Tue Sep 10 13:27:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3141         * elf/Makefile (extra-objs): Add eval.so to get dependencies.
3143 Wed Sep 11 04:40:57 1996  Ulrich Drepper  <drepper@cygnus.com>
3145         * time/tzset.c (__tzname_cur_max): Use type `size_t' to avoid
3146         warning.
3147         * time/tzfile.c (compute_tzname_max): Likewise.
3149 Wed Sep 11 02:57:31 1996  Ulrich Drepper  <drepper@cygnus.com>
3151         * configure.in: Quote $add_ons argument in loop to generated
3152         prefices.
3154 Tue Sep 10 20:43:45 1996  Ulrich Drepper  <drepper@cygnus.com>
3156         * db/makedb.c: Include <locale.h>.  Reported by Fila Kolodny.
3158 Tue Sep 10 14:42:39 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3160         * elf/dl-cache.c: Rename to ...
3161         * sysdeps/generic/dl-cache.c:  ... here.
3162         * sysdeps/mach/hurd/dl-cache.c: New file.
3163         
3164         * mach/Makefile (distribute): Add `errsystems.awk'.
3165         * hurd/Makefile (distribute): Add `Notes' and `intr-msg.h'.
3166         * hurd/hurdintr.awk: Delete file.  (Not used in ages.)
3167         * hurd/intr-rpc.awk: Likewise.
3168         * hurd/invoke-trans.c: Likewise.
3169         * sysdeps/mach/hurd/i386/longjmp-ctx.c: Likewise.
3170         * sysdeps/mach/hurd/alpha/longjmp-ctx.c: Likewise.
3171         * sysdeps/mach/hurd/mips/longjmp-ctx.c: Likewise.
3172         * sysdeps/mach/hurd/i386/init-fault.c: Likewise.
3173         * sysdeps/mach/hurd/mips/init-fault.c: Likewise.
3174         * sysdeps/stub/init-fault.c: Likewise.
3175         * sysdeps/stub/longjmp-ctx.c: Likewise.
3176         
3177 Tue Sep 10 13:49:08 1996  Ulrich Drepper  <drepper@cygnus.com>
3179         * inet/herrno.c: Initialize `h_errno' so that we can provide
3180         alias.
3182         * Makefile (version-info.h): Fix typo in shell script.
3184         * sysdeps/i386/i586/strlen.S: Optimize startup code a bit.
3185         * sysdeps/i386/i586/strchr.S: Likewise.
3187 Mon Sep  9 20:31:27 1996  Ulrich Drepper  <drepper@cygnus.com>
3189         * version.c (banner): Report to bug-glibc@prep not @gnu.
3190         Reported by Andreas Jaeger.
3192         * libio/stdio.h [!__USE_REENTRANT]: Don't define getc as
3193         _IO_getc_unlocked.
3194         [__USE_REENTRANT]: Don't define
3196 Mon Sep  9 15:59:32 1996  Ulrich Drepper  <drepper@cygnus.com>
3198         * sysdeps/i386/strrchr.c: Fix bug where NUL byte is not recognized
3199         when it is the third byte in the string.  Reported by
3200         NIIBE Yutaka.
3201         * string/tester.c: Add tests for above bug to strlen, strchr, and
3202         strrchr tests.
3204 Fri Sep  6 21:23:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3206         * sysdeps/m68k/fpu/e_acos.c: Deansideclized.  Include
3207         "math_private.h" to get prototype.
3208         * sysdeps/m68k/fpu/e_fmod.c: Likewise.
3209         * sysdeps/m68k/fpu/k_cos.c: Likewise.
3210         * sysdeps/m68k/fpu/k_sin.c: Likewise.
3211         * sysdeps/m68k/fpu/k_tan.c: Likewise.
3213         * sysdeps/m68k/fpu/k_sin.c: Remove uneeded indirection of
3214         __m81_u.
3215         * sysdeps/m68k/fpu/k_tan.c: Likewise.
3217 Sun Sep  1 18:01:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3219         * sysdeps/m68k/fpu/__math.h: Check for __NO_M81_MATH_INLINES
3220         instead of __NO_MATH_INLINES.
3221         (__M81_MATH_INLINES): Renamed from __MATH_INLINES.
3222         * sysdeps/m68k/fpu/e_acos.c: Define __NO_M81_MATH_INLINES.
3223         * sysdeps/m68k/fpu/e_fmod.c: Likewise.
3224         * sysdeps/m68k/fpu/k_cos.c: Likewise.
3225         * sysdeps/m68k/fpu/k_sin.c: Likewise.
3226         * sysdeps/m68k/fpu/k_tan.c: Likewise.
3227         * sysdeps/m68k/fpu/s_atan.c: Likewise.
3228         * sysdeps/m68k/fpu/s_frexp.c: Likewise.
3229         * sysdeps/m68k/fpu/s_ilogb.c: Likewise.
3230         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
3231         * sysdeps/m68k/fpu/s_ldexp.c: Likewise.
3232         * sysdeps/m68k/fpu/s_modf.c: Likewise.
3233         * sysdeps/m68k/fpu/k_cos.c: Use inline version of __cos.
3234         * sysdeps/m68k/fpu/k_sin.c: Likewise.
3235         * sysdeps/m68k/fpu/k_tan.c: Likewise.
3237 Mon Sep  9 12:55:14 1996  Ulrich Drepper  <drepper@cygnus.com>
3239         * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): Check for
3240         available character before converting number and return with
3241         error if none is available.
3243 Fri Sep  6 22:09:08 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3245         * sysdeps/unix/sysv/linux/init-first.h: New file, generic
3246         implementation for architectures where parameters are passed on
3247         stack.
3248         * sysdeps/unix/sysv/linux/m68k/init-first.h: Removed.
3249         * sysdeps/unix/sysv/linux/i386/init-first.h: Removed.
3251 Fri Sep  6 22:05:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3253         * configure.in: Remove unneeded sysnames frobbing.
3255 Mon Sep  9 05:29:09 1996  Ulrich Drepper  <drepper@cygnus.com>
3257         * time/zic.c: Update from ADO 96l.
3258         * time/africa: Update from ADO 96k.
3259         * time/antarctica: Likewise.
3260         * time/asia: Likewise.
3261         * time/australia: Likewise.
3262         * time/europe: Likewise.
3263         * time/northamerica: Likewise.
3264         * time/southamerica: Likewise.
3266 Mon Sep  9 05:03:47 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
3268         * sysdeps/unix/sysv/linux/i386/init-first.h: Work around buggy
3269         gcc <= 2.7.2.1 which optimizes away address operations on weak
3270         objects.
3272         * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): New macro.
3273         Like INT_FIELD but also accept non-existing field.
3274         * shadow/sgetspent_r.c (LINE_PARSER): Use INT_FIELD_MAYBE_NULL
3275         for last four fields.
3276         * shadow/putspent.c (putspent): Print `:' after numeric value.
3278 Mon Sep  9 02:42:48 1996  Richard Henderson  <rth@tamu.edu>
3280         * libio/stdio.h (BUFSIZ): Define using _IO_BUFSIZ.
3282 Sun Sep  8 16:43:56 1996  Ulrich Drepper  <drepper@cygnus.com>
3284         * Make-dist: Filter out $(add-ons) from $(subdirs).
3285         Don't distribute TAGS files.
3286         ($(tardir).tar): Remove dist.tar when all is done.
3287         * manual/Makefile (distribute): Add libc.info*.
3288         * libio/Makefile (distribute): Add Banner.
3289         * inet/Makefile (headers): Add netinet/tcp.h.
3291         * resolv/Makefile (libresolv-routines): Add getnetnamadr.
3293         * crypt-README: Removed.
3294         * gnu-stabs.h: Removed.
3296         * sysdeps/alpha/copysign.S: Renamed to...
3297         * sysdeps/alpha/s_copysign.S: ...this.
3298         * sysdeps/alpha/fabs.S: Renamed to...
3299         * sysdeps/alpha/s_fabs.S: ...this.
3301         * sysdeps/m68k/isinfl.c: Renamed to...
3302         * sysdeps/m68k/s_isinfl.c: ...this.
3303         * sysdeps/m68k/isnanl.c: Renamed to...
3304         * sysdeps/m68k/s_isnanl.c: ...this.
3306         * sysdeps/sparc/sqrt.c: Renamed to...
3307         * sysdeps/sparc/e_sqrt.c: ...this.  Function name now is
3308         __ieee754_sqrt.
3310         * sysdeps/generic/get_str.c: Removed.
3312         * sysdeps/ieee754/cbrt.c: Removed.
3313         * sysdeps/ieee754/drem.c: Removed.
3314         * sysdeps/ieee754/logb.c: Removed.
3315         * sysdeps/ieee754/sqrt.c: Removed.
3317         * sysdeps/stub/cbrt.c: Removed.
3318         * sysdeps/stub/cos.c: Removed.
3319         * sysdeps/stub/drem.c: Removed.
3320         * sysdeps/stub/isinf.c: Removed.
3321         * sysdeps/stub/isinfl.c: Removed.
3322         * sysdeps/stub/isnanl.c: Removed.
3323         * sysdeps/stub/logb.c: Removed.
3324         * sysdeps/stub/sin.c: Removed.
3325         * sysdeps/stub/sqrt.c: Removed.
3327         * sysdeps/tahoe/log10.c: Removed.
3329         * sysdeps/vax/index.s: Removed.
3330         * sysdeps/vax/rindex.s: Removed.
3331         * sysdeps/vax/bcmp.s: Removed.
3332         * sysdeps/vax/log10.c: Removed.
3333         * sysdeps/vax/infnan.c: Removed.
3334         * sysdeps/vax/Dist: Add fl.h.
3336         * sysdeps/unix/sysv/linux/alpha/Dist: Add llseek.S.
3338         * inet/rcmd.c (rcmd): Make messages more uniform.
3340 Sun Sep  8 14:15:42 1996  Ulrich Drepper  <drepper@cygnus.com>
3342         * po/de.po: Update.
3343         * po/es.po: Update.
3344         * po/ko.po: Update.
3345         * po/pl.po: New file.
3346         * po/nl.po: New file.
3348 Sat Sep  7 18:41:17 1996  Richard Henderson  <rth@tamu.edu>
3350         * Makeconfig (+link): Filter out start, pre & postinit from the
3351         generic depenancies as well.
3352         * Rules: Add start, pre & postinit to the dependancies of
3353         $(others) and $(tests).
3355         * configure.in: elf_dirs missing "sysdeps" component.
3357 Sun Sep  8 02:36:02 1996  Ulrich Drepper  <drepper@cygnus.com>
3359         * locale/SYS_libc.c (_libc_intl_domainname): Change value to "libc".
3360         This is consistent with all other GNU packages.  We shouldn't
3361         take care for a possible clash.  Nobody will name the domain
3362         of a package libc if it is not the libc itself.
3363         * MakeTAGS ($P/SYS_libc.pot): Rename to $P/libc.pot.
3364         * po/Makefile (domainname): Change to libc.
3365         (distribute): Now ship libc.pot.
3366         * catgets/gencat.c (usage): Use `PACKAGE' for package name in
3367         version information banner.
3368         Change bug report address to bug-glibc@prep not @gnu.
3369         * db/makedb.c (PACKAGE): New macro.  Set to _libc_intl_domain.
3370         (main): Use `PACKAGE' for package name in version information
3371         banner.
3372         Change bug report address to bug-glibc@prep not @gnu.
3373         * locale/programs/locale.c (main): Use `PACKAGE' for package name
3374         in version information banner.
3375         Change bug report address to bug-glibc@prep not @gnu.
3376         * locale/programs/localedef.c (main): Likewise.
3378         * version.h (VERSION): Bump to 1.94.
3380         * locale/Makefile (distribute): Add locale.c and localedef.c.
3382 Sat Sep  7 14:00:33 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3384         * catgets/catgets.c (catopen): Allocate sizeof(*result) bytes
3385         instead of sizeof(nl_catd) (which is just a pointer!).
3387 Sat Sep  7 19:39:19 1996  Ulrich Drepper  <drepper@cygnus.com>
3389         * Makefile ($(objpfx)version-info.h): Generate from Banner files.
3390         * version.c (banner): Add contents of version-info.h to string.
3392         * Makerules: If $($(subdir)-version) is available name versioned
3393         shared library according to this value instead of glibc's version.
3395         * libio/Banner: New file.
3397         * elf/eval.c (funcall): Write error message in case function is
3398         not found.
3399         (eval): Recognize `_' in names.
3401 Sat Sep  7 05:15:45 1996  Ulrich Drepper  <drepper@cygnus.com>
3403         * libio/iofdopen: Initialize _lock field only if _IO_MTSAFE_IO.
3404         * libio/iofopen: Likewise.
3405         * libio/iofopncook.c: Likewise.
3406         * libio/iopopen.c: Likewise.
3407         * libio/iovsprintf.c: Likewise.
3408         * libio/iovsscanf.c: Likewise.
3409         * libio/memstream.c: Likewise.
3410         * libio/vasprintf.c: Likewise.
3411         * libio/vdprintf.c: Likewise.
3412         * libio/vsnprintf.c: Likewise.
3414 Sat Sep  7 03:55:47 1996  Ulrich Drepper  <drepper@cygnus.com>
3416         * Makeconfig (soversions.mk): Also use shlib-versions files
3417         in add-on directories.
3418         * config.make.in (config-defines): Remove.  Not used anymore.
3419         (defines): New variable.  Initiliazed by @DEFINES@.
3420         * configure.in: Add AC_SUBST(DEFINES).
3422         * libio/Makefile (routines): When compiling reentrant libc add
3423         clearerr_u, feof_u, ferror_u, fputc_u, getc_u, getchar_u,
3424         iofflush_u, putc_u, putchar_u, ioflockfile.
3425         (CPPFLAGS): Add -D_IO_MTSAFE_IO for reentrant libc.
3427         * sysdeps/stub/libc-lock.h: Add stubs for __libc_cleanup_region_start
3428         and __libc_cleanup_region_end.
3430         * sysdeps/unix/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
3431         using __errno_location function.
3432         * sysdeps/unix/sysv/linux/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
3433         using __errno_location function.
3434         (__errno_location): New function.
3435         * sysdeps/unix/sysv/linux/i386/sysdep.h [PIC]: Add second
3436         syscall_error handler for reentrant libc.
3438         * sysdeps/unix/opendir.c: Remove unneeded `;'.
3440         * libio.h [_IO_MTSAFE_IO]: Include <pthread.h>.
3441         [!_IO_MTSAFE_IO]: Define _IO_flockfile and _IO_funlockfile
3442         as empty macros.
3443         * libioP.h: Include <libc-lock.h>.
3444         * libio/stdio.h: Add prototypes for *_locked and *_unlocked
3445         functions.
3447         * libio/clearerr.c: Use _IO_ protected versions of flockfile
3448         and funlockfile to be namespace clean.
3450         * libio/genops.c: Use __libc_lock_* macros for handling lock.
3452         * libio/iofdopen: Add initialization of _lock in _IO_FILE.
3453         * libio/iofopen: Likewise.
3454         * libio/iofopncook.c: Likewise.
3455         * libio/iopopen.c: Likewise.
3456         * libio/iovsprintf.c: Likewise.
3457         * libio/iovsscanf.c: Likewise.
3458         * libio/memstream.c: Likewise.
3459         * libio/vasprintf.c: Likewise.
3460         * libio/vdprintf.c: Likewise.
3461         * libio/vsnprintf.c: Likewise.
3463         * libio/fgetc.c: Use __libc_cleanup_region_* macros instead
3464         of flockfile etc.
3465         * libio/fputc.c: Likewise.
3466         * libio/freopen.c: Likewise.
3467         * libio/fseek.c: Likewise.
3468         * libio/getc.c: Likewise.
3469         * libio/getchar.c: Likewise.
3470         * libio/iofclose.c: Likewise.
3471         * libio/iofflush.c: Likewise.
3472         * libio/iofgetpos.c: Likewise.
3473         * libio/iofgets.c: Likewise.
3474         * libio/iofputs.c: Likewise.
3475         * libio/iofread.c: Likewise.
3476         * libio/iofsetpos.c: Likewise.
3477         * libio/ioftell.c: Likewise.
3478         * libio/iofwrite.c: Likewise.
3479         * libio/iogetdelim.c: Likewise.
3480         * libio/iogets.c: Likewise.
3481         * libio/ioputs.c: Likewise.
3482         * libio/iosetbuffer.c: Likewise.
3483         * libio/iosetvbuf.c: Likewise.
3484         * libio/ioungetc.c: Likewise.
3485         * libio/putc.c: Likewise.
3486         * libio/putchar.c: Likewise.
3487         * libio/rewind.c: Likewise.
3488         * stdio-common/vfprintf.c: Likewise.
3489         * stdio-common/vfscanf.c: Likewise.
3491         * libio/clearerr_u.c: Correct alias name.
3492         * libio/ferror_u.c: Likewise.
3493         * libio/fileno.c: Likewise.
3494         * libio/fputc_u.c: Likewise.
3495         * libio/getc.c: Likewise.
3496         * libio/getc_u.c: Likewise.
3497         * libio/getchar.c: Likewise.
3498         * libio/getchar_u.c: Likewise.
3499         * libio/putc.c: Likewise.
3500         * libio/putchar.c: Likewise.
3502         * libio/feof_u.c: Undefine macro with name of function before
3503         definition of function itself.
3505         * libio/ioflockfile.c: New file.  Implementation of flockfile and
3506         funlockfile.
3508         * libio/putchar_u.c: Fix typo.  Use stdout instead of fp.
3510         * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
3511         _malloc_loc.
3513         * malloc/free.c: Include <libc-lock.h>.
3514         * malloc/realloc.c: Likewise.
3515         * malloc/malloc-find.c: Likewise.
3516         * malloc/malloc-size.c: Likewise.
3517         * malloc/malloc-walk.c: Likewise.
3518         * malloc/memalign.c: Likewise.
3519         * malloc/malloc.c: Likewise.
3521         * sysdeps/i386/dl-machine.h: Correct clearing of _dl_starting_up.
3523 Fri Sep  6 19:38:49 1996  Ulrich Drepper  <drepper@cygnus.com>
3525         * sysdeps/stub/libc-lock.h: Define __libc_lock_critical_start
3526         and __libc_lock_critical_end as empty macros.
3528         * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
3529         __libc_malloc_lock.
3530         * malloc/free.c: Include <libc-lock.h>.
3531         * malloc/malloc-find.c: Likewise.
3532         * malloc/malloc-size.c: Likewise.
3533         * malloc/malloc-walk.c: Likewise.
3534         * malloc/malloc.c: Likewise.
3535         * malloc/memalign.c: Likewise.
3536         * malloc/realloc.c: Likewise.
3538         * Makefile: Undo change from Mon Sep  2 22:15:14 1996.  No more
3539         extra_solibs pass.
3540         * Rules: Likewise.
3541         * extra-lib.mk: Likewise.
3542         * manual/Makefile: Likewise.
3544         * db/Makefile (makedb): Choose dependecies based on build-shared.
3545         Patch by Andres Schwab.
3547         * sysdeps/posix/sysconf.c: Don't use PTHREAD_DESTRUCTOR_ITERATIONS
3548         but _POSIX_THREAD_DESTRUCTOR_ITERATIONS.
3550         * sysdeps/unix/sysv/linux/errnos.h: New file.
3551         * sysdeps/unix/sysv/linux/schedbits.h: New file.
3552         * sysdeps/unix/sysv/linux/waitflags.h: New file.
3554         * sysdeps/unix/sysv/linux/gnu/types.h: Add definition of `key_t'.
3556 Fri Sep  6 08:26:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3558         * rpm/template: Fix typo in %build section.
3560 Fri Sep  6 03:31:07 1996  Ulrich Drepper  <drepper@cygnus.com>
3562         * sysdeps/unix/sysv/linux/errnos.h: Don't define errno macro when
3563         building libc without thread support.
3564         * resolv/netdb.h: Likewise for h_errno macro.
3566 Thu Sep  5 23:01:48 1996  Ulrich Drepper  <drepper@cygnus.com>
3568         * libc-symbols.h: Add new macro weak_const_function.  It's like
3569         weak_function, but the function is additionally marked as const.
3570         * features.h: Only include <sys/cdefs.h> if !__ASSEMBLER__.
3572 Thu Sep  5 22:55:49 1996  Richard Henderson  <rth@tamu.edu>
3574         * inet/herrno.c (__h_errno_location): New function.
3575         (h_errno): Make strong_alias __h_errno so that we can access
3576         the variable even if `h_errno' is a macro.
3577         * resolv/netdb.h: Define macro h_errno to access thread specific
3578         version of h_errno variable.  Declare alias __h_errno for h_errno.
3579         * resolv/res_query (h_errno): Remove definition.
3580         * sysdeps/unix/sysv/linux/errnos.h [!__ASSEMBLER__ && __USE_REENTRANT]:
3581         Add macro `errno' to get thread specific variable.
3582         * sysdeps/unix/alpha/sysdep.S [_LIBC_REENTRANT]: Set errno using
3583         __errno_location function.
3584         (__errno_location): New function.
3586 Thu Sep  5 21:08:44 1996  Ulrich Drepper  <drepper@cygnus.com>
3588         * posix/gnu/types.h: Remove definition of key_t.
3589         * sysdeps/generic/gnu/types.h: Move it to here.
3590         * sysdeps/unix/sysv/linux/gnu/types.h: Add Linux specific
3591         definition of key_t.
3593         * sysdeps/unix/sysv/linux/waitflags.h: New file.  Linux specific
3594         definitions.
3595         * sysdeps/unix/sysv/linux/schedbits.h: New file.  Include
3596         clone prototypes and associated flags.
3598 Thu Sep  5 13:18:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3600         * sysdeps/mach/hurd/i386/init-first.c (__libc_argc, __libc_argv):
3601         New variables.
3602         (init1): Initialize them.
3603         * hurd/hurdinit.c (_hurd_setproc): Now that happens to be
3604         available, pass __libc_argv in call to __proc_set_arg_locations.
3606         * gmon/gmon.c (write_hist): Call __profile_frequency instead of
3607         hertz.
3608         (hertz): Delete function.
3609         * gmon/Makefile (routines): Add `prof-freq'.
3610         * sysdeps/generic/prof-freq.c: New file.
3611         * sysdeps/mach/hurd/prof-freq.c: New (stubby) file.
3612         * sysdeps/mach/hurd/profil.c (profile_tick): New variable.
3613         (update_waiter): Store frequency in profile_tick.
3614         (__profile_frequency): New function.
3616         * sysdeps/mach/hurd/sendto.c (sendto): Use prototype definition
3617         syntax.
3619         * Rules (generated): Restore reference to $(generated).
3621         * mach/Machrules (mig.uh, mig.__h): Don't include $(user-MIGFLAGS)
3622         here.
3624         * malloc/free.c (free): __lib_malloc_lock -> __libc_malloc_lock.
3626         * malloc/free.c: Provide extern decl of __libc_malloc_lock.
3627         * malloc/realloc.c: Likewise.
3628         * malloc/malloc-find.c: Likewise.
3629         * malloc/malloc-size.c: Likewise.
3630         * malloc/malloc-walk.c: Likewise.
3631         * malloc/memalign.c: Likewise.
3633 Thu Sep  5 08:58:47 1996  Richard Henderson  <rth@tamu.edu>
3635         * sysdeps/alpha/elf/start.S: Make _start global again.
3637 Thu Sep  5 03:20:42 1996  Ulrich Drepper  <drepper@cygnus.com>
3639         Change configuration and Makefiles to allow add-ons to have a
3640         sysdeps/ directory hierachy.
3641         * configure.in: Test for sysdeps/ directory in add-ons.  Before
3642         all test and searches in these hierachies, too.
3643         * Makeconfig (full-config-subdirs): Define based on $(config-sysdirs).
3644         Extend with $(..) if not absolute path.
3645         Use $(full-config-subdirs) where $(config-sysdirs) was used.
3646         * Makefile ($(objpfx)sysd-dirs): Use config-sysdirs.
3647         * MakeTAGS: Use $(full-config-subdirs).
3648         * Makerules: Change comment to libc.so link script.
3649         (sysdirs): Define based on $(full-config-subdirs).
3650         (sysd-Makefile): Define using config-sysdirs.
3651         (sysd-rules): Likewise.
3652         * sysdeps/unix/Makefile (sysd-syscalls): Define based on +sysdep-dirs.
3653         * sysdeps/unix/make-syscalls.sh: Remove basedir argument.
3655 Wed Sep  4 01:32:21 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3657         * sysdeps/m68k/fpu/k_cos.c: Rewritten for better accuracy.
3658         * sysdeps/m68k/fpu/k_sin.c: Likewise.
3659         * sysdeps/m68k/fpu/k_tan.c: Likewise.
3661 Thu Sep  5 01:06:09 1996  Richard Henderson  <rth@tamu.edu>
3663         * malloc/free.c (free): Protect by using __libc_malloc_lock.
3664         * malloc/malloc-find.c (malloc_find_object_address): Likewise.
3665         * malloc/malloc-size.c (malloc_usable_size): Likewise.
3666         * malloc/malloc-walk.c (malloc_walk): Likewise.
3667         * malloc/memalign.c (memalign): Likewise.
3668         * malloc/realloc.c (realloc): Likewise.
3669         * malloc/malloc.c: Define __libc_malloc_lock.
3670         (_malloc_internal): Don't use `malloc'.  Instead look for
3671         `__malloc_hook' or call `_malloc_internal'.
3672         (malloc): Protect by using `__libc_malloc_lock'.
3673         * malloc/malloc.h: Declare `__libc_malloc_lock'.
3675 Mon Sep  2 22:42:59 1996  Richard Henderson  <rth@tamu.edu>
3677         * sysdeps/alpha/elf/start.S: Use weak_alias for __start
3678         instead of the hard definition.
3680         * sysdeps/alpha/dl-machine.h (RTLD_START): Add type info for
3681         _start and _dl_start_user.
3683         * sysdeps/unix/sysv/linux/alpha/init-first.h (SYSDEP_CALL_INIT):
3684         Make _dl_starting_up weak.  Add type info for NAME.
3686 Mon Sep  2 22:15:14 1996  Richard Henderson  <rth@tamu.edu>
3688         * Makefile (all): Add extra_solibs pass.
3689         (+subdir_targets): Same.
3690         * Rules (extra_solibs): New phony empty target for subdirs without
3691         extra libs.
3692         * extra-lib.mk: Build lib*.so* in extra_solibs not lib-noranlib.
3693         * manual/Makefile: Add dummy extra_solibs target.
3695 Sun Sep  1 15:41:22 1996  Richard Henderson  <rth@tamu.edu>
3697         * Makeconfig (+link): Add $(link-extra-libs).
3698         (link-extra-libs): New variable which expands to the full paths of
3699         the other libraries needed by a program, as controled by LDLIBS-$(@F).
3700         * db/Makefile: Use LDLIBS-makedb to link libdb not a dependency, as
3701         the later attempts to install the library before linking it.
3703         * sysdeps/unix/alpha/sysdep.S: Align errno.
3705         * sysdeps/unix/sysv/linux/alpha/ioperm.c (struct platform): Add
3706         hae_shift entry.
3707         (io): Move bus_memory_base and sparse_bus_memory_base into struct.
3708         (_hae_shift): New function.
3709         * sysdeps/unix/sysv/linux/alpha/sys/io.h: New file.  Prototypes
3710         for the bus query functions.
3712 Sat Aug 31 18:14:54 1996  Richard Henderson  <rth@tamu.edu>
3714         * elf/dl-close.c (_dl_close): In static executables, map->l_prev
3715         can be NULL when unloading a library.
3717         * elf/dl-open.c (_dl_open): Pass __environ instead of __libc_envp
3718         to the library .init function.
3720         * sysdeps/alpha/dl-machine.h (elf_machine_rela):  Since we omitted
3721         part of the COPY reloc processing earlier, omit the rest now --
3722         we'll get into less trouble later when some fool does use a COPY.
3724         * sysdeps/unix/sysv/linux/init-first.c (init): Accept argc et al as
3725         parameters.  Move all argc and __libc_multiple_libcs calculation out
3726         to init-first.h.  Use __environ not __libc_envp.
3727         * sysdeps/unix/sysv/linux/alpha/init-first.h: Rewrite.
3728         * sysdeps/unix/sysv/linux/i386/init-first.h: Rewrite.
3730 Thu Aug 29 20:26:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3732         * sysdeps/posix/profil.c (profil): Don't clobber saved timer and
3733         signal settings when profiling was already turned on.
3735         * csu/gmon-start.c (__gmon_start__) [HAVE_INITFINI]: Protect from
3736         being called twice.
3738 Wed Sep  4 01:31:50 1996  Ulrich Drepper  <drepper@cygnus.com>
3740         * sysdeps/unix/sysv/linux/i386/mmap.S: Test for
3741         0 < return value < -4096 and not < 0 to decide about failure.
3742         Reported by Andreas Jaeger.
3744 Tue Sep  3 19:04:05 1996  Ulrich Drepper  <drepper@cygnus.com>
3746         * stdio-common/vfscanf.c (__vfscanf): Don't count EOF char
3747         in %c format.
3749 Sat Aug 31 18:10:51 1996  Ulrich Drepper  <drepper@cygnus.com>
3751         * wcsmbs/wchar.h: Define prototypes for wcstoq and wcstouq only
3752         #ifdef __USE_GNU.
3754 Sat Aug 31 12:34:29 1996  Ulrich Drepper  <drepper@cygnus.com>
3756         * version.c: Add missing newline character in banner.
3758         * sysdeps/unix/sysv/linux/alpha/Dist: Correct typo.
3759         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
3761 Sat Aug 31 03:07:39 1996  Ulrich Drepper  <drepper@cygnus.com>
3763         * intl/l10nflist.c (_nl_normalize_codeset): We convert to lower
3764         case, so don't prepend uppercase `ISO' for only numeric arg.
3766 Wed Sep  4 16:16:13 1996  Ulrich Drepper  <drepper@cygnus.com>
3768         * sysdeps/mach/hurd/send.c (__send): De-ANSI-fy.
3769         * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
3771 Tue Sep  3 11:16:07 1996  Thomas Bushnell/ n/BSG  <thomas@gnu.ai.mit.edu>
3773         * shadow/lckpwdf.c (__ulckpwdf): Don't take address of LOCK in
3774         call to __libc_lock_lock.
3776         * sysdeps/mach/hurd/send.c (__send): Declare BUF const.
3777         * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
3779         * sysdeps/stub/ustat.c: Include <sys/ustat.h>.
3781         * misc/syslog.c (vsyslog): Fix typo (`mow_tm' -> `now_tm').
3783 Fri Aug 30 19:55:27 1996  Ulrich Drepper  <drepper@cygnus.com>
3785         * libio/genops.c: Make _cleanup an alias of _IO_cleanup.
3786         Reported by Erik Troan.
3788 Fri Aug 30 15:40:04 1996  Ulrich Drepper  <drepper@cygnus.com>
3790         * sysdeps/unix/sysv/linux/Dist: Add sys/procfs.h and
3791         sys/sysmacros.h.  Reported by Curtiss <1CMC3466@IBM.MTSAC.EDU>.
3793 Fri Aug 30 13:53:32 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
3795         * sysdeps/unix/mman/syscalls.list: `mmap' has 6 arguments, not 5.
3797 Fri Aug 30 13:01:10 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
3799         * sysdeps/i386/fpu/__math.h (tan): Pop 1.0 in ST to get
3800         real result.
3802 Fri Aug 30 03:33:33 1996  Ulrich Drepper  <drepper@cygnus.com>
3804         * sysdeps/libm-ieee754/s_cbrtl.c: New file.  `long double'
3805         implementation.
3807 Fri Aug 30 13:39:21 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3809         * Makerules (BUILD_CFLAGS): Use @(common-objpfx) for config.h, not
3810         $(..).  Some rules (like sysdeps/posix/Makefile for mk-stdiolim)
3811         do `cd' commands.
3812         (sed-remove-objpfx): Don't substitute for $(objpfx) anymore;
3813         $(common-objpfx) is good enough.
3814         * Rules (common-generated): Provide default (empty) value.
3815         (dummy.o, dummy.c, empty.o, empty.c): Put these in
3816         $(common-generated), not $(generated), and without $(..).
3817         (subdir_echo-distinfo): Treat $(common-generated) just like
3818         $(generated).
3819         (generated): Depend on the (suitably mutated) $(common-generated)
3820         files too.
3821         * Makerules (common-clean): Remove common-generated files too.
3822         * sysdeps/mach/hurd/Makefile (generated): Don't put errnos.d and
3823         stamp-errnos here.
3824         (common-generated): Do put errnos.d and stamp-errnos here.
3825         (rpath-link): Don't use +=; $(rpath-link) is a colon separated list.
3827         * sysdeps/mach/hurd/Makefile (before-compile): Add auth; also add
3828         auth to following rule to get it built.
3830 Fri Aug 30 01:26:44 1996  Ulrich Drepper  <drepper@cygnus.com>
3832         * sysdeps/unix/sysv/linux/i386/Dist: Add clone.S.
3833         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
3834         * sysdeps/unix/sysv/linux/alpha/Dist: Likewise.
3836         * version.c: Add comment about where to report bugs to.
3837         * catgets/gencat.c (usage): Likewise.
3838         * db/makedb.c (usage): Likewise.
3839         * locale/programs/locale.c (usage): Likewise.
3840         * locale/programs/localedef.c (usage): Likewise.
3842         * manual/socket.texi: A little bit better wording.
3844 Thu Aug 29 18:03:06 1996  Ulrich Drepper  <drepper@cygnus.com>
3846         * Makerules: Make sure directory exists before generating stamp file.
3847         (BUILD_CFLAGS): Always refer to using $(..).
3848         * manual/Makefile: Make sure directory exists before generating
3849         stamp file.
3850         (make-target-directory): Add macro definition.
3851         * sysdeps/generic/Makefile: Make sure directory exists before
3852         generating stamp file.
3854         * Makefile (distribute): Add autolock.sh.  Reported by Fila Kolodny.
3856 Tue Aug 27 10:06:22 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3858         When compiling in separate directory put objects into
3859         subdirectories matching the source layout.
3860         * Makeconfig (objpfx) [ifdef objdir]: Append $(subdir).
3861         When looking for configparms try in $(common-objpfx).
3862         Use $(common-objpfx)SUBDIR to find objects from other subdirectory
3863         builds.
3864         * Makerules: Add $(objpfx) to vpath list.
3865         (make-dummy-dep): Use $(common-objpfx) to avoid creating dummy.d
3866         more than once.  All uses in dependency lists changed.
3867         (+make-deps): Make target directory.
3868         (sed-remove-objpfx): Substitute $(common-objpfx).
3869         (do-ar, build-extra-lib, $(common-objpfx)stub-$(subdir)): Use
3870         $(objpfx) instead of $(objdir) for cd command.
3871         (O%-lib): Always find libc relative to $(..).
3872         (subdir-stamps): Collect stamp files from subdirs.
3873         (common-mostlyclean): Remove stub file in $(common-objpfx).
3874         * MakeTAGS ($P/siglist.pot): Find siglist.c in stdio-common.
3875         * Rules (dep-dummy-lib): Use $(common-objpfx) to avoid creating to
3876         more than once.
3877         ($(objpfx)dummy.c, $(objpfx)empty.c): Change target name to use
3878         $(common-objpfx).  All uses in dependency lists changed.
3879         (generated): Prepend $(..) to names.
3880         * bare/Makefile ($(objpfx)lib$(config-vendor).a): Remove $(objpfx)
3881         from $@.
3882         * nss/Makefile ($(objpfx)libnss_dns.so, $(objpfx)libnss_db.so):
3883         Use $(common-objpfx) instead of $(..) in dependencies.
3884         * sysdeps/mach/Makefile (mach-objpfx): Unconditionally use
3885         $(common-objpfx) instead of $(..) and (objpfx).
3886         * sysdeps/mach/hurd/Makefile (hurd-objpfx): Likewise.
3887         (rpath-link): Likewise.
3888         (rpcuserlibs): Likewise.
3889         * sysdeps/unix/Makefile [$(subdir) = stdio-common]: Check for
3890         errlist.c in $(objpfx), not $(common-objpfx).
3891         ($(common-objpfx)s-proto.d): Special rule not covered by pattern
3892         rule.
3893         * sysdeps/unix/make-syscalls.sh: Make syscall rules depending on
3894         s-proto.d in $(common-objpfx), not $(objpfx).
3896 Thu Aug 29 17:45:49 1996  Ulrich Drepper  <drepper@cygnus.com>
3898         * nss/nsswitch.c (nss_dlerror_run): Free returned error
3899         string.
3901 Thu Aug 29 15:53:33 1996  Ulrich Drepper  <drepper@cygnus.com>
3903         * sysdeps/libm-ieee754/e_acoshl.c: New file. `long double'
3904         implementation.
3905         * sysdeps/libm-ieee754/e_atanhl.c: Likewise.
3906         * sysdeps/libm-ieee754/e_remainderl.c: Likewise.
3907         * sysdeps/libm-ieee754/e_scalbl.c: Likewise.
3908         * sysdeps/libm-ieee754/s_asinhl.c: Likewise.
3909         * sysdeps/libm-ieee754/s_cosl.c: Likewise.
3910         * sysdeps/libm-ieee754/s_sinl.c: Likewise.
3911         * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
3912         * sysdeps/libm-ieee754/s_tanl.c: Likewise.
3914 Thu Aug 29 12:00:30 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3915         
3916         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Correct
3917         spelling error of _hurd_itimerval.
3919         * mach/Makefile (MIGFLAGS-mach/mach4): Define variable.
3920         * mach/Machrules (mig.uh, mig.__h): Include $(user-MIGFLAGS) and
3921         $(MIGFLAGS-$*) here too, as well as in the code-generating MiG calls. 
3922         
3923         * hurd/hurdinline.c: Include "hurd.h" for function definitions too. 
3924         
3925         * stdio/fseek.c (fseek): Don't assume we know the file position;
3926         other handles may have changed it.  So set STREAM.__offset to -1
3927         before calling __stdio_check_offset to make sure we have a correct
3928         value.
3930 Thu Aug 29 00:28:08 1996  Ulrich Drepper  <drepper@cygnus.com>
3932         * stdio-common/printf_fp.c (__printf_fp): Use default value '.' if
3933         `decimal' char is 0.
3935         * C-numeric.c (not_available): New constant.
3936         (_nl_C_LC_NUMERIC): Use `not_available' for grouping value.
3938         * nss/nsswitch.conf: Example configuration file.
3939         * nss/db-Makefile: Example Makefile for generation of databases
3940         for nss_db.
3941         * nss/Makefile (distribute): Add nsswitch.conf and db-Makefile.
3943 1996-08-28  Paul Eggert  <eggert@twinsun.com>
3945         * C-messages.c (_nl_C_LC_MESSAGES): Set yesexpr to "^[yY]" and
3946         noexpr to "^[nN]"; this conforms to POSIX.2.
3948         * C-time.c (_nl_C_LC_TIME): Change %d to %e in d_t_format, to
3949         conform to POSIX.2.
3951 1996-08-28  Paul Eggert  <eggert@twinsun.com>
3953         * C-monetary.c (not_available): New constant.
3954         (_nl_C_LC_MONETARY): Set mon_decimal_point to "", and set
3955         mon_grouping, int_frac_digits, frac_digits, p_cs_precedes,
3956         p_sep_by_space, n_cs_precedes, n_sep_by_space, p_sign_posn, and
3957         n_sign_posn to CHAR_MAX, as required by the POSIX Standard.
3959 Wed Aug 28 23:12:28 1996  Ulrich Drepper  <drepper@cygnus.com>
3961         * nss/nss_db/db-XXX.c: Correct function names.  They must be
3962         `_nss_db_*' instead of `_nss_files_*'.
3963         (lookup): `parse_line' returns 1 if succesful.
3964         * nss/nss_files/files-service.c (servbyname): Key for database
3965         must also contain protocol names.
3966         (servbypt): Likewise.
3967         Test must also check for protocol.  Add `proto' argument.
3969 Tue Aug 27 09:56:13 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3971         * MakeTAGS ($P/subdirs.pot): Prefix all file names, not only the
3972         first one.
3974 Tue Aug 27 17:45:21 1996  Ulrich Drepper  <drepper@cygnus.com>
3976         * Makerules: Add some test for correct version of GNU Make.
3978         * io/fcntl.h: Undo change from Mon Aug 26 22:22:17 1996.
3979         * sysdeps/unix/sysv/linux/fcntlbits.h: Place macros here instead.
3981         * sysdeps/generic/dl-sysdep.c: Initialize break address to
3982         avoid overwriting last page (OK, Roland).
3984 Tue Aug 27 16:20:37 1996  Ulrich Drepper  <drepper@cygnus.com>
3986         * resolv/resolv.h: Update from BIND-4.9.5-T3A.
3987         * resolv/arpa/nameser.h: Likewise.
3988         * resolv/res_init.c: Likewise.
3989         * resolv/res_debug.c: Likewise.
3990         * resolv/res_mkquery.c: Likewise.
3992 Tue Aug 27 15:47:04 1996  Ulrich Drepper  <drepper@cygnus.com>
3994         * elf/dl-error.c (catch): Define errstring element not as const.
3995         (_dl_catch_error): ERRSTRING argument is not const pointer.
3996         Initialize *ERRSTRING and *OBJNAME separately.
3997         * elf/link.h: Change prototype for `_dl_catch_error'.
3999         * elf/dl-load.c (_dl_map_object): Use separate variable for
4000         copied NAME to avoid `const' warning.
4002         * elf/dlerror.c: Make `last_errstring' variable not const pointer.
4004         * elf/rtld.c: Implement reading of /etc/ld.so.preload.  This
4005         provides preloading even for SUID binaries.
4006         Add some more casts to avoid signed<->unsigned warnings.
4008 Tue Aug 27 15:40:28 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
4010         * posix/sys/types.h: Define loff_t.
4011         * sysdeps/unix/sysv/linux/gnu/types.h: Define __loff_t.
4013 Mon Aug 26 22:22:17 1996  Ulrich Drepper  <drepper@cygnus.com>
4015         * io/fcntl.h: Add definition for BSD F* macros.
4017         * misc/init-misc.c (__init_misc): Make static.
4018         * misc/Makefile: Pass -fkeep-inline-functions flag for init-misc.c.
4020         * configure.in: Add test for -fno-exception option of gcc.
4021         * config.make.in: Add definition of have-no-exceptions.
4022         * Makerules: Define no-exceptions based on have-no-exceptions.
4023         * csu/Makefile: When translating initfini.c pass $(no-exceptions).
4024         This is necessary for gcc >= ss-960816.
4026 Mon Aug 26 17:16:48 1996  Richard Henderson  <rth@tamu.edu>
4028         * sysdeps/alpha/dl-machine.h: Clear startup flag.
4030 Fri Aug 16 21:17:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4032         * Makerules (o-iterator-doit): Simplify reference to autolock
4033         script.
4035 Sat Aug 24 15:27:41 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4037         * sysdeps/mach/hurd/getcwd.c
4038         (_hurd_canonicalize_directory_name_internal): After resizing the
4039         buffer move the current contents to the end.  Correctly relocate
4040         file name pointer to upper half of the buffer.
4042 Mon Aug 26 15:49:59 1996  Ulrich Drepper  <drepper@cygnus.com>
4044         * rtld.c (dl_main): Remove code to call ld.so initializer.  This
4045         was introduced for compatibility with Linux ld.so and would not
4046         be used anymore.  Now we don't have any good values to use as the
4047         parameters to the initializer so simply remove it.
4049 Sun Aug 25 18:25:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4051         * gmon/gmon.c (ERR): Don't write the terminating NUL.
4053         * sysdeps/posix/profil.c (profil): Disable the profiling timer at
4054         first.
4055         (profil_count): Use 64 bit arithmethic to avoid overflow.
4057         * sysdeps/generic/machine-gmon.h (MCOUNT): Fix argument order.
4059 Mon Aug 26 16:31:33 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
4061         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Tolerate NEW
4062         being null; in that case don't touch the timer at all (but do
4063         return something in OLD if necessary).
4065 Mon Aug 26 13:35:16 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
4067         * sysdeps/mach/hurd/i386/init-first.c (__libc_multiple_libcs): New
4068         variable.
4069         * sysdeps/i386/init-first.c: Likewise.
4070         * sysdeps/stub/init-first.c: Likewise.
4072 Mon Aug 26 02:01:37 1996  Ulrich Drepper  <drepper@cygnus.com>
4074         * elf/dl-open.c (_dl_open): Call library initializer with
4075         correct command line arguments and environment information.
4076         * elf/rtld.c (dl_main): Provide arguments to initializer of
4077         ld.so itself.
4079 Sun Aug 25 19:15:46 1996  Ulrich Drepper  <drepper@cygnus.com>
4081         * shadow/Makefile (routines): Add lckpwdf.
4082         * shadow/lckpwdf.c: New file.
4084         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Force
4085         argument `cw' to be placed in memory.  Patch by Torbjorn Granlund.
4087 Sun Aug 25 12:53:37 1996  Ulrich Drepper  <drepper@cygnus.com>
4089         * configure.in: Add definition for `__eh_pc' and `__throw' in
4090         test for --no-whole-archive.  The compiler generates dependencies
4091         for this but none of the standard librares and startup files
4092         are used.  Necessary for gcc >= ss-960816.
4094 Sun Aug 25 01:31:33 1996  Ulrich Drepper  <drepper@cygnus.com>
4096         * elf/dl-error.c (_dl_signal_error): If error is catched, malloc
4097         return string since string might be on stack.
4098         * elf/dl-lookup.c (_dl_lookup_symbol): Undo change of
4099         Wed Aug 21 10:14:59 1996.
4100         * elf/dlerror.c (dlerror): Free error string after printing.
4101         (_dlerror_run): If error string was not printed since last error
4102         free string.
4103         * rtld.c (dl_main): Free error string in case of error.
4105 Sat Aug 24 03:16:47 1996  Ulrich Drepper  <drepper@cygnus.com>
4107         * misc/syslog.c (vsyslog): Don't use `localtime' or `gmtime' since
4108         this changes the global state for `localtime' and `gmtime'.  Use
4109         `__localtime_r'/`__gmtime_r' instead.
4110         * resolv/res_debug.c (__p_secstodate): Likewise.
4111         * sysdeps/generic/ftime.c: Likewise.
4112         * sysdeps/posix/gettimeofday.c: Likewise.
4113         Reported by Paul Eggert.
4115         * time/gmtime.c: De-ANSI-fy.
4116         * time/strftime.c: Don't call non-reentrant functions which change
4117         state.
4119 Wed Aug 21 10:14:59 1996  Richard Henderson  <rth@tamu.edu>
4121         * elf/dl-lookup.c (_dl_lookup_symbol): Malloc the error string rather
4122         than putting it on the stack.
4124 Wed Aug 21 10:12:42 1996  Richard Henderson  <rth@tamu.edu>
4126         * elf/rtld.c (dl_main): When looking up symbols in response to --list,
4127         don't find .plt entries.
4129 Mon Aug 19 23:18:12 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4131         * sysdeps/m68k/dl-machine.h (RTLD_START): Optimize clearing
4132         _dl_starting_up.
4134 Tue Aug 20 17:42:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4136         * stdio/linewrap.c (line_wrap_stream): Initialize D->seek.
4138 Sat Aug 17 12:19:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4140         * login/pututline_r.c (__pututline_r): Fix handling of case where
4141         getutid_r() fails with ESRCH.  Reported by Miquel van Smoorenburg.
4143 Wed Aug 14 14:10:54 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4145         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Change entry
4146         for "Jensen" so _bus_base() returns 0 on that platform.  Use
4147         _bus_base_sparse() to determine base address of sparse memory.
4149         * sysdeps/unix/sysv/linux/sys/io.h: Enclose #include <asm/io.h>
4150         and declarations in __BEGIN_DECLS/__END_DECLS.
4152 Sun Aug 18 13:37:09 1996  Ulrich Drepper  <drepper@cygnus.com>
4154         * err.h: New file.  Wrapper around misc/err.h.
4156         Correct solution of multiple initialization problem by
4157         Roland McGrath.
4158         * csu/initfini.c: Remove global variable __libc_is_static.
4159         * elf/rtld.c: Introduce new global variable _dl_starting_up.
4160         It's nonzero during the startup.
4161         * elf/dl-open.c (_dl_open): When _dl_start function is not
4162         available (i.e., if in static libc) set `__libc_multiple_libcs'
4163         to nonzero value.
4164         * sysdeps/unix/sysv/linux/init-first.c (__libc_multiple_libc):
4165         New global variable.
4166         (init): Undo change of Fri Aug  2 03:12:40 1996.
4167         Initialize `__libc_multiple_libcs' to nonzero only if this is
4168         a shared lib called from a statically linked program and don't
4169         call `personality' and `setfpucw' in this case either.
4170         * sysdeps/generic/sbrk.c: Undo change of Fri Aug  2 03:12:40 1996.
4171         Don't call brk(0) until `__libc_multiple_libcs' is nonzero.
4172         * sysdeps/i386/dl-machine.h (RTLD_START): Clear _dl_starting_up
4173         before jumping to user code.
4174         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
4176 Fri Aug 16 04:59:01 1996  Ulrich Drepper  <drepper@cygnus.com>
4178         * sysdeps/unix/sysv/linux/init-first.c: Remove hack from
4179         Thu Aug  8 12:40:20 1996.
4180         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = csu]: Use
4181         -fkeep-inline-functions flag instead.
4183 Fri Aug 16 16:11:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
4185         * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Treat
4186         EPFNOSUPPORT and EAFNOSUPPORT as implying NSS_STATUS_UNAVAIL just
4187         like ECONNREFUSED already does.
4188         (_nss_dns_gethostbyaddr_r): Likewise.
4189         * nss/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
4190         (_nss_dns_getnetbyaddr_r): Likewise.
4192         * sysdeps/mach/hurd/socket.c (socket): For message transmission
4193         and RPC errors that indicate that the socket server is not really
4194         present and able to do its job, turn the error into EPFNOSUPPORT.
4196 Fri Aug 16 01:24:33 1996  Ulrich Drepper  <drepper@cygnus.com>
4198         * inet/ruserpass.c (userpass): Allocate buffer for .netrc file
4199         name dynamically.  Reported by Alan Cox.
4200         Uncomment warnings and mark as translatable.
4202         * time/strftime (strftime): Add implementation for %s and %z
4203         format.  Change behaviour for unknown format character: now
4204         simply print it.  This matches the behaviour of printf.
4205         Reported by Jim Meyering.
4206         * manual/time.texi: Document all formats and flags of strftime.
4208 Thu Aug 15 18:02:51 1996  Ulrich Drepper  <drepper@cygnus.com>
4210         * elf/rtld.c (dl_main): Loaded object has type lt_executable,
4211         not lt_library.
4213         * misc/sys/select.h: Define fd_set using typedef, not #define.
4214         Proposed by David Mosberger-Tang.
4216 Thu Aug 15 12:48:21 1996  Ulrich Drepper  <drepper@cygnus.com>
4218         * po/header.pot: Use real description line.
4220 Thu Aug 15 04:42:44 1996  Ulrich Drepper  <drepper@cygnus.com>
4222         * elf/rtld.c (dl_main): When started with --verify prevent
4223         any warning.  Just exit with an error.
4224         * elf/ldd.sh.in: Don't run given object directly.  This fails for
4225         libraries.  Instead use $RTLD again.
4227 Thu Aug 15 02:08:59 1996  Ulrich Drepper  <drepper@cygnus.com>
4229         * manual/nss.texi: New file.  Document NSS.
4230         * manual/nsswitch.texi: New file.  Example configuration.
4232         * manual/string.texi: Document stpncpy, strdupa, and strndupa.
4233         * manual/example/strdupa.c: New file.  Example for strdupa.
4235 Wed Aug 14 21:36:16 1996  Ulrich Drepper  <drepper@cygnus.com>
4237         * stdlib/strtod.c (STRTOD): Correct assertion about size of
4238         wint_t and wchar_t.  Reported by David Mosberger-Tang.
4240 Mon Aug 12 22:40:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4242         * elf/dl-lookup.c (_dl_lookup_symbol): Remove fifth parameter
4243         RELOC_ADDR and make NOPLT a set of flags.  All callers
4244         changed.  Delete condition that checks for resolving to the
4245         location being filled in.  Add condition to skip the
4246         executable's symbols if requested.
4247         * elf/link.h: Change declaration of _dl_lookup_symbol
4248         accordingly.
4249         (DL_LOOKUP_NOEXEC, DL_LOOKUP_NOPLT): New definitions.
4250         * elf/dl-reloc.c (RESOLVE): Remove second parameter and rename
4251         NOPLT to FLAGS.
4252         * elf/dl-runtime.c (RESOLVE): Likewise.
4253         * elf/rtld.c (RESOLVE): Likewise.
4254         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Pass
4255         DL_LOOKUP_NOEXEC as second argument to the RESOLVE macro if
4256         processing a copy reloc, DL_LOOKUP_NOPLT for a jump slot
4257         reloc, zero otherwise.
4258         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
4259         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
4260         * sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
4262 Wed Aug 14 17:57:08 1996  Ulrich Drepper  <drepper@cygnus.com>
4264         * MakeTAGS: Clean up use of --omit-header and -n for xgettext.
4265         * po/header.pot: Add empty line at end.
4267 Sun Aug 11 13:45:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4269         * MakeTAGS (all-pot): Remove $P/errlist.pot, all error messages
4270         are now in $P/stdio-common.pot.
4271         (XGETTEXTFLAGS-errlist.pot): Variable removed.
4273 Mon Aug 12 19:25:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4275         * Makerules (do-ar, o-iterator-doit): Compute path to autolock
4276         script at run time, not configure time.
4277         * config.make.in, configure.in: Undo previous change.
4279 Wed Aug 14 13:20:02 1996  Ulrich Drepper  <drepper@cygnus.com>
4281         * sysdeps/unix/sysv/linux/i386/close.S: Push return value of thread
4282         on stack as argument for `_exit'.  Reported by Andreas Schwab.
4284 Mon Aug 12 19:36:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4286         * sysdeps/unix/sysv/linux/m68k/clone.S: New file.
4288 Wed Aug 14 04:22:35 1996  Richard Henderson  <rth@tamu.edu>
4290         * elf/dl-load.c (_dl_map_object): Save name in malloced memory.
4291         (_dl_map_object_from_fd): Free name on error.
4293 Wed Aug 14 13:00:09 1996  Ulrich Drepper  <drepper@cygnus.com>
4295         * string/strdup.c: Use result of memcpy to avoid reloading.
4297 Tue Aug 13 00:55:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4299         * shadow/sgetspent_r.c (__sgetspent_r): Copy string to buffer, not
4300         the other way round.
4302 Tue Aug 13 20:51:21 1996  Ulrich Drepper  <drepper@cygnus.com>
4304         * stdlib/canonicalize.c (canonicalize): Add cast to prevent
4305         warning.
4307         * Makerules (o-iterator-doit): Use autolock.sh when running ranlib.
4309 Tue Aug 13 18:26:45 1996  Ulrich Drepper  <drepper@cygnus.com>
4311         * nss/nsswitch.c (__nss_configure_lookup): Use fact that list is
4312         sorted.
4314         Update from bind-4.9.5-T1A.
4315         * resolv/Makefile (libresolv-routines): Add base64, inet_net_ntop,
4316         inet_net_pton, inet_net.
4318         * resolv/gethnamaddr.c: Include <sys/types.h>.
4319         * resolv/getnetnamadr.c: Likewise.
4320         * resolv/herror.c: Likewise.
4321         * resolv/inet_addr.c: Likewise.
4322         * resolv/nsap_addr.c: Likewise.
4323         * resolv/res_comp.c: Likewise.
4324         * resolv/res_data.c: Likewise.
4325         * resolv/res_init.c: Likewise.
4326         * resolv/res_mkquery.c: Likewise.
4327         * resolv/res_query.c: Likewise.
4328         * resolv/res_send.c: Likewise.
4330         * resolv/gethnamaddr.c [! SPRINTF_CHAR] (SPRINTF): Cast return
4331         value of sprintf.
4332         * resolv/inet_ntop.c: Likewise.
4334         * resolv/gethnamaddr.c [BSD]: Include <stdlib.h>.
4335         Remove prototype of gethostbyname_ipv4.
4337         * resolv/inet_ntop.c, resolv/inet_pton.c: Use ISO C `mem*'
4338         functions instead of BSD `b*' functions.
4340         * resolv/nsap_addr.c: Add copyright message.
4342         * resolv/res_comp.c: Remove comment explaining label format.
4343         (res_mailok): Correct check.
4345         * resolv/res_debug: Include missing headers.
4346         (__fp_nquery): Handle `unused', `ad', and `cd' bits.
4347         (__p_fqnname): New function to print FQDN from compressed name.
4348         (__p_rr): Use __p_fqnname.  Correct printing of ".  Handle T_TXT
4349         correctly.  Add handling of T_KEY and T_SIG.
4350         Handle class and type names by using name arrays instead of
4351         explicit `switch'es.
4352         (__sym_ston, __sym_ntos, __sym_ntop): New functions to use arrays.
4353         (__dn_count_labels, __p_secstodate): New functions.
4355         * resolv/resolv.h (__RES): Update version number.
4356         (res_sym): New type.
4357         Add #defines for new functions.
4358         Declare sym_ntos, sym_ntop, b64_ntop, b64_pton, __p_fqnname,
4359         __p_secstodate, dn_count_labels.
4361         * resolv/arpa/nameser.h (__BIND): Update version number.
4362         Add KEYFLAG_* and ALGORITHM_* symbols.
4363         (HEADER): Add `ad' and `cd' flags.
4365         * inet/ient.h: Add prototypes for inet_neta, inet_net_ntop,
4366         and inet_net_pton.
4368         * manual/maint.texi: Document that we use bind-4.9.5.
4369         * INSTALL: Ditto.
4371 Mon Aug 12 19:03:22 1996  Thomas Bushnell n/BSG  <thomas@psilocin.gnu.ai.mit.edu>
4373         * sysdeps/generic/gnu/types.h: Declare __fd_mask as `unsigned long'.
4375         * mach/Makefile (mach/mach_host.uh): Depend on
4376         $(objpfx)/mach-syscalls.mk.
4377         ($(objpfx)mach-shortcuts.h): Depend on $(objpfx)mach/mach_host.h.
4378         (This fixes a make loop; thanks to Marcus Daniels
4379         <marcus@sysc.pdx.edu> for the patch.)
4381 Mon Aug 12 16:41:52 1996  Thomas Bushnell n/BSG  <thomas@gnu.ai.mit.edu>
4383         * io/getwd.c (getwd) [! PATH_MAX]: Don't assume that the user's
4384         buffer is any longer than the amount necessary to hold the
4385         filename; the Hurd getcwd uses the *entire* contents of the
4386         buffer, however long it is specified to be.
4388 Mon Aug 12 04:33:09 1996  Ulrich Drepper  <drepper@cygnus.com>
4390         * nss/nsswitch.c (__nss_database_lookup): Always release locks
4391         before returning.  Reported by Miles Bader.
4393 Mon Aug 12 03:31:58 1996  Ulrich Drepper  <drepper@cygnus.com>
4395         * nss/nsswitch.c (__nss_configure_lookup):  New function.
4396         Allows to specify services.
4397         * nss/XXX-lookup.h: Rename database variable and make global.
4398         * nss/databases.def: New file.  Real names of all databases.
4400         * nss/nss.h: New file.  Contains declaration useful for users
4401         and service developers.
4402         * nss/nsswitch.h: Move some declarations to nss/nss.h.
4403         * nss.h: New file.  Wrapper around nss/nss.h.
4405         * nss/Makefile (headers): Add nss.h.
4406         (distributes): Add databases.def.
4408 Sun Aug 11 16:19:42 1996  Ulrich Drepper  <drepper@cygnus.com>
4410         Help the poor people with fast machines by making sure only
4411         one `ar' commands works on the library.
4412         * autolock.sh: New file.  Written by Tom Tromey.
4413         * Makerules (do-ar): Call autolock.sh shell script instead of
4414         directly using `ar'.
4415         * config.make.in: Make configuration variable AUTOLOCK which
4416         gets initialized by configure.
4417         * configure.in: Define variable AUTOLOCK to point to autolock.sh
4418         script and mark it to substitute.
4420         * string/Makefile: Add -fno-builtin for tst-strlen.c, too.
4422         * sysdeps/generic/sbrk.c (__sbrk):  Get kernel brk address
4423         always only if in static libc or if statically linked program
4424         uses libc.so.
4426         * sysdeps/generic/sbrk.c (__sbrk):  Get kernel brk address
4427         always only if in static libc or if statically linked program
4428         uses libc.so.
4430 Sun Aug 11 01:12:38 1996  Richard Henderson  <rth@tamu.edu>
4432         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW
4433         startup by moving Icache flush from here ...
4434         (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here.
4435         (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused.
4437         * sysdeps/alpha/divrem.h: Update comment to reflect the actual
4438         calling conventions.  The code is already correct.
4440 Sun Aug 11 01:06:42 1996  Richard Henderson  <rth@tamu.edu>
4442         * string/Makefile: Compile tester with -fno-builtin as we want to
4443         test our implementations, not gcc's.
4445 Sat Aug 10 13:17:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4447         * shadow.h: New file.
4449         * sysdeps/unix/sysv/linux/netinet/in.h: Move
4450         __BEGIN_DECLS/__END_DECLS up so ntohl() et al are bracketed as
4451         well.
4453         * socket/sys/socket.h [__cplusplus]: Use old-style __SOCKADDR_ARG.
4454         g++ 2.7.2 (and earlier) has no transparent unions support.
4456 Fri Aug  9 18:50:06 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4458         * sysdeps/unix/sysv/linux/alpha/ioperm.c (_bus_base_sparse): New
4459         function to determine the base address of sparse bus memory.
4460         (APECS_*): Rename to CIA_*.
4461         (APECS_SPARSE_MEM, CIA_SPARSE_MEM): New macros.
4462         (platform): Add sparse_bus_memory_base member and initialize.
4463         (sparse_bus_memory_base): New variable.
4465 Tue Aug  6 10:23:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4467         * sysdeps/posix/ttyname_r.c (ttyname_r),
4468         sysdeps/posix/ttyname.c (ttyname): Return -1/NULL if
4469         !__isatty(fd) (POSIX.1 says so.)
4471         * sysdeps/unix/getlogin.c (getlogin): Fix to check fd 0 only.
4472         This is not a gross hack, after all---for compatibility,
4473         getlogin() really should check fd 0 only and not try to base its
4474         operation on the controlling tty.
4476 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4478         * sysdeps/unix/getlogin.c (getlogin): Add static variable NAME,
4479         change utmp_data from static to auto.
4481 Sun Aug 11 02:56:08 1996  Ulrich Drepper  <drepper@cygnus.com>
4483         * posix/unistd.h [__USE_MISC]: Add prototype for `nice'.
4484         Reported by David Mosberger-Tang.
4486 Sat Aug 10 02:05:28 1996  Richard Henderson  <richard@twiddle.tamu.edu>
4488         * sysdeps/libm-ieee754/s_isnan.c [NO_LONG_DOUBLE]: Add strong
4489         alias to `__isnanl'.
4491 Fri Aug  9 17:38:58 1996  Ulrich Drepper  <drepper@cygnus.com>
4493         * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
4494         get `struct timeval'.
4495         * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
4496         * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
4497         * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
4498         * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
4499         * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
4500         * sysdeps/unix/sysv/linux/direntry.h: Complete types in
4501         <linux/dirent.h>.
4502         * io/fts.h: Include <sys/types.h> to get dev_t.
4503         Reported by Matthias Urlichs.
4505         * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
4506         _IO_file_flags.  It's the same as _flags.
4507         Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
4509 Wed Aug  7 19:38:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4511         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
4513 Thu Aug  8 16:17:38 1996  Ulrich Drepper  <drepper@cygnus.com>
4515         * pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
4516         * pwd/getpwent_r.c: Likewise.
4517         * pwd/getpwnam.c: Likewise.
4518         * pwd/getpwnam_r.c: Likewise.
4519         * pwd/getpwuid.c: Likewise.
4520         * pwd/getpwuid_r.c: Likewise.
4522         * grp/getgrent.c: Define BUFLEN from NSS_BUFLEN_GROUP.
4523         * grp/getgrent_r.c: Likewise.
4524         * grp/getgrgid.c: Likewise.
4525         * grp/getgrgid_r.c: Likewise.
4526         * grp/getgrnam.c: Likewise.
4528         * pwd/fgetpwent_r.c: New file.  Reentrant version of fgetpwent.
4529         * pwd/fgetpwent.c: Rewrite to use fgetpwent_r.
4530         * pwd/Makefile (routines): Add fgetpwent_r.
4531         * pwd/pwd.h: Add prototypes for __fgetpwent_r and fgetpwent_r.
4533         * grp/fgetgrent_r.c: New file.  Reentrant version of fgetgrent.
4534         * grp/fgetgrent.c: Rewrite to use fgetgrent_r.
4535         * grp/Makefile (routines): Add fgetgrent_r.
4536         * grp/grp.h: Add prototypes for __fgetgrent_r and fgetgrent_r.
4538         Implement shadow password lookup functions.  This is no complete
4539         shadow password suite.
4540         * shadow/Makefile: New file.
4541         * shadow/fgetspent.c: New file.
4542         * shadow/fgetspent_r.c: New file.
4543         * shadow/getspent.c: New file.
4544         * shadow/getspent_r.c: New file.
4545         * shadow/getspnam.c: New file.
4546         * shadow/getspnam_r.c: New file.
4547         * shadow/putspent.c: New file.
4548         * shadow/sgetspent.c: New file.
4549         * shadow/sgetspent_r.c: New file.
4550         * shadow/shadow.h: New file.
4551         * shadow/spwd-lookup.c: New file.
4552         * shadow/nss_files/files-spwd.c: New file.
4554 Thu Aug  8 13:33:45 1996  Ulrich Drepper  <drepper@cygnus.com>
4556         * sysdeps/unix/sysv/linux/ftime.c: New file.  Available system
4557         call is only a stub.
4558         Reported by Matthias Urlichs.
4560         * Makeconfig [!default_cflags]: Change default value from `-g'
4561         to `-g -O'.
4563         * configure.in: Recognize i686.
4564         * sysdeps/i386/i686/Implies: Default on i586 optimized code.
4566 Thu Aug  8 12:40:20 1996  Matthias Urlichs  <smurf@smurf.noris.de>
4568         * Makeconfig [$(build-omitfp) == yes]: Add to CFLAGS-.so
4569         value of CFLAGS-.o, not CFLAGS-o.
4571         * sysdeps/unix/sysv/linux/init-first.c (init): Add volatile
4572         pointer to ourself.  Otherwise `gcc -O3' optimized init away.
4574 Thu Aug  8 01:41:43 1996  Ulrich Drepper  <drepper@cygnus.com>
4576         * elf/Makefile: Undo change of Tue Aug  6 14:27:11 1996.
4577         * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
4579 Thu Aug  8 01:15:59 1996  Ulrich Drepper  <drepper@cygnus.com>
4581         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
4582         to 0x137f to allow long double operations.
4584 Sun Aug  4 13:12:05 1996  Richard Henderson  <rth@tamu.edu>
4586         Bug Fixes:
4588         * nss/nsswitch.c (_res): Remove redundant variable definition.
4589         The real one is in resolve/res_init.c, and having both prevents
4590         using -fno-common when building the shared library.
4591         * sunrpc/rpc_prot.c (_null_auth): Same.  Original is in rpc_common.c.
4593         * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
4594         a .bss object not a COMMON symbol.
4596         * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
4597         $gp before referencing __sigsetjmp symbol.  Retain LITUSE for same.
4599         Optimizations:
4601         * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
4602         main loop for better dual-issue on EV5.  Rearrange binary search to
4603         pipeline better and trim one instruction.
4605         Cosmetic Changes:
4607         * time/localtime.c (localtime_r): Move lock declaration back next to
4608         the comment where it was before the 960724 change.
4610         * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
4611         The second word is supposed to be the hardware manufacturer.
4613         * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
4614         * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
4616         * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
4618         * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
4619         sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
4620         Same cleanups as with EV4 GMP stuff.
4622 Tue Jul 25 03:30:56 1996  Richard Henderson  <rth@tamu.edu>
4624         * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
4625         * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
4626         * sysdeps/unix/sysv/linux/i386/clone.S: New file.
4628 Sun Aug  4 00:12:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4630         * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
4631         `unsigned long'.
4633         * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
4635 Sat Aug  3 16:20:02 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4637         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
4638         Mikasa.
4640         * socket/sys/socket.h (send, __send, sendto): Declare buffer
4641         pointer as __const.
4643         * string/tester.c (main): Test stpncpy.
4645         * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
4646         segfault when called with an N that is not a multiple of four and
4647         src[N-1]=='\0'.
4649         * misc/syslog.c (LogType): New variable.
4650         (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
4651         try again with SOCK_STREAM (the Linux syslogd uses a socket of the
4652         latter type).
4653         (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
4654         terminator as a record-delimiter.  If __send(LogFile) fails,
4655         call closelog() so logfile gets re-opened next time.
4657 Wed Aug  7 15:15:14 1996  Ulrich Drepper  <drepper@cygnus.com>
4659         * elf/dl-open (_dl_open): Add cast to avoid warning.
4661         * manual/memory.texi: Improve some examples to give readers better
4662         advice: Use `stpcpy' instead of `strcat' if possible.
4663         * manual/string.texi: Document `strtok_r' and `strtok'.
4665         * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
4666         of Makeconfig.
4667         [$(cross-compiling)=no]: Change test before making librpcsvc
4668         to this from $(cross-compile).
4669         Reported by Andreas Schwab.
4671 Tue Aug  6 14:27:11 1996  Ulrich Drepper  <drepper@cygnus.com>
4673         * elf/Makefile (routines): Move dl-sysdep to here...
4674         (rtld-routines): ...from here.  This should make static linking
4675         work again.
4677         * locale/setlocale.c: Add local variable `lock' and add code to
4678         `setlocale' to avoid simultaneous changing of global data.
4680         * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
4681         * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
4682         `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
4683         of unprotected names.
4685 Tue Aug  6 01:13:56 1996  Ulrich Drepper  <drepper@cygnus.com>
4687         Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
4688         This requires to rename several functions to use __ protected
4689         names.
4690         * dirent/dirent.h: Add prototypes of __opendir, __closedir,
4691         and __readdir.
4692         * sysdeps/mach/hurd/closedir.c: Prepend function name with __
4693         and make old name a weak alias.
4694         * sysdeps/mach/hurd/getrlimit.c: Likewise.
4695         * sysdeps/mach/hurd/opendir.c: Likewise.
4696         * sysdeps/mach/hurd/readdir.c: Likewise.
4697         * sysdeps/stub/closedir.c: Likewise.
4698         * sysdeps/stub/opendir.c: Likewise.
4699         * sysdeps/stub/readdir.c: Likewise.
4700         * sysdeps/unix/closedir.c: Likewise.
4701         * sysdeps/unix/opendir.c: Likewise.
4702         * sysdeps/unix/readdir.c: Likewise.
4704         * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
4706         * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
4707         `__closedir' instead of unprotected names.
4709         * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
4710         instead of `isatty' since later is not part of ISO C.
4711         * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
4712         `open' since later is not part of ISO C.
4714         * login/endutent.c (endutent): Call `__endutent_r', not
4715         `endutent_r'.
4716         * login/endutent_r.c: Rename defined function to `__endutent_r',
4717         make `endutent_r' weak alias.
4718         * login/getutent.c (getutent): Call `__getutent_r', not
4719         `getutent_r'.
4720         * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
4721         * login/getutid_r.c: Rename defined function to `__getutent_r',
4722         make `getutent_r' weak alias.
4723         * login/getutline.c (getutline): Call `__getutline_r', not
4724         `getutline_r'.
4725         * login/getutline_r.c: Rename defined function to `__getutline_r',
4726         make `getutline_r' weak alias.
4727         * login/pututline_r.c: Rename defined function to `__pututline_r',
4728         make `pututline_r' weak alias.
4729         * login/setutent.c (setutent): Call `__setutline_r', not
4730         `setutline_r'.
4731         * login/setutent_r.c: Rename defined function to `__setutline_r',
4732         make `setutline_r' weak alias.
4733         Rename `utmpname' to `__utmpname' and make former weak alias.
4734         (__utmpname): Call `__strdup', not `strdup'.
4735         * login/utmp.h: Add prototypes for name space clean reentrant
4736         versions.
4737         * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
4738         and `__endutent_r' instead of unprotected names.
4740         * math/math.h: Add prototype for `__matherr'.
4741         * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
4742         of `matherr'.
4744         * nss/getXXbyYY.c: Call __ protected reentrant function.
4745         * nss/getXXent.c: Likewise.
4746         * nss/getXXbyYY_r.c: Define `get*' function with __ protected
4747         name.  Make usual name a weak alias.
4748         * nss/getXXent_r.c: Likewise.
4750         * posix/unistd.h: Add prototype for `__ttyname_r'.
4751         * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
4752         and make `ttyname_r' a weak alias.
4754         * resource/sys/resource.h: Add prototype for `__getrlimit'.
4755         * sysdeps/stub/getrlimit.c: Prepend function name with __
4756         and make old name a weak alias.
4757         * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
4758         and make `getrlimit' weak alias.
4760         * libc/stdio/stdio.h: Add prototype for `__vscanf'.
4761         * libc/stdio/vscanf.c: De-ANSI-fy.
4762         Rename function to `__vscanf' and make `vscanf' a weak alias.
4763         * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
4764         of `vscanf'.
4766         * stdio-common/reg-printf.c: De-ANSI-fy.
4767         Rename function to `__register_printf_function' and make
4768         `register_printf_function' weak alias.
4770         * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
4771         `wcsrtombs'.
4773         * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
4774         * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
4775         * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
4776         * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
4777         * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
4778         name a weak alias.
4779         * wcsmbs/mbsrtowcs.c: Likewise.
4780         * wcsmbs/wcrtomb.c: Likewise.
4781         * wcsmbs/wcsrtombs.c: Likewise.
4782         * wcsmbs/wchar.h: Add prototypes for __ protected versions.
4784         * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
4785         instead of `sigprocmask'.
4788         * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
4789         version getgrent_r, getgrgid_r, and getgrnam_r.
4790         * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
4791         version getpwent_r, getpwuid_r, getpwnam_r and __ protected
4792         names.
4793         * resolv/netdb.h: Complete rewrite.  No more BSD ugliness.
4796         * misc/error.c (private_strerror): Translate messages from table,
4797         too.
4799         * io/fcntl.h: Pretty printing.
4800         * misc/fstab.h: Likewise.
4801         * misc/ttyent.h: Likewise.
4802         * resource/sys/resource.h: Likewise.
4803         * string/argz.h: Likewise.
4804         * string/envz.h: Likewise.
4806         Add support for symbols from POSIX.1c (POSIX threads).
4807         * posix/getconf.c: Handle new sysconf symbols.
4808         * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
4809         _POSIX_LOGIN_NAME_MAX with minimal maximal values.
4810         * sysdeps/generic/confname.h: Define new symbols.
4811         * sysdeps/posix/sysconf.c: Handle new symbols.
4812         * sysdeps/stub/sysconf.c: Ditto.
4813         * sysdeps/unix/sysv/linux/sysconf.c: Removed.  Generic version
4814         is ok now.
4816         * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
4817         have real prototype.
4819         * sysdeps/generic/resourcebits.h: Add macro definition for
4820         RLIMIT_* values.  Some sources test using #ifdef whether specific
4821         limit is available.
4822         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
4823         * sysdeps/unix/sysv/linux/resourcebits.h: Removed.  We need
4824         separate files for the architectures.
4825         * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
4826         * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
4827         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
4828         * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
4830         * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
4831         and only default on `OPEN_MAX'.
4832         * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed.  Default is already
4833         the POSIX version.
4835         * time/Makefile (routines): Add ctime_r.
4836         * time/asctime.c: Add implementation of `asctime_r'.  Make
4837         `asctime' implementation based on reentrant version.
4838         * time/ctime_r.c: New file.
4839         * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
4840         and `ctime_r'.
4842 Sat Aug  3 18:41:36 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4844         * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
4845         (_nl_C_LC_CTYPE): Fix ordering.
4846         * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
4847         typo.
4849 Sat Aug  3 12:31:06 1996  Richard Henderson  <rth@tamu.edu>
4851         * csu/initfini.c: Discover the maximum alignment generated by the
4852         compiler when emitting a function.
4853         (_init): Make sure the end of the crti fragment is aligned.
4854         (_fini): Likewise.
4856 Fri Aug  2 03:12:40 1996  Ulrich Drepper  <drepper@cygnus.com>
4858         * initfini.c: (__libc_is_static): New variable.  Will be
4859         initialized in init-first.c.  Some actions in the libc work
4860         different when libc is static or dynamic.
4862         * sysdeps/unix/sysv/linux/init-first.c (init): Use
4863         `__libc_is_static' variable to determine whether call to
4864         `personality' and `setfpucw' is necessary.  When done set variable
4865         to +-1 depending on library type.
4867         * locale/setlocale.c (setlocale): Use global variable
4868         `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
4869         determine whether it's a SET[UG]ID program.
4871 Fri Aug  2 14:40:22 1996  Roland McGrath  <roland@fast.cs.utah.edu>
4873         * Version 1.93 test release.
4875         * manual/Makefile: Use -include for chapters-incl too.
4877         * Makeconfig (+link): Add back start.o, mistakenly removed in last
4878         change.
4880 Fri Aug  2 01:04:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4882         * nss/Makefile (generated): Add db-*.c.
4884         * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
4885         using #include_next.
4887         * configure.in (--enable-add-ons): Quote m4 macro args.
4889         * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
4891 Thu Aug  1 14:40:03 1996  Roland McGrath  <roland@fast.cs.utah.edu>
4893         * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
4895         * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
4897         * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
4898         (+link): Not here.
4900         * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
4901         warning when inline function is elided.
4902         * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
4903         (elf_machine_runtime_setup): Likewise.
4904         * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
4905         * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
4906         (elf_machine_load_address): Likewise.
4908         * catgets/gencat.c: Include <locale.h>.
4910         * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
4912         * login/logwtmp.c (logwtmp): Call time, not __time.
4914         * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
4915         * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
4916         * login/logwtmp.c (logwtmp): Likewise.
4918         * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
4919         comparing ioctl macro values.
4921         * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
4923         * manual/Makefile: Use -include for chapters to suppress warning.
4925         * sysdeps/stub/socket.c: Fix type of TYPE arg.
4926         * sysdeps/stub/socketpair.c: Likewise.
4928         * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
4930         * sysdeps/generic/sysdep.h: New file, broken out of ...
4931         * sysdeps/unix/sysdep.h: ... here.
4932         (C_LABEL): Moved out.
4934         * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
4935         stick to sed.  Do `exit 0' at end because while returns nonzero.
4937         * sysdeps/i386/sysdep.h: New file, broken out of ...
4938         * sysdeps/unix/i386/sysdep.h: ... here.  Generic asm macros moved out.
4940         * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
4941         They are defined unconditionally in libio/stdio.h.
4943         * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
4944         * elf/dl-cache.c: Likewise.
4946 Mon Jul 29 19:20:05 1996  Ulrich Drepper  <drepper@cygnus.com>
4948         * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
4949         (sysdep_headers): Add sys/sysmacros.h.
4950         * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
4952 Wed Jul 31 14:21:36 1996  Ulrich Drepper  <drepper@cygnus.com>
4954         * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
4955         tcgetattr.  We have weak aliases now.
4956         * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
4957         "optimizations" for random functions.
4959 Mon Jul 29 20:33:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4961         * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
4962         htons) [__BIG_ENDIAN]: #undef them before defining to avoid
4963         redefinition warning.
4965 Mon Jul 29 20:28:27 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4967         * time/time.h: Don't optimize tzset() to __tzset() which bypasses
4968         the __tzset_lock.
4970 Tue Jul 30 15:14:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4972         * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
4973         protection.
4975 Tue Jul 30 02:48:28 1996  Ulrich Drepper  <drepper@cygnus.com>
4977         * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
4978         to be 64-bit clean.
4979         Reported by Richard Henderson <rth@tamu.edu>.
4981 Tue Jul 30 15:04:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4983         * locale/programs/ld-collate.c (collate_output): Fix typo reported by
4984         David Miller.
4986 Tue Jul 30 13:23:13 1996  Ulrich Drepper  <drepper@cygnus.com>
4988         * locale/setlocale.c (setlocale): Don't try to free C locale
4989         data.
4990         Reported by Matthias Urlichs.
4992 Tue Jul 30 14:35:17 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4994         * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
4995         (open_file): New function, contents mostly from __open.
4996         (_dl_sysdep_read_whole_file): New function.
4998 Sat Jul 27 11:23:59 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5000         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
5001         `..' dots in sed search string.
5003 Mon Jul 29 01:27:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5005         * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
5006         protection.
5008 Sun Jul 28 23:46:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5010         * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
5011         in those directories.
5012         * config.make.in (add-ons): New varaible, set from @subdirs@.
5013         * Makefile (subdirs): Added $(add-ons) at the end.
5015         * time/strftime.c (strftime: do_number): Initialize PRINTED to
5016         MAXDIGITS in case P is null and so sprintf is never actually called.
5018 Mon Jul 29 02:46:23 1996  Ulrich Drepper  <drepper@cygnus.com>
5020         Add support for the to-be-written internationalized regexp.
5021         This code must be able to use collation symbols and collation
5022         equivalent classes.
5023         * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
5024         _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
5025         New global variables for collation classes.
5026         * locale/categories.def: Add new descriptions for collation symbols
5027         and collation classes.
5028         * locale/langinfo.h: Add constants for collation symbols and
5029         collation classes.
5030         * locale/lc-collate.c: Add new global variables for collation symbols
5031         and collation classes.
5032         (_nl_postload_collate): Initialize new variables.
5033         * locale/programs/ld-collate.c: Add code to emit tables for
5034         collation symbols and collation classes.
5035         * locale/programs/locales.h: Change prototype for `collate_output'.
5036         * locale/programs/locfile.c (write_all_categories): Call
5037         `collate_output' with new argument.
5038         * locale/localeinfo.h: Add declaration for new global vars.
5039         (union locale_data_value): New member wstr for `wchar_t' strings.
5040         * locale/programs/locale-spec.c: Handle `collate-classes'
5041         keyword and print information about available collation classes.
5042         * locale/strlen-hash.h: New file.  Simple hashing function which
5043         takes a string with known length.
5044         * locale/Makefile (distribute): Add strlen-hash.h.
5045         (locale-modules): New var.  Additional files for `locale' program.
5047         * locale/C-ctype.c: Rewrite to avoid using string for giving values
5048         which are of type `u_int32_t'.
5049         Correct entry for EOF in toupper and tolower tables.
5051         * locale/loadlocale.c (_nl_load_locale):  Add cast to prevent
5052         warning.
5054         * locale/programs/ld-ctype.c (ctype_output): Add code to make
5055         sure that all tables in binary file are word-aligned.
5057         * locale/programs/locfile.c (write_locale_data): Correct handling
5058         of LC_MESSAGES locale.  Create directory if necessary.
5060         * locale/setlocale.c (setlocale): Add cast to avoid warning.
5062         * string/string.h: Add prototype for `__strndup'.
5064 Wed Jul 24 19:10:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5066         * wcsmbs/mbrtowc.c: Remove unused variable.
5068 Sun Jul 28 22:40:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5070         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
5071         2.0.10; some problems were reported with an earlier version, and this
5072         one is known to work.
5074         * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
5075         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
5077 Sat Jul 27 13:02:09 1996  Ulrich Drepper  <drepper@cygnus.com>
5079         * elf/rtld.c (dl_main): Ignore arguments when environment variable
5080         LD_TRACE_LOADED_OBJECTS is set.
5082 Sun Jul 28 19:42:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5084         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
5085         __libc_enable_secure instead of _dl_secure.
5086         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
5087         * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
5088         of _dl_secure.
5089         * elf/Makefile (routines): Add enbl-secure.
5090         (elide-routines.so): Here too.
5091         * sysdeps/generic/enbl-secure.c: New file.
5092         * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
5093         * elf/dl-support.c (_dl_secure): Variable removed.
5094         * elf/rtld.c: Likewise.  Replace all uses with __libc_enable_secure.
5096 Sun Jul 28 19:26:40 1996  David S. Miller  <dm@neteng.engr.sgi.com>
5098         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5099         Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
5100         compiler doesn't elide it.
5101         (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
5103 Sat Jul 27 02:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5105         * elf/rtld.c (dl_main): Take new option --verify when run directly.
5106         In verify mode, exit with status zero iff the argument object's
5107         PT_INTERP matches argv[0].
5108         * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
5109         exits with zero status.  This makes `ldd' secure again.
5111 Fri Jul 26 22:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
5113         * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
5114         environment variable handling.  This makes the dynamic linker
5115         only print loaded libraries and quit.
5117         * elf/ldd.sh.in: Don't use `rtld --list' but instead
5118         LD_TRACE_LOADED_OBJECTS environment variable to print needed
5119         objects.
5121 Sat Jul 27 02:03:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5123         * db/makedb.c (main): Print version on stdout, not stderr.  Don't exit
5124         after printing version until after doing usage for --help.
5125         (long_options, main, usage): Rename -l/--lowercase option to
5126         -f/--fold-case (-f matches sort).
5128 Sat Jul 27 04:32:31 1996  Ulrich Drepper  <drepper@cygnus.com>
5130         * db/makedb.c: New file.  Implement program to create simple <db.h>
5131         database from textual input.  This will be used for nss_db.
5133 Sat Jul 27 01:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5135         * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
5136         * sunrpc/rpc/pmap_clnt.h: Likewise.
5137         * sunrpc/rpc/auth.h: Likewise.
5138         * sunrpc/rpc/pmap_rmt.h: Likewise.
5139         * sunrpc/rpc/rpc_msg.h: Likewise.
5141 Sat Jul 27 04:37:34 1996  Ulrich Drepper  <drepper@cygnus.com>
5143         * string/string.h (strndupa): Change to use return value of
5144         `memcpy' for more performance.
5145         * string/strndup.c: Likewise.
5147         * string/string.h (strdupa): Don't call __builtin_alloca in argument.
5148         This might lead to problems.
5149         (strndupa): Likewise.
5151 Fri Jul 26 15:24:25 1996  Ulrich Drepper  <drepper@cygnus.com>
5153         * sunrpc/rpc/auth.h: Add protection against multiple inclusion
5154         and change K&R prototypes to ANSI prototypes.
5155         * sunrpc/rpc/auth_unix.h: Ditto.
5156         * sunrpc/rpc/clnt.h: Ditto.
5157         * sunrpc/rpc/pmap_clnt.h: Ditto.
5158         * sunrpc/rpc/pmap_prot.h: Ditto.
5159         * sunrpc/rpc/pmap_rmt.h: Ditto.
5160         * sunrpc/rpc/rpc_msg.h: Ditto.
5161         * sunrpc/rpc/svc.h: Ditto.
5162         * sunrpc/rpc/svc_auth.h: Ditto.
5163         * sunrpc/rpc/xdr.h: Ditto.
5165 Fri Jul 26 20:39:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5167         * ctype/test_ctype.c: Test EOF too.
5169 Fri Jul 26 18:06:58 1996  Ulrich Drepper  <drepper@cygnus.com>
5171         * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
5172         * sunrpc/rpc/auth_unix.h: Likewise.
5173         * sunrpc/rpc/clnt.h: Likewise.
5174         * sunrpc/rpc/netdb.h: Likewise.
5175         * sunrpc/rpc/pmap_clnt.h: Likewise.
5176         * sunrpc/rpc/pmap_prot.h: Likewise.
5177         * sunrpc/rpc/rpc_msg.h: Likewise.
5178         * sunrpc/rpc/svc.h: Likewise.
5179         * sunrpc/rpc/svc_auth.h: Likewise.
5180         * sunrpc/rpc/xdr.h: Likewise.
5182         * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
5183         to here from...
5184         * sunrpc/pmap_rmt.c: ...here.
5186 Fri Jul 26 16:10:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5188         * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
5189         valid ut_id field.
5190         * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
5191         if a search fails.
5193 Fri Jul 26 00:36:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5195         * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
5196         <kkojima@info.kanagawa-u.ac.jp>.
5198 Fri Jul 26 04:41:28 1996  Ulrich Drepper  <drepper@cygnus.com>
5200         * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
5201         defined, not __OPTIMIZED.
5202         (_nl_msg_cat_cntr): Move declaration outside macro definition
5203         to prevent "nested extern" warning.
5204         (dcgettext): Rename local variable `result' to `__result'.
5206 Thu Jul 25 22:46:30 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5208         * locale/programs/localedef.c (__progname): Remove decl.
5209         (main): Use program_invocation_short_name instead of __progname.
5210         (usage): Use program_invocation_name instead of __progname.
5212 Fri Jul 26 03:46:08 1996  Ulrich Drepper  <drepper@cygnus.com>
5214         * catgets/gencat.c: Use "libc" instead of PACKAGE.
5215         * locale/localedef.c: Ditto.
5216         * locale/locale.c: Ditto.
5218         * locale/findlocale.c (_nl_find_locale): Little optimization.
5219         Use new function `strndup'.
5221         * locale/loadlocale.c: Little optimization.  Use constant value
5222         from `_nl_category_num_items' instead of byte-order dependend
5223         value from file.
5225         * locale/programs/ld-time.c (time_add): Correct string constant.
5227         * locale/programs/locale-spec.c: New file.
5228         * locale/programs/locale.c: Call `locale_special' function if
5229         no other field matches.
5231         * locale/programs/localedef.c: No need to define `program_name'.
5232         Use global variable `__progname'.
5234         * locale/programs/locfile.c (write_locale_data): Always write
5235         LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file.  This is
5236         necessary since message catalogs are also installed in the
5237         LC_MESSAGES/ directory.
5239         * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
5240         function instead of writing single bytes.
5241         (encode_char): Also handle little endian.
5243         * locale/setlocale.c (new_composite_name): Little optimization.
5244         Use return value of `memcpy'.
5246         * misc/ttyent.h: Pretty print prototypes, add missing parameter
5247         names, prepend parameter names with __  and use `__const' instead
5248         of `const'.
5249         * posix/unistd.h: Ditto.
5250         * stdlib/stdlib.h: Ditto.
5251         * string/string.h: Ditto.
5253         * posix/getconf.c: De-ANSI-fy.  Recognize POSIX.2 constant names.
5254         Use `error' function instead of doing it by hand.
5255         * sysdeps/posix/sysconf.c: De-ANSI-fy.
5256         Handle _SC_COLL_WEIGHTS_MAX.
5257         * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
5258         _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
5259         since these do not depend on the platform.
5260         Add POSIX.4 symbols.
5262         * posix/posix2_lim.h: Add missing definition of
5263         _POSIX2_COLL_WEIGHTS_MAX.
5264         Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
5265         to high values since we have no fixed limit.
5267         * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
5268         _SC_PAGESIZE for buggy systems (= HP UX) out there.
5270         * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
5271         * wcsmbs/mbsnrtowcs.c: New file.  Non-standard implementation.
5272         * wcsmbs/wcsnrtombs.c: Ditto.
5273         * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
5274         wcsnrtombs.
5276 Thu Jul 25 00:25:54  Richard Henderson  <rth@tamu.edu>
5278         * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
5279         course.
5280         * nss/getXXent_r.c: Likewise.
5281         * nss/nsswitch.c: Likewise.
5282         * nss/nss_files/files-XXX.c: Likewise.
5283         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
5284         * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
5285         * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
5287 Thu Jul 25 00:53:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5289         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
5290         macro, now put the needed Linux version just once, here; update to
5291         needing linux-2.0.3 headers.
5292         (libc_cv_linuxVER): New macro derived from that.
5293         (kernel header check): Use those macros and some m4 magic to replace
5294         hard-coded `201' and `2.0.1' in several places.
5296         * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
5298 Wed Jul 24 17:02:30 1996  Ulrich Drepper  <drepper@cygnus.com>
5300         * time/localtime.c: Move lock variable declaration to end of
5301         variable declarations since if is a dummy macro the ; at the
5302         end terminates the variable section of the function.
5304         * time/tzset.c: Undefine `tzset' before function declaration.
5305         Use `weak_function' macro instead of `weak_symbol'.
5307 Wed Jul 24 18:57:33 1996  Ulrich Drepper  <drepper@cygnus.com>
5309         * stdlib/strtouq.c: Additional weak alias is `strtoull', not
5310         `strotull'.
5312 Wed Jul 24 18:26:23 1996  Ulrich Drepper  <drepper@cygnus.com>
5314         * locale/C-ctype.c: Increment number of fields after change
5315         from Wed Jun 19 03:24:58 1996.
5317 Tue Jul 23 18:13:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5319         * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
5320         ($(common-objpfx)libc.so): Move deps into that, use it.
5321         [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
5322         $(rpcuserlibs:.so=_pic.a).
5323         * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
5324         use $(LDLIBS-c.so).
5326 Thu Jul 18 21:41:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5328         * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
5329         n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
5331 Tue Jul 23 02:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
5333         * locale/iso-4217.def: Add India to comment for symbol "INR ".
5334         Reported by Raja R Harinath  <harinath@cs.umn.edu>.
5336 Sat Jul 20 14:03:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5338         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
5339         #undef RESOLVE.
5341 Sun Jul 21 06:48:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5343         * time/tzset.c: Include <libc-lock.h>.
5344         (__tzset_lock): New lock variable.
5345         (tzset): New function (weak defn), no longer weak alias for __tzset.
5346         Call __tzset while holding __tzset_lock.
5347         * time/localtime.c: Include <libc-lock.h>.
5348         (__localtime_r): Hold __tzset_lock while doing the work.
5350         * sysdeps/generic/setenv.c (__environ): Change conditional for #define
5351         from [!HAVE_GNU_LD] to [!_LIBC].
5352         [_LIBC]: Include <libc-lock.h> and define a lock.
5353         (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
5354         (setenv, unsetenv): Use them.
5356 Sun Jul 21 01:44:39 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5358         * locale/programs/locfile.c (write_locale_data): Deal with missing
5359         UIO_MAXIOV.
5361         * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
5362         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
5364 Sat Jul 20 21:55:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5366         Win32 hacks from <Rob_Tulloh@tivoli.com>.
5367         * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
5368         use void * for my_realloc; include <malloc.h> for alloca.
5369         (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
5370         * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
5371         * posix/glob.h: Likewise.
5373 Sat Jul 20 13:28:52 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5375         * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
5376         call __io_select unless there's only a single descriptor, as each
5377         descriptor now has its own reply port.
5378         If there is only a single descriptor, just use its reply port for
5379         everything and don't bother creating the port set.
5381         * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
5382         <unistd.h>: New include.
5384         * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
5385         continuation line.
5387 Sat Jul 20 07:15:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5389         * crypt/Makefile, crypt/nocrypt.c: Removed.  It is illegal to export
5390         from the USA any software that even makes it easy to drop in an
5391         encryption module of foreign origin.
5392         * Makerules (cryptobjdir): Variable removed.
5393         ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
5394         * Makefile (subdirs): Remove crypt.
5396 Fri Jul 19 15:45:20 1996  Ulrich Drepper  <drepper@cygnus.com>
5398         * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
5399         operator to yesexpr and noexpr string.
5401 Fri Jul 19 15:10:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5403         * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
5404         old code would have failed on a big-endian 64-bit architecture).
5405         * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
5407         * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
5408         (xdr_u_long): Use switch instead of chain of if-statements.
5409         Remove gratitous parentheses around return expressions.
5410         (xdr_enum): Open code case where INT_MAX<LONG_MAX.
5412         * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
5414         * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
5415         not int.
5417 Fri Jul 19 16:56:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5419         * dlfcn.h, db.h: New wrapper headers.
5421         * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
5422         for `struct stat;' forward decl.
5424 Fri Jul 19 22:25:19 1996  Ulrich Drepper  <drepper@cygnus.com>
5426         * locale/iso-4217.def: Add some more standardized currency
5427         symbols.
5429 Fri Jul 19 13:18:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5431         * hurd/report-wait.c (describe_number): Use unsigned long int for J.
5433 Thu Jul 18 12:33:57 1996  Roland McGrath  <roland@baalperazim.frob.com>
5435         * Rules (dummy.o, empty.o): Targets removed.
5436         (dummy.c, empty.c): New targets replace them.
5438 Thu Jul 18 11:42:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5440         * crypt/Makefile (lib-noranlib): Depend on
5441         $(objpfx)libcrypt.so$(libcrypt.so-version).
5442         (subdir): Fix name.
5444 Thu Jul 18 04:33:21 1996  Roland McGrath  <roland@baalperazim.frob.com>
5446         * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
5447         check.  mib's clueless hacking broke it.
5449 Thu Jul 18 04:27:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5451         * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
5453 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5455         * misc/sys/ustat.h: New file.
5456         * misc/ustat.h: Ditto.
5457         * sysdeps/generic/ustatbits.h: Ditto.
5458         * sysdeps/stub/ustat.c: Ditto.
5459         * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
5460         * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
5461         ustatbits.h.
5462         (routines): Mention ustat.
5464         * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
5465         * sysdeps/alpha/elf/start.S: here.
5467         * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
5468         alphabetically correct place.  Mention ustat.
5470         * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
5471         common symbol (makes errno accessible from gdb).
5473         * login/pututline_r.c (pututline_r): Test ut_id in repositioning
5474         test, not ut_type.
5476         * login/logwtmp.c (logwtmp): Reimplemented.  Must ensure that a
5477         record always gets appended at end of file (wtmp is a log file,
5478         after all).  Set ut_type to DEAD_PROCESS if name is empty.
5480         * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
5481         separate loop from search for UT_ID.  Fix code so it is in
5482         sync with Unix man page.
5484         * login/getutline_r.c (getutline_r): Stop searching only if
5485         ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
5487 Tue Jul 16 15:06:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5489         * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
5490         avoid duplicate declarations.
5492 Sun Jul 14 19:08:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5494         * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
5495         and alpha-gnu-linuxecoff targets.
5497 Fri Jul 12 16:58:44 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5499         * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
5501 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5503         * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
5504         of int.
5506         * resolv/res_comp.c (res_hnok): Use empty statement in place
5507         of NULL (which generates a "useless expression" warning in
5508         gcc).
5510 Wed Jul 17 23:56:35 1996  Roland McGrath  <roland@baalperazim.frob.com>
5512         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
5513         with $(..) in output.
5515 Wed Jul 17 21:53:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5517         * elf/Makefile (dl-routines): Add dl-cache.
5518         * elf/dl-cache.c: New file.
5519         * elf/dl-load.c (_dl_map_object): Check cache before default path.
5521 Wed Jul 17 20:41:30 1996  Ulrich Drepper  <drepper@cygnus.com>
5523         * stdio-common/vfscanf.c: Major change.  Now read character
5524         from stream only if needed.  Before it was read after the
5525         previous character was used.
5526         Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
5528         * stdio-common/tstscanf.c: Change test program so that return
5529         value is != 0 if one test failed.
5531 Wed Jul 17 17:08:48 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5533         * sysdeps/m68k/Makefile (crypt): Variable removed.
5534         * sysdeps/sparc/Makefile: Likewise.
5536         * version.h (VERSION): Update to 1.93.
5538         * Makerules ($(libdir)/libc.so): Depend on
5539         $(common-objpfx)libcrypt.so$(libcrypt.so-version).
5541         * crypt/nocrypt.c: New file.
5542         * Makefile (subdirs): Add crypt.
5543         * crypt/Makefile: New file.
5545         * Makerules (soversions.mk): Move this target, include of it, and
5546         include of version.mk to ...
5547         * Makeconfig: ... here.
5548         (soversions.mk): Depend on Makeconfig instead of Makerules.
5550         * shlib-versions (*-*-*): Set libcrypt=0.
5552 Wed Jul 17 11:29:26 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5554         * stdio/linewrap.c (lwupdate): Fix boundary condition where a
5555         word extends right up to rmargin.
5557         * stdio/linewrap.c (lwupdate): When we've done a word wrap and
5558         output the wrap margin, set point_col to wmargin.
5559         Use negative point_col to deal with a wmargin of 0.
5560         (line_wrap_point): Return 0 for a negative point_col.
5561         (line_wrap_stream): Make wmargin ssize_t.
5562         * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
5563         point_col ssize_t.
5564         (line_wrap_stream): Make wmargin ssize_t.
5565         (line_wrap_point): Return 0 for a negative point_col.
5567 Wed Jul 17 02:43:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5569         * shlib-versions (*-*-gnu*): Set libc=0.0
5571 Tue Jul 16 01:52:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5573         * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
5574         sysdeps/i386/dl-machine.h.
5576 Tue Jul 16 00:18:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5578         * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
5579         to fiddle __put_limit in conjunction with __linebuf_active.
5581 Tue Jul 16 00:14:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5583         * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
5584         to the strong name, not the file name.
5586 Tue Jul 16 16:43:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5588         * csu/initfini.c: More magic.  Detect if .end is produced and put it
5589         in the output iff the compiler does.
5591         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
5592         because that is broken on alpha.
5594         * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
5595         call as in first.
5597         * Makerules (make-link): Install the new link with atomic mv -f in
5598         case ln itself requires the library being installed.
5600 Tue Jul 16 00:31:31 1996  Richard Henderson  <rth@tamu.edu>
5602         * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
5603         i386/dl-machine.h of 960713.
5605         * sysdeps/generic/dl-sysdep.c:  Include <sys/mman.h>.
5606         (_dl_sysdep_read_whole_file): Fix result variable declaration.
5608 Tue Jul 16 00:53:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5610         * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
5611         `nodename' member.
5613 Mon Jul 15 17:23:53 1996  Ulrich Drepper  <drepper@cygnus.com>
5615         * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
5616         with pointer to local variable instead of NULL.
5618 1996-07-15  Paul Eggert  <eggert@twinsun.com>
5620         * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
5622 Sat Jul 13 09:53:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5624         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
5625         that are already added by other means.
5627         * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
5628         caller column to get those syscalls added automagically.
5630 Mon Jul 15 12:24:54 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5632         * login/logout.c (logout): Initialize DATA to a state that will
5633         make setutent_r happy.
5635 Sun Jul 14 01:51:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5637         * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
5638         instead of setting the DT_DEBUG pointer.
5640         * csu/initfini.c (_init, _fini): Generate .end directives after
5641         standalone prologues and filter them out from epilogues.
5643         * Makeconfig (rtld-installed-name): Set to ld.so.1.
5644         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
5645         removed.
5647         * manual/Makefile (glibc-targets): Remove subdir_ from elts.
5649         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
5651         * MakeTAGS (extract): Pass --add-comments=TRANS.
5652         * sysdeps/gnu/errlist.awk: Write comments into the output with the
5653         descriptive paragraphs from the manual preceded by TRANS.
5655         * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
5656         (_dl_start): Move RESOLVE defn inside this function and #include
5657         "dynamic-link.h" a second time there.
5658         [RTLD_START]: Move use of this after _dl_start function.
5660         * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
5662         * elf/rtld.c: Include <string.h>.
5664         * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
5665         ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
5666         Conditionalize defns on [RESOLVE].
5667         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
5668         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
5669         Instead use RESOLVE macro with same args.
5670         (elf_machine_rel): Conditionalize defn on [RESOLVE].
5671         * elf/dl-reloc.c (RESOLVE): New macro, define before including
5672         "dynamic-link.h".  It replaces `resolve' local function.
5673         * elf/dl-runtime.c: Likewise.
5674         * elf/rtld.c: Likewise.
5676         * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
5678         * elf/dl-open.c (_dl_open): Force an indirect call for
5679         _dl_relocate_object so there is no chance a PLT fixup will be done
5680         and clobber _dl_global_scope before our call happens.
5682         * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
5683         to =t; must operate on top of fp reg stack, not second from top.
5684         Correct input constraint to 0 from t; must be explicit when input and
5685         output are the same register.
5686         (floor): Use __volatile instead of volatile.
5687         (ceil): Likewise.
5689         * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
5690         other targets.
5692 Sat Jul 13 23:50:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5694         * manual/Makefile (lib): New phony target.  Depend on stamp files.
5695         ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
5697 1996-07-13  Paul Eggert  <eggert@twinsun.com>
5699         * time/strftime.c (strftime): Use space padding for %e, %k, %l,
5700         to match Emacs format-time-string specification.
5701         (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
5703 Sat Jul 13 20:17:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5705         * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
5706         NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
5707         between MAP and its deps.
5708         * elf/link.h: Fix decl.
5709         * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
5710         colon-separated list of names, map those and pass vector of ptrs as
5711         PRELOADS list to _dl_map_object_deps.
5712         * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
5713         _dl_map_object_deps with empty preload list.
5714         * elf/dl-open.c (_dl_open): Likewise.
5716         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
5717         removed.
5718         (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
5719         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
5720         Conditionalize defn on [! MAP_ANON].
5721         * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
5722         on [! MAP_ANON].
5723         * elf/rtld.c (dl_main): Likewise.
5724         * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
5725         (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
5727         * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
5729 Sat Jul 13 02:47:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5731         * stdlib/random.c (__random): Declare as int32_t to be in sync
5732         with declaration.
5734         * socket/Makefile (headers): Add socketbits.h.
5736         * misc/mntent.c (endmntent): Allow for NULL stream.  SunOS does
5737         it that way.
5739         * grp/initgroups.c (initgroups): Add groups that user is a member
5740         of, not the ones he is _not_ a member of.
5742         * nss/nsswitch.c (known_compare): Make known_compare() a static
5743         instead of a local function.  The latter are difficult to debug
5744         and slow to execute on certain platforms.
5746         * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
5747         place of sizeof (dev).  The size of a literal string includes the
5748         NUL byte.
5750         * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
5752 Thu Jul 11 16:59:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5754         * misc/mntent.c (addmntent): Seek to end of file before writing
5755         entry.  Return 1 on error, not -1.
5757 Tue Jul  9 19:08:05 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5759         * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
5760         syscall.
5762 Fri Jul  5 18:44:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5764         * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
5765         shift amount for Jensen must be 5 not 4.
5767 Sat Jul 13 20:04:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5769         * socket/sys/socket.h (struct osockaddr): New type.
5771 Sat Jul 13 03:50:53 1996  Ulrich Drepper  <drepper@cygnus.com>
5773         * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
5774         * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
5775         and `long double' versions can be generated.
5776         * misc/qefgcvt.c, misc/qefgcvt_r.c: New files.  Define macros
5777         so that included efgcvt{,_r}.c file generate `long double'
5778         versions.
5779         * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
5780         functions.
5782         * manual/startup.texi: Document new getsubopt function.
5783         * manual/examples/subopt.c: New example program for documenting
5784         getsubopt function.
5786 Fri Jul 12 23:58:37 1996  Ulrich Drepper  <drepper@cygnus.com>
5788         * stdlib/Makefile (routines): Add getsubopt.
5789         * stdlib/stdlib.h: Add prototype for getsubopt.
5790         * stdlib/getsubopt.c: New file.  Implement getsubopt function
5791         to handle suboption parsing.
5793 Thu Jul 11 20:09:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5795         * inet/getnetent_r.c: Define NEED_H_ERRNO.
5796         * inet/getnetbynm_r.c: Likewise.
5797         * inet/getnetent.c: Likewise.
5798         * inet/getnetbyad_r.c: Likewise.
5799         * inet/getnetbyad.c: Likewise.
5800         * inet/getnetbynm.c: Likewise.
5802         * sysdeps/generic/pselect.c: Include <sys/time.h>.
5804         * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
5805         `struct timespec'.
5807         * math/Makefile (calls): Add s_frexp, s_ldexp.
5808         (routines): Remove them and &f from here.
5810         * sys/socket.h: New file, wrapper for socket/sys/socket.h.
5812         * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
5813         and check it.
5815         * nss/nss_files/files-XXX.c: Comment fix.
5817 Fri Jul 12 01:28:35 1996  Ulrich Drepper  <drepper@cygnus.com>
5819         * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
5820         of reentrant function.
5821         (setup): Pass additional argument with function name we are
5822         looking for.
5823         (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
5824         new argument {SET,END,GET}FUNC_NAME_STRING.
5826         * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
5827         we return a pointer.
5829 Thu Jul 11 18:20:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5831         * nss/nss_files/files-parse.c: Add comment about things to #define.
5833         * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
5835         * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
5836         terminator char as an error.
5838         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
5840 Thu Jul 11 03:21:10 1996  Ulrich Drepper  <drepper@cygnus.com>
5842         * catgets/gencat.c (write_out): Move code to determine new
5843         best size out of inner loop.
5845 Thu Jul 11 00:22:40 1996  Ulrich Drepper  <drepper@cygnus.com>
5847         * sysdeps/libm-ieee754/s_frexpl.c: New file.  `long double'
5848         implementation of frexp() function.
5849         * sysdeps/libm-ieee754/s_ldexpl.c: New file.  `long double'
5850         implementation of ldexp() function.
5852         * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
5853         out before or'ing.
5855 Wed Jul 10 05:24:40 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5857         * misc/mntent.c: Include <sys/types.h>.
5858         (endmntent): Return 1 one success, 0 on failure.
5859         (getmntent): Chop newline and ignore empty lines.
5861 Mon Jul  8 21:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5863         * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
5864         differently based on [RTLD_BOOTSTRAP].
5865         (elf_machine_rela): Use it instead of the fn ptr arg directly.
5867 Tue Jul  9 09:37:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5869         * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
5870         __glob_closedir_hook): Remove decls.
5872         * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
5874         * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
5875         for send and connect syscalls.
5877         * socket/sys/socket.h: New file, taken from non-sysdep parts of
5878         linux/sys/socket.h; break sysdeps parts out into socketbits.h.
5879         Declare __ names for send and connect.
5880         * sysdeps/generic/socketbits.h: New file.
5881         * sysdeps/unix/sysv/linux/socketbits.h: New file.
5882         * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
5883         * sysdeps/generic/sys/socket.h: File removed.
5885         * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
5886         * sysdeps/mach/hurd/send.c: Likewise.
5888         * sysdeps/mach/libc-lock.h: New file.
5889         * sysdeps/unix/readdir.c: Do locking.
5890         * sysdeps/unix/seekdir.c: Likewise.
5891         * sysdeps/unix/rewinddir.c:  Likewise.
5892         * sysdeps/unix/closedir.c: Likewise.
5893         * sysdeps/unix/bsd/telldir.c: Likewise.
5894         * sysdeps/mach/hurd/seekdir.c: Likewise.
5895         * sysdeps/mach/hurd/readdir.c: Likewise.
5896         * sysdeps/mach/hurd/closedir.c: Likewise.
5897         * sysdeps/mach/hurd/opendir.c: Initialize the lock.
5898         * sysdeps/unix/opendir.c: Likewise.
5899         * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
5900         (struct __dirstream): Add lock member using __libc_lock_define.
5901         * sysdeps/unix/dirstream.h: Likewise.
5903         * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
5905         * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
5907         * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
5909 Thu Jul  4 01:34:04 1996  Ulrich Drepper  <drepper@cygnus.com>
5911         * locale/programs/stringtrans.c: Fix typo in copyright.
5913         * stdio-common/printf-prs.c: Add casts to prevent
5914         signed<->unsigned warnings.
5916         * stdio-common/printf-parse.h: Initialize state variable before
5917         calling mbrlen.
5918         * stdio-common/printf-prs.c: Don't initialize state variable here.
5919         * stdio-common/vfprintf.c: Don't initialize state variable.
5920         (vfprintf): While determining length of multibyte string don't
5921         try to be clever in determining characters to use for first
5922         call.
5924         Add real implementation of multibyte<->wide char conversion
5925         functions.  The functions always convert between the fixed wide
5926         char format (ISO 10646 in UCS4) and the UTF8 representation of
5927         this character set.  Conversion between the currently used
5928         8bit character set and ISO 10646 will not take place.  This is
5929         what iconv() is for.
5930         * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
5931         dummy definition.
5932         Add optimized version of `mbrlen' function.
5933         * wcsmbs/btowc.c (btowc): Restrict range of legal characters
5934         to 0...0x7f.
5935         * wcsmbs/wctob.c (wctob): Restrict range of legal characters
5936         to 0..0x7f.
5937         * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
5938         This is needed in the wchar.h header.
5939         * wcsmbs/mbrtowc.c: Replace dummy implementation.  Convert UTF8
5940         encoded character to UCS4.
5941         * wcsmbs/mbsinit.c: Replace dummy implementation.  Test COUNT
5942         element of `mbstate_t' for initial state.
5943         * wcsmbs/mbsrtowcs.c: Replace dummy implementation.  Convert UTF8
5944         encoded string to UCS4 string.
5945         * wcsmbs/wcrtomb.c: Replace dummy implementation.  Convert UCS4
5946         character to UTF8 encoded form.
5947         * wcsmbs/wcsrtombs.c: Replace dummy implementation.  Convert UCS4
5948         encoded string to UTF8 encoded form.
5950 Tue Jul  9 06:19:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5952         * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
5953         variable name, so new a libc with new requirements won't fail to
5954         notice an insufficient Linux version.
5956         * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
5958         * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
5959         instead of 2.0 headers.
5961         * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
5963         * sysdeps/gnu/errlist.awk: Undo mib's bogus changes.  The
5964         sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
5966         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
5967         before using it in lhs of weak_alias.
5969         * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
5970         Call __nss_lookup when not setting STARTP.
5971         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
5972         function-calling loop.
5974 Tue Jul  9 00:14:52 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
5976         * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
5977         PENDIN, NOFLSH): Undefine these at start if they are already
5978         defined to avoid collision with termbits.h.
5979         * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
5980         (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
5982 Mon Jul  8 13:37:40 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5984         * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
5985         already defined to float, long double.  Use those macros for _Mdouble_
5986         defns when including mathcalls.h.
5987         * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
5988         -D_Mlong_double_=double.
5990         Add more -lm functions to -lc because ldexp uses them.
5991         * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
5992         (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
5993         ldexp have both f and l code, and those have f though not l code.
5995 Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
5997         * sysdeps/mach/hurd/errnos.awk: Skip entries where the
5998         error is 0.  The "placeholder" entries recently added to
5999         errno.texi convert to zero since `???/' is at the front of them.
6000         * sysdeps/gnu/errlist.awk (errnoh): Likewise.
6002         * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
6003         __const to conform with unistd.h.
6005         * stdlib/stdlib.h (random): Declare return type to be int32_t.
6007         * string/argz-delete.c (argz_delete): Use memmove instead of
6008         memcpy for possibly overlapping strings.
6010 Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6012         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
6013         storage class.  GCC gives an error for non-extern data defns with the
6014         alias attribute.
6016 Mon Jul  8 01:37:34 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
6018         * string/argz-insert.c (__argz_insert): (__argz_insert): Use
6019         memmove instead of memcpy for possible overlapping strings.
6021 Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6023         * libc-symbols.h (weak_function): New macro.
6024         For GCC 2.7+ define as __attribute__ ((weak)).
6025         * elf/dl-minimal.c: Use weak_function as keyword in function defns
6026         instead of weak_symbol (NAME) after the defn.
6027         * stdlib/strtol.c: Likewise.
6028         * stdlib/strtod.c: Likewise.
6029         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
6031         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
6032         If this is defined, don't declare _dl_rtld_map as weak, and
6033         don't check for MAP pointing to it.  RESOLVE is always null in this
6034         case, so test with #ifdef instead of if.
6036         * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
6037         weak_symbol.
6038         * csu/initfini.c (_init): Likewise.
6039         * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
6040         * misc/efgcvt_r.c: Likewise.
6041         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
6042         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
6044         * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
6045         It was not used in any assembler code.
6046         (weak_symbol_asm): Renamed to weak_extern_asm.
6047         (weak_extern): New macro replaces weak_symbol for weak extern refs;
6048         define to weak_extern_asm for [!ASSEMBLER].
6050 Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6052         * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
6053         weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
6054         define those now as aliases.
6055         Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
6056         [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
6057         after GCC weak attribute decl.
6059         * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
6060         map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
6061         (element printer): Check for elt in ALIAS, instead of special case
6062         for EWOULDBLOCK.
6064         * io/Makefile (headers): Add sys/vfs.h.
6065         * io/sys/vfs.h: New file.
6067         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
6068         critical section lock before unlinking dying active resources.
6069         The unlock just before return is right (i.e. old code unlocked twice).
6071 Sun Jun  2 22:28:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6073         * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
6074         Use memmove instead of memcpy where overlap is possible (not
6075         necessary using current implementation of memcpy, but...).
6076         (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
6078 Fri May 31 11:48:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6080         * stdio/linewrap.c (lwupdate): New function, mostly was
6081         __line_wrap_update.  Use POINT_COL field instead of POINT.
6082         (__line_wrap_output): Use lwupdate.
6083         (__line_wrap_update): New function.
6084         (ensure_unwrapped, ensure_wrapped): New functions.
6085         (line_wrap_set_lmargin, line_wrap_set_rmargin,
6086         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
6088         * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
6089         POINT_COL. Add POINT_OFFS field.
6090         (__line_wrap_update): New decl.
6091         (line_wrap_set_lmargin, line_wrap_set_rmargin,
6092         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
6094 Fri Jul  5 17:34:47 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6096         * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
6098         * login/pututline_r.c (pututline_r): Since we assign RESULT from
6099         lseek now, check that it's >= 0, not == 0.
6101 Wed Jul  3 13:28:04 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6103         * login/login.c (login): Make a copy of *UT, fill in various
6104         fields that we supply (ut_line, ut_type, ut_pid), and use the copy
6105         in place of UT.
6107         * login/getutline_r.c (getutline_r): When we return ESRCH, mark
6108         UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
6110 Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6112         * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
6113         signal during critical section doing interruptible RPC, if
6114         _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
6115         before thread_resume.  If in critical section, pass 0 for SIGNO to
6116         _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
6118         * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
6120         * sysdeps/unix/sysv/linux/sys/user.h: New file.
6121         * sysdeps/unix/sysv/linux/Dist: Add it.
6122         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
6124         * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
6125         points within DATA->linebuffer; otherwise use all of DATA->linebuffer
6126         itself, no need to skip past a NUL.
6128         * nss/nsswitch.h (known_function): Comment fix.
6129         * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
6130         directly.  Do the lookup and insertion with a single call, and fill in
6131         the tree node afterwards if new.
6132         (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
6134         * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
6135         (struct timeval): Add bodiless decl for scope.
6137         * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
6138         Move struct timespec defn outside [_TIME_H] so it can be got with
6139         #define __need_timespec.
6141         * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
6142         for `struct timespec' member names.
6143         (TIMESPEC_TO_TIMEVAL): Likewise.
6145         * nss/Makefile (extra-libs-others): New variable.
6147         * extra-lib.mk: Don't test for $($(lib)-no-lib-dep).  Instead match
6148         $(lib) in $(extra-libs-others).
6149         * sunrpc/Makefile (extra-libs-others): New variable.
6150         (librpcsvc-no-lib-dep): Variable removed.
6152         * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
6153         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
6154         _dl_rtld_map.
6155         (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
6156         (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
6157         (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
6158         _dl_rtld_map weak only here.
6160         * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
6162 Thu Jul  4 05:21:59 1996  David Mosberger-Tang  <davidm@azstarnet.com>
6164         * login/utmp.h: Fix typos.
6166         * misc/syslog.c (vsyslog): Use __send instead of send and
6167         __connect instead of connect to avoid name-space collisions (e.g.,
6168         with psgetty).
6170 Wed Jul  3 16:29:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6172         * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
6174         * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
6176         * malloc/malloc-size.c (malloc_usable_size): Renamed from
6177         malloc_object_allocation_size.
6178         * malloc/malloc.h: Fix decl.
6180         * sys/select.h: New file, wrapper header.
6182         * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
6183         fd_set, associated macros, and select decl.
6185         * sysdeps/posix/isfdtype.c: New file.
6187 Tue Jul  2 23:45:14 1996  Ulrich Drepper  <drepper@cygnus.com>
6189         The latest Japanese proposal for POSIX locales renames the
6190         CHARMAP keyword in locale definition files to CHARCONV.
6191         * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
6192         function ctype_is_charmap to ctype_is_charconv.
6193         * locale/programs/locfile-kw.gperf: Replace charmap keyword with
6194         charconv.
6195         * locale/programs/locfile-token.h: Add definition of token
6196         charconv.
6197         * locale/programs/locfile.c: Recognize charconv keyword.  Rename
6198         lables according to this.
6200         * locale/weight.h (get_weight): Cast constants to prevent
6201         warnings.
6203         * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
6204         string/strxfrm.c: Add some more casts to prevent signed<->unsigned
6205         warnings.
6207         New stuff described in P1003.1g.
6208         * misc/Makefile (headers): Add sys/select.h.
6209         (routines): Add pselect.
6210         * misc/sys/select.h: New file.  Declare select functions and
6211         needed data types and macros.
6212         * sysdeps/generic/pselect.c: New file.  Add generic implementation
6213         of pselect() function which uses select().
6215         * posix/getconf.c: Recognize new variables from P1003.1g.
6216         * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
6217         _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
6218         * posix/unistd.h: Add description of the P1003.1g variables.
6219         * sysdeps/generic/confname.h: Define _SC_* values for new
6220         variables.
6221         * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
6222         _PC_SOCK_MAXBUF.
6223         * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
6224         * sysdeps/posix/sysconf.c (sysconf): Add handling of new
6225         P1003.1g variables.
6226         * sysdeps/stub/sysconf.c (sysconf): Ditto.
6227         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
6228         _POSIX_SELECT since Linux has this.
6230         * socket/Makefile (routines): Add isfdtype.
6231         * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
6232         * sysdeps/stub/isfdtype.c: New file.  Stub implementation of
6233         isfdtype.
6235         * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
6237 Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6239         * elf/Makefile (LDFLAGS-dl.so): New variable.
6240         (libdl.so): Depend on eval.so.
6241         (distribute): Add eval.c.
6242         * elf/eval.c: New file.
6244         * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
6245         in case it wrote fewer than MAXDIGITS chars.
6247         * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
6248         newline from flushing full buffer in loop, fix test so no fflush is
6249         done when last byte written exactly fills the buffer.
6251         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
6253         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
6254         (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
6256         * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
6257         extracting _dl_rtld_map.l_addr.
6259         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
6260         weak.
6261         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
6263         * shlib-versions (*-*-*): Set libnss_db=1.
6265 Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6267         * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
6269         * rpm/template (%build): Use @prefix@ instead of always /usr.
6270         Set up configparms only if @prefix@ is in fact /usr.
6271         * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
6273         * elf/Makefile: Add missing endif.
6275         * nss/nss_files/files-ethers.c (ntohost): Fix db key.
6277         * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
6278         (DATABASE): Define this instead of DATAFILE.
6279         * nss/nss_files/files-hosts.c: Likewise.
6280         (hostbyname): Use LOOKUP_NAME macro.
6282         * nss/nss_db/db-XXX.c: New file.
6283         * nss/Makefile (services): Add db.
6284         (libnss_db-inhibit-o): New variable.
6285         (libnss_db-routines): New variable.
6286         (distribute): Append db-XXX.c.
6287         (libnss_db.so): Depend on libdb.so and libnss_files.so.
6288         ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
6290         * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
6291         args, ignored.
6292         (DATAFILE): New macro.
6293         * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
6294         "files-XXX.c".
6295         * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
6296         Pass db key args to DB_LOOKUP.
6297         (DATAFILE): Macro removed.
6298         (DATABASE): New macro replaces it, lacks "/etc/" prefix.
6299         * nss/nss_files/files-service.c: Likewise.
6300         * nss/nss_files/files-pwd.c: Likewise.
6301         * nss/nss_files/files-proto.c: Likewise.
6302         * nss/nss_files/files-grp.c: Likewise.
6303         * nss/nss_files/files-ethers.c: Likewise.
6305         * elf/linux-compat.c: File removed.
6306         * elf/Makefile (distribute): Remove linux-compat.c.
6307         (ld-linux.so.1): Remove target and associated variables.
6309         * sunrpc/xdr.c: Remove malloc decl.
6310         * sunrpc/portmap.c: Likewise.
6312         * sunrpc/svc_tcp.c (abort): Don't declare.  Instead define as macro
6313         casting abort to fn returning bool_t.
6315         * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
6316         the parser function.
6317         [EXTERN_PARSER] (LINE_PARSER): Define to empty.
6318         * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
6319         * nss/nss_files/files-grp.c: Likewise.
6321         * Makeconfig (BUILD_CC): If undefined, define to $(CC).
6323         * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
6325         * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
6326         of ld.so so lookups for that soname find it.
6328         * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
6329         (resobjdir, LDLIBS-nss_dns.so): Variables removed.
6331         * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
6332         define parse_line function.
6333         (parse_line): #define to _nss_files_parse_pwent and
6334         add extern decl for that.
6336         * nss/nss_files/files-XXX.c (internal_getent): Return
6337         NSS_STATUS_TRYAGAIN for ERANGE error.
6339         * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
6340         of null, so next round returns null again instead of bombing.  Fix
6341         from drepper.
6343         * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
6344         Remove ; after `ENTDATA_DECL (data)'.
6345         Truncate line at strpbrk (line, EOLSET "\n").
6346         (ENTDATA_DECL): Put ; at end.
6347         (MIDLINE_COMMENTS): Macro removed.
6348         * nss/nss_files/files-ethers.c: Pass new argument.
6349         * nss/nss_files/files-hosts.c: Likewise.
6350         * nss/nss_files/files-network.c: Likewise.
6351         * nss/nss_files/files-parse.c: Likewise.
6352         * nss/nss_files/files-proto.c: Likewise.
6353         * nss/nss_files/files-rpc.c: Likewise.
6354         * nss/nss_files/files-service.c: Likewise.
6355         * grp/fgetgrent.c: Likewise.
6356         * pwd/fgetpwent.c: Likewise.
6357         * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
6358         fgetpwent.c already defines it.
6359         * nss/nss_files/files-grp.c: Likewise.
6361         * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
6362         as well as any matching with l_libname.  Fix DT_SONAME lookup to use
6363         string table properly.
6365         * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
6366         invoked directly, and l_libname from that if PT_INTERP missing.
6367         Set l_name from l_libname only if not set from argv.
6369         * time/europe, time/northamerica: Updated from ADO 96i.
6371 Mon Jul  1 15:44:34 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6373         * stdio-common/tst-ungetc.c: Include unistd.h.
6375         * inet/Makefile (routines): Change getnetbypt to getnetbyad.
6377 Mon Jul  1 13:32:42 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6379         * hurd/report-wait.c (describe_number): Make I unsigned long.
6381         * login/login.c (login): Only Frob OLD->ut_type if getutline_r
6382         actually found any entry.
6384         * login/pututline_r.c (pututline_r): If not located after any
6385         entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
6386         Lock the file before stating.
6388 Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6390         * nss/Makefile (databases): Change host to hosts.
6391         * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
6393         * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
6395         * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
6397         * string/string.h (strndupa): Pass missing arg to strnlen.
6399         * inet/getnetbypt_r.c: Renamed to ...
6400         * inet/getnetbyad_r.c: this; fixed function name.
6401         * inet/getnetbypt.c: Renamed to ...
6402         * inet/getnetbyad.c: this; fixed function name.
6404 Sat Jun 29 01:08:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6406         * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
6407         struct passwd.
6409 Fri Jun 28 23:25:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6411         * login/login.c (login): Initialize DATA so that setutent_r will
6412         actually do something.
6414 Fri Jun 28 16:53:01 1996  David Mosberger-Tang  <davidm@azstarnet.com>
6416         * resolv/res_hconf.c (strndup): Remove function.
6418         * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
6419         using ElfW() instead of Elf32_*.
6421         * sysdeps/unix/sysv/linux/alpha/init-first.h,
6422         sysdeps/unix/sysv/linux/m68k/init-first.h,
6423         sysdeps/unix/sysv/linux/i386/init-first.h: New files.
6424         * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
6425         init-first.h to make abstract machine dependent parts of
6426         initialization.
6428         * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
6429         error handling.  It's safer that way.
6431         * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
6432         Fix by Richard Henderson.
6434         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
6435         typo/extraneous whitespace.
6437         * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
6438         determine what integer sizes we're dealing with.
6440 Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
6442         * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
6443         check for signal zero, repair logical sense of test by
6444         parenthesizing correctly.
6446         * hurd/hurdsig.c (_hurd_internal_post_signal): In
6447         check-for-pending signals code, release _hurd_siglock before
6448         jumping to deliver_pending.
6450 Thu Jun 27 04:04:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
6452         * configure.in (config_machine): Make ELF the default even for
6453         Linux/Alpha unless a configuration of the form *-*-linux*ecoff
6454         is specified.
6456 Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6458         * nss/nss_files/files-hosts.c (ENTDATA): Define it.
6459         * nss/nss_files/files-parse.c (struct parser_data): Define entdata
6460         member only #ifdef ENTDATA.
6461         (ENTDATA_DECL): New macro.
6462         (LINE_PARSER): Use it for entdata decl.
6463         (parse_list): Find the space for LIST from DATA->linebuffer instead of
6464         from the input LINE, which might not be writable buffer space.
6465         (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
6466         [ENTDATA] (parser_stclass): #define to `static inline'.
6467         [!ENDATA] (parser_stclass): #define to empty.
6468         [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
6469         function is exported to -lnss_files users.
6471         * string/strndup.c: Add missing arg.
6473         * string/string.h (strndupa): Likewise.
6474         * string/strndup.c (strndup): Always terminate the string.
6476 Thu Jun 27 14:22:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6478         * stdio/Makefile (routines): Add vscanf.
6479         * stdio-common/Makefile (routines): Remove vscanf.
6480         * stdio-common/vscanf.c: Move to ...
6481         * stdio/vscanf.c: here.
6483         * rpm/Makefile (headers, install-lib, install-lib.so,
6484         versioned, install-bin, install-sbin, install-data,
6485         install-others): Add $(-VARIABLE).
6487 Fri Jun 28 02:41:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6489         * nss/Makefile (databases): New variable.
6490         (routines, libnss_files-routines): Use it.
6491         (subdir-dirs): Compute from $(services).
6493         * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
6494         init_module, klogctl): Use EXTRA in the "caller" column so these get
6495         added to unix-extra-syscalls and thus compiled in misc.
6497         * string/Makefile (routines): Add strndup.
6498         * string/strndup.c: New file.
6499         * string/string.h: Declare strndup.
6500         (strndupa): New macro.
6502         * string/string.h: Declare __strdup.
6503         * string/strdup.c: Deansideclized.  Define __ name and weak alias.
6505         * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
6507 Thu Jun 27 02:49:28 1996  Ulrich Drepper  <drepper@cygnus.com>
6509         * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
6511         * grp/initgroups.c (initgroups): De-ansi-fy.
6512         Move declaration of NGROUPS and GROUPS outside #if so that
6513         the code compiles for NGROUPS_MAX != 0.
6515         * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
6516         (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
6517         ether_ntoa, ether_ntoa_r, and ether_ntoh.
6518         * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
6519         inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
6520         inet/ether_ntoh.c: New files.  Implementation of functions to
6521         handle Ethernet address to host mapping.
6522         * inet/netinet/ether.h: New file.  Declare ether_* functions.
6523         * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
6524         compilation.
6525         * nss/ethers-lookup.c: New file.  Lookup function for ethers database.
6526         * nss/Makefile (routines): Add ethers-lookup.
6527         (libnss_files-routines): Add files-ethers.
6529         * nss/getXXent_r.c: Don't define set*ent and end*ent function
6530         with _r suffix.
6532         * nss/nss_files/files-XXX.c (internal_endent): Don't reset
6533         KEEP_STREAM every time called.
6534         (_nss_files_end): Reset KEEP_STREAM here instead.
6535         (internal_getent): If STREAM == NULL try to open instead of
6536         signalling error.
6537         Use cast to prevent warning.
6538         Terminate read line in case the buffer is too small.
6540         * nss/nss_files/files-ethers.c: New file.  Implementation of
6541         Ethernet adress<->hostname lookup through files interface.
6543         * stdlib/mbstowcs.c: Define based on mbsrtowcs().
6544         * stdlib/mbtowc.c: Define based on mbrtowc().
6545         * stdlib/wcstombs.c: Define based on wcsrtombs().
6546         * stdlib/wctomb.c: Define based on wcrtomb().
6548         * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
6549         unexpected_sizes_in_xdr_u_int.
6551         * sysdeps/generic/netinet/if_ether.h: New file.  Generic declaration
6552         of `struct ether_addr'.
6553         * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file.  Linux specific
6554         declaration of `struct ether_addr'.
6556         * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
6557         * wcsmbs/mbsrtowcs.c: Ditto.
6558         * wcsmbs/wcrtomb.c: Ditto.
6559         * wcsmbs/wcsrtombs.c: Ditto.
6561         * wcsmbs/mbsinit.c: Prepare for PS being NULL.
6563 Wed Jun 26 13:19:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6565         * hurd/get-host.c <fcntl.h>: New include.
6566         * hurd/set-host.c <fcntl.h>: New include.
6567         (_hurd_set_host_config): Include NEW in args to dir_link.
6568         Return NWROTE, not NREAD.
6570         * sysdeps/mach/hurd/getcwd.c
6571         (_hurd_canonicalize_directory_name_internal): Don't deallocate
6572         DOTID & DOTDEVID until we're finished with them (we need to keep
6573         them at least until we've fetched the next level of id ports, so
6574         that mach will be able to use the same name if they're the same).
6575         Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
6576         jumps to errlose, for those places where such cleanup is needed.
6578 Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6580         * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
6582         Move DB code into separate -ldb library.
6583         * db/Makefile (extra-libs): New variable, list libdb.
6584         (routines): Renamed to libdb-routines.
6585         * shlib-versions: Add libdb=2.
6587         * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
6588         * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
6590         * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
6591         of strncasecmp.  Extend syntax to grok [!foo=bar].
6593         * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
6594         weak alias.
6595         * string/string.h: Declare __strncasecmp.
6597         * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
6598         (service_alias): Variable removed.
6599         (nss_parse_service_list): New function, broken out of nss_getline.
6600         Remove alias conversion; we will just use symlinks.
6601         (__nss_database_lookup): Take new string arg DEFCONFIG.
6602         If no entry exists, make one with service list parsed from that.
6603         * nss/nsswitch.h: Update protocol for __nss_database_lookup.
6604         * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
6605         (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
6607         * grp/initgroups.c: Rewritten using getgrent.  Handle unlimited group
6608         list size.
6610         * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
6612 Wed Jun 26 01:56:50 1996  Ulrich Drepper  <drepper@cygnus.com>
6614         * locale/programs/locale.c (long_options): Short form of
6615         --version option is `-V'.
6616         (main): Recognize `-V' as option, not `-v'.
6617         Call `usage' instead of printing error message for illegal
6618         option.
6619         (usage): Document `-V'.
6621 Tue Jun 25 17:22:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6623         * sysdeps/mach/hurd/getcwd.c
6624         (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
6625         THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
6627 Tue Jun 25 10:58:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6629         * inet/getrpcent.c: Fix macros.
6630         * inet/getrpcent_r.c: Fix macros.
6632         * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
6634         * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
6636 Tue Jun 25 09:55:47 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
6638         * catgets/gencat.c (write_out): Use %Zu to print variables of type
6639         size_t.
6640         * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
6641         cast it to (unsigned long) to make it work both on 32 and 64
6642         bit architectures.
6644 Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6646         * locale/Makefile (distribute): Add `programs/' prefix to all
6647         files in that directory.
6649         * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
6650         subdir' works.
6652         * MakeTAGS (sources, headers): Make them simply expanded variables
6653         so that all-dist is expanded before it is changed.
6655 Tue Jun 25 02:59:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6657         * Make-dist (dist): Don't depend on crypt tar file.  Remove that rule.
6658         * Makefile (subdirs): Remove crypt.
6659         * crypt: Directory removed.  It will be made an independent library
6660         distribution.
6662         * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
6664         * inet/getrpcent_r.c (DATABASE_NAME): New macro.
6666         * inet/getrpcbynumber.c (BUFLEN): New macro.
6668         * configure.in (--no-whole-archive check): Remove backslashes in cmd.
6670         * Makefile (headers): Add libc-lock.h.
6671         * sysdeps/stub/libc-lock.h: New file.
6673         * inet/getrpcbynumber.c: Remove _r typo.
6675         * elf/dl-load.c (_dl_map_object): Fix typo in last change.
6677         * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
6678         after the first!
6680         * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
6681         or doesn't mention DATABASE, use an internal default equivalent to
6682         "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
6683         (nss_lookup_function): Call nss_new_service as needed.
6684         (nss_parse_file): Don't bother calling nss_new_service here.
6686         * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
6687         * pwd/fgetpwent.c: Likewise.
6689         * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
6690         * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
6691         * malloc/malloc-size.c: New file.
6692         * malloc/malloc-walk.c: New file.
6694         * malloc/malloc-find.c (malloc_find_object_address): Return null if
6695         PTR is outside the heap.
6697         * elf/dl-load.c (_dl_map_object): If the requested name matches the
6698         soname of a loaded object, use that object.
6700 Mon Jun 24 19:57:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6702         * Makefile (subdirs): Add nss.
6704         * inet/Makefile (routines): Add getrpcent, getrpcbyname,
6705         getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
6706         * inet/getrpcbynumber_r.c: New file.
6707         * inet/getrpcbynumber.c: New file.
6708         * inet/getrpcbyname.c: New file.
6709         * inet/getrpcbyname_r.c: New file.
6710         * inet/getrpcent_r.c: New file.
6711         * inet/getrpcent.c: New file.
6712         * nss/rpc-lookup.c: New file.
6713         * nss/nss_files/files-rpc.c: New file.
6714         * nss/Makefile (routines): Add rpc-lookup.
6715         (libnss_files-routines): Add files-rpc.
6716         * sunrpc/Makefile (routines): Remove getrpcent.
6717         * sunrpc/getrpcent.c: File removed.
6719         * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
6720         non-null on entry.
6722         * Makeconfig (rpath-link): Add $(nssobjdir).
6723         (nssobjdir): New variable.
6725         * Makerules: Move shared library building before objects rules, so
6726         versions are known before extra-lib.mk gets included.
6727         * extra-lib.mk (lib-noranlib): Depend on the shared object too.
6729         * pwd/getpwuid.c: Rewritten using nss.
6730         * pwd/getpwnam.c: Likewise.
6731         * pwd/getpwent.c: Likewise.
6732         * grp/getgrnam.c: Likewise.
6733         * grp/getgrgid.c: Likewise.
6734         * grp/getgrent.c: Likewise.
6735         * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
6736         * pwd/getpwent_r.c: New file.
6737         * pwd/getpwnam_r.c: New file.
6738         * pwd/getpwuid_r.c: New file.
6739         * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
6740         * grp/getgrnam_r.c: New file.
6741         * grp/getgrgid_r.c: New file.
6742         * grp/getgrent_r.c: New file.
6743         * grp/Makefile (routines): Remove grpopen, grpread.
6744         * pwd/Makefile (routines): Remove pwdopen, pwdread.
6745         * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
6747         * pwd/fgetpwent.c: Rewritten using files-parse.c.
6748         * grp/fgetgrent.c: Likewise.
6750         * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
6751         * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
6752         * nss/nss_files/files-grp.c: New file.
6753         * nss/nss_files/files-pwd.c: New file.
6755         * nss/Makefile (subdir-dirs): New variable; use it in vpath.
6757         * nss/nss_files/files-parse.c: New file.
6758         * nss/nss_files/files-XXX.c: New file.
6759         * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
6760         nss/nss_files/files-service.c, nss/nss_files/files-network.c:
6761         Rewritten using them.
6763         * nss/Makefile (libnss_files-routines): Remove files-host.
6764         Add files-hosts, files-grp, files-pwd.
6766         * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
6768 Mon Jun 24 22:39:12 1996  Richard Henderson  <rth@tamu.edu>
6770         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
6771         A .plt entry now loads the .rela.plt offset directly rather
6772         than making us calculate it.
6774 Sun Jun 23 15:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6776         * time/Makefile ($(installed-localtime-file) rule): Do
6777         $(make-target-directory) first.
6779         * resolv.h: Fix wrapper for resolv/resolv.h.
6781         * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
6782         Compile dummy file and pass -nostdlib -nostartfiles so as not to
6783         require installed libraries.
6785         * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
6786         libnss_dns=1.
6788 Sun Jun 23 19:42:05 1996  Ulrich Drepper  <drepper@cygnus.com>
6790         * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
6791         and mapv4v6hostent.h.
6792         (routines): Move res* and gethnamaddr into libresolv-routines.
6793         (libresolv-routines): New variable, put them there.
6794         (extra-libs): New variable, list libresolv.
6795         (CPPFLAGS): Add -D for get*by* to res_get*by*.
6797         * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
6799         * inet/herrno.c: New file.
6801         * resolv/res_init.c: Remove res_hconf calls.
6803         * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
6804         nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
6805         nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
6806         nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
6807         nss/service-lookup.c: New files.  Implementation of name
6808         service switch, following the approach in Solaris.
6809         Interface specification and general structure inspired by Peter
6810         Eriksson <pen@lysator.liu.se>.
6811         * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
6812         nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
6813         Implementation of libnss_files.so module for file based databases
6814         in NSS service.
6815         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
6816         if libnss_dns.so module for DNS name lookup in NSS service.
6818         * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
6819         inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
6820         Changed to serve as interface to NSS.
6821         * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
6822         inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
6823         inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
6824         inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
6825         inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
6826         inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
6827         inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files.  Implement
6828         interfaces to NSS, including reentrant functions.
6830         * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
6831         resolv/sethostent.c: Removed:  Obsoleted by NSS.
6833         * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
6834         gethnamaddr.c.  These private functions are now used in more
6835         than one file.
6837         * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
6839 Sat Jun 22 16:49:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6841         * rpm/Makefile ($(config)): Make sure the word list in the for
6842         loop is syntactically non-empty.
6844 Sat Jun 22 21:29:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6846         * Version 1.92 test release.
6848 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
6850         * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
6851         to klogctl to match prototype in sys/klog.h.
6853         * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
6854         * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
6856         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
6857         Remove.  Code is now part of __getcwd again.  The old function
6858         never really worked for anything but THISDIR==".".
6860         * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
6861         only when building ELF version of library.
6863         * libio/libioP.h (_IO_vscanf): Add prototype.
6865         * posix/unistd.h (syscall): Change sysno arg and return value
6866         to int long.
6868 Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6870         * version.h (VERSION): Updated to 1.92.
6872         * misc/Makefile (headers): Add ar.h.
6873         * misc/ar.h: New file.
6875         * config.make.in (BUILD_CC): New variable.
6876         * configure.in: Check for BUILD_CC if $host != $build.
6878         * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
6880         * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
6881         (stamp$o files): New targets, create them empty, no deps.
6883         * rpm/template (Source): New field.
6884         (%prep, %build, %install): New sections.
6885         (%files): Add %doc FAQ NEWS NOTES README.
6886         * rpm/rpmrc (builddir): Removed.
6888 Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6890         * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
6891         guessing to not assume p_vaddr of first load cmd is zero.
6893         * sysdeps/sparc/elf/start.S: New file.
6894         * sysdeps/sparc/dl-machine.h: New file.
6896         * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
6897         only for ?s, not for *s.  Fix from Chet Ramey.
6899         Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
6900         * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
6901         Use __{BEGIN,END}_DECLS.
6902         (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
6903         * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
6904         New macros, moved here from sysdeps/gnu/utmpbits.h.
6905         * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
6906         * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
6907         * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
6908         Use sizeof instead of UT_*SIZE.
6909         * login/logwtmp.c: Likewise.
6911         * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
6913         * version.c (banner): Add trailing newline.
6915         * login/utmp.h: Declare login_tty.
6917 Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>
6919         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
6920         Changed to a 12-byte PLT entry to remove dependency on $gp.
6921         Take a new got_addr parameter.
6922         (elf_machine_rela): Pass the new parameter.
6923         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
6924         (RTLD_START): Do normal linkage with program entry.
6926 Thu Jun 20 12:18:21 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6928         * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
6930         * hurd/getuids.c (getuids): New weak link to __getuids.
6932 Wed Jun 19 10:21:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>
6934         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
6935         __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
6936         argument.
6937         Rename nested function lookup to lookup_op.
6938         (__file_name_lookup, __file_name_lookup_under):
6939         Pass 0 for lookup arg to __hurd_file_name_lookup.
6940         (__file_name_split): Likewise for __hurd_file_name_split.
6941         * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
6942         Rename nested function lookup to scan_lookup.
6943         (file_name_path_lookup): Pass 0 for lookup arg to
6944         hurd_file_name_path_lookup.
6945         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
6946         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
6947         __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
6948         Add LOOKUP argument.
6949         * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
6950         __hurd_file_name_lookup.
6952 Mon Jun 17 19:09:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6954         * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
6955         up a huge list just to discard most of it.
6957         * configure.in (sysnames): Avoid fgrep by using the case shell
6958         builtin.
6960         * Makeconfig (config.status): Fix dependency on Implies files.
6962 Wed Jun 19 01:27:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6964         * math/Makefile (distribute): Add ieee-math.c.
6966 Wed Jun 19 03:24:58 1996  Ulrich Drepper  <drepper@cygnus.com>
6968         * locale/codeset_name.c: New file.  Provide function for information
6969         about currently used character set.
6970         * locale/Makefile (routines): Add codeset_name.
6971         * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
6972         * locale/localeinfo.h: Change magic number because of incompatible
6973         change.
6974         * locale/C-ctype.c: Add initializer for new field `codeset_name'.
6975         * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
6977         * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
6978         name `MAX_IOVEC'.  Instead use standard name `UIO_MAXIOV'.
6980         * locale/setlocale.c (setlocale): Initialize local variables to
6981         prevent warnings.
6983 Thu Jun 13 17:25:11 1996  David Mosberger-Tang  <davidm@azstarnet.com>
6985         * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
6987         * locale/programs/locale.c: Include string.h.
6989         * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
6990         (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
6991         appropriate sign-extension is performed on machines with
6992         sizeof(long) > 4.
6994         * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
6995         sizeof(int)<sizeof(long), we need to go through a temporary
6996         variable.
6998         * locale/programs/ld-numeric.c: Include <alloca.h>
7000         * libio/stdio.h (__libc_fatal): Add prototype.
7002         * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
7003         in efect.
7005         * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
7006         volatile to avoid "might get clobbered by longjmp" warning.
7008         * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
7009         unless _LOOSE_KERNEL_NAMES is in effect (which, with high
7010         probability is a sure loser).
7011         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
7013         * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
7014         * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
7016         * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
7017         to be Linux FSSTND compliant.
7019 Mon Jun 10 17:50:31 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7021         * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
7023         * sysdeps/unix/sysv/linux/alpha/sysdep.S,
7024         sysdeps/unix/sysv/linux/alpha/brk.S,
7025         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
7026         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
7027         sysdeps/unix/sysv/linux/alpha/llseek.S,
7028         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
7029         sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
7030         __syscall_error to avoid intruding application name space.
7032         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
7033         to SYS_get?id so that syscall stubs in sysdeps/unix define
7034         these syscalls in terms of getxpid/getxuid/getxgid.
7036         * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
7037         sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
7038         sysdeps/unix/execve.S, sysdeps/unix/fork.S,
7039         sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
7041         * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
7042         (PSEUDO_END): Rename END() to PSEUDO_END().
7044         * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
7045         to PSEUDO_END to improve branch-prediction.  Include .frame
7046         directive to make syscalls debugabble.
7047         (PSEUDO_END): New macro.
7049         * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
7050         sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
7051         latter is illegal under DEC Unix.
7053         * sysdeps/unix/alpha/sysdep.S: Renamed from
7054         sysdeps/unix/sysv/linux/alpha/sysdep.S.  This file works for OSF/1
7055         as well.
7056         * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
7057         EWOULDBLOCK -> EAGAIN mapping was unnecessary since
7058         EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
7060         * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
7061         address register in the .frame directive.
7063         * sysdeps/alpha/copysign.c: Remove.
7065         * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
7066         avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
7068         * errno.h: Move __END_DECLS to correct place to make file
7069         compilable under c++.
7071         * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro.  Define
7072         d_ino only if <direntry.h> hasn't defined d_fileno.
7074         * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
7075         arguments to weakext to make .weakext detection work on ECOFF systems.
7077         * FAQ: Add Linux/Alpha to list of supported platforms.  Mention
7078         that _validuser() has been replaced by __ivaliduser().
7080 Thu Jun  6 21:39:38 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7082         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
7083         as unsigned long, not as int (to avoid incorrect int->long
7084         promotion).
7088 See ChangeLog.5 for earlier changes.