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