update from main archive 961009
[glibc.git] / ChangeLog
blobfdd2883c3800525a454f1fdd8e362b7b557976f6
1 Wed Oct  9 00:24:52 1996  Jim Meyering  <meyering@asic.sc.ti.com>
3         * time/strftime.c: Allow old K&R compilers compile this file.
5 Wed Oct  9 12:03:56 1996  Ulrich Drepper  <drepper@cygnus.com>
7         * posix/execlp.c: Add first argument parameter to be compliant
8         with POSIX.  Rearrange body to start vararg counter after
9         this new argument.
11 Wed Oct  9 04:34:50 1996  Ulrich Drepper  <drepper@cygnus.com>
13         * sysdeps/unix/sysv/linux/sys/procfs.h: Rewrite.  We cannot use
14         simply a wrapper around the <linux.elfcore.h> file since the
15         kernel header is not clean enough.  We provide the definitions
16         in this file instead.
18 Wed Oct  9 01:43:18 1996  Ulrich Drepper  <drepper@cygnus.com>
20         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Avoid
21         get?id calls by using __libc_enable_secure.
23 Wed Oct  9 00:30:33 1996  Ulrich Drepper  <drepper@cygnus.com>
25         * inet/getnetgrent_r.c: Correct netgroup implementation.  A
26         specification of a netgroup can also name another netgroup.
27         * nss/nss_files/files-netgrp.c: Likewise.
28         * inet/netgroup.h: Add fields to hold additional information.
30 Tue Oct  8 21:51:14 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
32         * posix/getopt.c: Implement POSIX -W option handling.  When the
33         option string contains "W;" -W foo is handled like --foo.
35 Tue Oct  8 12:27:26 1996  Ulrich Drepper  <drepper@cygnus.com>
37         * sysdeps/unix/sysv/linux/i386/clone.S: Define _ERRNO_H before
38         inclusing <errnos.h> so we really get error symbols defined.
39         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
40         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
42         * sunrpc/auth_unix.c (authunix_create_default): Don't use fixed
43         size array for getgroups call.  Instead get maximal number via
44         sysconf.  But discard list to NGRPS elements before calling XDR
45         function since Sun's code cannot handle longer lists.
46         Based on a patch by Thorsten Kukuk <kukuk@weber.uni-paderborn.de>.
48         * sysdeps/stub/e_j0l.c: Define y0l as well.
49         * sysdeps/stub/e_j1l.c: Define y1l as well.
50         * sysdeps/stub/e_jnl.c: Define ynl as well.
52         * posix/unistd.h: Correct prototype for execlp.
54         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_NO_TRUNC.
56 Mon Oct  7 22:18:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
58         * Makeconfig (sysdep-library-path): New variable.
59         (built-program-cmd): Use it here to properly build a colon
60         separated library path.
62 Mon Oct  7 22:11:55 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
64         * crypt/md5-crypt.c (md5_crypt_r): Add missing parens around &
65         within comparison.  Fix comments.
66         (md5_crypt): Fix comment.
68 Tue Oct  8 05:10:49 1996  Ulrich Drepper  <drepper@cygnus.com>
70         * sysdeps/unix/sysv/linux/errnos.h: Only include <linux/errnos.h>
71         when _ERRNO_H is defined.
72         [!_ERRNO_H && __need_Emath]: Define value for EDOM and ERANGE.
73         Should there ever be a Linux port where the numeric values are
74         not 33 and 34 this file must change.
76 Mon Oct  7 13:54:04 1996  Ulrich Drepper  <drepper@cygnus.com>
78         * libio/iofgets.c (_IO_fgets): Use _IO_flockfile instead of
79         __flockfile.
81 Mon Oct  7 11:01:45 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
83         * string/tst-strlen.c (main): Provide prototype.
84         * malloc/mallocbug.c: Likewise.
85         * io/test-utime.c: Likewise.
87         * sysdeps/generic/crypt-entry.c: Correct typo.
89 Mon Oct  7 13:42:20 1996  Ulrich Drepper  <drepper@cygnus.com>
91         * elf/dl-open.c (_dl_open): Check against _dl_sysdep_start to
92         test for libc.a.  Checking _DYNAMIC is of no worth here.
93         Suggested by Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
95         * nss/nss_files/files-parse.c: Define LOOKUP_NAME even if
96         EXTERN_PARSER is defined.
98 Sat Oct  5 17:05:36 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
100         * Rules (dep-dummy-lib): Correct prototype for __dummy__.
102         * crypt/md5-crypt.c: Fix typos in comments.
104         * gmon/gmon.c: Provide prototypes.
105         * db/makedb.c: Likewise.
106         * locale/programs/xmalloc.c: Likewise.
107         * stdio-common/bug11.c (main): Likewise.
108         * stdio-common/bug7.c (main): Likewise.
109         * stdio-common/bug8.c (main): Likewise.
110         * stdio-common/bug9.c (main): Likewise.
111         * stdio-common/scanf1.c (main): Likewise.
112         * stdio-common/scanf2.c (main): Likewise.
113         * stdio-common/scanf5.c (main): Likewise.
114         * stdio-common/scanf6.c (main): Likewise.
115         * stdio-common/scanf7.c (main): Likewise.
116         * stdio-common/scanf8.c (main): Likewise.
117         * stdio-common/temptest.c (main): Likewise.
118         * stdio-common/test-fwrite.c (main): Likewise.
119         * stdio-common/tst-printf.c: Likewise.
120         * stdio-common/tstdiomisc.c: Likewise.
121         * stdio-common/tstgetln.c (main): Likewise.
122         * stdlib/testmb.c (main): Likewise.
124         * stdio-common/scanf4.c (main): Correct prototype, remove unused
125         variable n.
127         * stdio-common/scanf3.c (main): Correct prototype, change
128         declaration of s to reduce warnings.
129         * stdio-common/bug10.c (main): Likewise.
131         * stdio-common/tfformat.c: Provide prototype, remove unused
132         reference to dump_stats, add braces in sprint_doubles.
133         * stdio-common/tiformat.c: Likewise.
135         * stdio-common/test_rdwr.c (main): Parameter `where' is long in
136         printf call.
138 Mon Oct  7 14:04:26 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
140         * sysdeps/unix/sysv/linux/sys/soundcard.h: Fix typo.
142         * shadow/putspent.c: Don't write colon after flag field.
144         * sysdeps/unix/sysv/linux/net/if_ppp.h: New file.  Wrapper around
145         kernel header.
146         * sysdeps/unix/sysv/linux/net/ppp-comp.h: Likewise.
147         * sysdeps/unix/sysv/linux/net/ppp_defs.h: Likewise.
148         * sysdeps/unix/sysv/linux/Dist: Mention new files.
150 Mon Oct  7 00:58:19 1996  Ulrich Drepper  <drepper@cygnus.com>
152         * sysdeps/i386/i586/strchr.S: Correct handling of first bytes to
153         get pointer aligned.  Reported by Matthias Urlichs <smurf@noris.de>.
155         * sysdeps/posix/euidaccess.c [_LIBC]: Avoid calling get?id functions
156         by using __libc_enable_secure variable.
158 Tue Oct  8 13:58:31 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
160         * hurd/ports-get.c (_hurd_ports_get): If the requested port is
161         null, don't attempt mach_port_mod_refs.
163 Mon Oct  7 14:51:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
165         * sysdeps/mach/hurd/pipestream.c: New file to avoid use of
166         sysdeps/unix/pipestream.c. 
168         * sysdeps/mach/hurd/readdir_r.c: New file, guts copied entirely
169         from sysdeps/mach/hurd/readdir.c.
171         * stdio/freopen.c: Complete de-ansideclification.
172         * stdio/fgets.c (fgets): Likewise.
173         * stdio/getdelim.c (__getdelim): Likewise.
174         * sysdeps/posix/pipestream.c (readdecl, writedecl, seekdecl,
175         popen):
176         Likewise. 
177         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
178         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
180         * sysdeps/mach/hurd/wait4.c (__wait4): Allow a null value for
181         STAT_LOC without error.
183 Sun Oct  6 02:05:52 1996  Ulrich Drepper  <drepper@cygnus.com>
185         * posix/getopt.c: Add casts to prevent warnings.
186         * posix/regex.c: Likewise.
188         * math/Makefile (long-m-routines, long-m-yes): Define to correct
189         values to make `long double' functions available.
190         (distribute): Add $(long-m-yes:=.c).
192         * sysdeps/libm-i387/s_copysignl.S: Correct loading of return value.
193         Use long double instruction.
195         * sysdeps/libm-ieee754/e_atanhl.c (huge): Correct constant.
196         * sysdeps/libm-ieee754/e_asinhl.c: Likewise.
197         * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
199         * sysdeps/libm-ieee754/e_coshl.c: New file.
201         * sysdeps/libm-ieee754/s_asinh.c [!NO_LONG_DOUBLE]: Define names
202         for `long double' version as alias.
203         * sysdeps/libm-ieee754/s_atan.c: Likewise.
204         * sysdeps/libm-ieee754/s_cbrt.c: Likewise.
205         * sysdeps/libm-ieee754/s_ceil.c: Likewise.
206         * sysdeps/libm-ieee754/s_copysign.c: Likewise.
207         * sysdeps/libm-ieee754/s_cos.c: Likewise.
208         * sysdeps/libm-ieee754/s_erf.c: Likewise.
209         * sysdeps/libm-ieee754/s_expm1.c: Likewise.
210         * sysdeps/libm-ieee754/s_fabs.c: Likewise.
211         * sysdeps/libm-ieee754/s_finite.c: Likewise.
212         * sysdeps/libm-ieee754/s_floor.c: Likewise.
213         * sysdeps/libm-ieee754/s_frexp.c: Likewise.
214         * sysdeps/libm-ieee754/s_ilogb.c: Likewise.
215         * sysdeps/libm-ieee754/s_ldexp.c: Likewise.
216         * sysdeps/libm-ieee754/s_log1p.c: Likewise.
217         * sysdeps/libm-ieee754/s_logb.c: Likewise.
218         * sysdeps/libm-ieee754/s_modf.c: Likewise.
219         * sysdeps/libm-ieee754/s_nextafter.c: Likewise.
220         * sysdeps/libm-ieee754/s_rint.c: Likewise.
221         * sysdeps/libm-ieee754/s_scalbn.c: Likewise.
222         * sysdeps/libm-ieee754/s_significand.c: Likewise.
223         * sysdeps/libm-ieee754/s_sin.c: Likewise.
224         * sysdeps/libm-ieee754/s_tan.c: Likewise.
225         * sysdeps/libm-ieee754/s_tanh.c: Likewise.
226         * sysdeps/libm-ieee754/w_acos.c: Likewise.
227         * sysdeps/libm-ieee754/w_acosh.c: Likewise.
228         * sysdeps/libm-ieee754/w_sin.c: Likewise.
229         * sysdeps/libm-ieee754/w_atan2.c: Likewise.
230         * sysdeps/libm-ieee754/w_atanh.c: Likewise.
231         * sysdeps/libm-ieee754/w_cabs.c: Likewise.
232         * sysdeps/libm-ieee754/w_cosh.c: Likewise.
233         * sysdeps/libm-ieee754/w_drem.c: Likewise.
234         * sysdeps/libm-ieee754/w_exp.c: Likewise.
235         * sysdeps/libm-ieee754/w_fmod.c: Likewise.
236         * sysdeps/libm-ieee754/w_gamma.c: Likewise.
237         * sysdeps/libm-ieee754/w_gamma_r.c: Likewise.
238         * sysdeps/libm-ieee754/w_hypot.c: Likewise.
239         * sysdeps/libm-ieee754/w_j0.c: Likewise.
240         * sysdeps/libm-ieee754/w_j1.c: Likewise.
241         * sysdeps/libm-ieee754/w_jn.c: Likewise.
242         * sysdeps/libm-ieee754/w_lgamma.c: Likewise.
243         * sysdeps/libm-ieee754/w_lgamma_r.c: Likewise.
244         * sysdeps/libm-ieee754/w_log.c: Likewise.
245         * sysdeps/libm-ieee754/w_log10.c: Likewise.
246         * sysdeps/libm-ieee754/w_pow.c: Likewise.
247         * sysdeps/libm-ieee754/w_remainder.c: Likewise.
248         * sysdeps/libm-ieee754/w_scalb.c: Likewise.
249         * sysdeps/libm-ieee754/w_sinh.c: Likewise.
250         * sysdeps/libm-ieee754/w_sqrt.c: Likewise.
252         Stub files for missing long double math functions.
253         * sysdeps/stub/e_acoshl.c: New file.
254         * sysdeps/stub/e_hypotl.c: New file.
255         * sysdeps/stub/e_j0l.c: New file.
256         * sysdeps/stub/e_j1l.c: New file.
257         * sysdeps/stub/e_jnl.c: New file.
258         * sysdeps/stub/e_lgammal_r.c: New file.
259         * sysdeps/stub/e_powl.c: New file.
260         * sysdeps/stub/e_rem_pio2l.c: New file.
261         * sysdeps/stub/e_sinhl.c: New file.
262         * sysdeps/stub/k_cosl.c: New file.
263         * sysdeps/stub/k_rem_pio2l.c: New file.
264         * sysdeps/stub/k_sinl.c: New file.
265         * sysdeps/stub/k_tanl.c: New file.
266         * sysdeps/stub/s_erfl.c: New file.
267         * sysdeps/stub/s_expm1l.c: New file.
269         * sysdeps/i386/__longjmp.S: Use PSEUDO_END macro to provide
270         .size directive.
271         * sysdeps/i386/bsd-_setjmp.S: Likewise.
272         * sysdeps/i386/bsd-setjmp.S: Likewise.
273         * sysdeps/i386/memchr.S: Likewise.
274         * sysdeps/i386/memcmp.S: Likewise.
275         * sysdeps/i386/setjmp.S: Likewise.
276         * sysdeps/i386/stpcpy.S: Likewise.
277         * sysdeps/i386/stpncpy.S: Likewise.
278         * sysdeps/i386/strchr.S: Likewise.
279         * sysdeps/i386/strcspn.S: Likewise.
280         * sysdeps/i386/strpbrk.S: Likewise.
281         * sysdeps/i386/strrchr.S: Likewise.
282         * sysdeps/i386/strspn.S: Likewise.
283         * sysdeps/i386/strtok.S: Likewise.
284         * sysdeps/i386/i486/strcat.S: Likewise.
285         * sysdeps/i386/i486/strlen.S: Likewise.
286         * sysdeps/i386/i586/memset.S: Likewise.
287         * sysdeps/i386/i586/strchr.S: Likewise.
288         * sysdeps/i386/i586/strlen.S: Likewise.
289         * sysdeps/libm-i387/e_acos.S: Likewise.
290         * sysdeps/libm-i387/e_acosl.S: Likewise.
291         * sysdeps/libm-i387/e_asin.S: Likewise.
292         * sysdeps/libm-i387/e_asinl.S: Likewise.
293         * sysdeps/libm-i387/e_atan2.S: Likewise.
294         * sysdeps/libm-i387/e_atan2l.S: Likewise.
295         * sysdeps/libm-i387/e_exp.S: Likewise.
296         * sysdeps/libm-i387/e_expl.S: Likewise.
297         * sysdeps/libm-i387/e_fmod.S: Likewise.
298         * sysdeps/libm-i387/e_fmodl.S: Likewise.
299         * sysdeps/libm-i387/e_log.S: Likewise.
300         * sysdeps/libm-i387/e_log10.S: Likewise.
301         * sysdeps/libm-i387/e_log10l.S: Likewise.
302         * sysdeps/libm-i387/e_logl.S: Likewise.
303         * sysdeps/libm-i387/e_remainder.S: Likewise.
304         * sysdeps/libm-i387/e_remainderf.S: Likewise.
305         * sysdeps/libm-i387/e_remainderl.S: Likewise.
306         * sysdeps/libm-i387/e_scalb.S: Likewise.
307         * sysdeps/libm-i387/e_scalbl.S: Likewise.
308         * sysdeps/libm-i387/e_sqrt.S: Likewise.
309         * sysdeps/libm-i387/e_sqrtf.S: Likewise.
310         * sysdeps/libm-i387/e_sqrtl.S: Likewise.
311         * sysdeps/libm-i387/s_atan.S: Likewise.
312         * sysdeps/libm-i387/s_atanf.S: Likewise.
313         * sysdeps/libm-i387/s_atanl.S: Likewise.
314         * sysdeps/libm-i387/s_ceil.S: Likewise.
315         * sysdeps/libm-i387/s_ceilf.S: Likewise.
316         * sysdeps/libm-i387/s_ceill.S: Likewise.
317         * sysdeps/libm-i387/s_copysign.S: Likewise.
318         * sysdeps/libm-i387/s_copysignf.S: Likewise.
319         * sysdeps/libm-i387/s_copysignl.S: Likewise.
320         * sysdeps/libm-i387/s_cos.S: Likewise.
321         * sysdeps/libm-i387/s_cosf.S: Likewise.
322         * sysdeps/libm-i387/s_cosl.S: Likewise.
323         * sysdeps/libm-i387/s_finite.S: Likewise.
324         * sysdeps/libm-i387/s_finitef.S: Likewise.
325         * sysdeps/libm-i387/s_finitel.S: Likewise.
326         * sysdeps/libm-i387/s_floor.S: Likewise.
327         * sysdeps/libm-i387/s_floorf.S: Likewise.
328         * sysdeps/libm-i387/s_floorl.S: Likewise.
329         * sysdeps/libm-i387/s_ilogb.S: Likewise.
330         * sysdeps/libm-i387/s_ilogbf.S: Likewise.
331         * sysdeps/libm-i387/s_ilogbl.S: Likewise.
332         * sysdeps/libm-i387/s_log1p.S: Likewise.
333         * sysdeps/libm-i387/s_log1pf.S: Likewise.
334         * sysdeps/libm-i387/s_log1pl.S: Likewise.
335         * sysdeps/libm-i387/s_logb.S: Likewise.
336         * sysdeps/libm-i387/s_logbf.S: Likewise.
337         * sysdeps/libm-i387/s_logbl.S: Likewise.
338         * sysdeps/libm-i387/s_rint.S: Likewise.
339         * sysdeps/libm-i387/s_rintf.S: Likewise.
340         * sysdeps/libm-i387/s_rintl.S: Likewise.
341         * sysdeps/libm-i387/s_scalbn.S: Likewise.
342         * sysdeps/libm-i387/s_scalbnf.S: Likewise.
343         * sysdeps/libm-i387/s_scalbnl.S: Likewise.
344         * sysdeps/libm-i387/s_significand.S: Likewise.
345         * sysdeps/libm-i387/s_significandf.S: Likewise.
346         * sysdeps/libm-i387/s_significandl.S: Likewise.
347         * sysdeps/libm-i387/s_sin.S: Likewise.
348         * sysdeps/libm-i387/s_sinf.S: Likewise.
349         * sysdeps/libm-i387/s_sinl.S: Likewise.
350         * sysdeps/libm-i387/s_tan.S: Likewise.
351         * sysdeps/libm-i387/s_tanf.S: Likewise.
352         * sysdeps/libm-i387/s_tanl.S: Likewise.
354         * sysdeps/unix/sysv/linux/i386/clone.S: Add .size directive.
355         * sysdeps/unix/sysv/linux/i386/mmap.S. Likewise.
356         * sysdeps/unix/sysv/linux/i386/socket.S. Likewise.
357         * sysdeps/unix/sysv/linux/i386/sysdep.S. More compact .size line.
359         * sysdeps/i386/sysdep.h (ASM_SIZE_DIRECTIVE): New macro.  Used
360         to provide .size directive on ELF systems.
362         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Include
363         <sigcontext.h> and rename parameter type to sigcontext.
364         * sysdeps/unix/sysv/linux/i386/sigcontext.h New file.
366         * sysdeps/unix/sysv/linux/i386/syscall.S: From Linux 2.1 on
367         negative values might occur as positive results.  Test against
368         -125 to decide for error or not.
369         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise for system calls.
371 Thu Oct  3 21:07:58 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
373         * elf/dl-open.c: Use _DYNAMIC instead of _dl_start to decide
374         whether this is a statically linked program.  The latter is now
375         always defined.
377 Fri Oct  4 17:30:22 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
379         * hurd/hurdsig.c (signal_allowed): Add SIGWINCH to the list that
380         controlling terminals are allowed to send.
382         * hurd/alloc-fd.c (_hurd_alloc_fd): If SIZE is so big that the
383         table is larger than the allowable address size, then return
384         failure. 
386 Fri Oct  4 02:08:10 1996  Bang Jun-Young  <bangjy@nownuri.nowcom.co.kr>
388         * po/ko.po: Update.
390 Fri Oct  4 02:07:46 1996  Michel Robitaille  <robitail@IRO.UMontreal.CA>
392         * po/fr.po: New file.
394 Fri Oct  4 05:04:52 1996  Ulrich Drepper  <drepper@cygnus.com>
396         * sysdeps/unix/sysv/linux/i386/sigcontext.h: New file.
398         Add support for MD5 crypt replacement.
399         * Makefile (subdirs): Add crypt.
400         * shlib-versions: Add entry for libcrypt.
401         * crypt/md5-crypt.c: New file.
402         * crypt/md5.c: New file.
403         * crypt/md5.h: New file.
404         * sysdeps/generic/crypt-entry.c: New file.
405         * sysdeps/generic/crypt.h: New file.
407 Thu Oct  3 20:53:23 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
409         * dirent/tst-seekdir.c: Provide correct prototypes.
410         * io/test-utime.c: Likewise.
411         * malloc/mallocbug.c: Likewise.
412         * posix/testfnm.c: Likewise.
413         * stdio-common/xbug.c: Likewise.
414         * sysdeps/posix/cuserid.c: Likewise.
416 Wed Oct  2 13:33:48 1996  Richard Henderson  <rth@tamu.edu>
418         Provide optimized string functions for Alpha processors.
419         * sysdeps/alpha/bzero.S: New file.
420         * sysdeps/alpha/memset.S: New file.
421         * sysdeps/alpha/stpcpy.S: New file.
422         * sysdeps/alpha/stpncpy.S: New file.
423         * sysdeps/alpha/strcat.S: New file.
424         * sysdeps/alpha/strchr.S: New file.
425         * sysdeps/alpha/strcpy.S: New file.
426         * sysdeps/alpha/strncat.S: New file.
427         * sysdeps/alpha/strncpy.S: New file.
428         * sysdeps/alpha/strrchr.S: New file.
429         * sysdeps/alpha/stxcpy.S: New file.
430         * sysdeps/alpha/stxncpy.S: New file.
432         * sysdeps/alpha/Makefile [$(sudir)==string]: Add stxcpy and
433         stxncpy to sysdep_routines.
434         Minor correction.
436 Thu Oct  3 13:33:31 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
438         * sysdeps/generic/gnu/types.h: Added __loff_t.
439         Don't declare key_t here.
441         * hurd/alloc-fd.c (_hurd_alloc_fd): If realloc fails, bother to
442         set errno (to ENOMEM).
444 Wed Oct  2 13:41:48 1996  Ulrich Drepper  <drepper@cygnus.com>
446         * sysdeps/generic/strtok.c: Don't set stored pointer to NULL when
447         notheing is found.  This guarantees all subsequent calls behave
448         the same.
449         * sysdeps/generic/strtok_r.c: Likewise.
451 Mon Sep 30 22:27:36 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
453         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Don't declare
454         `i' as const.
456 Mon Sep 30 22:38:29 1996  Richard Henderson  <rth@tamu.edu>
458         * sysdeps/generic/strtok.c: When we hit EOS, don't set olds to
459         NULL immediately; we're going to get called one more time.
460         * sysdeps/generic/strtok_r.c: Likewise.
462 Tue Oct  1 09:12:21 1996  Ulrich Drepper  <drepper@cygnus.com>
464         * locale/programs/ld-time.c: Always write some bytes at the end of
465         the file even if no `era's are specified.
467         * stdio-common/tmpname.c (tmpbuf): Don't define as array of
468         pointers.
470 Tue Oct  1 01:43:11 1996  Ulrich Drepper  <drepper@cygnus.com>
472         * libio/iofclose.c: Move unlocking to right position.
474 Mon Sep 30 03:08:34 1996  Richard Henderson  <rth@tamu.edu>
476         * misc/Makefile: Kill force-wrapper.
477         * misc/force-wrapper.c: Delete.
479         * elf/eval.c: Add <string.h>.
481         * gmon/sys/gmon_out.h: Nonsense like `char foo[sizeof(char*)]'
482         followed by `bcopy(&ptr, &foo, sizeof(foo))' helps portability
483         and binary compatibility not at all.  Better to do `char *foo'
484         followed by `foo = ptr' as it is much cleaner.
485         (struct gmon_hdr): Fix version.
486         (struct gmon_hist_hdr): Fix low_pc, high_pc, hist_size, prof_rate.
487         (struct gmon_cg_arc_record): Fix from_pc, self_pc, count.
488         * gmon/gmon.c: De-ansidecl-ify.
489         (write_hist): De-bcopy-fy.
490         (write_call_graph): Likewise.
492         * gmon/mcount.c: Assume _MCOUNT_DECL does the entire declaration.
493         * sysdeps/alpha/machine-gmon.h: Update _MCOUNT_DECL.
494         * sysdeps/generic/machine-gmon.h: Likewise.
496         * resolv/netdb.h: Add __set_h_errno to mimic __set_errno.
497         * nss/getXXent_r.c: Use __set_h_errno to set h_errno in all funcs.
498         * nss/nss_dns/dns-network.c: Likewise.
499         * resolv/getunamaddr.c: Likewise.  Also use __set_errno where needed.
500         * resolv/getnetnamadr.c: Likewise.
501         * resolv/res_debug.c: Likewise.
502         * resolv/res_mkquery.c: Likewise.
503         * resolv/res_query.c: Likewise.
505         * libio/clearerr_u.c: It's not necessary to define __ protected
506         function so don't do it.
507         * libio/feof_u.c, libio/ferror_u.c, libio/fputc_u.c,
508           libio/getc_u.c, libio/getchar_u.c, libio/iofflush_u.c: Likewise.
510         * libio/fgetc.c: Avoid a warning by casting _IO_funlockfile for
511         the cleanup registrar.
512         * libio/fputc.c, libio/freopen.c, libio/fseek.c, libio/getc.c,
513           libio/getchar.c, libio/iofclose.c, libio/iofflush.c,
514           libio/iofgetpos.c, libio/iofgets.c, libio/iofputs.c,
515           libio/iofread.c, libio/iofsetpos.c, libio/ioftell.c,
516           libio/iofwrite.c, libio/iogetdelim.c, libio/iogets.c,
517           libio/ioputs.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
518           libio/ioungetc.c, libio/putc.c, libio/putchar.c, libio/rewind.c:
519         Likewise.
521         * locale/programs/ld-ctype.c: Include <alloca.h>.
523         * login/login_tty.c: Get login_tty prototype from <utmp.h>.
525         * posix/sys/types.h: Change #defines to typedefs.  This is looking
526         forward to more comprehensive namespace cleanups for C++.
527         * posix/unistd.h: Likewise for ssize_t.
529         * pwd/getpw.c: Prototype and rename getpw -> __getpw and add a
530         weak alias.
532         * resolv/base64.c: Don't do `for (NULL; ...)' as it causes
533         `statement with no effect' warnings.
534         * resolv/inet_neta.c: Include <string.h> for strlen.
536         * stdio-common/getline.c: Undef ssize_t before libio redefinition.
537         * stdio-common/tstgetln.c: Same.  De-ansidecl-ify.
538         * stdio-common/vfprintf.c: Same for va_list.
539         * stdio-common/vfscanf.c: Same.
540         * stdio-common/reg-printf.c: Prototype the __ function.
541         * stdio-common/scanf.c [USE_IN_LIBIO]: Include <libioP.h> for
542         _IO_vscanf declaration.
544         * string/tester.c: Tsk, tsk.  Don't cast pointers to int,
545         but to unsigned long for the health of 64-bit systems.
547         * sunrpc/svc_udp.c: Define MAX only if we don't have it yet.
548         Many system's <sys/param.h> pulls this in.
550         * sysdeps/generic/dl-cache.c: Kill the bottom half of the
551         patch doubled file.
553         * sysdeps/generic/pty.c (forkpty): Get login_tty decl from <utmp.h>
554         instead of defining it locally.
556         * sysdeps/posix/sigvec.c: Prototype wrapper_handler and convert_mask.
557         * sysdeps/stub/chflags.c: Prototype chflags.
558         * sysdeps/stub/fchflags.c: Prototype fchflags.
559         * sysdeps/stub/sstk.c: Prototype sstk.
561         * sysdeps/unix/alpha/sysdep.S:  Add strong alias from errno
562         variable to __errno.  Update __syscall_error to store to both
563         the global and per-thread variables.
565         * sysdeps/unix/sysv/linux/init-first.c: Change include of
566         init-first.h from "" to <> as "" does not search the include path.
567         Prototype _dl_start.
569 Sun Sep 29 14:41:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
571         * sysdeps/unix/Makefile ($(common-objpfx)s-proto.d): Make it a
572         pattern rule to get the right stem.
574 Sat Sep 28 01:30:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
576         * Makefile ($(objpfx)version-info.h): Fix typo in previous change.
578 Sat Sep 28 00:44:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
580         * sysdeps/posix/euidaccess.c (__set_errno): Fix typo.
582 Sat Sep 28 00:40:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
584         * malloc/free.c (_free_internal): Don't call free recursively, use
585         the internal functions instead.
587 Sat Sep 28 00:23:20 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
589         * sysdeps/posix/tempname.c (__stdio_gen_tempname) [USE_IN_LIBIO &&
590         _IO_MTSAFE_IO]: Allocate and initialize the file lock.
592 Fri Sep 27 23:58:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
594         * catgets/gencat.c (main): Print version information on stdout,
595         not stderr.
596         * db/makedb.c: Likewise.
597         * locale/programs/locale.c: Likewise.
598         * locale/programs/localedef.c: Likewise.
600 Mon Sep 30 00:14:26 1996  Ulrich Drepper  <drepper@cygnus.com>
602         Add implementation of netgroup.
603         * inet/Makefile (distributes): Add netgroup.h.
604         (routines): Add getnetgrent.c and getnetgrent_r.c.
605         * inet/getnetgrent.c: New file.
606         * inet/getnetgrent_r.c: New file.
607         * inet/netgroup.h: New file.
608         * netgroup.h: New file.
609         * nsswitch.h: New file.
610         * nss/Makefile (databases): Add getgrp.
611         * nss/databases.def: Add netgroup.
612         * nss/db-Makefile: Add rules for netgroup.
613         * nss/netgrp-lookup.c: New file.
614         * nss/nss.h: Add new status value NSS_STATUS_RETURN which will
615         always return without a check of the transition table.
616         * nss/nsswitch.h (struct service_user): Extend actions array to
617         five elements.
618         * nss/nsswitch.c (__nss_next): Allow NSS_STATUS_RETURN as legal
619         status value.
620         (nss_parse_service_list): Initialize action for NSS_STATUS_RETURN
621         to NSS_ACTION_RETURN.
622         * nss/nss_db/db-netgrp.c: New file.
623         * nss/nss_files/files-netgrp.c: New file.
624         * nss/nsswitch.conf: Add entry for netgroup.
625         * resolv/netdb.h: Add prototypes for netgroup functions.
627         * nss/nss_db/db-XXX.c: Use `enum nss_status' type when status
628         value is used.
630 Sun Sep 29 12:55:58 1996  Ulrich Drepper  <drepper@cygnus.com>
632         * sysdeps/unix/sysv/linux/syscalls.list: Change funciton name for
633         _llseek to _llseek (not llseek).
634         Reported by Matthias Urlichs <smurf@smurf.noris.de>.
636 Sun Sep 29 05:34:32 1996  Ulrich Drepper  <drepper@cygnus.com>
638         * inet/rcmd.c: Remove definition of MIN.
640 Sat Sep 28 14:22:51 1996  Ulrich Drepper  <drepper@cygnus.com>
642         * dirent/readdir_r.c: Removed.  We indeed need a real implementation.
643         * sysdeps/unix/readdir_r.c: New file.
644         * sysdeps/unix/readdir.c: Remove check for correct parameter
645         values.  Let them simply die.
646         * manual/filesys.texi: Document readdir_r.
648         * sysdeps/gnu/errlist.awk: Define _sys_errlist as `const char* const'.
649         Proposed by Per Abrahamsen <abraham@dina.kvl.dk>.
651 Sat Sep 28 03:02:49 1996  Ulrich Drepper  <drepper@cygnus.com>
653         * dirent/Makefile (routines): Add readdir_r.
654         * dirent/readdir_r.c: New file.  Wrapper around readdir.c.
655         * dirent/dirent.h: Add prototype for readdir_r.
657         * misc/hsearch_r.c (ENTRY): Make field `used' of type `unsigned int'
658         to prevent warnings.
660         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
661         Initialize `result'.
663 Sat Sep 28 01:16:42 1996  Ulrich Drepper  <drepper@cygnus.com>
665         * sysdeps/generic/strsep.c: Rename to __strsep and make strsep
666         weak alias.
667         * string/string.h: Add prototype for __strsep.
668         * misc/mntent_r.c: Use __strsep instead of strsep to keep
669         namespace clean.
671         * sysdeps/stub/nanosleep.c: Rename to __libc_nanosleep and make
672         __nanosleep and nanosleep weak aliases.
673         * sysdeps/unix/sysv/linux/syscalls.list: Add __nanosleep as weak
674         alias.
675         * sysdeps/unix/sysv/linux/sleep.c: Call __nanosleep instead of
676         nanosleep to keep namespace clean.
678         * sysdeps/posix/ttyname.c (ttyname): Add cast to prevent warning.
679         * sysdeps/posix/ttyname_r.c (ttyname_r): Likewise.
680         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
682         * sysdeps/unix/nlist.c: Use ISO C definition since we don't always
683         have prototype.
685         * login/Makefile (headers): Add pty.h.
686         * login/pty.h: New file.
687         * sysdeps/generic/pty.h: Include <pty.h>.
688         * login/pututline_r.c: Add cast to prevent warning.
690         * gmon/gmon.c: Add prototype for __profile_frequency.
691         (monstartup): Add cast to prevent warning.
692         * sysdeps/generic/prof-freq.c: Change to use ISO C style definition.
694         * locale/programs/ld-time.c (time_output): Write `era' information
695         in correct order.
697 Sat Sep 28 00:11:08 1996  Ulrich Drepper  <drepper@cygnus.com>
699         * sysdeps/unix/sysv/linux/syscalls.list: Add weak alias
700         `adjtimex'.
701         Set caller for mlock, mlockall, mremap, munlock, and munlockall
702         to EXTRA.
703         Reported by Matthias Urlichs <smurf@smurf.noris.de>.
705 1996-09-27  Paul Eggert  <eggert@twinsun.com>
707         * strftime.c (strftime): Output incomplete formats like %E
708         at end of string.
710 1996-09-27  Paul Eggert  <eggert@twinsun.com>
712         * strftime.c (strftime): Add support for %EC and %Ey.
713         Fix support for %EY.  This uses the new _nl_get_era_entry function.
715 Fri Sep 27 14:12:27 1996  Ulrich Drepper  <drepper@cygnus.com>
717         Security related patch by Elliot Lee <sopwith@redhat.com> and
718         David Holland <dholland@eecs.harvard.edu>.
720         * inet/rexec.c (rexec): Increase size of `num' array from 8 to 32.
721         * inet/ruserpass.c (ruserpass): Don't allow $HOME envvar to not exist.
723         * sysdeps/generic/getenv.c (__secure_getenv): New function.  Return
724         NULL when programs runs with SUID or SGID enabled.
725         * sysdeps/stub/getenv.c: Make __secure_getenv an alias of getenv.
726         * stdlib/stdlib.h: Add prototype for __secure_getenv.
728         * locale/setlocale.c: Use __secure_getenv.
729         * resolv/res_init.c: Likewise.
730         * resolv/res_query.c: Likewise.
731         * inet/ruserpass.c: Likewise.
732         * sysdeps/posix/tempname.c: Likewise.
733         * malloc/mtrace.c: Likewise.
734         * catgets/catgets.c: Likewise.
736         Make temporary file handling functions reentrant.
738         * stdio-common/tmpnam.c: Rewrite to have own buffer to write
739         result to.  The called __stdio_gen_tempname function must be
740         thread safe.
741         * stdio-common/tmpnam_r.c: New file.
742         * stdio/stdio.h: Add prototype for `tmpnam_r'.
743         Change prototype for __stdio_gen_tempname.
744         * stdio/libio.h: Likewise.
745         * sysdeps/posix/tempname.c: Add new parameters and use them instead
746         of static buffer.
747         Don't reset `indeces' when PID changed between calls.
748         Don't fail for long running programs when index counter once
749         reached the limit.
750         * sysdeps/stub/tempname.c: Likewise.
751         * stdio-common/tempnam.c: Provide local buffer as extra argument
752         to __stdio_gen_tempname.  This makes this function reentrant.
753         * stdio-common/tmpfile.c: Likewise.
754         * stdio-common/temptest.c: Provide extra argument to
755         __stdio_gen_tempname.
756         * manual/filesys.texi: Describe tmpnam_r and add comments about
757         reentrancy of the functions.
759         * inet/rcmd.c: Fixed address length handling.
761         * sysdeps/posix/mk-stdiolim.c: Count final \0 byte in L_tmpnam value.
763         * time/strftime.c: Remove unused variables alt_digits and
764         end_alt_digits.
766         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Correct prototype names
767         for get_nprocs and get_nprocs_conf.
768         * sysdeps/generic/sys/sysinfo.h: Likewise.
770         * stdlib/test-canon.c: Finally do the right fix.
772         * misc/Makefile: Only compile force-wrapper when compiling
773         reentrant libc.
775 Fri Sep 27 03:49:56 1996  Ulrich Drepper  <drepper@cygnus.com>
777         Add support for cancelable system calls.
779         * csu/initfini.c: Make in crti.o reference to symbol
780         __libc_force_cancel_wrapper when compiling reentrant version.
781         * misc/Makefile (routines): Add force-wrapper.
782         * misc/force-wrapper.c: New file.
784         * posix/system.c: Rename function to __libc_system and make system
785         a weak alias.
786         * sysdeps/stub/system.c: Likewise.
787         * posix/wait.c: Rename function to __libc_wait and make __wait a
788         weak alias.  De-ANSI-fy.
789         * sysdeps/standalone/read.c: Rename function to __libc_read and
790         make __read a weak alias.
791         * sysdeps/stub/read.c: Likewise.
792         * sysdeps/standalone/write.c: Rename function to __libc_write and
793         make __write a weak alias.
794         * sysdeps/stub/write.c: Likewise.
795         * sysdeps/stub/tcdrain.c: Rename function to __libc_tcdrain and
796         make tcdrain a weak alias.
797         * sysdeps/unix/bsd/tcdrain.c: Likewise.
798         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Likewise.
799         * sysdeps/unix/sysv/tcdrain.c: Likewise.
800         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
801         * sysdeps/unix/bsd/bsd4.4/wait.c: Rename function to __libc_wait
802         and make __wait a weak alias.
803         * sysdeps/stub/waitpid.c: Rename function to __libc_waitpid and
804         make __waitpid a weak alias.
805         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
806         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
807         * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
808         * sysdeps/unix/common/pause.c: Rename function to __libc_pause
809         and make pause a weak alias.  De-ANSI-fy.
811         * sysdeps/unix/syscalls.list: Change name for close, fcntl, fsync,
812         lseek, open, read, and write to have __libc_ prefix and make old
813         names a weak alias.
814         * sysdeps/unix/mman/syscalls.list: Likewise for msync.
815         * sysdeps/unix/sysv/linux/syscalls.list: Likewise for nanosleep.
817         * io/creat.c: De-ANSI-fy.
819         * sysdeps/unix/sysv/linux/syscalls.list: Add pause.
821 Thu Sep 26 19:15:55 1996  Ulrich Drepper  <drepper@cygnus.com>
823         * misc/mntent.h: Add MNTTYPE_* and MNTOPT_* macros.
824         Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
826 Thu Sep 26 14:40:10 1996  Ulrich Drepper  <drepper@cygnus.com>
828         * sysdeps/posix/pathconf.c: Pass descriptor for just opened file
829         to fpathconf.
830         Reported by Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>.
832 Thu Sep 26 04:02:43 1996  Ulrich Drepper  <drepper@cygnus.com>
834         * locale/programs/locfile.c (write_locale_data): Allocate room
835         even for file name for LC_MESSAGES locale.
836         (locafile_read): `tok_era' must be handled as a string list.
837         * locale/programs/ld-time.c: Finish correction of handling `era'.
838         * locale/C-time.c (_nl_C_LC_TIME): Add initializer for new fields.
839         * locale/categories.def: Add postload function for LC_TIME.
840         * locale/setlocale.c: Make lock global and rename to
841         __libc_setlocale_lock.
842         * locale/localeinfo.h (struct era_entry): New type.  Used in strftime.
843         Add prototypes for _nl_get_era_entry and _nl_get_alt_digit.
844         * locale/lc-time.c (_nl_postload_time): New function.  Initialize
845         lazy intialization.
846         (_nl_get_era_entry): New function.  Return era entry which corresponds
847         to given year.
848         (_nl_get_alt_digit): New function.  Return string with alternate
849         digit representation for given number.
851         * time/strftime.c (strftime): Use _nl_get_alt_digit to get
852         string representing alternate digit notation.
854 Wed Sep 25 17:31:55 1996  Ulrich Drepper  <drepper@cygnus.com>
856         * sysdeps/generic/waitstatus.h (union wait): Add w_status field.
857         Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
859         * elf/rtld.c (dl_main): Process LD_PRELOAD before loading
860         ld.so.preload.  Suggested by David Engel <david@elo.ods.com>.
862 Wed Sep 25 13:10:57 1996  Ulrich Drepper  <drepper@cygnus.com>
864         * catgets/gencat.c (main): Change --version again because RMS wants
865         the package name in parentheses.
866         * db/makedb.c: Likewise.
867         * locale/programs/locale.c: Likewise.
868         * locale/programs/localedef.c: Likewise.
870 Tue Sep 24 01:28:05 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
872         * Makefile ($(objpfx)sysd-dirs): Depend on Subdirs files, command
873         rewritten.
874         ($(objpfx)version-info.h): Depend on Banner files, command
875         rewritten.
877 Wed Sep 25 02:44:41 1996  Ulrich Drepper  <drepper@cygnus.com>
879         * sysdeps/unix/sysv/linux/sleep.c: New file.  Based on nanosleep.
881 Tue Sep 24 21:46:02 1996  Ulrich Drepper  <drepper@cygnus.com>
883         * shadow/lckpwdf.c (PWD_LOCKFILE): Change to /etc/lock.pwd to be
884         on the same device as the password file.
885         * shadow/shadow.h (struct spwd): Change type of numeric fields
886         to `long int' since there value are days, not seconds.
887         * shadow/putspent.c: Change casts from time_t to `long int'.
888         * shadow/sgetspent_r.c (LINE_READER): Likewise.
890 Mon Sep 23 23:05:24 1996  Ulrich Drepper  <drepper@cygnus.com>
892         * sysdeps/unix/sysv/linux/errnos.h: Define __set_errno to make
893         sure the thread specific variable is set as well as the global
894         variable.
895         * sysdeps/mach/hurd/errnos.awk: Define macro for source code
896         compatibility.
897         * sysdeps/stub/errnos.h: Likewise.
898         * sysdeps/unix/bsd/bsd4.4/errnos.h: Likewise.
900         * shadow/putspent.c: Don't include <errno.h>.
902         * dirent/scandir.c (scandir): Use __set_errno to set errno
903         variable.
904         * elf/dl-load.c (open_path): Likewise.
905         * inet/rcmd.c (rcmd): Likewise.
906         (rresvport): Likewise.
907         * intl/dcgettext.c [!__set_errno]: Define __set_errno.
908         (DCGETTEXT): Use __set_errno to set errno variable.
909         * io/fts.c (fts_open): Likewise.
910         (fts_close): Likewise.
911         (fts_read): Likewise.
912         (fts_set): Likewise.
913         (fts_children): Likewise.
914         (fts_build): Likewise.
915         (fts_stat): Likewise.
916         * io/ftw.c (ftw_dir): Likewise.
917         (ftw): Likewise.
918         * io/getwd.c (getwd): Likewise.
919         * io/lockf.c (lockf): Likewise.
920         * libio/libioP.h [EINVAL]: Use __set_errno to define MAYBE_SET_EINVAL.
921         * libio/iofdopen.c (_IO_fdopen): Use MAYBE_SET_EINVAL to errno.
922         * libio/iogetdelim.c (_IO_getdelim): Likewise.
923         * libio/fileops.c (_IO_file_open): Use __set_errno to set errno
924         variable.
925         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
926         * libio/iofsetpos.c (_IO_fsetpos): Likewise.
927         * libio/ioftell.c (_IO_ftell): Likewise.
928         * locale/loadlocale.c (_nl_load_locale): Likewise.
929         * locale/nl_langinfo.c (nl_langinfo): Likewise.
930         * locale/setlocale.c (ERROR_RETURN): Likewise.
931         * login/getutid_r (__getutid_r): Likewise.
932         * login/getutline_r (__getutline_r): Likewise.
933         * login/login.c (tty_name): Likewise.
934         * login/oututline_r.c (__pututline_r): Likewise.
935         * malloc/malloc.c (morecore): Likewise.
936         * misc/efgcvt_r.c (fcvt_r): Likewise.
937         * misc/hsearch_r.c (hcreate_r): Likewise.
938         (hdestroy_r): Likewise.
939         (hsearch_r): Likewise.
940         * nss/nsswitch.c (__nss_configure_lookup): Likewise.
941         * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Likewise.
942         (_nss_dns_gethostbyaddr_r): Likewise.
943         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
944         * nss/nss_files/files-parse.c (parse_list): Likewise.
945         * posix/confstr.c (confstr): Likewise.  De-ANSI-fy.
946         * posix/execvp.c (execvp): Likewise.
947         * posix/glob.c: Define __set_errno.
948         (glob): Use __set_errno to set errno variable.
949         (glob_in_dir): Likewise.
950         * pwd/getpw.c: Likewise. De-ANSI-fy.
951         * pwd/putpwent.c: Likewise.
952         * resolv/inet_net_ntop.c: Likewise.
953         * resolv/inet_net_pton.c: Likewise.
954         * resolv/inet_neta.c: Likewise.
955         * resolv/inet_ntop.c: Likewise.
956         * resolv/inet_pton.c: Likewise.
957         * resolv/res_query.c (res_search): Likewise.
958         * resolv/res_send.c (Aerror): Likewise.
959         (Perror): Likewise.
960         (res_send): Likewise.
961         * signal/sigaddset.c: Likewise.  De-ANSI-fy.
962         * signal/sigdelset.c: Likewise.
963         * signal/sigempty.c: Likewise.
964         * signal/sigfillset.c: Likewise.
965         * signal/sigismem.c: Likewise.
966         * stdio/fclose.c: Likewise.
967         * stdio/feof.c: Likewise.
968         * stdio/ferror.c: Likewise.
969         * stdio/fflush.c: Likewise.
970         * stdio/fgetc.c: Likewise.
971         * stdio/fgetpos.c: Likewise.
972         * stdio/fgets.c: Likewise.
973         * stdio/fileno.c: Likewise.
974         * stdio/fmemopen.c: Likewise.
975         * stdio/fopen.c: Likewise.
976         * stdio/fputc.c: Likewise.
977         * stdio/fread.c: Likewise.
978         * stdio/freopen.c: Likewise.
979         * stdio/fseek.c: Likewise.
980         * stdio/fsetpos.c: Likewise.
981         * stdio/ftell.c: Likewise.
982         * stdio/fwrite.c: Likewise.
983         * stdio/getdelim.c: Likewise.
984         * stdio/gets.c: Likewise.
985         * stdio/glue.c: Likewise.
986         * stdio/internals.c: Likewise.
987         * stdio/memstream.c: Likewise.
988         * stdio/setvbuf.c: Likewise.
989         * stdio/ungetc.c: Likewise.
990         * stdio/vsscanf.c: Likewise.
991         * stdio-common/reg-printf.c: Likewise.
992         * stdio-common/vfprintf.c: Likewise.
993         * stdio-common/vfscanf.c: Likewise.
994         * stdlib/canonicalize.c: Likewise.
995         * stdlib/msort.c: Likewise.
996         * stdlib/random_r.c: Likewise.
997         * stdlib/strfmon.c: Likewise.
998         * stdlib/strtod.c: Likewise.
999         * stdlib/strtol.c: Likewise.
1000         * sunrpc/bindrsvprt.c: Likewise.
1001         * time/asctime.c: Likewise.
1002         * time/localtime.c: Likewise.
1003         * wcsmbs/mbrtowc.c: Likewise.
1004         * wcsmbs/mbsnrtowcs.c: Likewise.
1005         * wcsmbs/mbsrtowcs.c: Likewise.
1006         * wcsmbs/wcrtomb.c: Likewise.
1007         * wcsmbs/wcsnrtombs.c: Likewise.
1008         * wcsmbs/wcsrtombs.c: Likewise.
1009         * wcsmbs/wcstok.c: Likewise.
1010         * sysdeps/generic/ftime.c: Likewise.
1011         * sysdeps/generic/pty.c: Likewise.
1012         * sysdeps/generic/setenv.c: Likewise.
1013         * sysdeps/generic/speed.c: Likewise.
1014         * sysdeps/generic/sysd-stdio.c: Likewise.
1015         * sysdeps/generic/uname.c: Likewise.
1016         * sysdeps/generic/vlimit.c: Likewise.
1017         * sysdeps/libm-ieee754/k_standard.c: Likewise.
1018         * sysdeps/libm-ieee754/s_ldexp.c: Likewise.
1019         * sysdeps/libm-ieee754/s_ldexpf.c: Likewise.
1020         * sysdeps/libm-ieee754/s_ldexpl.c: Likewise.
1021         * sysdeps/libm-ieee754/w_scalb.c: Likewise.
1022         * sysdeps/libm-ieee754/w_scalbf.c: Likewise.
1023         * sysdeps/libm-ieee754/w_scalbl.c: Likewise.
1024         * sysdeps/posix/dup2.c: Likewise.
1025         * sysdeps/posix/euidaccess.c: Likewise.
1026         * sysdeps/posix/fdopen.c: Likewise.
1027         * sysdeps/posix/flock.c: Likewise.
1028         * sysdeps/posix/fpathconf.c: Likewise.
1029         * sysdeps/posix/getcwd.c: Likewise.
1030         * sysdeps/posix/gettimeofday.c: Likewise.
1031         * sysdeps/posix/isatty.c: Likewise.
1032         * sysdeps/posix/isfdtype.c: Likewise.
1033         * sysdeps/posix/killpg.c: Likewise.
1034         * sysdeps/posix/mkstemp.c: Likewise.
1035         * sysdeps/posix/mktemp.c: Likewise.
1036         * sysdeps/posix/pathconf.c: Likewise.
1037         * sysdeps/posix/pipestream.c: Likewise.
1038         * sysdeps/posix/remove.c: Likewise.
1039         * sysdeps/posix/rename.c: Likewise.
1040         * sysdeps/posix/sigintr.c: Likewise.
1041         * sysdeps/posix/signal.c: Likewise.
1042         * sysdeps/posix/sigsuspend.c: Likewise.
1043         * sysdeps/posix/sigvec.c: Likewise.
1044         * sysdeps/posix/sleep.c: Likewise.
1045         * sysdeps/posix/sysconf.c: Likewise.
1046         * sysdeps/posix/system.c: Likewise.
1047         * sysdeps/posix/tempname.c: Likewise.
1048         * sysdeps/posix/truncate.c: Likewise.
1049         * sysdeps/posix/ttyname.c: Likewise.
1050         * sysdeps/posix/ttyname_r.c: Likewise.
1051         * sysdeps/posix/wait3.c: Likewise.
1052         * sysdeps/standalone/close.c: Likewise.
1053         * sysdeps/standalone/open.c: Likewise.
1054         * sysdeps/standalone/read.c: Likewise.
1055         * sysdeps/standalone/write.c: Likewise.
1056         * sysdeps/stub/__longjmp.c: Likewise.
1057         * sysdeps/stub/accept.c: Likewise.
1058         * sysdeps/stub/access.c: Likewise.
1059         * sysdeps/stub/acct.c: Likewise.
1060         * sysdeps/stub/adjtime.c: Likewise.
1061         * sysdeps/stub/alarm.c: Likewise.
1062         * sysdeps/stub/bind.c: Likewise.
1063         * sysdeps/stub/brk.c: Likewise.
1064         * sysdeps/stub/chdir.c: Likewise.
1065         * sysdeps/stub/chflags.c: Likewise.
1066         * sysdeps/stub/chmod.c: Likewise.
1067         * sysdeps/stub/chown.c: Likewise.
1068         * sysdeps/stub/chroot.c: Likewise.
1069         * sysdeps/stub/clock.c: Likewise.
1070         * sysdeps/stub/close.c: Likewise.
1071         * sysdeps/stub/closedir.c: Likewise.
1072         * sysdeps/stub/connect.c: Likewise.
1073         * sysdeps/stub/ctermid.c: Likewise.
1074         * sysdeps/stub/cuserid.c: Likewise.
1075         * sysdeps/stub/dirfd.c: Likewise.
1076         * sysdeps/stub/dup.c: Likewise.
1077         * sysdeps/stub/dup2.c: Likewise.
1078         * sysdeps/stub/euidaccess.c: Likewise.
1079         * sysdeps/stub/execve.c: Likewise.
1080         * sysdeps/stub/fchdir.c: Likewise.
1081         * sysdeps/stub/fchflags.c: Likewise.
1082         * sysdeps/stub/fchmod.c: Likewise.
1083         * sysdeps/stub/fchown.c: Likewise.
1084         * sysdeps/stub/fcntl.c: Likewise.
1085         * sysdeps/stub/fdopen.c: Likewise.
1086         * sysdeps/stub/fexecve.c: Likewise.
1087         * sysdeps/stub/flock.c: Likewise.
1088         * sysdeps/stub/fork.c: Likewise.
1089         * sysdeps/stub/fpathconf.c: Likewise.
1090         * sysdeps/stub/fstatfs.c: Likewise.
1091         * sysdeps/stub/fsync.c: Likewise.
1092         * sysdeps/stub/ftruncate.c: Likewise.
1093         * sysdeps/stub/fxstat.c: Likewise.
1094         * sysdeps/stub/getcwd.c: Likewise.
1095         * sysdeps/stub/getdents.c: Likewise.
1096         * sysdeps/stub/getdomain.c: Likewise.
1097         * sysdeps/stub/getdtsz.c: Likewise.
1098         * sysdeps/stub/getegid.c: Likewise.
1099         * sysdeps/stub/getenv.c: Likewise.
1100         * sysdeps/stub/geteuid.c: Likewise.
1101         * sysdeps/stub/getgid.c: Likewise.
1102         * sysdeps/stub/getgroups.c: Likewise.
1103         * sysdeps/stub/gethostid.c: Likewise.
1104         * sysdeps/stub/gethostname.c: Likewise.
1105         * sysdeps/stub/getitimer.c: Likewise.
1106         * sysdeps/stub/getlogin.c: Likewise.
1107         * sysdeps/stub/getlogin_r.c: Likewise.
1108         * sysdeps/stub/getpagesize.c: Likewise.
1109         * sysdeps/stub/getpeername.c: Likewise.
1110         * sysdeps/stub/getpid.c: Likewise.
1111         * sysdeps/stub/getppid.c: Likewise.
1112         * sysdeps/stub/getpriority.c: Likewise.
1113         * sysdeps/stub/getrlimit.c: Likewise.
1114         * sysdeps/stub/getrusage.c: Likewise.
1115         * sysdeps/stub/getsid.c: Likewise.
1116         * sysdeps/stub/getsockname.c: Likewise.
1117         * sysdeps/stub/getsockopt.c: Likewise.
1118         * sysdeps/stub/getsysstats.c: Likewise.
1119         * sysdeps/stub/gettimeofday.c: Likewise.
1120         * sysdeps/stub/getuid.c: Likewise.
1121         * sysdeps/stub/gtty.c: Likewise.
1122         * sysdeps/stub/ioctl.c: Likewise.
1123         * sysdeps/stub/isatty.c: Likewise.
1124         * sysdeps/stub/isfdtype.c: Likewise.
1125         * sysdeps/stub/kill.c: Likewise.
1126         * sysdeps/stub/killpg.c: Likewise.
1127         * sysdeps/stub/link.c: Likewise.
1128         * sysdeps/stub/listen.c: Likewise.
1129         * sysdeps/stub/lseek.c: Likewise.
1130         * sysdeps/stub/lxstat.c: Likewise.
1131         * sysdeps/stub/madvice.c: Likewise.
1132         * sysdeps/stub/mkdir.c: Likewise.
1133         * sysdeps/stub/mkfifo.c: Likewise.
1134         * sysdeps/stub/mkstemp.c: Likewise.
1135         * sysdeps/stub/mktemp.c: Likewise.
1136         * sysdeps/stub/mmap.c: Likewise.
1137         * sysdeps/stub/morecore.c: Likewise.
1138         * sysdeps/stub/mprotect.c: Likewise.
1139         * sysdeps/stub/msgctl.c: Likewise.
1140         * sysdeps/stub/msgget.c: Likewise.
1141         * sysdeps/stub/msgrcv.c: Likewise.
1142         * sysdeps/stub/msgsnd.c: Likewise.
1143         * sysdeps/stub/msync.c: Likewise.
1144         * sysdeps/stub/munmap.c: Likewise.
1145         * sysdeps/stub/nanosleep.c: Likewise.
1146         * sysdeps/stub/nice.c: Likewise.
1147         * sysdeps/stub/nlist.c: Likewise.
1148         * sysdeps/stub/open.c: Likewise.
1149         * sysdeps/stub/opendir.c: Likewise.
1150         * sysdeps/stub/pathconf.c: Likewise.
1151         * sysdeps/stub/pause.c: Likewise.
1152         * sysdeps/stub/pipe.c: Likewise.
1153         * sysdeps/stub/pipestream.c: Likewise.
1154         * sysdeps/stub/poll.c: Likewise.
1155         * sysdeps/stub/profil.c: Likewise.
1156         * sysdeps/stub/ptrace.c: Likewise.
1157         * sysdeps/stub/putenv.c: Likewise.
1158         * sysdeps/stub/raise.c: Likewise.
1159         * sysdeps/stub/read.c: Likewise.
1160         * sysdeps/stub/readdir.c: Likewise.
1161         * sysdeps/stub/readlink.c: Likewise.
1162         * sysdeps/stub/readv.c: Likewise.
1163         * sysdeps/stub/reboot.c: Likewise.
1164         * sysdeps/stub/recv.c: Likewise.
1165         * sysdeps/stub/recvfrom.c: Likewise.
1166         * sysdeps/stub/recvmsg.c: Likewise.
1167         * sysdeps/stub/remove.c: Likewise.
1168         * sysdeps/stub/rename.c: Likewise.
1169         * sysdeps/stub/revoke.c: Likewise.
1170         * sysdeps/stub/rewinddir.c: Likewise.
1171         * sysdeps/stub/rmdir.c: Likewise.
1172         * sysdeps/stub/sbrk.c: Likewise.
1173         * sysdeps/stub/sched_getp.c: Likewise.
1174         * sysdeps/stub/sched_gets.c: Likewise.
1175         * sysdeps/stub/sched_primax.c: Likewise.
1176         * sysdeps/stub/sched_primin.c: Likewise.
1177         * sysdeps/stub/sched_rr_gi.c: Likewise.
1178         * sysdeps/stub/sched_setp.c: Likewise.
1179         * sysdeps/stub/sched_sets.c: Likewise.
1180         * sysdeps/stub/sched_yield.c: Likewise.
1181         * sysdeps/stub/seekdir.c: Likewise.
1182         * sysdeps/stub/select.c: Likewise.
1183         * sysdeps/stub/semctl.c: Likewise.
1184         * sysdeps/stub/semget.c: Likewise.
1185         * sysdeps/stub/semop.c: Likewise.
1186         * sysdeps/stub/send.c: Likewise.
1187         * sysdeps/stub/sendmsg.c: Likewise.
1188         * sysdeps/stub/sendto.c: Likewise.
1189         * sysdeps/stub/setdomain.c: Likewise.
1190         * sysdeps/stub/setegid.c: Likewise.
1191         * sysdeps/stub/setenv.c: Likewise.
1192         * sysdeps/stub/seteuid.c: Likewise.
1193         * sysdeps/stub/setgid.c: Likewise.
1194         * sysdeps/stub/setgroups.c: Likewise.
1195         * sysdeps/stub/sethostid.c: Likewise.
1196         * sysdeps/stub/sethostname.c: Likewise.
1197         * sysdeps/stub/setitimer.c: Likewise.
1198         * sysdeps/stub/setjmp.c: Likewise.
1199         * sysdeps/stub/setlogin.c: Likewise.
1200         * sysdeps/stub/setpgid.c: Likewise.
1201         * sysdeps/stub/setpriority.c: Likewise.
1202         * sysdeps/stub/setregid.c: Likewise.
1203         * sysdeps/stub/setreuid.c: Likewise.
1204         * sysdeps/stub/setrlimit.c: Likewise.
1205         * sysdeps/stub/setsid.c: Likewise.
1206         * sysdeps/stub/setsockopt.c: Likewise.
1207         * sysdeps/stub/settimeofday.c: Likewise.
1208         * sysdeps/stub/setuid.c: Likewise.
1209         * sysdeps/stub/shmat.c: Likewise.
1210         * sysdeps/stub/shmctl.c: Likewise.
1211         * sysdeps/stub/shmdt.c: Likewise.
1212         * sysdeps/stub/shmget.c: Likewise.
1213         * sysdeps/stub/shutdown.c: Likewise.
1214         * sysdeps/stub/sigaction.c: Likewise.
1215         * sysdeps/stub/sigaltstack.c: Likewise.
1216         * sysdeps/stub/sigblock.c: Likewise.
1217         * sysdeps/stub/sigintr.c: Likewise.
1218         * sysdeps/stub/signal.c: Likewise.
1219         * sysdeps/stub/sigpause.c: Likewise.
1220         * sysdeps/stub/sigpending.c: Likewise.
1221         * sysdeps/stub/sigprocmask.c: Likewise.
1222         * sysdeps/stub/sigreturn.c: Likewise.
1223         * sysdeps/stub/sigsetmask.c: Likewise.
1224         * sysdeps/stub/sigstack.c: Likewise.
1225         * sysdeps/stub/sigsuspend.c: Likewise.
1226         * sysdeps/stub/sigvec.c: Likewise.
1227         * sysdeps/stub/sleep.c: Likewise.
1228         * sysdeps/stub/socket.c: Likewise.
1229         * sysdeps/stub/socketpair.c: Likewise.
1230         * sysdeps/stub/sstk.c: Likewise.
1231         * sysdeps/stub/statfs.c: Likewise.
1232         * sysdeps/stub/stime.c: Likewise.
1233         * sysdeps/stub/stty.c: Likewise.
1234         * sysdeps/stub/swapoff.c: Likewise.
1235         * sysdeps/stub/swapon.c: Likewise.
1236         * sysdeps/stub/symlink.c: Likewise.
1237         * sysdeps/stub/sync.c: Likewise.
1238         * sysdeps/stub/syscall.c: Likewise.
1239         * sysdeps/stub/sysconf.c: Likewise.
1240         * sysdeps/stub/sysd-stdio.c: Likewise.
1241         * sysdeps/stub/system.c: Likewise.
1242         * sysdeps/stub/tcdrain.c: Likewise.
1243         * sysdeps/stub/tcflow.c: Likewise.
1244         * sysdeps/stub/tcflush.c: Likewise.
1245         * sysdeps/stub/tcgetattr.c: Likewise.
1246         * sysdeps/stub/tcgetpgrp.c: Likewise.
1247         * sysdeps/stub/tcsendbrk.c: Likewise.
1248         * sysdeps/stub/tcsetattr.c: Likewise.
1249         * sysdeps/stub/tcsetpgrp.c: Likewise.
1250         * sysdeps/stub/telldir.c: Likewise.
1251         * sysdeps/stub/tempname.c: Likewise.
1252         * sysdeps/stub/time.c: Likewise.
1253         * sysdeps/stub/times.c: Likewise.
1254         * sysdeps/stub/truncate.c: Likewise.
1255         * sysdeps/stub/ttyname.c: Likewise.
1256         * sysdeps/stub/ttyname_r.c: Likewise.
1257         * sysdeps/stub/ualarm.c: Likewise.
1258         * sysdeps/stub/ulimit.c: Likewise.
1259         * sysdeps/stub/umask.c: Likewise.
1260         * sysdeps/stub/unlink.c: Likewise.
1261         * sysdeps/stub/usleep.c: Likewise.
1262         * sysdeps/stub/ustat.c: Likewise.
1263         * sysdeps/stub/utime.c: Likewise.
1264         * sysdeps/stub/utimes.c: Likewise.
1265         * sysdeps/stub/vhangup.c: Likewise.
1266         * sysdeps/stub/wait.c: Likewise.
1267         * sysdeps/stub/wait3.c: Likewise.
1268         * sysdeps/stub/wait4.c: Likewise.
1269         * sysdeps/stub/waitpid.c: Likewise.
1270         * sysdeps/stub/write.c: Likewise.
1271         * sysdeps/stub/writev.c: Likewise.
1272         * sysdeps/stub/xmknod.c: Likewise.
1273         * sysdeps/stub/xstat.c: Likewise.
1274         * sysdeps/unix/closedir.c: Likewise.
1275         * sysdeps/unix/fxstat.c: Likewise.
1276         * sysdeps/unix/getlogin.c: Likewise.
1277         * sysdeps/unix/getlogin_r.c: Likewise.
1278         * sysdeps/unix/mkdir.c: Likewise.
1279         * sysdeps/unix/nice.c: Likewise.
1280         * sysdeps/unix/nlist.c: Likewise.
1281         * sysdeps/unix/opendir.c: Likewise.
1282         * sysdeps/unix/readdir.c: Likewise.
1283         * sysdeps/unix/rmdir.c: Likewise.
1284         * sysdeps/unix/stime.c: Likewise.
1285         * sysdeps/unix/xmknod.c: Likewise.
1286         * sysdeps/unix/xstat.c: Likewise.
1287         * sysdeps/unix/bsd/isatty.c: Likewise.
1288         * sysdeps/unix/bsd/setegid.c: Likewise.
1289         * sysdeps/unix/bsd/seteuid.c: Likewise.
1290         * sysdeps/unix/bsd/setsid.c: Likewise.
1291         * sysdeps/unix/bsd/sigaction.c: Likewise.
1292         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
1293         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
1294         * sysdeps/unix/bsd/tcflow.c: Likewise.
1295         * sysdeps/unix/bsd/tcflush.c: Likewise.
1296         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
1297         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
1298         * sysdeps/unix/bsd/times.c: Likewise.
1299         * sysdeps/unix/bsd/ulimit.c: Likewise.
1300         * sysdeps/unix/common/lxstat.c: Likewise.
1301         * sysdeps/unix/common/tcsendbrk.c: Likewise.
1302         * sysdeps/unix/sysv/setrlimit.c: Likewise.
1303         * sysdeps/unix/sysv/settimeofday.c: Likewise.
1304         * sysdeps/unix/sysv/sigaction.c: Likewise.
1305         * sysdeps/unix/sysv/tcflow.c: Likewise.
1306         * sysdeps/unix/sysv/tcflush.c: Likewise.
1307         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
1308         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
1309         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
1310         * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
1311         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
1312         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
1313         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
1314         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
1315         * sysdeps/unix/sysv/linux/gethostname.c: Likewise.
1316         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
1317         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
1318         * sysdeps/unix/sysv/linux/speed.c: Likewise.
1319         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
1320         * sysdeps/unix/sysv/sysv4/sigaction.c: Likewise.
1321         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
1322         * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
1323         * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
1324         * sysdeps/unix/bsd/sun/sunos4/speed.c: Likewise.
1325         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c: Likewise.
1326         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Likewise.
1327         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
1328         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1329         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
1331         * sunrpc/clnt_tcp.c: Protect declaration of errno by #ifndef.
1332         * sunrpc/clnt_udp.c: Likewise.
1333         * sunrpc/bindrsvprt.c: Likewise.
1334         * sunrpc/pm_getmaps.c: Likewise.
1335         * sunrpc/pmap_rmt.c: Likewise.
1336         * sunrpc/svc.c: Likewise.
1337         * sunrpc/svc_run.c: Likewise.
1338         * sunrpc/svc_tcp.c: Likewise.
1339         * sunrpc/svc_udp.c: Likewise.
1341         * sysdeps/generic/strtok.c: Don't check argument, just crash.
1342         * sysdeps/generic/strtok_r.c: Likewise.
1344         * sysdeps/stub/start.c: Make __errno a strong alias of errno.
1345         * sysdeps/unix/start.c: Likewise.  De-ANSI-fy.
1346         * sysdeps/unix/sparc/start.c: Likewise.
1347         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
1348         * sysdeps/unix/sysv/irix4/start.c: Likewise.
1349         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1350         * sysdeps/unix/sysv/linux/i386/sysdep.S: Likewise.
1351         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
1353 Mon Sep 23 17:54:57 1996  Ulrich Drepper  <drepper@cygnus.com>
1355         * catgets/gencat.c (main): Put package name in --version message
1356         in parantheses.  Reported by Jim Meyering.
1357         * db/makedb.c: Likewise.
1358         * locale/programs/locale.c: Likewise.
1359         * locale/programs/localedef.c: Likewise.
1361         * sysdeps/i386/fpu/__math.h (tan): Make sure gcc knows we use
1362         two registers.  Patch by John Bowman.
1364 Sat Sep 21 15:08:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1366         * sysdeps/mach/libc-lock.h: Fix comment.
1367         * sysdeps/stubs/libc-lock.h: Likewise.
1369 Sat Sep 21 13:50:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1371         * libio/genops.c (_IO_init) [_IO_MTSAFE_IO]: Dereference pointer
1372         to lock when passing it to __libc_lock_init macro.
1373         (_IO_default_finish) [_IO_MTSAFE_IO]: Dereference pointer to lock
1374         when passing it to __libc_lock_fini macro.
1376 Sat Sep 21 14:35:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1378         * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYSCALL_ERROR_HANDLER)
1379         [_LIBC_REENTRANT]: Add missing semicolon.
1381         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Move inclusion of
1382         sysdep.h to the top outside of #ifndef PIC.  Don't include errnos.h.
1383         Use the ENTRY macro.
1385 Sat Sep 21 14:33:41 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1387         * libio/Makefile: Make `all' the default target.
1388         * po/Makefile: Likewise.
1390 Mon Sep 23 15:49:47 1996  Ulrich Drepper  <drepper@cygnus.com>
1392         * stdlib/test-canon.c: Correct patch from Thu Sep 12 23:01:16 1996.
1393         I applied it incorrectly.
1394         * sysdeps/m68k/fpu/s_scalbn.c: Likewise.
1395         * sysdeps/m68k/fpu/s_scalbnf.c: Likewise.
1396         * sysdeps/m68k/fpu/s_scalbnl.c: Likewise.
1398 Mon Sep 23 03:00:10 1996  Ulrich Drepper  <drepper@cygnus.com>
1400         * shadow/sgetspent_r.c (LINE_PARSER): Accept empty 9th field.
1401         Patch by NIIBE Yutaka <gniibe@mri.co.jp>.
1403         * shadow/sgetspent_r.c (LINE_PARSER): Don't accept any chars after
1404         9th field.
1406         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
1407         (sysdep_headers): Add sys/debugreg.h, sys/kd.h, sys/soundcard.h,
1408         and sys/vt.h.
1409         * sysdeps/unix/sysv/linux/sys/debugreg.h: New file.
1410         * sysdeps/unix/sysv/linux/sys/kd.h: New file.
1411         * sysdeps/unix/sysv/linux/sys/soundcard.h: New file.
1412         * sysdeps/unix/sysv/linux/sys/vt.h: New file.
1413         Reported by NIIBE Yutaka <gniibe@mri.co.jp>.
1415 Thu Sep 26 13:44:29 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1417         * hurd/Makefile (installed-sunrpc-headers): New variable.
1418         (sunrpc-headers): New variable.
1419         (install-headers-nosubir): Depend on $(installed-sunrpc-headers),
1420         not just <rpc/netdb.h>.
1421         ($(installed-sunrpc-headers)): Provide rule for all of these.
1423 Mon Sep 23 15:31:04 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1425         * hurd/Makefile ($(includedir)/rpc/netdb.h): There is no make
1426         variable `top_srcdir' in libc; use $(..) instead.
1428         * sysdeps/mach/hurd/Makefile (rtld-installed-name): Delete special
1429         definition.  It was a *Mistake*.  (With a capital M.)
1431         * sysdeps/mach/getsysstats.c (__get_nprocs): Renamed from
1432         __get_nproc.
1433         (__get_nprocs_conf): Renamed from __get_nproc_conf.
1435 Sun Sep 22 15:18:41 1996  Ulrich Drepper  <drepper@cygnus.com>
1437         * sysdeps/unix/sysv/linux/init-first.c: Define dummy function
1438         `_dl_start' so that linking fails if this file should ever be used
1439         in ld.so.
1441         * catgets/gencat.c (main): Change --version message according to
1442         RMS' last standard revision.
1443         * db/makedb.c: Likewise.
1444         * locale/programs/locale.c: Likewise.
1445         * locale/programs/localedef.c: Likewise.
1447 Sat Sep 21 23:42:39 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1449         * sysdeps/mach/getsysstats.c: Include <sys/sysinfo.h>.
1450         (__get_nproc_conf): New function.
1452 Sun Sep 22 03:40:52 1996  Ulrich Drepper  <drepper@cygnus.com>
1454         * resolv/resolv.h: Update to bind-4.9.5-T4B.
1455         * resolv/base64.c: Likewise.
1456         * resolv/res_debug.c: Likewise.
1457         * resolv/res_query.c: Likewise.
1458         * resolv/gethnamaddr.c: Likewise.
1459         * nss/nss_dns/dns-host.c: Likewise.
1460         * resolv/res_comp.c: Likewise.
1461         * resolv/res_send.c: Likewise.
1462         * resolv/arpa/nameser.h: Likewise.  Attention: MAXDNAME is much
1463         higher now.
1465         * resolv/Banner: New file.
1466         * resolv/Makefile (distribute): Add Banner.
1468 Sat Sep 21 19:15:24 1996  Ulrich Drepper  <drepper@cygnus.com>
1470         * sysdeps/stub/getsysstats.c: New file.
1471         * sysdeps/unix/sysv/linux/getsysstats.c: New file.
1473         * misc/Makefile (headers): Add sys/sysinfo.h.
1474         (routines): Add getsysstats.
1475         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
1476         (sysdep_headers): Remove sys/sysinfo.h.
1477         * sysdeps/generic/sys/sysinfo.h: New file.
1478         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Add prototype for get_nprocs,
1479         get_phys_pages, and get_avphys_pages.
1481         * misc/Makefile (routines): Add mntent_r.
1482         * misc/mntent_r.c: New file.
1483         * misc/mntent.c: Remove all functions but getmntent and use
1484         __getmntent_r.
1485         * misc/mntent.h: Add prototype for __getmntent_r.
1486         * misc/fstab.c: Use __getmntent_r function instead of getmntent.
1487         This will not clobber the state in getmntent.
1489         * sysdeps/generic/confname.h: Add _SC_PROCESSORS_CONF,
1490         _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES, _SC_AVPHYS_PAGES,
1491         _SC_ATEXIT_MAX, and _SC_PASS_MAX.
1492         * sysdeps/stub/sysconf.c: Add handling _SC_PROCESSORS_CONF and
1493         _SC_NPROCESSORS_ONLN by calling __get_nprocs, _SC_PHYS_PAGES by
1494         calling __get_phys_pages, _SY_AVPHYS_PAGES by calling
1495         __get_avphys_pages, _SC_ATEXIT_MAX and _SC_PASS_MAX.
1496         * sysdeps/posix/sysconf.c: Likewise.
1497         * posix/getconf.c (vars): Add _NPROCESSORS_CONF, _NPROCESSORS_ONLN,
1498         _PHYS_PAGES, _AVPHYS_PAGES, ATEXIT_MAX, and PASS_MAX entries.
1500 Sat Sep 21 05:20:36 1996  Ulrich Drepper  <drepper@cygnus.com>
1502         * version.h (VERSION): Bump to 1.95.
1504         * Make-dist (+tsrcs): Don't filter out files in subdirs which
1505         match files in the sysdeps hierachy (welcome back,
1506         sys/syscall.h!).
1508         * resolv/Makefile (libresolv-routines): Remove getnetnamad.
1510 Sat Sep 21 03:00:19 1996  Ulrich Drepper  <drepper@cygnus.com>
1512         * locale/loadlocale.c (_nl_free_locale): Remove function.
1513         * locale/localeinfo.h: Remove prototype for _nl_free_locale.
1514         * locale/setlocale.c (setlocale): Don't free locale data of
1515         categories which succeeded to load after a wrong or missing data
1516         file was observed.
1518         * locale/setlocale (setlocale): Initialize NEWNAME correctly so
1519         that it works even when the locale data is not used.
1521         * stdlib/random_r.c: Fix typo in comment.
1522         * stdlib/drand48-iter.c: Likewise.
1523         * stdlib/drand48.c: Likewise.
1524         * stdlib/erand48.c: Likewise.
1525         * stdlib/jrand48.c: Likewise.
1526         * stdlib/lcong48.c: Likewise.
1527         * stdlib/lrand48.c: Likewise.
1528         * stdlib/mrand48.c: Likewise.
1529         * stdlib/nrand48.c: Likewise.
1530         * stdlib/random.c: Likewise.
1531         * stdlib/seed48.c: Likewise.
1532         * stdlib/srand48.c: Likewise.
1533         * misc/search.h: Likewise.
1534         * misc/hsearch.c: Likewise.
1535         * misc/hsearch_r.c: Likewise.
1537 Sat Sep 21 14:59:22 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1539         * sysdeps/mach/getsysstats.c: New file.
1541         * shlib-versions (*-*-gnu*): Increment libc to 0.2 for upcoming
1542         binary distribution.
1544         * sysdeps/mach/hurd/Makefile (rtld-installed-name): Provide
1545         definition to override dangerous one in Makeconfig.
1547         * hurd/Makefile (install-headers-nosubdir): Install <rpc/netdb.h>.
1548         ($(includedir)/rpc/netdb.h): New rule.
1549         [ This is XXX until sunrpc can be built; <rpc/netdb.h> is
1550         essential. ]
1552 Fri Sep 20 16:06:06 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1554         * sysdeps/mach/hurd/i386/init-first.c (_dl_start): Add definition,
1555         to guarantee link errors if this is included in ld.so.
1557 Thu Sep 19 23:36:19 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1559         * hurd/hurdinit.c (__libc_argv): Provide common decl.
1560         (_hurd_setproc): Don't declare __libc_argv here.
1562 Tue Sep 17 10:51:58 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1564         * malloc/memalign.c (memalign): Only acquire __libc_malloc_lock
1565         for actual modifications to global state.  
1567 Fri Sep 13 01:21:36 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1569         * sysdeps/mach/Makefile (includes): Add -I$(common-objpfx)mach/.
1570         * sysdeps/mach/hurd/Makefile (includes): Add
1571         -I$(common-objpfx)hurd/.  Reported by Marcus Daniels.
1573         * sysdeps/generic/schedbits.h (struct sched_param): Renamed from
1574         struct sched_params.
1575         * sysdeps/stub/sched_setp.c (__sched_setparam): struct
1576         sched_params -> struct sched_param.
1577         * sysdeps/stub/sched_getp.c (__sched_getparam): Likewise.
1578         * sysdeps/stub/sched_sets.c (__sched_setscheduler): Likewise.
1580 Thu Sep 12 23:58:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1582         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): Fix
1583         syntax error.
1584         
1585         * stdio-common/Makefile: Put lockfile in routines
1586         unconditionally. 
1587                 
1588         * stdio-common/vfprintf.c (__flockfile, __funlockfile): Declare
1589         this always, not just if _LIBC_REENTRANT.
1590         (__funlockfile): Don't use weak_extern for this one;
1591         __libc_cleanup_region_end might be defined and the use of
1592         __funlockfile can't be protected the way the use of __flockfile
1593         can be. 
1594         
1595 Thu Sep 19 21:50:55 1996  Ulrich Drepper  <drepper@cygnus.com>
1597         * sysdeps/posix/gettimeofday.c (__gettimeofday): Use localtime_r
1598         instead of localtime.
1599         Reported by Matthias Urlichs.
1601         * shlib-versions: Remove version number for libcrypt.
1602         * features.h: Define __USE_REENTRANT if _REENTRANT or _THREAD_SAFE.
1603         * libc-symbols.h: Define _REENTRANT while compiling libc.
1605         * sysdeps/unix/sysv/linux/i386/sysdep.S (__errno_location):
1606         Define even if !_LIBC_REENTRANT.
1607         * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location):
1608         Likewise.
1610         * sysdeps/posix/cuserid.h: Remove prototype for geteuid().
1611         De-ANSI-fy.
1613         * MakeTAGS ($P/libc.pot): Generate correctly formed header.
1614         * po/header.pot: Correct title line.
1615         * po/nl.po: Update.
1617 Thu Sep 19 18:59:55 1996  Ulrich Drepper  <drepper@cygnus.com>
1619         * Makeconfig (soversions.mk): Prefer shared lib version numbers
1620         is add ons over version in libc itself.
1622         * sysdeps/unix/sysv/linux/i386/sysdep.S: Include <sysdep.h>.
1623         * sysdeps/unix/sysv/linux/i386/sysdep.h: Prevent multiple
1624         inclusion.
1626         * libio/iofgets.c: Use __flockfile and __funlockfile instead of
1627         _IO_flockfile and _IO_funlockfile resp.
1629         * locale/categories.def: Partly support for correct `era' handling
1630         in LC_TIME category.
1631         * locale/langinfo.h: Likewise.
1632         * locale/programs/ld-time.c: Likewise.
1633         * locale/localeinfo.h: Change comment a bit.
1635         * malloc/memalign.c: Don't use goto, not necessary anymore.
1637 1996-09-18  Paul Eggert  <eggert@twinsun.com>
1639         * time/mktime.c (ydhms_tm_diff):  Work correctly even if year
1640         is negative, or if time_t is unsigned.
1641         * time/strftime.c (tm_diff): Work correctly even if tm_year
1642         is near INT_MIN.
1644 Tue Sep 17 16:14:34 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1646         * sysdeps/m68k/fpu/__math.h (__inline_mathop): Changed to generate
1647         all three versions of the math function.
1648         (__inline_mathopf, __inline_mathopl): Removed.
1649         (__inline_functions): New temporary definition containing all
1650         non-trivial inline functions.
1652 Wed Sep 18 00:25:41 1996  Ulrich Drepper  <drepper@cygnus.com>
1654         * time/strftime.c (strftime): The T_FMT_AMPM string may be empty.
1656 Tue Sep 17 20:27:18 1996  Ulrich Drepper  <drepper@cygnus.com>
1658         * math/Makefile (extra-libs-others): Use $(extra-libs) instead
1659         of $(extra-libc).
1661 Tue Sep 17 17:09:44 1996  Ulrich Drepper  <drepper@cygnus.com>
1663         * sysdeps/stub/fpu_control.h: Correct end of file comment.
1665 Tue Sep 17 05:39:18 1996  Ulrich Drepper  <drepper@cygnus.com>
1667         * stdio-common/bug3.c, stdio-common/bug4.c, stdio-common/bug5.c,
1668         stdio-common/test-popen.c: Remove temporary files after test.
1669         * stdio-common/bug5.c: Use `system' instead of `execlp'.
1670         Patches by Andreas Jaeger.
1672         * stdio-common/bug5.c: Create string for `system' argument to
1673         make sure the input and output file names are really correct.
1675 Sun Sep 15 12:46:44 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1677         * configure.in: If $os contains a hyphen add the part before the
1678         hyphen to $ostry.
1680 Sun Sep 15 18:14:02 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1682         * sysdeps/m68k/fpu/__math.h (__ieee754_pow, __ieee754_powf,
1683         __ieee754_powl): Rename local variable i to __i.
1684         (__ieee754_atan2, __ieee754_atan2f, __ieee754_atan2l): New inline
1685         functions.
1686         * sysdeps/m68k/fpu/e_atan2.c, sysdeps/m68k/fpu/e_atan2f.c,
1687         sysdeps/m68k/fpu/e_atan2l.c: New files.
1689 1996-09-15  Paul Eggert  <eggert@twinsun.com>
1691         * manual/time.texi: Change `range X to Y' to `range X through
1692         Y', to avoid ambiguity in English.
1694         (strftime): Numbers that do not have a range indicated are not padded.
1695         Describe E and O modifiers.
1696         %g, %G, %u: New formats.
1697         %C, %y, %Y: Describe behavior on negative years.
1698         %e: Fix typo (was labeled %d).
1699         %l, %V: Fix typo in range.
1700         %M, %S, %U, %w, %W: Give ranges.
1701         %p: Clarify how noon and midnight are handled for AM and PM.
1702         %s: Clarify leap second handling.
1703         %r: Now locale-defined.
1704         %C, %D, %e, %h, %n, %r, %t, %T: Say that they are POSIX.2 extensions.
1705         %z: Say that it is a GNU extension.
1706         %Z: Wording fix.
1708         * time/strftime.c: (strftime):
1709                 %V: Fix mishandling of week numbers near year boundaries.
1710                 %g, %G: New formats (suggested by Arthur David Olson).
1711                 %U, %W: Use inline expression instead of `week' function.
1712                 %C, %y: Handle negative years portably.
1713                 %C, %Y: Use width 1, since values can be arbitrarily wide.
1714                 %r: Use T_FMT_AMPM format if _NL_CURRENT is defined.
1715                 %u: New Posix.2 format.
1716                 %w: Width is 1, not 2.
1717         (iso_week_days): New function, for %V, %G, %g.
1718         (week): Remove; it didn't handle %V correctly.
1719         (__isleap): New macro.
1720         (mbsinit): Use arg, to pacify GCC -Wall.
1722 1996-09-13  Paul Eggert  <eggert@twinsun.com>
1724         * time/strftime.c (strftime):
1725         If using the GNU C library, do not bother to check for
1726         multibyte encodings, since they're safe in formats.  Otherwise:
1727           - Check for multibyte encodings when encountering any character that
1728           is not in the basic execution character set of the C Standard.
1729           - Use mbrlen (if available) instead of mblen, to avoid modifying
1730           mblen's internal state.
1731           - Do not assume that '%' cannot appear as the first character of a
1732           multibyte character sequence, since this is possible when not in the
1733           initial shift state.
1734         (HAVE_MBRLEN, MULTIBYTE_IS_FORMAT_SAFE): Define if _LIBC is defined.
1735         (DO_MULTIBYTE): New macro.
1736         (<ctype.h>): Do not include.
1737         (<wchar.h>): Include if HAVE_MBRLEN.
1738         (mbstate_t, mbrlen, mbsinit): Define if ! HAVE_MBRLEN.
1739         (mbstate_zero): New constant.
1741 1996-09-12  Paul Eggert  <eggert@twinsun.com>
1743         * time/strftime.c (strftime):
1744         Use an empty zone if it can't be determined; POSIX.2 requires this.
1745         Use plain `int' for pad and modifier (which now contain char value).
1746         Use plain `int' for number_value, to print negative values correctly.
1747         Use plain `int' for digits; there was no need to make it unsigned.
1748         Initialize subfmt consistently.
1749         Remove incorrect code for %EC and %Ey; they aren't implemented yet.
1750         For %O, if there is no alternate digit, output Ascii instead of "".
1751         Output the `%' of an unknown format; this is most likely the right
1752         thing to do if a multibyte string has been misparsed.
1754 Thu Sep 12 23:23:13 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1756         * stdio-common/scanf7.c (main): Remove extra conversion from
1757         printf format string.
1759 Thu Sep 12 23:01:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1761         * stdlib/test-canon.c (tests): Rename structure member from errno
1762         to error, all uses changed.
1764 Thu Sep 12 20:08:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1766         * sysdeps/m68k/fpu/__math.h (__ldexp, __ldexpf, __ldexpl):
1767         Removed.
1768         * sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
1769         sysdeps/m68k/fpu/s_ldexpl.c: Removed, use generic implementation
1770         instead.
1771         * sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
1772         sysdeps/m68k/fpu/s_scalbnl.c: Replaced with old contents of
1773         s_ldexp.c, s_ldexpf.c and s_ldexpl.c, resp., suitably adpted.
1775         * sysdeps/m68k/fpu/__math.h (__frexp, __frexpf, __frexpl):
1776         Return value must be in [0.5, 1), not [1, 2).  Reported by Chris
1777         Lawrence.
1778         (__ilogb, __ilogbf, __ilogbl): Check for argument being zero.
1779         (__scalbn, __scalbnf, __scalbnl): Use second argument directly.
1781 Thu Sep 12 19:59:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1783         * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
1784         * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
1786 Thu Sep 12 19:59:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1788         * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
1789         * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
1791 Thu Sep 12 19:56:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1793         * inet/herrno.c (__h_errno_location): Fix return type.
1795 Thu Sep 19 23:36:19 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1797         * hurd/hurdinit.c (__libc_argv): Provide common decl.
1798         (_hurd_setproc): Don't declare __libc_argv here.
1800 Fri Sep 13 04:33:08 1996  Ulrich Drepper  <drepper@cygnus.com>
1802         * sched.h: New file.  Helper to access posix/sched.h.
1803         * posix/sched.h: Change `sched_params' to `sched_param' to follow
1804         POSIX.4.
1806 Thu Sep 12 20:12:40 1996  Ulrich Drepper  <drepper@cygnus.com>
1808         * db/makedb.c (usage): Print bug report address separately to
1809         ease translators task.
1810         * catgets/gencat.c (usage): Likewise.
1811         * locale/locale.c (usage): Likewise.
1812         * locale/localedef.c (usage): Likewise.
1814 1996-09-12  Paul Eggert  <eggert@twinsun.com>
1816         * time/strftime.c (my_localtime_r): Define if ! HAVE_LOCALTIME_R,
1817         and #define localtime_r to it.  If _LIBC, use __localtime_r instead.
1818         (my_gmtime_r): Similar, except it's not needed if ! HAVE_TM_GMTOFF.
1820 Thu Sep 12 14:03:29 1996  Ulrich Drepper  <drepper@cygnus.com>
1822         * crypt/Makefile: Include Makeconfig and add crypt object dir to
1823         rpath-link so that running the check finds the new library.
1824         * crypt/cert.c: provide correct prototypes to prevent warnings.
1825         Reported by Andreas Jaeger.
1827         * sysdeps/mach/hurd/Makefile (rpath-link): Don't use += because
1828         old and new value must be glued using `:'.
1829         Reported by Marcus Daniels.
1831 Thu Sep 12 12:33:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1833         * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
1834         accidentally added on.
1836         * sysdeps/stub/intr-msg.h: New file.
1838         * stdio-common/vfprintf.c: Include <libc-lock.h>.
1839         * stdio-common/vfscanf.c: Include <libc-lock.h>.
1841         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
1842         macro.
1843         (__libc_cleanup_region_end): New macro.
1845 Thu Sep 12 12:33:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1847         * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
1848         accidentally added on.
1850         * sysdeps/stub/intr-msg.h: New file.
1852         * stdio-common/vfprintf.c: Include <libc-lock.h>.
1853         * stdio-common/vfscanf.c: Include <libc-lock.h>.
1855         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
1856         macro.
1857         (__libc_cleanup_region_end): New macro.
1859 Thu Sep 12 03:35:27 1996  Ulrich Drepper  <drepper@cygnus.com>
1861         * sysdeps/unix/sysv/linux/i386/Dist: Remove init-first.h.
1862         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
1863         * sysdeps/unix/sysv/linux/Dist: Add init-first.h.
1865 1996-09-11  Paul Eggert  <eggert@twinsun.com>
1867         * strftime.c (strftime):
1868         Handle E and O modifiers, required for POSIX.2 and XPG4.
1869         Don't use sprintf to format numbers; this way, we can handle time_t
1870         correctly regardless of whether it's signed.
1871         Don't dump core if format ends in %.
1872         In default %c format, use %e instead of %d, for POSIX.2 compatibility.
1873         For %z:
1874                 Use tm_gmtoff if available.
1875                 Output nothing if tm_isdst is negative.
1876                 Output correct value even if arg is 1969-12-31 23:59:59 UTC.
1877                 Don't assume that UTC offset is less than 24 hours;
1878                 Posix requires support for 24 hours, and there's no point
1879                 limiting it at all.
1880         (HAVE_TM_GMTOFF, TYPE_SIGNED, INT_STRLEN_BOUND): New macros.
1881         (CHAR_BIT): Define if <limits.h> doesn't.
1882         (tm_diff): New function.
1883         (fmt, <stdio.h>): Remove; no longer used.
1885 Thu Sep 12 02:21:44 1996  Ulrich Drepper  <drepper@cygnus.com>
1887         * db/Makefile: Add extra-libs-others variable so that shared
1888         library is built in `others' pass.
1889         * elf/Makefile: Likewise.
1890         * math/Makefile: Likewise.
1891         * resolv/Makefile: Likewise.
1893         * Makefile (generated): Add version.info.h.
1895         * time/checktab.awk: New file.  From ADO 96k.
1896         * time/iso3166.tab: Likewise.
1897         * time/tzselect.ksh: Likewise.
1898         * time/zone.tab: Likewise.
1900         * stdio-common/vfprintf.c: Correct cleanup registration.  We
1901         cannot use a macro
1903 1996-09-11  Paul Eggert  <eggert@twinsun.com>
1905         * time/time.h (tm_gmtoff, tm_zone): Prefix with `__' unless
1906         __USE_BSD; this is required for ANSI C compatibility.
1907         * manual/time.texi: Replace GMT by UTC, daylight savings by
1908         daylight saving, timezone by time zone.
1909         Rewrite description of %V to match ISO 8601.
1910         Fix TZ Posix string example for US Eastern time.
1911         Explain tzname[1] when DST isn't used.
1912         Explain tzname when multiple abbreviations used (e.g. EST/EWT/EDT).
1913         Explain that timezone's sign is opposite from tm_gmtoff, and that
1914         timezone lacks DST adjustment whereas tm_gmtoff has it.
1915         Deprecate tzname and timezone.
1917 Tue Sep 10 14:46:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1919         Implement Roland McGrath's idea of how to put an .interp into
1920         shared libraries.
1921         * interp.c: New file.
1922         * Makerules (interp-obj): New object, linked into every shared
1923         library.
1924         (common-generated): Add interp.so.
1925         (CFLAGS-interp.c): Pass name of interpreter.
1927 Tue Sep 10 21:09:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1929         * db/Makefile: Fix typo.
1931 Tue Sep 10 19:29:53 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1933         * nss/db-Makefile ($(VAR_DB)/passwd.db): Look for multiple
1934         occurences of the same uid, and only generate a mapping for the
1935         first one.
1937 Tue Sep 10 03:14:59 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1939         * sysdeps/unix/sysv/linux/system.c: New file, to override
1940         sysdeps/unix/system.c.
1942 Tue Sep 10 15:05:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1944         * Makefile (before-compile): Add version-info.h, needed to build
1945         version.d.
1947 Tue Sep 10 14:14:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1949         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Remove check for
1950         EWOULDBLOCK, never true on Linux.
1951         (__errno_location): New function.
1952         [_LIBC_REENTRANT]: Set errno using __errno_location function.
1953         * sysdeps/unix/sysv/linux/m68k/sysdep.h [PIC]: Add second
1954         syscall_error handler for reentrant libc.
1956 Tue Sep 10 13:27:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1958         * elf/Makefile (extra-objs): Add eval.so to get dependencies.
1960 Wed Sep 11 04:40:57 1996  Ulrich Drepper  <drepper@cygnus.com>
1962         * time/tzset.c (__tzname_cur_max): Use type `size_t' to avoid
1963         warning.
1964         * time/tzfile.c (compute_tzname_max): Likewise.
1966 Wed Sep 11 02:57:31 1996  Ulrich Drepper  <drepper@cygnus.com>
1968         * configure.in: Quote $add_ons argument in loop to generated
1969         prefices.
1971 Tue Sep 10 20:43:45 1996  Ulrich Drepper  <drepper@cygnus.com>
1973         * db/makedb.c: Include <locale.h>.  Reported by Fila Kolodny.
1975 Tue Sep 10 14:42:39 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1977         * elf/dl-cache.c: Rename to ...
1978         * sysdeps/generic/dl-cache.c:  ... here.
1979         * sysdeps/mach/hurd/dl-cache.c: New file.
1980         
1981         * mach/Makefile (distribute): Add `errsystems.awk'.
1982         * hurd/Makefile (distribute): Add `Notes' and `intr-msg.h'.
1983         * hurd/hurdintr.awk: Delete file.  (Not used in ages.)
1984         * hurd/intr-rpc.awk: Likewise.
1985         * hurd/invoke-trans.c: Likewise.
1986         * sysdeps/mach/hurd/i386/longjmp-ctx.c: Likewise.
1987         * sysdeps/mach/hurd/alpha/longjmp-ctx.c: Likewise.
1988         * sysdeps/mach/hurd/mips/longjmp-ctx.c: Likewise.
1989         * sysdeps/mach/hurd/i386/init-fault.c: Likewise.
1990         * sysdeps/mach/hurd/mips/init-fault.c: Likewise.
1991         * sysdeps/stub/init-fault.c: Likewise.
1992         * sysdeps/stub/longjmp-ctx.c: Likewise.
1993         
1994 Tue Sep 10 13:49:08 1996  Ulrich Drepper  <drepper@cygnus.com>
1996         * inet/herrno.c: Initialize `h_errno' so that we can provide
1997         alias.
1999         * Makefile (version-info.h): Fix typo in shell script.
2001         * sysdeps/i386/i586/strlen.S: Optimize startup code a bit.
2002         * sysdeps/i386/i586/strchr.S: Likewise.
2004 Mon Sep  9 20:31:27 1996  Ulrich Drepper  <drepper@cygnus.com>
2006         * version.c (banner): Report to bug-glibc@prep not @gnu.
2007         Reported by Andreas Jaeger.
2009         * libio/stdio.h [!__USE_REENTRANT]: Don't define getc as
2010         _IO_getc_unlocked.
2011         [__USE_REENTRANT]: Don't define
2013 Mon Sep  9 15:59:32 1996  Ulrich Drepper  <drepper@cygnus.com>
2015         * sysdeps/i386/strrchr.c: Fix bug where NUL byte is not recognized
2016         when it is the third byte in the string.  Reported by
2017         NIIBE Yutaka.
2018         * string/tester.c: Add tests for above bug to strlen, strchr, and
2019         strrchr tests.
2021 Fri Sep  6 21:23:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2023         * sysdeps/m68k/fpu/e_acos.c: Deansideclized.  Include
2024         "math_private.h" to get prototype.
2025         * sysdeps/m68k/fpu/e_fmod.c: Likewise.
2026         * sysdeps/m68k/fpu/k_cos.c: Likewise.
2027         * sysdeps/m68k/fpu/k_sin.c: Likewise.
2028         * sysdeps/m68k/fpu/k_tan.c: Likewise.
2030         * sysdeps/m68k/fpu/k_sin.c: Remove uneeded indirection of
2031         __m81_u.
2032         * sysdeps/m68k/fpu/k_tan.c: Likewise.
2034 Sun Sep  1 18:01:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2036         * sysdeps/m68k/fpu/__math.h: Check for __NO_M81_MATH_INLINES
2037         instead of __NO_MATH_INLINES.
2038         (__M81_MATH_INLINES): Renamed from __MATH_INLINES.
2039         * sysdeps/m68k/fpu/e_acos.c: Define __NO_M81_MATH_INLINES.
2040         * sysdeps/m68k/fpu/e_fmod.c: Likewise.
2041         * sysdeps/m68k/fpu/k_cos.c: Likewise.
2042         * sysdeps/m68k/fpu/k_sin.c: Likewise.
2043         * sysdeps/m68k/fpu/k_tan.c: Likewise.
2044         * sysdeps/m68k/fpu/s_atan.c: Likewise.
2045         * sysdeps/m68k/fpu/s_frexp.c: Likewise.
2046         * sysdeps/m68k/fpu/s_ilogb.c: Likewise.
2047         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
2048         * sysdeps/m68k/fpu/s_ldexp.c: Likewise.
2049         * sysdeps/m68k/fpu/s_modf.c: Likewise.
2050         * sysdeps/m68k/fpu/k_cos.c: Use inline version of __cos.
2051         * sysdeps/m68k/fpu/k_sin.c: Likewise.
2052         * sysdeps/m68k/fpu/k_tan.c: Likewise.
2054 Mon Sep  9 12:55:14 1996  Ulrich Drepper  <drepper@cygnus.com>
2056         * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): Check for
2057         available character before converting number and return with
2058         error if none is available.
2060 Fri Sep  6 22:09:08 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2062         * sysdeps/unix/sysv/linux/init-first.h: New file, generic
2063         implementation for architectures where parameters are passed on
2064         stack.
2065         * sysdeps/unix/sysv/linux/m68k/init-first.h: Removed.
2066         * sysdeps/unix/sysv/linux/i386/init-first.h: Removed.
2068 Fri Sep  6 22:05:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2070         * configure.in: Remove unneeded sysnames frobbing.
2072 Mon Sep  9 05:29:09 1996  Ulrich Drepper  <drepper@cygnus.com>
2074         * time/zic.c: Update from ADO 96l.
2075         * time/africa: Update from ADO 96k.
2076         * time/antarctica: Likewise.
2077         * time/asia: Likewise.
2078         * time/australia: Likewise.
2079         * time/europe: Likewise.
2080         * time/northamerica: Likewise.
2081         * time/southamerica: Likewise.
2083 Mon Sep  9 05:03:47 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
2085         * sysdeps/unix/sysv/linux/i386/init-first.h: Work around buggy
2086         gcc <= 2.7.2.1 which optimizes away address operations on weak
2087         objects.
2089         * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): New macro.
2090         Like INT_FIELD but also accept non-existing field.
2091         * shadow/sgetspent_r.c (LINE_PARSER): Use INT_FIELD_MAYBE_NULL
2092         for last four fields.
2093         * shadow/putspent.c (putspent): Print `:' after numeric value.
2095 Mon Sep  9 02:42:48 1996  Richard Henderson  <rth@tamu.edu>
2097         * libio/stdio.h (BUFSIZ): Define using _IO_BUFSIZ.
2099 Sun Sep  8 16:43:56 1996  Ulrich Drepper  <drepper@cygnus.com>
2101         * Make-dist: Filter out $(add-ons) from $(subdirs).
2102         Don't distribute TAGS files.
2103         ($(tardir).tar): Remove dist.tar when all is done.
2104         * manual/Makefile (distribute): Add libc.info*.
2105         * libio/Makefile (distribute): Add Banner.
2106         * inet/Makefile (headers): Add netinet/tcp.h.
2108         * resolv/Makefile (libresolv-routines): Add getnetnamadr.
2110         * crypt-README: Removed.
2111         * gnu-stabs.h: Removed.
2113         * sysdeps/alpha/copysign.S: Renamed to...
2114         * sysdeps/alpha/s_copysign.S: ...this.
2115         * sysdeps/alpha/fabs.S: Renamed to...
2116         * sysdeps/alpha/s_fabs.S: ...this.
2118         * sysdeps/m68k/isinfl.c: Renamed to...
2119         * sysdeps/m68k/s_isinfl.c: ...this.
2120         * sysdeps/m68k/isnanl.c: Renamed to...
2121         * sysdeps/m68k/s_isnanl.c: ...this.
2123         * sysdeps/sparc/sqrt.c: Renamed to...
2124         * sysdeps/sparc/e_sqrt.c: ...this.  Function name now is
2125         __ieee754_sqrt.
2127         * sysdeps/generic/get_str.c: Removed.
2129         * sysdeps/ieee754/cbrt.c: Removed.
2130         * sysdeps/ieee754/drem.c: Removed.
2131         * sysdeps/ieee754/logb.c: Removed.
2132         * sysdeps/ieee754/sqrt.c: Removed.
2134         * sysdeps/stub/cbrt.c: Removed.
2135         * sysdeps/stub/cos.c: Removed.
2136         * sysdeps/stub/drem.c: Removed.
2137         * sysdeps/stub/isinf.c: Removed.
2138         * sysdeps/stub/isinfl.c: Removed.
2139         * sysdeps/stub/isnanl.c: Removed.
2140         * sysdeps/stub/logb.c: Removed.
2141         * sysdeps/stub/sin.c: Removed.
2142         * sysdeps/stub/sqrt.c: Removed.
2144         * sysdeps/tahoe/log10.c: Removed.
2146         * sysdeps/vax/index.s: Removed.
2147         * sysdeps/vax/rindex.s: Removed.
2148         * sysdeps/vax/bcmp.s: Removed.
2149         * sysdeps/vax/log10.c: Removed.
2150         * sysdeps/vax/infnan.c: Removed.
2151         * sysdeps/vax/Dist: Add fl.h.
2153         * sysdeps/unix/sysv/linux/alpha/Dist: Add llseek.S.
2155         * inet/rcmd.c (rcmd): Make messages more uniform.
2157 Sun Sep  8 14:15:42 1996  Ulrich Drepper  <drepper@cygnus.com>
2159         * po/de.po: Update.
2160         * po/es.po: Update.
2161         * po/ko.po: Update.
2162         * po/pl.po: New file.
2163         * po/nl.po: New file.
2165 Sat Sep  7 18:41:17 1996  Richard Henderson  <rth@tamu.edu>
2167         * Makeconfig (+link): Filter out start, pre & postinit from the
2168         generic depenancies as well.
2169         * Rules: Add start, pre & postinit to the dependancies of
2170         $(others) and $(tests).
2172         * configure.in: elf_dirs missing "sysdeps" component.
2174 Sun Sep  8 02:36:02 1996  Ulrich Drepper  <drepper@cygnus.com>
2176         * locale/SYS_libc.c (_libc_intl_domainname): Change value to "libc".
2177         This is consistent with all other GNU packages.  We shouldn't
2178         take care for a possible clash.  Nobody will name the domain
2179         of a package libc if it is not the libc itself.
2180         * MakeTAGS ($P/SYS_libc.pot): Rename to $P/libc.pot.
2181         * po/Makefile (domainname): Change to libc.
2182         (distribute): Now ship libc.pot.
2183         * catgets/gencat.c (usage): Use `PACKAGE' for package name in
2184         version information banner.
2185         Change bug report address to bug-glibc@prep not @gnu.
2186         * db/makedb.c (PACKAGE): New macro.  Set to _libc_intl_domain.
2187         (main): Use `PACKAGE' for package name in version information
2188         banner.
2189         Change bug report address to bug-glibc@prep not @gnu.
2190         * locale/programs/locale.c (main): Use `PACKAGE' for package name
2191         in version information banner.
2192         Change bug report address to bug-glibc@prep not @gnu.
2193         * locale/programs/localedef.c (main): Likewise.
2195         * version.h (VERSION): Bump to 1.94.
2197         * locale/Makefile (distribute): Add locale.c and localedef.c.
2199 Sat Sep  7 14:00:33 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2201         * catgets/catgets.c (catopen): Allocate sizeof(*result) bytes
2202         instead of sizeof(nl_catd) (which is just a pointer!).
2204 Sat Sep  7 19:39:19 1996  Ulrich Drepper  <drepper@cygnus.com>
2206         * Makefile ($(objpfx)version-info.h): Generate from Banner files.
2207         * version.c (banner): Add contents of version-info.h to string.
2209         * Makerules: If $($(subdir)-version) is available name versioned
2210         shared library according to this value instead of glibc's version.
2212         * libio/Banner: New file.
2214         * elf/eval.c (funcall): Write error message in case function is
2215         not found.
2216         (eval): Recognize `_' in names.
2218 Sat Sep  7 05:15:45 1996  Ulrich Drepper  <drepper@cygnus.com>
2220         * libio/iofdopen: Initialize _lock field only if _IO_MTSAFE_IO.
2221         * libio/iofopen: Likewise.
2222         * libio/iofopncook.c: Likewise.
2223         * libio/iopopen.c: Likewise.
2224         * libio/iovsprintf.c: Likewise.
2225         * libio/iovsscanf.c: Likewise.
2226         * libio/memstream.c: Likewise.
2227         * libio/vasprintf.c: Likewise.
2228         * libio/vdprintf.c: Likewise.
2229         * libio/vsnprintf.c: Likewise.
2231 Sat Sep  7 03:55:47 1996  Ulrich Drepper  <drepper@cygnus.com>
2233         * Makeconfig (soversions.mk): Also use shlib-versions files
2234         in add-on directories.
2235         * config.make.in (config-defines): Remove.  Not used anymore.
2236         (defines): New variable.  Initiliazed by @DEFINES@.
2237         * configure.in: Add AC_SUBST(DEFINES).
2239         * libio/Makefile (routines): When compiling reentrant libc add
2240         clearerr_u, feof_u, ferror_u, fputc_u, getc_u, getchar_u,
2241         iofflush_u, putc_u, putchar_u, ioflockfile.
2242         (CPPFLAGS): Add -D_IO_MTSAFE_IO for reentrant libc.
2244         * sysdeps/stub/libc-lock.h: Add stubs for __libc_cleanup_region_start
2245         and __libc_cleanup_region_end.
2247         * sysdeps/unix/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
2248         using __errno_location function.
2249         * sysdeps/unix/sysv/linux/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
2250         using __errno_location function.
2251         (__errno_location): New function.
2252         * sysdeps/unix/sysv/linux/i386/sysdep.h [PIC]: Add second
2253         syscall_error handler for reentrant libc.
2255         * sysdeps/unix/opendir.c: Remove unneeded `;'.
2257         * libio.h [_IO_MTSAFE_IO]: Include <pthread.h>.
2258         [!_IO_MTSAFE_IO]: Define _IO_flockfile and _IO_funlockfile
2259         as empty macros.
2260         * libioP.h: Include <libc-lock.h>.
2261         * libio/stdio.h: Add prototypes for *_locked and *_unlocked
2262         functions.
2264         * libio/clearerr.c: Use _IO_ protected versions of flockfile
2265         and funlockfile to be namespace clean.
2267         * libio/genops.c: Use __libc_lock_* macros for handling lock.
2269         * libio/iofdopen: Add initialization of _lock in _IO_FILE.
2270         * libio/iofopen: Likewise.
2271         * libio/iofopncook.c: Likewise.
2272         * libio/iopopen.c: Likewise.
2273         * libio/iovsprintf.c: Likewise.
2274         * libio/iovsscanf.c: Likewise.
2275         * libio/memstream.c: Likewise.
2276         * libio/vasprintf.c: Likewise.
2277         * libio/vdprintf.c: Likewise.
2278         * libio/vsnprintf.c: Likewise.
2280         * libio/fgetc.c: Use __libc_cleanup_region_* macros instead
2281         of flockfile etc.
2282         * libio/fputc.c: Likewise.
2283         * libio/freopen.c: Likewise.
2284         * libio/fseek.c: Likewise.
2285         * libio/getc.c: Likewise.
2286         * libio/getchar.c: Likewise.
2287         * libio/iofclose.c: Likewise.
2288         * libio/iofflush.c: Likewise.
2289         * libio/iofgetpos.c: Likewise.
2290         * libio/iofgets.c: Likewise.
2291         * libio/iofputs.c: Likewise.
2292         * libio/iofread.c: Likewise.
2293         * libio/iofsetpos.c: Likewise.
2294         * libio/ioftell.c: Likewise.
2295         * libio/iofwrite.c: Likewise.
2296         * libio/iogetdelim.c: Likewise.
2297         * libio/iogets.c: Likewise.
2298         * libio/ioputs.c: Likewise.
2299         * libio/iosetbuffer.c: Likewise.
2300         * libio/iosetvbuf.c: Likewise.
2301         * libio/ioungetc.c: Likewise.
2302         * libio/putc.c: Likewise.
2303         * libio/putchar.c: Likewise.
2304         * libio/rewind.c: Likewise.
2305         * stdio-common/vfprintf.c: Likewise.
2306         * stdio-common/vfscanf.c: Likewise.
2308         * libio/clearerr_u.c: Correct alias name.
2309         * libio/ferror_u.c: Likewise.
2310         * libio/fileno.c: Likewise.
2311         * libio/fputc_u.c: Likewise.
2312         * libio/getc.c: Likewise.
2313         * libio/getc_u.c: Likewise.
2314         * libio/getchar.c: Likewise.
2315         * libio/getchar_u.c: Likewise.
2316         * libio/putc.c: Likewise.
2317         * libio/putchar.c: Likewise.
2319         * libio/feof_u.c: Undefine macro with name of function before
2320         definition of function itself.
2322         * libio/ioflockfile.c: New file.  Implementation of flockfile and
2323         funlockfile.
2325         * libio/putchar_u.c: Fix typo.  Use stdout instead of fp.
2327         * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
2328         _malloc_loc.
2330         * malloc/free.c: Include <libc-lock.h>.
2331         * malloc/realloc.c: Likewise.
2332         * malloc/malloc-find.c: Likewise.
2333         * malloc/malloc-size.c: Likewise.
2334         * malloc/malloc-walk.c: Likewise.
2335         * malloc/memalign.c: Likewise.
2336         * malloc/malloc.c: Likewise.
2338         * sysdeps/i386/dl-machine.h: Correct clearing of _dl_starting_up.
2340 Fri Sep  6 19:38:49 1996  Ulrich Drepper  <drepper@cygnus.com>
2342         * sysdeps/stub/libc-lock.h: Define __libc_lock_critical_start
2343         and __libc_lock_critical_end as empty macros.
2345         * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
2346         __libc_malloc_lock.
2347         * malloc/free.c: Include <libc-lock.h>.
2348         * malloc/malloc-find.c: Likewise.
2349         * malloc/malloc-size.c: Likewise.
2350         * malloc/malloc-walk.c: Likewise.
2351         * malloc/malloc.c: Likewise.
2352         * malloc/memalign.c: Likewise.
2353         * malloc/realloc.c: Likewise.
2355         * Makefile: Undo change from Mon Sep  2 22:15:14 1996.  No more
2356         extra_solibs pass.
2357         * Rules: Likewise.
2358         * extra-lib.mk: Likewise.
2359         * manual/Makefile: Likewise.
2361         * db/Makefile (makedb): Choose dependecies based on build-shared.
2362         Patch by Andres Schwab.
2364         * sysdeps/posix/sysconf.c: Don't use PTHREAD_DESTRUCTOR_ITERATIONS
2365         but _POSIX_THREAD_DESTRUCTOR_ITERATIONS.
2367         * sysdeps/unix/sysv/linux/errnos.h: New file.
2368         * sysdeps/unix/sysv/linux/schedbits.h: New file.
2369         * sysdeps/unix/sysv/linux/waitflags.h: New file.
2371         * sysdeps/unix/sysv/linux/gnu/types.h: Add definition of `key_t'.
2373 Fri Sep  6 08:26:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2375         * rpm/template: Fix typo in %build section.
2377 Fri Sep  6 03:31:07 1996  Ulrich Drepper  <drepper@cygnus.com>
2379         * sysdeps/unix/sysv/linux/errnos.h: Don't define errno macro when
2380         building libc without thread support.
2381         * resolv/netdb.h: Likewise for h_errno macro.
2383 Thu Sep  5 23:01:48 1996  Ulrich Drepper  <drepper@cygnus.com>
2385         * libc-symbols.h: Add new macro weak_const_function.  It's like
2386         weak_function, but the function is additionally marked as const.
2387         * features.h: Only include <sys/cdefs.h> if !__ASSEMBLER__.
2389 Thu Sep  5 22:55:49 1996  Richard Henderson  <rth@tamu.edu>
2391         * inet/herrno.c (__h_errno_location): New function.
2392         (h_errno): Make strong_alias __h_errno so that we can access
2393         the variable even if `h_errno' is a macro.
2394         * resolv/netdb.h: Define macro h_errno to access thread specific
2395         version of h_errno variable.  Declare alias __h_errno for h_errno.
2396         * resolv/res_query (h_errno): Remove definition.
2397         * sysdeps/unix/sysv/linux/errnos.h [!__ASSEMBLER__ && __USE_REENTRANT]:
2398         Add macro `errno' to get thread specific variable.
2399         * sysdeps/unix/alpha/sysdep.S [_LIBC_REENTRANT]: Set errno using
2400         __errno_location function.
2401         (__errno_location): New function.
2403 Thu Sep  5 21:08:44 1996  Ulrich Drepper  <drepper@cygnus.com>
2405         * posix/gnu/types.h: Remove definition of key_t.
2406         * sysdeps/generic/gnu/types.h: Move it to here.
2407         * sysdeps/unix/sysv/linux/gnu/types.h: Add Linux specific
2408         definition of key_t.
2410         * sysdeps/unix/sysv/linux/waitflags.h: New file.  Linux specific
2411         definitions.
2412         * sysdeps/unix/sysv/linux/schedbits.h: New file.  Include
2413         clone prototypes and associated flags.
2415 Thu Sep  5 13:18:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2417         * sysdeps/mach/hurd/i386/init-first.c (__libc_argc, __libc_argv):
2418         New variables.
2419         (init1): Initialize them.
2420         * hurd/hurdinit.c (_hurd_setproc): Now that happens to be
2421         available, pass __libc_argv in call to __proc_set_arg_locations.
2423         * gmon/gmon.c (write_hist): Call __profile_frequency instead of
2424         hertz.
2425         (hertz): Delete function.
2426         * gmon/Makefile (routines): Add `prof-freq'.
2427         * sysdeps/generic/prof-freq.c: New file.
2428         * sysdeps/mach/hurd/prof-freq.c: New (stubby) file.
2429         * sysdeps/mach/hurd/profil.c (profile_tick): New variable.
2430         (update_waiter): Store frequency in profile_tick.
2431         (__profile_frequency): New function.
2433         * sysdeps/mach/hurd/sendto.c (sendto): Use prototype definition
2434         syntax.
2436         * Rules (generated): Restore reference to $(generated).
2438         * mach/Machrules (mig.uh, mig.__h): Don't include $(user-MIGFLAGS)
2439         here.
2441         * malloc/free.c (free): __lib_malloc_lock -> __libc_malloc_lock.
2443         * malloc/free.c: Provide extern decl of __libc_malloc_lock.
2444         * malloc/realloc.c: Likewise.
2445         * malloc/malloc-find.c: Likewise.
2446         * malloc/malloc-size.c: Likewise.
2447         * malloc/malloc-walk.c: Likewise.
2448         * malloc/memalign.c: Likewise.
2450 Thu Sep  5 08:58:47 1996  Richard Henderson  <rth@tamu.edu>
2452         * sysdeps/alpha/elf/start.S: Make _start global again.
2454 Thu Sep  5 03:20:42 1996  Ulrich Drepper  <drepper@cygnus.com>
2456         Change configuration and Makefiles to allow add-ons to have a
2457         sysdeps/ directory hierachy.
2458         * configure.in: Test for sysdeps/ directory in add-ons.  Before
2459         all test and searches in these hierachies, too.
2460         * Makeconfig (full-config-subdirs): Define based on $(config-sysdirs).
2461         Extend with $(..) if not absolute path.
2462         Use $(full-config-subdirs) where $(config-sysdirs) was used.
2463         * Makefile ($(objpfx)sysd-dirs): Use config-sysdirs.
2464         * MakeTAGS: Use $(full-config-subdirs).
2465         * Makerules: Change comment to libc.so link script.
2466         (sysdirs): Define based on $(full-config-subdirs).
2467         (sysd-Makefile): Define using config-sysdirs.
2468         (sysd-rules): Likewise.
2469         * sysdeps/unix/Makefile (sysd-syscalls): Define based on +sysdep-dirs.
2470         * sysdeps/unix/make-syscalls.sh: Remove basedir argument.
2472 Wed Sep  4 01:32:21 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2474         * sysdeps/m68k/fpu/k_cos.c: Rewritten for better accuracy.
2475         * sysdeps/m68k/fpu/k_sin.c: Likewise.
2476         * sysdeps/m68k/fpu/k_tan.c: Likewise.
2478 Thu Sep  5 01:06:09 1996  Richard Henderson  <rth@tamu.edu>
2480         * malloc/free.c (free): Protect by using __libc_malloc_lock.
2481         * malloc/malloc-find.c (malloc_find_object_address): Likewise.
2482         * malloc/malloc-size.c (malloc_usable_size): Likewise.
2483         * malloc/malloc-walk.c (malloc_walk): Likewise.
2484         * malloc/memalign.c (memalign): Likewise.
2485         * malloc/realloc.c (realloc): Likewise.
2486         * malloc/malloc.c: Define __libc_malloc_lock.
2487         (_malloc_internal): Don't use `malloc'.  Instead look for
2488         `__malloc_hook' or call `_malloc_internal'.
2489         (malloc): Protect by using `__libc_malloc_lock'.
2490         * malloc/malloc.h: Declare `__libc_malloc_lock'.
2492 Mon Sep  2 22:42:59 1996  Richard Henderson  <rth@tamu.edu>
2494         * sysdeps/alpha/elf/start.S: Use weak_alias for __start
2495         instead of the hard definition.
2497         * sysdeps/alpha/dl-machine.h (RTLD_START): Add type info for
2498         _start and _dl_start_user.
2500         * sysdeps/unix/sysv/linux/alpha/init-first.h (SYSDEP_CALL_INIT):
2501         Make _dl_starting_up weak.  Add type info for NAME.
2503 Mon Sep  2 22:15:14 1996  Richard Henderson  <rth@tamu.edu>
2505         * Makefile (all): Add extra_solibs pass.
2506         (+subdir_targets): Same.
2507         * Rules (extra_solibs): New phony empty target for subdirs without
2508         extra libs.
2509         * extra-lib.mk: Build lib*.so* in extra_solibs not lib-noranlib.
2510         * manual/Makefile: Add dummy extra_solibs target.
2512 Sun Sep  1 15:41:22 1996  Richard Henderson  <rth@tamu.edu>
2514         * Makeconfig (+link): Add $(link-extra-libs).
2515         (link-extra-libs): New variable which expands to the full paths of
2516         the other libraries needed by a program, as controled by LDLIBS-$(@F).
2517         * db/Makefile: Use LDLIBS-makedb to link libdb not a dependency, as
2518         the later attempts to install the library before linking it.
2520         * sysdeps/unix/alpha/sysdep.S: Align errno.
2522         * sysdeps/unix/sysv/linux/alpha/ioperm.c (struct platform): Add
2523         hae_shift entry.
2524         (io): Move bus_memory_base and sparse_bus_memory_base into struct.
2525         (_hae_shift): New function.
2526         * sysdeps/unix/sysv/linux/alpha/sys/io.h: New file.  Prototypes
2527         for the bus query functions.
2529 Sat Aug 31 18:14:54 1996  Richard Henderson  <rth@tamu.edu>
2531         * elf/dl-close.c (_dl_close): In static executables, map->l_prev
2532         can be NULL when unloading a library.
2534         * elf/dl-open.c (_dl_open): Pass __environ instead of __libc_envp
2535         to the library .init function.
2537         * sysdeps/alpha/dl-machine.h (elf_machine_rela):  Since we omitted
2538         part of the COPY reloc processing earlier, omit the rest now --
2539         we'll get into less trouble later when some fool does use a COPY.
2541         * sysdeps/unix/sysv/linux/init-first.c (init): Accept argc et al as
2542         parameters.  Move all argc and __libc_multiple_libcs calculation out
2543         to init-first.h.  Use __environ not __libc_envp.
2544         * sysdeps/unix/sysv/linux/alpha/init-first.h: Rewrite.
2545         * sysdeps/unix/sysv/linux/i386/init-first.h: Rewrite.
2547 Thu Aug 29 20:26:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2549         * sysdeps/posix/profil.c (profil): Don't clobber saved timer and
2550         signal settings when profiling was already turned on.
2552         * csu/gmon-start.c (__gmon_start__) [HAVE_INITFINI]: Protect from
2553         being called twice.
2555 Wed Sep  4 01:31:50 1996  Ulrich Drepper  <drepper@cygnus.com>
2557         * sysdeps/unix/sysv/linux/i386/mmap.S: Test for
2558         0 < return value < -4096 and not < 0 to decide about failure.
2559         Reported by Andreas Jaeger.
2561 Tue Sep  3 19:04:05 1996  Ulrich Drepper  <drepper@cygnus.com>
2563         * stdio-common/vfscanf.c (__vfscanf): Don't count EOF char
2564         in %c format.
2566 Sat Aug 31 18:10:51 1996  Ulrich Drepper  <drepper@cygnus.com>
2568         * wcsmbs/wchar.h: Define prototypes for wcstoq and wcstouq only
2569         #ifdef __USE_GNU.
2571 Sat Aug 31 12:34:29 1996  Ulrich Drepper  <drepper@cygnus.com>
2573         * version.c: Add missing newline character in banner.
2575         * sysdeps/unix/sysv/linux/alpha/Dist: Correct typo.
2576         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
2578 Sat Aug 31 03:07:39 1996  Ulrich Drepper  <drepper@cygnus.com>
2580         * intl/l10nflist.c (_nl_normalize_codeset): We convert to lower
2581         case, so don't prepend uppercase `ISO' for only numeric arg.
2583 Wed Sep  4 16:16:13 1996  Ulrich Drepper  <drepper@cygnus.com>
2585         * sysdeps/mach/hurd/send.c (__send): De-ANSI-fy.
2586         * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
2588 Tue Sep  3 11:16:07 1996  Thomas Bushnell/ n/BSG  <thomas@gnu.ai.mit.edu>
2590         * shadow/lckpwdf.c (__ulckpwdf): Don't take address of LOCK in
2591         call to __libc_lock_lock.
2593         * sysdeps/mach/hurd/send.c (__send): Declare BUF const.
2594         * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
2596         * sysdeps/stub/ustat.c: Include <sys/ustat.h>.
2598         * misc/syslog.c (vsyslog): Fix typo (`mow_tm' -> `now_tm').
2600 Fri Aug 30 19:55:27 1996  Ulrich Drepper  <drepper@cygnus.com>
2602         * libio/genops.c: Make _cleanup an alias of _IO_cleanup.
2603         Reported by Erik Troan.
2605 Fri Aug 30 15:40:04 1996  Ulrich Drepper  <drepper@cygnus.com>
2607         * sysdeps/unix/sysv/linux/Dist: Add sys/procfs.h and
2608         sys/sysmacros.h.  Reported by Curtiss <1CMC3466@IBM.MTSAC.EDU>.
2610 Fri Aug 30 13:53:32 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
2612         * sysdeps/unix/mman/syscalls.list: `mmap' has 6 arguments, not 5.
2614 Fri Aug 30 13:01:10 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
2616         * sysdeps/i386/fpu/__math.h (tan): Pop 1.0 in ST to get
2617         real result.
2619 Fri Aug 30 03:33:33 1996  Ulrich Drepper  <drepper@cygnus.com>
2621         * sysdeps/libm-ieee754/s_cbrtl.c: New file.  `long double'
2622         implementation.
2624 Fri Aug 30 13:39:21 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2626         * Makerules (BUILD_CFLAGS): Use @(common-objpfx) for config.h, not
2627         $(..).  Some rules (like sysdeps/posix/Makefile for mk-stdiolim)
2628         do `cd' commands.
2629         (sed-remove-objpfx): Don't substitute for $(objpfx) anymore;
2630         $(common-objpfx) is good enough.
2631         * Rules (common-generated): Provide default (empty) value.
2632         (dummy.o, dummy.c, empty.o, empty.c): Put these in
2633         $(common-generated), not $(generated), and without $(..).
2634         (subdir_echo-distinfo): Treat $(common-generated) just like
2635         $(generated).
2636         (generated): Depend on the (suitably mutated) $(common-generated)
2637         files too.
2638         * Makerules (common-clean): Remove common-generated files too.
2639         * sysdeps/mach/hurd/Makefile (generated): Don't put errnos.d and
2640         stamp-errnos here.
2641         (common-generated): Do put errnos.d and stamp-errnos here.
2642         (rpath-link): Don't use +=; $(rpath-link) is a colon separated list.
2644         * sysdeps/mach/hurd/Makefile (before-compile): Add auth; also add
2645         auth to following rule to get it built.
2647 Fri Aug 30 01:26:44 1996  Ulrich Drepper  <drepper@cygnus.com>
2649         * sysdeps/unix/sysv/linux/i386/Dist: Add clone.S.
2650         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
2651         * sysdeps/unix/sysv/linux/alpha/Dist: Likewise.
2653         * version.c: Add comment about where to report bugs to.
2654         * catgets/gencat.c (usage): Likewise.
2655         * db/makedb.c (usage): Likewise.
2656         * locale/programs/locale.c (usage): Likewise.
2657         * locale/programs/localedef.c (usage): Likewise.
2659         * manual/socket.texi: A little bit better wording.
2661 Thu Aug 29 18:03:06 1996  Ulrich Drepper  <drepper@cygnus.com>
2663         * Makerules: Make sure directory exists before generating stamp file.
2664         (BUILD_CFLAGS): Always refer to using $(..).
2665         * manual/Makefile: Make sure directory exists before generating
2666         stamp file.
2667         (make-target-directory): Add macro definition.
2668         * sysdeps/generic/Makefile: Make sure directory exists before
2669         generating stamp file.
2671         * Makefile (distribute): Add autolock.sh.  Reported by Fila Kolodny.
2673 Tue Aug 27 10:06:22 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2675         When compiling in separate directory put objects into
2676         subdirectories matching the source layout.
2677         * Makeconfig (objpfx) [ifdef objdir]: Append $(subdir).
2678         When looking for configparms try in $(common-objpfx).
2679         Use $(common-objpfx)SUBDIR to find objects from other subdirectory
2680         builds.
2681         * Makerules: Add $(objpfx) to vpath list.
2682         (make-dummy-dep): Use $(common-objpfx) to avoid creating dummy.d
2683         more than once.  All uses in dependency lists changed.
2684         (+make-deps): Make target directory.
2685         (sed-remove-objpfx): Substitute $(common-objpfx).
2686         (do-ar, build-extra-lib, $(common-objpfx)stub-$(subdir)): Use
2687         $(objpfx) instead of $(objdir) for cd command.
2688         (O%-lib): Always find libc relative to $(..).
2689         (subdir-stamps): Collect stamp files from subdirs.
2690         (common-mostlyclean): Remove stub file in $(common-objpfx).
2691         * MakeTAGS ($P/siglist.pot): Find siglist.c in stdio-common.
2692         * Rules (dep-dummy-lib): Use $(common-objpfx) to avoid creating to
2693         more than once.
2694         ($(objpfx)dummy.c, $(objpfx)empty.c): Change target name to use
2695         $(common-objpfx).  All uses in dependency lists changed.
2696         (generated): Prepend $(..) to names.
2697         * bare/Makefile ($(objpfx)lib$(config-vendor).a): Remove $(objpfx)
2698         from $@.
2699         * nss/Makefile ($(objpfx)libnss_dns.so, $(objpfx)libnss_db.so):
2700         Use $(common-objpfx) instead of $(..) in dependencies.
2701         * sysdeps/mach/Makefile (mach-objpfx): Unconditionally use
2702         $(common-objpfx) instead of $(..) and (objpfx).
2703         * sysdeps/mach/hurd/Makefile (hurd-objpfx): Likewise.
2704         (rpath-link): Likewise.
2705         (rpcuserlibs): Likewise.
2706         * sysdeps/unix/Makefile [$(subdir) = stdio-common]: Check for
2707         errlist.c in $(objpfx), not $(common-objpfx).
2708         ($(common-objpfx)s-proto.d): Special rule not covered by pattern
2709         rule.
2710         * sysdeps/unix/make-syscalls.sh: Make syscall rules depending on
2711         s-proto.d in $(common-objpfx), not $(objpfx).
2713 Thu Aug 29 17:45:49 1996  Ulrich Drepper  <drepper@cygnus.com>
2715         * nss/nsswitch.c (nss_dlerror_run): Free returned error
2716         string.
2718 Thu Aug 29 15:53:33 1996  Ulrich Drepper  <drepper@cygnus.com>
2720         * sysdeps/libm-ieee754/e_acoshl.c: New file. `long double'
2721         implementation.
2722         * sysdeps/libm-ieee754/e_atanhl.c: Likewise.
2723         * sysdeps/libm-ieee754/e_remainderl.c: Likewise.
2724         * sysdeps/libm-ieee754/e_scalbl.c: Likewise.
2725         * sysdeps/libm-ieee754/s_asinhl.c: Likewise.
2726         * sysdeps/libm-ieee754/s_cosl.c: Likewise.
2727         * sysdeps/libm-ieee754/s_sinl.c: Likewise.
2728         * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
2729         * sysdeps/libm-ieee754/s_tanl.c: Likewise.
2731 Thu Aug 29 12:00:30 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2732         
2733         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Correct
2734         spelling error of _hurd_itimerval.
2736         * mach/Makefile (MIGFLAGS-mach/mach4): Define variable.
2737         * mach/Machrules (mig.uh, mig.__h): Include $(user-MIGFLAGS) and
2738         $(MIGFLAGS-$*) here too, as well as in the code-generating MiG calls. 
2739         
2740         * hurd/hurdinline.c: Include "hurd.h" for function definitions too. 
2741         
2742         * stdio/fseek.c (fseek): Don't assume we know the file position;
2743         other handles may have changed it.  So set STREAM.__offset to -1
2744         before calling __stdio_check_offset to make sure we have a correct
2745         value.
2747 Thu Aug 29 00:28:08 1996  Ulrich Drepper  <drepper@cygnus.com>
2749         * stdio-common/printf_fp.c (__printf_fp): Use default value '.' if
2750         `decimal' char is 0.
2752         * C-numeric.c (not_available): New constant.
2753         (_nl_C_LC_NUMERIC): Use `not_available' for grouping value.
2755         * nss/nsswitch.conf: Example configuration file.
2756         * nss/db-Makefile: Example Makefile for generation of databases
2757         for nss_db.
2758         * nss/Makefile (distribute): Add nsswitch.conf and db-Makefile.
2760 1996-08-28  Paul Eggert  <eggert@twinsun.com>
2762         * C-messages.c (_nl_C_LC_MESSAGES): Set yesexpr to "^[yY]" and
2763         noexpr to "^[nN]"; this conforms to POSIX.2.
2765         * C-time.c (_nl_C_LC_TIME): Change %d to %e in d_t_format, to
2766         conform to POSIX.2.
2768 1996-08-28  Paul Eggert  <eggert@twinsun.com>
2770         * C-monetary.c (not_available): New constant.
2771         (_nl_C_LC_MONETARY): Set mon_decimal_point to "", and set
2772         mon_grouping, int_frac_digits, frac_digits, p_cs_precedes,
2773         p_sep_by_space, n_cs_precedes, n_sep_by_space, p_sign_posn, and
2774         n_sign_posn to CHAR_MAX, as required by the POSIX Standard.
2776 Wed Aug 28 23:12:28 1996  Ulrich Drepper  <drepper@cygnus.com>
2778         * nss/nss_db/db-XXX.c: Correct function names.  They must be
2779         `_nss_db_*' instead of `_nss_files_*'.
2780         (lookup): `parse_line' returns 1 if succesful.
2781         * nss/nss_files/files-service.c (servbyname): Key for database
2782         must also contain protocol names.
2783         (servbypt): Likewise.
2784         Test must also check for protocol.  Add `proto' argument.
2786 Tue Aug 27 09:56:13 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2788         * MakeTAGS ($P/subdirs.pot): Prefix all file names, not only the
2789         first one.
2791 Tue Aug 27 17:45:21 1996  Ulrich Drepper  <drepper@cygnus.com>
2793         * Makerules: Add some test for correct version of GNU Make.
2795         * io/fcntl.h: Undo change from Mon Aug 26 22:22:17 1996.
2796         * sysdeps/unix/sysv/linux/fcntlbits.h: Place macros here instead.
2798         * sysdeps/generic/dl-sysdep.c: Initialize break address to
2799         avoid overwriting last page (OK, Roland).
2801 Tue Aug 27 16:20:37 1996  Ulrich Drepper  <drepper@cygnus.com>
2803         * resolv/resolv.h: Update from BIND-4.9.5-T3A.
2804         * resolv/arpa/nameser.h: Likewise.
2805         * resolv/res_init.c: Likewise.
2806         * resolv/res_debug.c: Likewise.
2807         * resolv/res_mkquery.c: Likewise.
2809 Tue Aug 27 15:47:04 1996  Ulrich Drepper  <drepper@cygnus.com>
2811         * elf/dl-error.c (catch): Define errstring element not as const.
2812         (_dl_catch_error): ERRSTRING argument is not const pointer.
2813         Initialize *ERRSTRING and *OBJNAME separately.
2814         * elf/link.h: Change prototype for `_dl_catch_error'.
2816         * elf/dl-load.c (_dl_map_object): Use separate variable for
2817         copied NAME to avoid `const' warning.
2819         * elf/dlerror.c: Make `last_errstring' variable not const pointer.
2821         * elf/rtld.c: Implement reading of /etc/ld.so.preload.  This
2822         provides preloading even for SUID binaries.
2823         Add some more casts to avoid signed<->unsigned warnings.
2825 Tue Aug 27 15:40:28 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
2827         * posix/sys/types.h: Define loff_t.
2828         * sysdeps/unix/sysv/linux/gnu/types.h: Define __loff_t.
2830 Mon Aug 26 22:22:17 1996  Ulrich Drepper  <drepper@cygnus.com>
2832         * io/fcntl.h: Add definition for BSD F* macros.
2834         * misc/init-misc.c (__init_misc): Make static.
2835         * misc/Makefile: Pass -fkeep-inline-functions flag for init-misc.c.
2837         * configure.in: Add test for -fno-exception option of gcc.
2838         * config.make.in: Add definition of have-no-exceptions.
2839         * Makerules: Define no-exceptions based on have-no-exceptions.
2840         * csu/Makefile: When translating initfini.c pass $(no-exceptions).
2841         This is necessary for gcc >= ss-960816.
2843 Mon Aug 26 17:16:48 1996  Richard Henderson  <rth@tamu.edu>
2845         * sysdeps/alpha/dl-machine.h: Clear startup flag.
2847 Fri Aug 16 21:17:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2849         * Makerules (o-iterator-doit): Simplify reference to autolock
2850         script.
2852 Sat Aug 24 15:27:41 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2854         * sysdeps/mach/hurd/getcwd.c
2855         (_hurd_canonicalize_directory_name_internal): After resizing the
2856         buffer move the current contents to the end.  Correctly relocate
2857         file name pointer to upper half of the buffer.
2859 Mon Aug 26 15:49:59 1996  Ulrich Drepper  <drepper@cygnus.com>
2861         * rtld.c (dl_main): Remove code to call ld.so initializer.  This
2862         was introduced for compatibility with Linux ld.so and would not
2863         be used anymore.  Now we don't have any good values to use as the
2864         parameters to the initializer so simply remove it.
2866 Sun Aug 25 18:25:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2868         * gmon/gmon.c (ERR): Don't write the terminating NUL.
2870         * sysdeps/posix/profil.c (profil): Disable the profiling timer at
2871         first.
2872         (profil_count): Use 64 bit arithmethic to avoid overflow.
2874         * sysdeps/generic/machine-gmon.h (MCOUNT): Fix argument order.
2876 Mon Aug 26 16:31:33 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2878         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Tolerate NEW
2879         being null; in that case don't touch the timer at all (but do
2880         return something in OLD if necessary).
2882 Mon Aug 26 13:35:16 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2884         * sysdeps/mach/hurd/i386/init-first.c (__libc_multiple_libcs): New
2885         variable.
2886         * sysdeps/i386/init-first.c: Likewise.
2887         * sysdeps/stub/init-first.c: Likewise.
2889 Mon Aug 26 02:01:37 1996  Ulrich Drepper  <drepper@cygnus.com>
2891         * elf/dl-open.c (_dl_open): Call library initializer with
2892         correct command line arguments and environment information.
2893         * elf/rtld.c (dl_main): Provide arguments to initializer of
2894         ld.so itself.
2896 Sun Aug 25 19:15:46 1996  Ulrich Drepper  <drepper@cygnus.com>
2898         * shadow/Makefile (routines): Add lckpwdf.
2899         * shadow/lckpwdf.c: New file.
2901         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Force
2902         argument `cw' to be placed in memory.  Patch by Torbjorn Granlund.
2904 Sun Aug 25 12:53:37 1996  Ulrich Drepper  <drepper@cygnus.com>
2906         * configure.in: Add definition for `__eh_pc' and `__throw' in
2907         test for --no-whole-archive.  The compiler generates dependencies
2908         for this but none of the standard librares and startup files
2909         are used.  Necessary for gcc >= ss-960816.
2911 Sun Aug 25 01:31:33 1996  Ulrich Drepper  <drepper@cygnus.com>
2913         * elf/dl-error.c (_dl_signal_error): If error is catched, malloc
2914         return string since string might be on stack.
2915         * elf/dl-lookup.c (_dl_lookup_symbol): Undo change of
2916         Wed Aug 21 10:14:59 1996.
2917         * elf/dlerror.c (dlerror): Free error string after printing.
2918         (_dlerror_run): If error string was not printed since last error
2919         free string.
2920         * rtld.c (dl_main): Free error string in case of error.
2922 Sat Aug 24 03:16:47 1996  Ulrich Drepper  <drepper@cygnus.com>
2924         * misc/syslog.c (vsyslog): Don't use `localtime' or `gmtime' since
2925         this changes the global state for `localtime' and `gmtime'.  Use
2926         `__localtime_r'/`__gmtime_r' instead.
2927         * resolv/res_debug.c (__p_secstodate): Likewise.
2928         * sysdeps/generic/ftime.c: Likewise.
2929         * sysdeps/posix/gettimeofday.c: Likewise.
2930         Reported by Paul Eggert.
2932         * time/gmtime.c: De-ANSI-fy.
2933         * time/strftime.c: Don't call non-reentrant functions which change
2934         state.
2936 Wed Aug 21 10:14:59 1996  Richard Henderson  <rth@tamu.edu>
2938         * elf/dl-lookup.c (_dl_lookup_symbol): Malloc the error string rather
2939         than putting it on the stack.
2941 Wed Aug 21 10:12:42 1996  Richard Henderson  <rth@tamu.edu>
2943         * elf/rtld.c (dl_main): When looking up symbols in response to --list,
2944         don't find .plt entries.
2946 Mon Aug 19 23:18:12 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2948         * sysdeps/m68k/dl-machine.h (RTLD_START): Optimize clearing
2949         _dl_starting_up.
2951 Tue Aug 20 17:42:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2953         * stdio/linewrap.c (line_wrap_stream): Initialize D->seek.
2955 Sat Aug 17 12:19:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2957         * login/pututline_r.c (__pututline_r): Fix handling of case where
2958         getutid_r() fails with ESRCH.  Reported by Miquel van Smoorenburg.
2960 Wed Aug 14 14:10:54 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2962         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Change entry
2963         for "Jensen" so _bus_base() returns 0 on that platform.  Use
2964         _bus_base_sparse() to determine base address of sparse memory.
2966         * sysdeps/unix/sysv/linux/sys/io.h: Enclose #include <asm/io.h>
2967         and declarations in __BEGIN_DECLS/__END_DECLS.
2969 Sun Aug 18 13:37:09 1996  Ulrich Drepper  <drepper@cygnus.com>
2971         * err.h: New file.  Wrapper around misc/err.h.
2973         Correct solution of multiple initialization problem by
2974         Roland McGrath.
2975         * csu/initfini.c: Remove global variable __libc_is_static.
2976         * elf/rtld.c: Introduce new global variable _dl_starting_up.
2977         It's nonzero during the startup.
2978         * elf/dl-open.c (_dl_open): When _dl_start function is not
2979         available (i.e., if in static libc) set `__libc_multiple_libcs'
2980         to nonzero value.
2981         * sysdeps/unix/sysv/linux/init-first.c (__libc_multiple_libc):
2982         New global variable.
2983         (init): Undo change of Fri Aug  2 03:12:40 1996.
2984         Initialize `__libc_multiple_libcs' to nonzero only if this is
2985         a shared lib called from a statically linked program and don't
2986         call `personality' and `setfpucw' in this case either.
2987         * sysdeps/generic/sbrk.c: Undo change of Fri Aug  2 03:12:40 1996.
2988         Don't call brk(0) until `__libc_multiple_libcs' is nonzero.
2989         * sysdeps/i386/dl-machine.h (RTLD_START): Clear _dl_starting_up
2990         before jumping to user code.
2991         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2993 Fri Aug 16 04:59:01 1996  Ulrich Drepper  <drepper@cygnus.com>
2995         * sysdeps/unix/sysv/linux/init-first.c: Remove hack from
2996         Thu Aug  8 12:40:20 1996.
2997         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = csu]: Use
2998         -fkeep-inline-functions flag instead.
3000 Fri Aug 16 16:11:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3002         * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Treat
3003         EPFNOSUPPORT and EAFNOSUPPORT as implying NSS_STATUS_UNAVAIL just
3004         like ECONNREFUSED already does.
3005         (_nss_dns_gethostbyaddr_r): Likewise.
3006         * nss/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
3007         (_nss_dns_getnetbyaddr_r): Likewise.
3009         * sysdeps/mach/hurd/socket.c (socket): For message transmission
3010         and RPC errors that indicate that the socket server is not really
3011         present and able to do its job, turn the error into EPFNOSUPPORT.
3013 Fri Aug 16 01:24:33 1996  Ulrich Drepper  <drepper@cygnus.com>
3015         * inet/ruserpass.c (userpass): Allocate buffer for .netrc file
3016         name dynamically.  Reported by Alan Cox.
3017         Uncomment warnings and mark as translatable.
3019         * time/strftime (strftime): Add implementation for %s and %z
3020         format.  Change behaviour for unknown format character: now
3021         simply print it.  This matches the behaviour of printf.
3022         Reported by Jim Meyering.
3023         * manual/time.texi: Document all formats and flags of strftime.
3025 Thu Aug 15 18:02:51 1996  Ulrich Drepper  <drepper@cygnus.com>
3027         * elf/rtld.c (dl_main): Loaded object has type lt_executable,
3028         not lt_library.
3030         * misc/sys/select.h: Define fd_set using typedef, not #define.
3031         Proposed by David Mosberger-Tang.
3033 Thu Aug 15 12:48:21 1996  Ulrich Drepper  <drepper@cygnus.com>
3035         * po/header.pot: Use real description line.
3037 Thu Aug 15 04:42:44 1996  Ulrich Drepper  <drepper@cygnus.com>
3039         * elf/rtld.c (dl_main): When started with --verify prevent
3040         any warning.  Just exit with an error.
3041         * elf/ldd.sh.in: Don't run given object directly.  This fails for
3042         libraries.  Instead use $RTLD again.
3044 Thu Aug 15 02:08:59 1996  Ulrich Drepper  <drepper@cygnus.com>
3046         * manual/nss.texi: New file.  Document NSS.
3047         * manual/nsswitch.texi: New file.  Example configuration.
3049         * manual/string.texi: Document stpncpy, strdupa, and strndupa.
3050         * manual/example/strdupa.c: New file.  Example for strdupa.
3052 Wed Aug 14 21:36:16 1996  Ulrich Drepper  <drepper@cygnus.com>
3054         * stdlib/strtod.c (STRTOD): Correct assertion about size of
3055         wint_t and wchar_t.  Reported by David Mosberger-Tang.
3057 Mon Aug 12 22:40:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3059         * elf/dl-lookup.c (_dl_lookup_symbol): Remove fifth parameter
3060         RELOC_ADDR and make NOPLT a set of flags.  All callers
3061         changed.  Delete condition that checks for resolving to the
3062         location being filled in.  Add condition to skip the
3063         executable's symbols if requested.
3064         * elf/link.h: Change declaration of _dl_lookup_symbol
3065         accordingly.
3066         (DL_LOOKUP_NOEXEC, DL_LOOKUP_NOPLT): New definitions.
3067         * elf/dl-reloc.c (RESOLVE): Remove second parameter and rename
3068         NOPLT to FLAGS.
3069         * elf/dl-runtime.c (RESOLVE): Likewise.
3070         * elf/rtld.c (RESOLVE): Likewise.
3071         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Pass
3072         DL_LOOKUP_NOEXEC as second argument to the RESOLVE macro if
3073         processing a copy reloc, DL_LOOKUP_NOPLT for a jump slot
3074         reloc, zero otherwise.
3075         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
3076         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3077         * sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
3079 Wed Aug 14 17:57:08 1996  Ulrich Drepper  <drepper@cygnus.com>
3081         * MakeTAGS: Clean up use of --omit-header and -n for xgettext.
3082         * po/header.pot: Add empty line at end.
3084 Sun Aug 11 13:45:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3086         * MakeTAGS (all-pot): Remove $P/errlist.pot, all error messages
3087         are now in $P/stdio-common.pot.
3088         (XGETTEXTFLAGS-errlist.pot): Variable removed.
3090 Mon Aug 12 19:25:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3092         * Makerules (do-ar, o-iterator-doit): Compute path to autolock
3093         script at run time, not configure time.
3094         * config.make.in, configure.in: Undo previous change.
3096 Wed Aug 14 13:20:02 1996  Ulrich Drepper  <drepper@cygnus.com>
3098         * sysdeps/unix/sysv/linux/i386/close.S: Push return value of thread
3099         on stack as argument for `_exit'.  Reported by Andreas Schwab.
3101 Mon Aug 12 19:36:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3103         * sysdeps/unix/sysv/linux/m68k/clone.S: New file.
3105 Wed Aug 14 04:22:35 1996  Richard Henderson  <rth@tamu.edu>
3107         * elf/dl-load.c (_dl_map_object): Save name in malloced memory.
3108         (_dl_map_object_from_fd): Free name on error.
3110 Wed Aug 14 13:00:09 1996  Ulrich Drepper  <drepper@cygnus.com>
3112         * string/strdup.c: Use result of memcpy to avoid reloading.
3114 Tue Aug 13 00:55:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3116         * shadow/sgetspent_r.c (__sgetspent_r): Copy string to buffer, not
3117         the other way round.
3119 Tue Aug 13 20:51:21 1996  Ulrich Drepper  <drepper@cygnus.com>
3121         * stdlib/canonicalize.c (canonicalize): Add cast to prevent
3122         warning.
3124         * Makerules (o-iterator-doit): Use autolock.sh when running ranlib.
3126 Tue Aug 13 18:26:45 1996  Ulrich Drepper  <drepper@cygnus.com>
3128         * nss/nsswitch.c (__nss_configure_lookup): Use fact that list is
3129         sorted.
3131         Update from bind-4.9.5-T1A.
3132         * resolv/Makefile (libresolv-routines): Add base64, inet_net_ntop,
3133         inet_net_pton, inet_net.
3135         * resolv/gethnamaddr.c: Include <sys/types.h>.
3136         * resolv/getnetnamadr.c: Likewise.
3137         * resolv/herror.c: Likewise.
3138         * resolv/inet_addr.c: Likewise.
3139         * resolv/nsap_addr.c: Likewise.
3140         * resolv/res_comp.c: Likewise.
3141         * resolv/res_data.c: Likewise.
3142         * resolv/res_init.c: Likewise.
3143         * resolv/res_mkquery.c: Likewise.
3144         * resolv/res_query.c: Likewise.
3145         * resolv/res_send.c: Likewise.
3147         * resolv/gethnamaddr.c [! SPRINTF_CHAR] (SPRINTF): Cast return
3148         value of sprintf.
3149         * resolv/inet_ntop.c: Likewise.
3151         * resolv/gethnamaddr.c [BSD]: Include <stdlib.h>.
3152         Remove prototype of gethostbyname_ipv4.
3154         * resolv/inet_ntop.c, resolv/inet_pton.c: Use ISO C `mem*'
3155         functions instead of BSD `b*' functions.
3157         * resolv/nsap_addr.c: Add copyright message.
3159         * resolv/res_comp.c: Remove comment explaining label format.
3160         (res_mailok): Correct check.
3162         * resolv/res_debug: Include missing headers.
3163         (__fp_nquery): Handle `unused', `ad', and `cd' bits.
3164         (__p_fqnname): New function to print FQDN from compressed name.
3165         (__p_rr): Use __p_fqnname.  Correct printing of ".  Handle T_TXT
3166         correctly.  Add handling of T_KEY and T_SIG.
3167         Handle class and type names by using name arrays instead of
3168         explicit `switch'es.
3169         (__sym_ston, __sym_ntos, __sym_ntop): New functions to use arrays.
3170         (__dn_count_labels, __p_secstodate): New functions.
3172         * resolv/resolv.h (__RES): Update version number.
3173         (res_sym): New type.
3174         Add #defines for new functions.
3175         Declare sym_ntos, sym_ntop, b64_ntop, b64_pton, __p_fqnname,
3176         __p_secstodate, dn_count_labels.
3178         * resolv/arpa/nameser.h (__BIND): Update version number.
3179         Add KEYFLAG_* and ALGORITHM_* symbols.
3180         (HEADER): Add `ad' and `cd' flags.
3182         * inet/ient.h: Add prototypes for inet_neta, inet_net_ntop,
3183         and inet_net_pton.
3185         * manual/maint.texi: Document that we use bind-4.9.5.
3186         * INSTALL: Ditto.
3188 Mon Aug 12 19:03:22 1996  Thomas Bushnell n/BSG  <thomas@psilocin.gnu.ai.mit.edu>
3190         * sysdeps/generic/gnu/types.h: Declare __fd_mask as `unsigned long'.
3192         * mach/Makefile (mach/mach_host.uh): Depend on
3193         $(objpfx)/mach-syscalls.mk.
3194         ($(objpfx)mach-shortcuts.h): Depend on $(objpfx)mach/mach_host.h.
3195         (This fixes a make loop; thanks to Marcus Daniels
3196         <marcus@sysc.pdx.edu> for the patch.)
3198 Mon Aug 12 16:41:52 1996  Thomas Bushnell n/BSG  <thomas@gnu.ai.mit.edu>
3200         * io/getwd.c (getwd) [! PATH_MAX]: Don't assume that the user's
3201         buffer is any longer than the amount necessary to hold the
3202         filename; the Hurd getcwd uses the *entire* contents of the
3203         buffer, however long it is specified to be.
3205 Mon Aug 12 04:33:09 1996  Ulrich Drepper  <drepper@cygnus.com>
3207         * nss/nsswitch.c (__nss_database_lookup): Always release locks
3208         before returning.  Reported by Miles Bader.
3210 Mon Aug 12 03:31:58 1996  Ulrich Drepper  <drepper@cygnus.com>
3212         * nss/nsswitch.c (__nss_configure_lookup):  New function.
3213         Allows to specify services.
3214         * nss/XXX-lookup.h: Rename database variable and make global.
3215         * nss/databases.def: New file.  Real names of all databases.
3217         * nss/nss.h: New file.  Contains declaration useful for users
3218         and service developers.
3219         * nss/nsswitch.h: Move some declarations to nss/nss.h.
3220         * nss.h: New file.  Wrapper around nss/nss.h.
3222         * nss/Makefile (headers): Add nss.h.
3223         (distributes): Add databases.def.
3225 Sun Aug 11 16:19:42 1996  Ulrich Drepper  <drepper@cygnus.com>
3227         Help the poor people with fast machines by making sure only
3228         one `ar' commands works on the library.
3229         * autolock.sh: New file.  Written by Tom Tromey.
3230         * Makerules (do-ar): Call autolock.sh shell script instead of
3231         directly using `ar'.
3232         * config.make.in: Make configuration variable AUTOLOCK which
3233         gets initialized by configure.
3234         * configure.in: Define variable AUTOLOCK to point to autolock.sh
3235         script and mark it to substitute.
3237         * string/Makefile: Add -fno-builtin for tst-strlen.c, too.
3239         * sysdeps/generic/sbrk.c (__sbrk):  Get kernel brk address
3240         always only if in static libc or if statically linked program
3241         uses libc.so.
3243         * sysdeps/generic/sbrk.c (__sbrk):  Get kernel brk address
3244         always only if in static libc or if statically linked program
3245         uses libc.so.
3247 Sun Aug 11 01:12:38 1996  Richard Henderson  <rth@tamu.edu>
3249         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW
3250         startup by moving Icache flush from here ...
3251         (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here.
3252         (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused.
3254         * sysdeps/alpha/divrem.h: Update comment to reflect the actual
3255         calling conventions.  The code is already correct.
3257 Sun Aug 11 01:06:42 1996  Richard Henderson  <rth@tamu.edu>
3259         * string/Makefile: Compile tester with -fno-builtin as we want to
3260         test our implementations, not gcc's.
3262 Sat Aug 10 13:17:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3264         * shadow.h: New file.
3266         * sysdeps/unix/sysv/linux/netinet/in.h: Move
3267         __BEGIN_DECLS/__END_DECLS up so ntohl() et al are bracketed as
3268         well.
3270         * socket/sys/socket.h [__cplusplus]: Use old-style __SOCKADDR_ARG.
3271         g++ 2.7.2 (and earlier) has no transparent unions support.
3273 Fri Aug  9 18:50:06 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3275         * sysdeps/unix/sysv/linux/alpha/ioperm.c (_bus_base_sparse): New
3276         function to determine the base address of sparse bus memory.
3277         (APECS_*): Rename to CIA_*.
3278         (APECS_SPARSE_MEM, CIA_SPARSE_MEM): New macros.
3279         (platform): Add sparse_bus_memory_base member and initialize.
3280         (sparse_bus_memory_base): New variable.
3282 Tue Aug  6 10:23:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3284         * sysdeps/posix/ttyname_r.c (ttyname_r),
3285         sysdeps/posix/ttyname.c (ttyname): Return -1/NULL if
3286         !__isatty(fd) (POSIX.1 says so.)
3288         * sysdeps/unix/getlogin.c (getlogin): Fix to check fd 0 only.
3289         This is not a gross hack, after all---for compatibility,
3290         getlogin() really should check fd 0 only and not try to base its
3291         operation on the controlling tty.
3293 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3295         * sysdeps/unix/getlogin.c (getlogin): Add static variable NAME,
3296         change utmp_data from static to auto.
3298 Sun Aug 11 02:56:08 1996  Ulrich Drepper  <drepper@cygnus.com>
3300         * posix/unistd.h [__USE_MISC]: Add prototype for `nice'.
3301         Reported by David Mosberger-Tang.
3303 Sat Aug 10 02:05:28 1996  Richard Henderson  <richard@twiddle.tamu.edu>
3305         * sysdeps/libm-ieee754/s_isnan.c [NO_LONG_DOUBLE]: Add strong
3306         alias to `__isnanl'.
3308 Fri Aug  9 17:38:58 1996  Ulrich Drepper  <drepper@cygnus.com>
3310         * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
3311         get `struct timeval'.
3312         * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
3313         * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
3314         * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
3315         * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
3316         * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
3317         * sysdeps/unix/sysv/linux/direntry.h: Complete types in
3318         <linux/dirent.h>.
3319         * io/fts.h: Include <sys/types.h> to get dev_t.
3320         Reported by Matthias Urlichs.
3322         * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
3323         _IO_file_flags.  It's the same as _flags.
3324         Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
3326 Wed Aug  7 19:38:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3328         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
3330 Thu Aug  8 16:17:38 1996  Ulrich Drepper  <drepper@cygnus.com>
3332         * pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
3333         * pwd/getpwent_r.c: Likewise.
3334         * pwd/getpwnam.c: Likewise.
3335         * pwd/getpwnam_r.c: Likewise.
3336         * pwd/getpwuid.c: Likewise.
3337         * pwd/getpwuid_r.c: Likewise.
3339         * grp/getgrent.c: Define BUFLEN from NSS_BUFLEN_GROUP.
3340         * grp/getgrent_r.c: Likewise.
3341         * grp/getgrgid.c: Likewise.
3342         * grp/getgrgid_r.c: Likewise.
3343         * grp/getgrnam.c: Likewise.
3345         * pwd/fgetpwent_r.c: New file.  Reentrant version of fgetpwent.
3346         * pwd/fgetpwent.c: Rewrite to use fgetpwent_r.
3347         * pwd/Makefile (routines): Add fgetpwent_r.
3348         * pwd/pwd.h: Add prototypes for __fgetpwent_r and fgetpwent_r.
3350         * grp/fgetgrent_r.c: New file.  Reentrant version of fgetgrent.
3351         * grp/fgetgrent.c: Rewrite to use fgetgrent_r.
3352         * grp/Makefile (routines): Add fgetgrent_r.
3353         * grp/grp.h: Add prototypes for __fgetgrent_r and fgetgrent_r.
3355         Implement shadow password lookup functions.  This is no complete
3356         shadow password suite.
3357         * shadow/Makefile: New file.
3358         * shadow/fgetspent.c: New file.
3359         * shadow/fgetspent_r.c: New file.
3360         * shadow/getspent.c: New file.
3361         * shadow/getspent_r.c: New file.
3362         * shadow/getspnam.c: New file.
3363         * shadow/getspnam_r.c: New file.
3364         * shadow/putspent.c: New file.
3365         * shadow/sgetspent.c: New file.
3366         * shadow/sgetspent_r.c: New file.
3367         * shadow/shadow.h: New file.
3368         * shadow/spwd-lookup.c: New file.
3369         * shadow/nss_files/files-spwd.c: New file.
3371 Thu Aug  8 13:33:45 1996  Ulrich Drepper  <drepper@cygnus.com>
3373         * sysdeps/unix/sysv/linux/ftime.c: New file.  Available system
3374         call is only a stub.
3375         Reported by Matthias Urlichs.
3377         * Makeconfig [!default_cflags]: Change default value from `-g'
3378         to `-g -O'.
3380         * configure.in: Recognize i686.
3381         * sysdeps/i386/i686/Implies: Default on i586 optimized code.
3383 Thu Aug  8 12:40:20 1996  Matthias Urlichs  <smurf@smurf.noris.de>
3385         * Makeconfig [$(build-omitfp) == yes]: Add to CFLAGS-.so
3386         value of CFLAGS-.o, not CFLAGS-o.
3388         * sysdeps/unix/sysv/linux/init-first.c (init): Add volatile
3389         pointer to ourself.  Otherwise `gcc -O3' optimized init away.
3391 Thu Aug  8 01:41:43 1996  Ulrich Drepper  <drepper@cygnus.com>
3393         * elf/Makefile: Undo change of Tue Aug  6 14:27:11 1996.
3394         * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
3396 Thu Aug  8 01:15:59 1996  Ulrich Drepper  <drepper@cygnus.com>
3398         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
3399         to 0x137f to allow long double operations.
3401 Sun Aug  4 13:12:05 1996  Richard Henderson  <rth@tamu.edu>
3403         Bug Fixes:
3405         * nss/nsswitch.c (_res): Remove redundant variable definition.
3406         The real one is in resolve/res_init.c, and having both prevents
3407         using -fno-common when building the shared library.
3408         * sunrpc/rpc_prot.c (_null_auth): Same.  Original is in rpc_common.c.
3410         * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
3411         a .bss object not a COMMON symbol.
3413         * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
3414         $gp before referencing __sigsetjmp symbol.  Retain LITUSE for same.
3416         Optimizations:
3418         * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
3419         main loop for better dual-issue on EV5.  Rearrange binary search to
3420         pipeline better and trim one instruction.
3422         Cosmetic Changes:
3424         * time/localtime.c (localtime_r): Move lock declaration back next to
3425         the comment where it was before the 960724 change.
3427         * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
3428         The second word is supposed to be the hardware manufacturer.
3430         * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
3431         * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
3433         * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
3435         * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
3436         sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
3437         Same cleanups as with EV4 GMP stuff.
3439 Tue Jul 25 03:30:56 1996  Richard Henderson  <rth@tamu.edu>
3441         * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
3442         * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
3443         * sysdeps/unix/sysv/linux/i386/clone.S: New file.
3445 Sun Aug  4 00:12:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3447         * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
3448         `unsigned long'.
3450         * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
3452 Sat Aug  3 16:20:02 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3454         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
3455         Mikasa.
3457         * socket/sys/socket.h (send, __send, sendto): Declare buffer
3458         pointer as __const.
3460         * string/tester.c (main): Test stpncpy.
3462         * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
3463         segfault when called with an N that is not a multiple of four and
3464         src[N-1]=='\0'.
3466         * misc/syslog.c (LogType): New variable.
3467         (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
3468         try again with SOCK_STREAM (the Linux syslogd uses a socket of the
3469         latter type).
3470         (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
3471         terminator as a record-delimiter.  If __send(LogFile) fails,
3472         call closelog() so logfile gets re-opened next time.
3474 Wed Aug  7 15:15:14 1996  Ulrich Drepper  <drepper@cygnus.com>
3476         * elf/dl-open (_dl_open): Add cast to avoid warning.
3478         * manual/memory.texi: Improve some examples to give readers better
3479         advice: Use `stpcpy' instead of `strcat' if possible.
3480         * manual/string.texi: Document `strtok_r' and `strtok'.
3482         * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
3483         of Makeconfig.
3484         [$(cross-compiling)=no]: Change test before making librpcsvc
3485         to this from $(cross-compile).
3486         Reported by Andreas Schwab.
3488 Tue Aug  6 14:27:11 1996  Ulrich Drepper  <drepper@cygnus.com>
3490         * elf/Makefile (routines): Move dl-sysdep to here...
3491         (rtld-routines): ...from here.  This should make static linking
3492         work again.
3494         * locale/setlocale.c: Add local variable `lock' and add code to
3495         `setlocale' to avoid simultaneous changing of global data.
3497         * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
3498         * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
3499         `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
3500         of unprotected names.
3502 Tue Aug  6 01:13:56 1996  Ulrich Drepper  <drepper@cygnus.com>
3504         Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
3505         This requires to rename several functions to use __ protected
3506         names.
3507         * dirent/dirent.h: Add prototypes of __opendir, __closedir,
3508         and __readdir.
3509         * sysdeps/mach/hurd/closedir.c: Prepend function name with __
3510         and make old name a weak alias.
3511         * sysdeps/mach/hurd/getrlimit.c: Likewise.
3512         * sysdeps/mach/hurd/opendir.c: Likewise.
3513         * sysdeps/mach/hurd/readdir.c: Likewise.
3514         * sysdeps/stub/closedir.c: Likewise.
3515         * sysdeps/stub/opendir.c: Likewise.
3516         * sysdeps/stub/readdir.c: Likewise.
3517         * sysdeps/unix/closedir.c: Likewise.
3518         * sysdeps/unix/opendir.c: Likewise.
3519         * sysdeps/unix/readdir.c: Likewise.
3521         * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
3523         * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
3524         `__closedir' instead of unprotected names.
3526         * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
3527         instead of `isatty' since later is not part of ISO C.
3528         * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
3529         `open' since later is not part of ISO C.
3531         * login/endutent.c (endutent): Call `__endutent_r', not
3532         `endutent_r'.
3533         * login/endutent_r.c: Rename defined function to `__endutent_r',
3534         make `endutent_r' weak alias.
3535         * login/getutent.c (getutent): Call `__getutent_r', not
3536         `getutent_r'.
3537         * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
3538         * login/getutid_r.c: Rename defined function to `__getutent_r',
3539         make `getutent_r' weak alias.
3540         * login/getutline.c (getutline): Call `__getutline_r', not
3541         `getutline_r'.
3542         * login/getutline_r.c: Rename defined function to `__getutline_r',
3543         make `getutline_r' weak alias.
3544         * login/pututline_r.c: Rename defined function to `__pututline_r',
3545         make `pututline_r' weak alias.
3546         * login/setutent.c (setutent): Call `__setutline_r', not
3547         `setutline_r'.
3548         * login/setutent_r.c: Rename defined function to `__setutline_r',
3549         make `setutline_r' weak alias.
3550         Rename `utmpname' to `__utmpname' and make former weak alias.
3551         (__utmpname): Call `__strdup', not `strdup'.
3552         * login/utmp.h: Add prototypes for name space clean reentrant
3553         versions.
3554         * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
3555         and `__endutent_r' instead of unprotected names.
3557         * math/math.h: Add prototype for `__matherr'.
3558         * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
3559         of `matherr'.
3561         * nss/getXXbyYY.c: Call __ protected reentrant function.
3562         * nss/getXXent.c: Likewise.
3563         * nss/getXXbyYY_r.c: Define `get*' function with __ protected
3564         name.  Make usual name a weak alias.
3565         * nss/getXXent_r.c: Likewise.
3567         * posix/unistd.h: Add prototype for `__ttyname_r'.
3568         * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
3569         and make `ttyname_r' a weak alias.
3571         * resource/sys/resource.h: Add prototype for `__getrlimit'.
3572         * sysdeps/stub/getrlimit.c: Prepend function name with __
3573         and make old name a weak alias.
3574         * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
3575         and make `getrlimit' weak alias.
3577         * libc/stdio/stdio.h: Add prototype for `__vscanf'.
3578         * libc/stdio/vscanf.c: De-ANSI-fy.
3579         Rename function to `__vscanf' and make `vscanf' a weak alias.
3580         * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
3581         of `vscanf'.
3583         * stdio-common/reg-printf.c: De-ANSI-fy.
3584         Rename function to `__register_printf_function' and make
3585         `register_printf_function' weak alias.
3587         * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
3588         `wcsrtombs'.
3590         * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
3591         * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
3592         * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
3593         * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
3594         * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
3595         name a weak alias.
3596         * wcsmbs/mbsrtowcs.c: Likewise.
3597         * wcsmbs/wcrtomb.c: Likewise.
3598         * wcsmbs/wcsrtombs.c: Likewise.
3599         * wcsmbs/wchar.h: Add prototypes for __ protected versions.
3601         * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
3602         instead of `sigprocmask'.
3605         * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
3606         version getgrent_r, getgrgid_r, and getgrnam_r.
3607         * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
3608         version getpwent_r, getpwuid_r, getpwnam_r and __ protected
3609         names.
3610         * resolv/netdb.h: Complete rewrite.  No more BSD ugliness.
3613         * misc/error.c (private_strerror): Translate messages from table,
3614         too.
3616         * io/fcntl.h: Pretty printing.
3617         * misc/fstab.h: Likewise.
3618         * misc/ttyent.h: Likewise.
3619         * resource/sys/resource.h: Likewise.
3620         * string/argz.h: Likewise.
3621         * string/envz.h: Likewise.
3623         Add support for symbols from POSIX.1c (POSIX threads).
3624         * posix/getconf.c: Handle new sysconf symbols.
3625         * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
3626         _POSIX_LOGIN_NAME_MAX with minimal maximal values.
3627         * sysdeps/generic/confname.h: Define new symbols.
3628         * sysdeps/posix/sysconf.c: Handle new symbols.
3629         * sysdeps/stub/sysconf.c: Ditto.
3630         * sysdeps/unix/sysv/linux/sysconf.c: Removed.  Generic version
3631         is ok now.
3633         * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
3634         have real prototype.
3636         * sysdeps/generic/resourcebits.h: Add macro definition for
3637         RLIMIT_* values.  Some sources test using #ifdef whether specific
3638         limit is available.
3639         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
3640         * sysdeps/unix/sysv/linux/resourcebits.h: Removed.  We need
3641         separate files for the architectures.
3642         * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
3643         * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
3644         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
3645         * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
3647         * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
3648         and only default on `OPEN_MAX'.
3649         * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed.  Default is already
3650         the POSIX version.
3652         * time/Makefile (routines): Add ctime_r.
3653         * time/asctime.c: Add implementation of `asctime_r'.  Make
3654         `asctime' implementation based on reentrant version.
3655         * time/ctime_r.c: New file.
3656         * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
3657         and `ctime_r'.
3659 Sat Aug  3 18:41:36 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3661         * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
3662         (_nl_C_LC_CTYPE): Fix ordering.
3663         * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
3664         typo.
3666 Sat Aug  3 12:31:06 1996  Richard Henderson  <rth@tamu.edu>
3668         * csu/initfini.c: Discover the maximum alignment generated by the
3669         compiler when emitting a function.
3670         (_init): Make sure the end of the crti fragment is aligned.
3671         (_fini): Likewise.
3673 Fri Aug  2 03:12:40 1996  Ulrich Drepper  <drepper@cygnus.com>
3675         * initfini.c: (__libc_is_static): New variable.  Will be
3676         initialized in init-first.c.  Some actions in the libc work
3677         different when libc is static or dynamic.
3679         * sysdeps/unix/sysv/linux/init-first.c (init): Use
3680         `__libc_is_static' variable to determine whether call to
3681         `personality' and `setfpucw' is necessary.  When done set variable
3682         to +-1 depending on library type.
3684         * locale/setlocale.c (setlocale): Use global variable
3685         `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
3686         determine whether it's a SET[UG]ID program.
3688 Fri Aug  2 14:40:22 1996  Roland McGrath  <roland@fast.cs.utah.edu>
3690         * Version 1.93 test release.
3692         * manual/Makefile: Use -include for chapters-incl too.
3694         * Makeconfig (+link): Add back start.o, mistakenly removed in last
3695         change.
3697 Fri Aug  2 01:04:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3699         * nss/Makefile (generated): Add db-*.c.
3701         * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
3702         using #include_next.
3704         * configure.in (--enable-add-ons): Quote m4 macro args.
3706         * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
3708 Thu Aug  1 14:40:03 1996  Roland McGrath  <roland@fast.cs.utah.edu>
3710         * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
3712         * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
3714         * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
3715         (+link): Not here.
3717         * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
3718         warning when inline function is elided.
3719         * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
3720         (elf_machine_runtime_setup): Likewise.
3721         * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
3722         * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
3723         (elf_machine_load_address): Likewise.
3725         * catgets/gencat.c: Include <locale.h>.
3727         * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
3729         * login/logwtmp.c (logwtmp): Call time, not __time.
3731         * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
3732         * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
3733         * login/logwtmp.c (logwtmp): Likewise.
3735         * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
3736         comparing ioctl macro values.
3738         * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
3740         * manual/Makefile: Use -include for chapters to suppress warning.
3742         * sysdeps/stub/socket.c: Fix type of TYPE arg.
3743         * sysdeps/stub/socketpair.c: Likewise.
3745         * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
3747         * sysdeps/generic/sysdep.h: New file, broken out of ...
3748         * sysdeps/unix/sysdep.h: ... here.
3749         (C_LABEL): Moved out.
3751         * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
3752         stick to sed.  Do `exit 0' at end because while returns nonzero.
3754         * sysdeps/i386/sysdep.h: New file, broken out of ...
3755         * sysdeps/unix/i386/sysdep.h: ... here.  Generic asm macros moved out.
3757         * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
3758         They are defined unconditionally in libio/stdio.h.
3760         * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
3761         * elf/dl-cache.c: Likewise.
3763 Mon Jul 29 19:20:05 1996  Ulrich Drepper  <drepper@cygnus.com>
3765         * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
3766         (sysdep_headers): Add sys/sysmacros.h.
3767         * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
3769 Wed Jul 31 14:21:36 1996  Ulrich Drepper  <drepper@cygnus.com>
3771         * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
3772         tcgetattr.  We have weak aliases now.
3773         * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
3774         "optimizations" for random functions.
3776 Mon Jul 29 20:33:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3778         * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
3779         htons) [__BIG_ENDIAN]: #undef them before defining to avoid
3780         redefinition warning.
3782 Mon Jul 29 20:28:27 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3784         * time/time.h: Don't optimize tzset() to __tzset() which bypasses
3785         the __tzset_lock.
3787 Tue Jul 30 15:14:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3789         * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
3790         protection.
3792 Tue Jul 30 02:48:28 1996  Ulrich Drepper  <drepper@cygnus.com>
3794         * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
3795         to be 64-bit clean.
3796         Reported by Richard Henderson <rth@tamu.edu>.
3798 Tue Jul 30 15:04:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3800         * locale/programs/ld-collate.c (collate_output): Fix typo reported by
3801         David Miller.
3803 Tue Jul 30 13:23:13 1996  Ulrich Drepper  <drepper@cygnus.com>
3805         * locale/setlocale.c (setlocale): Don't try to free C locale
3806         data.
3807         Reported by Matthias Urlichs.
3809 Tue Jul 30 14:35:17 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3811         * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
3812         (open_file): New function, contents mostly from __open.
3813         (_dl_sysdep_read_whole_file): New function.
3815 Sat Jul 27 11:23:59 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3817         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
3818         `..' dots in sed search string.
3820 Mon Jul 29 01:27:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3822         * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
3823         protection.
3825 Sun Jul 28 23:46:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3827         * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
3828         in those directories.
3829         * config.make.in (add-ons): New varaible, set from @subdirs@.
3830         * Makefile (subdirs): Added $(add-ons) at the end.
3832         * time/strftime.c (strftime: do_number): Initialize PRINTED to
3833         MAXDIGITS in case P is null and so sprintf is never actually called.
3835 Mon Jul 29 02:46:23 1996  Ulrich Drepper  <drepper@cygnus.com>
3837         Add support for the to-be-written internationalized regexp.
3838         This code must be able to use collation symbols and collation
3839         equivalent classes.
3840         * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
3841         _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
3842         New global variables for collation classes.
3843         * locale/categories.def: Add new descriptions for collation symbols
3844         and collation classes.
3845         * locale/langinfo.h: Add constants for collation symbols and
3846         collation classes.
3847         * locale/lc-collate.c: Add new global variables for collation symbols
3848         and collation classes.
3849         (_nl_postload_collate): Initialize new variables.
3850         * locale/programs/ld-collate.c: Add code to emit tables for
3851         collation symbols and collation classes.
3852         * locale/programs/locales.h: Change prototype for `collate_output'.
3853         * locale/programs/locfile.c (write_all_categories): Call
3854         `collate_output' with new argument.
3855         * locale/localeinfo.h: Add declaration for new global vars.
3856         (union locale_data_value): New member wstr for `wchar_t' strings.
3857         * locale/programs/locale-spec.c: Handle `collate-classes'
3858         keyword and print information about available collation classes.
3859         * locale/strlen-hash.h: New file.  Simple hashing function which
3860         takes a string with known length.
3861         * locale/Makefile (distribute): Add strlen-hash.h.
3862         (locale-modules): New var.  Additional files for `locale' program.
3864         * locale/C-ctype.c: Rewrite to avoid using string for giving values
3865         which are of type `u_int32_t'.
3866         Correct entry for EOF in toupper and tolower tables.
3868         * locale/loadlocale.c (_nl_load_locale):  Add cast to prevent
3869         warning.
3871         * locale/programs/ld-ctype.c (ctype_output): Add code to make
3872         sure that all tables in binary file are word-aligned.
3874         * locale/programs/locfile.c (write_locale_data): Correct handling
3875         of LC_MESSAGES locale.  Create directory if necessary.
3877         * locale/setlocale.c (setlocale): Add cast to avoid warning.
3879         * string/string.h: Add prototype for `__strndup'.
3881 Wed Jul 24 19:10:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3883         * wcsmbs/mbrtowc.c: Remove unused variable.
3885 Sun Jul 28 22:40:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3887         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
3888         2.0.10; some problems were reported with an earlier version, and this
3889         one is known to work.
3891         * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
3892         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3894 Sat Jul 27 13:02:09 1996  Ulrich Drepper  <drepper@cygnus.com>
3896         * elf/rtld.c (dl_main): Ignore arguments when environment variable
3897         LD_TRACE_LOADED_OBJECTS is set.
3899 Sun Jul 28 19:42:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3901         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
3902         __libc_enable_secure instead of _dl_secure.
3903         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
3904         * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
3905         of _dl_secure.
3906         * elf/Makefile (routines): Add enbl-secure.
3907         (elide-routines.so): Here too.
3908         * sysdeps/generic/enbl-secure.c: New file.
3909         * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
3910         * elf/dl-support.c (_dl_secure): Variable removed.
3911         * elf/rtld.c: Likewise.  Replace all uses with __libc_enable_secure.
3913 Sun Jul 28 19:26:40 1996  David S. Miller  <dm@neteng.engr.sgi.com>
3915         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
3916         Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
3917         compiler doesn't elide it.
3918         (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
3920 Sat Jul 27 02:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3922         * elf/rtld.c (dl_main): Take new option --verify when run directly.
3923         In verify mode, exit with status zero iff the argument object's
3924         PT_INTERP matches argv[0].
3925         * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
3926         exits with zero status.  This makes `ldd' secure again.
3928 Fri Jul 26 22:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
3930         * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
3931         environment variable handling.  This makes the dynamic linker
3932         only print loaded libraries and quit.
3934         * elf/ldd.sh.in: Don't use `rtld --list' but instead
3935         LD_TRACE_LOADED_OBJECTS environment variable to print needed
3936         objects.
3938 Sat Jul 27 02:03:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3940         * db/makedb.c (main): Print version on stdout, not stderr.  Don't exit
3941         after printing version until after doing usage for --help.
3942         (long_options, main, usage): Rename -l/--lowercase option to
3943         -f/--fold-case (-f matches sort).
3945 Sat Jul 27 04:32:31 1996  Ulrich Drepper  <drepper@cygnus.com>
3947         * db/makedb.c: New file.  Implement program to create simple <db.h>
3948         database from textual input.  This will be used for nss_db.
3950 Sat Jul 27 01:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3952         * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
3953         * sunrpc/rpc/pmap_clnt.h: Likewise.
3954         * sunrpc/rpc/auth.h: Likewise.
3955         * sunrpc/rpc/pmap_rmt.h: Likewise.
3956         * sunrpc/rpc/rpc_msg.h: Likewise.
3958 Sat Jul 27 04:37:34 1996  Ulrich Drepper  <drepper@cygnus.com>
3960         * string/string.h (strndupa): Change to use return value of
3961         `memcpy' for more performance.
3962         * string/strndup.c: Likewise.
3964         * string/string.h (strdupa): Don't call __builtin_alloca in argument.
3965         This might lead to problems.
3966         (strndupa): Likewise.
3968 Fri Jul 26 15:24:25 1996  Ulrich Drepper  <drepper@cygnus.com>
3970         * sunrpc/rpc/auth.h: Add protection against multiple inclusion
3971         and change K&R prototypes to ANSI prototypes.
3972         * sunrpc/rpc/auth_unix.h: Ditto.
3973         * sunrpc/rpc/clnt.h: Ditto.
3974         * sunrpc/rpc/pmap_clnt.h: Ditto.
3975         * sunrpc/rpc/pmap_prot.h: Ditto.
3976         * sunrpc/rpc/pmap_rmt.h: Ditto.
3977         * sunrpc/rpc/rpc_msg.h: Ditto.
3978         * sunrpc/rpc/svc.h: Ditto.
3979         * sunrpc/rpc/svc_auth.h: Ditto.
3980         * sunrpc/rpc/xdr.h: Ditto.
3982 Fri Jul 26 20:39:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3984         * ctype/test_ctype.c: Test EOF too.
3986 Fri Jul 26 18:06:58 1996  Ulrich Drepper  <drepper@cygnus.com>
3988         * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
3989         * sunrpc/rpc/auth_unix.h: Likewise.
3990         * sunrpc/rpc/clnt.h: Likewise.
3991         * sunrpc/rpc/netdb.h: Likewise.
3992         * sunrpc/rpc/pmap_clnt.h: Likewise.
3993         * sunrpc/rpc/pmap_prot.h: Likewise.
3994         * sunrpc/rpc/rpc_msg.h: Likewise.
3995         * sunrpc/rpc/svc.h: Likewise.
3996         * sunrpc/rpc/svc_auth.h: Likewise.
3997         * sunrpc/rpc/xdr.h: Likewise.
3999         * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
4000         to here from...
4001         * sunrpc/pmap_rmt.c: ...here.
4003 Fri Jul 26 16:10:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4005         * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
4006         valid ut_id field.
4007         * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
4008         if a search fails.
4010 Fri Jul 26 00:36:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4012         * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
4013         <kkojima@info.kanagawa-u.ac.jp>.
4015 Fri Jul 26 04:41:28 1996  Ulrich Drepper  <drepper@cygnus.com>
4017         * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
4018         defined, not __OPTIMIZED.
4019         (_nl_msg_cat_cntr): Move declaration outside macro definition
4020         to prevent "nested extern" warning.
4021         (dcgettext): Rename local variable `result' to `__result'.
4023 Thu Jul 25 22:46:30 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4025         * locale/programs/localedef.c (__progname): Remove decl.
4026         (main): Use program_invocation_short_name instead of __progname.
4027         (usage): Use program_invocation_name instead of __progname.
4029 Fri Jul 26 03:46:08 1996  Ulrich Drepper  <drepper@cygnus.com>
4031         * catgets/gencat.c: Use "libc" instead of PACKAGE.
4032         * locale/localedef.c: Ditto.
4033         * locale/locale.c: Ditto.
4035         * locale/findlocale.c (_nl_find_locale): Little optimization.
4036         Use new function `strndup'.
4038         * locale/loadlocale.c: Little optimization.  Use constant value
4039         from `_nl_category_num_items' instead of byte-order dependend
4040         value from file.
4042         * locale/programs/ld-time.c (time_add): Correct string constant.
4044         * locale/programs/locale-spec.c: New file.
4045         * locale/programs/locale.c: Call `locale_special' function if
4046         no other field matches.
4048         * locale/programs/localedef.c: No need to define `program_name'.
4049         Use global variable `__progname'.
4051         * locale/programs/locfile.c (write_locale_data): Always write
4052         LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file.  This is
4053         necessary since message catalogs are also installed in the
4054         LC_MESSAGES/ directory.
4056         * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
4057         function instead of writing single bytes.
4058         (encode_char): Also handle little endian.
4060         * locale/setlocale.c (new_composite_name): Little optimization.
4061         Use return value of `memcpy'.
4063         * misc/ttyent.h: Pretty print prototypes, add missing parameter
4064         names, prepend parameter names with __  and use `__const' instead
4065         of `const'.
4066         * posix/unistd.h: Ditto.
4067         * stdlib/stdlib.h: Ditto.
4068         * string/string.h: Ditto.
4070         * posix/getconf.c: De-ASNI-fy.  Recognize POSIX.2 constant names.
4071         Use `error' function instead of doing it by hand.
4072         * sysdeps/posix/sysconf.c: De-ANSI-fy.
4073         Handle _SC_COLL_WEIGHTS_MAX.
4074         * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
4075         _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
4076         since these do depend on the platform.
4077         Add POSIX.4 symbols.
4079         * posix/posix2_lim.h: Add missing definition of
4080         _POSIX2_COLL_WEIGHTS_MAX.
4081         Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
4082         to high values since we have no fixed limit.
4084         * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
4085         _SC_PAGESIZE for buggy systems (= HP UX) out there.
4087         * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
4088         * wcsmbs/mbsnrtowcs.c: New file.  Non-standard implementation.
4089         * wcsmbs/wcsnrtombs.c: Ditto.
4090         * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
4091         wcsnrtombs.
4093 Thu Jul 25 00:25:54  Richard Henderson  <rth@tamu.edu>
4095         * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
4096         course.
4097         * nss/getXXent_r.c: Likewise.
4098         * nss/nsswitch.c: Likewise.
4099         * nss/nss_files/files-XXX.c: Likewise.
4100         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
4101         * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
4102         * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
4104 Thu Jul 25 00:53:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4106         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
4107         macro, now put the needed Linux version just once, here; update to
4108         needing linux-2.0.3 headers.
4109         (libc_cv_linuxVER): New macro derived from that.
4110         (kernel header check): Use those macros and some m4 magic to replace
4111         hard-coded `201' and `2.0.1' in several places.
4113         * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
4115 Wed Jul 24 17:02:30 1996  Ulrich Drepper  <drepper@cygnus.com>
4117         * time/localtime.c: Move lock variable declaration to end of
4118         variable declarations since if is a dummy macro the ; at the
4119         end terminates the variable section of the function.
4121         * time/tzset.c: Undefine `tzset' before function declaration.
4122         Use `weak_function' macro instead of `weak_symbol'.
4124 Wed Jul 24 18:57:33 1996  Ulrich Drepper  <drepper@cygnus.com>
4126         * stdlib/strtouq.c: Additional weak alias is `strtoull', not
4127         `strotull'.
4129 Wed Jul 24 18:26:23 1996  Ulrich Drepper  <drepper@cygnus.com>
4131         * locale/C-ctype.c: Increment number of fields after change
4132         from Wed Jun 19 03:24:58 1996.
4134 Tue Jul 23 18:13:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4136         * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
4137         ($(common-objpfx)libc.so): Move deps into that, use it.
4138         [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
4139         $(rpcuserlibs:.so=_pic.a).
4140         * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
4141         use $(LDLIBS-c.so).
4143 Thu Jul 18 21:41:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4145         * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
4146         n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
4148 Tue Jul 23 02:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
4150         * locale/iso-4217.def: Add India to comment for symbol "INR ".
4151         Reported by Raja R Harinath  <harinath@cs.umn.edu>.
4153 Sat Jul 20 14:03:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4155         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
4156         #undef RESOLVE.
4158 Sun Jul 21 06:48:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4160         * time/tzset.c: Include <libc-lock.h>.
4161         (__tzset_lock): New lock variable.
4162         (tzset): New function (weak defn), no longer weak alias for __tzset.
4163         Call __tzset while holding __tzset_lock.
4164         * time/localtime.c: Include <libc-lock.h>.
4165         (__localtime_r): Hold __tzset_lock while doing the work.
4167         * sysdeps/generic/setenv.c (__environ): Change conditional for #define
4168         from [!HAVE_GNU_LD] to [!_LIBC].
4169         [_LIBC]: Include <libc-lock.h> and define a lock.
4170         (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
4171         (setenv, unsetenv): Use them.
4173 Sun Jul 21 01:44:39 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4175         * locale/programs/locfile.c (write_locale_data): Deal with missing
4176         UIO_MAXIOV.
4178         * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
4179         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
4181 Sat Jul 20 21:55:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4183         Win32 hacks from <Rob_Tulloh@tivoli.com>.
4184         * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
4185         use void * for my_realloc; include <malloc.h> for alloca.
4186         (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
4187         * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
4188         * posix/glob.h: Likewise.
4190 Sat Jul 20 13:28:52 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4192         * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
4193         call __io_select unless there's only a single descriptor, as each
4194         descriptor now has its own reply port.
4195         If there is only a single descriptor, just use its reply port for
4196         everything and don't bother creating the port set.
4198         * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
4199         <unistd.h>: New include.
4201         * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
4202         continuation line.
4204 Sat Jul 20 07:15:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4206         * crypt/Makefile, crypt/nocrypt.c: Removed.  It is illegal to export
4207         from the USA any software that even makes it easy to drop in an
4208         encryption module of foreign origin.
4209         * Makerules (cryptobjdir): Variable removed.
4210         ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
4211         * Makefile (subdirs): Remove crypt.
4213 Fri Jul 19 15:45:20 1996  Ulrich Drepper  <drepper@cygnus.com>
4215         * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
4216         operator to yesexpr and noexpr string.
4218 Fri Jul 19 15:10:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4220         * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
4221         old code would have failed on a big-endian 64-bit architecture).
4222         * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
4224         * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
4225         (xdr_u_long): Use switch instead of chain of if-statements.
4226         Remove gratitous parentheses around return expressions.
4227         (xdr_enum): Open code case where INT_MAX<LONG_MAX.
4229         * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
4231         * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
4232         not int.
4234 Fri Jul 19 16:56:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4236         * dlfcn.h, db.h: New wrapper headers.
4238         * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
4239         for `struct stat;' forward decl.
4241 Fri Jul 19 22:25:19 1996  Ulrich Drepper  <drepper@cygnus.com>
4243         * locale/iso-4217.def: Add some more standardized currency
4244         symbols.
4246 Fri Jul 19 13:18:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4248         * hurd/report-wait.c (describe_number): Use unsigned long int for J.
4250 Thu Jul 18 12:33:57 1996  Roland McGrath  <roland@baalperazim.frob.com>
4252         * Rules (dummy.o, empty.o): Targets removed.
4253         (dummy.c, empty.c): New targets replace them.
4255 Thu Jul 18 11:42:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4257         * crypt/Makefile (lib-noranlib): Depend on
4258         $(objpfx)libcrypt.so$(libcrypt.so-version).
4259         (subdir): Fix name.
4261 Thu Jul 18 04:33:21 1996  Roland McGrath  <roland@baalperazim.frob.com>
4263         * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
4264         check.  mib's clueless hacking broke it.
4266 Thu Jul 18 04:27:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4268         * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
4270 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4272         * misc/sys/ustat.h: New file.
4273         * misc/ustat.h: Ditto.
4274         * sysdeps/generic/ustatbits.h: Ditto.
4275         * sysdeps/stub/ustat.c: Ditto.
4276         * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
4277         * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
4278         ustatbits.h.
4279         (routines): Mention ustat.
4281         * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
4282         * sysdeps/alpha/elf/start.S: here.
4284         * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
4285         alphabetically correct place.  Mention ustat.
4287         * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
4288         common symbol (makes errno accessible from gdb).
4290         * login/pututline_r.c (pututline_r): Test ut_id in repositioning
4291         test, not ut_type.
4293         * login/logwtmp.c (logwtmp): Reimplemented.  Must ensure that a
4294         record always gets appended at end of file (wtmp is a log file,
4295         after all).  Set ut_type to DEAD_PROCESS if name is empty.
4297         * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
4298         separate loop from search for UT_ID.  Fix code so it is in
4299         sync with Unix man page.
4301         * login/getutline_r.c (getutline_r): Stop searching only if
4302         ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
4304 Tue Jul 16 15:06:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4306         * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
4307         avoid duplicate declarations.
4309 Sun Jul 14 19:08:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4311         * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
4312         and alpha-gnu-linuxecoff targets.
4314 Fri Jul 12 16:58:44 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4316         * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
4318 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4320         * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
4321         of int.
4323         * resolv/res_comp.c (res_hnok): Use empty statement in place
4324         of NULL (which generates a "useless expression" warning in
4325         gcc).
4327 Wed Jul 17 23:56:35 1996  Roland McGrath  <roland@baalperazim.frob.com>
4329         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
4330         with $(..) in output.
4332 Wed Jul 17 21:53:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4334         * elf/Makefile (dl-routines): Add dl-cache.
4335         * elf/dl-cache.c: New file.
4336         * elf/dl-load.c (_dl_map_object): Check cache before default path.
4338 Wed Jul 17 20:41:30 1996  Ulrich Drepper  <drepper@cygnus.com>
4340         * stdio-common/vfscanf.c: Major change.  Now read character
4341         from stream only if needed.  Before it was read after the
4342         previous character was used.
4343         Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
4345         * stdio-common/tstscanf.c: Change test program so that return
4346         value is != 0 if one test failed.
4348 Wed Jul 17 17:08:48 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4350         * sysdeps/m68k/Makefile (crypt): Variable removed.
4351         * sysdeps/sparc/Makefile: Likewise.
4353         * version.h (VERSION): Update to 1.93.
4355         * Makerules ($(libdir)/libc.so): Depend on
4356         $(common-objpfx)libcrypt.so$(libcrypt.so-version).
4358         * crypt/nocrypt.c: New file.
4359         * Makefile (subdirs): Add crypt.
4360         * crypt/Makefile: New file.
4362         * Makerules (soversions.mk): Move this target, include of it, and
4363         include of version.mk to ...
4364         * Makeconfig: ... here.
4365         (soversions.mk): Depend on Makeconfig instead of Makerules.
4367         * shlib-versions (*-*-*): Set libcrypt=0.
4369 Wed Jul 17 11:29:26 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4371         * stdio/linewrap.c (lwupdate): Fix boundary condition where a
4372         word extends right up to rmargin.
4374         * stdio/linewrap.c (lwupdate): When we've done a word wrap and
4375         output the wrap margin, set point_col to wmargin.
4376         Use negative point_col to deal with a wmargin of 0.
4377         (line_wrap_point): Return 0 for a negative point_col.
4378         (line_wrap_stream): Make wmargin ssize_t.
4379         * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
4380         point_col ssize_t.
4381         (line_wrap_stream): Make wmargin ssize_t.
4382         (line_wrap_point): Return 0 for a negative point_col.
4384 Wed Jul 17 02:43:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4386         * shlib-versions (*-*-gnu*): Set libc=0.0
4388 Tue Jul 16 01:52:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4390         * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
4391         sysdeps/i386/dl-machine.h.
4393 Tue Jul 16 00:18:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4395         * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
4396         to fiddle __put_limit in conjunction with __linebuf_active.
4398 Tue Jul 16 00:14:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4400         * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
4401         to the strong name, not the file name.
4403 Tue Jul 16 16:43:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4405         * csu/initfini.c: More magic.  Detect if .end is produced and put it
4406         in the output iff the compiler does.
4408         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
4409         because that is broken on alpha.
4411         * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
4412         call as in first.
4414         * Makerules (make-link): Install the new link with atomic mv -f in
4415         case ln itself requires the library being installed.
4417 Tue Jul 16 00:31:31 1996  Richard Henderson  <rth@tamu.edu>
4419         * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
4420         i386/dl-machine.h of 960713.
4422         * sysdeps/generic/dl-sysdep.c:  Include <sys/mman.h>.
4423         (_dl_sysdep_read_whole_file): Fix result variable declaration.
4425 Tue Jul 16 00:53:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4427         * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
4428         `nodename' member.
4430 Mon Jul 15 17:23:53 1996  Ulrich Drepper  <drepper@cygnus.com>
4432         * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
4433         with pointer to local variable instead of NULL.
4435 1996-07-15  Paul Eggert  <eggert@twinsun.com>
4437         * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
4439 Sat Jul 13 09:53:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4441         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
4442         that are already added by other means.
4444         * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
4445         caller column to get those syscalls added automagically.
4447 Mon Jul 15 12:24:54 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4449         * login/logout.c (logout): Initialize DATA to a state that will
4450         make setutent_r happy.
4452 Sun Jul 14 01:51:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4454         * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
4455         instead of setting the DT_DEBUG pointer.
4457         * csu/initfini.c (_init, _fini): Generate .end directives after
4458         standalone prologues and filter them out from epilogues.
4460         * Makeconfig (rtld-installed-name): Set to ld.so.1.
4461         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
4462         removed.
4464         * manual/Makefile (glibc-targets): Remove subdir_ from elts.
4466         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
4468         * MakeTAGS (extract): Pass --add-comments=TRANS.
4469         * sysdeps/gnu/errlist.awk: Write comments into the output with the
4470         descriptive paragraphs from the manual preceded by TRANS.
4472         * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
4473         (_dl_start): Move RESOLVE defn inside this function and #include
4474         "dynamic-link.h" a second time there.
4475         [RTLD_START]: Move use of this after _dl_start function.
4477         * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
4479         * elf/rtld.c: Include <string.h>.
4481         * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
4482         ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
4483         Conditionalize defns on [RESOLVE].
4484         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
4485         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
4486         Instead use RESOLVE macro with same args.
4487         (elf_machine_rel): Conditionalize defn on [RESOLVE].
4488         * elf/dl-reloc.c (RESOLVE): New macro, define before including
4489         "dynamic-link.h".  It replaces `resolve' local function.
4490         * elf/dl-runtime.c: Likewise.
4491         * elf/rtld.c: Likewise.
4493         * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
4495         * elf/dl-open.c (_dl_open): Force an indirect call for
4496         _dl_relocate_object so there is no chance a PLT fixup will be done
4497         and clobber _dl_global_scope before our call happens.
4499         * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
4500         to =t; must operate on top of fp reg stack, not second from top.
4501         Correct input constraint to 0 from t; must be explicit when input and
4502         output are the same register.
4503         (floor): Use __volatile instead of volatile.
4504         (ceil): Likewise.
4506         * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
4507         other targets.
4509 Sat Jul 13 23:50:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4511         * manual/Makefile (lib): New phony target.  Depend on stamp files.
4512         ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
4514 1996-07-13  Paul Eggert  <eggert@twinsun.com>
4516         * time/strftime.c (strftime): Use space padding for %e, %k, %l,
4517         to match Emacs format-time-string specification.
4518         (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
4520 Sat Jul 13 20:17:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4522         * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
4523         NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
4524         between MAP and its deps.
4525         * elf/link.h: Fix decl.
4526         * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
4527         colon-separated list of names, map those and pass vector of ptrs as
4528         PRELOADS list to _dl_map_object_deps.
4529         * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
4530         _dl_map_object_deps with empty preload list.
4531         * elf/dl-open.c (_dl_open): Likewise.
4533         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
4534         removed.
4535         (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
4536         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
4537         Conditionalize defn on [! MAP_ANON].
4538         * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
4539         on [! MAP_ANON].
4540         * elf/rtld.c (dl_main): Likewise.
4541         * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
4542         (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
4544         * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
4546 Sat Jul 13 02:47:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4548         * stdlib/random.c (__random): Declare as int32_t to be in sync
4549         with declaration.
4551         * socket/Makefile (headers): Add socketbits.h.
4553         * misc/mntent.c (endmntent): Allow for NULL stream.  SunOS does
4554         it that way.
4556         * grp/initgroups.c (initgroups): Add groups that user is a member
4557         of, not the ones he is _not_ a member of.
4559         * nss/nsswitch.c (known_compare): Make known_compare() a static
4560         instead of a local function.  The latter are difficult to debug
4561         and slow to execute on certain platforms.
4563         * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
4564         place of sizeof (dev).  The size of a literal string includes the
4565         NUL byte.
4567         * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
4569 Thu Jul 11 16:59:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4571         * misc/mntent.c (addmntent): Seek to end of file before writing
4572         entry.  Return 1 on error, not -1.
4574 Tue Jul  9 19:08:05 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4576         * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
4577         syscall.
4579 Fri Jul  5 18:44:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4581         * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
4582         shift amount for Jensen must be 5 not 4.
4584 Sat Jul 13 20:04:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4586         * socket/sys/socket.h (struct osockaddr): New type.
4588 Sat Jul 13 03:50:53 1996  Ulrich Drepper  <drepper@cygnus.com>
4590         * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
4591         * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
4592         and `long double' versions can be generated.
4593         * misc/qefgcvt.c, misc/qefgcvt_r.c: New files.  Define macros
4594         so that included efgcvt{,_r}.c file generate `long double'
4595         versions.
4596         * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
4597         functions.
4599         * manual/startup.texi: Document new getsubopt function.
4600         * manual/examples/subopt.c: New example program for documenting
4601         getsubopt function.
4603 Fri Jul 12 23:58:37 1996  Ulrich Drepper  <drepper@cygnus.com>
4605         * stdlib/Makefile (routines): Add getsubopt.
4606         * stdlib/stdlib.h: Add prototype for getsubopt.
4607         * stdlib/getsubopt.c: New file.  Implement getsubopt function
4608         to handle suboption parsing.
4610 Thu Jul 11 20:09:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4612         * inet/getnetent_r.c: Define NEED_H_ERRNO.
4613         * inet/getnetbynm_r.c: Likewise.
4614         * inet/getnetent.c: Likewise.
4615         * inet/getnetbyad_r.c: Likewise.
4616         * inet/getnetbyad.c: Likewise.
4617         * inet/getnetbynm.c: Likewise.
4619         * sysdeps/generic/pselect.c: Include <sys/time.h>.
4621         * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
4622         `struct timespec'.
4624         * math/Makefile (calls): Add s_frexp, s_ldexp.
4625         (routines): Remove them and &f from here.
4627         * sys/socket.h: New file, wrapper for socket/sys/socket.h.
4629         * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
4630         and check it.
4632         * nss/nss_files/files-XXX.c: Comment fix.
4634 Fri Jul 12 01:28:35 1996  Ulrich Drepper  <drepper@cygnus.com>
4636         * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
4637         of reentrant function.
4638         (setup): Pass additional argument with function name we are
4639         looking for.
4640         (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
4641         new argument {SET,END,GET}FUNC_NAME_STRING.
4643         * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
4644         we return a pointer.
4646 Thu Jul 11 18:20:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4648         * nss/nss_files/files-parse.c: Add comment about things to #define.
4650         * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
4652         * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
4653         terminator char as an error.
4655         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
4657 Thu Jul 11 03:21:10 1996  Ulrich Drepper  <drepper@cygnus.com>
4659         * catgets/gencat.c (write_out): Move code to determine new
4660         best size out of inner loop.
4662 Thu Jul 11 00:22:40 1996  Ulrich Drepper  <drepper@cygnus.com>
4664         * sysdeps/libm-ieee754/s_frexpl.c: New file.  `long double'
4665         implementation of frexp() function.
4666         * sysdeps/libm-ieee754/s_ldexpl.c: New file.  `long double'
4667         implementation of ldexp() function.
4669         * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
4670         out before or'ing.
4672 Wed Jul 10 05:24:40 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4674         * misc/mntent.c: Include <sys/types.h>.
4675         (endmntent): Return 1 one success, 0 on failure.
4676         (getmntent): Chop newline and ignore empty lines.
4678 Mon Jul  8 21:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4680         * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
4681         differently based on [RTLD_BOOTSTRAP].
4682         (elf_machine_rela): Use it instead of the fn ptr arg directly.
4684 Tue Jul  9 09:37:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4686         * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
4687         __glob_closedir_hook): Remove decls.
4689         * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
4691         * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
4692         for send and connect syscalls.
4694         * socket/sys/socket.h: New file, taken from non-sysdep parts of
4695         linux/sys/socket.h; break sysdeps parts out into socketbits.h.
4696         Declare __ names for send and connect.
4697         * sysdeps/generic/socketbits.h: New file.
4698         * sysdeps/unix/sysv/linux/socketbits.h: New file.
4699         * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
4700         * sysdeps/generic/sys/socket.h: File removed.
4702         * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
4703         * sysdeps/mach/hurd/send.c: Likewise.
4705         * sysdeps/mach/libc-lock.h: New file.
4706         * sysdeps/unix/readdir.c: Do locking.
4707         * sysdeps/unix/seekdir.c: Likewise.
4708         * sysdeps/unix/rewinddir.c:  Likewise.
4709         * sysdeps/unix/closedir.c: Likewise.
4710         * sysdeps/unix/bsd/telldir.c: Likewise.
4711         * sysdeps/mach/hurd/seekdir.c: Likewise.
4712         * sysdeps/mach/hurd/readdir.c: Likewise.
4713         * sysdeps/mach/hurd/closedir.c: Likewise.
4714         * sysdeps/mach/hurd/opendir.c: Initialize the lock.
4715         * sysdeps/unix/opendir.c: Likewise.
4716         * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
4717         (struct __dirstream): Add lock member using __libc_lock_define.
4718         * sysdeps/unix/dirstream.h: Likewise.
4720         * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
4722         * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
4724         * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
4726 Thu Jul  4 01:34:04 1996  Ulrich Drepper  <drepper@cygnus.com>
4728         * locale/programs/stringtrans.c: Fix typo in copyright.
4730         * stdio-common/printf-prs.c: Add casts to prevent
4731         signed<->unsigned warnings.
4733         * stdio-common/printf-parse.h: Initialize state variable before
4734         calling mbrlen.
4735         * stdio-common/printf-prs.c: Don't initialize state variable here.
4736         * stdio-common/vfprintf.c: Don't initialize state variable.
4737         (vfprintf): While determining length of multibyte string don't
4738         try to be clever in determining characters to use for first
4739         call.
4741         Add real implementation of multibyte<->wide char conversion
4742         functions.  The functions always convert between the fixed wide
4743         char format (ISO 10646 in UCS4) and the UTF8 representation of
4744         this character set.  Conversion between the currently used
4745         8bit character set and ISO 10646 will not take place.  This is
4746         what iconv() is for.
4747         * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
4748         dummy definition.
4749         Add optimized version of `mbrlen' function.
4750         * wcsmbs/btowc.c (btowc): Restrict range of legal characters
4751         to 0...0x7f.
4752         * wcsmbs/wctob.c (wctob): Restrict range of legal characters
4753         to 0..0x7f.
4754         * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
4755         This is needed in the wchar.h header.
4756         * wcsmbs/mbrtowc.c: Replace dummy implementation.  Convert UTF8
4757         encoded character to UCS4.
4758         * wcsmbs/mbsinit.c: Replace dummy implementation.  Test COUNT
4759         element of `mbstate_t' for initial state.
4760         * wcsmbs/mbsrtowcs.c: Replace dummy implementation.  Convert UTF8
4761         encoded string to UCS4 string.
4762         * wcsmbs/wcrtomb.c: Replace dummy implementation.  Convert UCS4
4763         character to UTF8 encoded form.
4764         * wcsmbs/wcsrtombs.c: Replace dummy implementation.  Convert UCS4
4765         encoded string to UTF8 encoded form.
4767 Tue Jul  9 06:19:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4769         * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
4770         variable name, so new a libc with new requirements won't fail to
4771         notice an insufficient Linux version.
4773         * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
4775         * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
4776         instead of 2.0 headers.
4778         * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
4780         * sysdeps/gnu/errlist.awk: Undo mib's bogus changes.  The
4781         sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
4783         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
4784         before using it in lhs of weak_alias.
4786         * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
4787         Call __nss_lookup when not setting STARTP.
4788         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
4789         function-calling loop.
4791 Tue Jul  9 00:14:52 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
4793         * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
4794         PENDIN, NOFLSH): Undefine these at start if they are already
4795         defined to avoid collision with termbits.h.
4796         * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
4797         (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
4799 Mon Jul  8 13:37:40 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4801         * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
4802         already defined to float, long double.  Use those macros for _Mdouble_
4803         defns when including mathcalls.h.
4804         * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
4805         -D_Mlong_double_=double.
4807         Add more -lm functions to -lc because ldexp uses them.
4808         * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
4809         (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
4810         ldexp have both f and l code, and those have f though not l code.
4812 Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
4814         * sysdeps/mach/hurd/errnos.awk: Skip entries where the
4815         error is 0.  The "placeholder" entries recently added to
4816         errno.texi convert to zero since `???/' is at the front of them.
4817         * sysdeps/gnu/errlist.awk (errnoh): Likewise.
4819         * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
4820         __const to conform with unistd.h.
4822         * stdlib/stdlib.h (random): Declare return type to be int32_t.
4824         * string/argz-delete.c (argz_delete): Use memmove instead of
4825         memcpy for possibly overlapping strings.
4827 Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4829         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
4830         storage class.  GCC gives an error for non-extern data defns with the
4831         alias attribute.
4833 Mon Jul  8 01:37:34 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
4835         * string/argz-insert.c (__argz_insert): (__argz_insert): Use
4836         memmove instead of memcpy for possible overlapping strings.
4838 Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4840         * libc-symbols.h (weak_function): New macro.
4841         For GCC 2.7+ define as __attribute__ ((weak)).
4842         * elf/dl-minimal.c: Use weak_function as keyword in function defns
4843         instead of weak_symbol (NAME) after the defn.
4844         * stdlib/strtol.c: Likewise.
4845         * stdlib/strtod.c: Likewise.
4846         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
4848         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
4849         If this is defined, don't declare _dl_rtld_map as weak, and
4850         don't check for MAP pointing to it.  RESOLVE is always null in this
4851         case, so test with #ifdef instead of if.
4853         * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
4854         weak_symbol.
4855         * csu/initfini.c (_init): Likewise.
4856         * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
4857         * misc/efgcvt_r.c: Likewise.
4858         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
4859         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
4861         * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
4862         It was not used in any assembler code.
4863         (weak_symbol_asm): Renamed to weak_extern_asm.
4864         (weak_extern): New macro replaces weak_symbol for weak extern refs;
4865         define to weak_extern_asm for [!ASSEMBLER].
4867 Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4869         * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
4870         weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
4871         define those now as aliases.
4872         Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
4873         [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
4874         after GCC weak attribute decl.
4876         * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
4877         map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
4878         (element printer): Check for elt in ALIAS, instead of special case
4879         for EWOULDBLOCK.
4881         * io/Makefile (headers): Add sys/vfs.h.
4882         * io/sys/vfs.h: New file.
4884         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
4885         critical section lock before unlinking dying active resources.
4886         The unlock just before return is right (i.e. old code unlocked twice).
4888 Sun Jun  2 22:28:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4890         * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
4891         Use memmove instead of memcpy where overlap is possible (not
4892         necessary using current implementation of memcpy, but...).
4893         (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
4895 Fri May 31 11:48:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4897         * stdio/linewrap.c (lwupdate): New function, mostly was
4898         __line_wrap_update.  Use POINT_COL field instead of POINT.
4899         (__line_wrap_output): Use lwupdate.
4900         (__line_wrap_update): New function.
4901         (ensure_unwrapped, ensure_wrapped): New functions.
4902         (line_wrap_set_lmargin, line_wrap_set_rmargin,
4903         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
4905         * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
4906         POINT_COL. Add POINT_OFFS field.
4907         (__line_wrap_update): New decl.
4908         (line_wrap_set_lmargin, line_wrap_set_rmargin,
4909         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
4911 Fri Jul  5 17:34:47 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4913         * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
4915         * login/pututline_r.c (pututline_r): Since we assign RESULT from
4916         lseek now, check that it's >= 0, not == 0.
4918 Wed Jul  3 13:28:04 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4920         * login/login.c (login): Make a copy of *UT, fill in various
4921         fields that we supply (ut_line, ut_type, ut_pid), and use the copy
4922         in place of UT.
4924         * login/getutline_r.c (getutline_r): When we return ESRCH, mark
4925         UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
4927 Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4929         * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
4930         signal during critical section doing interruptible RPC, if
4931         _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
4932         before thread_resume.  If in critical section, pass 0 for SIGNO to
4933         _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
4935         * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
4937         * sysdeps/unix/sysv/linux/sys/user.h: New file.
4938         * sysdeps/unix/sysv/linux/Dist: Add it.
4939         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
4941         * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
4942         points within DATA->linebuffer; otherwise use all of DATA->linebuffer
4943         itself, no need to skip past a NUL.
4945         * nss/nsswitch.h (known_function): Comment fix.
4946         * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
4947         directly.  Do the lookup and insertion with a single call, and fill in
4948         the tree node afterwards if new.
4949         (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
4951         * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
4952         (struct timeval): Add bodiless decl for scope.
4954         * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
4955         Move struct timespec defn outside [_TIME_H] so it can be got with
4956         #define __need_timespec.
4958         * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
4959         for `struct timespec' member names.
4960         (TIMESPEC_TO_TIMEVAL): Likewise.
4962         * nss/Makefile (extra-libs-others): New variable.
4964         * extra-lib.mk: Don't test for $($(lib)-no-lib-dep).  Instead match
4965         $(lib) in $(extra-libs-others).
4966         * sunrpc/Makefile (extra-libs-others): New variable.
4967         (librpcsvc-no-lib-dep): Variable removed.
4969         * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
4970         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
4971         _dl_rtld_map.
4972         (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
4973         (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
4974         (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
4975         _dl_rtld_map weak only here.
4977         * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
4979 Thu Jul  4 05:21:59 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4981         * login/utmp.h: Fix typos.
4983         * misc/syslog.c (vsyslog): Use __send instead of send and
4984         __connect instead of connect to avoid name-space collisions (e.g.,
4985         with psgetty).
4987 Wed Jul  3 16:29:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4989         * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
4991         * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
4993         * malloc/malloc-size.c (malloc_usable_size): Renamed from
4994         malloc_object_allocation_size.
4995         * malloc/malloc.h: Fix decl.
4997         * sys/select.h: New file, wrapper header.
4999         * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
5000         fd_set, associated macros, and select decl.
5002         * sysdeps/posix/isfdtype.c: New file.
5004 Tue Jul  2 23:45:14 1996  Ulrich Drepper  <drepper@cygnus.com>
5006         The latest Japanese proposal for POSIX locales renames the
5007         CHARMAP keyword in locale definition files to CHARCONV.
5008         * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
5009         function ctype_is_charmap to ctype_is_charconv.
5010         * locale/programs/locfile-kw.gperf: Replace charmap keyword with
5011         charconv.
5012         * locale/programs/locfile-token.h: Add definition of token
5013         charconv.
5014         * locale/programs/locfile.c: Recognize charconv keyword.  Rename
5015         lables according to this.
5017         * locale/weight.h (get_weight): Cast constants to prevent
5018         warnings.
5020         * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
5021         string/strxfrm.c: Add some more casts to prevent signed<->unsigned
5022         warnings.
5024         New stuff described in P1003.1g.
5025         * misc/Makefile (headers): Add sys/select.h.
5026         (routines): Add pselect.
5027         * misc/sys/select.h: New file.  Declare select functions and
5028         needed data types and macros.
5029         * sysdeps/generic/pselect.c: New file.  Add generic implementation
5030         of pselect() function which uses select().
5032         * posix/getconf.c: Recognize new variables from P1003.1g.
5033         * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
5034         _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
5035         * posix/unistd.h: Add description of the P1003.1g variables.
5036         * sysdeps/generic/confname.h: Define _SC_* values for new
5037         variables.
5038         * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
5039         _PC_SOCK_MAXBUF.
5040         * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
5041         * sysdeps/posix/sysconf.c (sysconf): Add handling of new
5042         P1003.1g variables.
5043         * sysdeps/stub/sysconf.c (sysconf): Ditto.
5044         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
5045         _POSIX_SELECT since Linux has this.
5047         * socket/Makefile (routines): Add isfdtype.
5048         * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
5049         * sysdeps/stub/isfdtype.c: New file.  Stub implementation of
5050         isfdtype.
5052         * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
5054 Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5056         * elf/Makefile (LDFLAGS-dl.so): New variable.
5057         (libdl.so): Depend on eval.so.
5058         (distribute): Add eval.c.
5059         * elf/eval.c: New file.
5061         * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
5062         in case it wrote fewer than MAXDIGITS chars.
5064         * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
5065         newline from flushing full buffer in loop, fix test so no fflush is
5066         done when last byte written exactly fills the buffer.
5068         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
5070         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
5071         (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
5073         * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
5074         extracting _dl_rtld_map.l_addr.
5076         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
5077         weak.
5078         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
5080         * shlib-versions (*-*-*): Set libnss_db=1.
5082 Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5084         * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
5086         * rpm/template (%build): Use @prefix@ instead of always /usr.
5087         Set up configparms only if @prefix@ is in fact /usr.
5088         * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
5090         * elf/Makefile: Add missing endif.
5092         * nss/nss_files/files-ethers.c (ntohost): Fix db key.
5094         * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
5095         (DATABASE): Define this instead of DATAFILE.
5096         * nss/nss_files/files-hosts.c: Likewise.
5097         (hostbyname): Use LOOKUP_NAME macro.
5099         * nss/nss_db/db-XXX.c: New file.
5100         * nss/Makefile (services): Add db.
5101         (libnss_db-inhibit-o): New variable.
5102         (libnss_db-routines): New variable.
5103         (distribute): Append db-XXX.c.
5104         (libnss_db.so): Depend on libdb.so and libnss_files.so.
5105         ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
5107         * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
5108         args, ignored.
5109         (DATAFILE): New macro.
5110         * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
5111         "files-XXX.c".
5112         * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
5113         Pass db key args to DB_LOOKUP.
5114         (DATAFILE): Macro removed.
5115         (DATABASE): New macro replaces it, lacks "/etc/" prefix.
5116         * nss/nss_files/files-service.c: Likewise.
5117         * nss/nss_files/files-pwd.c: Likewise.
5118         * nss/nss_files/files-proto.c: Likewise.
5119         * nss/nss_files/files-grp.c: Likewise.
5120         * nss/nss_files/files-ethers.c: Likewise.
5122         * elf/linux-compat.c: File removed.
5123         * elf/Makefile (distribute): Remove linux-compat.c.
5124         (ld-linux.so.1): Remove target and associated variables.
5126         * sunrpc/xdr.c: Remove malloc decl.
5127         * sunrpc/portmap.c: Likewise.
5129         * sunrpc/svc_tcp.c (abort): Don't declare.  Instead define as macro
5130         casting abort to fn returning bool_t.
5132         * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
5133         the parser function.
5134         [EXTERN_PARSER] (LINE_PARSER): Define to empty.
5135         * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
5136         * nss/nss_files/files-grp.c: Likewise.
5138         * Makeconfig (BUILD_CC): If undefined, define to $(CC).
5140         * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
5142         * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
5143         of ld.so so lookups for that soname find it.
5145         * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
5146         (resobjdir, LDLIBS-nss_dns.so): Variables removed.
5148         * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
5149         define parse_line function.
5150         (parse_line): #define to _nss_files_parse_pwent and
5151         add extern decl for that.
5153         * nss/nss_files/files-XXX.c (internal_getent): Return
5154         NSS_STATUS_TRYAGAIN for ERANGE error.
5156         * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
5157         of null, so next round returns null again instead of bombing.  Fix
5158         from drepper.
5160         * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
5161         Remove ; after `ENTDATA_DECL (data)'.
5162         Truncate line at strpbrk (line, EOLSET "\n").
5163         (ENTDATA_DECL): Put ; at end.
5164         (MIDLINE_COMMENTS): Macro removed.
5165         * nss/nss_files/files-ethers.c: Pass new argument.
5166         * nss/nss_files/files-hosts.c: Likewise.
5167         * nss/nss_files/files-network.c: Likewise.
5168         * nss/nss_files/files-parse.c: Likewise.
5169         * nss/nss_files/files-proto.c: Likewise.
5170         * nss/nss_files/files-rpc.c: Likewise.
5171         * nss/nss_files/files-service.c: Likewise.
5172         * grp/fgetgrent.c: Likewise.
5173         * pwd/fgetpwent.c: Likewise.
5174         * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
5175         fgetpwent.c already defines it.
5176         * nss/nss_files/files-grp.c: Likewise.
5178         * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
5179         as well as any matching with l_libname.  Fix DT_SONAME lookup to use
5180         string table properly.
5182         * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
5183         invoked directly, and l_libname from that if PT_INTERP missing.
5184         Set l_name from l_libname only if not set from argv.
5186         * time/europe, time/northamerica: Updated from ADO 96i.
5188 Mon Jul  1 15:44:34 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5190         * stdio-common/tst-ungetc.c: Include unistd.h.
5192         * inet/Makefile (routines): Change getnetbypt to getnetbyad.
5194 Mon Jul  1 13:32:42 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5196         * hurd/report-wait.c (describe_number): Make I unsigned long.
5198         * login/login.c (login): Only Frob OLD->ut_type if getutline_r
5199         actually found any entry.
5201         * login/pututline_r.c (pututline_r): If not located after any
5202         entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
5203         Lock the file before stating.
5205 Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5207         * nss/Makefile (databases): Change host to hosts.
5208         * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
5210         * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
5212         * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
5214         * string/string.h (strndupa): Pass missing arg to strnlen.
5216         * inet/getnetbypt_r.c: Renamed to ...
5217         * inet/getnetbyad_r.c: this; fixed function name.
5218         * inet/getnetbypt.c: Renamed to ...
5219         * inet/getnetbyad.c: this; fixed function name.
5221 Sat Jun 29 01:08:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5223         * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
5224         struct passwd.
5226 Fri Jun 28 23:25:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5228         * login/login.c (login): Initialize DATA so that setutent_r will
5229         actually do something.
5231 Fri Jun 28 16:53:01 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5233         * resolv/res_hconf.c (strndup): Remove function.
5235         * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
5236         using ElfW() instead of Elf32_*.
5238         * sysdeps/unix/sysv/linux/alpha/init-first.h,
5239         sysdeps/unix/sysv/linux/m68k/init-first.h,
5240         sysdeps/unix/sysv/linux/i386/init-first.h: New files.
5241         * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
5242         init-first.h to make abstract machine dependent parts of
5243         initialization.
5245         * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
5246         error handling.  It's safer that way.
5248         * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
5249         Fix by Richard Henderson.
5251         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
5252         typo/extraneous whitespace.
5254         * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
5255         determine what integer sizes we're dealing with.
5257 Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
5259         * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
5260         check for signal zero, repair logical sense of test by
5261         parenthesizing correctly.
5263         * hurd/hurdsig.c (_hurd_internal_post_signal): In
5264         check-for-pending signals code, release _hurd_siglock before
5265         jumping to deliver_pending.
5267 Thu Jun 27 04:04:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5269         * configure.in (config_machine): Make ELF the default even for
5270         Linux/Alpha unless a configuration of the form *-*-linux*ecoff
5271         is specified.
5273 Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5275         * nss/nss_files/files-hosts.c (ENTDATA): Define it.
5276         * nss/nss_files/files-parse.c (struct parser_data): Define entdata
5277         member only #ifdef ENTDATA.
5278         (ENTDATA_DECL): New macro.
5279         (LINE_PARSER): Use it for entdata decl.
5280         (parse_list): Find the space for LIST from DATA->linebuffer instead of
5281         from the input LINE, which might not be writable buffer space.
5282         (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
5283         [ENTDATA] (parser_stclass): #define to `static inline'.
5284         [!ENDATA] (parser_stclass): #define to empty.
5285         [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
5286         function is exported to -lnss_files users.
5288         * string/strndup.c: Add missing arg.
5290         * string/string.h (strndupa): Likewise.
5291         * string/strndup.c (strndup): Always terminate the string.
5293 Thu Jun 27 14:22:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5295         * stdio/Makefile (routines): Add vscanf.
5296         * stdio-common/Makefile (routines): Remove vscanf.
5297         * stdio-common/vscanf.c: Move to ...
5298         * stdio/vscanf.c: here.
5300         * rpm/Makefile (headers, install-lib, install-lib.so,
5301         versioned, install-bin, install-sbin, install-data,
5302         install-others): Add $(-VARIABLE).
5304 Fri Jun 28 02:41:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5306         * nss/Makefile (databases): New variable.
5307         (routines, libnss_files-routines): Use it.
5308         (subdir-dirs): Compute from $(services).
5310         * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
5311         init_module, klogctl): Use EXTRA in the "caller" column so these get
5312         added to unix-extra-syscalls and thus compiled in misc.
5314         * string/Makefile (routines): Add strndup.
5315         * string/strndup.c: New file.
5316         * string/string.h: Declare strndup.
5317         (strndupa): New macro.
5319         * string/string.h: Declare __strdup.
5320         * string/strdup.c: Deansideclized.  Define __ name and weak alias.
5322         * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
5324 Thu Jun 27 02:49:28 1996  Ulrich Drepper  <drepper@cygnus.com>
5326         * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
5328         * grp/initgroups.c (initgroups): De-ansi-fy.
5329         Move declaration of NGROUPS and GROUPS outside #if so that
5330         the code compiles for NGROUPS_MAX != 0.
5332         * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
5333         (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
5334         ether_ntoa, ether_ntoa_r, and ether_ntoh.
5335         * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
5336         inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
5337         inet/ether_ntoh.c: New files.  Implementation of functions to
5338         handle Ethernet address to host mapping.
5339         * inet/netinet/ether.h: New file.  Declare ether_* functions.
5340         * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
5341         compilation.
5342         * nss/ethers-lookup.c: New file.  Lookup function for ethers database.
5343         * nss/Makefile (routines): Add ethers-lookup.
5344         (libnss_files-routines): Add files-ethers.
5346         * nss/getXXent_r.c: Don't define set*ent and end*ent function
5347         with _r suffix.
5349         * nss/nss_files/files-XXX.c (internal_endent): Don't reset
5350         KEEP_STREAM every time called.
5351         (_nss_files_end): Reset KEEP_STREAM here instead.
5352         (internal_getent): If STREAM == NULL try to open instead of
5353         signalling error.
5354         Use cast to prevent warning.
5355         Terminate read line in case the buffer is too small.
5357         * nss/nss_files/files-ethers.c: New file.  Implementation of
5358         Ethernet adress<->hostname lookup through files interface.
5360         * stdlib/mbstowcs.c: Define based on mbsrtowcs().
5361         * stdlib/mbtowc.c: Define based on mbrtowc().
5362         * stdlib/wcstombs.c: Define based on wcsrtombs().
5363         * stdlib/wctomb.c: Define based on wcrtomb().
5365         * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
5366         unexpected_sizes_in_xdr_u_int.
5368         * sysdeps/generic/netinet/if_ether.h: New file.  Generic declaration
5369         of `struct ether_addr'.
5370         * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file.  Linux specific
5371         declaration of `struct ether_addr'.
5373         * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
5374         * wcsmbs/mbsrtowcs.c: Ditto.
5375         * wcsmbs/wcrtomb.c: Ditto.
5376         * wcsmbs/wcsrtombs.c: Ditto.
5378         * wcsmbs/mbsinit.c: Prepare for PS being NULL.
5380 Wed Jun 26 13:19:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5382         * hurd/get-host.c <fcntl.h>: New include.
5383         * hurd/set-host.c <fcntl.h>: New include.
5384         (_hurd_set_host_config): Include NEW in args to dir_link.
5385         Return NWROTE, not NREAD.
5387         * sysdeps/mach/hurd/getcwd.c
5388         (_hurd_canonicalize_directory_name_internal): Don't deallocate
5389         DOTID & DOTDEVID until we're finished with them (we need to keep
5390         them at least until we've fetched the next level of id ports, so
5391         that mach will be able to use the same name if they're the same).
5392         Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
5393         jumps to errlose, for those places where such cleanup is needed.
5395 Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5397         * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
5399         Move DB code into separate -ldb library.
5400         * db/Makefile (extra-libs): New variable, list libdb.
5401         (routines): Renamed to libdb-routines.
5402         * shlib-versions: Add libdb=2.
5404         * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
5405         * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
5407         * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
5408         of strncasecmp.  Extend syntax to grok [!foo=bar].
5410         * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
5411         weak alias.
5412         * string/string.h: Declare __strncasecmp.
5414         * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
5415         (service_alias): Variable removed.
5416         (nss_parse_service_list): New function, broken out of nss_getline.
5417         Remove alias conversion; we will just use symlinks.
5418         (__nss_database_lookup): Take new string arg DEFCONFIG.
5419         If no entry exists, make one with service list parsed from that.
5420         * nss/nsswitch.h: Update protocol for __nss_database_lookup.
5421         * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
5422         (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
5424         * grp/initgroups.c: Rewritten using getgrent.  Handle unlimited group
5425         list size.
5427         * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
5429 Wed Jun 26 01:56:50 1996  Ulrich Drepper  <drepper@cygnus.com>
5431         * locale/programs/locale.c (long_options): Short form of
5432         --version option is `-V'.
5433         (main): Recognize `-V' as option, not `-v'.
5434         Call `usage' instead of printing error message for illegal
5435         option.
5436         (usage): Document `-V'.
5438 Tue Jun 25 17:22:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5440         * sysdeps/mach/hurd/getcwd.c
5441         (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
5442         THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
5444 Tue Jun 25 10:58:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5446         * inet/getrpcent.c: Fix macros.
5447         * inet/getrpcent_r.c: Fix macros.
5449         * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
5451         * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
5453 Tue Jun 25 09:55:47 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
5455         * catgets/gencat.c (write_out): Use %Zu to print variables of type
5456         size_t.
5457         * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
5458         cast it to (unsigned long) to make it work both on 32 and 64
5459         bit architectures.
5461 Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5463         * locale/Makefile (distribute): Add `programs/' prefix to all
5464         files in that directory.
5466         * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
5467         subdir' works.
5469         * MakeTAGS (sources, headers): Make them simply expanded variables
5470         so that all-dist is expanded before it is changed.
5472 Tue Jun 25 02:59:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5474         * Make-dist (dist): Don't depend on crypt tar file.  Remove that rule.
5475         * Makefile (subdirs): Remove crypt.
5476         * crypt: Directory removed.  It will be made an independent library
5477         distribution.
5479         * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
5481         * inet/getrpcent_r.c (DATABASE_NAME): New macro.
5483         * inet/getrpcbynumber.c (BUFLEN): New macro.
5485         * configure.in (--no-whole-archive check): Remove backslashes in cmd.
5487         * Makefile (headers): Add libc-lock.h.
5488         * sysdeps/stub/libc-lock.h: New file.
5490         * inet/getrpcbynumber.c: Remove _r typo.
5492         * elf/dl-load.c (_dl_map_object): Fix typo in last change.
5494         * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
5495         after the first!
5497         * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
5498         or doesn't mention DATABASE, use an internal default equivalent to
5499         "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
5500         (nss_lookup_function): Call nss_new_service as needed.
5501         (nss_parse_file): Don't bother calling nss_new_service here.
5503         * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
5504         * pwd/fgetpwent.c: Likewise.
5506         * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
5507         * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
5508         * malloc/malloc-size.c: New file.
5509         * malloc/malloc-walk.c: New file.
5511         * malloc/malloc-find.c (malloc_find_object_address): Return null if
5512         PTR is outside the heap.
5514         * elf/dl-load.c (_dl_map_object): If the requested name matches the
5515         soname of a loaded object, use that object.
5517 Mon Jun 24 19:57:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5519         * Makefile (subdirs): Add nss.
5521         * inet/Makefile (routines): Add getrpcent, getrpcbyname,
5522         getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
5523         * inet/getrpcbynumber_r.c: New file.
5524         * inet/getrpcbynumber.c: New file.
5525         * inet/getrpcbyname.c: New file.
5526         * inet/getrpcbyname_r.c: New file.
5527         * inet/getrpcent_r.c: New file.
5528         * inet/getrpcent.c: New file.
5529         * nss/rpc-lookup.c: New file.
5530         * nss/nss_files/files-rpc.c: New file.
5531         * nss/Makefile (routines): Add rpc-lookup.
5532         (libnss_files-routines): Add files-rpc.
5533         * sunrpc/Makefile (routines): Remove getrpcent.
5534         * sunrpc/getrpcent.c: File removed.
5536         * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
5537         non-null on entry.
5539         * Makeconfig (rpath-link): Add $(nssobjdir).
5540         (nssobjdir): New variable.
5542         * Makerules: Move shared library building before objects rules, so
5543         versions are known before extra-lib.mk gets included.
5544         * extra-lib.mk (lib-noranlib): Depend on the shared object too.
5546         * pwd/getpwuid.c: Rewritten using nss.
5547         * pwd/getpwnam.c: Likewise.
5548         * pwd/getpwent.c: Likewise.
5549         * grp/getgrnam.c: Likewise.
5550         * grp/getgrgid.c: Likewise.
5551         * grp/getgrent.c: Likewise.
5552         * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
5553         * pwd/getpwent_r.c: New file.
5554         * pwd/getpwnam_r.c: New file.
5555         * pwd/getpwuid_r.c: New file.
5556         * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
5557         * grp/getgrnam_r.c: New file.
5558         * grp/getgrgid_r.c: New file.
5559         * grp/getgrent_r.c: New file.
5560         * grp/Makefile (routines): Remove grpopen, grpread.
5561         * pwd/Makefile (routines): Remove pwdopen, pwdread.
5562         * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
5564         * pwd/fgetpwent.c: Rewritten using files-parse.c.
5565         * grp/fgetgrent.c: Likewise.
5567         * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
5568         * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
5569         * nss/nss_files/files-grp.c: New file.
5570         * nss/nss_files/files-pwd.c: New file.
5572         * nss/Makefile (subdir-dirs): New variable; use it in vpath.
5574         * nss/nss_files/files-parse.c: New file.
5575         * nss/nss_files/files-XXX.c: New file.
5576         * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
5577         nss/nss_files/files-service.c, nss/nss_files/files-network.c:
5578         Rewritten using them.
5580         * nss/Makefile (libnss_files-routines): Remove files-host.
5581         Add files-hosts, files-grp, files-pwd.
5583         * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
5585 Mon Jun 24 22:39:12 1996  Richard Henderson  <rth@tamu.edu>
5587         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
5588         A .plt entry now loads the .rela.plt offset directly rather
5589         than making us calculate it.
5591 Sun Jun 23 15:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5593         * time/Makefile ($(installed-localtime-file) rule): Do
5594         $(make-target-directory) first.
5596         * resolv.h: Fix wrapper for resolv/resolv.h.
5598         * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
5599         Compile dummy file and pass -nostdlib -nostartfiles so as not to
5600         require installed libraries.
5602         * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
5603         libnss_dns=1.
5605 Sun Jun 23 19:42:05 1996  Ulrich Drepper  <drepper@cygnus.com>
5607         * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
5608         and mapv4v6hostent.h.
5609         (routines): Move res* and gethnamaddr into libresolv-routines.
5610         (libresolv-routines): New variable, put them there.
5611         (extra-libs): New variable, list libresolv.
5612         (CPPFLAGS): Add -D for get*by* to res_get*by*.
5614         * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
5616         * inet/herrno.c: New file.
5618         * resolv/res_init.c: Remove res_hconf calls.
5620         * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
5621         nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
5622         nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
5623         nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
5624         nss/service-lookup.c: New files.  Implementation of name
5625         service switch, following the approach in Solaris.
5626         Interface specification and general structure inspired by Peter
5627         Eriksson <pen@lysator.liu.se>.
5628         * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
5629         nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
5630         Implementation of libnss_files.so module for file based databases
5631         in NSS service.
5632         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
5633         if libnss_dns.so module for DNS name lookup in NSS service.
5635         * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
5636         inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
5637         Changed to serve as interface to NSS.
5638         * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
5639         inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
5640         inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
5641         inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
5642         inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
5643         inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
5644         inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files.  Implement
5645         interfaces to NSS, including reentrant functions.
5647         * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
5648         resolv/sethostent.c: Removed:  Obsoleted by NSS.
5650         * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
5651         gethnamaddr.c.  These private functions are now used in more
5652         than one file.
5654         * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
5656 Sat Jun 22 16:49:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5658         * rpm/Makefile ($(config)): Make sure the word list in the for
5659         loop is syntactically non-empty.
5661 Sat Jun 22 21:29:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5663         * Version 1.92 test release.
5665 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5667         * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
5668         to klogctl to match prototype in sys/klog.h.
5670         * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
5671         * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
5673         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
5674         Remove.  Code is now part of __getcwd again.  The old function
5675         never really worked for anything but THISDIR==".".
5677         * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
5678         only when building ELF version of library.
5680         * libio/libioP.h (_IO_vscanf): Add prototype.
5682         * posix/unistd.h (syscall): Change sysno arg and return value
5683         to int long.
5685 Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5687         * version.h (VERSION): Updated to 1.92.
5689         * misc/Makefile (headers): Add ar.h.
5690         * misc/ar.h: New file.
5692         * config.make.in (BUILD_CC): New variable.
5693         * configure.in: Check for BUILD_CC if $host != $build.
5695         * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
5697         * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
5698         (stamp$o files): New targets, create them empty, no deps.
5700         * rpm/template (Source): New field.
5701         (%prep, %build, %install): New sections.
5702         (%files): Add %doc FAQ NEWS NOTES README.
5703         * rpm/rpmrc (builddir): Removed.
5705 Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5707         * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
5708         guessing to not assume p_vaddr of first load cmd is zero.
5710         * sysdeps/sparc/elf/start.S: New file.
5711         * sysdeps/sparc/dl-machine.h: New file.
5713         * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
5714         only for ?s, not for *s.  Fix from Chet Ramey.
5716         Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
5717         * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
5718         Use __{BEGIN,END}_DECLS.
5719         (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
5720         * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
5721         New macros, moved here from sysdeps/gnu/utmpbits.h.
5722         * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
5723         * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
5724         * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
5725         Use sizeof instead of UT_*SIZE.
5726         * login/logwtmp.c: Likewise.
5728         * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
5730         * version.c (banner): Add trailing newline.
5732         * login/utmp.h: Declare login_tty.
5734 Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>
5736         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
5737         Changed to a 12-byte PLT entry to remove dependency on $gp.
5738         Take a new got_addr parameter.
5739         (elf_machine_rela): Pass the new parameter.
5740         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
5741         (RTLD_START): Do normal linkage with program entry.
5743 Thu Jun 20 12:18:21 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5745         * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
5747         * hurd/getuids.c (getuids): New weak link to __getuids.
5749 Wed Jun 19 10:21:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>
5751         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
5752         __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
5753         argument.
5754         Rename nested function lookup to lookup_op.
5755         (__file_name_lookup, __file_name_lookup_under):
5756         Pass 0 for lookup arg to __hurd_file_name_lookup.
5757         (__file_name_split): Likewise for __hurd_file_name_split.
5758         * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
5759         Rename nested function lookup to scan_lookup.
5760         (file_name_path_lookup): Pass 0 for lookup arg to
5761         hurd_file_name_path_lookup.
5762         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
5763         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
5764         __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
5765         Add LOOKUP argument.
5766         * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
5767         __hurd_file_name_lookup.
5769 Mon Jun 17 19:09:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5771         * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
5772         up a huge list just to discard most of it.
5774         * configure.in (sysnames): Avoid fgrep by using the case shell
5775         builtin.
5777         * Makeconfig (config.status): Fix dependency on Implies files.
5779 Wed Jun 19 01:27:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
5781         * math/Makefile (distribute): Add ieee-math.c.
5783 Wed Jun 19 03:24:58 1996  Ulrich Drepper  <drepper@cygnus.com>
5785         * locale/codeset_name.c: New file.  Provide function for information
5786         about currently used character set.
5787         * locale/Makefile (routines): Add codeset_name.
5788         * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
5789         * locale/localeinfo.h: Change magic number because of incompatible
5790         change.
5791         * locale/C-ctype.c: Add initializer for new field `codeset_name'.
5792         * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
5794         * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
5795         name `MAX_IOVEC'.  Instead use standard name `UIO_MAXIOV'.
5797         * locale/setlocale.c (setlocale): Initialize local variables to
5798         prevent warnings.
5800 Thu Jun 13 17:25:11 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5802         * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
5804         * locale/programs/locale.c: Include string.h.
5806         * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
5807         (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
5808         appropriate sign-extension is performed on machines with
5809         sizeof(long) > 4.
5811         * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
5812         sizeof(int)<sizeof(long), we need to go through a temporary
5813         variable.
5815         * locale/programs/ld-numeric.c: Include <alloca.h>
5817         * libio/stdio.h (__libc_fatal): Add prototype.
5819         * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
5820         in efect.
5822         * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
5823         volatile to avoid "might get clobbered by longjmp" warning.
5825         * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
5826         unless _LOOSE_KERNEL_NAMES is in effect (which, with high
5827         probability is a sure loser).
5828         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
5830         * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
5831         * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
5833         * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
5834         to be Linux FSSTND compliant.
5836 Mon Jun 10 17:50:31 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5838         * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
5840         * sysdeps/unix/sysv/linux/alpha/sysdep.S,
5841         sysdeps/unix/sysv/linux/alpha/brk.S,
5842         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
5843         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
5844         sysdeps/unix/sysv/linux/alpha/llseek.S,
5845         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
5846         sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
5847         __syscall_error to avoid intruding application name space.
5849         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
5850         to SYS_get?id so that syscall stubs in sysdeps/unix define
5851         these syscalls in terms of getxpid/getxuid/getxgid.
5853         * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
5854         sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
5855         sysdeps/unix/execve.S, sysdeps/unix/fork.S,
5856         sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
5858         * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
5859         (PSEUDO_END): Rename END() to PSEUDO_END().
5861         * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
5862         to PSEUDO_END to improve branch-prediction.  Include .frame
5863         directive to make syscalls debugabble.
5864         (PSEUDO_END): New macro.
5866         * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
5867         sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
5868         latter is illegal under DEC Unix.
5870         * sysdeps/unix/alpha/sysdep.S: Renamed from
5871         sysdeps/unix/sysv/linux/alpha/sysdep.S.  This file works for OSF/1
5872         as well.
5873         * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
5874         EWOULDBLOCK -> EAGAIN mapping was unnecessary since
5875         EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
5877         * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
5878         address register in the .frame directive.
5880         * sysdeps/alpha/copysign.c: Remove.
5882         * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
5883         avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
5885         * errno.h: Move __END_DECLS to correct place to make file
5886         compilable under c++.
5888         * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro.  Define
5889         d_ino only if <direntry.h> hasn't defined d_fileno.
5891         * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
5892         arguments to weakext to make .weakext detection work on ECOFF systems.
5894         * FAQ: Add Linux/Alpha to list of supported platforms.  Mention
5895         that _validuser() has been replaced by __ivaliduser().
5897 Thu Jun  6 21:39:38 1996  David Mosberger-Tang  <davidm@azstarnet.com>
5899         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
5900         as unsigned long, not as int (to avoid incorrect int->long
5901         promotion).
5905 See ChangeLog.5 for earlier changes.