update from main archive 970122
[glibc.git] / ChangeLog
blobc19819349b5127d429334598c6b2049a3ac25f01
1 1997-01-23  Paul Eggert  <eggert@twinsun.com>
3         * mktime.c (mktime): Invoke __tzset, not __tzset_internal, to set tz,
4         so that tzname is set as POSIX requires.
6 Fri Jan 24 02:49:18 1997  Ulrich Drepper  <drepper@cygnus.com>
8         * dirent/dirent.h: Declare readdir_r also when __USE_POSIX.
9         * grp/grp.h: Declare *_r functions also when __USE_POSIX.
10         * pwd/pwd.h: Likewise.
11         * time/time.h: Likewise.
12         * posix/unistd.h: Declare ttyname_r also when __USE_POSIX.
13         * string/string.h: Declare strtok_r also when __USE_POSIX.
15         * stdio-common/bug7.c: Use tmpnam to generate names for test files.
17         * stdio-common/tmpnam.c: Update copyright.
18         * stdio-common/tmpnam_r.c: Likewise.
20         * sysdeps/unix/sysv/linux/alpha/sys/kernel_termios.h: Protect
21         against multiple inclusion.  Include <termbits.h>.
22         * sysdeps/unix/sysv/linux/sys/kernel_termios.h: Likewise.
24         * sysdeps/unix/sysv/linux/net/if.h: Update according to recent
25         kernel headers.  Patch by Philip Blundell <pjb27@cam.ac.uk>.
27 Thu Jan 23 17:42:00 1997  Ulrich Drepper  <drepper@cygnus.com>
29         * sysdeps/unix/sysv/linux/sparc/clone.S: Correct author attribution.
31         * sysdeps/unix/sysv/linux/net/if_arp (MAX_ADDR_LEN): Add definition.
33 Thu Jan 23 14:20:34 1997  Ulrich Drepper  <drepper@cygnus.com>
35         * time/tzfile.c (__tzfile_read): Don't allow arbitrary files to be
36         read when running a setuid program.
38 Thu Jan 23 04:06:42 1997  Ulrich Drepper  <drepper@cygnus.com>
40         * Make-dist (.PHONY: dist): Remove duplicate declaration.
41         (README): Depend on version.h not version.c.
42         * Makefile (README): Depend on version.h not version.c.
44         * Makeconfig (inst_libdir, inst_slibdir, inst_includedir,
45         inst_datadir, inst_zonedir, inst_localedir, inst_i18ndir, inst_bindir,
46         inst_sbindir, inst_infodir, inst_sysconfdir): New variables.  Same
47         as variable withough inst_ but prepended with $(install_root).
48         (localtime-time): Use $(inst_sysconfdir) not $(sysconfdir).
49         * Makefile (install-others): Use $(inst_includedir).
50         (gnu/stabs.h, gnu/lib-names.h): Use $(inst_includedir).
51         * Makerules (tons of install rules): Use inst_% variables.
52         * elf/Makefile: Likewise.
53         * hurd/Makefile: Likewise.
54         * intl/Makefile: Likewise.
55         * manual/Makefile: Likewise.
56         * po/Makefile: Likewise.
57         * sunrpc/Makefile: Likewise.
58         * sysdeps/mach/hurd/Makefile: Likewise.
59         * sysdeps/standalone/i386/force_cpu386/Makefile: Likewise.
60         * time/Makefile: Likewise.
62         * config.make.in: Revert patch from Sat Jan 18 22:15:26 1997,
63         leave install_root in place.
65         * gnu-versions.h (_GNU_GETOPT_INTERFACE_VERSION): Define to 2.
66         * posix/getopt.c (GETOPT_INTERFACE_VERSION): Define to 2.
67         * posix/getopt1.c (GETOPT_INTERFACE_VERSION): Define to 2.
69         * elf/Makefile [yes==$(has-ldconfig)]: Correct dependencies of
70         ldconfig.
71         (CFLAGS-dl-load.c): New variable, avoid gcc warning.
73         * sysdeps/mach/hurd/configure.in: Add _LIBC_REENTRENT to DEFINES.
75         * sysdeps/mach/hurd/getdents.c: Update copyright.  De-ANSI-declfy.
76         * sysdeps/stub/getdents.c: Likewise.  Correct return value.
77         * sysdeps/unix/getdents.c: Likewise.
78         * sysdeps/unix/sysv/getdents.c: Likewise.
80         * sysdeps/unix/readdir.c: Update copyright.
82         * sysdeps/unix/bsd/sony/newsos4/Makefile: Correct ifeq arguments.
83         * sysdeps/unix/bsd/sun/sunos4/Makefile: Likewise.
84         * sysdeps/unix/sysv/Makefile: Likewise.
85         * sysdeps/unix/sysv/linux/Makefile: Likewise.
86         * sysdeps/unix/sysv/linux/alpha/Makefile: Likewise.
87         * sysdeps/unix/sysv/linux/i386/Makefile: Likewise.
89         * sysdeps/unix/sysv/linux/Dist: Don't distribute kernel_termios.h,
90         but sys/kernel_termios.h.
91         * sysdeps/unix/sysv/linux/alpha/Dist: Likewise.
92         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==termios]
93         (sysdep_headers): Add sys/kernel_termios.h.
94         * sysdeps/unix/sysv/linux/kernel_termios.h: Moved to...
95         * sysdeps/unix/sysv/linux/sys/kernel_termios.h: ...here.
96         * sysdeps/unix/sysv/linux/sys/tcgetattr.c: Use __kernel_termios and
97         __KERNEL_NCCS instead of kernel_termios and KERNEL_NCCS resp.
99         * sysdeps/unix/sysv/linux/alpha/ioctls.h: New file.
101         * sysdeps/unix/sysv/linux/getdents.c: Correct problems with alignment.
102         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove getdents.
103         Reported by Eirik Fuller <eirik@netcom.com>.
105         * time/Banner: Removed.  Wrong and unnecessary information.  It's now
106         in...
107         * time/README: New file.
108         * time/Makefile (distribute): Remove Banner, add README.
110 Wed Jan 22 13:19:56 1997  Richard Henderson  <rth@tamu.edu>
112         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platforms): Add Sable.
113         (init_iosys): Recognize /etc/alpha_systype as a four-tuple for
114         the purpose of supporting brand new systems.
115         (*): The type of iosys variables should be iosys_t.
117 1997-01-22  Paul Eggert  <eggert@twinsun.com>
119         * strftime.c (_strftime_copytm):
120         New function, to work around Solaris 2.5 tzset bug.
122 Wed Jan 22 23:05:14 1997  Ulrich Drepper  <drepper@cygnus.com>
124         * sysdeps/mach/hurd/vdprintf.c: Complete de-ANSI-declfication.
125         Reported by Marcus G. Daniels <marcus@shannon.sysc.pdx.edu>.
127 Wed Jan 22 13:58:56 1997  Andreas Jaeger  <aj@arthur.pfalz.de>
129         * elf/Makefile (CFLAGS-dl-load.c): New Variable to keep gcc silent
130         since name_copy is initialized.
132 Wed Jan 22 16:58:12 1997  Ulrich Drepper  <drepper@cygnus.com>
134         * stdio-common/Makefile (tests): Remove scanf11.
135         * stdio-common/scanf11.c: Removed.
136         * stdio-common/vfscanf.c Revert patch of Thu Jan 16 23:39:25 1997.
137         Although the Corrigendum 1 describes the result as implemented the
138         even more recent Amendement 1 seconds the position of ISO C:1990
139         where the %n directive has no effect on the assignment count.
140         * stdio-common/bug10.c: Likewise.
141         * stdio-common/scanf1.c: Likewise.
142         * stdio-common/scanf3.c: Likewise.
143         * stdio-common/scanf10.c: Likewise.
144         * stdio-common/tstdiomisc.c: Likewise.
146         * new-malloc/obstack.h: Don't define malloc using bcopy if malloc
147         is not available.  This leads to problems since bcopy does not
148         return a value.  Instead define _obstack_memcpy based on memcpy or
149         bcopy.  This name isn't used outside obstack.h and so no problems
150         from using the memcpy function in a file including obstack.h can
151         result.
152         Reported by Martin Trapp <trapp@ipd.info.uni-karlsruhe.de>.
154 Tue Jan 21 18:35:55 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
156         * misc/regexp.h (compile): Fix typos.
158 Tue Jan 21 01:01:59 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
160         * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo): Fix
161         type of pr_{pid,ppid,pgrp,sid} fields.
162         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h (struct
163         elf_prpsinfo): Likewise.
165 1997-01-21  Paul Eggert  <eggert@twinsun.com>
167         * posix/getopt.c (_getopt_internal): Return -1, not EOF, when args
168         are exhausted; this is required by POSIX.2.
169         * catgets/gencat.c, db/makedb.c, locale/programs/locale.c,
170         locale/programs/localedef.c, manual/examples/subopt.c,
171         posix/getopt.c, posix/getopt1.c, stdio-common/bug4.c,
172         sunrpc/rpcinfo.c (main): Check getopt return value against -1, not EOF.
174 Tue Jan 21 23:10:40 1997  Ulrich Drepper  <drepper@cygnus.com>
176         * version.h (VERSION): Bump to 1.102.
178         * sysdeps/unix/sysv/linux/alpha/Dist: Add kernel_sigaction.h.
180         * elf/Makefile: Don't use CFLAGS-dl-load.c, but instead
181         CPPFLAGS-dl-load.c so that dependencies can be determined correctly.
182         * elf/dl-load.c: Fix comment.
184         * time/Banner: New file.
185         * time/Makefile (distribute): Add Banner.
187         Update from ADO tzcode1997a and tzdata1997a.
188         * time/antarctica: Update.
189         * time/australia: Update.
190         * time/zdump.c: Update.
191         * time/zic.c: Update.
192         * time/zone.tab: Update.
194 Mon Jan 20 08:38:32 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
196         * config.make.in (has-ldconfig): New variable.
198         * configure, configure.in (has_ldconfig): New substitute.
200         * sysdeps/unix/sysv/linux/configure.in (has_ldconfig): New,
201         check if $srcdir/elf/ldconfig.c exists.
203         * Makeconfig (rootsbindir): New, default as
204         $(exec_prefix)/sbin.
205         (rtld-version-installed-name): New, default as
206         ld-$(version).so.
208         * Makefile (install): Call `$(common-objpfx)elf/ldconfig -d'
209         only if $(cross-compiling) is no and $(build-shared) is yes.
211         * Makerules (make-shlib-link): New macro.
212         ($(slibdir)/libfoo.so.$(libfoo.so-version)): Use
213         $(make-shlib-link) for symlink.
214         (install-rootsbin, install-rootsbin-nosubdir): New.
215         (install-no-libc.a-nosubdir): Add
216         install-rootsbin-nosubdir.
218         * Rules (others): Add $(install-rootsbin).
220         * config.make.in (rootsbindir): New.
222         * configure, configure.in (libc_cv_rootsbindir): New
223         substitute.
225         * elf/Makefile (others, install-rootsbin): New, set to
226         ldconfig.
227         (+link): New for static linking.
228         ($(slibdir)/$(rtld-version-installed-name)): New.
229         ($(slibdir)/$(rtld-installed-name)): Depend on
230         $(slibdir)/$(rtld-version-installed-name) and use
231         $(make-shlib-link) for symlink.
233         * sunrpc/xdr.c (xdr_string): Return FALSE if sp == NULL
234         while XDR_ENCODE.
236         * sysdeps/unix/sysv/linux/a.out.h: Use #include_next for
237         glibc internals.
239         * sysdeps/unix/sysv/linux/configure.in (libc_cv_rootsbindir):
240         New, set to "/sbin" if "$prefix" == "/usr".
242 Tue Jan 21 13:38:39 1997  Ulrich Drepper  <drepper@cygnus.com>
244         * Makefile (distribute): Add glibcbug.in.
245         Reported by Philip Blundell <pjb27@cam.ac.uk>.
247         * elf/Makefile ($(objpfx)trusted-dirs.h): Create elf/ subdir in
248         build directory if necessary.
249         Reported by marcus@shannon.sysc.pdx.edu (Marcus G. Daniels).
251 Tue Jan 21 04:05:20 1997  Ulrich Drepper  <drepper@cygnus.com>
253         * version.h (VERSION): Bump to 1.101.
255         Implement -d and -r option to `ldd' to check relocations.
256         * elf/dl-error.c: Add another method to intercept errors.
257         (_dl_receive_error): New function.  Install user defined handler.
258         (receiver): New variable.  Contains pointer to user provided handler.
259         (_dl_signal_error): If user provided handler is installed call this.
260         * elf/dl-load.c (_dl_map_object): When shared object is not found in
261         trace mode initialize a few more fields so that lookup can actually
262         happen but always fails.
263         * elf/ldd.sh.in: Rewrite argument handling.  Recognize new arguments
264         to trigger reloation test.  Return with appropriate error code if
265         a file wasn't found.  Print warning if object is not executable.
266         * elf/ldd.bash.in: Likewise.
267         * elf/link.h (receiver_fct): New type.  Used in _dl_receive_error.
268         (_dl_sysdep_error): New prototype.
269         (_dl_receive_error): New prototype.
270         (_dl_signal_error): Remove  __attribute__ ((__noreturn__)).
271         * elf/rtld.c (dl_main): Rewrite argument handling.  More than
272         one argument allowed.  Recognize --data-relocs and --function-relocs
273         arguments.
274         Don't determine `lazy' mode from LD_BIND_NOW environment variable
275         when in trace mode.
276         If in trace mode and either --data-relocs or --function-relocs is
277         given perform relocation.  Report errors using print_unresolved
278         function.
279         (print_unresolved): New function.  Print information about missing
280         symbol on stderr.
281         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_error): New function.
282         Like _dl_sysdep_message but print to stderr.
283         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
285         * sysdeps/generic/sockaddrcom.h: Add definition of sa_family_t.
286         Reported by Andreas Schwab.
287         (__SOCKADDR_COMMON): Use sa_family_t for family member.
288         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: Likewise.
290         Linux/Sparc support by Miguel de Icaza.
291         * sysdeps/sparc/fpu_control.h: New file.
292         * sysdeps/unix/sysv/linux/sparc/__sigtrampoline.S: New file.
293         * sysdeps/unix/sysv/linux/sparc/brk.c: New file.
294         * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
295         * sysdeps/unix/sysv/linux/sparc/sigaction.c: New file.
296         * sysdeps/unix/sysv/linux/sparc/socket.S: New file.
297         * sysdeps/unix/sysv/linux/sparc/syscall.S: New file.
298         * sysdeps/unix/sysv/linux/sparc/sysdep.h: New file.
299         * sysdeps/unix/sysv/linux/sparc/Dist: New file.
300         * sysdeps/unix/sysv/linux/sparc/Makefile: New file.
302         * sysdeps/unix/sysv/linux/net/if_arp.h: Don't use kernel header.
303         Provide own definition based on 4.4BSD and Linux.
304         * sysdeps/unix/sysv/linux/net/ppp_defs.h: Define __u32 before
305         including <linux/ppp_defs.h>.
306         * sysdeps/unix/sysv/linux/sys/msq_buf.h (struct msqid_ds): Don't
307         use __pid_t since the kernel might have a different size.
308         * sysdeps/unix/sysv/linux/sys/shm_buf.h (struct shmid_ds): Likewise.
309         Reported by Andreas Schwab.
311         * time/asctime.c: Update copyright.
312         * time/dysize.c: Likewise.
313         * time/gmtime.c: Likewise.
314         * time/timegm.c: Likewise.
315         * time/offtime.c: Likewise.  De-ANSI-declfy.
317         * time/tzset.c (__tzset_internal): When TZ envvar does not name a
318         DST timezone don't default to offset -1.
320         * sysdeps/unix/sysv/linux/net/route.h: Don't use kernel header.
321         Reported by a sun <asun@zoology.washington.edu>.
323         * resolv/Makefile: Correct spelling: subdirs-dirs -> subdir-dirs.
325         * sysdeps/stub/sysv_signal.c: New file.  Stub implementation.
327         * Makefile (distribute): Add mcheck.h.
329         * nis/Makefile (distribute): Add nss-nis.h.
331         * libio/Makefile (routines): Change vdprintf to iovdprintf to prevent
332         dist problem.
334         * nss/Makefile (distribute): Add digits_dots.c.
336         * sysdeps/unix/sysv/linux/Dist: Add kernel_sigaction.h.
337         * sysdeps/unix/sysv/linux/alpha/Dist: Add sys/procfs.h.
338         * sysdeps/unix/sysv/linux/sparc/Dist: Add clone.S.
339         * new-malloc/Makefile (distribute): Add mcheck-init.c and mcheck.h.
341 Mon Jan 20 17:54:28 1997  Sven Verdoolaege  <skimo@breughel.ufsia.ac.be>
343         * manual/filesys.texi: Fix little problem (reentrant->readdir).
345 Fri Jan 17 19:07:07 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
347         * configure.in [$elf=yes]: Check for support of .previous and
348         .popsection in the assembler.
349         * config.h.in: Add HAVE_ASM_PREVIOUS_DIRECTIVE and
350         HAVE_ASM_POPSECTION_DIRECTIVE.
351         * libc-symbols.h (__make_section_unallocated) [HAVE_ELF]: Define
352         appropriate if either .previous or .popsection is supported.
353         (libc_warning) [HAVE_ELF]: Use it here.
355 Sat Jan 18 22:15:26 1997  Richard Henderson  <rth@tamu.edu>
357         * Makeconfig (CFLAGS-.so): Add -fno-common to prevent odd sorts of
358         errors that can occur when linking libc.so.
360 Mon Jan 20 05:20:49 1997  Ulrich Drepper  <drepper@cygnus.com>
362         * elf/dl-load.c (open_path): When running setuid don't try
363         a directory if it is not given with the full name.
365         * elf/Makefile (before-compile): New variable.  Mention trusted-dirs.h.
366         (trusted-dirs.h): Construct file from $(default-rpath) and
367         $(user-defined-trusted-dirs) variables.
368         * elf/dl-load.c (_dl_map_object): Pass additional argument to open_path
369         which is NULL except for the LD_LIBRARY_PATH pass in which case it
370         is a pointer to the list of directories from the trusted-dirs.h
371         file.
372         (open_path): Accept additional argument with list of trusted dirs.
373         When running setuid and a list of trusted dirs is given only use
374         those which are mentioned in the list.
376         * elf/rtld.c (dl_main): Don't reject whole LD_LIBRARY_PATH when
377         running setuid.  Instead accept entries which do not contain a '/'.
379         * Makeconfig: Correct comment about +(default_cflags).
381 Mon Jan 20 05:11:14 1997  Hrvoje Niksic  <hniksic@srce.hr>
383         * time/strptime.c (recursive): Use && not || to test for valid
384         argument.
386 Mon Jan 20 05:06:50 1997  Ulrich Drepper  <drepper@cygnus.com>
388         * elf/ldd.sh.in: Exit with value 1 if an error occured.
389         * elf/ldd.bash.in: Likewise.
391         * elf/rtld.c (dl_main): Do not always ignore LD_PRELOAD when the
392         binary runs setuid.  It is save to use those entries which do not
393         contain a '/'.  This is compatible with Solaris-2.
395 Mon Jan 20 03:02:50 1997  Ulrich Drepper  <drepper@cygnus.com>
397         * Make-dist: Update and reformat copyright.
398         * Makeconfig: Likewise.
399         * assert/Makefile: Likewise.
400         * bare/Makefile: Likewise.
401         * ctype/Makefile: Likewise.
402         * dirent/Makefile: Likewise.
403         * gmon/Makefile: Likewise.
404         * gnulib/Makefile: Likewise.
405         * grp/Makefile: Likewise.
406         * hurd/Makefile: Likewise.
407         * intl/Makefile: Likewise.
408         * mach/Makefile: Likewise.
409         * malloc/Makefile: Likewise.
410         * manual/Makefile: Likewise.
411         * math/Makefile: Likewise.
412         * po/Makefile: Likewise.
413         * pwd/Makefile: Likewise.
414         * resource/Makefile: Likewise.
415         * setjmp/Makefile: Likewise.
416         * socket/Makefile: Likewise.
417         * string/Makefile: Likewise.
418         * sunrpc/Makefile: Likewise.
419         * sysdeps/alpha/Makefile: Likewise.
420         * sysdeps/gnu/Makefile: Likewise.
421         * sysdeps/m68k/fpu/switch/Makefile: Likewise.
422         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
423         * sysdeps/m68k/fpu/switch/switch.c: Likewise.
424         * sysdeps/mach/Makefile: Likewise.
425         * sysdeps/hurd/Makefile: Likewise.
426         * sysdeps/sparc/Makefile: Likewise.
427         * sysdeps/standalone/i960/nindy960/Makefile: Likewise.
428         * sysdeps/standalone/m68k/m68020/mvme136/Makefile: Likewise.
429         * sysdeps/unix/common/Makefile: Likewise.
430         * sysdeps/unix/sysv/Makefile: Likewise.
431         * sysdeps/unix/sysv/irix4/Makefile: Likewise.
432         * sysdeps/unix/sysv/sco3.2/Makefile: Likewise.
433         * sysdeps/unix/sysv/sysv4/Makefile: Likewise.
434         * sysdeps/vax/Makefile: Likewise.
435         * sysvipc/Makefile: Likewise.
436         * wcsmbs/Makefile: Likewise.
437         * wctype/Makefile: Likewise.
439         * elf/rtld.c (dl_main): Objects in LD_PRELOAD environment variable
440         are separated according to Sun docs by white space not colon.
442         * locale/C-time.c (_nl_C_LC_TIME): Use empty string to initialize
443         fields which are not defined for the C locale.
445         * sysdeps/m68k/fpu/switch/Makefile: Don't use ansidecl.h in constructed
446         files.
447         * sysdeps/m68k/fpu/switch/68881-sw.h: Likewise.
448         * sysdeps/m68k/fpu/switch/switch.c: Likewise.
450 Sun Jan 19 19:43:31 1997  Andreas Jaeger  <aj@arthur.pfalz.de>
452         * time/strptime.c: Provide prototype for strptime_internal.
454 Sun Jan 19 23:46:27 1997  Ulrich Drepper  <drepper@cygnus.com>
456         * glibcbug.in: We don't guarantee confidential handling.  Set
457         field to always contain `no'.
459 Sun Jan 19 21:28:01 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>
461         * intl/explodename.c: Include sys/types.h.
462         * intl/l10nflist.c: Likewise.
464 Sat Jan 18 22:15:26 1997  Richard Henderson  <rth@tamu.edu>
466         * config.make.in (install_root): New variable to make it easy to
467         install glibc somewhere other than /.
469         * shlib-versions: alpha-*-linux-* libc=6.1.
471         Since sigset_t no longer fits in a register, we can't pass in the
472         thread's initial mask so easily.  Take this opportunity to simplify
473         the clone implementation by only accepting a single void* argument.
475         * sysdeps/unix/sysv/linux/alpha/clone.S: Only take one argument.
476         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
477         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
478         * sysdeps/unix/sysv/linux/sparc/clone.S: Likewise.
479         * sysdeps/unix/sysv/linux/schedbits.h: Update clone prototypes.
481         * sysdeps/unix/sysv/linux/alpha/ioctl-types.h: Remove.
482         Default Linux version should be sufficient.
484         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c: The osf_sigprocmask
485         system call wants the sigset dereferenced.
487         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add entries for
488         __syscall_ustat and __syscall_xmknod.
489         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Include sys/sysmacros.h.
491         * sysdeps/unix/sysv/linux/sigset.h: Use longs instead of ints.
493         * sysdeps/unix/sysv/linux/tcsetattr.c: Fix pointer dereferences.
495         * sysdeps/unix/sysv/linux/alpha/sigsuspend.c: Add comment about
496         dependency to kernel type.
498         * sysdeps/unix/sysv/linux/alpha/termbits.h: Correct comment.
500 Sun Jan 19 04:38:20 1997  Ulrich Drepper  <drepper@cygnus.com>
502         * config.make.in (have-ksh, KSH): New variables.  Will be filled
503         in by configure.
504         * configure.in: Add test for ksh like shell (prefer bash).
505         * time/Makefile (tests): Depend on install-test-data.
506         (distribute): Add simplebackw.
507         (generated-dirs): New variable.
508         [$(have-ksh)==yes] (install-others): Add iso3166.tab and zone.tab.
509         (install-bin): Add tzselect.
510         (install-test-data): Install the zoneinfo files which are needed
511         for the test case in the build directory.
512         (test-tz-ENV): New variable.  Call test-tz program using data in
513         build directory.
514         * time/simpleback: New file.
515         * time/test-tz.c: Pretty print.
516         * time/tzfile.c: Use value of environment variable TZDIR as directory
517         to look for zone info files.
518         don't let search for DST data destroy already found values.
519         * time/tzselect.ksh: Use @KSH@ and @TZDIR@ to be substituted when
520         installing.
521         * time/tzset.c (__tzset_internal): Avoid freeing string twice.
522         Set DST zone name to normal zone name if no information is provided.
524         * time/mktime.c (mktime): Call __tzset_internal to use current
525         value of TZ.
527         * Makerules (common-clean): Remove $(generated-dirs) inclusing content.
529         * glibcbug.in: Fix several bugs.  Reported by several people.
531         * elf/Makefile: Correct dependecies for $(objpfx)ldd.
533         * inet/netinet/ip.h: Define IPTOS_LOWCOST and IPTOS_MINCOST.
535         * locale/C-time.c: Update copyright.
536         * locale/localeinfo.h: Likewise.
537         * sysdeps/unix/bsd/bsd4.4/direntry.h: Likewise.
539         * locale/programs/ld-time.c (time_finish): Correct message string.
540         * locale/programs/linereader.c (lr_token): Use correctly `number'
541         not `digit' in message string.
543         * stdlib/strtol.c [UNSIGNED]: Don't punt immediately when `-' is
544         seen.  Instead return ULONG_MAX and set ERANGE.
545         * stdlib/tst-strtol.c: Correct test to reflect above change.
547 Sun Jan 19 03:22:30 1997  Ulrich Drepper  <drepper@cygnus.com>
549         * sysdeps/unix/sysv/linux/sys/mtio.h: Don't use <linux/mtio.h>.
550         We must not use <linux/posix_types.h>.
552         * sysdeps/unix/sysv/linux/sys/ipc_buf.h: Don't use __kernel_* types
553         since we must not use <linux/posix_types.h>.
554         * sysdeps/unix/sysv/linux/sys/procfs.h: Likewise.
555         * sysdeps/unix/sysv/linux/alpha/sys/ipc_buf.h: New file.  Similar
556         to sysdeps/unix/sysv/linux/sys/ipc_buf.h, but use alpha relavent
557         types.
558         * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: New file.  Similar
559         to sysdeps/unix/sysv/linux/sys/procfs.h, but use alpha relavent
560         types.
562 Sun Jan 19 01:48:20 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
564         * sysdeps/libm-i387/e_exp.S: Correct computation of fractional
565         part.
566         * sysdeps/libm-i387/e_expf.S: Likewise.
567         * sysdeps/libm-i387/e_expl.S: Likewise.
568         * sysdeps/libm-i387/s_expm1.S: Correct computation of fractional
569         part.  Take care of additional value left on stack by fscale.
570         * sysdeps/libm-i387/s_expm1f.S: Likewise.
571         * sysdeps/libm-i387/s_expm1l.S: Likewise.
573 Fri Jan 17 17:45:32 1997  Ulrich Drepper  <drepper@cygnus.com>
575         * posix/getopt.c: Change all direct usages of `gettext' to `_'.
577         * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Add missing
578         parameter.
579         Reported by Harmanjit Singh <harman@netearth.iitd.ernet.in>.
581 Thu Jan 16 23:39:25 1997  Ulrich Drepper  <drepper@cygnus.com>
583         * stdio-common/Makefile (tests): Add scanf11.
584         * stdio-common/scanf11.c: New file.
585         * stdio-common/vfscanf.c (__vfscanf): Increment `done' when %n
586         was processed and value is not suppressed.
587         * stdio-common/bug10.c: Correct test to expect %n increment the
588         return value of scanf.
589         * stdio-common/scanf1.c: Likewise.
590         * stdio-common/scanf3.c: Likewise.
591         * stdio-common/scanf10.c: Likewise.
592         * stdio-common/tstdiomisc.c: Likewise.
594         * time/strptime.c: Add lots of conditional compiling to enable use
595         outside glibc.  When used in glibc, make sure C locale format
596         strings will always be recognized.
598 Sat Jan 11 18:53:47 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
600         * sysdeps/unix/sysv/linux/sys/sysmacros.h (major, minor, makedev):
601         Fix definitions so that they work with __kernel_dev_t.
603 Sat Jan 11 14:24:10 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
605         * sysdeps/unix/sysv/linux/kernel_sigaction.h,
606         sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h,
607         sysdeps/unix/sysv/linux/sigaction.c: New files.
608         * sysdeps/unix/sysv/linux/syscalls.list: Add s_sigaction.
610 Sun Jan 12 15:22:33 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
612         * libc-symbols.h (link_warning): Make sure that the .gnu.warning
613         section is not allocated.
614         Update and reformat copyright.
616 Sun Jan 12 12:19:28 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
618         * elf/Makefile ($(objpfx)ldd): Fix depedency list.
620 Sat Jan 11 15:11:26 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
622         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls): Fix
623         command so that it works in subdirectories.
625 Wed Jan  8 22:07:58 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
627         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add s_getgroups and
628         s_setgroups.
629         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Likewise.
630         * sysdeps/unix/sysv/linux/i386/getgroups.c,
631         sysdeps/unix/sysv/linux/i386/setgroups.c,
632         sysdeps/unix/sysv/linux/m68k/getgroups.c,
633         sysdeps/unix/sysv/linux/m68k/setgroups.c: New files.
635 Wed Jan  8 19:42:59 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
637         * Makefile (config.status): Delete bogus rule.
638         ($(objpfx)glibcbug): Renamed from plain `glibcbug', depend on
639         config.status in build directory, fix command to change to build
640         directory.
641         * Makeconfig ($(common-objpfx)config.status): Depend on version.h.
643 Thu Jan  9 08:47:54 1997  Andreas Jaeger  <aj@arthur.pfalz.de>
645         * glibcbug.in (while): We test for four and not five conditions,
646         set MAIL_AGENT instead of RMAIL, filter spaces and tabs.
648 Thu Jan 16 22:00:27 1997  Ulrich Drepper  <drepper@cygnus.com>
650         * misc/syslog.c: Don't define cancel_handler if _LIBC_REENTRANT
651         is not defined.  Reported by Andreas Jaeger.
653 Thu Jan  9 08:47:54 1997  Andreas Jaeger  <aj@arthur.pfalz.de>
655         * new-malloc/malloc.c (__MALLOC_P): define call to pthread
656         initializer only if NO_THREADS is not defined.
658 Wed Jan  8 21:28:58 1997  Andreas Jaeger  <aj@arthur.pfalz.de>
660         * resolv/nss_dns/dns-host.c: Clean-up: delete unnecessary includes
661         and variables.
663 Thu Jan 16 21:50:27 1997  Ulrich Drepper  <drepper@cygnus.com>
665         * inet/arpa/inet.h: Include <netinet/in.h> to get struct in_addr
666         defined.
668 Tue Jan  7 17:29:59 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
670         * Makerules (LDLIBS-c.so): New variable.
672 Tue Jan  7 19:22:00 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
674         * Makefile ($(includedir)/gnu/lib-names.h): Define the library
675         names as strings, not as sequence of tokens that may fall apart.
677 Fri Jan 10 14:08:41 1997  Roland McGrath  <roland@fmh.frob.com>
679         * time/tzfile.c (__tzfile_read): Check for bogus type and zone name
680         indices in data file and punt, so a bogus file can't crash us.
682 Thu Jan 16 20:29:15 1997  Ulrich Drepper  <drepper@cygnus.com>
684         * values.h [__USE_MISC]: Define BITSPERBYTE.
686 Fri Jan 17 14:16:28 1997  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
688         * stdio/vdprintf.c: Moved file to ...
689         * sysdeps/posix/vdprintf.c: Here.  De-ansideclificate.
690         * sysdeps/stub/vdprintf.c: New file.
691         * sysdeps/mach/hurd/vdprintf.c: New file.
693 Thu Jan  9 15:59:35 1997  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
695         * sysdeps/mach/hurd/posix_opt.h: New file.
697         * sysdeps/mach/hurd/sigwait.c (sigwait): Don't affect signal mask.
699         * sysdeps/unix/bsd/tcsendbrk.c (tcsendbreak): Finish
700         deansideclification.
702         * sysdeps/mach/libc-lock.h: Add kludges to pretend to implement
703         recursive locks.
705 Tue Jan  7 09:48:15 1997  Andreas Jaeger  <aj@arthur.pfalz.de>
707         * signal/sigempty.c (sigemptyset): Correct typo: Empty set should
708         have all bits zero.
710 Tue Jan  7 23:44:39 1997  Ulrich Drepper  <drepper@cygnus.com>
712         * inet/gethstbynm.c: Include additional headers for additional
713         code in nss/digits_dots.c.
714         * inet/gethstbynm_r.c: Likewise.
715         * inet/gethstbynm2.c: Likewise.
716         * inet/gethstbynm2_r.c: Likewise.
717         * nss/digits_dots.c: New file.  Handle dotted pair notation for
718         gethstbynm functions.
719         * nss/getXXbyYY.c: Include digits_dots.c to get extra code for
720         handling dotted pair notation.
721         * nss/getXXbyYY_r.c: Likewise.
722         Patches by HJ Lu.
724         * resolv/nss_dns/dns-host.c: Don't handle dotted pair notation.
726         * io/getwd.c: Optimized a bit.
728         * signal/signal.h: Always declare __sysv_signal.
730         * sysdeps/generic/setenv.c: Add some portability code.
732         * sysdeps/unix/sysv/fcntlbits.h: Update copyright.
734         * sysdeps/unix/sysv/linux/fcntlbits.h: Add definitions from kernel
735         to avoid using kernel headers.
736         * sysdeps/unix/sysv/linux/alpha/fcntlbits.h: New file.  Alpha
737         specific version.
739         * sysdeps/unix/sysv/linux/syscalls.list: Add sys_mknod.  Don't
740         mark sigreturn as EXTRA.
742         * sysdeps/unix/sysv/linux/ustat.c: Declare __syscall_ustat.
743         * sysdeps/unix/sysv/linux/alpha/ustat.c: New file.  Alpha version.
745 Tue Jan  7 09:48:15 1997  Andreas Jaeger  <aj@arthur.pfalz.de>
747         * io/fts.c (fts_alloc): Add const to second parameter of function.
749         * io/Makefile: Change CFLAGS-fts.c and define CFLAGS-ftw.c to
750         prevent warnings.
752         * signal/sigfillset.c: Include <string.h> for memset declaration.
754 Tue Jan  7 11:14:32 1997  Miles Bader  <miles@gnu.ai.mit.edu>
756         * sysdeps/generic/setenv.c: Fix portability problems.
758 Tue Jan  7 02:10:17 1997  Ulrich Drepper  <drepper@cygnus.com>
760         * posix/getopt.c (_getopt_internal): Don't reset __getopt_initialized
761         after the last option was seen.
763 Mon Jan  6 15:30:21 1997  Ulrich Drepper  <drepper@cygnus.com>
765         * elf/elf.h (DT_EXTRANUM): Set to 3 since 0x7ffffffd is used.
767 Mon Jan  6 13:57:05 1997  Ulrich Drepper  <drepper@cygnus.com>
769         * io/ftw.c: Add `const' to second parameter of function given as
770         second parameter to ftw.
771         * io/ftw.h: Likewise for prototype.
772         Reported by Ronald F. Guilmette <rfg@monkeys.com>.
774 Thu Jan  2 23:44:39 1997  Philip Blundell  <pjb27@cam.ac.uk>
776         * inet/Makefile (headers): Add netinet/ip.h.
777         * inet/netinet/ip.h: New file, contains BSD definitions for struct
778         ip and friends.
780 Fri Jan  3 23:17:11 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
782         * string/string.h (strnlen): Add cast for C++.
784 Mon Jan  6 03:31:46 1997  Ulrich Drepper  <drepper@cygnus.com>
786         * Makefile (install-bin): Define as glibcbug to install script.
787         (glibcbug): New rules.  Create from glibcbug.in.
788         * configure.in (AC_OUTPUT): Generate glibcbug script.
789         * glibcbug.in: New file.
790         * version.c: Mention glibcbug to report bugs.
791         * catgets/gencat.c: Likewise.
792         * db/makedb.c: Likewise.
793         * locale/programs/locale.c: Likewise.
794         * locale/programs/localedef.c: Likewise.
795         * elf/ldd.bash.in: Likewise.
796         * elf/ldd.sh.in: Likewise.
797         * intl/locale.alias: Likewise.
799         * mcheck.h: New file.  Necessary since mcheck.h is used in time/ap.c.
801         * set-init.c: Update and reformat copyright.
802         * version.c: Likewise.
803         * signal/sigaddset.c: Likewise.
804         * signal/sigdelset.c: Likewise.
805         * signal/sigempty.c: Likewise.
806         * signal/sigfillset.c: Likewise.
807         * signal/siggetmask.c: Likewise.
808         * signal/sigismem.c: Likewise.
809         * sysdeps/generic/speed.c: Likewise.
810         * sysdeps/unix/getdents.c: Likewise.
811         * sysdeps/unix/xmknod.c: Likewise.
812         * sysdeps/unix/bsd/poll.c: Likewise.
813         * sysdeps/unix/bsd/tcdrain.c: Likewise.
814         * sysdeps/unix/bsd/tcflow.c: Likewise.
815         * sysdeps/unix/bsd/tcflush.c: Likewise.
816         * sysdeps/unix/bsd/tcgetpgrp.c: Likewise.
817         * sysdeps/unix/bsd/tcsendbrk.c: Likewise.
818         * sysdeps/unix/bsd/tcsetpgrp.c: Likewise.
819         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c: Likewise.
820         * sysdeps/unix/sysv/getdents.c: Likewise.
821         * sysdeps/unix/sysv/i386/sigreturn.S: Likewise.
822         * termios/Makefile: Likewise.
823         * termios/cfmakeraw.c: Likewise.
824         * termios/cfsetspeed.c: Likewise.
826         * version.h: Bump VERSION to 1.100.
828         * intl/finddomain.c: Defining stpcpy function isn't necessary.
830         * libio/genops.c (_IO_init): Use _IO_lock_init instead of
831         _IO_lock_init_recursive.
832         * libio/stdfiles.c (DEF_STDFILE): Use _IO_lock_initializer instead
833         of _IO_lock_init.
835         * locale/programs/charmap.c (obstack_chunk_alloc): Use malloc instead
836         of xmalloc.
837         * locale/programs/ld-collate.c: Likewise.
838         * locale/programs/simple-hash.c: Likewise.
840         * misc/Makefile (headers): Add selectbits.h.
841         * misc/sys/select.h: Include <selectbits.h> to get necessary
842         definitions.
843         * sysdeps/generic/selectbits.h: New file.  Generic macros for
844         handling file descriptor sets.
845         * sysdeps/i386/selectbits.h: New file.  i386 specific macros for
846         handling file descriptor sets.
847         * sysdeps/generic/gnu/types.h: Remove _FD_* macros.
849         * misc/mntent_r.c: Fix handling of multiple, comma-separated
850         options.  Patch by Sai-Lai Lo <sll@orl.co.uk>.
852         * po/de.po: Update.
853         * po/ko.po: Update.
854         * po/sv.po: Update.
856         * posix/getopt.c: Only use the bash generated environment variable
857         to determine non-option parameters when using in GNU libc and if
858         the argument vector given to getopt is the same as given to the
859         program.
861         * posix/unistd.h [__USE_GNU]: Declare environ.
863         * posix/sys/types.h (key_t): Also define when __USE_XOPEN.
865         * resolv/res_debug.c: Add casts to prevent warnings.
866         * resolv/res_query.c: Likewise.
868         * resolv/nss_dns/dns-host.c: Change type for buffer size arguments
869         to `size_t'.
870         * resolv/nss_dns/dns-network.c: Likewise.
872         * signal/sigempty.c: Use memset to initialize variable.
873         * signal/sigfillset.c: Likewise.
875         * signal/signal.h: Change back handling of signal.  The BSD
876         version is preferred and the new sysv_signal is used when
877         __USE_XOPEN.
878         * sysdeps/posix/sysv_signal.c: Renamed from signal.c.  Use SVID
879         semantic.
880         * sysdeps/posix/signal.c: Renamed from bsd_signal.c.  Use BSD
881         semantic.
882         * sysdpes/posix/sigpause.c: Correct comment.
883         * sysdeps/stub/sigpause.c: Provide default implementation.
884         * signal/Makefile (routines): Remove bsd_signal, add sysv_signal.
886         * sysdeps/generic/abort.c: Allow repeated calls to abort if
887         a user defined handler for SIGABRT is installed.
889         * sysdeps/stub/libc-lock.h: Define separate set of macros for
890         handling recursive mutexes.
892         * sysdeps/unix/Makefile: Change rule to generate syscall.h file
893         so that it is generate in the sys/ subdir.
895         * sysdeps/unix/sysv/linux/Dist: Add kernel_termios.h.
896         * sysdeps/unix/sysv/linux/alpha/Dist: Add kernel_termios.h and
897         sys/acct.h.
899         * sysdeps/unix/sysv/linux/direntry.h: Don't use struct dirent from
900         kernel.  Define own version with additional field d_type.
901         * sysdeps/unix/sysv/linux/getdents.c: New file.  Reformat dirent
902         entries after reading from kernel.
904         * sysdeps/unix/sysv/linux/gnu/types.h: Don't use kernel headers.
905         Define types based on kernel types except for uid_t, gid_t, mode_t,
906         dev_t which are larger now.
907         * sysdeps/unix/sysv/linux/alpha/gnu/types.h: Likewise.
909         * sysdeps/unix/sysv/linux/ioctl-types.h: Don't include
910         <linux/termios.h>.  Define structure here.
911         * sysdeps/unix/sysv/linux/alpha/ioctl-types.h: Likewise.
912         * sysdeps/unix/sysv/linux/kernel_termios.h: New file. Define
913         architecture dependent struct termio type.
914         * sysdeps/unix/sysv/linux/alpha/kernel_termios.h: Likewise.
915         * sysdeps/unix/sysv/linux/sigset.h: Define extended sigset_t type.
916         * sysdeps/unix/sysv/linux/sigsuspend.c: Pass first word of array
917         to syscall.
919         * sysdeps/unix/sysv/linux/socketbits.h: Don't use kernel header.
920         * sysdeps/unix/sysv/linux/statfsbuf.h: Likewise.
921         * sysdeps/unix/sysv/linux/termbits.h: Likewise.
922         * sysdeps/unix/sysv/linux/alpha/termbits.h: Likewise.
923         * sysdeps/unix/sysv/linux/ustatbits.h: Likewise.
924         * sysdeps/unix/sysv/linux/net/if.h: Likewise.
925         * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
926         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
928         * sysdeps/unix/sysv/linux/sys/sysmacros.h (minor, major, mkdev):
929         Change definitions to fit new dev_t definition.
931         * sysdeps/unix/sysv/linux/syscalls.list: Add getdents and sigreturn.
932         Rename ustat to s_ustat since wrapper is needed.
934         * sysdeps/unix/sysv/linux/tcgetattr.c: After getting value from
935         kernel rewrite it to userland level data format.
936         * sysdeps/unix/sysv/linux/tcsetattr.c: Before calling kernel change
937         data format to kernel format.
938         * sysdeps/unix/sysv/linux/ustat.c: New file.  Change format of
939         device parameter to format needed by kernel.
940         * sysdeps/unix/sysv/linux/alpha/ustat.c: Likewise.
941         * sysdeps/unix/sysv/linux/xmknod.c: New file.  Extend generic
942         version to change device parameter to format needed by kernel.
943         * sysdeps/unix/sysv/linux/alpha/xmknod.c: Likewise.
945         * sysdeps/unix/sysv/linux/alpha/sys/acct.h: New file.  Alpha specific
946         definition of accounting structure.
948         * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <asm/ptrace.h>.
949         Patch by Andreas Schwab.
951         * time/ap.c: Include <mcheck.h>.
953         * time/tzset.c (__tzset_internal): Change to take one argument
954         which tells whether examining of TZ is always wanted or only if
955         no initialization happened before.
956         * time/localtime.c: (localtime, __localtime_r): Change for new
957         __tzset_internal form.
959         * time/sys/time.h: Include <sys/select.h> to get select related
960         declarations.
962 Mon Jan  6 01:58:21 1997  Richard Henderson  <richard@atheist.tamu.edu>
964         * sysdeps/alpha/dl-machine.h (elf_machine_dynamic): Work around
965         bug in GNU ld.
967 Mon Jan  6 01:35:29 1997  H.J. Lu  <hjl@gnu.ai.mit.edu>
969         * misc/getpass.c: Make sure the content of the input buffer is not
970         printed if the getpass function is interrupted.
972 Sat Jan  4 17:07:08 1997  Roland McGrath  <roland@fmh.frob.com>
974         * md5-crypt/Makefile (rpath-link): Add md5-crypt objdir, not crypt.
976 Thu Jan  2 17:58:23 1997  Roland McGrath  <roland@fmh.frob.com>
978         * sysdeps/generic/abort.c: Include <string.h> for memset decl.
980         * new-malloc/mcheck.c [_LIBC || STDC_HEADERS || USG]: Include
981         <string.h> so memset is declared.
983 Tue Dec 31 21:16:05 1996  Roland McGrath  <roland@fmh.frob.com>
985         * elf/dl-deps.c (_dl_map_object_deps): Support DT_AUXILIARY.
987         * elf/dl-error.c (_dl_catch_error): Save and restore old catch site so
988         calls can be nested.
990         * elf/link.h (struct link_map): Extend `l_info' by DT_EXTRANUM elts.
991         * elf/dynamic-link.h (elf_get_dynamic_info): Grok tags in the Sun
992         extension range.
994         * elf/elf.h (DT_AUXILIARY, DT_FILTER, DT_EXTRANUM): New constant
995         macros, for Sun extensions.
996         (DT_EXTRATAGID): New macro to convert Sun extension tag values placed
997         near the top of the processor-specific range into zero-origin indices.
999         * elf/dl-deps.c (_dl_map_object_deps): Check for malloc failure.
1001 Sat Jan  4 22:25:01 1997  Andreas Jaeger  <aj@arthur.pfalz.de>
1003         * libio/fcloseall.c: Include stdio.h for prototype declaration for
1004         __fcloseall.
1006 Thu Jan  2 17:35:20 1997  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1008         * sysdeps/posix/signal.c: Provide ignorable definitions of
1009         SA_ONESHOT, SA_NOMASK, and SA_INTERRUPT for non-threads Posix
1010         systems.
1012 Thu Jan  2 23:20:51 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1014         * MakeTAGS ($P/siglist.pot): Delete rule.
1015         (XGETTEXTFLAGS-siglist.pot): Remove definition.
1016         (all-pot): Remove $P/siglist.pot.
1017         * sysdeps/unix/siglist.c: Mark strings as translatable.
1018         * sysdeps/unix/sysv/linux/siglist.h: Likewise.
1020 Wed Jan  1 22:21:18 1997  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1022         * misc/syscall.h: New file.
1023         * misc/sys/syscall.h: Removed.  Forwarding to <syscall.h> might
1024         find user header, so do it the other way round.
1025         * sysdeps/mach/sys/syscall.h: Moved here from parent directory.
1026         * sysdeps/stub/sys/syscall.h: Likewise.
1027         * sysdeps/unix/sysv/linux/sys/syscall.h: Likewise.
1028         * sysdeps/unix/sysv/sco3.2.4/sys/syscall.h: Likewise.
1029         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h): Update
1030         dependency.
1031         * sysdeps/unix/sysdep.h: Include <sys/syscall.h> instead of
1032         <syscall.h>.
1034 Tue Dec 31 00:03:18 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1036         * features.h: Fix typo.
1038 Thu Jan  2 00:46:09 1997  Ulrich Drepper  <drepper@cygnus.com>
1040         * libio/_G_config.h: Add _G_HAVE_LONG_DOUBLE_IO for libg++.
1042 Wed Jan  1 15:15:00 1997  Ulrich Drepper  <drepper@cygnus.com>
1044         * libio/Makefile (routines): Add fcloseall.
1045         * libio/fcloseall.c: New file.
1046         * libio/stdio.h [__USE_GNU]: Add prototype for fcloseall.
1047         * libio/iofclose.c: Don't close all streams when argument is NULL.
1049         * stdio/Makefile (routines): Add fcloseall.
1050         * stdio/fcloseall.c: New file.
1051         * stdio/stdio.h [__USE_GNU]: Add prototype for fcloseall.
1052         * stdio/fclose.c: Don't close all streams when argument is NULL.
1054         * manual/stdio.texi: Document fcloseall.
1056         * sysdeps/generic/abort.c: Call __fcloseall instead of fclose with
1057         NULL argument.
1059         * socket/sys/un.h (SUN_LEN): Add cast.
1061         * sunrpc/auth_unix.c (authunix_create): Change parameter types
1062         of uid, gid, and aup_gids to uid_t and gid_t respectively.
1063         (authunix_create_default): Likewise.
1064         (authunix_refresh): Correct cast for aup_gids assignment.
1065         * sunrpc/rpc/auth.h (authunix_create): Correct types in declaration.
1066         * sunrpc/rpc/auth_unix.h (struct authunix_parms): Correct field
1067         types to uid_t and gid_t respectively.
1068         (struct short_hand_verf): Likewise.
1069         Reported by Andreas Schwab.
1071         * sysdeps/ieee754/Makefile: New file.  Make sure ieee754.h gets
1072         installed.
1073         * sysdeps/ieee754/ieee754.h: Protect against multiple inclusion and
1074         use in C++ programs.
1076         * sysdeps/libm-i387/e_pow.S: New file.  Optimized ix87 assembler
1077         version of pow() function.
1078         * sysdeps/libm-i387/e_powf.S: New file.  Float version.
1079         * sysdeps/libm-i387/e_powl.S: New file.  Long double version.
1081         * sysdeps/libm-i387/s_expm1.S: New file.  Optimized ix87 assembler
1082         version of expm1() function.
1083         * sysdeps/libm-i387/s_expm1f.S: New file.  Float version.
1084         * sysdeps/libm-i387/s_expm1l.S: New file.  Long double version.
1086         * sysdeps/libm-i387/e_exp.S: Optimize handling of +-Inf.
1087         Better handling of computation stack from current NetBSD sources.
1088         * sysdeps/libm-i387/e_expf.S: Likewise.
1089         * sysdeps/libm-i387/e_expl.S: Likewise.
1091         * sysdeps/libm-i387/e_log.S: Use fstp instead of fincstp.
1092         * sysdeps/libm-i387/e_logf.S: Likewise.
1093         * sysdeps/libm-i387/e_logl.S: Likewise.
1094         * sysdeps/libm-i387/e_log10.S: Likewise.
1095         * sysdeps/libm-i387/e_log10f.S: Likewise.
1096         * sysdeps/libm-i387/e_log10l.S: Likewise.
1097         * sysdeps/libm-i387/s_asinh.S: Likewise.
1098         * sysdeps/libm-i387/s_asinhf.S: Likewise.
1099         * sysdeps/libm-i387/s_asinhl.S: Likewise.
1100         * sysdeps/libm-i387/s_significandl.S: Likewise.
1102         * sysdeps/libm-i387/s_ceil.S: Don't create stack frame.  Modify
1103         stack pointer directly.  Use 32 bit instead of 16 bit operations.
1104         * sysdeps/libm-i387/s_ceilf.S: Likewise.
1105         * sysdeps/libm-i387/s_ceill.S: Likewise.
1106         * sysdeps/libm-i387/s_floor.S: Likewise.
1107         * sysdeps/libm-i387/s_floorf.S: Likewise.
1108         * sysdeps/libm-i387/s_floorl.S: Likewise.
1110         * sysdeps/libm-ieee754/e_coshf.c (huge): Don't declare volatile.
1111         * sysdeps/libm-ieee754/e_expf.c: Likewise.
1112         * sysdeps/libm-ieee754/e_powf.c: Likewise.
1113         From current NetBSD sources.
1115         * sysdeps/libm-ieee754/e_hypot.c (__ieee754_hypot): Don't initialize
1116         `a' and `b' in definition.
1117         * sysdeps/libm-ieee754/e_hypotf.c: Likewise.
1119         * sysdeps/libm-ieee754/e_hypotl.c: New file.  Long double
1120         implementation.
1121         * sysdeps/libm-ieee754/e_sinhl.c: New file.  Long double
1122         implementation.
1123         * sysdeps/stub/e_hypotl.c: Removed.  We have a real version now.
1124         * sysdeps/stub/e_sinhl.c: Removed.
1126         * sysdeps/posix/sigpause.c (__sigpause): Use sigdelset instead of
1127         sigaddset.  Reported by Andreas Schwab.
1128         (__default_sigpause): New function.  Call __sigpause as BSD version.
1129         Make this the default function by providing alias sigpause.
1130         * sysdeps/stub/sigpause.c (__default_sigpause): New funciton.
1131         Simply fail.  Provide alias sigpause.
1133 Wed Jan  1 12:34:54 1997  Ulrich Drepper  <drepper@cygnus.com>
1135         * po/es.po: Update for glibc-1.98.
1136         * po/fr.po: Likewise.
1137         * po/sv.po: New file.  Swedish translation.
1139 Wed Jan  1 12:18:07 1997   MacGyver  <macgyver@tos.net>
1141         * values.h: Fix typos: use SHRT_MAX but SHORT_MAX and SHRT_MIN but
1142         SHORT_MIN.
1144 Tue Dec 24 23:10:21 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1146         * Makefile: Replace `stubs.h' by `gnu/stubs.h'.
1147         * features.h: Include <gnu/stubs.h> instead of <stubs.h>.
1149 Tue Dec 24 22:16:55 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1151         * Makefile (subdirs): Move `elf' last so that librtld.so isn't
1152         relinked in the `make others' pass if an add-on adds something to
1153         libc.
1155 Mon Dec 23 21:23:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1157         * sysdeps/m68k/abort-instr.h: New File.
1159 Mon Dec 23 21:16:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1161         * sysdeps/m68k/Makefile ($(subdir)=elf): Define CFLAGS-rtld.c
1162         to prevent warning.
1164 Mon Dec 23 21:14:22 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1166         * resolv/Makefile (subdirs-dirs): Define.
1168 Mon Dec 23 20:56:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1170         * sysdeps/gnu/utmpbits.h (struct utmp): Fix padding.
1172 Mon Dec 30 11:05:11 1996  Ulrich Drepper  <drepper@cygnus.com>
1174         Update from ADO tzcode1996o.
1175         * time/difftime.c: De-ANSI-declfy.  Simplify computation of hibit
1176         according to ADO version.
1177         * time/zic.c: Correct typo is message.
1179         Update from ADO tzdata1996n.
1180         * time/asia: Updated.
1181         * time/australasia: Likewise.
1182         * time/europe: Likewise.
1183         * time/northamerica: Likewise.
1184         * time/southamerica: Likewise.
1186 Mon Dec 30 01:32:59 1996  Ulrich Drepper  <drepper@cygnus.com>
1188         * tme/localtime.c: Rewrite so that localtime_r does not call tzset,
1189         but localtime does.
1191         * features.h: Rename ANSI C to ISO C.
1192         Mention __GLIBC__ and __GLIBC_MINOR__ macros.
1194         * gnu-versions.h: Add _GNU_GETOPT_INTERFACE_VERSION.
1195         * posix/getopt.c: Use _GNU_GETOPT_INTERFACE_VERSION to check
1196         whether we can elide the code.
1197         * posix/getopt1.c: Likewise.
1198         * posix/Makefile: Correct copyright.
1200         * elf/dl-error.c (_dl_catch_error): Clear `catch' also when error
1201         occurred.
1202         * elf/dl-support.c (_dl_sysdep_open_zero_fill): Don't define if
1203         MAP_ANON is defined.
1204         * elf/eval.c: Use __getline instead of getline.
1205         * elf/rtld.c (dl_main): Check return value of _dl_new_object
1206         function for NULL.
1207         * sysdeps/generic/dl-cache.c: Update copyright.
1209         * signal/Makefile: Correct copyright.
1210         (routines): Remove gsignal and ssignal.  Add bsd_signal.
1211         * signal/gsignal.c: Removed.  Now is made an alias.
1212         * signal/ssignal.c: Likewise.
1213         * sysdeps/posix/raise.c: Add alias gsignal.
1214         * sysdeps/stub/raise.c: Likewise.
1215         * sysdeps/posix/signal.c: Add alias ssignal.
1216         * sysdeps/stub/signal.c: Likewise.
1217         * signal/signal.h: Declare bsd_signal.  Define signal as bsd_signal
1218         if __FAVOR_BSD.
1219         * sysdeps/posix/bsd_signal.c: New file.  Implementation of XPG
1220         function.  This is the old signal.c file.
1221         * sysdeps/posix/signal.c: Change to have semantic of X/Open.
1223         * sysdeps/unix/sysv/linux/signal.c: Add explanation.
1225         * socket/sys/un.h: Define SUN_LEN according to POSIX.1g.
1227         * stdio-common/Makefile (tests): Add scanf10.
1228         * stdio-common/scanf10.c: New file.
1229         * stdio-common/vfscanf.c: Decrement counter if EOF is read while
1230         reading string.
1232         * sysdeps/libm-i387/e_acos.S: Use END, not PSEUDO_END.
1233         * sysdeps/libm-i387/e_acosl.S: Likewise.
1234         * sysdeps/libm-i387/e_asin.S: Likewise.
1235         * sysdeps/libm-i387/e_asinl.S: Likewise.
1236         * sysdeps/libm-i387/e_atan2.S: Likewise.
1237         * sysdeps/libm-i387/e_atan2f.S: Likewise.
1238         * sysdeps/libm-i387/e_atan2l.S: Likewise.
1239         * sysdeps/libm-i387/e_exp.S: Likewise.
1240         * sysdeps/libm-i387/e_expl.S: Likewise.
1241         * sysdeps/libm-i387/e_fmod.S: Likewise.
1242         * sysdeps/libm-i387/e_fmodl.S: Likewise.
1243         * sysdeps/libm-i387/e_log.S: Likewise.
1244         * sysdeps/libm-i387/e_log10.S: Likewise.
1245         * sysdeps/libm-i387/e_log10l.S: Likewise.
1246         * sysdeps/libm-i387/e_logl.S: Likewise.
1247         * sysdeps/libm-i387/e_remainder.S: Likewise.
1248         * sysdeps/libm-i387/e_remainderf.S: Likewise.
1249         * sysdeps/libm-i387/e_remainderl.S: Likewise.
1250         * sysdeps/libm-i387/e_scalb.S: Likewise.
1251         * sysdeps/libm-i387/e_scalbl.S: Likewise.
1252         * sysdeps/libm-i387/e_sqrt.S: Likewise.
1253         * sysdeps/libm-i387/e_sqrtf.S: Likewise.
1254         * sysdeps/libm-i387/e_sqrtl.S: Likewise.
1255         * sysdeps/libm-i387/s_atan.S: Likewise.
1256         * sysdeps/libm-i387/s_atanf.S: Likewise.
1257         * sysdeps/libm-i387/s_atanl.S: Likewise.
1258         * sysdeps/libm-i387/s_ceil.S: Likewise.
1259         * sysdeps/libm-i387/s_ceilf.S: Likewise.
1260         * sysdeps/libm-i387/s_ceill.S: Likewise.
1261         * sysdeps/libm-i387/s_copysign.S: Likewise.
1262         * sysdeps/libm-i387/s_copysignf.S: Likewise.
1263         * sysdeps/libm-i387/s_copysignl.S: Likewise.
1264         * sysdeps/libm-i387/s_cos.S: Likewise.
1265         * sysdeps/libm-i387/s_cosf.S: Likewise.
1266         * sysdeps/libm-i387/s_cosl.S: Likewise.
1267         * sysdeps/libm-i387/s_finite.S: Likewise.
1268         * sysdeps/libm-i387/s_finitef.S: Likewise.
1269         * sysdeps/libm-i387/s_finitel.S: Likewise.
1270         * sysdeps/libm-i387/s_floor.S: Likewise.
1271         * sysdeps/libm-i387/s_floorf.S: Likewise.
1272         * sysdeps/libm-i387/s_floorl.S: Likewise.
1273         * sysdeps/libm-i387/s_ilogb.S: Likewise.
1274         * sysdeps/libm-i387/s_ilogbf.S: Likewise.
1275         * sysdeps/libm-i387/s_ilogbl.S: Likewise.
1276         * sysdeps/libm-i387/s_log1p.S: Likewise.
1277         * sysdeps/libm-i387/s_log1pf.S: Likewise.
1278         * sysdeps/libm-i387/s_log1pl.S: Likewise.
1279         * sysdeps/libm-i387/s_logb.S: Likewise.
1280         * sysdeps/libm-i387/s_logbf.S: Likewise.
1281         * sysdeps/libm-i387/s_logbl.S: Likewise.
1282         * sysdeps/libm-i387/s_rint.S: Likewise.
1283         * sysdeps/libm-i387/s_rintf.S: Likewise.
1284         * sysdeps/libm-i387/s_rintl.S: Likewise.
1285         * sysdeps/libm-i387/s_scalbn.S: Likewise.
1286         * sysdeps/libm-i387/s_scalbnf.S: Likewise.
1287         * sysdeps/libm-i387/s_scalbnl.S: Likewise.
1288         * sysdeps/libm-i387/s_significand.S: Likewise.
1289         * sysdeps/libm-i387/s_significandf.S: Likewise.
1290         * sysdeps/libm-i387/s_significandl.S: Likewise.
1291         * sysdeps/libm-i387/s_sin.S: Likewise.
1292         * sysdeps/libm-i387/s_sinf.S: Likewise.
1293         * sysdeps/libm-i387/s_sinl.S: Likewise.
1295         * sysdeps/libm-i387/e_log.S: Use fyl2xp1 instruction for values
1296         near 1 to increase precision.
1297         * sysdeps/libm-i387/e_log10.S: Likewise.
1298         * sysdeps/libm-i387/e_log10l.S: Likewise.
1299         * sysdeps/libm-i387/e_logl.S: Likewise.
1301         * sysdeps/libm-i387/s_cos.S: Use testl instead of andw.
1302         * sysdeps/libm-i387/s_cosl.S: Likewise.
1303         * sysdeps/libm-i387/s_sin.S: Likewise.
1304         * sysdeps/libm-i387/s_sinl.S: Likewise.
1305         * sysdeps/libm-i387/s_tan.S: Likewise.
1306         * sysdeps/libm-i387/s_tanl.S: Likewise.
1308         * sysdeps/libm-i387/e_acosf.S: New file.  Add float versions.
1309         * sysdeps/libm-i387/e_asinf.S: Likewise.
1310         * sysdeps/libm-i387/e_expf.S: Likewise.
1311         * sysdeps/libm-i387/e_fmodf.S: Likewise.
1312         * sysdeps/libm-i387/e_log10f.S: Likewise.
1313         * sysdeps/libm-i387/e_logf.S: Likewise.
1314         * sysdeps/libm-i387/e_scalbf.S: Likewise.
1316         * sysdeps/libm-i387/e_acosh.S: New file.  Highly optimized versions.
1317         * sysdeps/libm-i387/e_acoshf.S: Likewise.
1318         * sysdeps/libm-i387/e_acoshl.S: Likewise.
1319         * sysdeps/libm-i387/e_atanh.S: Likewise.
1320         * sysdeps/libm-i387/e_atanhf.S: Likewise.
1321         * sysdeps/libm-i387/e_atanhl.S: Likewise.
1322         * sysdeps/libm-i387/e_asinh.S: Likewise.
1323         * sysdeps/libm-i387/e_asinhf.S: Likewise.
1324         * sysdeps/libm-i387/e_asinhl.S: Likewise.
1326         * sysdeps/libm-ieee754/s_asinhf.c: Tweak a bit.  Use lower levels
1327         for simplified handling.
1329         * sysdeps/unix/sysv/linux/syscalls.list: Add query_module.
1331 Sun Dec 22 01:39:29 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1333         * inet/rcmd.c (rcmd): Set h_errno before calling herror.
1334         * inet/rexec.c (rexec): Likewise.
1336 Sat Dec 21 21:47:08 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1338         * sysdeps/unix/sysv/linux/m68k/setjmp.c (__setjmp): Make it really
1339         compatible.
1341 Sun Dec 22 03:23:33 1996  Ulrich Drepper  <drepper@cygnus.com>
1343         * sysdeps/libm-i387/s_log1p.S: Use fyl2xp1 for numbers in range
1344         -0.29 <= x <= 0.29, otherwise the old method.
1345         * sysdeps/libm-i387/s_log1pf.S: Likewise.
1346         * sysdeps/libm-i387/s_log1pl.S: Likewise.
1348 Sun Dec 22 00:01:27 1996  Ulrich Drepper  <drepper@cygnus.com>
1350         * inet/getnetgrent.c: Reformat copyright.
1352         * inet/getnetgrent_r.c (__internal_endnetgrent): Correct comment.
1353         (__internal_getnetgrent): Rename to __internal_getnetgrent_r as
1354         required in change nis/nss_compat/* at Thu Dec 19 14:24:50 1996.
1355         Reported by Thorsten Kukuk <kukuk@weber.uni-paderborn.de>.
1357         * nss/nss_files/files-netgrp.c: Fix typo.
1358         * login/utmp_db.c: Comment out unused variables.
1359         * misc/tst-dirname.c: Provide prototype for main (for now).
1360         * new-malloc/mcheck-init.c: Include <mcheck.h>.
1361         * new-malloc/obstack.c: Provide real prototypes.
1363         * resolv/base64.c (b64_ntop): Use size_t as type of `i', not int.
1364         (b64_pton): Likewise for `tarindex'.
1365         * resolv/nsap_addr.c (inet_nsap_addr): Add cast to prevent warning.
1367         * stdio-common/Makefile: Add CFLAGS-vfprintf.c to prevent warning.
1368         * stdio-common/printf-parse.h: Remove definition of MIN and MAX.
1369         * stdio-common/printf-prs.c: Include <sys/param.h> to get MIN and MAX.
1370         * stdio-common/vfprintf.c: Likewise.
1371         * stdlib/gmp-impl.h: Only define MIN and MAX if not already done.
1372         * stdlib/tst-strtol.c: Don't use -2147483648 as unsigned long value.
1374         * sysdeps/generic/Makefile ($(subdir)=string): Define
1375         CFLAGS-wordcopy.c to prevent warning.
1376         * sysdeps/generic/mul_n.c (mpn_mul_n): Don't define as inline.
1377         * sysdeps/generic/wordcopy.c: De-ANSI-declfy.
1378         * sysdeps/i386/Makefile ($(subdir)=elf): Define CFLAGS-rtld.c
1379         to prevent warning.
1380         * sysdeps/i386/dl-machine.h: Correct copyright.
1381         * sysdeps/unix/closedir.c: Likewise.
1382         * sysdeps/unix/dirstream.h: Likewise.
1383         * sysdeps/unix/opendir.c: Likewise.
1384         * time/tzset.c: Add prototype for __tzset_internal.
1386         * sysdeps/gnu/utmpbits.h (enum utlogin): Comment out since the
1387         way it is supposed to work is not yet known.
1388         (struct utmp): Remove ut_login and ut_syslen field for now.
1390 Sat Dec 21 16:23:54 1996  Ulrich Drepper  <drepper@cygnus.com>
1392         * time/strftime.c: Fix another bug in handling flags made it
1393         impossible to use the `-', `_', or `0' flag.
1395 Sat Dec 21 04:14:16 1996  Ulrich Drepper  <drepper@cygnus.com>
1397         * sysdeps/unix/common/pause.c: Add missing second argument in
1398         call to __sigpause.
1399         Reported by a sun <asun@zoology.washington.edu>.
1401         * locale/weight.h: Correct handling of collation elements.
1402         Reported by Keld Simonsen <keld@dkuug.dk>.
1404         * manual/time.texi: Document ^ flag and %P format.
1406         * new-malloc/malloc.c: Update from Wolfram Gloger.
1408         * nss/nss.h: Reformat copyright.
1409         * posix/sched.h: Likewise.
1410         * sysdeps/i386/fpu_control.h: Likewise.
1411         * sysdeps/unix/sysv/linux/fcntlbits.h: Likewise.
1412         * sysdeps/unix/sysv/linux/ioctls.h: Likewise.
1413         * sysdeps/unix/sysv/linux/sigcontext.h: Likewise.
1414         * sysdeps/unix/sysv/linux/utsnamelen.h: Likewise.
1415         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
1416         * sysvips/sys/msg.h: Likewise.
1418         * stdio-common/Makefile (routines): Remove fcloseall.
1419         * stdio-common/fcloseall.c: Removed.
1421         * stdlib/Makefile (distribute): Add abort-instr.h.
1422         * sysdeps/generic/abort-instr.h: New file.
1423         * sysdeps/i386/abort-instr.h: New file.
1424         * sysdeps/generic/abort.c: Use lock and stage counter to prevent
1425         any form of loop.
1427         * sysdeps/unix/sysv/linux/timebits.h: Define CLK_TCK as 100.
1428         * sysdeps/unix/sysv/linux/alpha/timebits.h: Define CLOCKS_PER_SEC
1429         as 1000000.  Define CLK_TCK as 1024.
1430         * time/time.c (CLK_TCK): Define only if not already set.
1432         * time/strftime.c: Don't use `isdigit' when computing field width
1433         from string since the locale might have more than one digit
1434         block.
1436 Fri Dec 20 12:38:14 1996  Darrel Hankerson  <hankedr@mail.auburn.edu>
1438         * posix/getopt.c (in -W option handling): Return when optind == argc.
1440 Thu Dec 19 14:24:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1442         * nis/nss_nis/nis-alias.c (_nss_nis_parse_aliasent): Add const to
1443         type of KEY.
1445         * nis/nss_compat/compat-grp.c: Include the declaration of the file
1446         parser.
1447         * nis/nss_compat/compat-pwd.c: Likewise.
1448         * nis/nss_compat/compat-spwd.c: Likewise.
1449         * nis/nss_nis/nis-ethers.c: Likewise.
1450         * nis/nss_nis/nis-grp.c: Likewise.
1451         * nis/nss_nis/nis-network.c: Likewise.
1452         * nis/nss_nis/nis-proto.c: Likewise.
1453         * nis/nss_nis/nis-pwd.c: Likewise.
1454         * nis/nss_nis/nis-rpc.c: Likewise.
1455         * nis/nss_nis/nis-spwd.c: Likewise.
1457         * nis/nss_compat/compat-grp.c (getgrent_next_nis,
1458         getgrent_next_file): Pass the correct type for the buffer to the
1459         parser function.
1460         * nis/nss_compat/compat-pwd.c (getpwent_next_netgr,
1461         getpwent_next_nis, getpwent_next_file): Likewise.
1462         * nis/nss_compat/compat-spwd.c (getspent_next_netgr,
1463         getspent_next_nis, getspent_next_file): Likewise.
1464         * nis/nss_nis/nis-ethers.c (internal_nis_getetherent_r,
1465         _nss_nis_getethernam_r, _nss_nis_getetherbyaddr_r): Likewise.
1466         * nis/nss_nis/nis-grp.c (internal_nis_getgrent_r,
1467         _nss_nis_getgrnam_r, _nss_nis_getgrgid_r): Likewise.
1468         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r,
1469         _nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
1470         * nis/nss_nis/nis-proto.c (internal_nis_getprotoent_r,
1471         _nss_nis_getprotobyname_r, _nss_nis_getprotobynumber_r): Likewise.
1472         * nis/nss_nis/nis-pwd.c (internal_nis_getpwent_r,
1473         _nss_nis_getpwnam_r, _nss_nis_getpwuid_r): Likewise.
1474         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r,
1475         _nss_nis_getrpcbynumber_r): Likewise.
1476         * nis/nss_nis/nis-spwd.c (internal_nis_getspent_r,
1477         _nss_nis_getspnam_r): Likewise.
1479 Thu Dec 19 13:37:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1481         * sysdeps/unix/sysv/linux/m68k/setjmp.c: New file.
1483 Thu Dec 19 23:28:33 1996  Ulrich Drepper  <drepper@cygnus.com>
1485         * resolv/resolv.h: Update from BIND 4.9.5-P1.
1486         * resolv/res_comp.c: Likewise.
1487         * resolv/res_debug.c: Likewise.
1488         * resolv/Banner: Update version number.
1490 Thu Dec 19 20:58:53 1996  Ulrich Drepper  <drepper@cygnus.com>
1492         * elf/dlfcn.h: Add extern "C" wrapper.
1494         * io/utime.h: Don't define NULL since this isn't allowed in POSIX.
1495         * io/sys/stat.h: Declare `lstat' only if __USE_BSD ||
1496         __USE_XOPEN_EXTENDED.
1497         * locale/locale.h: Define NULL.
1498         * math/math.c: Don't include <errno.h> to define math errors.
1499         * stdlib/stdlib.h: Likewise.
1500         * posix/unistd.h: Don't declare environ.
1501         * posix/sys/utsname.h (struct utsname): Declare member domainname
1502         as __domainname is !__USE_GNU.
1503         * signal/signal.h: Declare size_t only if __USE_BSD ||
1504         __USE_XOPEN_EXTENDED.
1505         * stdio/stdio.h: Don't declare cuserid when __USE_POSIX, but
1506         instead when __USE_XOPEN.
1507         * string/string.h: Define strndup only if __USE_GNU.
1508         * sysdeps/unix/sysv/linux/clock.c: New file.
1509         * sysdeps/unix/sysv/linux/timebits.h: Define CLOCKS_PER_SEC as
1510         1000000 per X/Open standard.
1511         * features.h: Add code to recognize _POSIX_C_SOURCE value 199309.
1512         Define __USE_POSIX199309.
1513         * posix/unistd.h: Declare fdatasync only if __USE_POSIX199309.
1514         * time/time.c: Declare nanosleep only if __USE_POSIX199309.
1515         Patches by Rüdiger Helsch <rh@unifix.de>.
1517         * locale/locale.h: Add declaration of newlocale and freelocale.
1519         * new-malloc/Makefile (distibute): Add mtrace.awk.
1520         (dist-routines): Add mcheck and mtrace.
1521         (install-lib, non-lib.a): Define as libmcheck.a.
1522         * new-malloc/malloc.h: Add declaration of __malloc_initialized.
1523         * new-malloc/mcheck.c: New file.
1524         * new-malloc/mcheck.h: New file.
1525         * new-malloc/mtrace.c: New file.
1526         * new-malloc/mtrace.awk: New file.
1528         * posix/unistd.h: Correct prototype for usleep.
1529         * sysdeps/unix/bsd/usleep.c: De-ANSI-declfy.  Correct return type.
1530         * sysdeps/unix/sysv/linux/usleep.c: Real implementation based on
1531         nanosleep.
1533         * signal/signal.h: Change protoype of __sigpause to take two
1534         arguments.  Remove prototype for sigpause.  Add two different
1535         macros named sigpause selected when __USE_BSD or __USE_XOPEN
1536         are defined.  This is necessary since the old BSD definition
1537         of theis function collides with the X/Open definition.
1538         * sysdeps/posix/sigpause.c: Change function definition to also
1539         fit X/Open definition.
1541         * sysdeps/libm-i387/e_exp.S: Make sure stack is empty when the
1542         function is left.
1543         * sysdeps/libm-i387/e_expl.S: Likewise.
1544         Patch by HJ Lu.
1546 1996-12-17  Paul Eggert  <eggert@twinsun.com>
1548         * many, many files: Spelling corrections.
1549         * catgets/catgetsinfo.h (mmapped):
1550         Renamed from mmaped (in struct catalog_info.status).
1551         * mach/err_kern.sub (err_codes_unix), string/stratcliff.c (main):
1552         Fix spelling in message.
1553         * po/libc.pot: Fix spelling in message for `zic'; this anticipates
1554         a fix in the tzcode distribution.
1556 Wed Dec 18 15:48:02 1996  Ulrich Drepper  <drepper@cygnus.com>
1558         * time/strftime.c: Implement ^ flag to cause output be converted
1559         to use upper case characters.
1561         * time/zic.c: Update from ADO tzcode1996n.
1563 Wed Dec 18 14:29:24 1996  Erik Naggum  <erik@naggum.no>
1565         * time/strftime.c (add): Don't change global `i' until all is over.
1566         Define NULL is not already defined.
1568 Tue Dec 17 09:49:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1570         * libio/iovsprintf.c (_IO_vsprintf): Change `&sf' to `&sf._sbf._f'
1571         to avoid the need for a cast.
1572         * libio/iovsscanf.c (_IO_vsscanf): Likewise.
1574 Wed Dec 18 03:31:58 1996  Ulrich Drepper  <drepper@cygnus.com>
1576         * dirent/scandir.c: Undo change from Mon Dec  2 15:32:15 1996.
1577         The stream is private and usages outside glibc don't care about
1578         reentrancy.
1579         * io/fts.c: Likewise.
1580         * io/ftw.c: Likewise.
1581         * sysdeps/posix/getcwd.c: Likewise.
1582         * sysdeps/posix/ttyname.c: Likewise.
1583         * sysdeps/posix/ttyname_r.c: Likewise.
1584         * sysdeps/posix/glob.c: Likewise.
1586         * libio/iovsprintf.c: Add cast to prevent warning.
1587         * libio/iovsscanf.c: Likewise.
1589         * libio/libioP.h: Define mmap to __mmap and munmap to __munmap
1590         to keep namespace clean.
1592         * new-malloc/malloc.c: Update to last version from Wolfram Gloger.
1593         Add hooks and check functions from old GNU malloc.
1594         * new-malloc/malloc.h: Likewise.
1596         * nis/ypclnt.c: Remove prototype for xdr_free.
1597         * sunrpc/rpc/xdr.h: Add prototype for xdr_free.
1599         * manual/nss.texi: Correct description of default values and don't
1600         meantion NSS as an add-on.
1602         * nss/grp-lookup.c: Provide default value as
1603         "compat [NOTFOUND=return] files".
1604         * nss/pwd-lookup.c: Likewise.
1605         * nss/spwd-lookup.c: Likewise.
1606         * nss/network-lookup.c: Correct default to
1607         "dns [!UNAVAIL=return] files".
1608         * nss/nsswitch.c: Change default-default value to "nis
1609         [NOTFOUND=return] files" since compat is only available for group,
1610         passwd, and shadow.
1612         * stdlib/on_exit.c (on_exit): Rename to __on_exit and make old name
1613         a weak alias.
1614         * stdlib/stdlib.h: Add prototype for __on_exit.
1616         * sysdeps/unix/sysv/linux/schedbits.h: Add prototype for __clone.
1618         * time/Makefile: Undo change from Sun Dec  8 06:56:49 1996.
1619         The new malloc now has mcheck.
1620         * time/ap.c: Likewise.
1622         * time/tzset.c (__tzset): Rename to __tzset_internal.
1623         (tzset): Rename to __tzset.  Make tzset a weak alias for __tzset.
1624         * time/localtime.c: Use __tzset_internal not __tzset.
1625         * time/strftime.c [_LIBC]: Define tzname as __tzname and tzset
1626         as __tzset to prevent namespace pollution.
1628         * wctype/iswctype.h (icwctype): Rename to __iswctype.  Make iswctype
1629         a weak alias of __iswctype.
1630         * wctype/wctype.h: Add prototype for __iswctype.
1631         (iswalnum, iswalpha, iswcntrl, iswdigit, iswlower, iswgraph,
1632         iswprint, iswpunct, iswspace, iswupper, iswxdigit, iswblank):
1633         Use __iswctype for the test, not iswctype.
1635 1996-12-16  Paul Eggert  <eggert@twinsun.com>
1637         * hurd/hurd/sigpreempt.h
1638         (struct hurd_signal_preemptor.preemptor, _hurdsig_preemptors),
1639         hurd/hurd/signal.h (struct hurd_sigstate.preemptors),
1640         hurd/hurdfault.c, hurd/hurdfault.h (_hurdsig_fault_preemptor),
1641         hurd/hurdsig.c (_hurdsig_preempters):
1642         Renamed to fix spelling from `preempter' to `preemptor'.
1643         All uses changed.
1645 1996-12-15  Paul Eggert  <eggert@twinsun.com>
1647         * ctime.c (ctime): Return asctime (localtime (t)), as the C
1648         standard requires.
1650 Tue Dec 17 02:05:48 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1652         * sysdeps/mach/libc-lock.h (__libc_lock_trylock): Invert return
1653         value because Mach/cthreads uses the opposite convention from
1654         Posix/glibc.
1656 Mon Dec 16 22:41:01 1996  Ulrich Drepper  <drepper@cygnus.com>
1658         * stdio-common/fcloseall.c: Correct test of already_called.
1659         Reported by Thomas Bushnell, n/BSG.
1661 Mon Dec 16 14:52:07 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1663         * mach/lock-intern.h (__mutex_try_lock): New function.
1665 Sun Dec 15 16:33:44 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1667         * termios/sys/ttydefaults.h (TTYDEF_OFLAG): Only use OXTABS if
1668         defined, else XTABS.
1669         (CEOL, CSTATUS): Use _POSIX_VDISABLE if defined.
1671 Sun Dec 15 11:56:19 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1673         * sysdeps/unix/sysv/linux/m68k/mremap.S: New file.
1674         * sysdeps/unix/sysv/linux/m68k/Dist: Distribute it.
1675         * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines): Add mremap.
1677 Mon Dec 16 02:15:42 1996  Ulrich Drepper  <drepper@cygnus.com>
1679         Make sure tzset() sets always tzname[].
1680         * time/tzfile.c: De-ANSI-declfy.
1681         (find_transition): New function.  Set tzname according to given time.
1682         (__tzread_file): Use find_transition to set tzname.
1683         (__tzfile_compute): Use find_transition instead of doing the work
1684         self.
1685         * time/tzset.c (tzset): Set tzname[] directly only if !__use_tzfile.
1687 Sun Dec 15 16:52:34 1996  Ulrich Drepper  <drepper@cygnus.com>
1689         * login/utmp-file.c (pututline_file): Open file if closed.
1690         Reported by Roma Ekzhanov <ekzhanov@paragraph.com>.
1691         Use fcntl instead of flock.
1693 Sun Dec 15 14:20:51 1996  Ulrich Drepper  <drepper@cygnus.com>
1695         * manual/time.texi: Update documentation of strftime function.
1697 Sun Dec 15 01:53:20 1996  Ulrich Drepper  <drepper@cygnus.com>
1699         * Makefile (subdirs): Change crypt to md5-crypt.
1700         * crypt/Makefile, crypt/md5-crypt.c, crypt/md5.c, crypt/md5.h,
1701         crypt/md5c-test.c, crypt/md5test.c: Move to new directory
1702         md5-crypt.
1703         * sysdeps/unix/sysv/linux/configure.in: Refer to linuxthreads and
1704         crypt instead of LinuxThreads and des-crypt.
1706         * Makefile (subdirs): Add nss back.
1707         * sysdeps/unix/inet/Subdirs: Move nis to end of file to fulfill
1708         dependencies.
1710         * libio/iofclose.c: Implement fclose(NULL) as closing all streams.
1711         * stdio-common/Makefile (routines): Add fcloseall.
1712         * stdio-common/fcloseall.c: New file.
1713         * sysdeps/generic/abort.c: Make implementation POSIX.1 compatible.
1715         * sysdeps/mach/libc-lock.h: Add definition of __libc_lock_trylock.
1716         * sysdeps/stub/libc-lock.h: Define __libc_lock_trylock to always
1717         return 0.
1719         * stdio-common/printf.h: Define MIN and MAX only if not already
1720         defined.
1722         * stdio-common/vfprintf.c: Set errno to EBADF if stream does not
1723         allow writing.  Required by POSIX.1.
1725         * libio/libioP.h (CHECK_FILE): Use MAYBE_SET_EINVAL instead of
1726         assignment.
1728         * interp.c: Update copyright.
1729         * libio/clearerr.c: Likewise.
1730         * libio/ioseekoff.c: Likewise.
1731         * libio/ioseekpos.c: Likewise.
1732         * stdio/fclose.c: Likewise.
1733         * stdio/fflus.c: Likewise.
1735         * libio/libio.h [!_IO_MTSAFE_IO]: Define _IO_cleanup_region_start
1736         and _IO_cleanup_region_end as empty.
1737         * libio/fgetc.c: Use _IO_cleanup_region_start and
1738         _IO_cleanup_region_end instead of __libc_cleanup_region_start and
1739         __libc_cleanup_region_end.
1740         * libio/fputc.c: Likewise.
1741         * libio/freopen.c: Likewise.
1742         * libio/fseek.c: Likewise.
1743         * libio/getc.c: Likewise.
1744         * libio/getchar.c: Likewise.
1745         * libio/iofclose.c: Likewise.
1746         * libio/iofflush.c: Likewise.
1747         * libio/iofgetpos.c: Likewise.
1748         * libio/iofgets.c: Likewise.
1749         * libio/iofputs.c: Likewise.
1750         * libio/iofread.c: Likewise.
1751         * libio/iofsetpos.c: Likewise.
1752         * libio/ioftell.c: Likewise.
1753         * libio/iofwrite.c: Likewise.
1754         * libio/iogetdelim.c: Likewise.
1755         * libio/iogets.c: Likewise.
1756         * libio/ioputs.c: Likewise.
1757         * libio/iosetbuffer.c: Likewise.
1758         * libio/iosetvbuf.c: Likewise.
1759         * libio/ioungetc.c: Likewise.
1761         * libio/iovspintf.c: Use cleanup handler to make sure no dangling
1762         locks can stay over.
1763         * libio/iovsscanf.c: Likewise.
1765         * libio/genops.c: Use _IO_lock_init_recursive and _IO_lock_fini
1766         instead of __libc_lock_init_recursive and __libc_lock_fini.
1768         * libio/filedoalloc.c: Only use __isatty when compiling GNU libc.
1769         Otherwise use isatty.
1770         * libio/fileops.c: Likewise for __open and open.
1772         * login/utmp_file.c (getutent_r_file): Use fcntl instead of
1773         flock.
1775         * nis/ypclnt.h: Add more casts to prevent warnings.
1777         * nss/Makefile (services): Remove dns.
1778         (libnss_dns, libnss_dns-inhibit-o): Remove definition.
1779         ($(objpfx)libnss_dns.so): Removed.
1780         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Moved to...
1781         * resolv/nss_dns: ...here.
1782         * resolv/Makefile (extra-libs): Add libnss_dns.
1783         (libnss_dns-routines, libnss_dns-inhibit-o): Define as in
1784         nss/Makefile.
1786         * nss/XXX-lookup.c: Call __nss_database_lookup with new argument
1787         specifying alternate name for entry in /etc/nsswitch.conf
1788         * nss/nsswitch.c: If no entry with primary name is found in
1789         /etc/nsswitch.conf try alternate name if given.
1790         * nss/nsswitch.h: Add new parameter in prototype for
1791         __nss_database_lookup.
1792         * nss/spwd-lookup.c: Provide alternative entry name to look for.
1793         This makes our NSS compatible with Solaris' nsswitch.conf files.
1795         * string/tst-strlen.c: Change all counting variables to type size_t
1796         to prevent warnings.
1798         * sysdeps/posix/fpathconf.c: Update copyright.
1799         * sysdeps/posix/pathconf.c: Don't call fpathconf to do the work.
1800         Opening the file at this path may fail if it is a FIFO or pipe.
1802         These changes make the time implementation POSIX.1 compliant.
1803         * time/localtime.c (__localtime_r): Always call __tzset not only
1804         if __tzset_run is zero.
1805         * time/strftime.c: Add definition of memset_space to help to
1806         reduce for systems which have memset.
1807         (strftime): Don't use tm_zone member of argument for zone name.
1808         Instead always use tzname[].
1809         Call tzset() as required by POSIX.1 before any action.
1810         * time/tzset.c (tzset): Set tzname[] as required by POSIX.1.
1811         Remove global variable __tzset_run.  __tzset is now called always
1812         when a dependent function is used.
1813         (__tzset): Caching happens based on the contents of the
1814         environment variable TZ.
1816 Fri Dec 13 01:06:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1818         * sysdeps/unix/sysv/linux/paths.h: Add _PATH_KLOG.
1820 Thu Dec 12 09:16:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1822         * rellns-sh: Correctly handle a relative source file name.
1824 Wed Dec 11 19:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1826         * login/utmp_file.c (setutent_file): Seek back to beginning of the
1827         file if resetting.
1829 Thu Dec 12 16:39:12 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1831         * hurd/hurdinit.c (map0): Delete function.  Don't do this on
1832         _hurd_preinit_hook.
1833         * hurd/hurdstartup.c (_hurd_startup): Map page zero redzone here.
1835 Thu Dec 12 03:32:21 1996  Ulrich Drepper  <drepper@cygnus.com>
1837         * libio/_G_config.h: Add definition of _G_int16_t, _G_int32_t,
1838         _G_uint16_t, _G_uin32_t, _G_HAVE_BOOL, _G_HAVE_MMAP, and
1839         _G_ARGS.
1841         Change libio buffer handling to allocate internal buffers using
1842         mmap if possible.
1843         * libio/filedoalloc.c (_IO_file_doallocate): Change call to
1844         ALLOC_BUF.
1845         * libio/genops.c (_IO_setb, _IO_default_finish): Change call
1846         to FREE_BUF.
1847         (_IO_default_doallocate): Change call to ALLOC_BUF.
1848         * libio/libioP.h: Change definition of ALLOC_BUF and FREE_BUF
1849         to use mmap/munmap when possible.
1850         * libio/memstream.c: Don't use ALLOC_BUF, but directly malloc.
1851         * libio/vasprintf.c: Likewise.
1852         Patch by HJ Lu.
1854         * libio/libio.h: Define NULL as __null only for gcc-2.8 and up.
1855         * libio/libioP.h: Likewise.
1857         * libio/fileops.c (_IO_file_read, _IO_file_write): Don't
1858         restart syscall when EINTR was returned.  Necessary for POSIX.1.
1860         * libio/strops.c (_IO_str_overflow): Add cast to prevent warning.
1862         * new-malloc/malloc.c (heap_trim): Correctly place parentheses to
1863         prevent warnings.
1865         * nis/Makefile: Remove rules for bsd-tools which are not part
1866         of glibc.
1867         Patch by Thorsten Kukuk.
1869         * nis/ypclnt.c: Add prototype for xdr_free.
1870         Add const to first parameter for __yp_bind.
1871         * nis/nss_compat/compat-pwd.c (getpwent_next_netgr, getpwent_next_nis,
1872         getpwent_next_file): Variable `p2len' must have type size_t.
1873         * nis/nss_nis/nis-alias.c: Add casts to prevent warnings.
1874         * nis/nss_nis/nis-ethers.c: Likewise.
1875         * nis/nss_nis/nis-grp.c: Likewise.
1876         * nis/nss_nis/nis-hosts.c: Likewise.
1877         * nis/nss_nis/nis-network.c: Likewise.
1878         * nis/nss_nis/nis-proto.c: Likewise.
1879         * nis/nss_nis/nis-pwd.c: Likewise.
1880         * nis/nss_nis/nis-rpc.c: Likewise.
1881         * nis/nss_nis/nis-service.c: Likewise.
1882         * nis/nss_nis/nis-spwd.c: Likewise.
1884         * nis/rpcsvc/yp_prot.h (ypreq_key): Change type of members to
1885         `const char *'.
1886         (ypmaplist): Change member names to `map' and `next' and provide
1887         #defines for old names.
1888         Patch by Thorsten Kukuk.
1890         * nss/nss_files/files-parse.c (parse_line, parse_list): Change
1891         type for `datalen' parameter to size_t.
1893         * shsdow/lckpwdf.c: Use fcntl forlocking, not flock.
1895         * stdio-common/printf.c [USE_IN_LIBIO]: Provide alias _IO_printf
1896         for printf.
1897         * stdio-common/sscanf.c [USE_IN_LIBIO]: Provide alias _IO_sscanf
1898         for sscanf.
1899         Patch by HJ Lu.
1901         * stdio-common/tmpfile.c: Update copyright.
1903         * stdio-common/vfscanf.c: Correctly handle EINTR error from fgetc
1904         function.
1905         Don't eat white space for `C' format.
1907         * stdlib/tst-strtol.c [~0UL != 0xffffffff]: Fix typo in test data.
1909         * sysdeps/generic/abort.c: Update copyright.  De-ANSI-declfy.
1910         * sysdeps/i386/abort.c: Removed.  This version does not use
1911         signal SIGABRT.
1913         * sysdeps/i386/fpu/__math.h: Define __NO_MATH_INLINES if not using
1914         gcc-2.8 or up.
1915         Patch by HJ Lu.
1917         * sysdeps/posix/tempname.c: Test for error but EEXIST after open
1918         call.  If EMFILE, ENFILE, or EINTR return with error.
1920 Wed Dec 11 14:43:52 1996  Ulrich Drepper  <drepper@cygnus.com>
1922         * gnu-versions.h: Set _GNU_OBSTACK_INTERFACE_VERSION back to 1.
1923         We are compatible again.
1924         * new-malloc/obstack.h (struct obstack): Add back alloc_failed bit
1925         even though it is not used.
1926         * malloc/obstack.h: Likewise.
1927         * new-malloc/obstack.c (_obstack_begin, _obstack_begin_1): Initialize
1928         alloc_failed bit to 0.
1930         * time/strftime.c: Extend for Emacs' needs.  Recognize field width,
1931         %P format and `0' modifier.
1933 Tue Dec 10 21:20:44 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1935         * Makerules (make-link): Don't discard exit codes of intermediate
1936         commands.  Always use rellns-sh if symbolic links are available.
1938 Tue Dec 10 20:09:51 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1940         * sysdeps/unix/sysv/linux/netinet/in.h: Enclose #include
1941         <linux/in.h> in __BEGIN_DECLS/__END_DECLS to avoid linkage
1942         conflict of ntohs etc. in <asm/byteorder.h>.
1944 Wed Dec 11 01:04:30 1996  Ulrich Drepper  <drepper@cygnus.com>
1946         Add NIS NSS implementation.
1947         * shlib-versions: Add versions for NIS libraries.
1948         * sysdeps/unix/inet/Subdirs: Add nis.
1949         * nis/Banner: New file.
1950         * nis/Makefile: New file.
1951         * nis/nss-nis.h: New file.
1952         * nis/yp_xdr.h: New file.
1953         * nis/ypclnt.h: New file.
1954         * nis/ypupdate_xdr.c: New file.
1955         * nis/nss_compat/compat-grp.c: New file.
1956         * nis/nss_compat/compat-pwd.c: New file.
1957         * nis/nss_compat/compat-spwd.c: New file.
1958         * nis/nss_nis/nis-alias.c: New file.
1959         * nis/nss_nis/nis-ethers.c: New file.
1960         * nis/nss_nis/nis-grp.c: New file.
1961         * nis/nss_nis/nis-hosts.c: New file.
1962         * nis/nss_nis/nis-netgrp.c: New file.
1963         * nis/nss_nis/nis-network.c: New file.
1964         * nis/nss_nis/nis-proto.c: New file.
1965         * nis/nss_nis/nis-publickey.c: New file.
1966         * nis/nss_nis/nis-pwd.c: New file.
1967         * nis/nss_nis/nis-rpc.c: New file.
1968         * nis/nss_nis/nis-service.c: New file.
1969         * nis/nss_nis/nis-spwd.c: New file.
1970         * nis/rpcsvc/yp.h: New file.
1971         * nis/rpcsvc/yp.x: New file.
1972         * nis/rpcsvc/yp_prot.h: New file.
1973         * nis/rpcsvc/ypclnt.h: New file.
1974         * nis/rpcsvc/ypupd.h: New file.
1976         * libio/_G_config.h: Define _G_HAVE_SYS_WAIT and _G_HAVE_PRINTF_FP.
1978         * locale/C-numeric.c: Update copyright.
1980         * locale/Makefile: Add rules to build libBrokenLocale.
1981         * locale/broken_cur_max.c: New file.
1982         * locale/mb_cur_max.c: Update copyright.
1983         (__ctype_get_mb_cur_max): Make function weak.
1985         * new-malloc/malloc.c: Correct copyright.
1986         * new-malloc/thread-m.h: Correct key handling.
1988         * shadow/lckpwdf.c: Update copyright.
1989         (PWD_LOCKFILE): Change to /etc/.pwd.lock.
1991         * stdlib/strtod.c: Add another assertion.
1992         * stdlib/tst-strtod.c: Add another test case.
1994         * sysdeps/generic/paths.h: Add _PATH_PRESERVE.  Needed by nvi.
1995         * sysdeps/unix/sysv/linux/paths.h: Likewise.
1997         * sysdeps/gnu/utmpbits.h: Rename ut_addr field to ut_addr_v6.
1998         ut_addr names a single element in ut_addr_v6.
2000         * sysdeps/mach/hurd/xmknod.c: Remove alias from __mknod to mknod.
2001         Patch by Thomas Bushnell, n/BSG.
2003 Tue Dec 10 11:35:28 1996  Richard Henderson  <rth@tamu.edu>
2005         * sysdeps/alpha/strncmp.S: Fix aligned short truncated compare
2006         corner condition.
2008         * sysdeps/alpha/memchr.S: Don't read ahead, even if the load
2009         did fit nicely into that delay slot (patch from David Mosberger-Tang).
2011 Mon Dec  9 23:53:43 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2013         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Renamed from
2014         `ttyname_r'.
2015         (ttyname_r): New alias.
2017 Tue Dec 10 02:17:31 1996  Ulrich Drepper  <drepper@cygnus.com>
2019         * stdio-common/printf_fp.c (__guess_grouping): Fix off by one
2020         error in computation of number of groups.
2021         Patch sent by Harald Schreiber <Harald.Schreiber@post.rwth-aachen.de>.
2023 Tue Dec 10 01:50:07 1996  Ulrich Drepper  <drepper@cygnus.com>
2025         * version.h: Set version to 1.99.
2027         * Make-dist (routines): Add malloc and new-malloc.
2029         * Makeconfig: Allow Makefiles to set $(CPPFLAGS-$(<F)) and
2030         $(CPPFLAGS-$(@F)) to be added to CPPFLAGS.
2031         Same for $(CFLAGS-$(@F)) and CFLAGS.
2033         * gmon/sys/gmon_out.h: Add __BEGIN_DECLS/__END_DECLS.  Unify
2034         layout.
2035         * io/sys/poll.h: Likewise.
2036         * sysdeps/stub/sys/ipb_buf.h: Likewise.
2037         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Likewise.
2038         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
2039         * sysdeps/unix/sysv/linux/sys/ipc_buf.h: Likewise.
2040         * sysdeps/unix/sysv/linux/sys/kdaemon.h: Likewise.
2041         * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
2042         * sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
2043         * sysdeps/unix/sysv/linux/sys/module.h: Likewise.
2044         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
2045         * sysdeps/unix/sysv/linux/sys/msq_buf.h: Likewise.
2046         * sysdeps/unix/sysv/linux/sys/param.h: Likewise.
2047         * sysdeps/unix/sysv/linux/sys/procfs.h: Likewise.
2048         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
2049         * sysdeps/unix/sysv/linux/sys/reboot.h: Likewise.
2050         * sysdeps/unix/sysv/linux/sys/sem_buf.h: Likewise.
2051         * sysdeps/unix/sysv/linux/sys/shm_buf.h: Likewise.
2052         * sysdeps/unix/sysv/linux/sys/socketcall.h: Likewise.
2053         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
2054         * sysdeps/unix/sysv/linux/sys/sysctl.h: Likewise.
2055         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Likewise.
2056         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Likewise.
2057         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
2058         * sysvipc/sys/sem.h: Likewise.
2059         * sysvipc/sys/shm.h: Likewise.
2061         * new-malloc/Makefile: Set CPPFLAGS-malloc.o.
2062         * new-malloc/malloc.c: Remove problem with 64 bits pointers.
2063         Add statistics for threads.
2064         * new-malloc/malloc.h: Likewise.
2065         * new-malloc/thread-m.h: Likewise.
2067         * time/strftime.c: Declare tzname if if HAVE_TZNAME is defined.
2069         * time/strptime.c: Update copyright.
2071 Mon Dec  9 14:51:10 1996  Ulrich Drepper  <drepper@cygnus.com>
2073         * Make-dist: Make sure both malloc directories get distributed.
2075 Sun Dec  8 23:14:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2077         * libio/iogets.c (_IO_gets): Fix early returns to not leave the
2078         stream locked.
2080 Sat Dec  7 22:08:09 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2082         * sysdeps/unix/sysv/linux/sys/module.h: Enclose declarations in
2083         __BEGIN_DECLS/__END_DECLS.
2085 Sat Dec  7 14:23:12 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2087         * login/utmp_file.c: Consistently set file_offset to the position
2088         after the entry just read.
2090 Mon Dec  9 03:39:30 1996  Ulrich Drepper  <drepper@cygnus.com>
2092         * config.make.in (defines): Add @USE_NEW_MALLOC@.
2093         * Makefile.in: Define USE_NEW_MALLOC to -DUSE_NEW_MALLOC if
2094         we use the new malloc.
2096         * malloc.h: Use either <malloc/malloc.h> or <new-malloc/malloc.h>
2097         depending on USE_NEW_MALLOC.
2099         Fix some more POSIX.1 problems.
2100         * libio/fileops.c (_IO_file_underflow): Set errno to EBADF if used
2101         on a write-only stream.
2102         (_IO_file_overflow): Set errno to EBADF if used on a read-only
2103         stream.
2104         (_IO_file_seekoff): POSIX.1 requires that fseek() after an fflush()
2105         call really positions the file offset to the correct position
2106         and no read-ahead happens.
2108         * locale/C-monetary.c: Set mon_grouping file to "" and "\377"
2109         to pass POSIX test suite.
2110         * stdio-common/vfprintf.c: Handle empty string as grouping command
2111         correctly.
2112         * stdlib/grouping.h: Likewise.
2114         * misc/syslog.c: Case first argument of __libc_cleanup_region_start.
2116         * signal/sigsetops.h: Update copyright.  Don't include ansidecl.h.
2118         * stdio-common/printf_fp.c: Update copyright.
2120 Sun Dec  8 16:39:28 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
2122         * time/Makefile: Compile ap.c with NO_MCHECK flag if new-malloc
2123         used (not otherwise).
2125 Sun Dec  8 06:56:49 1996  Ulrich Drepper  <drepper@cygnus.com>
2127         * io/getwd.c: Use PATH_MAX not LOCAL_PATH_MAX.  Fix typo in
2128         comment.
2129         * stdlib/canonicalize.c: Correct bugs in last change.
2130         Patch by HJ Lu.
2132         * libio/Makefile (routines): Remove ioprims.
2133         (aux): Remove cleanup.
2134         Add IO_DEBUG option for .o files.
2135         * libio/cleanups.c: Removed.
2136         * libio/ioprims.c: Removed.
2137         * libio/filedoalloc.c: More updates from libg++-2.8b5.
2138         * libio/fileops.c: Likewise.
2139         * libio/genops.c: Likewise.
2140         * libio/iolibio.h: Likewise.
2141         * libio/iopopen.c: Likewise.
2142         * libio/iovsprintf.c: Likewise.
2143         * libio/iovsscanf.c: Likewise.
2144         * libio/libio.h: Likewise.
2145         * libio/libioP.h: Likewise.
2146         * libio/memstream.c: Likewise.
2147         * libio/strfile.h: Likewise.
2148         * libio/vasprintf.c: Likewise.
2149         * libio/vsnprintf.c: Likewise.
2151         * libio/stdio.h: Define P_tmpdir only is __USE_SVID.
2153         * manual/arith.texi: Change references to ANSI C to ISO C.
2154         * manual/conf.texi: Likewise.
2155         * manual/creature.texi: Likewise.
2156         * manual/ctype.texi: Likewise.
2157         * manual/errno.texi: Likewise.
2158         * manual/filesys.texi: Likewise.
2159         * manual/intro.texi. Likewise.
2160         * manual/io.texi: Likewise.
2161         * manual/lang.texi: Likewise.
2162         * manual/libc.texinfo: Likewise.
2163         * manual/locale.texi: Likewise.
2164         * manual/maint.texi: Likewise.
2165         * manual/mbyte.texi: Likewise.
2166         * manual/memory.texi: Likewise.
2167         * manual/process.texi: Likewise.
2168         * manual/process.texi: Likewise.
2169         * manual/search.texi: Likewise.
2170         * manual/setjmp.texi: Likewise.
2171         * manual/signal.texi: Likewise.
2172         * manual/startup.texi: Likewise.
2173         * manual/stdio.texi: Likewise.
2174         * manual/string.texi: Likewise.
2175         * manual/time.texi: Likewise.
2177         * manual/locale.texi: Remove description of LC_RESPONSE and add
2178         LC_MESSAGES.
2180         * Makefile (subdirs): Change malloc in $(malloc).
2181         * config.make.in: Add variable malloc which is initialized from
2182         @malloc@.
2183         * configure.in: Add new option --enable-new-malloc to use new
2184         malloc.  This is the default on Linux.
2185         * sysdeps/unix/sysv/linux/configure.in: Define malloc to new-malloc
2186         by default.
2187         * new-malloc/Makefile: New file.  Improved malloc implementation.
2188         * new-malloc/malloc.c: Likewise.
2189         * new-malloc/malloc.h: Likewise.
2190         * new-malloc/mallocbug.c: Likewise.
2191         * new-malloc/obstack.c: Likewise.
2192         * new-malloc/obstack.h: Likewise.
2193         * new-malloc/thread-m.h: Likewise.
2194         * time/Makefile: Compile ap.c with NO_MCHECK flag for now.
2195         * time/ap.c: Don't call mcheck if NO_MCHECK is defined.
2197         * resolv/Makefile: Add rule to rebuiild libresolv.so when libc.so
2198         changed.
2200         * stdio/feof.c: Update copyright.
2201         * stdio/stdio.h: Add field for lock to FILE structure.
2202         Add cast to *MAGIC constants to prevent warnings.
2204         * stdio-common/bug7.c: Correct test.  Stream must not be closed
2205         twice.
2207         * stdlib/Makefile (routines): Add secure-getenv.
2208         * stdlib/secure-getenv.c: New file.  __secure_getenv function
2209         moved to here from sysdeps/generic/getenv.c.  Otherwise an
2210         application cannot replace the getenv function in the libc.
2211         * sysdeps/generic/getenv.c: Remove __secure_getenv function.
2212         * sysdeps/stub/getenv.c: Remove __secure_getenv alias.
2214         * sysdeps/mach/libc-lock.h: Define__libc_mutex_lock to __mutex_lock.
2216         * sysdeps/posix/fdopen.c: Update copyright.  Don't use EXFUN.
2218         * time/test-tz.c: Comment fifth test out.  PROBLEM.
2220         * time/tzset.c: De-ANSI-declfy.
2221         (__tzset): Don't increment pointer tz when no DST information is
2222         given.
2224         * misc/syslog.c (vsyslog): Cast argument to __libc_cleanup_region
2225         to get Hurd macros right.
2227 Sat Dec  7 23:47:54 1996  Ulrich Drepper  <drepper@cygnus.com>
2229         * sysdeps/mach/libc-lock.h [_LIBC]: Add definition of
2230         __libc_mutex_lock.
2231         Patch by Thomas Bushnell.
2233         * sysdeps/unix/sysv/linux/timebits.h: Load <asm/param.h> only
2234         if __USE_MISC.
2236         * sysdeps/unix/sysv/linux/Dist: Add llseek.c.
2238 Sat Dec  7 12:18:56 1996  Ulrich Drepper  <drepper@cygnus.com>
2240         * time/strftime (%c format): Remove %Z from default string.
2241         Reported by Paul Eggert
2243 Sat Dec  7 03:24:36 1996  Ulrich Drepper  <drepper@cygnus.com>
2245         * configure.in: Discard error message from test in test for
2246         bash-2.0.
2248         * io/getwd.c: Don't apply getcwd on user supplied buffer.
2249         Instead always use temporary buffer and only copy the result.
2250         Patch by HJ Lu.
2251         * stdlib/canonicalize.c: Likewise.
2253         * libio/fileops.c: Change comments according to libg++2.8b5.
2254         * libio/iosetvbuf.c: Follow change in libg++-2.8b5 to clear
2255         unbuffered flag.
2256         Reported by HJ Lu.
2258         * manual/nss.texi: Correct prototypes.
2260         * misc/syslog.c: Make reentrant.  Catch SIGPIPE signal to prevent
2261         crash if syslog daemon is restarted.
2263         * stdlib/rand_r.c: New file.  Implementation of POSIX.2 function
2264         rand_r.
2265         * stdlib/Makefile (routines): Add rand_r.
2267         * sysdeps/stub/libc-lock.h: Define __libc_lock_trylock and
2268         __libc_mutex_lock.
2270         * configure.in: Add --disable-sanity-check option.
2271         * sysdeps/unix/sysv/linux/configure.in: If linuxthreads or
2272         des-crypt are not available and --disbale-sanity-check is not
2273         given abort with a message.
2275 Thu Dec  5 19:19:53 1996  Richard Henderson  <rth@tamu.edu>
2277         * posix/glob.c: Tests against STDC_HEADERS should also test
2278         __GNU_LIBRARY__.
2280 Thu Dec  5 16:20:55 1996  Ulrich Drepper  <drepper@cygnus.com>
2282         * misc/err.c (vwarn): Set errno again before using %m format.
2284 Thu Dec  5 10:14:05 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
2286         * grp/grp.h: Add declaration of __getgrent_r.
2288         * io/fts.c (fts_build): Remove "register" from variables dirbuf
2289         and dp since their address is needed.
2291         * sysdeps/posix/getcwd.c (__getcwd): Remove "register" from
2292         variable d since d's address is needed.
2294         * misc/tst-dirname.c (main): Provide prototype.
2295         * misc/ioctltst.c (main): Dito.
2297         * Makefile: Add gnu/lib-names.h to install-others before including
2298         Makerules.
2300 Wed Dec  4 16:00:09 1996  Ulrich Drepper  <drepper@cygnus.com>
2302         * sysdeps/unix/sysv/linux/sys/socketvar.h: New file.  Simply use
2303         <sys/socket.h>.
2304         * sysdeps/unix/sysv/linux/Dist: Add sys/socketvar.h.
2305         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet)]: Add
2306         sys/socketvar.h to sysdep_headers.
2308 Tue Dec  3 08:38:15 1996  Richard Henderson  <rth@tamu.edu>
2310         * sysdeps/unix/alpha/sysdep.S: Remove definition of __errno_location.
2311         Reformat copyright.
2313         * elf/rtld.c (_dl_start): Don't dereference the value returned by
2314         elf_machine_got to get _DYNAMIC, instead call new function
2315         elf_machine_dynamic.
2316         * sysdeps/alpha/dl-machine.h: Permute elf_machine_got to
2317         elf_machine_dynamic.  Reformat copyright.
2318         * sysdeps/i386/dl-machine.h: Likewise.
2319         * sysdeps/m68k/dl-machine.h: Likewise.
2320         * sysdeps/mips/dl-machine.h: Likewise.
2321         * sysdeps/sparc/dl-machine.h: Likewise.
2322         * sysdeps/stub/dl-machine.h: Likewise.
2324 Tue Oct 15 23:46:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2326         * MakeTAGS (sysdep_dirs): Include add-on sysdep directories.
2328 Tue Dec  3 02:06:18 1996  Ulrich Drepper  <drepper@cygnus.com>
2330         * Makerules ($(libdir)/libc.so): Make first line of generated
2331         link script contain `/* GNU ld script'.  This will be used in
2332         ldconfig to check for linker scripts.
2333         * sysdeps/mach/hurd/libc-ldscript: Likewise.
2334         * sysdeps/mach/hurd/libc_p-ldscript: Likewise.
2336         * stdlib/getsubopt.c: Update copyright.  Correct typo in comment.
2338 Mon Dec  2 15:32:15 1996  Ulrich Drepper  <drepper@cygnus.com>
2340         * elf/dl-lookup.c (_dl_lookup_symbol_skip): Remove unused variable
2341         `found_entry'.
2343         * misc/ttyslot.c: Use ttyname_r instead of ttyname.
2345         * assert/assert-perr.c: Use __strerror_r instead of strerror.
2346         * assert/assert.c: De-ANSIdecl-fy.  Update copyright.
2347         * string/string.h: Declare __strerror_r.
2348         * string/strerror_r.c: Make strerror_r a weak alias of __strerror_r.
2349         * stdio-common/vfprintf.c: Save current errno value on entry so
2350         that %m format finds the correct value.
2351         * io/getwd.c: Use __strerror_r instead of strerror.
2352         * misc/err.c (vwarn): Use %m printf format instead of explicitly
2353         calling strerror.
2354         * inet/rcmd.c: Likewise.
2355         * misc/error.c (error, error_at_line): Use __strerror_r instead
2356         of strerror when this function is available.
2358         * stdlib/rand.c: Update copyright and de-ANSI-declfy.
2359         * stdlib/random_r.c: Don't make srand_r weak alais of __srandom_r.
2360         * stdlib/stdlib.h: Define prototype for rand_r.
2362         * string/strfry.c: Update copyright.  Use reentrant random functions.
2364         * dirent/scandir.c: Use __readdir_r instead of readdir.
2365         * posix/glob.c: Likewise.
2366         * sysdeps/posix/ttyname.c: Likewise.
2367         * sysdeps/posix/ttyname_r.c: Likewise.
2368         * io/ftw.c: Likewise.
2369         * io/fts.c: Likewise.
2370         * sysdeps/posix/getcwd.c: Likewise.
2371         * dirent/dirent.h: Add prototype for __readdir_r.
2372         * sysdeps/unix/readdir_r: Update copyright.
2374         * time/ctime.c: Use __localtime_r and __asctime_r instead of
2375         non reentrant versions.
2376         * time/ctime_r.c: Update copyright.
2378         * intl/l10nflist.c (_nl_make_l10nflist): Pretty print.
2380         * locale/Makefile (localepath): Correct value.
2382         * nss/nss_files/files-XXX.c: Include <netdb.h> to define
2383         NETDB_INTERNAL.
2384         Fix typo in using H_ERRNO_SET macro.
2386 Fri Nov 29 23:22:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2388         * Makerules (elfobjdir): Definition removed.
2389         * Makeconfig (elfobjdir): Define it here instead, so that
2390         expanding $(rpath-link) gets the right value.
2392         * a.out.h: Removed.
2393         * misc/a.out.h: Moved to...
2394         * sysdeps/generic/a.out.h: ...here.
2395         * sysdeps/unix/sysv/linux/a.out.h: New file.  Wrapper around
2396         kernel header.
2398 Mon Dec  2 03:59:38 1996  Ulrich Drepper  <drepper@cygnus.com>
2400         * grp/initgroups.c: Update and reformat copyright.
2401         Use __getgrent_r instead of getgrent.
2403         * inet/rcmd.c: Update and reformat copyright.
2404         Use __gethostbyname_r instead of gethostbyname.
2405         * inet/rexec.c: Likewise.
2407         * intl/finddomain.c: Correct comment about CEN sponsor and revision.
2408         * locale/findlocale.c: Likewise.
2409         * intl/l10nflist.c: Correct handling of CEN sponsor and revision.
2410         * locale/Makefile (CPPFLAGS): Add definition of LOCALEDIR.
2411         * locale/setlocale.c (setlocale): Correctly split value of
2412         LOCALE_PATH.
2413         * locale/programs/localedef.c: Use LOCALEDIR not LOCALE_PATH to
2414         find output directory.
2416         * nss/getXXbyYY.c [NEED_H_ERRNO]: Before enlarging buffer test
2417         h_errno_tmp variable.
2418         Save error value from being changed during `free' call.
2419         * nss/getXXent.c: Likewise.
2421         * nss/nss_files/files-XXX.c: Set h_errno variable to NETDB_INTERNAL
2422         before returning ERANGE error.
2424         * posix/glob.c: Use getlogin_r and getpwnam_r function when available
2425         or in GNU libc.
2427         * pwd/getpw.c: Use getpwuid_r instead of getpwuid.
2429         * sunrpc/clnt_gen.c: Use gethostbyname_r and getprotobyname_r.
2430         * sunrpc/clnt_simp.c: Likewise.
2431         * sunrpc/getrpcport.c: Likewise.
2432         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
2434         * posix/getconf.c: Treat _SC_UNIT_MAX and _SC_ULONG_MAX separately
2435         since the value might be outside the range of the `long int'.
2436         Print string `undefined' when a value is undefined.
2438         * stdlib/l64a.c: Return correct pointer.
2439         Patch by NIIBE Yutaka <gniibe@mri.co.jp>.
2441         * string/Makefile (routines): Add argz-addsep.
2442         * string/argz-addsep.c: New file.
2443         * string/argz.h: Add prototypes for argz_add_sep.
2445         * string/argz-ctsep.c: Prevent memory leak.
2447         * string/strcoll.c: Correct typo in comment.
2449 Sat Nov 30 02:53:59 1996  Ulrich Drepper  <drepper@cygnus.com>
2451         * sysdeps/unix/sysv/linux/sys/serial.h: Removed again.  The file is
2452         not general enough to be part of the libc.
2453         * sysdeps/unix/sysv/linux/Dist: Remove sys/serial.h.
2454         * sysdeps/unix/sysv/linux/Makefile: Don't install sys/serial.h.
2456 Thu Nov 28 20:04:41 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2458         * login/Makefile: Fix typo.
2460         * nss/Makefile (generated): Filter out db-alias.c.
2462 Thu Nov 28 14:44:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2464         * time/Makefile (echo-zonenames): Don't depend on non-existing
2465         target `zonenames'.
2467 Thu Nov 28 12:34:05 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2469         * link.h: New file.
2470         * nss/nsswitch.c: Use it.
2472         * printf.h: Fix file name.
2473         * stdlib/strfmon.c: Use it.
2475 Thu Nov 28 23:03:32 1996  Ulrich Drepper  <drepper@cygnus.com>
2477         * sysdeps/unix/sysv/linux/netinet/in_systm.h: New file.
2478         * sysdeps/unix/sysv/linux/Dist: Add netinet/in_systm.h.
2479         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=inet] (sysdep_headers):
2480         Add netinet/in_systm.h.
2481         Reported by NIIBE Yutaka <gniibe@mri.co.jp>.
2483 Thu Nov 28 03:11:11 1996  Ulrich Drepper  <drepper@cygnus.com>
2485         * libio/fileops.c: Update from latest libg++.
2487         * sysdeps/unix/sysv/linux/init-first.c: Reformat copyright.
2489         * sysdeps/stub/libc-lock.h: Add __libc_lock_init_recursive.
2490         * libio/genops.c (_IO_init): Use __libc_lock_init_recursive
2491         instead of __libc_lock_init for streams.
2492         Reported by a sun <asun@zoology.washington.edu>.
2494         * sysdeps/unix/sysv/linux/i386/brk.c: Reformat copyright.
2496         * sysdeps/generic/errno-loc.c: New file.  Generic definition of
2497         __errno_location function.
2498         * sysdeps/unix/sysv/linux/i386/sysdep.S: Remove definition of
2499         __errno_location.
2500         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
2501         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=csu]: Add errno-loc
2502         to sysdep-routines.
2504         * sysdeps/unix/sysv/linux/configure: Add test for linuxthreads
2505         and crypt add-on and warn if not available.
2507 Wed Nov 27 23:09:37 1996  Ulrich Drepper  <drepper@cygnus.com>
2509         * po/ko.po: Update from Bang Jun-Young <bangjy@nownuri.nowcom.co.kr>.
2511         * sysdeps/unix/sysv/linux/syscalls.list: Remove _llseek.
2512         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=misc] (routines): Add
2513         llseek.
2514         * sysdeps/unix/sysv/linux/llseek.c: New file.  Uses syscall.
2515         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add __sys_llseek.
2516         * sysdeps/unix/sysv/linux/m68k/syscalls.list: Add __sys_llseek.
2517         Reported by HJ Lu <hjl@gnu.ai.mit.edu>.
2518         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add llseek.
2519         * sysdeps/unix/sysv/linux/alpha/llseek.S: Remove.  Generic syscall
2520         is enough.
2521         Patch by Richard Henderson <rth@tamu.edu>.
2523         * sysdeps/unix/sysv/linux/alpha/sys/io.h: Add prototypes for
2524         pciconfig_read and pciconfig_write.
2525         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Add new syscalls
2526         pciconfig_read and pciconfig_write.
2528         * login/getutent_r.c: Fix several bugs in last change.
2530 Wed Nov 27 06:10:10 1996  Ulrich Drepper  <drepper@cygnus.com>
2532         * Makefile: Fix typo.
2534         * configure: Require autoconf-2.11.
2536         * elf/dl-deps.c: Terminate duplicate list.
2538         * libio/libio.h: Add prototypes for _IO_seekoff and _IO_seekpos.
2539         * libio/strfile.h: Update from current libg++.
2540         * libio/strops.c: Likewise.
2542         * login/Makefile (routines): Update after correction of reentrant
2543         interface.
2544         * login/endutent.c: Removed.
2545         * login/endutent_r.c: Likewise.
2546         * login/pututline.c: Likewise.
2547         * login/pututline_r.c: Likewise.
2548         * login/setutent.c: Likewise.
2549         * login/setutent_r.c: Likewise.
2550         * login/getutent.c: Update for new interface.
2551         * login/getutent_r.c: Likewise.
2552         * login/getutid.c: Likewise.
2553         * login/getutid_r.c: Likewise.
2554         * login/getutline.c: Likewise.
2555         * login/getutline_r.c: Likewise.
2556         * login/login.c: Likewise.
2557         * login/logout.c: Likewise.
2558         * login/logwtmp.c: Likewise.
2559         * login/utmp.h: Likewise.
2560         * sysdeps/unix/getlogin.c: Likewise.
2561         * sysdeps/unix/getlogin_r.c: Likewise.
2562         * login/utmp-private.h: New private header.
2563         * login/utmp_db.c: Stub DB backend for utmp handler.
2564         * login/utmp_file.c: File backend for utmp handler.
2565         * sysdeps/gnu/utmpbits.h (struct utmp): Add some more fields.
2566         (enum utlogin): List of record types.
2567         (struct exit_status): Record to align with other implementations.
2569         * sysdeps/generic/paths.h: Add _PATH_UTMP_DB.
2570         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2572         * sysdeps/generic/pty.c: Use getgrnam_r instead of getgrnam.
2574         * sysdeps/stub/getlogin.c: Update copyright.
2575         * sysdeps/stub/getlogin_r.c: Likewise.
2577         * nss/getXXbyYY_r.c: Use -1l for error-pointer value instead of -1.
2578         * nss/getXXent_r.c: Likewise.
2579         * nss/nsswitch.c: Likewise.
2581         * posix/Makefile (headers): Add wait.h.
2582         * posix/wait.h: New file.
2584         * posix/sys/types.h: Always define intN_t types.
2586         * stdio-common/Makefile: Update copyright.
2587         Use -Wno-format flag for scanf4.c and scanf7.c.
2589         * stdlib/stdlib.h: Reformat.
2591 Fri Nov 22 19:34:12 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2593         * sysdeps/posix/getcwd.c (__getcwd): After resizing the buffer
2594         move the current contents to the end and relocate file name
2595         pointer to upper half of the buffer.
2597 Sun Nov 24 04:56:19 1996  Ulrich Drepper  <drepper@cygnus.com>
2599         * time/africa: Update from ADO tzdata1996m.
2600         * time/antarctica: Likewise.
2601         * time/asia: Likewise.
2602         * time/australia: Likewise.
2603         * time/etcetera: Likewise.
2604         * time/europe: Likewise.
2605         * time/nothamerica: Likewise.
2606         * time/southameria: Likewise.
2607         * time/zone.tab: Likewise.
2609         * sysdeps/unix/sysv/linux/sys/serial.h: New file.
2610         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=misc] (sysdep_headers):
2611         Add sys/serial.h.
2612         * sysdeps/unix/sysv/linux/Dist: Add sys/serial.h.
2614         * posix/wait.h: New file.
2615         * posix/Makefile (headers): Add wait.h.
2617 Sat Nov 23 17:27:52 1996  Roland McGrath  <roland@gnu.ai.mit.edu>
2619         * Makeconfig ($(common-objpfx)soversions.mk): Use regular
2620         expression instead of shell pattern matching.
2621         * shlib-versions: Change to regular expressions.
2623 Sat Nov 23 13:24:55 1996  Ulrich Drepper  <drepper@cygnus.com>
2625         * io/stat.c: Add section from libgcc to copyright comment
2626         to allow this file to be statically linked in applications.
2627         * io/fstat.c: Likewise.
2628         * io/lstat.c: Likewise.
2629         * io/mknod.c: Likewise.
2631 Fri Nov 22 15:14:23 1996  Ulrich Drepper  <drepper@cygnus.com>
2633         * csu/initfini.c: Add section from libgcc to copyright comment
2634         to allow this file to be statically linked in applications.
2636         * malloc/obstack.h [!_LIBC && !HAVE_STRING_H]: Define memcpy if
2637         not already defined.
2638         (obstack_grow, obstack_grow0): Correct placement of braces.
2640         * gnu-versions.h (_GNU_OBSTACK_INTERFACE_VERSION): Define to 2.
2641         * malloc/obstack.c (OBSTACK_INTERFACE_VERSION): Define to 2.
2643 Thu Nov 21 19:54:51 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2645         * Makerules (make-link): Simplify by changing directory only if
2646         not using rellns-sh; check whether we really have symbolic links.
2648         * rellns-sh: Fix the case of $(dirname $2) being a prefix of
2649         $(dirname $1); use status of ln for exit code; make more robust
2650         against multiple slashes in a row.
2652 Thu Nov 21 13:05:21 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2654         * configure.in (after AC_CANONICAL_HOST): mutate *-*-gnu* names
2655         into *-*-gnu-gnu*.
2656         * shlib-versions (gnu versions): Recognize *-*-gnu-gnu* instead of
2657         the three-part name, to distinguish correctly from *-*-linux-gnu*.
2659         * sysdeps/mach/hurd/Makefile ($(libdir)/libc.so): Depend on
2660         $(rpcuserlibs).
2662         * sysdeps/mach/hurd/Makefile (install-others): Add
2663         $(libdir)/libc_p.a.
2664         ($(libdir)/libc_p.a): New rule.
2665         * sysdeps/mach/hurd/libc_p-ldscript: New file.
2666         * sysdeps/mach/hurd/Dist: Add libc_p-ldscript.
2668 Wed Nov 20 20:28:21 1996  Richard Henderson  <rth@tamu.edu>
2670         * Makerules (make-link): Use $(shell) to find rellns-sh before we cd.
2671         * time/Makefile: Likewise.
2673         * sysdeps/alpha/elf/Makefile: New file.  Build crtbegin.o & crtend.o.
2674         * sysdeps/alpha/elf/Dist: New file.
2675         * sysdeps/alpha/elf/crtbegin.S, sysdeps/alpha/elf/crtend.S: New files.
2676         The bits currently distributed with GCC fail in two ways -- they don't
2677         understand multiple .got subsections and the extents of the lists are
2678         dynamicly bound meaning that the application's lists get executed
2679         multiple times and the library's lists never get executed.
2681 Wed Nov 20 00:42:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2683         * stdlib/strtod.c: Fix previous change.
2685 Wed Nov 20 22:07:58 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
2687         * time/Makefile ($(installed-localtime-file)): Use $(..) to find
2688         rellns-sh script.
2690 Wed Nov 20 12:50:54 1996  Ulrich Drepper  <drepper@cygnus.com>
2692         * stdio-common/Makefile: Add CFLAGS-scanf7.c to prevent warning.
2693         Likesie for scanf4.c
2695 Wed Nov 20 02:04:11 1996  Ulrich Drepper  <drepper@cygnus.com>
2697         * sysdeps/unix/sysv/linux/sigsuspend.c: Make sigsuspend a weak
2698         alias of __sigsuspend.
2700         * grp/grp.h: Correct comment about POSIX compliance.
2701         * pwd/pwd.h: Likewise.
2703         * login/utmp.h: Update copyright and pretty-print prototypes.
2704         * sysdeps/generic/paths.h: Add _PATH_LASTLOG, _PATH_UTMP and
2705         _PATH_WTMP from utmpbits.h.
2706         * sysdeps/unix/sysv/linux/paths.h: Likewise.
2707         * sysdeps/generic/utmpbits.h: Remove here.
2708         * sysdeps/gnu/utmpbits.h: Likewise.
2710         * misc/sys/uio.h: Place __BEGIN_DECLS correctly.
2711         Pretty-print prototypes.
2713         * sysdeps/unix/sysv/linux/sparc/clone.S: New file.  Taken from
2714         LinuxThreads-0.5.
2716 Tue Nov 19 13:43:07 1996  Richard Henderson  <rth@tamu.edu>
2718         * inet/ether_hton.c: Include <string.h>.
2719         * inet/ether_ntoh.c: Likewise.
2720         * inet/rexec.c: Get errno, index, getpass, getlogin from headers.
2721         * misc/search.h: Fix hcreate_r argument type (unsigned -> size_t).
2723         * misc/sys/cdefs.h: Change __long_double_t definition from typedef
2724         to define.  Jim Nance reports problems building XEmacs otherwise.
2726         * resolv/gethnamaddr.c: Protect h_errno redefinition.
2727         * resolv/getnetnamadr.c: Likewise.
2728         * resolv/herror.c: Likewise.
2730         * sysdeps/generic/sigset.h (__SIGSETFN): Operator ## doesn't work
2731         with -traditional.  Reported by Eric Youngdale.  While we're at this,
2732         don't do error checking in the __ functions.  This is consistent
2733         with the sysv4 definitions and seems Right.
2734         * signal/signal.h: Don't __OPTIMIZE__ sigops to __ versions.  Add
2735         prototype for __sigsuspend.
2736         * sysdeps/posix/sigblock.c: Optimize sigmask <-> sigset_t conversions
2737         for sigset_t == unsigned long.  De-ansidecl-ify.  Reformat copyright.
2738         * sysdeps/posix/sigpause.c: Likewise.
2739         * sysdeps/posix/sigsetmask.c: Likewise.
2740         * sysdeps/posix/sigvec.c: Likewise.
2741         * sysdeps/posix/sigintr.c: Reformat copyright.
2742         * sysdeps/posix/signal.c: Check signal number out of range since
2743         __sigismember doesn't anymore.  Reformat copyright.
2744         * sysdeps/posix/sigwait.c: Use __ versions of sigfillset, sigismember,
2745         sigdelset, sigaction, and sigsuspend.
2747         * stdlib/drand48-iter.c (__drand48_iterate): Cast state fragments
2748         to the wider type before shifting.
2750         * sysdeps/alpha/bsd-_setjmp.S: Silence assembler warning "$at used
2751         without .set noat" in profiling hook.
2752         * sysdeps/alpha/bsd-setjmp.S: Likewise.
2753         * sysdeps/alpha/htonl.S: Likewise.
2754         * sysdeps/alpha/htons.S: Likewise.
2755         * sysdeps/alpha/s_copysign.S: Likewise.
2756         * sysdeps/alpha/setjmp.S: Likewise.
2757         * sysdeps/alpha/stpcpy.S: Likewise.
2758         * sysdeps/alpha/strcat.S: Likewise.
2759         * sysdeps/alpha/strcpy.S: Likewise.
2760         * sysdeps/alpha/strncat.S: Likewise.
2761         * sysdeps/unix/sysv/linux/alpha/brk.S: Likewise.
2762         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
2763         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
2764         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
2765         * sysdeps/unix/sysv/linux/alpha/llseek.S: Likewise.
2766         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.  Rename
2767         function to __sigsuspend and add weak alias.
2768         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.  Add missing END.
2770         * sysdeps/alpha/w_sqrt.S: Define _ERRNO_H so <errnos.h> defines EDOM.
2772         * sysdeps/unix/execve.S: Match PSEUDO_END symbol with the symbol
2773         SYSCALL__ actually generated.
2775         * sysdeps/unix/sysv/linux/errnos.h [_LIBC_REENTRANT]: Reflexively
2776         #define __set_errno, as several imported subsystems (eg. BIND) check
2777         that the symbol is defined.
2779         * sysdeps/unix/sysv/linux/getsysstats.c: Include <alloca.h>.
2781         * sysdeps/alpha/memcpy.S: Temporarily remove until I can find a bug
2782         that manifests in GCC.
2784 Tue Nov 19 11:10:05 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
2786         * sysdeps/posix/writev.c (writev): COUNT parm is now int.
2787         * sysdeps/posix/readv.c (readv): Likewise.
2789 Tue Nov 19 15:28:29 1996  Ulrich Drepper  <drepper@cygnus.com>
2791         * nss/nss_dns/dns-network.c: Change return type of all functions
2792         to enum nss_status.
2793         Reported by NIIBE Yutaka.
2794         * nss/nss_dns/dns-host.c: Update copyright.
2796 Fri Nov 15 20:16:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2798         * config.make.in: Remove definition of top_absdir.
2799         * configure.in: Likewise. Use $(..) instead.
2800         * Makerules (make-link): Use $(..) to find rellns-sh script.
2802 Sat Nov 16 15:52:29 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2804         * manual/nss.texi (Name Service Switch): Fix reference to
2805         `frobnicate'.
2807 Fri Nov 15 22:08:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2809         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2810         sys/mtio.h.
2812 Mon Nov 18 05:51:13 1996  Ulrich Drepper  <drepper@cygnus.com>
2814         * sysdeps/generic/waitstatus.h (__WIFSIGNALED): Rename local
2815         variable from __stat to __status to prevent shadowing.
2816         * sunrpc/rpc/clnt.h (clntudp_create, clntudp_bufcreate): Likewise
2817         for parameter __wait.
2818         Reported by NIIBE Yutaka.
2820 Mon Nov 18 02:05:38 1996  Ulrich Drepper  <drepper@cygnus.com>
2822         * misc/regexp.c: New file.  Implementation of obsolete interface
2823         to regular expression matcher (required in XPG4.2).
2824         * misc/regexp.h: New file.  Header for above.
2825         * misc/Makefile (headers): Add regexp.h.
2826         (routines): Add regexp.c.
2827         Update copyright.
2829 Sun Nov 17 21:50:24 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
2831         * stdlib/tst-strtod.c (main): Add arguments for main.
2832         * stdlib/tst-strtol.c (main): Likewise.
2834 Sun Nov 17 21:15:05 1996  Ulrich Drepper  <drepper@cygnus.com>
2836         * configure.in: Substitute libc_cv_slibdir and libc_cv_sysconfdir
2837         in output files.
2838         * sysdepes/unix/sysv/linux/configure: Define libc_cv_slibdir to /lib
2839         and sysconfdir to /etc if $prefix is /usr.
2840         * config.make.in: Add slibdir, sysconfdir and BASH to be replaced.
2842         * elf/Makefile ($(objpfx)ldd): Install ldd.bash.in if
2843         $(have-bash2) is yes.
2844         * elf/ldd.bash.in: Add copyright and various cleanups.
2845         * elf/ldd.sh.in: Likewise.
2847         Implement RTLD_NEXT.
2848         * elf/dlfcn.h: Define RTLD_NEXT.
2849         * elf/dl-deps.c: Build second searchlist which contains duplicates.
2850         * elf/dl-lookup.c (_dl_lookup_symbol_skip): New function.  Used
2851         for RTLD_NEXT lookup.
2852         Rewrite _dl_lookup_symbol to put common parts for both lookup
2853         functions in a separate function.
2854         * elf/dlsym.c: Handle RTLD_NEXT by calling _dl_lookup_symbol_skip.
2855         * elf/link.h (struct link_map): Add l_dupsearchlist and
2856         l_ndupsearchlist.
2857         Add prototype for _dl_lookup_symbol_skip.
2859         * sunrpc/Makefile (rpcsvc): Add rusers.
2860         * sunrpc/rpcsvc/rnusers.x: Remove.  Obsolteted by rusers.x.
2861         * sunrpc/rpcsvc/rusers.x: New file.
2863 Sun Nov 17 04:24:35 1996  Ulrich Drepper  <drepper@cygnus.com>
2865         * stdio-common/vfprintf.c [USE_IN_LIBIO] (buffered_vfprintf): Call
2866         __libc_lock_init for local lock.
2867         Reported by a sun <asun@zoology.washington.edu>.
2868         [!USE_IN_LIBIO] (PAD): Optimize a bit.
2870 Sun Nov 17 03:13:57 1996  Ulrich Drepper  <drepper@cygnus.com>
2872         * db/makedb.c: Update and reformat copyright.
2873         * elf/Makefile: Likewise.
2874         * elf/dl-close.c: Likewise.
2875         * elf/dl-debug.c: Likewise.
2876         * elf/dl-deps.c: Likewise.
2877         * elf/dl-error.c: Likewise.
2878         * elf/dl-fini.c: Likewise.
2879         * elf/dl-init.c: Likewise.
2880         * elf/dl-load.c: Likewise.
2881         * elf/dl-lookup.c: Likewise.
2882         * elf/dl-minimal.c: Likewise.
2883         * elf/dl-object.c: Likewise.
2884         * elf/dl-open.c: Likewise.
2885         * elf/dl-reloc.c: Likewise.
2886         * elf/dl-runtime.c: Likewise.
2887         * elf/dl-support.c: Likewise.
2888         * elf/dl-symbol.c: Likewise.
2889         * elf/dladdr.c: Likewise.
2890         * elf/dlclose.c: Likewise.
2891         * elf/dlerror.c: Likewise.
2892         * elf/dlopen.c: Likewise.
2893         * elf/dlsym.c: Likewise.
2894         * elf/do-rel.h: Likewise.
2895         * elf/dynamic-link.h: Likewise.
2896         * elf/eval.c: Likewise.
2897         * elf/rtld.c: Likewise.
2898         * inet/ether_hton.c: Likewise.
2899         * inet/ether_ntoh.c: Likewise.
2900         * inet/ether_line.c: Likewise.
2901         * inet/getnetgrent_r.c: Likewise.
2903         * inet/Makefile (+gccwarn): Remove definition.
2904         Instead set CFLAGS-rcmd.c, CFLAGS-rexec.c, and CFLAGS-ruserpass.c
2905         to `-w'.
2906         * inet/aliases.h: Add C++ protection.
2907         * inet/ether_hton.c: Add prototype for __nss_ethers_lookup.
2908         (ether_hostton): Remove unused variable result.
2909         * inet/ether_ntoh.c: Likewise.
2910         * inet/ether_line.c: Include <ctype.h> and <string.h>.
2911         * inet/getnetgrent_r.c: Include <stdlib.h>.
2912         Use casts to prevent warnings.
2913         (innetgr): Initialize `known' and `needed'.
2914         * inet/inet_net.c: Make local variable `i' of type u_int32_t.
2915         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)) [NEED__RES]: Don't
2916         return NULL.  Instead set *RESULT to NULL and return -1.
2917         * nss/getXXent_r.c (INTERNAL (REENTRANT_GETNAME)): Likewise.
2918         (SETFUNC_NAME, ENDFUNC_NAME) [NEED__RES]: Don't return anything.
2920         * nss/nss_files/files-alias.c: Debug function.  I didn't worked at
2921         all before.
2923 Sat Nov 16 15:25:34 1996  Ulrich Drepper  <drepper@cygnus.com>
2925         * sysdeps/posix/readv.c: Don't use PTR anymore.
2926         * sysdeps/posix/writev.c: Likewise.
2928         * version.h (VERSION): Bump to 1.98.
2930         * nss/db-Makefile: Generate lines for getXXXent iteration.
2932         * sysdeps/alpha/Dist: Don't distribute removed files divlu.S,
2933         divqu.S, remlu.S, and remqu.S.
2935 Fri Nov 15 08:55:54 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
2937         * posix/unistd.h: Correct typo in documentation.
2939 Thu Nov 14 18:08:14 1996  a sun  <asun@zoology.washington.edu>
2941         * inet/netinet/tcp.h: Use __ protected versions instead of
2942         BYTE_ORDER, LITTLE_ENDIAN, and BIG_ENDIAN directly.
2944 Sat Nov 16 13:44:55 1996  Ulrich Drepper  <drepper@cygnus.com>
2946         * intl/loadmsgcat.c (_nl_msg_cat_cntr): Initialize so that
2947         references in libc.so are not anymore undefined.
2949 Sat Nov 16 18:17:36 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
2951         * io/utime.h: Rename second parameter for utime to prevent warning
2952         for -Wshadow.
2953         * dirent/dirent.h: Same here for scandir prototype.
2954         * math/mathcalls.h: Likewise for frexp and ldexp.
2955         * sysdeps/unix/sysv/linux/netinet/in.h: Likewise for bindresvport.
2957 Sat Nov 16 03:49:27 1996  Ulrich Drepper  <drepper@cygnus.com>
2959         * stdlib/tst-strtod.c: Add test for error case below.
2961 Sat Nov 16 03:48:39 1996  Wolfram Gloger  <Wolfram.Gloger@dent.med.uni-muenchen.de>
2963         * stdlib/strtod.c: Recognize numbers like 0e-19.
2965 Fri Nov 15 08:38:43 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
2967         * time/Makefile ($(installed-localtime-file)): Fix path to
2968         rellns-sh.
2970         * Makefile: Don't generate and install gnu/lib-names.h if
2971         $(build-shared) is not `yes'.
2973 Thu Nov 14 09:23:58 1996  H.J. Lu (hjl@gnu.ai.mit.edu)
2975         * sysdeps/posix/Makefile ($(common-objpfx)mk-stdiolim): Depend
2976         on $(..)posix/posix1_lim.h, not ../posix/posix1_lim.h.
2978         * Makerules (REAL_MAKE_VERSION): New, use it instead of
2979         MAKE_VERSION.
2981 Thu Nov 14 22:10:43 1996  Ulrich Drepper  <drepper@cygnus.com>
2983         * nss/nss_files/files-XXX.x (_nss_files_get,ENTNAME_r): Fix typo.
2984         * nss/getXXent_r.c: Fix typo.  Set correct return value when
2985         no further service is available.
2987 Thu Nov 14 17:48:13 1996  Ulrich Drepper  <drepper@cygnus.com>
2989         * db/recno/rec_put.c: Add cast to avoid warning.
2990         * db/recno/rec_close.c: Likewise.
2991         * db/mpool/mpool.c: Likewise.
2992         * db/hash/hash_bigkey.h: Likewise.
2993         * db/hash/hash.c: Likewise.
2994         * db/btree/bt_split.c: Likewise.
2995         * db/btree/bt_put.c: Likewise.
2997 Thu Nov 14 14:11:44 1996  Ulrich Drepper  <drepper@cygnus.com>
2999         * dirent/dirent.h: Update copyright.
3000         * elf/elf.h: Likewise.
3001         * elf/link.h: Likewise.
3002         * gmon/sys/gmon_out.h: Likewise.
3003         * gnu-versions.h: Likewise.
3004         * intl/libintl.h: Likewise.
3005         * io/fcntl.h: Likewise.
3006         * io/ftw.h: Likewise.
3007         * io/sys/statfs.h: Likewise.
3008         * io/utime.h: Likewise.
3009         * locale/langinfo.h: Likewise.
3010         * malloc/malloc.h: Likewise.
3011         * malloc/obstack.h: Likewise.
3012         * misc/ar.h: Likewise.
3013         * misc/error.h: Likewise.
3014         * misc/mntent.h: Likewise.
3015         * misc/sgtty.h: Likewise.
3016         * misc/sys/cdefs.h: Likewise.
3017         * misc/sys/dir.h: Likewise.
3018         * misc/sys/file.h: Likewise.
3019         * misc/sys/ioctl.h: Likewise.
3020         * misc/sys/ustat.h: Likewise.
3021         * posix/fnmatch.h: Likewise.
3022         * posix/getopt.h: Likewise.
3023         * posix/glob.h: Likewise.
3024         * posix/posix2_lim.h: Likewise.
3025         * posix/regex.h: Likewise.
3026         * posix/sys/times.h: Likewise.
3027         * posix/sys/types.h: Likewise.
3028         * posix/sys/utsname.h: Likewise.
3029         * posix/tar.h: Likewise.
3030         * posix/wordexp.h: Likewise.
3031         * resource/sys/resource.h: Likewise.
3032         * resource/sys/vlimit.h: Likewise.
3033         * resource/sys/vtimes.h: Likewise.
3034         * socket/sys/socket.h: Likewise.
3035         * socket/sys/un.h: Likewise.
3036         * stdio-common/printf.h: Likewise.
3037         * stdlib/alloca.h: Likewise.
3038         * string/argz.h: Likewise.
3039         * string/endian.h: Likewise.
3040         * string/envz.h: Likewise.
3041         * string/memory.h: Likewise.
3042         * string/strings.h: Likewise.
3043         * sysdeps/generic/crypt.h: Likewise.
3044         * sysdeps/generic/direntry.h: Likewise.
3045         * sysdeps/generic/gnu/types.h: Likewise.
3046         * sysdeps/generic/ioctl-types.h: Likewise.
3047         * sysdeps/generic/netinet/in.h: Likewise.
3048         * sysdeps/generic/resourcebits.h: Likewise.
3049         * sysdeps/generic/sigset.h: Likewise.
3050         * sysdeps/generic/sockaddrcom.h: Likewise.
3051         * sysdeps/generic/sys/mman.h: Likewise.
3052         * sysdeps/generic/sys/ptrace.h: Likewise.
3053         * sysdeps/generic/termbits.h: Likewise.
3054         * sysdeps/generic/waitstatus.h: Likewise.
3055         * sysdeps/ieee754/huge_val.h: Likewise.
3056         * sysdeps/ieee754/nan.h: Likewise.
3057         * sysdeps/mach/hurd/local_lim.h: Likewise.
3058         * sysdeps/mach/hurd/statbuf.h: Likewise.
3059         * sysdeps/stub/huge_val.h: Likewise.
3060         * sysdeps/stub/libc-lock.h: Likewise.
3061         * sysdeps/stub/signum.h: Likewise.
3062         * sysdeps/stub/statbuf.h: Likewise.
3063         * sysdeps/stub/waitflags.h: Likewise.
3064         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: Likewise.
3065         * sysdeps/unix/bsd/osf/alpha/statbuf.h: Likewise.
3066         * sysdeps/unix/bsd/osf/sys/mman.h: Likewise.
3067         * sysdeps/unix/bsd/signum.h: Likewise.
3068         * sysdeps/unix/bsd/statbuf.h: Likewise.
3069         * sysdeps/unix/bsd/sun/signum.h: Likewise.
3070         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Likewise.
3071         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
3072         * sysdeps/unix/bsd/sun/sunos4/termbits.h: Likewise.
3073         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
3074         * sysdeps/unix/bsd/waitflags.h: Likewise.
3075         * sysdeps/unix/sysv/irix4/signum.h: Likewise.
3076         * sysdeps/unix/sysv/irix4/statbuf.h: Likewise.
3077         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
3078         * sysdeps/unix/sysv/linux/alpha/statbuf.h: Likewise.
3079         * sysdeps/unix/sysv/linux/alpha/sys/io.h: Likewise.
3080         * sysdeps/unix/sysv/linux/direntry.h: Likewise.
3081         * sysdeps/unix/sysv/linux/gnu/types.h: Likewise.
3082         * sysdeps/unix/sysv/linux/ioctl-types.h: Likewise.
3083         * sysdeps/unix/sysv/linux/local_lim.h: Likewise.
3084         * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
3085         * sysdeps/unix/sysv/linux/resourcebits.h: Likewise.
3086         * sysdeps/unix/sysv/linux/signum.h: Likewise.
3087         * sysdeps/unix/sysv/linux/statbuf.h: Likewise.
3088         * sysdeps/unix/sysv/linux/sys/io.h: Likewise.
3089         * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
3090         * sysdeps/unix/sysv/linux/sys/mman.h: Likewise.
3091         * sysdeps/unix/sysv/linux/sys/ptrace.h: Likewise.
3092         * sysdeps/unix/sysv/linux/syscall.h: Likewise.
3093         * sysdeps/unix/sysv/linux/termbits.h: Likewise.
3094         * sysdeps/unix/sysv/local_lim.h: Likewise.
3095         * sysdeps/unix/sysv/sco3.2.4/syscall.h: Likewise.
3096         * sysdeps/unix/sysv/sco3.2/local_lim.h: Likewise.
3097         * sysdeps/unix/sysv/signum.h: Likewise.
3098         * sysdeps/unix/sysv/sysv4/i386/statbuf.h: Likewise.
3099         * sysdeps/unix/sysv/sysv4/signum.h: Likewise.
3100         * sysdeps/unix/sysv/sysv4/sigset.h: Likewise.
3101         * sysdeps/unix/sysv/sysv4/solaris2/signum.h: Likewise.
3102         * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h: Likewise.
3103         * sysdeps/unix/sysv/sysv4/waitflags.h: Likewise.
3104         * sysdeps/vax/huge_val.h: Likewise.
3105         * values.h: Likewise.
3107 Thu Nov 14 04:22:41 1996  Ulrich Drepper  <drepper@cygnus.com>
3109         * malloc/obstack.h: Use memcpy instead of bcopy and define a macro
3110         `memcpy' using bcopy if memcpy is not available.
3112         * manual/stdio.texi: Correct description of printf customization.
3113         The argument info function is not optional anymore and the
3114         interface for `printf_function' also changed.
3115         * manual/examples/rprintf.c: Define and use argument info function.
3117         * stdio-common/printf.h (struct printf_info): Change type for field
3118         `pad' to wchar_t.
3119         Correct comment for `register_printf_function'.
3121         * nss/getXXbyYY.c [NEED_H_ERRNO]: Don't pass pointer to h_errno
3122         to reentrant function.  Instead use temporary variable and set
3123         h_errno if an error occured.
3124         Reported by NIIBE Yutaka.
3126 Fri Nov 15 12:27:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3128         * sysdeps/mach/hurd/statbuf.h (S_IPTRANS, S_IATRANS, S_IROOT,
3129         S_ITRANS): New macros.
3130         (S_ISPARE): Update to include new macros and S_IUSEUNK.
3132         * sysdeps/mach/hurd/select.c (__select): Construct arg to
3133         mach_msg_destroy more nicely.
3135         * sysdeps/mach/hurd/ioctl.c: Include <mach/mig-support.h>.
3137         * stdio/fopen.c (__getmode): Declare with prototype.
3138         * stdio/memstream.c (enlarge_buffer, seek, free_info): Likewise.
3139         * stdio/internals.c (__stdio_check_funcs, init_stream,
3140         seek_to_target, flushbuf, fillbuf): Likewise.
3142         * stdio-common/vfscanf.c (encode_error) [! USE_IN_LIBIO]: Call
3143         funlockfile, not _IO_funlockfile.
3145         * sysdeps/posix/readv.c (readv): Change return type to ssize_t.
3146         Deansideclized.
3147         * sysdeps/posix/writev.c (writev): Likewise.
3149         * sysdeps/mach/hurd/lchown.c: Include <fcntl.h> and fix typo.
3151 Thu Nov 14 12:53:16 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3153         * sysdeps/mach/hurd/i386/init-first.c (_dl_start): Make this a
3154         prototyped definition.
3156         * sysdeps/mach/hurd/select.c (__select): Deal properly when there
3157         are no bits set in the masks.  Reported by baldazzi@csr.unibo.it.
3159 Thu Nov 14 02:00:33 1996  Ulrich Drepper  <drepper@cygnus.com>
3161         * inet/Makefile (headers): Add aliases.h.
3162         (routines): Add getaliasent_r, getaliasent, getaliasname, and
3163         getaliasname_r.
3164         * aliases.h: New file.
3165         * inet/aliases.h: New file.
3166         * inet/getaliasent.c: New file.
3167         * inet/getaliasent_r.c: New file.
3168         * inet/getaliasname.c: New file.
3169         * inet/getaliasname_r.c: New file.
3170         * nss/Makefile (databases): Add alias.
3171         * nss/alias-lookup.c: New file.
3172         * nss/databases.def: Add aliases and publickey.
3173         * nss/nss_db/db-alias.c: New file.
3174         * nss/nss_files/files-alias.c: New file.
3176         * inet/getnetgrent_r.c (__internal_getnetgrent): Buffer length
3177         argument to lookup function is of type size_t.
3178         (innetgr): Likewise.
3179         * nss/getXXbyYY_r.c: Likewise.
3180         * nss/getXXent_r.c: Likewise.
3181         * nss/nss_db/db-XXX.c: Likewise.
3183         * nss/getXXbyYY.c: Don't provide static buffer.  Resize if call
3184         failed because buffer was too small.
3185         * nss/getXXent.c: Likewise.
3187         * nss/nss_files/files-XXX.c: Correct handling of shared file.  The
3188         getXXent_r function now uses f[gs]etpos to get to the correct
3189         position.
3191         * nss/nss_files/files-parse.c: Indent lines for better readability.
3193         * malloc/obstack.c: Add new variable obstack_alloc_failed_handler
3194         and new function print_and_abort.  Remove all references to
3195         alloc_failed field.
3196         Add new function _obstack_memory_used.
3197         * malloc/obstack.h (struct obstack): Remove field alloc_field.
3198         Remove all references to alloc_failed field.
3199         Add prototype for _obstack_memory_used.
3201         * posix/unistd.h: Correct typo.
3203 Wed Nov 13 03:09:16 1996  Ulrich Drepper  <drepper@cygnus.com>
3205         * configure.in: Require at least autoconf-2.10.2.
3207 Tue Nov 12 16:58:41 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3209         * mach/mach.h (__mach_msg_destroy, mach_msg_destroy, __mach_msg):
3210         Provide prototypes.
3212         * mach/msg-destroy.c (mach_msg_destroy_port,
3213         mach_msg_destroy_memory): Use prototype syntax.
3214         * hurd/hurdmalloc.c (more_memory, malloc_fork_prepare,
3215         malloc_fork_parent, malloc_fork_child): Likewise. 
3217         * stdio/stdio.h: Repair broken cpp syntax.
3219         * sysdeps/mach/hurd/lchown.c: New file.  Guts from chown.c, except
3220         we pass O_NOLINK on the open.
3222         * manual/errno.texi (EBADMSG, EIDRM, EMULTIHOP, ENODATA, ENOLINK,
3223         ENOMSG, ENOSR, ENOSTR, EOVERFLOW, EPROTO, ETIME): Redesignate as
3224         an XOPEN error code, move to before the "Linux only" section, and
3225         give it a new number for the Hurd.
3227 Tue Nov 12 03:35:01 1996  Christian von Roques  <roques@pond.sub.org>
3229         * malloc/obstack.h: Add new macro `obstack_make_room'.
3230         * malloc/obstack.c: Add function implementation for
3231         `obstack_make_room'.
3233 Mon Nov 11 13:54:04 1996  Ulrich Drepper  <drepper@cygnus.com>
3235         Update to BIND-4.9.5-REL.
3236         * resolv/Banner: Set to 4.9.5-REL.
3237         * resolv/inet_net_pton.c: Was doing bad things to subnets and b'casts.
3238         * resolv/res_debug.c (__fp_nquery): Could read past end of buffer.
3239         (fix from BIND 8.1)
3241         * config.make.in: Add definition for top_absdir.
3242         * Makerules (make-link): Fix path to rellns-sh script.
3244 Sat Nov  9 02:15:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3246         * posix/unistd.h: Fix comment.
3248         * manual/arith.texi: Fix misspellings.  Use `zero', not `null',
3249         when talking about numbers.
3250         * manual/users.texi: Likewise.
3251         * manual/creature.texi: Likewise.  Use @defvarx for a secondary
3252         description header.
3254 Sat Nov  9 19:25:11 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3256         * sysdeps/posix/Makefile ($(common-objpfx)mk-stdiolim): Depend on
3257         the real posix1_lim.h file so that it works in all subdirs, not
3258         only in posix.
3260 Sat Nov  9 02:08:34 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3262         * Makefile ($(includedir)/gnu/lib-names.h): Quote arguments of tr.
3264 Sat Nov  9 02:06:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3266         * sysdeps/unix/Makefile ($(common-objpfx)s-proto.d): Don't depend
3267         on $(before-compile) which hasn't been properly setup yet at this
3268         point.
3270 Sat Nov  9 02:02:48 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3272         * sysdeps/generic/sigset.h: Don't use implicit int which will
3273         probably require a diagnostic in the next revision of the C
3274         standard.
3275         * sysdeps/stub/lockfile.c: Likewise.
3277 Sat Nov  9 01:57:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3279         * sysdeps/unix/sysv/linux/m68k/syscall.S: Correct last change.
3280         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
3282 Mon Nov 11 02:53:14 1996  Ulrich Drepper  <drepper@cygnus.com>
3284         * time/strftime.c: Update copyright.  Small cosmetic changes.
3286 Sun Nov 10 23:28:16 1996  Ulrich Drepper  <drepper@cygnus.com>
3288         * inet/getprtname_r.c: Reformat copyright.
3290         * nss/Makefile (databases): Add key.
3291         (libnss_files-routines): Exclude key database.
3292         (libnss_db-routines): Likewise.
3293         * nss/key-lookup.c: New file.
3295         * nss/getXXent_r.c (last_nip): Remember last service used since
3296         last setXXent call.
3297         (SETFUNC): Don't force to work through whole list of services in
3298         call to __nss_next.
3299         Update last_nip if necessary.
3300         (ENDFUNC): Only process endXXent function up to currently used
3301         last service.
3302         (GETFUNC): Update last_nip if necessary.
3304         * nss/nss_files/files-netgrp.c (_nss_netgroup_parseline): Don't
3305         make static.
3307         * rpc/auth_des.h: New file.
3308         * sunrpc/Makefile (headers): Add auth_des.h.
3309         (routines): Add publickey.
3310         * sunrpc/publickey.c: New file.  Interface to public key handling.
3311         * sunrpc/rpc/auth_des.h: New file.
3312         * sunrpc/rpc/netdb.h: Really include <rpc/auth_des.h>.
3314 Sun Nov 10 02:37:15 1996  Ulrich Drepper  <drepper@cygnus.com>
3316         * inet/gethstent_r.c: Update copyright.
3317         * nss/getXXbyYY_r.c: Likewise.
3318         * nss/nsswitch.c: Likewise.
3319         * nss/getXXent_r.c: Likewise.
3320         * nss/nss_files/files-XXX.c: Likewise.
3321         * nss/nss_files/files-netgroup.c: Likewise.
3322         * nss/nss_files/files-parse.c: Likewise.
3324         * nss/getXXent_r.c: Change implementation.  It's not necessary to
3325         call all setXXent functions.  Just find first available and
3326         when necessary let getXXent_r call the others.
3328         * nss/nss_files/files-XXX.c: Make really reentrant.  Now calls
3329         of getXXent and getXXbyYY can be mixed.  The cursor for traversing
3330         the database with getXXent will be remembered.
3332         * stdlib/test-canon.c (cwd): Change size to PATH_MAX.
3334 Sat Nov  9 15:34:48 1996  Ulrich Drepper  <drepper@cygnus.com>
3336         * sysdeps/unix/sysv/linux/Dist: Add sys/mtio.h.
3337         * sysdeps/unix/sysv/linux/sys/mtio.h: New file.
3339         * signal/signal.h [__USE_BSD]: Add prototype for siggetmask.
3341 Fri Nov  8 13:29:30 1996  Ulrich Drepper  <drepper@cygnus.com>
3343         * ctype/ctype.h (__isascii): Don't test for seventh bit not to be
3344         set.  Instead for none beside the first seven bits to be set.
3345         X/Open allows the argument to be an `int' value.
3346         Reported by Alain Williams <addw@phcomp.co.uk>.
3347         (toascii, isascii): Define macro also when __USE_XOPEN.
3349         * sysdeps/posix/fpathconf.c: Use fstatfs to compute NAME_MAX, not
3350         PATH_MAX.
3352 Thu Nov  7 03:04:29 1996  Ulrich Drepper  <drepper@cygnus.com>
3354         * nss/getXXXent_r.c (SETFUNC_NAME): Reset `nip' after loop to
3355         NULL so that GETFUNC will see first entry.
3356         (ENDFUNC_NAME): Likewise.
3358         Rewrite Netgroups implementation to avoid global data.
3359         * inet/netgroup.h: Add definition of name_list and struct
3360         __netgrent.
3361         Add prototypes for internal netgroup functions.
3362         * nss/nss_files/files-netgroup.c (_nss_files_setnetgrent): Take
3363         extra argument and use the included data instead of global vars.
3364         (_nss_files_endnetgrent): Likewise.
3365         (_nss_netgroup_parseline): Change to be static and use data
3366         included in the RESULT structure.
3367         * inet/getnetgrent_r.c (startp): Move into setup function.
3368         (known_groups, needed_groups): new part of the __netgrent sruct.
3369         (freememory): Take extra argument and use included data.
3370         (__internal_endnetgrent): Likewise.
3371         (internal_setnetgrent): Renamed to __internal_setnetgrent_reuse
3372         and take extra argument.
3373         (__internal_setnetgrent): New function.  Call
3374         __internal_setnetgrent_reuse after calling free_memory.
3375         (setnetgrent): Only call __internal_setnetgrent.
3376         (__getnetgrent_r): Split into two functions.  __getnetgrent_r
3377         calls __internal_getnetgrent after locking.
3378         (innetgr): Use dynamic data only.  I.e., innetgr now is fully
3379         reentrant.
3381 Thu Nov  7 00:15:14 1996  Ulrich Drepper  <drepper@cygnus.com>
3383         * sysdeps/stub/setenv.c: Correct typo: unseenv -> unsetenv.
3384         Reported by Joshua Cowan <jcowan@jcowan.reslife.okstate.edu>.
3386 Wed Nov  6 13:13:37 1996  Ulrich Drepper  <drepper@cygnus.com>
3388         * manual/creature.texi: Document that _GNU_SOURCE is no longer the
3389         default when no *_SOURCE macro is given.
3390         Reported by Karsten Weiss <karsten@addx.au.s.shuttle.de>.
3391         * NOTES: remade from manual/creature.texi.
3392         * manual/libc.texinfo: Add back line about GPL translation which
3393         somehow got lost.
3395         * Make-dist (dist.tar): Depend on README being updated.
3397         * rellns-sh: Correct thinko in removing leading /.
3398         Reported by Andreas Jaeger <aj@arthur.pfalz.de>.
3400         * pwd/fgetpwent_r.c: Recognize lines containing only names starting
3401         with `+' or `-' in parser.
3402         * grp/fgetgrent_r.c: Likewise.
3403         * shadow/sgetspent_r.c: Likewise.
3404         * nss/nss_files/files-spwd.c: Don't accept entries starting with
3405         `+' or `-'.
3407 Wed Nov  6 04:30:26 1996  Ulrich Drepper  <drepper@cygnus.com>
3409         * sysdeps/unix/sysv/linux/syscalls.list: Add weak alias llseek for
3410         _llseek syscall.  Reported by Andy Sewell <puck@pookhill.demon.co.uk>.
3412         * string/argz.h: Don't protect by __USE_GNU.
3414 Tue Nov  5 23:38:28 1996  Ulrich Drepper  <drepper@cygnus.com>
3416         * Lots of files: Update and reformat copyright.
3418         * Makefile (headers): Add xopen_lim.h.
3420         * catgets/nl_types.h: Move __BEGIN_DECLS before definition of nl_catd.
3422         * grp/grp.h: Define setgrent, getgrent, endgrent, and getgrent_r
3423         if __USE_XOPEN_EXTENDED is defined.
3424         * pwd/pwd.h: Define setpwent, getpwent, endpwent, and getpwent_r
3425         if __USE_XOPEN_EXTENDED is defined.
3427         * io/Makefile (routines): Add lchown.
3428         * sysdeps/stub/lchown.c: New file.
3430         * io/sys/poll.h: Add definition of POLLWRNORM.
3432         * io/sys/stat.h: Declare lstat, fchmod, mknod when
3433         __USE_XOPEN_EXTENDED is defined.
3435         * libio/Makefile (routines): Add obprintf.
3436         * libio/obprintf.c: New file.
3437         * libio/iolibio.h: Add prototypes for _IO_obstack_vprintf and
3438         _IO_obstack_printf.
3439         * libio/libio.h: Fix typo.
3440         * libio/stdio.h: Declare tempnam if __USE_XOPEN_EXTENDED is defined.
3441         Add prototypes for obstack_vprintf and obstack_printf.
3443         * manual/creature.texi: Describe _XOPEN_SOURCE macro.
3444         * manual/intro.texi: Add reference to NSS chapter.
3445         * manual/libc.texinfo: Update UPDATED.
3446         Comment out `@printindex cp'.  It works again.
3447         * manual/memory.texi: Add description for obstack_ptr_grow,
3448         obstack_int_grow, obstack_ptr_grow_fast, and obstack_int_grow_fast.
3449         * manual/nss.texi: Add a few @cindex entries and change NSS_STATUS_*
3450         index entries to @vindex.
3451         * manual/users.texi: Correct @cindex entry for Netgroup.
3453         * math/mathcalls.h: Use __USE_XOPEN and __USE_XOPEN_EXTENDED to
3454         make declarations visible for X/Open sources.
3456         * misc/search.h: Declare insque/remque only is __USE_SVID or
3457         __USE_XOPEN_EXTENDED is defined.
3459         * misc/sys/uio.h (readv, writev): Change return value from int to
3460         ssize_t.
3462         * posix/Makefile (headers): Add re_comp.h.
3463         * posix/re_comp.h: New file.  XPG interface to regex functions.
3465         * posix/getconf.c: Add all names from XPG4.2.
3466         * posix/posix1_lim.h: Increase minimum values for _POSIX_CHILD_MAX
3467         and _POSIX_OPEN_MAX to minimums from XPG4.2.
3468         * sysdeps/generic/confname.h: Add all _SC_* names from XPG4.2.
3469         * sysdeps/posix/sysconf.c: Handle new _SC_* values.
3470         * sysdeps/stub/sysconf.c: Likewise.
3472         * posix/unistd.h: Add declaration of ualarm and lchown.  Declare
3473         usleep, fchown, fchdir, nice, getpgid, setsid, getsid, setreuid,
3474         setregid, vfork, ttyslot, symlink, readlink, gethostid, truncate,
3475         ftruncate, getdtablesize, brk, sbrk, lockf when
3476         __USE_XOPEN_EXTENDED is defined.
3478         * posix/sys/wait.h: Declare wait3 if __USE_XOPEN_EXTENDED is defined.
3480         * shadow/shadow.h: Define SHADOW using _PATH_SHADOW.
3481         * sysdeps/generic/paths.h: Define _PATH_SHADOW.
3482         * sysdeps/unix/sysv/linux/paths.h: Likewise.
3484         * signal/signal.h: Declare killpg, sigstack and sigaltstack when
3485         __USE_XOPEN_EXTENDED is defined.
3487         * stdio/stdio.h: Declare tempnam when __USE_XOPEN is defined.
3489         * stdlib/stdlib.h: Make rand48 functions available when __USE_XOPEN
3490         is defined.
3491         Likewise for valloc, putenv, realpath, [efg]cvt*, and getsubopt
3492         functions.
3494         * string/string.h: Make memccpy, strdup, bcmp, bcopy, bzero, index,
3495         and rindex available when __USE_XOPEN_EXTENDED is defined.
3497         * sysdeps/mach/getpagesize.c: De-ANSI-fy.  Change return type to int.
3498         * sysdeps/posix/getpagesize.c: Likewise.
3499         * sysdeps/stub/getpagesize.c: Likewise.
3500         * sysdeps/unix/getpagesize.c: Likewise.
3502         * time/africa: Update from tzdata1996l.
3503         * time/asia: Likewise.
3504         * time/australia: Likewise.
3505         * time/europe: Likewise.
3506         * time/northamerica: Likewise.
3507         * time/pacificnew: Likewise.
3508         * time/southamerica: Likewise.
3509         * time/tzfile.h: Update from tzcode1996m.
3511         * time/time.h: Declare strptime if __USE_XOPEN.
3512         Declare daylight and timezone also if __USE_XOPEN.
3514         * time/sys/time.h: Remove declaration of ualarm.
3516         * wctype/wctype.h: Just reference ISO C standard.
3518 Tue Nov  5 01:26:32 1996  Richard Henderson  <rth@tamu.edu>
3520         * crypt/Makefile: Add crypt routines to libc as well iff
3521         $(crypt-in-libc) is set.  Do this for temporary binary compatibility
3522         on existing Linux/Alpha installations.
3524         * stdlib/div.c, sysdeps/generic/div.c: Move file to .../generic/.
3525         * stdlib/ldiv.c, sysdeps/generic/ldiv.c: Likewise.
3526         * stdlib/lldiv.c, sysdeps/generic/lldiv.c: Likewise.
3527         * sysdeps/alpha/Makefile (divrem): Add divlu, dviqu, remlu, and
3528         remqu.
3529         * sysdeps/alpha/div.S: New file.
3530         * sysdeps/alpha/ldiv.S: New file.
3531         * sysdeps/alpha/lldiv.S: New file.
3532         * sysdeps/alpha/divrem.h: Merge signed and unsigned division.
3533         Take pointers from Linus and tighten the inner loops a bit.
3534         * sysdeps/alpha/divl.S: Change defines for merged routines.
3535         * sysdeps/alpha/divq.S: Likewise.
3536         * sysdeps/alpha/reml.S: Likewise.
3537         * sysdeps/alpha/remq.S: Likewise.
3538         * sysdeps/alpha/divlu.S: Remove file.
3539         * sysdeps/alpha/divqu.S: Likewise.
3540         * sysdeps/alpha/remlu.S: Likewise.
3541         * sysdeps/alpha/remqu.S: Likewise.
3543         * sysdeps/alpha/bsd-_setjmp.S: If PROF, call _mcount.
3544         * sysdeps/alpha/bsd-setjmp.S: Likewise.
3545         * sysdeps/alpha/bzero.S: Likewise.
3546         * sysdeps/alpha/ffs.S: Likewise.
3547         * sysdeps/alpha/htonl.S: Likewise.
3548         * sysdeps/alpha/htons.S: Likewise.
3549         * sysdeps/alpha/memchr.S: Likewise.
3550         * sysdeps/alpha/memset.S: Likewise.
3551         * sysdeps/alpha/s_copysign.S: Likewise.
3552         * sysdeps/alpha/s_fabs.S: Likewise.
3553         * sysdeps/alpha/setjmp.S: Likewise.
3554         * sysdeps/alpha/stpcpy.S: Likewise.
3555         * sysdeps/alpha/stpncpy.S: Likewise.
3556         * sysdeps/alpha/strcat.S: Likewise.
3557         * sysdeps/alpha/strchr.S: Likewise.
3558         * sysdeps/alpha/strcpy.S: Likewise.
3559         * sysdeps/alpha/strlen.S: Likewise.
3560         * sysdeps/alpha/strncat.S: Likewise.
3561         * sysdeps/alpha/strncpy.S: Likewise.
3562         * sysdeps/alpha/strrchr.S: Likewise.
3563         * sysdeps/alpha/udiv_qrnnd.S: Likewise.  Fix private labels.
3564         Convert two small jumps to use conditional moves.
3565         * sysdeps/unix/alpha/sysdep.h: Compress all __STDC__ nastiness.
3566         (PSEUDO): If PROF, call _mcount.
3567         * sysdeps/unix/sysv/linux/alpha/brk.S: If PROF, call _mcount.
3568         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
3569         * sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S: Likewise.
3570         * sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S: Likewise.
3571         * sysdeps/unix/sysv/linux/alpha/llseek.S: Likewise.
3572         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: Likewise.
3573         * sysdeps/unix/sysv/linux/alpha/syscall.S: Likewise.
3575         * sysdeps/alpha/memcpy.S: New file.  Odd layout because it should
3576         eventually contain memmove as well.
3577         * sysdeps/alpha/strcmp.S: New file.
3578         * sysdeps/alpha/strncmp.S: New file.
3579         * sysdeps/alpha/w_sqrt.S: New file.
3581 Tue Nov  5 18:06:06 1996  Ulrich Drepper  <drepper@cygnus.com>
3583         * sysdeps/mach/hurd/ttyname_r.c: Use `size_t' for len variable.
3585 Tue Nov  5 12:09:29 1996  Ulrich Drepper  <drepper@cygnus.com>
3587         * sysdeps/generic/sysdep.h: Define END only if not yet defined.
3588         * sysdeps/unix/sysdep.h: Define PSEUDO_END only if not yet defined.
3589         Reported by Thomas Bushnell, n/BSG.
3591 Mon Nov  4 22:46:53 1996  Ulrich Drepper  <drepper@cygnus.com>
3593         * manual/users.texi (Netgroup Data): Remove { } around @cindex.
3595 Mon Nov  4 19:07:05 1996  Ulrich Drepper  <drepper@cygnus.com>
3597         * malloc/calloc.c: Check for overflow before trying to allocate
3598         memory.  Proposed by Neil Matthews <nm@adv.sbc.sony.co.jp>.
3600 Fri Nov  1 18:18:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3602         * manual/llio.texi (Operating Modes): Add missing arguments to
3603         @deftypevr in O_NONBLOCK description.
3605         * manual/time.texi (Time Zone Functions): Enclose type name in
3606         braces in description of tzname.  FIXME: this does not yet work
3607         correctly in info.
3609 Sun Nov  3 17:29:06 1996  Ulrich Drepper  <drepper@cygnus.com>
3611         * features.h: Add X/Open macros.
3612         * posix/unistd.h: Define X/Open macros.
3613         * sysdeps/generic/confname.h: Add _SC_XOPEN_XCU_VERSION,
3614         _SC_XOPEN_UNIX, _SC_XOPEN_CRYPT, _SC_XOPEN_ENH_I18N,
3615         _SC_XOPEN_SHM, _SC_2_CHAR_TERM, _SC_2_C_VERSION, and _SC_2_UPE.
3616         * sysdeps/posix/sysconf.c: Handle new constants.
3617         * sysdeps/stub/sysconf.c: Likewise.
3618         * sysdeps/unix/sysv/linux/posix_opt.h: Add definition of _XOPEN_SHM.
3620         * catgets/catgets.c (catopen): Set errno to ENOMEM when
3621         we run out of memory.
3622         (catgets): Set errno to EBADF when catalog handle is invalid.
3623         Set errno to ENOMSG when translation is not available.
3624         (catclose): Set errno to EBADF when catalog handle is invalid.
3626         * ctype/ctype.h: Declare isascii and toascii when __USE_XOPEN.
3627         Likewise for _toupper and _tolower.
3629         * manual/arith.texi: Document strtoq, strtoll, strtouq, strtoull,
3630         strtof, and strtold.
3631         * manual/math.texi: Document HUGE_VALf and HUGE_VALl.
3632         * manual/stdio.h: Document ' flag for numeric formats of scanf.
3633         * manual/users.texi: Document that cuserid shouldn't be used.
3635         * misc/Makefile (routines): Add dirname.
3636         (headers): Add libgen.h.
3637         (tests): Add tst-dirname.
3638         * misc/dirname.c: New file.
3639         * misc/libgen.h: New file.
3640         * misc/tst-dirname.c: New file.
3642         * misc/search.h: Parameter of hcreate must be of type size_t.
3643         * misc/hsearch.c: Likewise.
3644         * misc/hsearch_r.c: Likewise for hcreate_r.
3645         * misc/search.h: Parameters of insque and remque must be `void *'.
3646         * misc/insremque.c: Likewise.
3648         * posix/unistd.h: Move declarations of mktemp and mkstemp to...
3649         * stdlib/stdlib.h: ...here.
3650         * posix/unistd.h [__USE_XOPEN]: Add prototypes for crypt, setkey,
3651         encrypt, and swab.
3653         * stdio-common/printf-parse.h (struct printf_spec): Add pa_wchar
3654         and pa_wstring.
3655         (parse_one_spec): Remove Linux compatibility code.
3656         Recognize %C and %S formats.
3657         * stdio-common/printf.h: Add PA_WCHAR and PA_WSTRING.
3658         * stdio-common/vfprintf.c: Add implementation of %C and %S format.
3659         * stdio-common/vfscanf.c: Likewise for scanf.
3661         * stdlib/l64a.c: Return value for 0 must be the empty string.
3662         * stdlib/stdlib.h: Declare reentrant function from rand49 family
3663         only if __USE_REENTRANT.
3664         Declare rand48 functions also if __USE_XOPEN.
3666         * stdlib/strtol.c: Return 0 and set errno to EINVAL when BASE is
3667         not a legal value.
3668         Return 0 and set errno to EINVAL when strou* sees negativ number.
3669         * stdlib/tst-strtol.c: De-ANSI-fy.
3670         Change expected results for test of unsigned function and negative
3671         input.
3673         * string/stratcliff.c: Prevent warnings.
3674         * string.h: Move declaration of swab to <unistd.h>.
3675         * string/swab.c: De-ANSI-fy.
3677         * sysdeps/posix/cuserid.c: Implement using getpwuid_r.
3678         * sysdeps/posix/mkstemp.c: Include <stdlib.h> for prototype.
3679         * sysdeps/posix/mktemp.c: Likewise.
3680         * sysdeps/stub/mkstemp.c: Likewise.
3681         * sysdeps/stub/mktemp.c: Likewise.
3683         * sysvipc/sys/ipc.h: Prototypes of ftok have to be of types `const
3684         char *' and `int'.
3685         * sysvipc/ftok.c: Likewise.  Make sure only lower 8 bits of
3686         PROJ_ID are used.
3688 Sun Nov  3 03:21:28 1996  Heiko Schroeder  <Heiko.Schroeder@post.rwth-aachen.de>
3690         * locale/programs/ld-numeric.c (numeric_output): Compute idx[0]
3691         correctly.
3693 Sat Nov  2 17:44:32 1996  Ulrich Drepper  <drepper@cygnus.com>
3695         * sysdeps/posix/cuserid.c: Use reentrant functions.
3696         * manual/users.texi: Tell that cuserid is marked to be withdrawn in
3697         XPG4.2.
3699 Sat Nov  2 14:26:37 1996  Ulrich Drepper  <drepper@cygnus.com>
3701         Linus said he will make sure no system call will return a value
3702         in -1 ... -4095 as a valid result.
3703         * sysdeps/unix/sysv/linux/i386/sysdep.h: Correct test for error.
3704         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3705         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
3706         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
3708 Sat Nov  2 16:54:49 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
3710         * sysdeps/stub/lockfile.c [!USE_IN_LIBIO]: Define weak alias for
3711         __funlockfile, not a circular alias.
3712         Define __IO_ftrylockfile if USE_IN_LIBIO and __ftrylockfile if not,
3713         not vice versa.
3715         * sysdeps/unix/sysv/linux/i386/sysdep.S (__errno_location): Make
3716         it a weak symbol.
3717         * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location): Likewise.
3719 Tue Nov  5 00:04:48 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3721         * stdio-common/vfprintf.c: Include <libc-lock.h>.
3723 Mon Nov  4 16:57:42 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3725         * sysdeps/mach/hurd/ttyname_r.c (ttyname_r): Change prototype to
3726         match POSIX.1c.
3728         * sysdeps/stub/lockfile.c [! USE_IN_LIBIO]: Second definition of
3729         __internal_funlockfile (in terms of itself) should actually be a
3730         definition of __funlockfile.
3732         * pwd/pwd.h: Get `size_t' from <stddef.h>.
3733         * grp/grp.h: Likewise.
3734         * shadow/shadow.h: Likewise.
3736         * stdlib/atexit.c (__new_exitfn): Add missing semicolons after
3737         calls to __libc_lock_lock and __libc_lock_unlock.
3738         * stdlib/random.c (__srandom, __initstate, __setstate, __random):
3739         Likewise.
3741         * hurd/hurdsig.c (write_corefile): Fix typo.
3743         * sysdeps/mach/hurd/sigwait.c: New file.
3745 Sat Nov  2 01:48:47 1996  Ulrich Drepper  <drepper@cygnus.com>
3747         * sysdeps/unix/sysv/linux/errnos.h: Move declaration of errno
3748         and __errno_location to correct position.
3750 Thu Oct 31 22:51:25 1996  Ulrich Drepper  <drepper@cygnus.com>
3752         * Makefile (distribute): Add rellns-sh.
3753         * rellns-sh: New file.
3754         * Makerules (make-link): Use rellns-sh.
3755         * time/Makefile ($(installed-localtime-file)): Likewise.
3757 Thu Oct 31 11:33:01 1996  Ulrich Drepper  <drepper@cygnus.com>
3759         * elf/Makefile ($objpfx)ldd) Substitute $(version) for @VERSION@.
3760         (distribute): Add ldd.bash.in.
3761         * elf/ldd.sh.in: Process --help and --version parameter.
3762         Correct comments.
3763         * elf/ldd.bash.in: New file.
3765         * stdlib/stdlib.h: Add prototype for clearenv.
3766         * sysdeps/generic/setenv.c: Add implementation of clearenv.
3767         (setenv): Handle __environ == NULL correctly.
3768         * sysdeps/stub/setenv.c: Add stub definition for unsetenv and
3769         clearenv.
3771         * sysdeps/generic/putenv.c: Correct layout to fit in libit.
3772         * sysdeps/generic/setenv.c: Likewise.
3773         * stdlib/strtol.h: Likewise.
3775         * time/sys/time.h: Define __need_timeval and include <timebits.h>.
3776         Remove definition of struct timeval.
3777         * sysdeps/stub/timebits.h [__need_timeval]: Define struct timeval
3778         using `time_t' for members.
3779         * sysdeps/unix/sysv/linux/timebits.h [__need_timeval]: Likewise.
3780         * sysdeps/unix/sysv/linux/alpha/timebits.h: New file.  Same
3781         as old Linux specific version.
3783 Thu Oct 31 00:01:39 1996  Ulrich Drepper  <drepper@cygnus.com>
3785         * signal/Makefile (routines): Add sigwait.
3786         * signal/signal.h: Add prototype for sigwait.
3787         * sysdeps/posix/sigwait.c: New file.  Implementation of sigwait
3788         function from POSIX.1c.
3789         * sysdeps/stub/sigwait.c: New file.  Stub version of sigwait.
3791 Wed Oct 30 02:01:17 1996  Richard Henderson  <rth@tamu.edu>
3793         * sunrpc/xdr_float.c (xdr_float): Handle sizeof(float)!=sizeof(long),
3794         but don't bother going farther than sizeof(float)==sizeof(int).
3795         (xdr_double): Handle little-endian machines!  Handle sizeof(double)
3796         != 2*sizeof(long), though again don't bother with more than int.
3798 Thu Oct 29 16:09:42 1996  Craig Metz  <cmetz@inner.net>
3800         * sysdeps/posix/getaddrinfo.c: Use buffer limits for inet_ntop
3801         function.
3803 Tue Oct 29 12:37:22 1996  Ulrich Drepper  <drepper@cygnus.com>
3805         * Makerules: Create symbolic links for linking in $(libdir).
3806         (make-link): Use absolute path for destination if this is not in
3807         the same directory.
3809         * elf/rtld.c (dl_main): When verifying don't check the name of
3810         the dynamic linker.
3812         * shlib-versions: Change entries for Hurd specific libs from
3813         *-*-gnu* to *-*-gnu?* so that i586-pc-linux-gnu does not match
3814         these entries.
3816         * assert/assert.h: Reformat copyright.
3817         Change reference to ANSI into reference to ISO C.
3818         * ctype/ctype.h: Likewise.
3819         * errno.h: Likewise.
3820         * limits.h: Likewise.
3821         * math/math.h: Likewise.
3822         * setjmp/setjmp.h: Likewise.
3823         * stdio/stdio.h: Likewise.
3824         * libio/stdio.h: Likewise.
3825         * stdlib/stdlib.h: Likewise.
3826         * string/string.h: Likewise.
3827         * time/time.h: Likewise.
3829         * string/argz.h: Use __const in definitions.
3831         * elf/dlfcn.h: Use __const and __P.  Reformat copyright.
3832         * misc/err.h: Likewise.
3834         * wctype/wctype.h (wctrans_t): Use __const instead of const.
3836         * Makeconfig ($(common-objpfx)soversions.mk): Generate list of
3837         sonames for versioned libraries.
3838         * Makefile: Remove code to generate libc-version.h.
3839         Generate gnu/lib-names.h with info from soversions.mk.
3840         * features.h: Define __GLIBC__ and __GLIBC_MINOR__.
3842         * dirent/tst-seekdir.c: Initialize save3.
3843         * grp/testgrp.c: Initialize my_group.
3845         * grp/fgetgrent_r.c: Change interface to follow POSIX.1c.
3846         * grp/grp.h: Likewise.
3847         * nss/getXXbyYY.c: Likewise.
3848         * nss/getXXbyYY_r.c: Likewise.
3849         * nss/getXXent.c: Likewise.
3850         * nss/getXXent_r.c: Likewise.
3851         * pwd/fgetpwent_r.c: Likewise.
3852         * pwd/pwd.h: Likewise.
3853         * shadow/fgetspent_r.c: Likewise.
3854         * shadow/sgetspent.c: Likewise.
3855         * shadow/sgetspent_r.c: Likewise.
3856         * grp/fgetgrent.c: Adapt for change in interface of fgetgrent_r.
3857         * pwd/fgetpwent.c: Likewise, for fgetpwent_r.c.
3858         * shadow/fgetspent.c: Likewise, for fgetpwent_r.c.
3859         * resolv/netdb.h: Adapt prototypes for reentrant functions to
3860         follow POSIX.1c.
3861         * sunrpc/rpc/netdb.h: Likewise,
3862         * shadow/shadow.h: Likewise.
3864         * inet/getnetgrent_r.c: Follow change in pwd/grp function interface.
3866         * sysdeps/unix/getlogin_r.c: Return ERANGE when buffer is too small.
3868         * inet/herrno.c: Don't define __h_errno, only h_errno otherwise the
3869         ELF aliasing creates strange situations.
3870         * sysdeps/unix/sysv/linux/errnos.H: Define __set_errno as inline
3871         function.
3872         * sysdeps/unix/sysv/linux/i386/sysdep.S: Don't define __errno.
3873         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
3875         * libio/libio.h: Don't declare _IO_flockfile and _IO_funlockfile
3876         weak.
3878         * locale/programs/charmap.c: Add casts to prevent warnings.
3879         * locale/programs/linereader.h: Likewise.
3880         * locale/programs/ld-collate.c: Likewise.
3881         * locale/programs/stringtrans.c: Likewise.
3882         Change types for various variables to prevent warnings.
3883         * locale/programs/ld-ctype.c: Likewise.
3884         * locale/programs/linereader.h (lr_ungetc): Likewise.
3885         * locale/programs/charset.h (struct charset): Use `unsigned int'
3886         as type for width_default.
3887         * posix/regex.c: Change type of `this_reg' variables.
3888         * stdio-common/Makefile: Use -Wno-format for tstdiomisc.c.
3889         * stdio-common/bug5.c: De-ANSI-fy.  Use correct types for
3890         variables.
3891         * stdio-common/printf_fp.c: Initialize to_shift.
3892         * stdio-common/test_rdwr.c: Add cast.
3893         * stdio-common/vfprintf.c: Add casts and use correct types to
3894         prevent warnings.
3895         * stdio-common/vfscanf.c: Initialize str and strptr.
3896         * sysdeps/libm-ieee754/e_jnf.c: Use correct types to prevent warnings.
3897         * sysdeps/libm-ieee754/e_pow.c: Likewise.
3898         * sysdeps/libm-ieee754/e_powf.c: Likewise.
3899         * sysdeps/libm-ieee754/e_rem_pio2f.c: Likewise.
3900         * time/test-tz.c: Likewise.
3902         * manual/creature.texi: Document _REENTRANT and _THREAD_SAFE.
3903         * manual/libc.texinfo: Prevent makeinfo failure by avoiding
3904         libc.cp index.  This must be fixed.
3905         * manual/nss.texi: Adapt for correct POSIX.1c interface of
3906         reentrant functions.
3907         * manual/users.texi: Document netgroup functions.
3909         * po/es.po: Updated.
3910         * po/fr.po: Updated.
3912         * posix/fnmatch.c: Change to match libit version.
3914         * posix/unistd.h: Change prototype for ttyname_r to match POSIX.1c.
3915         * sysdep/posix/ttyname_r.c: Likewise.
3917         * stdlib/atexit.h (__new_exitfn): Add internal locking.
3918         * stdlib/exit.c: De-ANSI-fy.  Handle new ef_us value for flavor.
3919         * stdlib/exit.h: De-ANSI-fy.  Define new ef_us value for flavor.
3920         * stdlib/random.c (__srandom): Add internal locking.
3921         (__initstate): Likewise.
3922         (__setstate): Likewise.
3923         (__random): Likewise.
3925 Mon Oct 28 22:28:37 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
3927         * sysdeps/generic/crypt-entry.c (crypt_r): Use __set_errno.
3928         (crypt): Likewise.
3929         * resolv/gethnamaddr.c (gethostbyname2): Likewise.
3930         * sysdeps/generic/uname.c: Likewise.
3931         * sysdeps/posix/rename.c: Likewise.
3932         * sysdeps/stub/setrlimit.c: Likewise.
3934         * nss/nss_db/db-netgrp.c (_nss_db_setnetgrent): Fix typo.
3936 Sun Oct 27 11:12:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3938         * locale/programs/ld-collate.c (collate_order_elem): Fix format
3939         string.
3940         (collate_element_to): Cast field width argument to `int' for
3941         format string.
3942         (collate_symbol): Likewise.
3943         (collate_order_elem): Likewise.
3944         (collate_weight_bsymbol): Likewise.
3945         (collate_simple_weight): Likewise.
3947         * locale/programs/ld-time.c (STRARR_ELEM): Fix format string.
3949         * locale/programs/ld-ctype.c (ctype_class_newP): Add missing
3950         argument for format string.
3951         (ctype_map_newP): Likewise.
3952         (set_class_defaults): Fix format string.
3954         * locale/programs/localedef.c (construct_output_path): Putting an
3955         explicit \0 into the format string does not work, use %c.
3957 Sat Oct 26 20:38:36 1996  Richard Henderson  <rth@tamu.edu>
3959         * Makerules: Install all shared libraries in $(slibdir).
3961         * login/Makefile: Build libutil.so in others pass after
3962         libc.so is created.
3964         * misc/mntent.h: Include <paths.h> for _PATH_MNTTAB & _PATH_MOUNTED.
3966         * string/stratcliff.c: Allocate 3 pages instead of one, then use
3967         mprotect so that we know that the adjacent pages are inaccessible.
3969         * resource/sys/resource.h: Move all structures and enums to ...
3970         * sysdeps/generic/resourcebits.h: ... here ...
3971         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: ... and here.
3972         * sysdeps/unix/sysv/linux/alpha/resourcebits.h: Remove.
3973         * sysdeps/unix/sysv/linux/i386/resourcebits.h: Remove.
3974         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Remove.
3975         * sysdeps/unix/sysv/linux/mips/resourcebits.h: Remove.
3976         * sysdeps/unix/sysv/linux/resourcebits.h: New file.  Use kernel
3977         header for RLIMIT_* definitions.  The members of struct rlimit
3978         are longs.
3981 Thu Oct 24 17:43:34 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3983         * MakeTAGS (sysdep-dirs): Fix typo.
3985 Thu Oct 24 17:32:57 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
3987         * hurd/hurdsig.c (write_corefile): If we can't create the core
3988         file, still call crash_dump_task with a null FILE arg.  Maybe it
3989         won't actually need the file.
3991 Wed Oct 23 03:45:22 1996  Ulrich Drepper  <drepper@cygnus.com>
3993         * Makefile (headers): Don't mention libc-version.h.
3994         (install-others): ...but here.
3996 Tue Oct 22 21:38:21 1996  Ulrich Drepper  <drepper@cygnus.com>
3998         * version.h: Bump version number to 1.97.
4000         * features.h: Undo change of Sun Oct 20 22:19:58 1996.
4001         Include libc-version.h.
4002         * features.h.in: Removed.
4003         * Makefile: Change rules to generate libc-version.h instead of
4004         features.h.
4006         * malloc/free.c: Add cast to prevent warning.
4007         * malloc/malloc-walk.c: Likewise.
4008         * malloc/ralloc.c: Likewise.
4009         * malloc/realloc.c: Likewise.
4011         * grp/fgetgrent_r.c: Accept empty numeric field if name start with +
4012         or -.
4013         * pwd/fgetpwent_r.c: Likewise.
4014         * nss/nss_files/files-grp.c: Don't accept entries with names starting
4015         with + or - in lookup functions.
4016         * nss/nss_files/files-pwd.c: Likewise.
4018         * Makerules: Call autolock.sh using $(SHELL).
4020 Mon Oct 21 22:52:16 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
4022         * elf/dl-minimal.c: Don't define `dgettext' replacement but
4023         `dcgettext'.  When optimizing the macros in <libintl.h> define
4024         `dgettext' as a macro and so this function will never be called.
4026 Mon Oct 21 15:41:59 1996  Ulrich Drepper  <drepper@cygnus.com>
4028         * sysdeps/i386/sysdep.h: Define END to use .size when available.
4029         (PSEUDO_END): Use END.
4030         * sysdeps/unix/sysv/linux/i386/sysdep.h: Define PSEUDO_END to
4031         define SYSCALL_ERROR_HANDLER before using END.
4032         (SYSCALL_ERROR_HANDLER): Don't use .size directive.
4033         * sysdeps/unix/sysv/linux/clone.S: Don't use SYSCALL_ERROR_HANDLER
4034         and .size directive but PSEUDO_END.
4035         * sysdeps/unix/sysv/linux/mmap.S: Likewise.
4036         * sysdeps/unix/sysv/linux/socket.S: Likewise.
4037         * sysdeps/unix/sysv/linux/syscall.S: Likewise.
4038         * sysdeps/unix/sysv/linux/sysdep.S (__errno_location): Use END.
4039         * sysdeps/unix/i386/sysdep.S (__syscall_error): Likewise.
4040         * sysdeps/i386/__longjmp.S: Use END instead of PSEUDO_END.
4041         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4042         * sysdeps/i386/bsd-setjmp.S: Likewise.
4043         * sysdeps/i386/memchr.S: Likewise.
4044         * sysdeps/i386/memcmp.S: Likewise.
4045         * sysdeps/i386/setjmp.S: Likewise.
4046         * sysdeps/i386/stpcpy.S: Likewise.
4047         * sysdeps/i386/stpncpy.S: Likewise.
4048         * sysdeps/i386/strchr.S: Likewise.
4049         * sysdeps/i386/strcspn.S: Likewise.
4050         * sysdeps/i386/strpbrk.S: Likewise.
4051         * sysdeps/i386/strrchr.S: Likewise.
4052         * sysdeps/i386/strspn.S: Likewise.
4053         * sysdeps/i386/strtok.S: Likewise.
4054         * sysdeps/i386/i486/strcat.S: Likewise.
4055         * sysdeps/i386/i486/strlen.S: Likewise.
4056         * sysdeps/i386/i586/memset.S: Likewise.
4057         * sysdeps/i386/i586/strchr.S: Likewise.
4058         * sysdeps/i386/i586/strlen.S: Likewise.
4060         * sysdeps/i386/strlen.c: De-ANSI-fy.
4062         * sysdeps/generic/_strerror.c: Undo change of Mon Oct 21 01:32:36 1996.
4063         Define dgettext if not defined to use dcgettext.
4064         * sysdeps/mach/_strerror.c: Likewise.
4066         * sysdeps/unix/sysv/i386/time.S: Add PSEUDO_END to get
4067         __syscall_error defined.
4069 Sat Oct 19 12:27:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4071         * sysdeps/unix/sysv/linux/m68k/mmap.S: Fix braino: CALL_MCOUNT is
4072         already included in the ENTRY macro.  Remove SYSCALL_ERROR_HANDLER
4073         now provided by PSEUDO_END.
4074         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
4075         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
4076         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
4077         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
4078         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.  Use JUMPTARGET.
4080         * sysdeps/generic/sysdep.h (END): Provide default empty
4081         definition.
4082         * sysdeps/unix/sysv/linux/m68k/sysdep.h (END): Redefine to use
4083         size directive.
4084         (PSEUDO): Don't include SYSCALL_ERROR_HANDLER.
4085         (PSEUDO_END): Include it here instead.
4086         (SYSCALL_ERROR_HANDLER): Remove type directive.
4087         * sysdeps/m68k/bsd-_setjmp.S: Use END, not PSEUDO_END.
4088         * sysdeps/m68k/bsd-setjmp.S: Likewise.
4089         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
4090         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
4091         (__syscall_error): Can't use ENTRY macro.
4093 Sat Oct 19 12:13:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4095         * sysdeps/unix/sysv/linux/syscalls.list (getresuid, setresuid):
4096         Set caller to EXTRA.
4098 Mon Oct 21 01:32:36 1996  Ulrich Drepper  <drepper@cygnus.com>
4100         * elf/rtld.c (dl_main): Move initialization of `_dl_starting_up'
4101         to beginning of function.  So libc functions can use this flag.
4102         * sysdeps/generic/_strerror.c: Don't use dgettext for message
4103         translation while `_dl_starting_up' is nonzero.
4105         * elf/dl-deps.c (_dl_map_object_deps): Add new parameter
4106         TRACE_MODE.
4107         Pass parameter value to _dl_map_object.
4108         * elf/dl-load (_dl_map_object): Add new parameter TRACE_MODE.
4109         If TRACE_MODE is nonzero don#t signal error when shared lib
4110         is not found.  Instead create fake entry for link map.
4111         * dl-open.c (dl-open): Pass 0 for new argument to _dl_map_object.
4112         * dl-runtime.c (_dl_object_relocation_scope): Pass 0 for new
4113         argument to _dl_map_object_deps.
4114         * elf/link.h: Add new parameter TRACE_MODE for prototypes of
4115         _dl_map_object and _dl_map_object_deps.
4116         * elf/rtld.c (dl_main): Pass 0 for new argument to _dl_map_object
4117         and _dl_map_object_deps.
4118         When mode == trace test for l_opencount == 0 before printing
4119         link information since this means the lib is not found.
4121 Sun Oct 20 22:19:58 1996  Ulrich Drepper  <drepper@cygnus.com>
4123         * rpm/template: Add INSTALL to %doc line to follow copyright
4124         restrictions which demand the distribution of the copyright
4125         messages in INSTALL even for binary distributions.
4127         * features.h: Rename to...
4128         * features.h.in: ...this.  Change value of __GNU_LIBRARY__ to 2
4129         (for major version numberof package) and add __GNU_LIBRARY_MINOR__
4130         and __GNU_LIBRARY_INTERFACE__.
4131         * Makefile ($(objpfx)features.h): New rule to generate features.h
4132         from template features.h.in.
4134         * sysdeps/unix/sysv/linux/getsysstats.c: Include <paths.h>.
4136 Sun Oct 20 00:00:13 1996  Richard Henderson  <rth@tamu.edu>
4138         * locale/programs/linereader.c (lr_open): Cast away const before free.
4139         (lr_close): Likewise.
4141         * misc/mntent.h: Move _PATH_MNTTAB & _PATH_MOUNTED to paths.h.
4142         * misc/paths.h: Move to ...
4143         * sysdeps/generic/paths.h: ... here.
4144         * paths.h: Remove.
4145         * sysdeps/unix/sysv/linux/paths.h: New file.  Correct _PATH_STDPATH,
4146         _PATH_MAILDIR, _PATH_MOUNTED, _PATH_UNIX to comply with the fsstd.
4148         * nss/nss_db/db-netgrp.h: Include <string.h>.
4150         * stdio-common/psignal.c: De-ansidecl-ify.  Allow NULL entries in
4151         _sys_siglist, which result in the "Unknown signal" message.
4152         * string/strsignal.c: Likewise.
4153         * sysdeps/generic/Makefile [stdio-common]: If $(inhibit-siglist),
4154         don't auto-generate siglist.c.
4155         * sysdeps/unix/sysv/linux/Makefile [stdio-common]: Set inhibit-siglist.
4156         * sysdeps/unix/sysv/linux/siglist.c: New file.  Not needing to
4157         autogenerate makes bootstrapping and cross-compiling much easier.
4158         * sysdeps/unix/sysv/linux/siglist.h: New file.
4160         * stdlib/longlong.h: Prototype __udiv_qrnnd.
4162         * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_headers): Remove
4163         sys/io.h.  It is already added in .../linux/Makefile.
4165         * sysdeps/unix/sysv/linux/alpha/sigaction.h: New file.
4166         * sysdeps/unix/sysv/linux/alpha/signum.h: New file.
4167         * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
4169 Sun Oct 20 17:17:12 1996  Ulrich Drepper  <drepper@cygnus.com>
4171         Add implementation of POSIX.1g function getaddrinfo.
4172         * posix/Makefile (routines): Add getaddrinfo.
4173         * sysdeps/posix/getaddrinfo.c.: New file.  Add implementation by
4174         Craig Metz.
4175         * sysdeps/stub/getaddrinfo.c: New file.  Stub implementation.
4176         * resolv/netdb.h [__USE_POSIX]: Add getaddrinfo prototypes and
4177         related constants and structures.
4179 Sun Oct 20 13:02:34 1996  Ulrich Drepper  <drepper@cygnus.com>
4181         * sysdeps/stub/lockfile.c: Rename functions to __internal_*.
4182         Make all old names weak alises so that they can be replaced
4183         by libpthread.
4185         * stdio-common/vfprintf.c: Only declare __flockfile and __funlockfile
4186         for !USE_IN_LIBIO.
4187         [USE_IN_LIBIO]: Call _IO_flockfile and _IO_funlockfile instead of
4188         __flockfile and __funlockfile.
4189         Reported by NIIBE Yutaka.
4191         * crypt/md5.c: Change form of copyright message according to GNITS
4192         rules.
4193         Add warning for requirement on RESBUF parameter for `md5_finish_ctx'
4194         and `md5_read_ctx' function.
4195         * crypt/md5.h: Likewise.
4197         * grp/testgrp.c: Don't use perror for error cases since getgr* and
4198         getpw* functions do not return usable error codes.
4200 Sun Oct 19 23:05:32 1996  Jim Meyering  <meyering@asic.sc.ti.com>
4202         * crypt/md5.c (md5_process_bytes): Used casting for pointer
4203         arithmetic.
4205 Sun Oct 20 03:53:23 1996  Ulrich Drepper  <drepper@cygnus.com>
4207         * sunrpc/Makefile (others): Remove portmap here, too.
4209 Sat Oct 19 17:42:24 1996  Ulrich Drepper  <drepper@cygnus.com>
4211         * intl/locale.alias: Language for entry `czech' is `cs'.
4213 Fri Oct 17 13:20:35 1996  Thorsten Kukuk  <kukuk@weber.uni-paderborn.de>
4215         * sunrpc/etc.rpc: Update from ti-rpcsvc 2.3.
4217 Fri Oct 18 22:56:45 1996  Ulrich Drepper  <drepper@cygnus.com>
4219         * sunrpc/Makefile (install-sbin): Remove portmap.  This version is
4220         buggy and more competent people work on a usable version which is
4221         distributed separately.
4222         * sunrpc/portmap.c: Removed.
4223         Suggested by Thorsten Kukuk.
4225 Fri Oct 18 12:17:09 1996  Enrique Melero  <justine@iprolink.ch>
4227         * sysdeps/libm-ieee754/s_finitel.c: Change function name to
4228         `finitel'.
4230 Fri Oct 18 00:01:10 1996  Ulrich Drepper  <drepper@cygnus.com>
4232         * string/Makefile (tests): Add stratcliff.
4233         * string/stratcliff.c: New file.  Test for string function at
4234         the edge of the usable memory.
4236 Thu Oct 17 22:10:19 1996  Ulrich Drepper  <drepper@cygnus.com>
4238         * Makerules ($(libdir)/libc.so): Fix typo.
4240         * elf/ldd.sh.in: Test whether given file really exist and give
4241         better message if it is not available.
4243 Thu Oct 17 04:25:38 1996  Ulrich Drepper  <drepper@cygnus.com>
4245         * sysdeps/unix/sysv/linux/sys/shm_buf.h: Add definition for
4246         SHM_R and SHM_W.
4248 Thu Oct 17 01:55:34 1996  Ulrich Drepper  <drepper@cygnus.com>
4250         * sunrpc/Makefile ($(objpfx)rpcsvc/%.h, $(objpfx)x%.c): Write
4251         output to $@T and move to $@ later since the new rpcgen will not
4252         overwrite existing files.
4254         * po/Makefile (libc.pot): Fix typo.
4256 Sun Oct 13 20:52:07 1996  Thorsten Kukuk  <kukuk@weber.uni-paderborn.de>
4258         Update rpcgen program to TI-rpc code.
4259         * sunrpc/Makefile (rpcgen-objs): Add rpc_tblout.o and rpc_sample.o.
4260         (distribute): Add proto.h.
4261         * sunrpc/proto.h: New file.  Prototypes for all the RPC functions.
4262         * sunrpc/rpc_clntout.c: Change to allow generation of ISO C code.
4263         * sunrpc/rpc_cout.c: Likewise.
4264         * sunrpc/rpc_hout.c: Likewise.
4265         * sunrpc/rpc_main.c: Likewise.
4266         * sunrpc/rpc_parse.c: Likewise.
4267         * sunrpc/rpc_parse.h: Likewise.
4268         * sunrpc/rpc_scan.c: Likewise.
4269         * sunrpc/rpc_scan.h: Likewise.
4270         * sunrpc/rpc_svcout.c: Likewise.
4271         * sunrpc/rpc_util.c: Likewise.
4272         * sunrpc/rpc_util.h: Likewise.
4274         * sunrpc/rpc_tblout.c: New file.
4275         * sunrpc/rpc_sample.c: Likewise.
4277 Thu Oct 17 00:26:20 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
4279         * sysdeps/unix/opendir.c: Add semicolon for consistency.
4281 Wed Oct 16 12:26:53 1996  Sven Verdoolaege  <skimo@breughel.ufsia.ac.be>
4283         * locale/programs/localedef.c (main): Test with -1 to find out
4284         whether read failed.
4286 Wed Oct 16 14:54:59 1996  Ulrich Drepper  <drepper@cygnus.com>
4288         * sysdeps/unix/sysv/linux/i386/clone.S: Use JUMPTARGET and
4289         PSEUDO_END macro.
4291 Tue Oct 15 21:27:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4293         * sysdeps/unix/sysv/linux/m68k/sigcontext.h: Removed.
4295 Tue Oct 15 15:52:29 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4297         * sysdeps/unix/sysv/linux/m68k/clone.S: Add CALL_MCOUNT.
4298         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
4299         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
4300         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
4301         * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location):
4302         Likewise.
4303         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
4304         Correct generation of system call.
4306 Tue Oct 15 15:13:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4308         * Makerules (sysd-Makefile): Fix command so that it works in the
4309         subdirectories.
4310         (BUILD_CFLAGS): Change back using $(..) instead of
4311         $(common-objpfx), the latter fails in the toplevel directory when
4312         $(objdir) is relative.
4313         (common-objdir-compile): Run compiler in $(objdir).
4314         * sysdeps/posix/Makefile (mk-stdiolim): Likewise.
4316 Tue Oct 15 23:39:48 1996  Ulrich Drepper  <drepper@cygnus.com>
4318         * string/string.h [__USE_SVID]: Add prototype for swab.
4319         * time/sys/time.h [__USE_BSD]: Add prototype for ualarm.
4320         Reported by Andreas Jaeger.
4322         The available nlist implementation is not generally usable.
4323         Especially on the currently supported ELF systems the nlist
4324         function comes with the libelf.
4325         * misc/Makefile (headers): Remove nlist.h.
4326         (routines): Remove nlist.
4328         * Makefile ($(objpfx)version-info.h): Include information about
4329         system the libc is built on in version-info.h file.
4331         * po/Makefile (distribute): Add header.pot.
4333 Tue Oct 15 16:34:15 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
4335         * sysdeps/unix/sysv/linux/sleep.c: Include file with prototype.
4336         * sysdeps/unix/sysv/linux/reboot.c: Likewise.
4337         * misc/error.c: Likewise.
4339 Tue Oct 15 22:41:27 1996  Ulrich Drepper  <drepper@cygnus.com>
4341         * sysdeps/unix/sysv/linux/syscalls.list: Add {get,set}resuid.
4343 Tue Oct 15 08:06:02 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
4345         * crypt/Makefile (rpath-link): Extend search path to current directory.
4347 Fri Oct 11 09:18:06 1996  Sven Verdoolaege  <skimo@breughel.ufsia.ac.be>
4349         * sysdeps/i386/i586/strlen.S: Correct handling of prolog for
4350         aligning pointer.
4352 Tue Oct 15 02:13:21 1996  Ulrich Drepper  <drepper@cygnus.com>
4354         * stdio-common/vfprintf.c: Don't declare __flockfile as weak.
4356         * crypt/md5-crypt.c (md5_crypt_r): Add cast to prevent warning.
4358 Tue Oct 15 14:37:40 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
4360         * sysdeps/mach/hurd/fcntlbits.h (O_HURD): Add O_EXLOCK and
4361         O_SHLOCK.
4363 Tue Oct 15 14:37:40 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
4365         * sysdeps/mach/hurd/fcntlbits.h (O_HURD): Add O_EXLOCK and
4366         O_SHLOCK. 
4368 Sun Oct 13 19:16:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4370         * sysdeps/unix/sysv/linux/m68k/sysdep.h (POUND): Macro removed,
4371         replaced by `&'.
4372         (PSEUDO_END): Provide definition to use .size directive.
4373         (PSEUDO): Don't interpret negative return values less than -128 as
4374         syscall error.
4375         * sysdeps/unix/sysv/linux/m68k/syscall.S (syscall): Likewise.
4377         * sysdeps/m68k/bsd-_setjmp.S: Use PSEUDO_END macro to provide
4378         .size directive.
4379         * sysdeps/m68k/bsd-setjmp.S: Likewise.
4380         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
4381         * sysdeps/unix/sysv/linux/m68k/mmap.S: Likewise.
4382         * sysdeps/unix/sysv/linux/m68k/sigreturn.S: Likewise.
4383         * sysdeps/unix/sysv/linux/m68k/socket.S: Likewise.
4384         * sysdeps/unix/sysv/linux/m68k/syscall.S: Likewise.
4385         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Use PSEUDO_END instead of
4386         explicit .size directive.
4388 Sun Oct 13 22:52:56 1996  Ulrich Drepper  <drepper@cygnus.com>
4390         * shlib-versions: Add version number/name for ld.so.
4391         * Makeconfig: Move definition of rtld-installed-name after
4392         inclusion of soversions.mk.
4393         Don't add . before version number from shlib-versions file when
4394         when name does not start with digit.  This is needed for ld.so.
4396 Sat Oct 12 20:31:58 1996  Richard Henderson  <rth@tamu.edu>
4398         * libio/iogets.c: Warn when gets is used.
4399         * stdio/gets.c: Strengthen the warning.
4401 Sat Oct 12 23:10:43 1996  Ulrich Drepper  <drepper@cygnus.com>
4403         * libio/Makefile [_LIBC_REENTRANT] (routines): Add peekc.
4404         * libio/libio.h: Add prototypes for _IO_getc, _IO_putc, _IO_feof,
4405         _IO_ferror, _IO_peekc_locked, and _IO_ftrylockfile.
4406         Remove prototypes for _IO_getc_locked and _IO_putc_locked.
4407         [_IO_MTSAFE_IO]: Add weak aliases for _IO_flockfile and
4408         _IO_funlockfile.
4409         [! _IO_MTSAFE_IO]: Define _IO_ftrylockfile as empty.
4410         Define _IO_getc, _IO_peekc, _IO_putc, _IO_feof, _IO_ferror to
4411         appropriate values according to __USE_REENTRANT.
4412         * libio/stdio.h: Add prototype for ftrylockfile.
4413         [!_LIBC]: Define getc_locked, getchar_locked, putchar_locked,
4414         getc, getchar, putc, and putchar using _IO_* names.
4415         * libio/feof.c: Rename to _IO_feof and make feof weak alias.
4416         * libio/ferror.c: Rename to _IO_ferror and make ferror weak alias.
4417         * libio/getc.c: Rename to _IO_getc and make getc weak alias.
4418         * libio/putc.c: Rename to _IO_putc and make putc weak alias.
4419         * libio/putc_u.c: Don't define alias _IO_putc_unlocked.
4420         * libio/peekc.c: New file.
4422         * stdio-common/vfprintf.c (vfprintf): Unconditionally call
4423         __flockfile.
4425         * sysdeps/stub/locfile.c [USE_IN_LIBIO]: Also define _IO_* names.
4427         * crypt/Makefile (tests): Add md5test and md5c-test.
4428         * crypt/md5-crypt.c: Correct various error.  Now md5_process_bytes
4429         is called, the buffer limit is honoured and a loop in a inner
4430         loop is corrected.
4431         * crypt/md5.h (struct md5_ctx): Add new fields.
4432         Add prototypes for new functions.
4433         * crypt/md5.c (md5_init_ctx): Initialize new fields.
4434         (md5_finish_ctx): New function.  Like md5_read_ctx but before
4435         perform correct finalization.
4436         (md5_process_bytes): New function.  Similar to md5_proces_block,
4437         but does not require input size to be multiple of 64.
4438         (md5_stream): Rewrite using md5_process_bytes and md5_finish_ctx.
4439         (md5_buffer): Likewise.
4440         (md5_process_block): Count number of bytes.
4441         * crypt/md5test.c: New file.  Test program for MD5 functions.
4442         * crypt/md5c-test.c: New file:  Test program for MD5 crypt
4443         function.
4445         * po/fr.po: Update.
4447         * time/strptime.c: Recognize %s, %u, %g, and %G format.
4449         * posix/getopt.c: Add some more casts and initializations to
4450         prevent warnings.
4452 Sat Oct 12 16:15:29 1996  Ulrich Drepper  <drepper@cygnus.com>
4454         * sysdeps/unix/sysv/linux/speed.c (speeds): Removed.  We provide
4455         an extra function to provide this functionality.
4456         (cfgetospeed): Simply return masked value.
4457         (cfsetospeed): Don't use speeds array and so we can simply test
4458         the value of SPEED for illegal values.
4459         * termios/cfsetspeed.c: Rewrite.  We convert here between the
4460         real values and the B* constants.
4461         Changes suggested by Uwe Ohse <uwe@tirka.gun.de>.
4463 Fri Oct 11 21:45:34 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
4465         * locale/programs/xstrdup.c: Define prototypes.
4466         * locale/programs/xmalloc.c: Likewise.
4468         * stdio-common/xbug.c (main): Change definition to avoid warning.
4470 Fri Oct 11 23:36:31 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4472         * db/hash/hash.c (__hash_open): Correctly test for a read-write db.
4474 Fri Oct 11 19:13:34 1996  Ulrich Drepper  <drepper@cygnus.com>
4476         * locale/Makefile (CPPFLAGS): Set CHARMAP_PATH to
4477         "$(i18ndir)/charmaps".
4479 Fri Oct 11 22:12:41 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
4481         * sysdeps/unix/sysv/linux/sys/procfs.h: Include <asm/user.h>
4482         to get definition of FPU description struct.
4484         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (subdir_headers):
4485         Add net/if.h, net/if_ppp.h, net/ppp-comp.h, net/ppp_defs.h,
4486         net/if_arp.h, and net/route.h.
4487         * sysdeps/unix/sysv/linux/net/if_arp.h: New file.
4488         * sysdeps/unix/sysv/linux/net/route.h: New file.
4490 Fri Oct 11 14:49:13 1996  Ulrich Drepper  <drepper@cygnus.com>
4492         * sysdeps/stub/readdir_r.c: New file.  We need a stub version.
4493         * sysdeps/stub/e_acosl.c: Likewise.
4494         * sysdeps/stub/e_asinl.c: Likewise.
4495         * sysdeps/stub/e_atan2l.c: Likewise.
4496         * sysdeps/stub/e_expl.c: Likewise.
4497         * sysdeps/stub/e_fmodl.c: Likewise.
4498         * sysdeps/stub/e_log10l.c: Likewise.
4499         * sysdeps/stub/e_logl.c: Likewise.
4500         * sysdeps/stub/e_sqrtl.c: Likewise.
4501         * sysdeps/stub/s_atanl.c: Likewise.
4502         * sysdeps/stub/s_log1pl.c: Likewise.
4504         * Makefile (distribute): Add nsswitch.h and netgroup.h.
4506         * nss/Makefile (generated): db-netgrp.c is not generated.
4508         * sysdeps/alpha/Dist: Add stxcpy.S and stxncpy.S.
4510         * Make-dist (+out): Add $(dont_distribute).
4512 Fri Oct 11 00:27:18 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4514         * stdio-common/Makefile (routines): Add tmpnam_r.
4516 Fri Oct 11 05:32:51 1996  Ulrich Drepper  <drepper@cygnus.com>
4518         * version.h: Bump version to 1.96.
4520 Fri Oct 11 18:13:47 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
4522         * stdio-common/tst-printf.c: Some more cleanups.
4524 Fri Oct 11 02:48:02 1996  Ulrich Drepper  <drepper@cygnus.com>
4526         * resolv/arpa/nameser.h: Update from bind-4.9.5-T6B.
4527         * resolv/resolv.h: Likewise.
4528         * resolv/gethnamaddr.c: Likewise.
4529         * resolv/res_comp.c: Likewise.
4530         * resolv/res_debug.c: Likewise.
4531         * resolv/res_init.c: Likewise.
4532         * resolv/res_send.c: Likewise.
4533         * resolv/Banner: Update version number.
4535         * nss/nss_dns/dns-host.c: Update according to change in
4536         resolv/gethnamaddr.c.
4538 Fri Oct 10 20:52:28 1996  Ralph Loader  <loader@maths.ox.ac.uk>
4540         * crypt/md5.c (md5_stream): When reading the block in several
4541         pieces append to instead of replace previously read data.
4543 Thu Oct 10 15:53:17 1996  Richard Henderson  <rth@tamu.edu>
4545         * sysdeps/alpha/stxcpy.S ($unaligned): In single word copy, correct
4546         last-byte-written bit for source word misalignment.
4547         * sysdeps/alpha/strchr.c: Removed.  There is now an assembler
4548         version.
4550 Thu Oct 10 17:17:23 1996  Ulrich Drepper  <drepper@cygnus.com>
4552         * sunrpc/Makefile (rpcsvc): Remove yp.x.  The corrected version
4553         comes with glibc-nis.
4554         * sunrpc/rpcsvc/yp.x: Removed.
4556         * nss/nss_files/files-netgr.c (_nss_netgroup_parseline): Test
4557         for *CURSOR to be NULL and dump a core if yes.
4559 Thu Oct  9 20:09:53 1996  Matthew Jacob  <mjacob@feral.com>
4561         * sysdeps/unix/sysv/linux/alpha/brk.S: Define _ERRNO_H before
4562         including <errnos.h> to get error numbers.
4564 Thu Oct 10 14:00:01 1996  Ulrich Drepper  <drepper@cygnus.com>
4566         * sysdeps/unix/sysv/linux/i386/sigcontext.h: Moved file...
4567         * sysdeps/unix/sysv/linux/sigcontext.h: ...to here.  So the
4568         Alpha people find a correct file.
4569         * sysdeps/libm-ieee754/w_cabs.c: We cannot make __cabsl simply
4570         an alias of __cabs since the structures have different names.
4571         * sysdeps/libm-ieee754/w_log10.c: Fix typo in weak_alias.
4572         Reported by Matthew Jacob <mjacob@feral.com>.
4574 Thu Oct 10 17:25:55 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
4576         * Makerules (sysd-Makefile): Look for sysdep Makefiles using $(..)
4577         so that it still works right if we happen to get called in a
4578         subdir it still works.
4580         * sysdeps/mach/hurd/fcntlbits.h (O_SHLOCK, O_EXLOCK): Redesignate
4581         as file name translation flags.
4582         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Don't pretend
4583         to do anything for O_SHLOCK or O_EXLOCK.  Those are now file name
4584         translation flags.
4585         
4586         * Makerules ($(libdir)/libc.so): Mention the actual libc.a archive
4587         name (changed according to libc-name) to avoid getting the
4588         Hurd-ish linker script for libc.a when we only want the archive
4589         library. 
4591 Wed Oct  9 00:24:52 1996  Jim Meyering  <meyering@asic.sc.ti.com>
4593         * time/strftime.c: Allow old K&R compilers compile this file.
4595 Wed Oct  9 12:03:56 1996  Ulrich Drepper  <drepper@cygnus.com>
4597         * posix/execlp.c: Add first argument parameter to be compliant
4598         with POSIX.  Rearrange body to start vararg counter after
4599         this new argument.
4601 Wed Oct  9 04:34:50 1996  Ulrich Drepper  <drepper@cygnus.com>
4603         * sysdeps/unix/sysv/linux/sys/procfs.h: Rewrite.  We cannot use
4604         simply a wrapper around the <linux/elfcore.h> file since the
4605         kernel header is not clean enough.  We provide the definitions
4606         in this file instead.
4608 Wed Oct  9 01:43:18 1996  Ulrich Drepper  <drepper@cygnus.com>
4610         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Avoid
4611         get?id calls by using __libc_enable_secure.
4613 Wed Oct  9 00:30:33 1996  Ulrich Drepper  <drepper@cygnus.com>
4615         * inet/getnetgrent_r.c: Correct netgroup implementation.  A
4616         specification of a netgroup can also name another netgroup.
4617         * nss/nss_files/files-netgrp.c: Likewise.
4618         * inet/netgroup.h: Add fields to hold additional information.
4620 Tue Oct  8 21:51:14 1996  Arnold D. Robbins  <arnold@skeeve.atl.ga.us>
4622         * posix/getopt.c: Implement POSIX -W option handling.  When the
4623         option string contains "W;" -W foo is handled like --foo.
4625 Tue Oct  8 12:27:26 1996  Ulrich Drepper  <drepper@cygnus.com>
4627         * sysdeps/unix/sysv/linux/i386/clone.S: Define _ERRNO_H before
4628         inclusing <errnos.h> so we really get error symbols defined.
4629         * sysdeps/unix/sysv/linux/m68k/clone.S: Likewise.
4630         * sysdeps/unix/sysv/linux/alpha/clone.S: Likewise.
4632         * sunrpc/auth_unix.c (authunix_create_default): Don't use fixed
4633         size array for getgroups call.  Instead get maximal number via
4634         sysconf.  But discard list to NGRPS elements before calling XDR
4635         function since Sun's code cannot handle longer lists.
4636         Based on a patch by Thorsten Kukuk <kukuk@weber.uni-paderborn.de>.
4638         * sysdeps/stub/e_j0l.c: Define y0l as well.
4639         * sysdeps/stub/e_j1l.c: Define y1l as well.
4640         * sysdeps/stub/e_jnl.c: Define ynl as well.
4642         * posix/unistd.h: Correct prototype for execlp.
4644         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_NO_TRUNC.
4646 Mon Oct  7 22:18:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4648         * Makeconfig (sysdep-library-path): New variable.
4649         (built-program-cmd): Use it here to properly build a colon
4650         separated library path.
4652 Mon Oct  7 22:11:55 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4654         * crypt/md5-crypt.c (md5_crypt_r): Add missing parens around &
4655         within comparison.  Fix comments.
4656         (md5_crypt): Fix comment.
4658 Tue Oct  8 05:10:49 1996  Ulrich Drepper  <drepper@cygnus.com>
4660         * sysdeps/unix/sysv/linux/errnos.h: Only include <linux/errnos.h>
4661         when _ERRNO_H is defined.
4662         [!_ERRNO_H && __need_Emath]: Define value for EDOM and ERANGE.
4663         Should there ever be a Linux port where the numeric values are
4664         not 33 and 34 this file must change.
4666 Mon Oct  7 13:54:04 1996  Ulrich Drepper  <drepper@cygnus.com>
4668         * libio/iofgets.c (_IO_fgets): Use _IO_flockfile instead of
4669         __flockfile.
4671 Mon Oct  7 11:01:45 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
4673         * string/tst-strlen.c (main): Provide prototype.
4674         * malloc/mallocbug.c: Likewise.
4675         * io/test-utime.c: Likewise.
4677         * sysdeps/generic/crypt-entry.c: Correct typo.
4679 Mon Oct  7 13:42:20 1996  Ulrich Drepper  <drepper@cygnus.com>
4681         * elf/dl-open.c (_dl_open): Check against _dl_sysdep_start to
4682         test for libc.a.  Checking _DYNAMIC is of no worth here.
4683         Suggested by Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
4685         * nss/nss_files/files-parse.c: Define LOOKUP_NAME even if
4686         EXTERN_PARSER is defined.
4688 Sat Oct  5 17:05:36 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
4690         * Rules (dep-dummy-lib): Correct prototype for __dummy__.
4692         * crypt/md5-crypt.c: Fix typos in comments.
4694         * gmon/gmon.c: Provide prototypes.
4695         * db/makedb.c: Likewise.
4696         * locale/programs/xmalloc.c: Likewise.
4697         * stdio-common/bug11.c (main): Likewise.
4698         * stdio-common/bug7.c (main): Likewise.
4699         * stdio-common/bug8.c (main): Likewise.
4700         * stdio-common/bug9.c (main): Likewise.
4701         * stdio-common/scanf1.c (main): Likewise.
4702         * stdio-common/scanf2.c (main): Likewise.
4703         * stdio-common/scanf5.c (main): Likewise.
4704         * stdio-common/scanf6.c (main): Likewise.
4705         * stdio-common/scanf7.c (main): Likewise.
4706         * stdio-common/scanf8.c (main): Likewise.
4707         * stdio-common/temptest.c (main): Likewise.
4708         * stdio-common/test-fwrite.c (main): Likewise.
4709         * stdio-common/tst-printf.c: Likewise.
4710         * stdio-common/tstdiomisc.c: Likewise.
4711         * stdio-common/tstgetln.c (main): Likewise.
4712         * stdlib/testmb.c (main): Likewise.
4714         * stdio-common/scanf4.c (main): Correct prototype, remove unused
4715         variable n.
4717         * stdio-common/scanf3.c (main): Correct prototype, change
4718         declaration of s to reduce warnings.
4719         * stdio-common/bug10.c (main): Likewise.
4721         * stdio-common/tfformat.c: Provide prototype, remove unused
4722         reference to dump_stats, add braces in sprint_doubles.
4723         * stdio-common/tiformat.c: Likewise.
4725         * stdio-common/test_rdwr.c (main): Parameter `where' is long in
4726         printf call.
4728 Mon Oct  7 14:04:26 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
4730         * sysdeps/unix/sysv/linux/sys/soundcard.h: Fix typo.
4732         * shadow/putspent.c: Don't write colon after flag field.
4734         * sysdeps/unix/sysv/linux/net/if_ppp.h: New file.  Wrapper around
4735         kernel header.
4736         * sysdeps/unix/sysv/linux/net/ppp-comp.h: Likewise.
4737         * sysdeps/unix/sysv/linux/net/ppp_defs.h: Likewise.
4738         * sysdeps/unix/sysv/linux/Dist: Mention new files.
4740 Mon Oct  7 00:58:19 1996  Ulrich Drepper  <drepper@cygnus.com>
4742         * sysdeps/i386/i586/strchr.S: Correct handling of first bytes to
4743         get pointer aligned.  Reported by Matthias Urlichs <smurf@noris.de>.
4745         * sysdeps/posix/euidaccess.c [_LIBC]: Avoid calling get?id functions
4746         by using __libc_enable_secure variable.
4748 Tue Oct  8 13:58:31 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
4750         * hurd/ports-get.c (_hurd_ports_get): If the requested port is
4751         null, don't attempt mach_port_mod_refs.
4753 Mon Oct  7 14:51:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
4755         * sysdeps/mach/hurd/pipestream.c: New file to avoid use of
4756         sysdeps/unix/pipestream.c. 
4758         * sysdeps/mach/hurd/readdir_r.c: New file, guts copied entirely
4759         from sysdeps/mach/hurd/readdir.c.
4761         * stdio/freopen.c: Complete de-ansideclification.
4762         * stdio/fgets.c (fgets): Likewise.
4763         * stdio/getdelim.c (__getdelim): Likewise.
4764         * sysdeps/posix/pipestream.c (readdecl, writedecl, seekdecl,
4765         popen):
4766         Likewise. 
4767         * sysdeps/unix/bsd/tcflow.c (tcflow): Likewise.
4768         * sysdeps/unix/bsd/tcflush.c (tcflush): Likewise.
4770         * sysdeps/mach/hurd/wait4.c (__wait4): Allow a null value for
4771         STAT_LOC without error.
4773 Sun Oct  6 02:05:52 1996  Ulrich Drepper  <drepper@cygnus.com>
4775         * posix/getopt.c: Add casts to prevent warnings.
4776         * posix/regex.c: Likewise.
4778         * math/Makefile (long-m-routines, long-m-yes): Define to correct
4779         values to make `long double' functions available.
4780         (distribute): Add $(long-m-yes:=.c).
4782         * sysdeps/libm-i387/s_copysignl.S: Correct loading of return value.
4783         Use long double instruction.
4785         * sysdeps/libm-ieee754/e_atanhl.c (huge): Correct constant.
4786         * sysdeps/libm-ieee754/e_asinhl.c: Likewise.
4787         * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
4789         * sysdeps/libm-ieee754/e_coshl.c: New file.
4791         * sysdeps/libm-ieee754/s_asinh.c [!NO_LONG_DOUBLE]: Define names
4792         for `long double' version as alias.
4793         * sysdeps/libm-ieee754/s_atan.c: Likewise.
4794         * sysdeps/libm-ieee754/s_cbrt.c: Likewise.
4795         * sysdeps/libm-ieee754/s_ceil.c: Likewise.
4796         * sysdeps/libm-ieee754/s_copysign.c: Likewise.
4797         * sysdeps/libm-ieee754/s_cos.c: Likewise.
4798         * sysdeps/libm-ieee754/s_erf.c: Likewise.
4799         * sysdeps/libm-ieee754/s_expm1.c: Likewise.
4800         * sysdeps/libm-ieee754/s_fabs.c: Likewise.
4801         * sysdeps/libm-ieee754/s_finite.c: Likewise.
4802         * sysdeps/libm-ieee754/s_floor.c: Likewise.
4803         * sysdeps/libm-ieee754/s_frexp.c: Likewise.
4804         * sysdeps/libm-ieee754/s_ilogb.c: Likewise.
4805         * sysdeps/libm-ieee754/s_ldexp.c: Likewise.
4806         * sysdeps/libm-ieee754/s_log1p.c: Likewise.
4807         * sysdeps/libm-ieee754/s_logb.c: Likewise.
4808         * sysdeps/libm-ieee754/s_modf.c: Likewise.
4809         * sysdeps/libm-ieee754/s_nextafter.c: Likewise.
4810         * sysdeps/libm-ieee754/s_rint.c: Likewise.
4811         * sysdeps/libm-ieee754/s_scalbn.c: Likewise.
4812         * sysdeps/libm-ieee754/s_significand.c: Likewise.
4813         * sysdeps/libm-ieee754/s_sin.c: Likewise.
4814         * sysdeps/libm-ieee754/s_tan.c: Likewise.
4815         * sysdeps/libm-ieee754/s_tanh.c: Likewise.
4816         * sysdeps/libm-ieee754/w_acos.c: Likewise.
4817         * sysdeps/libm-ieee754/w_acosh.c: Likewise.
4818         * sysdeps/libm-ieee754/w_sin.c: Likewise.
4819         * sysdeps/libm-ieee754/w_atan2.c: Likewise.
4820         * sysdeps/libm-ieee754/w_atanh.c: Likewise.
4821         * sysdeps/libm-ieee754/w_cabs.c: Likewise.
4822         * sysdeps/libm-ieee754/w_cosh.c: Likewise.
4823         * sysdeps/libm-ieee754/w_drem.c: Likewise.
4824         * sysdeps/libm-ieee754/w_exp.c: Likewise.
4825         * sysdeps/libm-ieee754/w_fmod.c: Likewise.
4826         * sysdeps/libm-ieee754/w_gamma.c: Likewise.
4827         * sysdeps/libm-ieee754/w_gamma_r.c: Likewise.
4828         * sysdeps/libm-ieee754/w_hypot.c: Likewise.
4829         * sysdeps/libm-ieee754/w_j0.c: Likewise.
4830         * sysdeps/libm-ieee754/w_j1.c: Likewise.
4831         * sysdeps/libm-ieee754/w_jn.c: Likewise.
4832         * sysdeps/libm-ieee754/w_lgamma.c: Likewise.
4833         * sysdeps/libm-ieee754/w_lgamma_r.c: Likewise.
4834         * sysdeps/libm-ieee754/w_log.c: Likewise.
4835         * sysdeps/libm-ieee754/w_log10.c: Likewise.
4836         * sysdeps/libm-ieee754/w_pow.c: Likewise.
4837         * sysdeps/libm-ieee754/w_remainder.c: Likewise.
4838         * sysdeps/libm-ieee754/w_scalb.c: Likewise.
4839         * sysdeps/libm-ieee754/w_sinh.c: Likewise.
4840         * sysdeps/libm-ieee754/w_sqrt.c: Likewise.
4842         Stub files for missing long double math functions.
4843         * sysdeps/stub/e_acoshl.c: New file.
4844         * sysdeps/stub/e_hypotl.c: New file.
4845         * sysdeps/stub/e_j0l.c: New file.
4846         * sysdeps/stub/e_j1l.c: New file.
4847         * sysdeps/stub/e_jnl.c: New file.
4848         * sysdeps/stub/e_lgammal_r.c: New file.
4849         * sysdeps/stub/e_powl.c: New file.
4850         * sysdeps/stub/e_rem_pio2l.c: New file.
4851         * sysdeps/stub/e_sinhl.c: New file.
4852         * sysdeps/stub/k_cosl.c: New file.
4853         * sysdeps/stub/k_rem_pio2l.c: New file.
4854         * sysdeps/stub/k_sinl.c: New file.
4855         * sysdeps/stub/k_tanl.c: New file.
4856         * sysdeps/stub/s_erfl.c: New file.
4857         * sysdeps/stub/s_expm1l.c: New file.
4859         * sysdeps/i386/__longjmp.S: Use PSEUDO_END macro to provide
4860         .size directive.
4861         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4862         * sysdeps/i386/bsd-setjmp.S: Likewise.
4863         * sysdeps/i386/memchr.S: Likewise.
4864         * sysdeps/i386/memcmp.S: Likewise.
4865         * sysdeps/i386/setjmp.S: Likewise.
4866         * sysdeps/i386/stpcpy.S: Likewise.
4867         * sysdeps/i386/stpncpy.S: Likewise.
4868         * sysdeps/i386/strchr.S: Likewise.
4869         * sysdeps/i386/strcspn.S: Likewise.
4870         * sysdeps/i386/strpbrk.S: Likewise.
4871         * sysdeps/i386/strrchr.S: Likewise.
4872         * sysdeps/i386/strspn.S: Likewise.
4873         * sysdeps/i386/strtok.S: Likewise.
4874         * sysdeps/i386/i486/strcat.S: Likewise.
4875         * sysdeps/i386/i486/strlen.S: Likewise.
4876         * sysdeps/i386/i586/memset.S: Likewise.
4877         * sysdeps/i386/i586/strchr.S: Likewise.
4878         * sysdeps/i386/i586/strlen.S: Likewise.
4879         * sysdeps/libm-i387/e_acos.S: Likewise.
4880         * sysdeps/libm-i387/e_acosl.S: Likewise.
4881         * sysdeps/libm-i387/e_asin.S: Likewise.
4882         * sysdeps/libm-i387/e_asinl.S: Likewise.
4883         * sysdeps/libm-i387/e_atan2.S: Likewise.
4884         * sysdeps/libm-i387/e_atan2l.S: Likewise.
4885         * sysdeps/libm-i387/e_exp.S: Likewise.
4886         * sysdeps/libm-i387/e_expl.S: Likewise.
4887         * sysdeps/libm-i387/e_fmod.S: Likewise.
4888         * sysdeps/libm-i387/e_fmodl.S: Likewise.
4889         * sysdeps/libm-i387/e_log.S: Likewise.
4890         * sysdeps/libm-i387/e_log10.S: Likewise.
4891         * sysdeps/libm-i387/e_log10l.S: Likewise.
4892         * sysdeps/libm-i387/e_logl.S: Likewise.
4893         * sysdeps/libm-i387/e_remainder.S: Likewise.
4894         * sysdeps/libm-i387/e_remainderf.S: Likewise.
4895         * sysdeps/libm-i387/e_remainderl.S: Likewise.
4896         * sysdeps/libm-i387/e_scalb.S: Likewise.
4897         * sysdeps/libm-i387/e_scalbl.S: Likewise.
4898         * sysdeps/libm-i387/e_sqrt.S: Likewise.
4899         * sysdeps/libm-i387/e_sqrtf.S: Likewise.
4900         * sysdeps/libm-i387/e_sqrtl.S: Likewise.
4901         * sysdeps/libm-i387/s_atan.S: Likewise.
4902         * sysdeps/libm-i387/s_atanf.S: Likewise.
4903         * sysdeps/libm-i387/s_atanl.S: Likewise.
4904         * sysdeps/libm-i387/s_ceil.S: Likewise.
4905         * sysdeps/libm-i387/s_ceilf.S: Likewise.
4906         * sysdeps/libm-i387/s_ceill.S: Likewise.
4907         * sysdeps/libm-i387/s_copysign.S: Likewise.
4908         * sysdeps/libm-i387/s_copysignf.S: Likewise.
4909         * sysdeps/libm-i387/s_copysignl.S: Likewise.
4910         * sysdeps/libm-i387/s_cos.S: Likewise.
4911         * sysdeps/libm-i387/s_cosf.S: Likewise.
4912         * sysdeps/libm-i387/s_cosl.S: Likewise.
4913         * sysdeps/libm-i387/s_finite.S: Likewise.
4914         * sysdeps/libm-i387/s_finitef.S: Likewise.
4915         * sysdeps/libm-i387/s_finitel.S: Likewise.
4916         * sysdeps/libm-i387/s_floor.S: Likewise.
4917         * sysdeps/libm-i387/s_floorf.S: Likewise.
4918         * sysdeps/libm-i387/s_floorl.S: Likewise.
4919         * sysdeps/libm-i387/s_ilogb.S: Likewise.
4920         * sysdeps/libm-i387/s_ilogbf.S: Likewise.
4921         * sysdeps/libm-i387/s_ilogbl.S: Likewise.
4922         * sysdeps/libm-i387/s_log1p.S: Likewise.
4923         * sysdeps/libm-i387/s_log1pf.S: Likewise.
4924         * sysdeps/libm-i387/s_log1pl.S: Likewise.
4925         * sysdeps/libm-i387/s_logb.S: Likewise.
4926         * sysdeps/libm-i387/s_logbf.S: Likewise.
4927         * sysdeps/libm-i387/s_logbl.S: Likewise.
4928         * sysdeps/libm-i387/s_rint.S: Likewise.
4929         * sysdeps/libm-i387/s_rintf.S: Likewise.
4930         * sysdeps/libm-i387/s_rintl.S: Likewise.
4931         * sysdeps/libm-i387/s_scalbn.S: Likewise.
4932         * sysdeps/libm-i387/s_scalbnf.S: Likewise.
4933         * sysdeps/libm-i387/s_scalbnl.S: Likewise.
4934         * sysdeps/libm-i387/s_significand.S: Likewise.
4935         * sysdeps/libm-i387/s_significandf.S: Likewise.
4936         * sysdeps/libm-i387/s_significandl.S: Likewise.
4937         * sysdeps/libm-i387/s_sin.S: Likewise.
4938         * sysdeps/libm-i387/s_sinf.S: Likewise.
4939         * sysdeps/libm-i387/s_sinl.S: Likewise.
4940         * sysdeps/libm-i387/s_tan.S: Likewise.
4941         * sysdeps/libm-i387/s_tanf.S: Likewise.
4942         * sysdeps/libm-i387/s_tanl.S: Likewise.
4944         * sysdeps/unix/sysv/linux/i386/clone.S: Add .size directive.
4945         * sysdeps/unix/sysv/linux/i386/mmap.S. Likewise.
4946         * sysdeps/unix/sysv/linux/i386/socket.S. Likewise.
4947         * sysdeps/unix/sysv/linux/i386/sysdep.S. More compact .size line.
4949         * sysdeps/i386/sysdep.h (ASM_SIZE_DIRECTIVE): New macro.  Used
4950         to provide .size directive on ELF systems.
4952         * sysdeps/unix/sysv/linux/i386/profil-counter.h: Include
4953         <sigcontext.h> and rename parameter type to sigcontext.
4954         * sysdeps/unix/sysv/linux/i386/sigcontext.h New file.
4956         * sysdeps/unix/sysv/linux/i386/syscall.S: From Linux 2.1 on
4957         negative values might occur as positive results.  Test against
4958         -125 to decide for error or not.
4959         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise for system calls.
4961 Thu Oct  3 21:07:58 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4963         * elf/dl-open.c: Use _DYNAMIC instead of _dl_start to decide
4964         whether this is a statically linked program.  The latter is now
4965         always defined.
4967 Fri Oct  4 17:30:22 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
4969         * hurd/hurdsig.c (signal_allowed): Add SIGWINCH to the list that
4970         controlling terminals are allowed to send.
4972         * hurd/alloc-fd.c (_hurd_alloc_fd): If SIZE is so big that the
4973         table is larger than the allowable address size, then return
4974         failure. 
4976 Fri Oct  4 02:08:10 1996  Bang Jun-Young  <bangjy@nownuri.nowcom.co.kr>
4978         * po/ko.po: Update.
4980 Fri Oct  4 02:07:46 1996  Michel Robitaille  <robitail@IRO.UMontreal.CA>
4982         * po/fr.po: New file.
4984 Fri Oct  4 05:04:52 1996  Ulrich Drepper  <drepper@cygnus.com>
4986         * sysdeps/unix/sysv/linux/i386/sigcontext.h: New file.
4988         Add support for MD5 crypt replacement.
4989         * Makefile (subdirs): Add crypt.
4990         * shlib-versions: Add entry for libcrypt.
4991         * crypt/md5-crypt.c: New file.
4992         * crypt/md5.c: New file.
4993         * crypt/md5.h: New file.
4994         * sysdeps/generic/crypt-entry.c: New file.
4995         * sysdeps/generic/crypt.h: New file.
4997 Thu Oct  3 20:53:23 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
4999         * dirent/tst-seekdir.c: Provide correct prototypes.
5000         * io/test-utime.c: Likewise.
5001         * malloc/mallocbug.c: Likewise.
5002         * posix/testfnm.c: Likewise.
5003         * stdio-common/xbug.c: Likewise.
5004         * sysdeps/posix/cuserid.c: Likewise.
5006 Wed Oct  2 13:33:48 1996  Richard Henderson  <rth@tamu.edu>
5008         Provide optimized string functions for Alpha processors.
5009         * sysdeps/alpha/bzero.S: New file.
5010         * sysdeps/alpha/memset.S: New file.
5011         * sysdeps/alpha/stpcpy.S: New file.
5012         * sysdeps/alpha/stpncpy.S: New file.
5013         * sysdeps/alpha/strcat.S: New file.
5014         * sysdeps/alpha/strchr.S: New file.
5015         * sysdeps/alpha/strcpy.S: New file.
5016         * sysdeps/alpha/strncat.S: New file.
5017         * sysdeps/alpha/strncpy.S: New file.
5018         * sysdeps/alpha/strrchr.S: New file.
5019         * sysdeps/alpha/stxcpy.S: New file.
5020         * sysdeps/alpha/stxncpy.S: New file.
5022         * sysdeps/alpha/Makefile [$(sudir)==string]: Add stxcpy and
5023         stxncpy to sysdep_routines.
5024         Minor correction.
5026 Thu Oct  3 13:33:31 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
5028         * sysdeps/generic/gnu/types.h: Added __loff_t.
5029         Don't declare key_t here.
5031         * hurd/alloc-fd.c (_hurd_alloc_fd): If realloc fails, bother to
5032         set errno (to ENOMEM).
5034 Wed Oct  2 13:41:48 1996  Ulrich Drepper  <drepper@cygnus.com>
5036         * sysdeps/generic/strtok.c: Don't set stored pointer to NULL when
5037         nothing is found.  This guarantees all subsequent calls behave
5038         the same.
5039         * sysdeps/generic/strtok_r.c: Likewise.
5041 Mon Sep 30 22:27:36 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5043         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Don't declare
5044         `i' as const.
5046 Mon Sep 30 22:38:29 1996  Richard Henderson  <rth@tamu.edu>
5048         * sysdeps/generic/strtok.c: When we hit EOS, don't set olds to
5049         NULL immediately; we're going to get called one more time.
5050         * sysdeps/generic/strtok_r.c: Likewise.
5052 Tue Oct  1 09:12:21 1996  Ulrich Drepper  <drepper@cygnus.com>
5054         * locale/programs/ld-time.c: Always write some bytes at the end of
5055         the file even if no `era's are specified.
5057         * stdio-common/tmpname.c (tmpbuf): Don't define as array of
5058         pointers.
5060 Tue Oct  1 01:43:11 1996  Ulrich Drepper  <drepper@cygnus.com>
5062         * libio/iofclose.c: Move unlocking to right position.
5064 Mon Sep 30 03:08:34 1996  Richard Henderson  <rth@tamu.edu>
5066         * misc/Makefile: Kill force-wrapper.
5067         * misc/force-wrapper.c: Delete.
5069         * elf/eval.c: Add <string.h>.
5071         * gmon/sys/gmon_out.h: Nonsense like `char foo[sizeof(char*)]'
5072         followed by `bcopy(&ptr, &foo, sizeof(foo))' helps portability
5073         and binary compatibility not at all.  Better to do `char *foo'
5074         followed by `foo = ptr' as it is much cleaner.
5075         (struct gmon_hdr): Fix version.
5076         (struct gmon_hist_hdr): Fix low_pc, high_pc, hist_size, prof_rate.
5077         (struct gmon_cg_arc_record): Fix from_pc, self_pc, count.
5078         * gmon/gmon.c: De-ansidecl-ify.
5079         (write_hist): De-bcopy-fy.
5080         (write_call_graph): Likewise.
5082         * gmon/mcount.c: Assume _MCOUNT_DECL does the entire declaration.
5083         * sysdeps/alpha/machine-gmon.h: Update _MCOUNT_DECL.
5084         * sysdeps/generic/machine-gmon.h: Likewise.
5086         * resolv/netdb.h: Add __set_h_errno to mimic __set_errno.
5087         * nss/getXXent_r.c: Use __set_h_errno to set h_errno in all funcs.
5088         * nss/nss_dns/dns-network.c: Likewise.
5089         * resolv/getunamaddr.c: Likewise.  Also use __set_errno where needed.
5090         * resolv/getnetnamadr.c: Likewise.
5091         * resolv/res_debug.c: Likewise.
5092         * resolv/res_mkquery.c: Likewise.
5093         * resolv/res_query.c: Likewise.
5095         * libio/clearerr_u.c: It's not necessary to define __ protected
5096         function so don't do it.
5097         * libio/feof_u.c, libio/ferror_u.c, libio/fputc_u.c,
5098           libio/getc_u.c, libio/getchar_u.c, libio/iofflush_u.c: Likewise.
5100         * libio/fgetc.c: Avoid a warning by casting _IO_funlockfile for
5101         the cleanup registrar.
5102         * libio/fputc.c, libio/freopen.c, libio/fseek.c, libio/getc.c,
5103           libio/getchar.c, libio/iofclose.c, libio/iofflush.c,
5104           libio/iofgetpos.c, libio/iofgets.c, libio/iofputs.c,
5105           libio/iofread.c, libio/iofsetpos.c, libio/ioftell.c,
5106           libio/iofwrite.c, libio/iogetdelim.c, libio/iogets.c,
5107           libio/ioputs.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
5108           libio/ioungetc.c, libio/putc.c, libio/putchar.c, libio/rewind.c:
5109         Likewise.
5111         * locale/programs/ld-ctype.c: Include <alloca.h>.
5113         * login/login_tty.c: Get login_tty prototype from <utmp.h>.
5115         * posix/sys/types.h: Change #defines to typedefs.  This is looking
5116         forward to more comprehensive namespace cleanups for C++.
5117         * posix/unistd.h: Likewise for ssize_t.
5119         * pwd/getpw.c: Prototype and rename getpw -> __getpw and add a
5120         weak alias.
5122         * resolv/base64.c: Don't do `for (NULL; ...)' as it causes
5123         `statement with no effect' warnings.
5124         * resolv/inet_neta.c: Include <string.h> for strlen.
5126         * stdio-common/getline.c: Undef ssize_t before libio redefinition.
5127         * stdio-common/tstgetln.c: Same.  De-ansidecl-ify.
5128         * stdio-common/vfprintf.c: Same for va_list.
5129         * stdio-common/vfscanf.c: Same.
5130         * stdio-common/reg-printf.c: Prototype the __ function.
5131         * stdio-common/scanf.c [USE_IN_LIBIO]: Include <libioP.h> for
5132         _IO_vscanf declaration.
5134         * string/tester.c: Tsk, tsk.  Don't cast pointers to int,
5135         but to unsigned long for the health of 64-bit systems.
5137         * sunrpc/svc_udp.c: Define MAX only if we don't have it yet.
5138         Many system's <sys/param.h> pulls this in.
5140         * sysdeps/generic/dl-cache.c: Kill the bottom half of the
5141         patch doubled file.
5143         * sysdeps/generic/pty.c (forkpty): Get login_tty decl from <utmp.h>
5144         instead of defining it locally.
5146         * sysdeps/posix/sigvec.c: Prototype wrapper_handler and convert_mask.
5147         * sysdeps/stub/chflags.c: Prototype chflags.
5148         * sysdeps/stub/fchflags.c: Prototype fchflags.
5149         * sysdeps/stub/sstk.c: Prototype sstk.
5151         * sysdeps/unix/alpha/sysdep.S:  Add strong alias from errno
5152         variable to __errno.  Update __syscall_error to store to both
5153         the global and per-thread variables.
5155         * sysdeps/unix/sysv/linux/init-first.c: Change include of
5156         init-first.h from "" to <> as "" does not search the include path.
5157         Prototype _dl_start.
5159 Sun Sep 29 14:41:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5161         * sysdeps/unix/Makefile ($(common-objpfx)s-proto.d): Make it a
5162         pattern rule to get the right stem.
5164 Sat Sep 28 01:30:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5166         * Makefile ($(objpfx)version-info.h): Fix typo in previous change.
5168 Sat Sep 28 00:44:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5170         * sysdeps/posix/euidaccess.c (__set_errno): Fix typo.
5172 Sat Sep 28 00:40:38 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5174         * malloc/free.c (_free_internal): Don't call free recursively, use
5175         the internal functions instead.
5177 Sat Sep 28 00:23:20 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5179         * sysdeps/posix/tempname.c (__stdio_gen_tempname) [USE_IN_LIBIO &&
5180         _IO_MTSAFE_IO]: Allocate and initialize the file lock.
5182 Fri Sep 27 23:58:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5184         * catgets/gencat.c (main): Print version information on stdout,
5185         not stderr.
5186         * db/makedb.c: Likewise.
5187         * locale/programs/locale.c: Likewise.
5188         * locale/programs/localedef.c: Likewise.
5190 Mon Sep 30 00:14:26 1996  Ulrich Drepper  <drepper@cygnus.com>
5192         Add implementation of netgroup.
5193         * inet/Makefile (distributes): Add netgroup.h.
5194         (routines): Add getnetgrent.c and getnetgrent_r.c.
5195         * inet/getnetgrent.c: New file.
5196         * inet/getnetgrent_r.c: New file.
5197         * inet/netgroup.h: New file.
5198         * netgroup.h: New file.
5199         * nsswitch.h: New file.
5200         * nss/Makefile (databases): Add getgrp.
5201         * nss/databases.def: Add netgroup.
5202         * nss/db-Makefile: Add rules for netgroup.
5203         * nss/netgrp-lookup.c: New file.
5204         * nss/nss.h: Add new status value NSS_STATUS_RETURN which will
5205         always return without a check of the transition table.
5206         * nss/nsswitch.h (struct service_user): Extend actions array to
5207         five elements.
5208         * nss/nsswitch.c (__nss_next): Allow NSS_STATUS_RETURN as legal
5209         status value.
5210         (nss_parse_service_list): Initialize action for NSS_STATUS_RETURN
5211         to NSS_ACTION_RETURN.
5212         * nss/nss_db/db-netgrp.c: New file.
5213         * nss/nss_files/files-netgrp.c: New file.
5214         * nss/nsswitch.conf: Add entry for netgroup.
5215         * resolv/netdb.h: Add prototypes for netgroup functions.
5217         * nss/nss_db/db-XXX.c: Use `enum nss_status' type when status
5218         value is used.
5220 Sun Sep 29 12:55:58 1996  Ulrich Drepper  <drepper@cygnus.com>
5222         * sysdeps/unix/sysv/linux/syscalls.list: Change function name for
5223         _llseek to _llseek (not llseek).
5224         Reported by Matthias Urlichs <smurf@smurf.noris.de>.
5226 Sun Sep 29 05:34:32 1996  Ulrich Drepper  <drepper@cygnus.com>
5228         * inet/rcmd.c: Remove definition of MIN.
5230 Sat Sep 28 14:22:51 1996  Ulrich Drepper  <drepper@cygnus.com>
5232         * dirent/readdir_r.c: Removed.  We indeed need a real implementation.
5233         * sysdeps/unix/readdir_r.c: New file.
5234         * sysdeps/unix/readdir.c: Remove check for correct parameter
5235         values.  Let them simply die.
5236         * manual/filesys.texi: Document readdir_r.
5238         * sysdeps/gnu/errlist.awk: Define _sys_errlist as `const char* const'.
5239         Proposed by Per Abrahamsen <abraham@dina.kvl.dk>.
5241 Sat Sep 28 03:02:49 1996  Ulrich Drepper  <drepper@cygnus.com>
5243         * dirent/Makefile (routines): Add readdir_r.
5244         * dirent/readdir_r.c: New file.  Wrapper around readdir.c.
5245         * dirent/dirent.h: Add prototype for readdir_r.
5247         * misc/hsearch_r.c (ENTRY): Make field `used' of type `unsigned int'
5248         to prevent warnings.
5250         * sysdeps/unix/sysv/linux/getsysstats.c (get_proc_path):
5251         Initialize `result'.
5253 Sat Sep 28 01:16:42 1996  Ulrich Drepper  <drepper@cygnus.com>
5255         * sysdeps/generic/strsep.c: Rename to __strsep and make strsep
5256         weak alias.
5257         * string/string.h: Add prototype for __strsep.
5258         * misc/mntent_r.c: Use __strsep instead of strsep to keep
5259         namespace clean.
5261         * sysdeps/stub/nanosleep.c: Rename to __libc_nanosleep and make
5262         __nanosleep and nanosleep weak aliases.
5263         * sysdeps/unix/sysv/linux/syscalls.list: Add __nanosleep as weak
5264         alias.
5265         * sysdeps/unix/sysv/linux/sleep.c: Call __nanosleep instead of
5266         nanosleep to keep namespace clean.
5268         * sysdeps/posix/ttyname.c (ttyname): Add cast to prevent warning.
5269         * sysdeps/posix/ttyname_r.c (ttyname_r): Likewise.
5270         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
5272         * sysdeps/unix/nlist.c: Use ISO C definition since we don't always
5273         have prototype.
5275         * login/Makefile (headers): Add pty.h.
5276         * login/pty.h: New file.
5277         * sysdeps/generic/pty.h: Include <pty.h>.
5278         * login/pututline_r.c: Add cast to prevent warning.
5280         * gmon/gmon.c: Add prototype for __profile_frequency.
5281         (monstartup): Add cast to prevent warning.
5282         * sysdeps/generic/prof-freq.c: Change to use ISO C style definition.
5284         * locale/programs/ld-time.c (time_output): Write `era' information
5285         in correct order.
5287 Sat Sep 28 00:11:08 1996  Ulrich Drepper  <drepper@cygnus.com>
5289         * sysdeps/unix/sysv/linux/syscalls.list: Add weak alias
5290         `adjtimex'.
5291         Set caller for mlock, mlockall, mremap, munlock, and munlockall
5292         to EXTRA.
5293         Reported by Matthias Urlichs <smurf@smurf.noris.de>.
5295 1996-09-27  Paul Eggert  <eggert@twinsun.com>
5297         * strftime.c (strftime): Output incomplete formats like %E
5298         at end of string.
5300 1996-09-27  Paul Eggert  <eggert@twinsun.com>
5302         * strftime.c (strftime): Add support for %EC and %Ey.
5303         Fix support for %EY.  This uses the new _nl_get_era_entry function.
5305 Fri Sep 27 14:12:27 1996  Ulrich Drepper  <drepper@cygnus.com>
5307         Security related patch by Elliot Lee <sopwith@redhat.com> and
5308         David Holland <dholland@eecs.harvard.edu>.
5310         * inet/rexec.c (rexec): Increase size of `num' array from 8 to 32.
5311         * inet/ruserpass.c (ruserpass): Don't allow $HOME envvar to not exist.
5313         * sysdeps/generic/getenv.c (__secure_getenv): New function.  Return
5314         NULL when programs runs with SUID or SGID enabled.
5315         * sysdeps/stub/getenv.c: Make __secure_getenv an alias of getenv.
5316         * stdlib/stdlib.h: Add prototype for __secure_getenv.
5318         * locale/setlocale.c: Use __secure_getenv.
5319         * resolv/res_init.c: Likewise.
5320         * resolv/res_query.c: Likewise.
5321         * inet/ruserpass.c: Likewise.
5322         * sysdeps/posix/tempname.c: Likewise.
5323         * malloc/mtrace.c: Likewise.
5324         * catgets/catgets.c: Likewise.
5326         Make temporary file handling functions reentrant.
5328         * stdio-common/tmpnam.c: Rewrite to have own buffer to write
5329         result to.  The called __stdio_gen_tempname function must be
5330         thread safe.
5331         * stdio-common/tmpnam_r.c: New file.
5332         * stdio/stdio.h: Add prototype for `tmpnam_r'.
5333         Change prototype for __stdio_gen_tempname.
5334         * stdio/libio.h: Likewise.
5335         * sysdeps/posix/tempname.c: Add new parameters and use them instead
5336         of static buffer.
5337         Don't reset `indeces' when PID changed between calls.
5338         Don't fail for long running programs when index counter once
5339         reached the limit.
5340         * sysdeps/stub/tempname.c: Likewise.
5341         * stdio-common/tempnam.c: Provide local buffer as extra argument
5342         to __stdio_gen_tempname.  This makes this function reentrant.
5343         * stdio-common/tmpfile.c: Likewise.
5344         * stdio-common/temptest.c: Provide extra argument to
5345         __stdio_gen_tempname.
5346         * manual/filesys.texi: Describe tmpnam_r and add comments about
5347         reentrancy of the functions.
5349         * inet/rcmd.c: Fixed address length handling.
5351         * sysdeps/posix/mk-stdiolim.c: Count final \0 byte in L_tmpnam value.
5353         * time/strftime.c: Remove unused variables alt_digits and
5354         end_alt_digits.
5356         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Correct prototype names
5357         for get_nprocs and get_nprocs_conf.
5358         * sysdeps/generic/sys/sysinfo.h: Likewise.
5360         * stdlib/test-canon.c: Finally do the right fix.
5362         * misc/Makefile: Only compile force-wrapper when compiling
5363         reentrant libc.
5365 Fri Sep 27 03:49:56 1996  Ulrich Drepper  <drepper@cygnus.com>
5367         Add support for cancelable system calls.
5369         * csu/initfini.c: Make in crti.o reference to symbol
5370         __libc_force_cancel_wrapper when compiling reentrant version.
5371         * misc/Makefile (routines): Add force-wrapper.
5372         * misc/force-wrapper.c: New file.
5374         * posix/system.c: Rename function to __libc_system and make system
5375         a weak alias.
5376         * sysdeps/stub/system.c: Likewise.
5377         * posix/wait.c: Rename function to __libc_wait and make __wait a
5378         weak alias.  De-ANSI-fy.
5379         * sysdeps/standalone/read.c: Rename function to __libc_read and
5380         make __read a weak alias.
5381         * sysdeps/stub/read.c: Likewise.
5382         * sysdeps/standalone/write.c: Rename function to __libc_write and
5383         make __write a weak alias.
5384         * sysdeps/stub/write.c: Likewise.
5385         * sysdeps/stub/tcdrain.c: Rename function to __libc_tcdrain and
5386         make tcdrain a weak alias.
5387         * sysdeps/unix/bsd/tcdrain.c: Likewise.
5388         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Likewise.
5389         * sysdeps/unix/sysv/tcdrain.c: Likewise.
5390         * sysdeps/unix/sysv/linux/tcdrain.c: Likewise.
5391         * sysdeps/unix/bsd/bsd4.4/wait.c: Rename function to __libc_wait
5392         and make __wait a weak alias.
5393         * sysdeps/stub/waitpid.c: Rename function to __libc_waitpid and
5394         make __waitpid a weak alias.
5395         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Likewise.
5396         * sysdeps/unix/sysv/linux/waitpid.c: Likewise.
5397         * sysdeps/unix/sysv/sysv4/waitpid.c: Likewise.
5398         * sysdeps/unix/common/pause.c: Rename function to __libc_pause
5399         and make pause a weak alias.  De-ANSI-fy.
5401         * sysdeps/unix/syscalls.list: Change name for close, fcntl, fsync,
5402         lseek, open, read, and write to have __libc_ prefix and make old
5403         names a weak alias.
5404         * sysdeps/unix/mman/syscalls.list: Likewise for msync.
5405         * sysdeps/unix/sysv/linux/syscalls.list: Likewise for nanosleep.
5407         * io/creat.c: De-ANSI-fy.
5409         * sysdeps/unix/sysv/linux/syscalls.list: Add pause.
5411 Thu Sep 26 19:15:55 1996  Ulrich Drepper  <drepper@cygnus.com>
5413         * misc/mntent.h: Add MNTTYPE_* and MNTOPT_* macros.
5414         Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
5416 Thu Sep 26 14:40:10 1996  Ulrich Drepper  <drepper@cygnus.com>
5418         * sysdeps/posix/pathconf.c: Pass descriptor for just opened file
5419         to fpathconf.
5420         Reported by Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>.
5422 Thu Sep 26 04:02:43 1996  Ulrich Drepper  <drepper@cygnus.com>
5424         * locale/programs/locfile.c (write_locale_data): Allocate room
5425         even for file name for LC_MESSAGES locale.
5426         (locafile_read): `tok_era' must be handled as a string list.
5427         * locale/programs/ld-time.c: Finish correction of handling `era'.
5428         * locale/C-time.c (_nl_C_LC_TIME): Add initializer for new fields.
5429         * locale/categories.def: Add postload function for LC_TIME.
5430         * locale/setlocale.c: Make lock global and rename to
5431         __libc_setlocale_lock.
5432         * locale/localeinfo.h (struct era_entry): New type.  Used in strftime.
5433         Add prototypes for _nl_get_era_entry and _nl_get_alt_digit.
5434         * locale/lc-time.c (_nl_postload_time): New function.  Initialize
5435         lazy intialization.
5436         (_nl_get_era_entry): New function.  Return era entry which corresponds
5437         to given year.
5438         (_nl_get_alt_digit): New function.  Return string with alternate
5439         digit representation for given number.
5441         * time/strftime.c (strftime): Use _nl_get_alt_digit to get
5442         string representing alternate digit notation.
5444 Wed Sep 25 17:31:55 1996  Ulrich Drepper  <drepper@cygnus.com>
5446         * sysdeps/generic/waitstatus.h (union wait): Add w_status field.
5447         Reported by Hans Grobler <grobh@nolian.ee.sun.ac.za>.
5449         * elf/rtld.c (dl_main): Process LD_PRELOAD before loading
5450         ld.so.preload.  Suggested by David Engel <david@elo.ods.com>.
5452 Wed Sep 25 13:10:57 1996  Ulrich Drepper  <drepper@cygnus.com>
5454         * catgets/gencat.c (main): Change --version again because RMS wants
5455         the package name in parentheses.
5456         * db/makedb.c: Likewise.
5457         * locale/programs/locale.c: Likewise.
5458         * locale/programs/localedef.c: Likewise.
5460 Tue Sep 24 01:28:05 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5462         * Makefile ($(objpfx)sysd-dirs): Depend on Subdirs files, command
5463         rewritten.
5464         ($(objpfx)version-info.h): Depend on Banner files, command
5465         rewritten.
5467 Wed Sep 25 02:44:41 1996  Ulrich Drepper  <drepper@cygnus.com>
5469         * sysdeps/unix/sysv/linux/sleep.c: New file.  Based on nanosleep.
5471 Tue Sep 24 21:46:02 1996  Ulrich Drepper  <drepper@cygnus.com>
5473         * shadow/lckpwdf.c (PWD_LOCKFILE): Change to /etc/lock.pwd to be
5474         on the same device as the password file.
5475         * shadow/shadow.h (struct spwd): Change type of numeric fields
5476         to `long int' since there value are days, not seconds.
5477         * shadow/putspent.c: Change casts from time_t to `long int'.
5478         * shadow/sgetspent_r.c (LINE_READER): Likewise.
5480 Mon Sep 23 23:05:24 1996  Ulrich Drepper  <drepper@cygnus.com>
5482         * sysdeps/unix/sysv/linux/errnos.h: Define __set_errno to make
5483         sure the thread specific variable is set as well as the global
5484         variable.
5485         * sysdeps/mach/hurd/errnos.awk: Define macro for source code
5486         compatibility.
5487         * sysdeps/stub/errnos.h: Likewise.
5488         * sysdeps/unix/bsd/bsd4.4/errnos.h: Likewise.
5490         * shadow/putspent.c: Don't include <errno.h>.
5492         * dirent/scandir.c (scandir): Use __set_errno to set errno
5493         variable.
5494         * elf/dl-load.c (open_path): Likewise.
5495         * inet/rcmd.c (rcmd): Likewise.
5496         (rresvport): Likewise.
5497         * intl/dcgettext.c [!__set_errno]: Define __set_errno.
5498         (DCGETTEXT): Use __set_errno to set errno variable.
5499         * io/fts.c (fts_open): Likewise.
5500         (fts_close): Likewise.
5501         (fts_read): Likewise.
5502         (fts_set): Likewise.
5503         (fts_children): Likewise.
5504         (fts_build): Likewise.
5505         (fts_stat): Likewise.
5506         * io/ftw.c (ftw_dir): Likewise.
5507         (ftw): Likewise.
5508         * io/getwd.c (getwd): Likewise.
5509         * io/lockf.c (lockf): Likewise.
5510         * libio/libioP.h [EINVAL]: Use __set_errno to define MAYBE_SET_EINVAL.
5511         * libio/iofdopen.c (_IO_fdopen): Use MAYBE_SET_EINVAL to errno.
5512         * libio/iogetdelim.c (_IO_getdelim): Likewise.
5513         * libio/fileops.c (_IO_file_open): Use __set_errno to set errno
5514         variable.
5515         * libio/iofgetpos.c (_IO_fgetpos): Likewise.
5516         * libio/iofsetpos.c (_IO_fsetpos): Likewise.
5517         * libio/ioftell.c (_IO_ftell): Likewise.
5518         * locale/loadlocale.c (_nl_load_locale): Likewise.
5519         * locale/nl_langinfo.c (nl_langinfo): Likewise.
5520         * locale/setlocale.c (ERROR_RETURN): Likewise.
5521         * login/getutid_r (__getutid_r): Likewise.
5522         * login/getutline_r (__getutline_r): Likewise.
5523         * login/login.c (tty_name): Likewise.
5524         * login/oututline_r.c (__pututline_r): Likewise.
5525         * malloc/malloc.c (morecore): Likewise.
5526         * misc/efgcvt_r.c (fcvt_r): Likewise.
5527         * misc/hsearch_r.c (hcreate_r): Likewise.
5528         (hdestroy_r): Likewise.
5529         (hsearch_r): Likewise.
5530         * nss/nsswitch.c (__nss_configure_lookup): Likewise.
5531         * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Likewise.
5532         (_nss_dns_gethostbyaddr_r): Likewise.
5533         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
5534         * nss/nss_files/files-parse.c (parse_list): Likewise.
5535         * posix/confstr.c (confstr): Likewise.  De-ANSI-fy.
5536         * posix/execvp.c (execvp): Likewise.
5537         * posix/glob.c: Define __set_errno.
5538         (glob): Use __set_errno to set errno variable.
5539         (glob_in_dir): Likewise.
5540         * pwd/getpw.c: Likewise. De-ANSI-fy.
5541         * pwd/putpwent.c: Likewise.
5542         * resolv/inet_net_ntop.c: Likewise.
5543         * resolv/inet_net_pton.c: Likewise.
5544         * resolv/inet_neta.c: Likewise.
5545         * resolv/inet_ntop.c: Likewise.
5546         * resolv/inet_pton.c: Likewise.
5547         * resolv/res_query.c (res_search): Likewise.
5548         * resolv/res_send.c (Aerror): Likewise.
5549         (Perror): Likewise.
5550         (res_send): Likewise.
5551         * signal/sigaddset.c: Likewise.  De-ANSI-fy.
5552         * signal/sigdelset.c: Likewise.
5553         * signal/sigempty.c: Likewise.
5554         * signal/sigfillset.c: Likewise.
5555         * signal/sigismem.c: Likewise.
5556         * stdio/fclose.c: Likewise.
5557         * stdio/feof.c: Likewise.
5558         * stdio/ferror.c: Likewise.
5559         * stdio/fflush.c: Likewise.
5560         * stdio/fgetc.c: Likewise.
5561         * stdio/fgetpos.c: Likewise.
5562         * stdio/fgets.c: Likewise.
5563         * stdio/fileno.c: Likewise.
5564         * stdio/fmemopen.c: Likewise.
5565         * stdio/fopen.c: Likewise.
5566         * stdio/fputc.c: Likewise.
5567         * stdio/fread.c: Likewise.
5568         * stdio/freopen.c: Likewise.
5569         * stdio/fseek.c: Likewise.
5570         * stdio/fsetpos.c: Likewise.
5571         * stdio/ftell.c: Likewise.
5572         * stdio/fwrite.c: Likewise.
5573         * stdio/getdelim.c: Likewise.
5574         * stdio/gets.c: Likewise.
5575         * stdio/glue.c: Likewise.
5576         * stdio/internals.c: Likewise.
5577         * stdio/memstream.c: Likewise.
5578         * stdio/setvbuf.c: Likewise.
5579         * stdio/ungetc.c: Likewise.
5580         * stdio/vsscanf.c: Likewise.
5581         * stdio-common/reg-printf.c: Likewise.
5582         * stdio-common/vfprintf.c: Likewise.
5583         * stdio-common/vfscanf.c: Likewise.
5584         * stdlib/canonicalize.c: Likewise.
5585         * stdlib/msort.c: Likewise.
5586         * stdlib/random_r.c: Likewise.
5587         * stdlib/strfmon.c: Likewise.
5588         * stdlib/strtod.c: Likewise.
5589         * stdlib/strtol.c: Likewise.
5590         * sunrpc/bindrsvprt.c: Likewise.
5591         * time/asctime.c: Likewise.
5592         * time/localtime.c: Likewise.
5593         * wcsmbs/mbrtowc.c: Likewise.
5594         * wcsmbs/mbsnrtowcs.c: Likewise.
5595         * wcsmbs/mbsrtowcs.c: Likewise.
5596         * wcsmbs/wcrtomb.c: Likewise.
5597         * wcsmbs/wcsnrtombs.c: Likewise.
5598         * wcsmbs/wcsrtombs.c: Likewise.
5599         * wcsmbs/wcstok.c: Likewise.
5600         * sysdeps/generic/ftime.c: Likewise.
5601         * sysdeps/generic/pty.c: Likewise.
5602         * sysdeps/generic/setenv.c: Likewise.
5603         * sysdeps/generic/speed.c: Likewise.
5604         * sysdeps/generic/sysd-stdio.c: Likewise.
5605         * sysdeps/generic/uname.c: Likewise.
5606         * sysdeps/generic/vlimit.c: Likewise.
5607         * sysdeps/libm-ieee754/k_standard.c: Likewise.
5608         * sysdeps/libm-ieee754/s_ldexp.c: Likewise.
5609         * sysdeps/libm-ieee754/s_ldexpf.c: Likewise.
5610         * sysdeps/libm-ieee754/s_ldexpl.c: Likewise.
5611         * sysdeps/libm-ieee754/w_scalb.c: Likewise.
5612         * sysdeps/libm-ieee754/w_scalbf.c: Likewise.
5613         * sysdeps/libm-ieee754/w_scalbl.c: Likewise.
5614         * sysdeps/posix/dup2.c: Likewise.
5615         * sysdeps/posix/euidaccess.c: Likewise.
5616         * sysdeps/posix/fdopen.c: Likewise.
5617         * sysdeps/posix/flock.c: Likewise.
5618         * sysdeps/posix/fpathconf.c: Likewise.
5619         * sysdeps/posix/getcwd.c: Likewise.
5620         * sysdeps/posix/gettimeofday.c: Likewise.
5621         * sysdeps/posix/isatty.c: Likewise.
5622         * sysdeps/posix/isfdtype.c: Likewise.
5623         * sysdeps/posix/killpg.c: Likewise.
5624         * sysdeps/posix/mkstemp.c: Likewise.
5625         * sysdeps/posix/mktemp.c: Likewise.
5626         * sysdeps/posix/pathconf.c: Likewise.
5627         * sysdeps/posix/pipestream.c: Likewise.
5628         * sysdeps/posix/remove.c: Likewise.
5629         * sysdeps/posix/rename.c: Likewise.
5630         * sysdeps/posix/sigintr.c: Likewise.
5631         * sysdeps/posix/signal.c: Likewise.
5632         * sysdeps/posix/sigsuspend.c: Likewise.
5633         * sysdeps/posix/sigvec.c: Likewise.
5634         * sysdeps/posix/sleep.c: Likewise.
5635         * sysdeps/posix/sysconf.c: Likewise.
5636         * sysdeps/posix/system.c: Likewise.
5637         * sysdeps/posix/tempname.c: Likewise.
5638         * sysdeps/posix/truncate.c: Likewise.
5639         * sysdeps/posix/ttyname.c: Likewise.
5640         * sysdeps/posix/ttyname_r.c: Likewise.
5641         * sysdeps/posix/wait3.c: Likewise.
5642         * sysdeps/standalone/close.c: Likewise.
5643         * sysdeps/standalone/open.c: Likewise.
5644         * sysdeps/standalone/read.c: Likewise.
5645         * sysdeps/standalone/write.c: Likewise.
5646         * sysdeps/stub/__longjmp.c: Likewise.
5647         * sysdeps/stub/accept.c: Likewise.
5648         * sysdeps/stub/access.c: Likewise.
5649         * sysdeps/stub/acct.c: Likewise.
5650         * sysdeps/stub/adjtime.c: Likewise.
5651         * sysdeps/stub/alarm.c: Likewise.
5652         * sysdeps/stub/bind.c: Likewise.
5653         * sysdeps/stub/brk.c: Likewise.
5654         * sysdeps/stub/chdir.c: Likewise.
5655         * sysdeps/stub/chflags.c: Likewise.
5656         * sysdeps/stub/chmod.c: Likewise.
5657         * sysdeps/stub/chown.c: Likewise.
5658         * sysdeps/stub/chroot.c: Likewise.
5659         * sysdeps/stub/clock.c: Likewise.
5660         * sysdeps/stub/close.c: Likewise.
5661         * sysdeps/stub/closedir.c: Likewise.
5662         * sysdeps/stub/connect.c: Likewise.
5663         * sysdeps/stub/ctermid.c: Likewise.
5664         * sysdeps/stub/cuserid.c: Likewise.
5665         * sysdeps/stub/dirfd.c: Likewise.
5666         * sysdeps/stub/dup.c: Likewise.
5667         * sysdeps/stub/dup2.c: Likewise.
5668         * sysdeps/stub/euidaccess.c: Likewise.
5669         * sysdeps/stub/execve.c: Likewise.
5670         * sysdeps/stub/fchdir.c: Likewise.
5671         * sysdeps/stub/fchflags.c: Likewise.
5672         * sysdeps/stub/fchmod.c: Likewise.
5673         * sysdeps/stub/fchown.c: Likewise.
5674         * sysdeps/stub/fcntl.c: Likewise.
5675         * sysdeps/stub/fdopen.c: Likewise.
5676         * sysdeps/stub/fexecve.c: Likewise.
5677         * sysdeps/stub/flock.c: Likewise.
5678         * sysdeps/stub/fork.c: Likewise.
5679         * sysdeps/stub/fpathconf.c: Likewise.
5680         * sysdeps/stub/fstatfs.c: Likewise.
5681         * sysdeps/stub/fsync.c: Likewise.
5682         * sysdeps/stub/ftruncate.c: Likewise.
5683         * sysdeps/stub/fxstat.c: Likewise.
5684         * sysdeps/stub/getcwd.c: Likewise.
5685         * sysdeps/stub/getdents.c: Likewise.
5686         * sysdeps/stub/getdomain.c: Likewise.
5687         * sysdeps/stub/getdtsz.c: Likewise.
5688         * sysdeps/stub/getegid.c: Likewise.
5689         * sysdeps/stub/getenv.c: Likewise.
5690         * sysdeps/stub/geteuid.c: Likewise.
5691         * sysdeps/stub/getgid.c: Likewise.
5692         * sysdeps/stub/getgroups.c: Likewise.
5693         * sysdeps/stub/gethostid.c: Likewise.
5694         * sysdeps/stub/gethostname.c: Likewise.
5695         * sysdeps/stub/getitimer.c: Likewise.
5696         * sysdeps/stub/getlogin.c: Likewise.
5697         * sysdeps/stub/getlogin_r.c: Likewise.
5698         * sysdeps/stub/getpagesize.c: Likewise.
5699         * sysdeps/stub/getpeername.c: Likewise.
5700         * sysdeps/stub/getpid.c: Likewise.
5701         * sysdeps/stub/getppid.c: Likewise.
5702         * sysdeps/stub/getpriority.c: Likewise.
5703         * sysdeps/stub/getrlimit.c: Likewise.
5704         * sysdeps/stub/getrusage.c: Likewise.
5705         * sysdeps/stub/getsid.c: Likewise.
5706         * sysdeps/stub/getsockname.c: Likewise.
5707         * sysdeps/stub/getsockopt.c: Likewise.
5708         * sysdeps/stub/getsysstats.c: Likewise.
5709         * sysdeps/stub/gettimeofday.c: Likewise.
5710         * sysdeps/stub/getuid.c: Likewise.
5711         * sysdeps/stub/gtty.c: Likewise.
5712         * sysdeps/stub/ioctl.c: Likewise.
5713         * sysdeps/stub/isatty.c: Likewise.
5714         * sysdeps/stub/isfdtype.c: Likewise.
5715         * sysdeps/stub/kill.c: Likewise.
5716         * sysdeps/stub/killpg.c: Likewise.
5717         * sysdeps/stub/link.c: Likewise.
5718         * sysdeps/stub/listen.c: Likewise.
5719         * sysdeps/stub/lseek.c: Likewise.
5720         * sysdeps/stub/lxstat.c: Likewise.
5721         * sysdeps/stub/madvice.c: Likewise.
5722         * sysdeps/stub/mkdir.c: Likewise.
5723         * sysdeps/stub/mkfifo.c: Likewise.
5724         * sysdeps/stub/mkstemp.c: Likewise.
5725         * sysdeps/stub/mktemp.c: Likewise.
5726         * sysdeps/stub/mmap.c: Likewise.
5727         * sysdeps/stub/morecore.c: Likewise.
5728         * sysdeps/stub/mprotect.c: Likewise.
5729         * sysdeps/stub/msgctl.c: Likewise.
5730         * sysdeps/stub/msgget.c: Likewise.
5731         * sysdeps/stub/msgrcv.c: Likewise.
5732         * sysdeps/stub/msgsnd.c: Likewise.
5733         * sysdeps/stub/msync.c: Likewise.
5734         * sysdeps/stub/munmap.c: Likewise.
5735         * sysdeps/stub/nanosleep.c: Likewise.
5736         * sysdeps/stub/nice.c: Likewise.
5737         * sysdeps/stub/nlist.c: Likewise.
5738         * sysdeps/stub/open.c: Likewise.
5739         * sysdeps/stub/opendir.c: Likewise.
5740         * sysdeps/stub/pathconf.c: Likewise.
5741         * sysdeps/stub/pause.c: Likewise.
5742         * sysdeps/stub/pipe.c: Likewise.
5743         * sysdeps/stub/pipestream.c: Likewise.
5744         * sysdeps/stub/poll.c: Likewise.
5745         * sysdeps/stub/profil.c: Likewise.
5746         * sysdeps/stub/ptrace.c: Likewise.
5747         * sysdeps/stub/putenv.c: Likewise.
5748         * sysdeps/stub/raise.c: Likewise.
5749         * sysdeps/stub/read.c: Likewise.
5750         * sysdeps/stub/readdir.c: Likewise.
5751         * sysdeps/stub/readlink.c: Likewise.
5752         * sysdeps/stub/readv.c: Likewise.
5753         * sysdeps/stub/reboot.c: Likewise.
5754         * sysdeps/stub/recv.c: Likewise.
5755         * sysdeps/stub/recvfrom.c: Likewise.
5756         * sysdeps/stub/recvmsg.c: Likewise.
5757         * sysdeps/stub/remove.c: Likewise.
5758         * sysdeps/stub/rename.c: Likewise.
5759         * sysdeps/stub/revoke.c: Likewise.
5760         * sysdeps/stub/rewinddir.c: Likewise.
5761         * sysdeps/stub/rmdir.c: Likewise.
5762         * sysdeps/stub/sbrk.c: Likewise.
5763         * sysdeps/stub/sched_getp.c: Likewise.
5764         * sysdeps/stub/sched_gets.c: Likewise.
5765         * sysdeps/stub/sched_primax.c: Likewise.
5766         * sysdeps/stub/sched_primin.c: Likewise.
5767         * sysdeps/stub/sched_rr_gi.c: Likewise.
5768         * sysdeps/stub/sched_setp.c: Likewise.
5769         * sysdeps/stub/sched_sets.c: Likewise.
5770         * sysdeps/stub/sched_yield.c: Likewise.
5771         * sysdeps/stub/seekdir.c: Likewise.
5772         * sysdeps/stub/select.c: Likewise.
5773         * sysdeps/stub/semctl.c: Likewise.
5774         * sysdeps/stub/semget.c: Likewise.
5775         * sysdeps/stub/semop.c: Likewise.
5776         * sysdeps/stub/send.c: Likewise.
5777         * sysdeps/stub/sendmsg.c: Likewise.
5778         * sysdeps/stub/sendto.c: Likewise.
5779         * sysdeps/stub/setdomain.c: Likewise.
5780         * sysdeps/stub/setegid.c: Likewise.
5781         * sysdeps/stub/setenv.c: Likewise.
5782         * sysdeps/stub/seteuid.c: Likewise.
5783         * sysdeps/stub/setgid.c: Likewise.
5784         * sysdeps/stub/setgroups.c: Likewise.
5785         * sysdeps/stub/sethostid.c: Likewise.
5786         * sysdeps/stub/sethostname.c: Likewise.
5787         * sysdeps/stub/setitimer.c: Likewise.
5788         * sysdeps/stub/setjmp.c: Likewise.
5789         * sysdeps/stub/setlogin.c: Likewise.
5790         * sysdeps/stub/setpgid.c: Likewise.
5791         * sysdeps/stub/setpriority.c: Likewise.
5792         * sysdeps/stub/setregid.c: Likewise.
5793         * sysdeps/stub/setreuid.c: Likewise.
5794         * sysdeps/stub/setrlimit.c: Likewise.
5795         * sysdeps/stub/setsid.c: Likewise.
5796         * sysdeps/stub/setsockopt.c: Likewise.
5797         * sysdeps/stub/settimeofday.c: Likewise.
5798         * sysdeps/stub/setuid.c: Likewise.
5799         * sysdeps/stub/shmat.c: Likewise.
5800         * sysdeps/stub/shmctl.c: Likewise.
5801         * sysdeps/stub/shmdt.c: Likewise.
5802         * sysdeps/stub/shmget.c: Likewise.
5803         * sysdeps/stub/shutdown.c: Likewise.
5804         * sysdeps/stub/sigaction.c: Likewise.
5805         * sysdeps/stub/sigaltstack.c: Likewise.
5806         * sysdeps/stub/sigblock.c: Likewise.
5807         * sysdeps/stub/sigintr.c: Likewise.
5808         * sysdeps/stub/signal.c: Likewise.
5809         * sysdeps/stub/sigpause.c: Likewise.
5810         * sysdeps/stub/sigpending.c: Likewise.
5811         * sysdeps/stub/sigprocmask.c: Likewise.
5812         * sysdeps/stub/sigreturn.c: Likewise.
5813         * sysdeps/stub/sigsetmask.c: Likewise.
5814         * sysdeps/stub/sigstack.c: Likewise.
5815         * sysdeps/stub/sigsuspend.c: Likewise.
5816         * sysdeps/stub/sigvec.c: Likewise.
5817         * sysdeps/stub/sleep.c: Likewise.
5818         * sysdeps/stub/socket.c: Likewise.
5819         * sysdeps/stub/socketpair.c: Likewise.
5820         * sysdeps/stub/sstk.c: Likewise.
5821         * sysdeps/stub/statfs.c: Likewise.
5822         * sysdeps/stub/stime.c: Likewise.
5823         * sysdeps/stub/stty.c: Likewise.
5824         * sysdeps/stub/swapoff.c: Likewise.
5825         * sysdeps/stub/swapon.c: Likewise.
5826         * sysdeps/stub/symlink.c: Likewise.
5827         * sysdeps/stub/sync.c: Likewise.
5828         * sysdeps/stub/syscall.c: Likewise.
5829         * sysdeps/stub/sysconf.c: Likewise.
5830         * sysdeps/stub/sysd-stdio.c: Likewise.
5831         * sysdeps/stub/system.c: Likewise.
5832         * sysdeps/stub/tcdrain.c: Likewise.
5833         * sysdeps/stub/tcflow.c: Likewise.
5834         * sysdeps/stub/tcflush.c: Likewise.
5835         * sysdeps/stub/tcgetattr.c: Likewise.
5836         * sysdeps/stub/tcgetpgrp.c: Likewise.
5837         * sysdeps/stub/tcsendbrk.c: Likewise.
5838         * sysdeps/stub/tcsetattr.c: Likewise.
5839         * sysdeps/stub/tcsetpgrp.c: Likewise.
5840         * sysdeps/stub/telldir.c: Likewise.
5841         * sysdeps/stub/tempname.c: Likewise.
5842         * sysdeps/stub/time.c: Likewise.
5843         * sysdeps/stub/times.c: Likewise.
5844         * sysdeps/stub/truncate.c: Likewise.
5845         * sysdeps/stub/ttyname.c: Likewise.
5846         * sysdeps/stub/ttyname_r.c: Likewise.
5847         * sysdeps/stub/ualarm.c: Likewise.
5848         * sysdeps/stub/ulimit.c: Likewise.
5849         * sysdeps/stub/umask.c: Likewise.
5850         * sysdeps/stub/unlink.c: Likewise.
5851         * sysdeps/stub/usleep.c: Likewise.
5852         * sysdeps/stub/ustat.c: Likewise.
5853         * sysdeps/stub/utime.c: Likewise.
5854         * sysdeps/stub/utimes.c: Likewise.
5855         * sysdeps/stub/vhangup.c: Likewise.
5856         * sysdeps/stub/wait.c: Likewise.
5857         * sysdeps/stub/wait3.c: Likewise.
5858         * sysdeps/stub/wait4.c: Likewise.
5859         * sysdeps/stub/waitpid.c: Likewise.
5860         * sysdeps/stub/write.c: Likewise.
5861         * sysdeps/stub/writev.c: Likewise.
5862         * sysdeps/stub/xmknod.c: Likewise.
5863         * sysdeps/stub/xstat.c: Likewise.
5864         * sysdeps/unix/closedir.c: Likewise.
5865         * sysdeps/unix/fxstat.c: Likewise.
5866         * sysdeps/unix/getlogin.c: Likewise.
5867         * sysdeps/unix/getlogin_r.c: Likewise.
5868         * sysdeps/unix/mkdir.c: Likewise.
5869         * sysdeps/unix/nice.c: Likewise.
5870         * sysdeps/unix/nlist.c: Likewise.
5871         * sysdeps/unix/opendir.c: Likewise.
5872         * sysdeps/unix/readdir.c: Likewise.
5873         * sysdeps/unix/rmdir.c: Likewise.
5874         * sysdeps/unix/stime.c: Likewise.
5875         * sysdeps/unix/xmknod.c: Likewise.
5876         * sysdeps/unix/xstat.c: Likewise.
5877         * sysdeps/unix/bsd/isatty.c: Likewise.
5878         * sysdeps/unix/bsd/setegid.c: Likewise.
5879         * sysdeps/unix/bsd/seteuid.c: Likewise.
5880         * sysdeps/unix/bsd/setsid.c: Likewise.
5881         * sysdeps/unix/bsd/sigaction.c: Likewise.
5882         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
5883         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
5884         * sysdeps/unix/bsd/tcflow.c: Likewise.
5885         * sysdeps/unix/bsd/tcflush.c: Likewise.
5886         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
5887         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
5888         * sysdeps/unix/bsd/times.c: Likewise.
5889         * sysdeps/unix/bsd/ulimit.c: Likewise.
5890         * sysdeps/unix/common/lxstat.c: Likewise.
5891         * sysdeps/unix/common/tcsendbrk.c: Likewise.
5892         * sysdeps/unix/sysv/setrlimit.c: Likewise.
5893         * sysdeps/unix/sysv/settimeofday.c: Likewise.
5894         * sysdeps/unix/sysv/sigaction.c: Likewise.
5895         * sysdeps/unix/sysv/tcflow.c: Likewise.
5896         * sysdeps/unix/sysv/tcflush.c: Likewise.
5897         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
5898         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
5899         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
5900         * sysdeps/unix/bsd/ultrix4/sysconf.c: Likewise.
5901         * sysdeps/unix/sysv/irix4/getpriority.c: Likewise.
5902         * sysdeps/unix/sysv/irix4/setpriority.c: Likewise.
5903         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
5904         * sysdeps/unix/sysv/linux/gethostid.c: Likewise.
5905         * sysdeps/unix/sysv/linux/gethostname.c: Likewise.
5906         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
5907         * sysdeps/unix/sysv/linux/ptrace.c: Likewise.
5908         * sysdeps/unix/sysv/linux/speed.c: Likewise.
5909         * sysdeps/unix/sysv/linux/ulimit.c: Likewise.
5910         * sysdeps/unix/sysv/sysv4/sigaction.c: Likewise.
5911         * sysdeps/unix/sysv/sysv4/sysconf.c: Likewise.
5912         * sysdeps/unix/bsd/sun/m68k/sigtramp.c: Likewise.
5913         * sysdeps/unix/bsd/sun/sparc/sigtramp.c: Likewise.
5914         * sysdeps/unix/bsd/sun/sunos4/speed.c: Likewise.
5915         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c: Likewise.
5916         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Likewise.
5917         * sysdeps/unix/sysv/linux/i386/brk.c: Likewise.
5918         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5919         * sysdeps/unix/sysv/linux/m68k/brk.c: Likewise.
5921         * sunrpc/clnt_tcp.c: Protect declaration of errno by #ifndef.
5922         * sunrpc/clnt_udp.c: Likewise.
5923         * sunrpc/bindrsvprt.c: Likewise.
5924         * sunrpc/pm_getmaps.c: Likewise.
5925         * sunrpc/pmap_rmt.c: Likewise.
5926         * sunrpc/svc.c: Likewise.
5927         * sunrpc/svc_run.c: Likewise.
5928         * sunrpc/svc_tcp.c: Likewise.
5929         * sunrpc/svc_udp.c: Likewise.
5931         * sysdeps/generic/strtok.c: Don't check argument, just crash.
5932         * sysdeps/generic/strtok_r.c: Likewise.
5934         * sysdeps/stub/start.c: Make __errno a strong alias of errno.
5935         * sysdeps/unix/start.c: Likewise.  De-ANSI-fy.
5936         * sysdeps/unix/sparc/start.c: Likewise.
5937         * sysdeps/standalone/m68k/m68020/start.S: Likewise.
5938         * sysdeps/unix/sysv/irix4/start.c: Likewise.
5939         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
5940         * sysdeps/unix/sysv/linux/i386/sysdep.S: Likewise.
5941         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Likewise.
5943 Mon Sep 23 17:54:57 1996  Ulrich Drepper  <drepper@cygnus.com>
5945         * catgets/gencat.c (main): Put package name in --version message
5946         in parantheses.  Reported by Jim Meyering.
5947         * db/makedb.c: Likewise.
5948         * locale/programs/locale.c: Likewise.
5949         * locale/programs/localedef.c: Likewise.
5951         * sysdeps/i386/fpu/__math.h (tan): Make sure gcc knows we use
5952         two registers.  Patch by John Bowman.
5954 Sat Sep 21 15:08:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5956         * sysdeps/mach/libc-lock.h: Fix comment.
5957         * sysdeps/stubs/libc-lock.h: Likewise.
5959 Sat Sep 21 13:50:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5961         * libio/genops.c (_IO_init) [_IO_MTSAFE_IO]: Dereference pointer
5962         to lock when passing it to __libc_lock_init macro.
5963         (_IO_default_finish) [_IO_MTSAFE_IO]: Dereference pointer to lock
5964         when passing it to __libc_lock_fini macro.
5966 Sat Sep 21 14:35:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5968         * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYSCALL_ERROR_HANDLER)
5969         [_LIBC_REENTRANT]: Add missing semicolon.
5971         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Move inclusion of
5972         sysdep.h to the top outside of #ifndef PIC.  Don't include errnos.h.
5973         Use the ENTRY macro.
5975 Sat Sep 21 14:33:41 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
5977         * libio/Makefile: Make `all' the default target.
5978         * po/Makefile: Likewise.
5980 Mon Sep 23 15:49:47 1996  Ulrich Drepper  <drepper@cygnus.com>
5982         * stdlib/test-canon.c: Correct patch from Thu Sep 12 23:01:16 1996.
5983         I applied it incorrectly.
5984         * sysdeps/m68k/fpu/s_scalbn.c: Likewise.
5985         * sysdeps/m68k/fpu/s_scalbnf.c: Likewise.
5986         * sysdeps/m68k/fpu/s_scalbnl.c: Likewise.
5988 Mon Sep 23 03:00:10 1996  Ulrich Drepper  <drepper@cygnus.com>
5990         * shadow/sgetspent_r.c (LINE_PARSER): Accept empty 9th field.
5991         Patch by NIIBE Yutaka <gniibe@mri.co.jp>.
5993         * shadow/sgetspent_r.c (LINE_PARSER): Don't accept any chars after
5994         9th field.
5996         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
5997         (sysdep_headers): Add sys/debugreg.h, sys/kd.h, sys/soundcard.h,
5998         and sys/vt.h.
5999         * sysdeps/unix/sysv/linux/sys/debugreg.h: New file.
6000         * sysdeps/unix/sysv/linux/sys/kd.h: New file.
6001         * sysdeps/unix/sysv/linux/sys/soundcard.h: New file.
6002         * sysdeps/unix/sysv/linux/sys/vt.h: New file.
6003         Reported by NIIBE Yutaka <gniibe@mri.co.jp>.
6005 Thu Sep 26 13:44:29 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6007         * hurd/Makefile (installed-sunrpc-headers): New variable.
6008         (sunrpc-headers): New variable.
6009         (install-headers-nosubir): Depend on $(installed-sunrpc-headers),
6010         not just <rpc/netdb.h>.
6011         ($(installed-sunrpc-headers)): Provide rule for all of these.
6013 Mon Sep 23 15:31:04 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6015         * hurd/Makefile ($(includedir)/rpc/netdb.h): There is no make
6016         variable `top_srcdir' in libc; use $(..) instead.
6018         * sysdeps/mach/hurd/Makefile (rtld-installed-name): Delete special
6019         definition.  It was a *Mistake*.  (With a capital M.)
6021         * sysdeps/mach/getsysstats.c (__get_nprocs): Renamed from
6022         __get_nproc.
6023         (__get_nprocs_conf): Renamed from __get_nproc_conf.
6025 Sun Sep 22 15:18:41 1996  Ulrich Drepper  <drepper@cygnus.com>
6027         * sysdeps/unix/sysv/linux/init-first.c: Define dummy function
6028         `_dl_start' so that linking fails if this file should ever be used
6029         in ld.so.
6031         * catgets/gencat.c (main): Change --version message according to
6032         RMS' last standard revision.
6033         * db/makedb.c: Likewise.
6034         * locale/programs/locale.c: Likewise.
6035         * locale/programs/localedef.c: Likewise.
6037 Sat Sep 21 23:42:39 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6039         * sysdeps/mach/getsysstats.c: Include <sys/sysinfo.h>.
6040         (__get_nproc_conf): New function.
6042 Sun Sep 22 03:40:52 1996  Ulrich Drepper  <drepper@cygnus.com>
6044         * resolv/resolv.h: Update to bind-4.9.5-T4B.
6045         * resolv/base64.c: Likewise.
6046         * resolv/res_debug.c: Likewise.
6047         * resolv/res_query.c: Likewise.
6048         * resolv/gethnamaddr.c: Likewise.
6049         * nss/nss_dns/dns-host.c: Likewise.
6050         * resolv/res_comp.c: Likewise.
6051         * resolv/res_send.c: Likewise.
6052         * resolv/arpa/nameser.h: Likewise.  Attention: MAXDNAME is much
6053         higher now.
6055         * resolv/Banner: New file.
6056         * resolv/Makefile (distribute): Add Banner.
6058 Sat Sep 21 19:15:24 1996  Ulrich Drepper  <drepper@cygnus.com>
6060         * sysdeps/stub/getsysstats.c: New file.
6061         * sysdeps/unix/sysv/linux/getsysstats.c: New file.
6063         * misc/Makefile (headers): Add sys/sysinfo.h.
6064         (routines): Add getsysstats.
6065         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
6066         (sysdep_headers): Remove sys/sysinfo.h.
6067         * sysdeps/generic/sys/sysinfo.h: New file.
6068         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Add prototype for get_nprocs,
6069         get_phys_pages, and get_avphys_pages.
6071         * misc/Makefile (routines): Add mntent_r.
6072         * misc/mntent_r.c: New file.
6073         * misc/mntent.c: Remove all functions but getmntent and use
6074         __getmntent_r.
6075         * misc/mntent.h: Add prototype for __getmntent_r.
6076         * misc/fstab.c: Use __getmntent_r function instead of getmntent.
6077         This will not clobber the state in getmntent.
6079         * sysdeps/generic/confname.h: Add _SC_PROCESSORS_CONF,
6080         _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES, _SC_AVPHYS_PAGES,
6081         _SC_ATEXIT_MAX, and _SC_PASS_MAX.
6082         * sysdeps/stub/sysconf.c: Add handling _SC_PROCESSORS_CONF and
6083         _SC_NPROCESSORS_ONLN by calling __get_nprocs, _SC_PHYS_PAGES by
6084         calling __get_phys_pages, _SY_AVPHYS_PAGES by calling
6085         __get_avphys_pages, _SC_ATEXIT_MAX and _SC_PASS_MAX.
6086         * sysdeps/posix/sysconf.c: Likewise.
6087         * posix/getconf.c (vars): Add _NPROCESSORS_CONF, _NPROCESSORS_ONLN,
6088         _PHYS_PAGES, _AVPHYS_PAGES, ATEXIT_MAX, and PASS_MAX entries.
6090 Sat Sep 21 05:20:36 1996  Ulrich Drepper  <drepper@cygnus.com>
6092         * version.h (VERSION): Bump to 1.95.
6094         * Make-dist (+tsrcs): Don't filter out files in subdirs which
6095         match files in the sysdeps hierachy (welcome back,
6096         sys/syscall.h!).
6098         * resolv/Makefile (libresolv-routines): Remove getnetnamad.
6100 Sat Sep 21 03:00:19 1996  Ulrich Drepper  <drepper@cygnus.com>
6102         * locale/loadlocale.c (_nl_free_locale): Remove function.
6103         * locale/localeinfo.h: Remove prototype for _nl_free_locale.
6104         * locale/setlocale.c (setlocale): Don't free locale data of
6105         categories which succeeded to load after a wrong or missing data
6106         file was observed.
6108         * locale/setlocale (setlocale): Initialize NEWNAME correctly so
6109         that it works even when the locale data is not used.
6111         * stdlib/random_r.c: Fix typo in comment.
6112         * stdlib/drand48-iter.c: Likewise.
6113         * stdlib/drand48.c: Likewise.
6114         * stdlib/erand48.c: Likewise.
6115         * stdlib/jrand48.c: Likewise.
6116         * stdlib/lcong48.c: Likewise.
6117         * stdlib/lrand48.c: Likewise.
6118         * stdlib/mrand48.c: Likewise.
6119         * stdlib/nrand48.c: Likewise.
6120         * stdlib/random.c: Likewise.
6121         * stdlib/seed48.c: Likewise.
6122         * stdlib/srand48.c: Likewise.
6123         * misc/search.h: Likewise.
6124         * misc/hsearch.c: Likewise.
6125         * misc/hsearch_r.c: Likewise.
6127 Sat Sep 21 14:59:22 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6129         * sysdeps/mach/getsysstats.c: New file.
6131         * shlib-versions (*-*-gnu*): Increment libc to 0.2 for upcoming
6132         binary distribution.
6134         * sysdeps/mach/hurd/Makefile (rtld-installed-name): Provide
6135         definition to override dangerous one in Makeconfig.
6137         * hurd/Makefile (install-headers-nosubdir): Install <rpc/netdb.h>.
6138         ($(includedir)/rpc/netdb.h): New rule.
6139         [ This is XXX until sunrpc can be built; <rpc/netdb.h> is
6140         essential. ]
6142 Fri Sep 20 16:06:06 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6144         * sysdeps/mach/hurd/i386/init-first.c (_dl_start): Add definition,
6145         to guarantee link errors if this is included in ld.so.
6147 Thu Sep 19 23:36:19 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6149         * hurd/hurdinit.c (__libc_argv): Provide common decl.
6150         (_hurd_setproc): Don't declare __libc_argv here.
6152 Tue Sep 17 10:51:58 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6154         * malloc/memalign.c (memalign): Only acquire __libc_malloc_lock
6155         for actual modifications to global state.  
6157 Fri Sep 13 01:21:36 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6159         * sysdeps/mach/Makefile (includes): Add -I$(common-objpfx)mach/.
6160         * sysdeps/mach/hurd/Makefile (includes): Add
6161         -I$(common-objpfx)hurd/.  Reported by Marcus Daniels.
6163         * sysdeps/generic/schedbits.h (struct sched_param): Renamed from
6164         struct sched_params.
6165         * sysdeps/stub/sched_setp.c (__sched_setparam): struct
6166         sched_params -> struct sched_param.
6167         * sysdeps/stub/sched_getp.c (__sched_getparam): Likewise.
6168         * sysdeps/stub/sched_sets.c (__sched_setscheduler): Likewise.
6170 Thu Sep 12 23:58:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6172         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): Fix
6173         syntax error.
6174         
6175         * stdio-common/Makefile: Put lockfile in routines
6176         unconditionally. 
6177                 
6178         * stdio-common/vfprintf.c (__flockfile, __funlockfile): Declare
6179         this always, not just if _LIBC_REENTRANT.
6180         (__funlockfile): Don't use weak_extern for this one;
6181         __libc_cleanup_region_end might be defined and the use of
6182         __funlockfile can't be protected the way the use of __flockfile
6183         can be. 
6184         
6185 Thu Sep 19 21:50:55 1996  Ulrich Drepper  <drepper@cygnus.com>
6187         * sysdeps/posix/gettimeofday.c (__gettimeofday): Use localtime_r
6188         instead of localtime.
6189         Reported by Matthias Urlichs.
6191         * shlib-versions: Remove version number for libcrypt.
6192         * features.h: Define __USE_REENTRANT if _REENTRANT or _THREAD_SAFE.
6193         * libc-symbols.h: Define _REENTRANT while compiling libc.
6195         * sysdeps/unix/sysv/linux/i386/sysdep.S (__errno_location):
6196         Define even if !_LIBC_REENTRANT.
6197         * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location):
6198         Likewise.
6200         * sysdeps/posix/cuserid.h: Remove prototype for geteuid().
6201         De-ANSI-fy.
6203         * MakeTAGS ($P/libc.pot): Generate correctly formed header.
6204         * po/header.pot: Correct title line.
6205         * po/nl.po: Update.
6207 Thu Sep 19 18:59:55 1996  Ulrich Drepper  <drepper@cygnus.com>
6209         * Makeconfig (soversions.mk): Prefer shared lib version numbers
6210         is add ons over version in libc itself.
6212         * sysdeps/unix/sysv/linux/i386/sysdep.S: Include <sysdep.h>.
6213         * sysdeps/unix/sysv/linux/i386/sysdep.h: Prevent multiple
6214         inclusion.
6216         * libio/iofgets.c: Use __flockfile and __funlockfile instead of
6217         _IO_flockfile and _IO_funlockfile resp.
6219         * locale/categories.def: Partly support for correct `era' handling
6220         in LC_TIME category.
6221         * locale/langinfo.h: Likewise.
6222         * locale/programs/ld-time.c: Likewise.
6223         * locale/localeinfo.h: Change comment a bit.
6225         * malloc/memalign.c: Don't use goto, not necessary anymore.
6227 1996-09-18  Paul Eggert  <eggert@twinsun.com>
6229         * time/mktime.c (ydhms_tm_diff):  Work correctly even if year
6230         is negative, or if time_t is unsigned.
6231         * time/strftime.c (tm_diff): Work correctly even if tm_year
6232         is near INT_MIN.
6234 Tue Sep 17 16:14:34 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6236         * sysdeps/m68k/fpu/__math.h (__inline_mathop): Changed to generate
6237         all three versions of the math function.
6238         (__inline_mathopf, __inline_mathopl): Removed.
6239         (__inline_functions): New temporary definition containing all
6240         non-trivial inline functions.
6242 Wed Sep 18 00:25:41 1996  Ulrich Drepper  <drepper@cygnus.com>
6244         * time/strftime.c (strftime): The T_FMT_AMPM string may be empty.
6246 Tue Sep 17 20:27:18 1996  Ulrich Drepper  <drepper@cygnus.com>
6248         * math/Makefile (extra-libs-others): Use $(extra-libs) instead
6249         of $(extra-libc).
6251 Tue Sep 17 17:09:44 1996  Ulrich Drepper  <drepper@cygnus.com>
6253         * sysdeps/stub/fpu_control.h: Correct end of file comment.
6255 Tue Sep 17 05:39:18 1996  Ulrich Drepper  <drepper@cygnus.com>
6257         * stdio-common/bug3.c, stdio-common/bug4.c, stdio-common/bug5.c,
6258         stdio-common/test-popen.c: Remove temporary files after test.
6259         * stdio-common/bug5.c: Use `system' instead of `execlp'.
6260         Patches by Andreas Jaeger.
6262         * stdio-common/bug5.c: Create string for `system' argument to
6263         make sure the input and output file names are really correct.
6265 Sun Sep 15 12:46:44 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6267         * configure.in: If $os contains a hyphen add the part before the
6268         hyphen to $ostry.
6270 Sun Sep 15 18:14:02 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6272         * sysdeps/m68k/fpu/__math.h (__ieee754_pow, __ieee754_powf,
6273         __ieee754_powl): Rename local variable i to __i.
6274         (__ieee754_atan2, __ieee754_atan2f, __ieee754_atan2l): New inline
6275         functions.
6276         * sysdeps/m68k/fpu/e_atan2.c, sysdeps/m68k/fpu/e_atan2f.c,
6277         sysdeps/m68k/fpu/e_atan2l.c: New files.
6279 1996-09-15  Paul Eggert  <eggert@twinsun.com>
6281         * manual/time.texi: Change `range X to Y' to `range X through
6282         Y', to avoid ambiguity in English.
6284         (strftime): Numbers that do not have a range indicated are not padded.
6285         Describe E and O modifiers.
6286         %g, %G, %u: New formats.
6287         %C, %y, %Y: Describe behavior on negative years.
6288         %e: Fix typo (was labeled %d).
6289         %l, %V: Fix typo in range.
6290         %M, %S, %U, %w, %W: Give ranges.
6291         %p: Clarify how noon and midnight are handled for AM and PM.
6292         %s: Clarify leap second handling.
6293         %r: Now locale-defined.
6294         %C, %D, %e, %h, %n, %r, %t, %T: Say that they are POSIX.2 extensions.
6295         %z: Say that it is a GNU extension.
6296         %Z: Wording fix.
6298         * time/strftime.c: (strftime):
6299                 %V: Fix mishandling of week numbers near year boundaries.
6300                 %g, %G: New formats (suggested by Arthur David Olson).
6301                 %U, %W: Use inline expression instead of `week' function.
6302                 %C, %y: Handle negative years portably.
6303                 %C, %Y: Use width 1, since values can be arbitrarily wide.
6304                 %r: Use T_FMT_AMPM format if _NL_CURRENT is defined.
6305                 %u: New Posix.2 format.
6306                 %w: Width is 1, not 2.
6307         (iso_week_days): New function, for %V, %G, %g.
6308         (week): Remove; it didn't handle %V correctly.
6309         (__isleap): New macro.
6310         (mbsinit): Use arg, to pacify GCC -Wall.
6312 1996-09-13  Paul Eggert  <eggert@twinsun.com>
6314         * time/strftime.c (strftime):
6315         If using the GNU C library, do not bother to check for
6316         multibyte encodings, since they're safe in formats.  Otherwise:
6317           - Check for multibyte encodings when encountering any character that
6318           is not in the basic execution character set of the C Standard.
6319           - Use mbrlen (if available) instead of mblen, to avoid modifying
6320           mblen's internal state.
6321           - Do not assume that '%' cannot appear as the first character of a
6322           multibyte character sequence, since this is possible when not in the
6323           initial shift state.
6324         (HAVE_MBRLEN, MULTIBYTE_IS_FORMAT_SAFE): Define if _LIBC is defined.
6325         (DO_MULTIBYTE): New macro.
6326         (<ctype.h>): Do not include.
6327         (<wchar.h>): Include if HAVE_MBRLEN.
6328         (mbstate_t, mbrlen, mbsinit): Define if ! HAVE_MBRLEN.
6329         (mbstate_zero): New constant.
6331 1996-09-12  Paul Eggert  <eggert@twinsun.com>
6333         * time/strftime.c (strftime):
6334         Use an empty zone if it can't be determined; POSIX.2 requires this.
6335         Use plain `int' for pad and modifier (which now contain char value).
6336         Use plain `int' for number_value, to print negative values correctly.
6337         Use plain `int' for digits; there was no need to make it unsigned.
6338         Initialize subfmt consistently.
6339         Remove incorrect code for %EC and %Ey; they aren't implemented yet.
6340         For %O, if there is no alternate digit, output Ascii instead of "".
6341         Output the `%' of an unknown format; this is most likely the right
6342         thing to do if a multibyte string has been misparsed.
6344 Thu Sep 12 23:23:13 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6346         * stdio-common/scanf7.c (main): Remove extra conversion from
6347         printf format string.
6349 Thu Sep 12 23:01:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6351         * stdlib/test-canon.c (tests): Rename structure member from errno
6352         to error, all uses changed.
6354 Thu Sep 12 20:08:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6356         * sysdeps/m68k/fpu/__math.h (__ldexp, __ldexpf, __ldexpl):
6357         Removed.
6358         * sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
6359         sysdeps/m68k/fpu/s_ldexpl.c: Removed, use generic implementation
6360         instead.
6361         * sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
6362         sysdeps/m68k/fpu/s_scalbnl.c: Replaced with old contents of
6363         s_ldexp.c, s_ldexpf.c and s_ldexpl.c, resp., suitably adpted.
6365         * sysdeps/m68k/fpu/__math.h (__frexp, __frexpf, __frexpl):
6366         Return value must be in [0.5, 1), not [1, 2).  Reported by Chris
6367         Lawrence.
6368         (__ilogb, __ilogbf, __ilogbl): Check for argument being zero.
6369         (__scalbn, __scalbnf, __scalbnl): Use second argument directly.
6371 Thu Sep 12 19:59:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6373         * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
6374         * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
6376 Thu Sep 12 19:59:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6378         * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
6379         * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
6381 Thu Sep 12 19:56:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6383         * inet/herrno.c (__h_errno_location): Fix return type.
6385 Thu Sep 19 23:36:19 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6387         * hurd/hurdinit.c (__libc_argv): Provide common decl.
6388         (_hurd_setproc): Don't declare __libc_argv here.
6390 Fri Sep 13 04:33:08 1996  Ulrich Drepper  <drepper@cygnus.com>
6392         * sched.h: New file.  Helper to access posix/sched.h.
6393         * posix/sched.h: Change `sched_params' to `sched_param' to follow
6394         POSIX.4.
6396 Thu Sep 12 20:12:40 1996  Ulrich Drepper  <drepper@cygnus.com>
6398         * db/makedb.c (usage): Print bug report address separately to
6399         ease translators task.
6400         * catgets/gencat.c (usage): Likewise.
6401         * locale/locale.c (usage): Likewise.
6402         * locale/localedef.c (usage): Likewise.
6404 1996-09-12  Paul Eggert  <eggert@twinsun.com>
6406         * time/strftime.c (my_localtime_r): Define if ! HAVE_LOCALTIME_R,
6407         and #define localtime_r to it.  If _LIBC, use __localtime_r instead.
6408         (my_gmtime_r): Similar, except it's not needed if ! HAVE_TM_GMTOFF.
6410 Thu Sep 12 14:03:29 1996  Ulrich Drepper  <drepper@cygnus.com>
6412         * crypt/Makefile: Include Makeconfig and add crypt object dir to
6413         rpath-link so that running the check finds the new library.
6414         * crypt/cert.c: provide correct prototypes to prevent warnings.
6415         Reported by Andreas Jaeger.
6417         * sysdeps/mach/hurd/Makefile (rpath-link): Don't use += because
6418         old and new value must be glued using `:'.
6419         Reported by Marcus Daniels.
6421 Thu Sep 12 12:33:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6423         * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
6424         accidentally added on.
6426         * sysdeps/stub/intr-msg.h: New file.
6428         * stdio-common/vfprintf.c: Include <libc-lock.h>.
6429         * stdio-common/vfscanf.c: Include <libc-lock.h>.
6431         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
6432         macro.
6433         (__libc_cleanup_region_end): New macro.
6435 Thu Sep 12 12:33:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6437         * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
6438         accidentally added on.
6440         * sysdeps/stub/intr-msg.h: New file.
6442         * stdio-common/vfprintf.c: Include <libc-lock.h>.
6443         * stdio-common/vfscanf.c: Include <libc-lock.h>.
6445         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
6446         macro.
6447         (__libc_cleanup_region_end): New macro.
6449 Thu Sep 12 03:35:27 1996  Ulrich Drepper  <drepper@cygnus.com>
6451         * sysdeps/unix/sysv/linux/i386/Dist: Remove init-first.h.
6452         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
6453         * sysdeps/unix/sysv/linux/Dist: Add init-first.h.
6455 1996-09-11  Paul Eggert  <eggert@twinsun.com>
6457         * strftime.c (strftime):
6458         Handle E and O modifiers, required for POSIX.2 and XPG4.
6459         Don't use sprintf to format numbers; this way, we can handle time_t
6460         correctly regardless of whether it's signed.
6461         Don't dump core if format ends in %.
6462         In default %c format, use %e instead of %d, for POSIX.2 compatibility.
6463         For %z:
6464                 Use tm_gmtoff if available.
6465                 Output nothing if tm_isdst is negative.
6466                 Output correct value even if arg is 1969-12-31 23:59:59 UTC.
6467                 Don't assume that UTC offset is less than 24 hours;
6468                 Posix requires support for 24 hours, and there's no point
6469                 limiting it at all.
6470         (HAVE_TM_GMTOFF, TYPE_SIGNED, INT_STRLEN_BOUND): New macros.
6471         (CHAR_BIT): Define if <limits.h> doesn't.
6472         (tm_diff): New function.
6473         (fmt, <stdio.h>): Remove; no longer used.
6475 Thu Sep 12 02:21:44 1996  Ulrich Drepper  <drepper@cygnus.com>
6477         * db/Makefile: Add extra-libs-others variable so that shared
6478         library is built in `others' pass.
6479         * elf/Makefile: Likewise.
6480         * math/Makefile: Likewise.
6481         * resolv/Makefile: Likewise.
6483         * Makefile (generated): Add version.info.h.
6485         * time/checktab.awk: New file.  From ADO 96k.
6486         * time/iso3166.tab: Likewise.
6487         * time/tzselect.ksh: Likewise.
6488         * time/zone.tab: Likewise.
6490         * stdio-common/vfprintf.c: Correct cleanup registration.  We
6491         cannot use a macro
6493 1996-09-11  Paul Eggert  <eggert@twinsun.com>
6495         * time/time.h (tm_gmtoff, tm_zone): Prefix with `__' unless
6496         __USE_BSD; this is required for ANSI C compatibility.
6497         * manual/time.texi: Replace GMT by UTC, daylight savings by
6498         daylight saving, timezone by time zone.
6499         Rewrite description of %V to match ISO 8601.
6500         Fix TZ Posix string example for US Eastern time.
6501         Explain tzname[1] when DST isn't used.
6502         Explain tzname when multiple abbreviations used (e.g. EST/EWT/EDT).
6503         Explain that timezone's sign is opposite from tm_gmtoff, and that
6504         timezone lacks DST adjustment whereas tm_gmtoff has it.
6505         Deprecate tzname and timezone.
6507 Tue Sep 10 14:46:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6509         Implement Roland McGrath's idea of how to put an .interp into
6510         shared libraries.
6511         * interp.c: New file.
6512         * Makerules (interp-obj): New object, linked into every shared
6513         library.
6514         (common-generated): Add interp.so.
6515         (CFLAGS-interp.c): Pass name of interpreter.
6517 Tue Sep 10 21:09:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6519         * db/Makefile: Fix typo.
6521 Tue Sep 10 19:29:53 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6523         * nss/db-Makefile ($(VAR_DB)/passwd.db): Look for multiple
6524         occurences of the same uid, and only generate a mapping for the
6525         first one.
6527 Tue Sep 10 03:14:59 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6529         * sysdeps/unix/sysv/linux/system.c: New file, to override
6530         sysdeps/unix/system.c.
6532 Tue Sep 10 15:05:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6534         * Makefile (before-compile): Add version-info.h, needed to build
6535         version.d.
6537 Tue Sep 10 14:14:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6539         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Remove check for
6540         EWOULDBLOCK, never true on Linux.
6541         (__errno_location): New function.
6542         [_LIBC_REENTRANT]: Set errno using __errno_location function.
6543         * sysdeps/unix/sysv/linux/m68k/sysdep.h [PIC]: Add second
6544         syscall_error handler for reentrant libc.
6546 Tue Sep 10 13:27:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6548         * elf/Makefile (extra-objs): Add eval.so to get dependencies.
6550 Wed Sep 11 04:40:57 1996  Ulrich Drepper  <drepper@cygnus.com>
6552         * time/tzset.c (__tzname_cur_max): Use type `size_t' to avoid
6553         warning.
6554         * time/tzfile.c (compute_tzname_max): Likewise.
6556 Wed Sep 11 02:57:31 1996  Ulrich Drepper  <drepper@cygnus.com>
6558         * configure.in: Quote $add_ons argument in loop to generated
6559         prefices.
6561 Tue Sep 10 20:43:45 1996  Ulrich Drepper  <drepper@cygnus.com>
6563         * db/makedb.c: Include <locale.h>.  Reported by Fila Kolodny.
6565 Tue Sep 10 14:42:39 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
6567         * elf/dl-cache.c: Rename to ...
6568         * sysdeps/generic/dl-cache.c:  ... here.
6569         * sysdeps/mach/hurd/dl-cache.c: New file.
6570         
6571         * mach/Makefile (distribute): Add `errsystems.awk'.
6572         * hurd/Makefile (distribute): Add `Notes' and `intr-msg.h'.
6573         * hurd/hurdintr.awk: Delete file.  (Not used in ages.)
6574         * hurd/intr-rpc.awk: Likewise.
6575         * hurd/invoke-trans.c: Likewise.
6576         * sysdeps/mach/hurd/i386/longjmp-ctx.c: Likewise.
6577         * sysdeps/mach/hurd/alpha/longjmp-ctx.c: Likewise.
6578         * sysdeps/mach/hurd/mips/longjmp-ctx.c: Likewise.
6579         * sysdeps/mach/hurd/i386/init-fault.c: Likewise.
6580         * sysdeps/mach/hurd/mips/init-fault.c: Likewise.
6581         * sysdeps/stub/init-fault.c: Likewise.
6582         * sysdeps/stub/longjmp-ctx.c: Likewise.
6583         
6584 Tue Sep 10 13:49:08 1996  Ulrich Drepper  <drepper@cygnus.com>
6586         * inet/herrno.c: Initialize `h_errno' so that we can provide
6587         alias.
6589         * Makefile (version-info.h): Fix typo in shell script.
6591         * sysdeps/i386/i586/strlen.S: Optimize startup code a bit.
6592         * sysdeps/i386/i586/strchr.S: Likewise.
6594 Mon Sep  9 20:31:27 1996  Ulrich Drepper  <drepper@cygnus.com>
6596         * version.c (banner): Report to bug-glibc@prep not @gnu.
6597         Reported by Andreas Jaeger.
6599         * libio/stdio.h [!__USE_REENTRANT]: Don't define getc as
6600         _IO_getc_unlocked.
6601         [__USE_REENTRANT]: Don't define
6603 Mon Sep  9 15:59:32 1996  Ulrich Drepper  <drepper@cygnus.com>
6605         * sysdeps/i386/strrchr.c: Fix bug where NUL byte is not recognized
6606         when it is the third byte in the string.  Reported by
6607         NIIBE Yutaka.
6608         * string/tester.c: Add tests for above bug to strlen, strchr, and
6609         strrchr tests.
6611 Fri Sep  6 21:23:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6613         * sysdeps/m68k/fpu/e_acos.c: Deansideclized.  Include
6614         "math_private.h" to get prototype.
6615         * sysdeps/m68k/fpu/e_fmod.c: Likewise.
6616         * sysdeps/m68k/fpu/k_cos.c: Likewise.
6617         * sysdeps/m68k/fpu/k_sin.c: Likewise.
6618         * sysdeps/m68k/fpu/k_tan.c: Likewise.
6620         * sysdeps/m68k/fpu/k_sin.c: Remove uneeded indirection of
6621         __m81_u.
6622         * sysdeps/m68k/fpu/k_tan.c: Likewise.
6624 Sun Sep  1 18:01:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6626         * sysdeps/m68k/fpu/__math.h: Check for __NO_M81_MATH_INLINES
6627         instead of __NO_MATH_INLINES.
6628         (__M81_MATH_INLINES): Renamed from __MATH_INLINES.
6629         * sysdeps/m68k/fpu/e_acos.c: Define __NO_M81_MATH_INLINES.
6630         * sysdeps/m68k/fpu/e_fmod.c: Likewise.
6631         * sysdeps/m68k/fpu/k_cos.c: Likewise.
6632         * sysdeps/m68k/fpu/k_sin.c: Likewise.
6633         * sysdeps/m68k/fpu/k_tan.c: Likewise.
6634         * sysdeps/m68k/fpu/s_atan.c: Likewise.
6635         * sysdeps/m68k/fpu/s_frexp.c: Likewise.
6636         * sysdeps/m68k/fpu/s_ilogb.c: Likewise.
6637         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
6638         * sysdeps/m68k/fpu/s_ldexp.c: Likewise.
6639         * sysdeps/m68k/fpu/s_modf.c: Likewise.
6640         * sysdeps/m68k/fpu/k_cos.c: Use inline version of __cos.
6641         * sysdeps/m68k/fpu/k_sin.c: Likewise.
6642         * sysdeps/m68k/fpu/k_tan.c: Likewise.
6644 Mon Sep  9 12:55:14 1996  Ulrich Drepper  <drepper@cygnus.com>
6646         * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): Check for
6647         available character before converting number and return with
6648         error if none is available.
6650 Fri Sep  6 22:09:08 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6652         * sysdeps/unix/sysv/linux/init-first.h: New file, generic
6653         implementation for architectures where parameters are passed on
6654         stack.
6655         * sysdeps/unix/sysv/linux/m68k/init-first.h: Removed.
6656         * sysdeps/unix/sysv/linux/i386/init-first.h: Removed.
6658 Fri Sep  6 22:05:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6660         * configure.in: Remove unneeded sysnames frobbing.
6662 Mon Sep  9 05:29:09 1996  Ulrich Drepper  <drepper@cygnus.com>
6664         * time/zic.c: Update from ADO 96l.
6665         * time/africa: Update from ADO 96k.
6666         * time/antarctica: Likewise.
6667         * time/asia: Likewise.
6668         * time/australia: Likewise.
6669         * time/europe: Likewise.
6670         * time/northamerica: Likewise.
6671         * time/southamerica: Likewise.
6673 Mon Sep  9 05:03:47 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
6675         * sysdeps/unix/sysv/linux/i386/init-first.h: Work around buggy
6676         gcc <= 2.7.2.1 which optimizes away address operations on weak
6677         objects.
6679         * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): New macro.
6680         Like INT_FIELD but also accept non-existing field.
6681         * shadow/sgetspent_r.c (LINE_PARSER): Use INT_FIELD_MAYBE_NULL
6682         for last four fields.
6683         * shadow/putspent.c (putspent): Print `:' after numeric value.
6685 Mon Sep  9 02:42:48 1996  Richard Henderson  <rth@tamu.edu>
6687         * libio/stdio.h (BUFSIZ): Define using _IO_BUFSIZ.
6689 Sun Sep  8 16:43:56 1996  Ulrich Drepper  <drepper@cygnus.com>
6691         * Make-dist: Filter out $(add-ons) from $(subdirs).
6692         Don't distribute TAGS files.
6693         ($(tardir).tar): Remove dist.tar when all is done.
6694         * manual/Makefile (distribute): Add libc.info*.
6695         * libio/Makefile (distribute): Add Banner.
6696         * inet/Makefile (headers): Add netinet/tcp.h.
6698         * resolv/Makefile (libresolv-routines): Add getnetnamadr.
6700         * crypt-README: Removed.
6701         * gnu-stabs.h: Removed.
6703         * sysdeps/alpha/copysign.S: Renamed to...
6704         * sysdeps/alpha/s_copysign.S: ...this.
6705         * sysdeps/alpha/fabs.S: Renamed to...
6706         * sysdeps/alpha/s_fabs.S: ...this.
6708         * sysdeps/m68k/isinfl.c: Renamed to...
6709         * sysdeps/m68k/s_isinfl.c: ...this.
6710         * sysdeps/m68k/isnanl.c: Renamed to...
6711         * sysdeps/m68k/s_isnanl.c: ...this.
6713         * sysdeps/sparc/sqrt.c: Renamed to...
6714         * sysdeps/sparc/e_sqrt.c: ...this.  Function name now is
6715         __ieee754_sqrt.
6717         * sysdeps/generic/get_str.c: Removed.
6719         * sysdeps/ieee754/cbrt.c: Removed.
6720         * sysdeps/ieee754/drem.c: Removed.
6721         * sysdeps/ieee754/logb.c: Removed.
6722         * sysdeps/ieee754/sqrt.c: Removed.
6724         * sysdeps/stub/cbrt.c: Removed.
6725         * sysdeps/stub/cos.c: Removed.
6726         * sysdeps/stub/drem.c: Removed.
6727         * sysdeps/stub/isinf.c: Removed.
6728         * sysdeps/stub/isinfl.c: Removed.
6729         * sysdeps/stub/isnanl.c: Removed.
6730         * sysdeps/stub/logb.c: Removed.
6731         * sysdeps/stub/sin.c: Removed.
6732         * sysdeps/stub/sqrt.c: Removed.
6734         * sysdeps/tahoe/log10.c: Removed.
6736         * sysdeps/vax/index.s: Removed.
6737         * sysdeps/vax/rindex.s: Removed.
6738         * sysdeps/vax/bcmp.s: Removed.
6739         * sysdeps/vax/log10.c: Removed.
6740         * sysdeps/vax/infnan.c: Removed.
6741         * sysdeps/vax/Dist: Add fl.h.
6743         * sysdeps/unix/sysv/linux/alpha/Dist: Add llseek.S.
6745         * inet/rcmd.c (rcmd): Make messages more uniform.
6747 Sun Sep  8 14:15:42 1996  Ulrich Drepper  <drepper@cygnus.com>
6749         * po/de.po: Update.
6750         * po/es.po: Update.
6751         * po/ko.po: Update.
6752         * po/pl.po: New file.
6753         * po/nl.po: New file.
6755 Sat Sep  7 18:41:17 1996  Richard Henderson  <rth@tamu.edu>
6757         * Makeconfig (+link): Filter out start, pre & postinit from the
6758         generic depenancies as well.
6759         * Rules: Add start, pre & postinit to the dependancies of
6760         $(others) and $(tests).
6762         * configure.in: elf_dirs missing "sysdeps" component.
6764 Sun Sep  8 02:36:02 1996  Ulrich Drepper  <drepper@cygnus.com>
6766         * locale/SYS_libc.c (_libc_intl_domainname): Change value to "libc".
6767         This is consistent with all other GNU packages.  We shouldn't
6768         take care for a possible clash.  Nobody will name the domain
6769         of a package libc if it is not the libc itself.
6770         * MakeTAGS ($P/SYS_libc.pot): Rename to $P/libc.pot.
6771         * po/Makefile (domainname): Change to libc.
6772         (distribute): Now ship libc.pot.
6773         * catgets/gencat.c (usage): Use `PACKAGE' for package name in
6774         version information banner.
6775         Change bug report address to bug-glibc@prep not @gnu.
6776         * db/makedb.c (PACKAGE): New macro.  Set to _libc_intl_domain.
6777         (main): Use `PACKAGE' for package name in version information
6778         banner.
6779         Change bug report address to bug-glibc@prep not @gnu.
6780         * locale/programs/locale.c (main): Use `PACKAGE' for package name
6781         in version information banner.
6782         Change bug report address to bug-glibc@prep not @gnu.
6783         * locale/programs/localedef.c (main): Likewise.
6785         * version.h (VERSION): Bump to 1.94.
6787         * locale/Makefile (distribute): Add locale.c and localedef.c.
6789 Sat Sep  7 14:00:33 1996  David Mosberger-Tang  <davidm@azstarnet.com>
6791         * catgets/catgets.c (catopen): Allocate sizeof(*result) bytes
6792         instead of sizeof(nl_catd) (which is just a pointer!).
6794 Sat Sep  7 19:39:19 1996  Ulrich Drepper  <drepper@cygnus.com>
6796         * Makefile ($(objpfx)version-info.h): Generate from Banner files.
6797         * version.c (banner): Add contents of version-info.h to string.
6799         * Makerules: If $($(subdir)-version) is available name versioned
6800         shared library according to this value instead of glibc's version.
6802         * libio/Banner: New file.
6804         * elf/eval.c (funcall): Write error message in case function is
6805         not found.
6806         (eval): Recognize `_' in names.
6808 Sat Sep  7 05:15:45 1996  Ulrich Drepper  <drepper@cygnus.com>
6810         * libio/iofdopen: Initialize _lock field only if _IO_MTSAFE_IO.
6811         * libio/iofopen: Likewise.
6812         * libio/iofopncook.c: Likewise.
6813         * libio/iopopen.c: Likewise.
6814         * libio/iovsprintf.c: Likewise.
6815         * libio/iovsscanf.c: Likewise.
6816         * libio/memstream.c: Likewise.
6817         * libio/vasprintf.c: Likewise.
6818         * libio/vdprintf.c: Likewise.
6819         * libio/vsnprintf.c: Likewise.
6821 Sat Sep  7 03:55:47 1996  Ulrich Drepper  <drepper@cygnus.com>
6823         * Makeconfig (soversions.mk): Also use shlib-versions files
6824         in add-on directories.
6825         * config.make.in (config-defines): Remove.  Not used anymore.
6826         (defines): New variable.  Initiliazed by @DEFINES@.
6827         * configure.in: Add AC_SUBST(DEFINES).
6829         * libio/Makefile (routines): When compiling reentrant libc add
6830         clearerr_u, feof_u, ferror_u, fputc_u, getc_u, getchar_u,
6831         iofflush_u, putc_u, putchar_u, ioflockfile.
6832         (CPPFLAGS): Add -D_IO_MTSAFE_IO for reentrant libc.
6834         * sysdeps/stub/libc-lock.h: Add stubs for __libc_cleanup_region_start
6835         and __libc_cleanup_region_end.
6837         * sysdeps/unix/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
6838         using __errno_location function.
6839         * sysdeps/unix/sysv/linux/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
6840         using __errno_location function.
6841         (__errno_location): New function.
6842         * sysdeps/unix/sysv/linux/i386/sysdep.h [PIC]: Add second
6843         syscall_error handler for reentrant libc.
6845         * sysdeps/unix/opendir.c: Remove unneeded `;'.
6847         * libio.h [_IO_MTSAFE_IO]: Include <pthread.h>.
6848         [!_IO_MTSAFE_IO]: Define _IO_flockfile and _IO_funlockfile
6849         as empty macros.
6850         * libioP.h: Include <libc-lock.h>.
6851         * libio/stdio.h: Add prototypes for *_locked and *_unlocked
6852         functions.
6854         * libio/clearerr.c: Use _IO_ protected versions of flockfile
6855         and funlockfile to be namespace clean.
6857         * libio/genops.c: Use __libc_lock_* macros for handling lock.
6859         * libio/iofdopen: Add initialization of _lock in _IO_FILE.
6860         * libio/iofopen: Likewise.
6861         * libio/iofopncook.c: Likewise.
6862         * libio/iopopen.c: Likewise.
6863         * libio/iovsprintf.c: Likewise.
6864         * libio/iovsscanf.c: Likewise.
6865         * libio/memstream.c: Likewise.
6866         * libio/vasprintf.c: Likewise.
6867         * libio/vdprintf.c: Likewise.
6868         * libio/vsnprintf.c: Likewise.
6870         * libio/fgetc.c: Use __libc_cleanup_region_* macros instead
6871         of flockfile etc.
6872         * libio/fputc.c: Likewise.
6873         * libio/freopen.c: Likewise.
6874         * libio/fseek.c: Likewise.
6875         * libio/getc.c: Likewise.
6876         * libio/getchar.c: Likewise.
6877         * libio/iofclose.c: Likewise.
6878         * libio/iofflush.c: Likewise.
6879         * libio/iofgetpos.c: Likewise.
6880         * libio/iofgets.c: Likewise.
6881         * libio/iofputs.c: Likewise.
6882         * libio/iofread.c: Likewise.
6883         * libio/iofsetpos.c: Likewise.
6884         * libio/ioftell.c: Likewise.
6885         * libio/iofwrite.c: Likewise.
6886         * libio/iogetdelim.c: Likewise.
6887         * libio/iogets.c: Likewise.
6888         * libio/ioputs.c: Likewise.
6889         * libio/iosetbuffer.c: Likewise.
6890         * libio/iosetvbuf.c: Likewise.
6891         * libio/ioungetc.c: Likewise.
6892         * libio/putc.c: Likewise.
6893         * libio/putchar.c: Likewise.
6894         * libio/rewind.c: Likewise.
6895         * stdio-common/vfprintf.c: Likewise.
6896         * stdio-common/vfscanf.c: Likewise.
6898         * libio/clearerr_u.c: Correct alias name.
6899         * libio/ferror_u.c: Likewise.
6900         * libio/fileno.c: Likewise.
6901         * libio/fputc_u.c: Likewise.
6902         * libio/getc.c: Likewise.
6903         * libio/getc_u.c: Likewise.
6904         * libio/getchar.c: Likewise.
6905         * libio/getchar_u.c: Likewise.
6906         * libio/putc.c: Likewise.
6907         * libio/putchar.c: Likewise.
6909         * libio/feof_u.c: Undefine macro with name of function before
6910         definition of function itself.
6912         * libio/ioflockfile.c: New file.  Implementation of flockfile and
6913         funlockfile.
6915         * libio/putchar_u.c: Fix typo.  Use stdout instead of fp.
6917         * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
6918         _malloc_loc.
6920         * malloc/free.c: Include <libc-lock.h>.
6921         * malloc/realloc.c: Likewise.
6922         * malloc/malloc-find.c: Likewise.
6923         * malloc/malloc-size.c: Likewise.
6924         * malloc/malloc-walk.c: Likewise.
6925         * malloc/memalign.c: Likewise.
6926         * malloc/malloc.c: Likewise.
6928         * sysdeps/i386/dl-machine.h: Correct clearing of _dl_starting_up.
6930 Fri Sep  6 19:38:49 1996  Ulrich Drepper  <drepper@cygnus.com>
6932         * sysdeps/stub/libc-lock.h: Define __libc_lock_critical_start
6933         and __libc_lock_critical_end as empty macros.
6935         * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
6936         __libc_malloc_lock.
6937         * malloc/free.c: Include <libc-lock.h>.
6938         * malloc/malloc-find.c: Likewise.
6939         * malloc/malloc-size.c: Likewise.
6940         * malloc/malloc-walk.c: Likewise.
6941         * malloc/malloc.c: Likewise.
6942         * malloc/memalign.c: Likewise.
6943         * malloc/realloc.c: Likewise.
6945         * Makefile: Undo change from Mon Sep  2 22:15:14 1996.  No more
6946         extra_solibs pass.
6947         * Rules: Likewise.
6948         * extra-lib.mk: Likewise.
6949         * manual/Makefile: Likewise.
6951         * db/Makefile (makedb): Choose dependecies based on build-shared.
6952         Patch by Andres Schwab.
6954         * sysdeps/posix/sysconf.c: Don't use PTHREAD_DESTRUCTOR_ITERATIONS
6955         but _POSIX_THREAD_DESTRUCTOR_ITERATIONS.
6957         * sysdeps/unix/sysv/linux/errnos.h: New file.
6958         * sysdeps/unix/sysv/linux/schedbits.h: New file.
6959         * sysdeps/unix/sysv/linux/waitflags.h: New file.
6961         * sysdeps/unix/sysv/linux/gnu/types.h: Add definition of `key_t'.
6963 Fri Sep  6 08:26:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
6965         * rpm/template: Fix typo in %build section.
6967 Fri Sep  6 03:31:07 1996  Ulrich Drepper  <drepper@cygnus.com>
6969         * sysdeps/unix/sysv/linux/errnos.h: Don't define errno macro when
6970         building libc without thread support.
6971         * resolv/netdb.h: Likewise for h_errno macro.
6973 Thu Sep  5 23:01:48 1996  Ulrich Drepper  <drepper@cygnus.com>
6975         * libc-symbols.h: Add new macro weak_const_function.  It's like
6976         weak_function, but the function is additionally marked as const.
6977         * features.h: Only include <sys/cdefs.h> if !__ASSEMBLER__.
6979 Thu Sep  5 22:55:49 1996  Richard Henderson  <rth@tamu.edu>
6981         * inet/herrno.c (__h_errno_location): New function.
6982         (h_errno): Make strong_alias __h_errno so that we can access
6983         the variable even if `h_errno' is a macro.
6984         * resolv/netdb.h: Define macro h_errno to access thread specific
6985         version of h_errno variable.  Declare alias __h_errno for h_errno.
6986         * resolv/res_query (h_errno): Remove definition.
6987         * sysdeps/unix/sysv/linux/errnos.h [!__ASSEMBLER__ && __USE_REENTRANT]:
6988         Add macro `errno' to get thread specific variable.
6989         * sysdeps/unix/alpha/sysdep.S [_LIBC_REENTRANT]: Set errno using
6990         __errno_location function.
6991         (__errno_location): New function.
6993 Thu Sep  5 21:08:44 1996  Ulrich Drepper  <drepper@cygnus.com>
6995         * posix/gnu/types.h: Remove definition of key_t.
6996         * sysdeps/generic/gnu/types.h: Move it to here.
6997         * sysdeps/unix/sysv/linux/gnu/types.h: Add Linux specific
6998         definition of key_t.
7000         * sysdeps/unix/sysv/linux/waitflags.h: New file.  Linux specific
7001         definitions.
7002         * sysdeps/unix/sysv/linux/schedbits.h: New file.  Include
7003         clone prototypes and associated flags.
7005 Thu Sep  5 13:18:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
7007         * sysdeps/mach/hurd/i386/init-first.c (__libc_argc, __libc_argv):
7008         New variables.
7009         (init1): Initialize them.
7010         * hurd/hurdinit.c (_hurd_setproc): Now that happens to be
7011         available, pass __libc_argv in call to __proc_set_arg_locations.
7013         * gmon/gmon.c (write_hist): Call __profile_frequency instead of
7014         hertz.
7015         (hertz): Delete function.
7016         * gmon/Makefile (routines): Add `prof-freq'.
7017         * sysdeps/generic/prof-freq.c: New file.
7018         * sysdeps/mach/hurd/prof-freq.c: New (stubby) file.
7019         * sysdeps/mach/hurd/profil.c (profile_tick): New variable.
7020         (update_waiter): Store frequency in profile_tick.
7021         (__profile_frequency): New function.
7023         * sysdeps/mach/hurd/sendto.c (sendto): Use prototype definition
7024         syntax.
7026         * Rules (generated): Restore reference to $(generated).
7028         * mach/Machrules (mig.uh, mig.__h): Don't include $(user-MIGFLAGS)
7029         here.
7031         * malloc/free.c (free): __lib_malloc_lock -> __libc_malloc_lock.
7033         * malloc/free.c: Provide extern decl of __libc_malloc_lock.
7034         * malloc/realloc.c: Likewise.
7035         * malloc/malloc-find.c: Likewise.
7036         * malloc/malloc-size.c: Likewise.
7037         * malloc/malloc-walk.c: Likewise.
7038         * malloc/memalign.c: Likewise.
7040 Thu Sep  5 08:58:47 1996  Richard Henderson  <rth@tamu.edu>
7042         * sysdeps/alpha/elf/start.S: Make _start global again.
7044 Thu Sep  5 03:20:42 1996  Ulrich Drepper  <drepper@cygnus.com>
7046         Change configuration and Makefiles to allow add-ons to have a
7047         sysdeps/ directory hierachy.
7048         * configure.in: Test for sysdeps/ directory in add-ons.  Before
7049         all test and searches in these hierachies, too.
7050         * Makeconfig (full-config-subdirs): Define based on $(config-sysdirs).
7051         Extend with $(..) if not absolute path.
7052         Use $(full-config-subdirs) where $(config-sysdirs) was used.
7053         * Makefile ($(objpfx)sysd-dirs): Use config-sysdirs.
7054         * MakeTAGS: Use $(full-config-subdirs).
7055         * Makerules: Change comment to libc.so link script.
7056         (sysdirs): Define based on $(full-config-subdirs).
7057         (sysd-Makefile): Define using config-sysdirs.
7058         (sysd-rules): Likewise.
7059         * sysdeps/unix/Makefile (sysd-syscalls): Define based on +sysdep-dirs.
7060         * sysdeps/unix/make-syscalls.sh: Remove basedir argument.
7062 Wed Sep  4 01:32:21 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7064         * sysdeps/m68k/fpu/k_cos.c: Rewritten for better accuracy.
7065         * sysdeps/m68k/fpu/k_sin.c: Likewise.
7066         * sysdeps/m68k/fpu/k_tan.c: Likewise.
7068 Thu Sep  5 01:06:09 1996  Richard Henderson  <rth@tamu.edu>
7070         * malloc/free.c (free): Protect by using __libc_malloc_lock.
7071         * malloc/malloc-find.c (malloc_find_object_address): Likewise.
7072         * malloc/malloc-size.c (malloc_usable_size): Likewise.
7073         * malloc/malloc-walk.c (malloc_walk): Likewise.
7074         * malloc/memalign.c (memalign): Likewise.
7075         * malloc/realloc.c (realloc): Likewise.
7076         * malloc/malloc.c: Define __libc_malloc_lock.
7077         (_malloc_internal): Don't use `malloc'.  Instead look for
7078         `__malloc_hook' or call `_malloc_internal'.
7079         (malloc): Protect by using `__libc_malloc_lock'.
7080         * malloc/malloc.h: Declare `__libc_malloc_lock'.
7082 Mon Sep  2 22:42:59 1996  Richard Henderson  <rth@tamu.edu>
7084         * sysdeps/alpha/elf/start.S: Use weak_alias for __start
7085         instead of the hard definition.
7087         * sysdeps/alpha/dl-machine.h (RTLD_START): Add type info for
7088         _start and _dl_start_user.
7090         * sysdeps/unix/sysv/linux/alpha/init-first.h (SYSDEP_CALL_INIT):
7091         Make _dl_starting_up weak.  Add type info for NAME.
7093 Mon Sep  2 22:15:14 1996  Richard Henderson  <rth@tamu.edu>
7095         * Makefile (all): Add extra_solibs pass.
7096         (+subdir_targets): Same.
7097         * Rules (extra_solibs): New phony empty target for subdirs without
7098         extra libs.
7099         * extra-lib.mk: Build lib*.so* in extra_solibs not lib-noranlib.
7100         * manual/Makefile: Add dummy extra_solibs target.
7102 Sun Sep  1 15:41:22 1996  Richard Henderson  <rth@tamu.edu>
7104         * Makeconfig (+link): Add $(link-extra-libs).
7105         (link-extra-libs): New variable which expands to the full paths of
7106         the other libraries needed by a program, as controled by LDLIBS-$(@F).
7107         * db/Makefile: Use LDLIBS-makedb to link libdb not a dependency, as
7108         the later attempts to install the library before linking it.
7110         * sysdeps/unix/alpha/sysdep.S: Align errno.
7112         * sysdeps/unix/sysv/linux/alpha/ioperm.c (struct platform): Add
7113         hae_shift entry.
7114         (io): Move bus_memory_base and sparse_bus_memory_base into struct.
7115         (_hae_shift): New function.
7116         * sysdeps/unix/sysv/linux/alpha/sys/io.h: New file.  Prototypes
7117         for the bus query functions.
7119 Sat Aug 31 18:14:54 1996  Richard Henderson  <rth@tamu.edu>
7121         * elf/dl-close.c (_dl_close): In static executables, map->l_prev
7122         can be NULL when unloading a library.
7124         * elf/dl-open.c (_dl_open): Pass __environ instead of __libc_envp
7125         to the library .init function.
7127         * sysdeps/alpha/dl-machine.h (elf_machine_rela):  Since we omitted
7128         part of the COPY reloc processing earlier, omit the rest now --
7129         we'll get into less trouble later when some fool does use a COPY.
7131         * sysdeps/unix/sysv/linux/init-first.c (init): Accept argc et al as
7132         parameters.  Move all argc and __libc_multiple_libcs calculation out
7133         to init-first.h.  Use __environ not __libc_envp.
7134         * sysdeps/unix/sysv/linux/alpha/init-first.h: Rewrite.
7135         * sysdeps/unix/sysv/linux/i386/init-first.h: Rewrite.
7137 Thu Aug 29 20:26:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7139         * sysdeps/posix/profil.c (profil): Don't clobber saved timer and
7140         signal settings when profiling was already turned on.
7142         * csu/gmon-start.c (__gmon_start__) [HAVE_INITFINI]: Protect from
7143         being called twice.
7145 Wed Sep  4 01:31:50 1996  Ulrich Drepper  <drepper@cygnus.com>
7147         * sysdeps/unix/sysv/linux/i386/mmap.S: Test for
7148         0 < return value < -4096 and not < 0 to decide about failure.
7149         Reported by Andreas Jaeger.
7151 Tue Sep  3 19:04:05 1996  Ulrich Drepper  <drepper@cygnus.com>
7153         * stdio-common/vfscanf.c (__vfscanf): Don't count EOF char
7154         in %c format.
7156 Sat Aug 31 18:10:51 1996  Ulrich Drepper  <drepper@cygnus.com>
7158         * wcsmbs/wchar.h: Define prototypes for wcstoq and wcstouq only
7159         #ifdef __USE_GNU.
7161 Sat Aug 31 12:34:29 1996  Ulrich Drepper  <drepper@cygnus.com>
7163         * version.c: Add missing newline character in banner.
7165         * sysdeps/unix/sysv/linux/alpha/Dist: Correct typo.
7166         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
7168 Sat Aug 31 03:07:39 1996  Ulrich Drepper  <drepper@cygnus.com>
7170         * intl/l10nflist.c (_nl_normalize_codeset): We convert to lower
7171         case, so don't prepend uppercase `ISO' for only numeric arg.
7173 Wed Sep  4 16:16:13 1996  Ulrich Drepper  <drepper@cygnus.com>
7175         * sysdeps/mach/hurd/send.c (__send): De-ANSI-fy.
7176         * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
7178 Tue Sep  3 11:16:07 1996  Thomas Bushnell/ n/BSG  <thomas@gnu.ai.mit.edu>
7180         * shadow/lckpwdf.c (__ulckpwdf): Don't take address of LOCK in
7181         call to __libc_lock_lock.
7183         * sysdeps/mach/hurd/send.c (__send): Declare BUF const.
7184         * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
7186         * sysdeps/stub/ustat.c: Include <sys/ustat.h>.
7188         * misc/syslog.c (vsyslog): Fix typo (`mow_tm' -> `now_tm').
7190 Fri Aug 30 19:55:27 1996  Ulrich Drepper  <drepper@cygnus.com>
7192         * libio/genops.c: Make _cleanup an alias of _IO_cleanup.
7193         Reported by Erik Troan.
7195 Fri Aug 30 15:40:04 1996  Ulrich Drepper  <drepper@cygnus.com>
7197         * sysdeps/unix/sysv/linux/Dist: Add sys/procfs.h and
7198         sys/sysmacros.h.  Reported by Curtiss <1CMC3466@IBM.MTSAC.EDU>.
7200 Fri Aug 30 13:53:32 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
7202         * sysdeps/unix/mman/syscalls.list: `mmap' has 6 arguments, not 5.
7204 Fri Aug 30 13:01:10 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
7206         * sysdeps/i386/fpu/__math.h (tan): Pop 1.0 in ST to get
7207         real result.
7209 Fri Aug 30 03:33:33 1996  Ulrich Drepper  <drepper@cygnus.com>
7211         * sysdeps/libm-ieee754/s_cbrtl.c: New file.  `long double'
7212         implementation.
7214 Fri Aug 30 13:39:21 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
7216         * Makerules (BUILD_CFLAGS): Use @(common-objpfx) for config.h, not
7217         $(..).  Some rules (like sysdeps/posix/Makefile for mk-stdiolim)
7218         do `cd' commands.
7219         (sed-remove-objpfx): Don't substitute for $(objpfx) anymore;
7220         $(common-objpfx) is good enough.
7221         * Rules (common-generated): Provide default (empty) value.
7222         (dummy.o, dummy.c, empty.o, empty.c): Put these in
7223         $(common-generated), not $(generated), and without $(..).
7224         (subdir_echo-distinfo): Treat $(common-generated) just like
7225         $(generated).
7226         (generated): Depend on the (suitably mutated) $(common-generated)
7227         files too.
7228         * Makerules (common-clean): Remove common-generated files too.
7229         * sysdeps/mach/hurd/Makefile (generated): Don't put errnos.d and
7230         stamp-errnos here.
7231         (common-generated): Do put errnos.d and stamp-errnos here.
7232         (rpath-link): Don't use +=; $(rpath-link) is a colon separated list.
7234         * sysdeps/mach/hurd/Makefile (before-compile): Add auth; also add
7235         auth to following rule to get it built.
7237 Fri Aug 30 01:26:44 1996  Ulrich Drepper  <drepper@cygnus.com>
7239         * sysdeps/unix/sysv/linux/i386/Dist: Add clone.S.
7240         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
7241         * sysdeps/unix/sysv/linux/alpha/Dist: Likewise.
7243         * version.c: Add comment about where to report bugs to.
7244         * catgets/gencat.c (usage): Likewise.
7245         * db/makedb.c (usage): Likewise.
7246         * locale/programs/locale.c (usage): Likewise.
7247         * locale/programs/localedef.c (usage): Likewise.
7249         * manual/socket.texi: A little bit better wording.
7251 Thu Aug 29 18:03:06 1996  Ulrich Drepper  <drepper@cygnus.com>
7253         * Makerules: Make sure directory exists before generating stamp file.
7254         (BUILD_CFLAGS): Always refer to using $(..).
7255         * manual/Makefile: Make sure directory exists before generating
7256         stamp file.
7257         (make-target-directory): Add macro definition.
7258         * sysdeps/generic/Makefile: Make sure directory exists before
7259         generating stamp file.
7261         * Makefile (distribute): Add autolock.sh.  Reported by Fila Kolodny.
7263 Tue Aug 27 10:06:22 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7265         When compiling in separate directory put objects into
7266         subdirectories matching the source layout.
7267         * Makeconfig (objpfx) [ifdef objdir]: Append $(subdir).
7268         When looking for configparms try in $(common-objpfx).
7269         Use $(common-objpfx)SUBDIR to find objects from other subdirectory
7270         builds.
7271         * Makerules: Add $(objpfx) to vpath list.
7272         (make-dummy-dep): Use $(common-objpfx) to avoid creating dummy.d
7273         more than once.  All uses in dependency lists changed.
7274         (+make-deps): Make target directory.
7275         (sed-remove-objpfx): Substitute $(common-objpfx).
7276         (do-ar, build-extra-lib, $(common-objpfx)stub-$(subdir)): Use
7277         $(objpfx) instead of $(objdir) for cd command.
7278         (O%-lib): Always find libc relative to $(..).
7279         (subdir-stamps): Collect stamp files from subdirs.
7280         (common-mostlyclean): Remove stub file in $(common-objpfx).
7281         * MakeTAGS ($P/siglist.pot): Find siglist.c in stdio-common.
7282         * Rules (dep-dummy-lib): Use $(common-objpfx) to avoid creating to
7283         more than once.
7284         ($(objpfx)dummy.c, $(objpfx)empty.c): Change target name to use
7285         $(common-objpfx).  All uses in dependency lists changed.
7286         (generated): Prepend $(..) to names.
7287         * bare/Makefile ($(objpfx)lib$(config-vendor).a): Remove $(objpfx)
7288         from $@.
7289         * nss/Makefile ($(objpfx)libnss_dns.so, $(objpfx)libnss_db.so):
7290         Use $(common-objpfx) instead of $(..) in dependencies.
7291         * sysdeps/mach/Makefile (mach-objpfx): Unconditionally use
7292         $(common-objpfx) instead of $(..) and (objpfx).
7293         * sysdeps/mach/hurd/Makefile (hurd-objpfx): Likewise.
7294         (rpath-link): Likewise.
7295         (rpcuserlibs): Likewise.
7296         * sysdeps/unix/Makefile [$(subdir) = stdio-common]: Check for
7297         errlist.c in $(objpfx), not $(common-objpfx).
7298         ($(common-objpfx)s-proto.d): Special rule not covered by pattern
7299         rule.
7300         * sysdeps/unix/make-syscalls.sh: Make syscall rules depending on
7301         s-proto.d in $(common-objpfx), not $(objpfx).
7303 Thu Aug 29 17:45:49 1996  Ulrich Drepper  <drepper@cygnus.com>
7305         * nss/nsswitch.c (nss_dlerror_run): Free returned error
7306         string.
7308 Thu Aug 29 15:53:33 1996  Ulrich Drepper  <drepper@cygnus.com>
7310         * sysdeps/libm-ieee754/e_acoshl.c: New file. `long double'
7311         implementation.
7312         * sysdeps/libm-ieee754/e_atanhl.c: Likewise.
7313         * sysdeps/libm-ieee754/e_remainderl.c: Likewise.
7314         * sysdeps/libm-ieee754/e_scalbl.c: Likewise.
7315         * sysdeps/libm-ieee754/s_asinhl.c: Likewise.
7316         * sysdeps/libm-ieee754/s_cosl.c: Likewise.
7317         * sysdeps/libm-ieee754/s_sinl.c: Likewise.
7318         * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
7319         * sysdeps/libm-ieee754/s_tanl.c: Likewise.
7321 Thu Aug 29 12:00:30 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
7322         
7323         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Correct
7324         spelling error of _hurd_itimerval.
7326         * mach/Makefile (MIGFLAGS-mach/mach4): Define variable.
7327         * mach/Machrules (mig.uh, mig.__h): Include $(user-MIGFLAGS) and
7328         $(MIGFLAGS-$*) here too, as well as in the code-generating MiG calls. 
7329         
7330         * hurd/hurdinline.c: Include "hurd.h" for function definitions too. 
7331         
7332         * stdio/fseek.c (fseek): Don't assume we know the file position;
7333         other handles may have changed it.  So set STREAM.__offset to -1
7334         before calling __stdio_check_offset to make sure we have a correct
7335         value.
7337 Thu Aug 29 00:28:08 1996  Ulrich Drepper  <drepper@cygnus.com>
7339         * stdio-common/printf_fp.c (__printf_fp): Use default value '.' if
7340         `decimal' char is 0.
7342         * C-numeric.c (not_available): New constant.
7343         (_nl_C_LC_NUMERIC): Use `not_available' for grouping value.
7345         * nss/nsswitch.conf: Example configuration file.
7346         * nss/db-Makefile: Example Makefile for generation of databases
7347         for nss_db.
7348         * nss/Makefile (distribute): Add nsswitch.conf and db-Makefile.
7350 1996-08-28  Paul Eggert  <eggert@twinsun.com>
7352         * C-messages.c (_nl_C_LC_MESSAGES): Set yesexpr to "^[yY]" and
7353         noexpr to "^[nN]"; this conforms to POSIX.2.
7355         * C-time.c (_nl_C_LC_TIME): Change %d to %e in d_t_format, to
7356         conform to POSIX.2.
7358 1996-08-28  Paul Eggert  <eggert@twinsun.com>
7360         * C-monetary.c (not_available): New constant.
7361         (_nl_C_LC_MONETARY): Set mon_decimal_point to "", and set
7362         mon_grouping, int_frac_digits, frac_digits, p_cs_precedes,
7363         p_sep_by_space, n_cs_precedes, n_sep_by_space, p_sign_posn, and
7364         n_sign_posn to CHAR_MAX, as required by the POSIX Standard.
7366 Wed Aug 28 23:12:28 1996  Ulrich Drepper  <drepper@cygnus.com>
7368         * nss/nss_db/db-XXX.c: Correct function names.  They must be
7369         `_nss_db_*' instead of `_nss_files_*'.
7370         (lookup): `parse_line' returns 1 if succesful.
7371         * nss/nss_files/files-service.c (servbyname): Key for database
7372         must also contain protocol names.
7373         (servbypt): Likewise.
7374         Test must also check for protocol.  Add `proto' argument.
7376 Tue Aug 27 09:56:13 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7378         * MakeTAGS ($P/subdirs.pot): Prefix all file names, not only the
7379         first one.
7381 Tue Aug 27 17:45:21 1996  Ulrich Drepper  <drepper@cygnus.com>
7383         * Makerules: Add some test for correct version of GNU Make.
7385         * io/fcntl.h: Undo change from Mon Aug 26 22:22:17 1996.
7386         * sysdeps/unix/sysv/linux/fcntlbits.h: Place macros here instead.
7388         * sysdeps/generic/dl-sysdep.c: Initialize break address to
7389         avoid overwriting last page (OK, Roland).
7391 Tue Aug 27 16:20:37 1996  Ulrich Drepper  <drepper@cygnus.com>
7393         * resolv/resolv.h: Update from BIND-4.9.5-T3A.
7394         * resolv/arpa/nameser.h: Likewise.
7395         * resolv/res_init.c: Likewise.
7396         * resolv/res_debug.c: Likewise.
7397         * resolv/res_mkquery.c: Likewise.
7399 Tue Aug 27 15:47:04 1996  Ulrich Drepper  <drepper@cygnus.com>
7401         * elf/dl-error.c (catch): Define errstring element not as const.
7402         (_dl_catch_error): ERRSTRING argument is not const pointer.
7403         Initialize *ERRSTRING and *OBJNAME separately.
7404         * elf/link.h: Change prototype for `_dl_catch_error'.
7406         * elf/dl-load.c (_dl_map_object): Use separate variable for
7407         copied NAME to avoid `const' warning.
7409         * elf/dlerror.c: Make `last_errstring' variable not const pointer.
7411         * elf/rtld.c: Implement reading of /etc/ld.so.preload.  This
7412         provides preloading even for SUID binaries.
7413         Add some more casts to avoid signed<->unsigned warnings.
7415 Tue Aug 27 15:40:28 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
7417         * posix/sys/types.h: Define loff_t.
7418         * sysdeps/unix/sysv/linux/gnu/types.h: Define __loff_t.
7420 Mon Aug 26 22:22:17 1996  Ulrich Drepper  <drepper@cygnus.com>
7422         * io/fcntl.h: Add definition for BSD F* macros.
7424         * misc/init-misc.c (__init_misc): Make static.
7425         * misc/Makefile: Pass -fkeep-inline-functions flag for init-misc.c.
7427         * configure.in: Add test for -fno-exception option of gcc.
7428         * config.make.in: Add definition of have-no-exceptions.
7429         * Makerules: Define no-exceptions based on have-no-exceptions.
7430         * csu/Makefile: When translating initfini.c pass $(no-exceptions).
7431         This is necessary for gcc >= ss-960816.
7433 Mon Aug 26 17:16:48 1996  Richard Henderson  <rth@tamu.edu>
7435         * sysdeps/alpha/dl-machine.h: Clear startup flag.
7437 Fri Aug 16 21:17:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7439         * Makerules (o-iterator-doit): Simplify reference to autolock
7440         script.
7442 Sat Aug 24 15:27:41 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7444         * sysdeps/mach/hurd/getcwd.c
7445         (_hurd_canonicalize_directory_name_internal): After resizing the
7446         buffer move the current contents to the end.  Correctly relocate
7447         file name pointer to upper half of the buffer.
7449 Mon Aug 26 15:49:59 1996  Ulrich Drepper  <drepper@cygnus.com>
7451         * rtld.c (dl_main): Remove code to call ld.so initializer.  This
7452         was introduced for compatibility with Linux ld.so and would not
7453         be used anymore.  Now we don't have any good values to use as the
7454         parameters to the initializer so simply remove it.
7456 Sun Aug 25 18:25:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7458         * gmon/gmon.c (ERR): Don't write the terminating NUL.
7460         * sysdeps/posix/profil.c (profil): Disable the profiling timer at
7461         first.
7462         (profil_count): Use 64 bit arithmethic to avoid overflow.
7464         * sysdeps/generic/machine-gmon.h (MCOUNT): Fix argument order.
7466 Mon Aug 26 16:31:33 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
7468         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Tolerate NEW
7469         being null; in that case don't touch the timer at all (but do
7470         return something in OLD if necessary).
7472 Mon Aug 26 13:35:16 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
7474         * sysdeps/mach/hurd/i386/init-first.c (__libc_multiple_libcs): New
7475         variable.
7476         * sysdeps/i386/init-first.c: Likewise.
7477         * sysdeps/stub/init-first.c: Likewise.
7479 Mon Aug 26 02:01:37 1996  Ulrich Drepper  <drepper@cygnus.com>
7481         * elf/dl-open.c (_dl_open): Call library initializer with
7482         correct command line arguments and environment information.
7483         * elf/rtld.c (dl_main): Provide arguments to initializer of
7484         ld.so itself.
7486 Sun Aug 25 19:15:46 1996  Ulrich Drepper  <drepper@cygnus.com>
7488         * shadow/Makefile (routines): Add lckpwdf.
7489         * shadow/lckpwdf.c: New file.
7491         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Force
7492         argument `cw' to be placed in memory.  Patch by Torbjorn Granlund.
7494 Sun Aug 25 12:53:37 1996  Ulrich Drepper  <drepper@cygnus.com>
7496         * configure.in: Add definition for `__eh_pc' and `__throw' in
7497         test for --no-whole-archive.  The compiler generates dependencies
7498         for this but none of the standard librares and startup files
7499         are used.  Necessary for gcc >= ss-960816.
7501 Sun Aug 25 01:31:33 1996  Ulrich Drepper  <drepper@cygnus.com>
7503         * elf/dl-error.c (_dl_signal_error): If error is catched, malloc
7504         return string since string might be on stack.
7505         * elf/dl-lookup.c (_dl_lookup_symbol): Undo change of
7506         Wed Aug 21 10:14:59 1996.
7507         * elf/dlerror.c (dlerror): Free error string after printing.
7508         (_dlerror_run): If error string was not printed since last error
7509         free string.
7510         * rtld.c (dl_main): Free error string in case of error.
7512 Sat Aug 24 03:16:47 1996  Ulrich Drepper  <drepper@cygnus.com>
7514         * misc/syslog.c (vsyslog): Don't use `localtime' or `gmtime' since
7515         this changes the global state for `localtime' and `gmtime'.  Use
7516         `__localtime_r'/`__gmtime_r' instead.
7517         * resolv/res_debug.c (__p_secstodate): Likewise.
7518         * sysdeps/generic/ftime.c: Likewise.
7519         * sysdeps/posix/gettimeofday.c: Likewise.
7520         Reported by Paul Eggert.
7522         * time/gmtime.c: De-ANSI-fy.
7523         * time/strftime.c: Don't call non-reentrant functions which change
7524         state.
7526 Wed Aug 21 10:14:59 1996  Richard Henderson  <rth@tamu.edu>
7528         * elf/dl-lookup.c (_dl_lookup_symbol): Malloc the error string rather
7529         than putting it on the stack.
7531 Wed Aug 21 10:12:42 1996  Richard Henderson  <rth@tamu.edu>
7533         * elf/rtld.c (dl_main): When looking up symbols in response to --list,
7534         don't find .plt entries.
7536 Mon Aug 19 23:18:12 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7538         * sysdeps/m68k/dl-machine.h (RTLD_START): Optimize clearing
7539         _dl_starting_up.
7541 Tue Aug 20 17:42:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
7543         * stdio/linewrap.c (line_wrap_stream): Initialize D->seek.
7545 Sat Aug 17 12:19:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7547         * login/pututline_r.c (__pututline_r): Fix handling of case where
7548         getutid_r() fails with ESRCH.  Reported by Miquel van Smoorenburg.
7550 Wed Aug 14 14:10:54 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7552         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Change entry
7553         for "Jensen" so _bus_base() returns 0 on that platform.  Use
7554         _bus_base_sparse() to determine base address of sparse memory.
7556         * sysdeps/unix/sysv/linux/sys/io.h: Enclose #include <asm/io.h>
7557         and declarations in __BEGIN_DECLS/__END_DECLS.
7559 Sun Aug 18 13:37:09 1996  Ulrich Drepper  <drepper@cygnus.com>
7561         * err.h: New file.  Wrapper around misc/err.h.
7563         Correct solution of multiple initialization problem by
7564         Roland McGrath.
7565         * csu/initfini.c: Remove global variable __libc_is_static.
7566         * elf/rtld.c: Introduce new global variable _dl_starting_up.
7567         It's nonzero during the startup.
7568         * elf/dl-open.c (_dl_open): When _dl_start function is not
7569         available (i.e., if in static libc) set `__libc_multiple_libcs'
7570         to nonzero value.
7571         * sysdeps/unix/sysv/linux/init-first.c (__libc_multiple_libc):
7572         New global variable.
7573         (init): Undo change of Fri Aug  2 03:12:40 1996.
7574         Initialize `__libc_multiple_libcs' to nonzero only if this is
7575         a shared lib called from a statically linked program and don't
7576         call `personality' and `setfpucw' in this case either.
7577         * sysdeps/generic/sbrk.c: Undo change of Fri Aug  2 03:12:40 1996.
7578         Don't call brk(0) until `__libc_multiple_libcs' is nonzero.
7579         * sysdeps/i386/dl-machine.h (RTLD_START): Clear _dl_starting_up
7580         before jumping to user code.
7581         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
7583 Fri Aug 16 04:59:01 1996  Ulrich Drepper  <drepper@cygnus.com>
7585         * sysdeps/unix/sysv/linux/init-first.c: Remove hack from
7586         Thu Aug  8 12:40:20 1996.
7587         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = csu]: Use
7588         -fkeep-inline-functions flag instead.
7590 Fri Aug 16 16:11:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
7592         * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Treat
7593         EPFNOSUPPORT and EAFNOSUPPORT as implying NSS_STATUS_UNAVAIL just
7594         like ECONNREFUSED already does.
7595         (_nss_dns_gethostbyaddr_r): Likewise.
7596         * nss/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
7597         (_nss_dns_getnetbyaddr_r): Likewise.
7599         * sysdeps/mach/hurd/socket.c (socket): For message transmission
7600         and RPC errors that indicate that the socket server is not really
7601         present and able to do its job, turn the error into EPFNOSUPPORT.
7603 Fri Aug 16 01:24:33 1996  Ulrich Drepper  <drepper@cygnus.com>
7605         * inet/ruserpass.c (userpass): Allocate buffer for .netrc file
7606         name dynamically.  Reported by Alan Cox.
7607         Uncomment warnings and mark as translatable.
7609         * time/strftime (strftime): Add implementation for %s and %z
7610         format.  Change behaviour for unknown format character: now
7611         simply print it.  This matches the behaviour of printf.
7612         Reported by Jim Meyering.
7613         * manual/time.texi: Document all formats and flags of strftime.
7615 Thu Aug 15 18:02:51 1996  Ulrich Drepper  <drepper@cygnus.com>
7617         * elf/rtld.c (dl_main): Loaded object has type lt_executable,
7618         not lt_library.
7620         * misc/sys/select.h: Define fd_set using typedef, not #define.
7621         Proposed by David Mosberger-Tang.
7623 Thu Aug 15 12:48:21 1996  Ulrich Drepper  <drepper@cygnus.com>
7625         * po/header.pot: Use real description line.
7627 Thu Aug 15 04:42:44 1996  Ulrich Drepper  <drepper@cygnus.com>
7629         * elf/rtld.c (dl_main): When started with --verify prevent
7630         any warning.  Just exit with an error.
7631         * elf/ldd.sh.in: Don't run given object directly.  This fails for
7632         libraries.  Instead use $RTLD again.
7634 Thu Aug 15 02:08:59 1996  Ulrich Drepper  <drepper@cygnus.com>
7636         * manual/nss.texi: New file.  Document NSS.
7637         * manual/nsswitch.texi: New file.  Example configuration.
7639         * manual/string.texi: Document stpncpy, strdupa, and strndupa.
7640         * manual/example/strdupa.c: New file.  Example for strdupa.
7642 Wed Aug 14 21:36:16 1996  Ulrich Drepper  <drepper@cygnus.com>
7644         * stdlib/strtod.c (STRTOD): Correct assertion about size of
7645         wint_t and wchar_t.  Reported by David Mosberger-Tang.
7647 Mon Aug 12 22:40:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7649         * elf/dl-lookup.c (_dl_lookup_symbol): Remove fifth parameter
7650         RELOC_ADDR and make NOPLT a set of flags.  All callers
7651         changed.  Delete condition that checks for resolving to the
7652         location being filled in.  Add condition to skip the
7653         executable's symbols if requested.
7654         * elf/link.h: Change declaration of _dl_lookup_symbol
7655         accordingly.
7656         (DL_LOOKUP_NOEXEC, DL_LOOKUP_NOPLT): New definitions.
7657         * elf/dl-reloc.c (RESOLVE): Remove second parameter and rename
7658         NOPLT to FLAGS.
7659         * elf/dl-runtime.c (RESOLVE): Likewise.
7660         * elf/rtld.c (RESOLVE): Likewise.
7661         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Pass
7662         DL_LOOKUP_NOEXEC as second argument to the RESOLVE macro if
7663         processing a copy reloc, DL_LOOKUP_NOPLT for a jump slot
7664         reloc, zero otherwise.
7665         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
7666         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
7667         * sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
7669 Wed Aug 14 17:57:08 1996  Ulrich Drepper  <drepper@cygnus.com>
7671         * MakeTAGS: Clean up use of --omit-header and -n for xgettext.
7672         * po/header.pot: Add empty line at end.
7674 Sun Aug 11 13:45:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7676         * MakeTAGS (all-pot): Remove $P/errlist.pot, all error messages
7677         are now in $P/stdio-common.pot.
7678         (XGETTEXTFLAGS-errlist.pot): Variable removed.
7680 Mon Aug 12 19:25:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7682         * Makerules (do-ar, o-iterator-doit): Compute path to autolock
7683         script at run time, not configure time.
7684         * config.make.in, configure.in: Undo previous change.
7686 Wed Aug 14 13:20:02 1996  Ulrich Drepper  <drepper@cygnus.com>
7688         * sysdeps/unix/sysv/linux/i386/close.S: Push return value of thread
7689         on stack as argument for `_exit'.  Reported by Andreas Schwab.
7691 Mon Aug 12 19:36:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7693         * sysdeps/unix/sysv/linux/m68k/clone.S: New file.
7695 Wed Aug 14 04:22:35 1996  Richard Henderson  <rth@tamu.edu>
7697         * elf/dl-load.c (_dl_map_object): Save name in malloced memory.
7698         (_dl_map_object_from_fd): Free name on error.
7700 Wed Aug 14 13:00:09 1996  Ulrich Drepper  <drepper@cygnus.com>
7702         * string/strdup.c: Use result of memcpy to avoid reloading.
7704 Tue Aug 13 00:55:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7706         * shadow/sgetspent_r.c (__sgetspent_r): Copy string to buffer, not
7707         the other way round.
7709 Tue Aug 13 20:51:21 1996  Ulrich Drepper  <drepper@cygnus.com>
7711         * stdlib/canonicalize.c (canonicalize): Add cast to prevent
7712         warning.
7714         * Makerules (o-iterator-doit): Use autolock.sh when running ranlib.
7716 Tue Aug 13 18:26:45 1996  Ulrich Drepper  <drepper@cygnus.com>
7718         * nss/nsswitch.c (__nss_configure_lookup): Use fact that list is
7719         sorted.
7721         Update from bind-4.9.5-T1A.
7722         * resolv/Makefile (libresolv-routines): Add base64, inet_net_ntop,
7723         inet_net_pton, inet_net.
7725         * resolv/gethnamaddr.c: Include <sys/types.h>.
7726         * resolv/getnetnamadr.c: Likewise.
7727         * resolv/herror.c: Likewise.
7728         * resolv/inet_addr.c: Likewise.
7729         * resolv/nsap_addr.c: Likewise.
7730         * resolv/res_comp.c: Likewise.
7731         * resolv/res_data.c: Likewise.
7732         * resolv/res_init.c: Likewise.
7733         * resolv/res_mkquery.c: Likewise.
7734         * resolv/res_query.c: Likewise.
7735         * resolv/res_send.c: Likewise.
7737         * resolv/gethnamaddr.c [! SPRINTF_CHAR] (SPRINTF): Cast return
7738         value of sprintf.
7739         * resolv/inet_ntop.c: Likewise.
7741         * resolv/gethnamaddr.c [BSD]: Include <stdlib.h>.
7742         Remove prototype of gethostbyname_ipv4.
7744         * resolv/inet_ntop.c, resolv/inet_pton.c: Use ISO C `mem*'
7745         functions instead of BSD `b*' functions.
7747         * resolv/nsap_addr.c: Add copyright message.
7749         * resolv/res_comp.c: Remove comment explaining label format.
7750         (res_mailok): Correct check.
7752         * resolv/res_debug: Include missing headers.
7753         (__fp_nquery): Handle `unused', `ad', and `cd' bits.
7754         (__p_fqnname): New function to print FQDN from compressed name.
7755         (__p_rr): Use __p_fqnname.  Correct printing of ".  Handle T_TXT
7756         correctly.  Add handling of T_KEY and T_SIG.
7757         Handle class and type names by using name arrays instead of
7758         explicit `switch'es.
7759         (__sym_ston, __sym_ntos, __sym_ntop): New functions to use arrays.
7760         (__dn_count_labels, __p_secstodate): New functions.
7762         * resolv/resolv.h (__RES): Update version number.
7763         (res_sym): New type.
7764         Add #defines for new functions.
7765         Declare sym_ntos, sym_ntop, b64_ntop, b64_pton, __p_fqnname,
7766         __p_secstodate, dn_count_labels.
7768         * resolv/arpa/nameser.h (__BIND): Update version number.
7769         Add KEYFLAG_* and ALGORITHM_* symbols.
7770         (HEADER): Add `ad' and `cd' flags.
7772         * inet/ient.h: Add prototypes for inet_neta, inet_net_ntop,
7773         and inet_net_pton.
7775         * manual/maint.texi: Document that we use bind-4.9.5.
7776         * INSTALL: Ditto.
7778 Mon Aug 12 19:03:22 1996  Thomas Bushnell n/BSG  <thomas@psilocin.gnu.ai.mit.edu>
7780         * sysdeps/generic/gnu/types.h: Declare __fd_mask as `unsigned long'.
7782         * mach/Makefile (mach/mach_host.uh): Depend on
7783         $(objpfx)/mach-syscalls.mk.
7784         ($(objpfx)mach-shortcuts.h): Depend on $(objpfx)mach/mach_host.h.
7785         (This fixes a make loop; thanks to Marcus Daniels
7786         <marcus@sysc.pdx.edu> for the patch.)
7788 Mon Aug 12 16:41:52 1996  Thomas Bushnell n/BSG  <thomas@gnu.ai.mit.edu>
7790         * io/getwd.c (getwd) [! PATH_MAX]: Don't assume that the user's
7791         buffer is any longer than the amount necessary to hold the
7792         filename; the Hurd getcwd uses the *entire* contents of the
7793         buffer, however long it is specified to be.
7795 Mon Aug 12 04:33:09 1996  Ulrich Drepper  <drepper@cygnus.com>
7797         * nss/nsswitch.c (__nss_database_lookup): Always release locks
7798         before returning.  Reported by Miles Bader.
7800 Mon Aug 12 03:31:58 1996  Ulrich Drepper  <drepper@cygnus.com>
7802         * nss/nsswitch.c (__nss_configure_lookup):  New function.
7803         Allows to specify services.
7804         * nss/XXX-lookup.h: Rename database variable and make global.
7805         * nss/databases.def: New file.  Real names of all databases.
7807         * nss/nss.h: New file.  Contains declaration useful for users
7808         and service developers.
7809         * nss/nsswitch.h: Move some declarations to nss/nss.h.
7810         * nss.h: New file.  Wrapper around nss/nss.h.
7812         * nss/Makefile (headers): Add nss.h.
7813         (distributes): Add databases.def.
7815 Sun Aug 11 16:19:42 1996  Ulrich Drepper  <drepper@cygnus.com>
7817         Help the poor people with fast machines by making sure only
7818         one `ar' commands works on the library.
7819         * autolock.sh: New file.  Written by Tom Tromey.
7820         * Makerules (do-ar): Call autolock.sh shell script instead of
7821         directly using `ar'.
7822         * config.make.in: Make configuration variable AUTOLOCK which
7823         gets initialized by configure.
7824         * configure.in: Define variable AUTOLOCK to point to autolock.sh
7825         script and mark it to substitute.
7827         * string/Makefile: Add -fno-builtin for tst-strlen.c, too.
7829         * sysdeps/generic/sbrk.c (__sbrk):  Get kernel brk address
7830         always only if in static libc or if statically linked program
7831         uses libc.so.
7833         * sysdeps/generic/sbrk.c (__sbrk):  Get kernel brk address
7834         always only if in static libc or if statically linked program
7835         uses libc.so.
7837 Sun Aug 11 01:12:38 1996  Richard Henderson  <rth@tamu.edu>
7839         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW
7840         startup by moving Icache flush from here ...
7841         (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here.
7842         (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused.
7844         * sysdeps/alpha/divrem.h: Update comment to reflect the actual
7845         calling conventions.  The code is already correct.
7847 Sun Aug 11 01:06:42 1996  Richard Henderson  <rth@tamu.edu>
7849         * string/Makefile: Compile tester with -fno-builtin as we want to
7850         test our implementations, not gcc's.
7852 Sat Aug 10 13:17:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7854         * shadow.h: New file.
7856         * sysdeps/unix/sysv/linux/netinet/in.h: Move
7857         __BEGIN_DECLS/__END_DECLS up so ntohl() et al are bracketed as
7858         well.
7860         * socket/sys/socket.h [__cplusplus]: Use old-style __SOCKADDR_ARG.
7861         g++ 2.7.2 (and earlier) has no transparent unions support.
7863 Fri Aug  9 18:50:06 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7865         * sysdeps/unix/sysv/linux/alpha/ioperm.c (_bus_base_sparse): New
7866         function to determine the base address of sparse bus memory.
7867         (APECS_*): Rename to CIA_*.
7868         (APECS_SPARSE_MEM, CIA_SPARSE_MEM): New macros.
7869         (platform): Add sparse_bus_memory_base member and initialize.
7870         (sparse_bus_memory_base): New variable.
7872 Tue Aug  6 10:23:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7874         * sysdeps/posix/ttyname_r.c (ttyname_r),
7875         sysdeps/posix/ttyname.c (ttyname): Return -1/NULL if
7876         !__isatty(fd) (POSIX.1 says so.)
7878         * sysdeps/unix/getlogin.c (getlogin): Fix to check fd 0 only.
7879         This is not a gross hack, after all---for compatibility,
7880         getlogin() really should check fd 0 only and not try to base its
7881         operation on the controlling tty.
7883 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
7885         * sysdeps/unix/getlogin.c (getlogin): Add static variable NAME,
7886         change utmp_data from static to auto.
7888 Sun Aug 11 02:56:08 1996  Ulrich Drepper  <drepper@cygnus.com>
7890         * posix/unistd.h [__USE_MISC]: Add prototype for `nice'.
7891         Reported by David Mosberger-Tang.
7893 Sat Aug 10 02:05:28 1996  Richard Henderson  <richard@twiddle.tamu.edu>
7895         * sysdeps/libm-ieee754/s_isnan.c [NO_LONG_DOUBLE]: Add strong
7896         alias to `__isnanl'.
7898 Fri Aug  9 17:38:58 1996  Ulrich Drepper  <drepper@cygnus.com>
7900         * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
7901         get `struct timeval'.
7902         * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
7903         * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
7904         * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
7905         * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
7906         * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
7907         * sysdeps/unix/sysv/linux/direntry.h: Complete types in
7908         <linux/dirent.h>.
7909         * io/fts.h: Include <sys/types.h> to get dev_t.
7910         Reported by Matthias Urlichs.
7912         * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
7913         _IO_file_flags.  It's the same as _flags.
7914         Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
7916 Wed Aug  7 19:38:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
7918         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
7920 Thu Aug  8 16:17:38 1996  Ulrich Drepper  <drepper@cygnus.com>
7922         * pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
7923         * pwd/getpwent_r.c: Likewise.
7924         * pwd/getpwnam.c: Likewise.
7925         * pwd/getpwnam_r.c: Likewise.
7926         * pwd/getpwuid.c: Likewise.
7927         * pwd/getpwuid_r.c: Likewise.
7929         * grp/getgrent.c: Define BUFLEN from NSS_BUFLEN_GROUP.
7930         * grp/getgrent_r.c: Likewise.
7931         * grp/getgrgid.c: Likewise.
7932         * grp/getgrgid_r.c: Likewise.
7933         * grp/getgrnam.c: Likewise.
7935         * pwd/fgetpwent_r.c: New file.  Reentrant version of fgetpwent.
7936         * pwd/fgetpwent.c: Rewrite to use fgetpwent_r.
7937         * pwd/Makefile (routines): Add fgetpwent_r.
7938         * pwd/pwd.h: Add prototypes for __fgetpwent_r and fgetpwent_r.
7940         * grp/fgetgrent_r.c: New file.  Reentrant version of fgetgrent.
7941         * grp/fgetgrent.c: Rewrite to use fgetgrent_r.
7942         * grp/Makefile (routines): Add fgetgrent_r.
7943         * grp/grp.h: Add prototypes for __fgetgrent_r and fgetgrent_r.
7945         Implement shadow password lookup functions.  This is no complete
7946         shadow password suite.
7947         * shadow/Makefile: New file.
7948         * shadow/fgetspent.c: New file.
7949         * shadow/fgetspent_r.c: New file.
7950         * shadow/getspent.c: New file.
7951         * shadow/getspent_r.c: New file.
7952         * shadow/getspnam.c: New file.
7953         * shadow/getspnam_r.c: New file.
7954         * shadow/putspent.c: New file.
7955         * shadow/sgetspent.c: New file.
7956         * shadow/sgetspent_r.c: New file.
7957         * shadow/shadow.h: New file.
7958         * shadow/spwd-lookup.c: New file.
7959         * shadow/nss_files/files-spwd.c: New file.
7961 Thu Aug  8 13:33:45 1996  Ulrich Drepper  <drepper@cygnus.com>
7963         * sysdeps/unix/sysv/linux/ftime.c: New file.  Available system
7964         call is only a stub.
7965         Reported by Matthias Urlichs.
7967         * Makeconfig [!default_cflags]: Change default value from `-g'
7968         to `-g -O'.
7970         * configure.in: Recognize i686.
7971         * sysdeps/i386/i686/Implies: Default on i586 optimized code.
7973 Thu Aug  8 12:40:20 1996  Matthias Urlichs  <smurf@smurf.noris.de>
7975         * Makeconfig [$(build-omitfp) == yes]: Add to CFLAGS-.so
7976         value of CFLAGS-.o, not CFLAGS-o.
7978         * sysdeps/unix/sysv/linux/init-first.c (init): Add volatile
7979         pointer to ourself.  Otherwise `gcc -O3' optimized init away.
7981 Thu Aug  8 01:41:43 1996  Ulrich Drepper  <drepper@cygnus.com>
7983         * elf/Makefile: Undo change of Tue Aug  6 14:27:11 1996.
7984         * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
7986 Thu Aug  8 01:15:59 1996  Ulrich Drepper  <drepper@cygnus.com>
7988         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
7989         to 0x137f to allow long double operations.
7991 Sun Aug  4 13:12:05 1996  Richard Henderson  <rth@tamu.edu>
7993         Bug Fixes:
7995         * nss/nsswitch.c (_res): Remove redundant variable definition.
7996         The real one is in resolve/res_init.c, and having both prevents
7997         using -fno-common when building the shared library.
7998         * sunrpc/rpc_prot.c (_null_auth): Same.  Original is in rpc_common.c.
8000         * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
8001         a .bss object not a COMMON symbol.
8003         * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
8004         $gp before referencing __sigsetjmp symbol.  Retain LITUSE for same.
8006         Optimizations:
8008         * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
8009         main loop for better dual-issue on EV5.  Rearrange binary search to
8010         pipeline better and trim one instruction.
8012         Cosmetic Changes:
8014         * time/localtime.c (localtime_r): Move lock declaration back next to
8015         the comment where it was before the 960724 change.
8017         * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
8018         The second word is supposed to be the hardware manufacturer.
8020         * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
8021         * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
8023         * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
8025         * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
8026         sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
8027         Same cleanups as with EV4 GMP stuff.
8029 Tue Jul 25 03:30:56 1996  Richard Henderson  <rth@tamu.edu>
8031         * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
8032         * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
8033         * sysdeps/unix/sysv/linux/i386/clone.S: New file.
8035 Sun Aug  4 00:12:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8037         * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
8038         `unsigned long'.
8040         * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
8042 Sat Aug  3 16:20:02 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8044         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
8045         Mikasa.
8047         * socket/sys/socket.h (send, __send, sendto): Declare buffer
8048         pointer as __const.
8050         * string/tester.c (main): Test stpncpy.
8052         * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
8053         segfault when called with an N that is not a multiple of four and
8054         src[N-1]=='\0'.
8056         * misc/syslog.c (LogType): New variable.
8057         (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
8058         try again with SOCK_STREAM (the Linux syslogd uses a socket of the
8059         latter type).
8060         (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
8061         terminator as a record-delimiter.  If __send(LogFile) fails,
8062         call closelog() so logfile gets re-opened next time.
8064 Wed Aug  7 15:15:14 1996  Ulrich Drepper  <drepper@cygnus.com>
8066         * elf/dl-open (_dl_open): Add cast to avoid warning.
8068         * manual/memory.texi: Improve some examples to give readers better
8069         advice: Use `stpcpy' instead of `strcat' if possible.
8070         * manual/string.texi: Document `strtok_r' and `strtok'.
8072         * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
8073         of Makeconfig.
8074         [$(cross-compiling)=no]: Change test before making librpcsvc
8075         to this from $(cross-compile).
8076         Reported by Andreas Schwab.
8078 Tue Aug  6 14:27:11 1996  Ulrich Drepper  <drepper@cygnus.com>
8080         * elf/Makefile (routines): Move dl-sysdep to here...
8081         (rtld-routines): ...from here.  This should make static linking
8082         work again.
8084         * locale/setlocale.c: Add local variable `lock' and add code to
8085         `setlocale' to avoid simultaneous changing of global data.
8087         * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
8088         * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
8089         `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
8090         of unprotected names.
8092 Tue Aug  6 01:13:56 1996  Ulrich Drepper  <drepper@cygnus.com>
8094         Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
8095         This requires to rename several functions to use __ protected
8096         names.
8097         * dirent/dirent.h: Add prototypes of __opendir, __closedir,
8098         and __readdir.
8099         * sysdeps/mach/hurd/closedir.c: Prepend function name with __
8100         and make old name a weak alias.
8101         * sysdeps/mach/hurd/getrlimit.c: Likewise.
8102         * sysdeps/mach/hurd/opendir.c: Likewise.
8103         * sysdeps/mach/hurd/readdir.c: Likewise.
8104         * sysdeps/stub/closedir.c: Likewise.
8105         * sysdeps/stub/opendir.c: Likewise.
8106         * sysdeps/stub/readdir.c: Likewise.
8107         * sysdeps/unix/closedir.c: Likewise.
8108         * sysdeps/unix/opendir.c: Likewise.
8109         * sysdeps/unix/readdir.c: Likewise.
8111         * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
8113         * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
8114         `__closedir' instead of unprotected names.
8116         * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
8117         instead of `isatty' since later is not part of ISO C.
8118         * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
8119         `open' since later is not part of ISO C.
8121         * login/endutent.c (endutent): Call `__endutent_r', not
8122         `endutent_r'.
8123         * login/endutent_r.c: Rename defined function to `__endutent_r',
8124         make `endutent_r' weak alias.
8125         * login/getutent.c (getutent): Call `__getutent_r', not
8126         `getutent_r'.
8127         * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
8128         * login/getutid_r.c: Rename defined function to `__getutent_r',
8129         make `getutent_r' weak alias.
8130         * login/getutline.c (getutline): Call `__getutline_r', not
8131         `getutline_r'.
8132         * login/getutline_r.c: Rename defined function to `__getutline_r',
8133         make `getutline_r' weak alias.
8134         * login/pututline_r.c: Rename defined function to `__pututline_r',
8135         make `pututline_r' weak alias.
8136         * login/setutent.c (setutent): Call `__setutline_r', not
8137         `setutline_r'.
8138         * login/setutent_r.c: Rename defined function to `__setutline_r',
8139         make `setutline_r' weak alias.
8140         Rename `utmpname' to `__utmpname' and make former weak alias.
8141         (__utmpname): Call `__strdup', not `strdup'.
8142         * login/utmp.h: Add prototypes for name space clean reentrant
8143         versions.
8144         * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
8145         and `__endutent_r' instead of unprotected names.
8147         * math/math.h: Add prototype for `__matherr'.
8148         * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
8149         of `matherr'.
8151         * nss/getXXbyYY.c: Call __ protected reentrant function.
8152         * nss/getXXent.c: Likewise.
8153         * nss/getXXbyYY_r.c: Define `get*' function with __ protected
8154         name.  Make usual name a weak alias.
8155         * nss/getXXent_r.c: Likewise.
8157         * posix/unistd.h: Add prototype for `__ttyname_r'.
8158         * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
8159         and make `ttyname_r' a weak alias.
8161         * resource/sys/resource.h: Add prototype for `__getrlimit'.
8162         * sysdeps/stub/getrlimit.c: Prepend function name with __
8163         and make old name a weak alias.
8164         * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
8165         and make `getrlimit' weak alias.
8167         * libc/stdio/stdio.h: Add prototype for `__vscanf'.
8168         * libc/stdio/vscanf.c: De-ANSI-fy.
8169         Rename function to `__vscanf' and make `vscanf' a weak alias.
8170         * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
8171         of `vscanf'.
8173         * stdio-common/reg-printf.c: De-ANSI-fy.
8174         Rename function to `__register_printf_function' and make
8175         `register_printf_function' weak alias.
8177         * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
8178         `wcsrtombs'.
8180         * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
8181         * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
8182         * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
8183         * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
8184         * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
8185         name a weak alias.
8186         * wcsmbs/mbsrtowcs.c: Likewise.
8187         * wcsmbs/wcrtomb.c: Likewise.
8188         * wcsmbs/wcsrtombs.c: Likewise.
8189         * wcsmbs/wchar.h: Add prototypes for __ protected versions.
8191         * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
8192         instead of `sigprocmask'.
8195         * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
8196         version getgrent_r, getgrgid_r, and getgrnam_r.
8197         * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
8198         version getpwent_r, getpwuid_r, getpwnam_r and __ protected
8199         names.
8200         * resolv/netdb.h: Complete rewrite.  No more BSD ugliness.
8203         * misc/error.c (private_strerror): Translate messages from table,
8204         too.
8206         * io/fcntl.h: Pretty printing.
8207         * misc/fstab.h: Likewise.
8208         * misc/ttyent.h: Likewise.
8209         * resource/sys/resource.h: Likewise.
8210         * string/argz.h: Likewise.
8211         * string/envz.h: Likewise.
8213         Add support for symbols from POSIX.1c (POSIX threads).
8214         * posix/getconf.c: Handle new sysconf symbols.
8215         * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
8216         _POSIX_LOGIN_NAME_MAX with minimal maximal values.
8217         * sysdeps/generic/confname.h: Define new symbols.
8218         * sysdeps/posix/sysconf.c: Handle new symbols.
8219         * sysdeps/stub/sysconf.c: Ditto.
8220         * sysdeps/unix/sysv/linux/sysconf.c: Removed.  Generic version
8221         is ok now.
8223         * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
8224         have real prototype.
8226         * sysdeps/generic/resourcebits.h: Add macro definition for
8227         RLIMIT_* values.  Some sources test using #ifdef whether specific
8228         limit is available.
8229         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
8230         * sysdeps/unix/sysv/linux/resourcebits.h: Removed.  We need
8231         separate files for the architectures.
8232         * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
8233         * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
8234         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
8235         * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
8237         * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
8238         and only default on `OPEN_MAX'.
8239         * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed.  Default is already
8240         the POSIX version.
8242         * time/Makefile (routines): Add ctime_r.
8243         * time/asctime.c: Add implementation of `asctime_r'.  Make
8244         `asctime' implementation based on reentrant version.
8245         * time/ctime_r.c: New file.
8246         * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
8247         and `ctime_r'.
8249 Sat Aug  3 18:41:36 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8251         * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
8252         (_nl_C_LC_CTYPE): Fix ordering.
8253         * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
8254         typo.
8256 Sat Aug  3 12:31:06 1996  Richard Henderson  <rth@tamu.edu>
8258         * csu/initfini.c: Discover the maximum alignment generated by the
8259         compiler when emitting a function.
8260         (_init): Make sure the end of the crti fragment is aligned.
8261         (_fini): Likewise.
8263 Fri Aug  2 03:12:40 1996  Ulrich Drepper  <drepper@cygnus.com>
8265         * initfini.c: (__libc_is_static): New variable.  Will be
8266         initialized in init-first.c.  Some actions in the libc work
8267         different when libc is static or dynamic.
8269         * sysdeps/unix/sysv/linux/init-first.c (init): Use
8270         `__libc_is_static' variable to determine whether call to
8271         `personality' and `setfpucw' is necessary.  When done set variable
8272         to +-1 depending on library type.
8274         * locale/setlocale.c (setlocale): Use global variable
8275         `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
8276         determine whether it's a SET[UG]ID program.
8278 Fri Aug  2 14:40:22 1996  Roland McGrath  <roland@fast.cs.utah.edu>
8280         * Version 1.93 test release.
8282         * manual/Makefile: Use -include for chapters-incl too.
8284         * Makeconfig (+link): Add back start.o, mistakenly removed in last
8285         change.
8287 Fri Aug  2 01:04:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8289         * nss/Makefile (generated): Add db-*.c.
8291         * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
8292         using #include_next.
8294         * configure.in (--enable-add-ons): Quote m4 macro args.
8296         * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
8298 Thu Aug  1 14:40:03 1996  Roland McGrath  <roland@fast.cs.utah.edu>
8300         * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
8302         * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
8304         * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
8305         (+link): Not here.
8307         * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
8308         warning when inline function is elided.
8309         * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
8310         (elf_machine_runtime_setup): Likewise.
8311         * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
8312         * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
8313         (elf_machine_load_address): Likewise.
8315         * catgets/gencat.c: Include <locale.h>.
8317         * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
8319         * login/logwtmp.c (logwtmp): Call time, not __time.
8321         * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
8322         * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
8323         * login/logwtmp.c (logwtmp): Likewise.
8325         * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
8326         comparing ioctl macro values.
8328         * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
8330         * manual/Makefile: Use -include for chapters to suppress warning.
8332         * sysdeps/stub/socket.c: Fix type of TYPE arg.
8333         * sysdeps/stub/socketpair.c: Likewise.
8335         * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
8337         * sysdeps/generic/sysdep.h: New file, broken out of ...
8338         * sysdeps/unix/sysdep.h: ... here.
8339         (C_LABEL): Moved out.
8341         * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
8342         stick to sed.  Do `exit 0' at end because while returns nonzero.
8344         * sysdeps/i386/sysdep.h: New file, broken out of ...
8345         * sysdeps/unix/i386/sysdep.h: ... here.  Generic asm macros moved out.
8347         * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
8348         They are defined unconditionally in libio/stdio.h.
8350         * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
8351         * elf/dl-cache.c: Likewise.
8353 Mon Jul 29 19:20:05 1996  Ulrich Drepper  <drepper@cygnus.com>
8355         * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
8356         (sysdep_headers): Add sys/sysmacros.h.
8357         * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
8359 Wed Jul 31 14:21:36 1996  Ulrich Drepper  <drepper@cygnus.com>
8361         * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
8362         tcgetattr.  We have weak aliases now.
8363         * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
8364         "optimizations" for random functions.
8366 Mon Jul 29 20:33:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8368         * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
8369         htons) [__BIG_ENDIAN]: #undef them before defining to avoid
8370         redefinition warning.
8372 Mon Jul 29 20:28:27 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8374         * time/time.h: Don't optimize tzset() to __tzset() which bypasses
8375         the __tzset_lock.
8377 Tue Jul 30 15:14:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8379         * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
8380         protection.
8382 Tue Jul 30 02:48:28 1996  Ulrich Drepper  <drepper@cygnus.com>
8384         * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
8385         to be 64-bit clean.
8386         Reported by Richard Henderson <rth@tamu.edu>.
8388 Tue Jul 30 15:04:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8390         * locale/programs/ld-collate.c (collate_output): Fix typo reported by
8391         David Miller.
8393 Tue Jul 30 13:23:13 1996  Ulrich Drepper  <drepper@cygnus.com>
8395         * locale/setlocale.c (setlocale): Don't try to free C locale
8396         data.
8397         Reported by Matthias Urlichs.
8399 Tue Jul 30 14:35:17 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8401         * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
8402         (open_file): New function, contents mostly from __open.
8403         (_dl_sysdep_read_whole_file): New function.
8405 Sat Jul 27 11:23:59 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8407         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
8408         `..' dots in sed search string.
8410 Mon Jul 29 01:27:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8412         * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
8413         protection.
8415 Sun Jul 28 23:46:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8417         * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
8418         in those directories.
8419         * config.make.in (add-ons): New varaible, set from @subdirs@.
8420         * Makefile (subdirs): Added $(add-ons) at the end.
8422         * time/strftime.c (strftime: do_number): Initialize PRINTED to
8423         MAXDIGITS in case P is null and so sprintf is never actually called.
8425 Mon Jul 29 02:46:23 1996  Ulrich Drepper  <drepper@cygnus.com>
8427         Add support for the to-be-written internationalized regexp.
8428         This code must be able to use collation symbols and collation
8429         equivalent classes.
8430         * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
8431         _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
8432         New global variables for collation classes.
8433         * locale/categories.def: Add new descriptions for collation symbols
8434         and collation classes.
8435         * locale/langinfo.h: Add constants for collation symbols and
8436         collation classes.
8437         * locale/lc-collate.c: Add new global variables for collation symbols
8438         and collation classes.
8439         (_nl_postload_collate): Initialize new variables.
8440         * locale/programs/ld-collate.c: Add code to emit tables for
8441         collation symbols and collation classes.
8442         * locale/programs/locales.h: Change prototype for `collate_output'.
8443         * locale/programs/locfile.c (write_all_categories): Call
8444         `collate_output' with new argument.
8445         * locale/localeinfo.h: Add declaration for new global vars.
8446         (union locale_data_value): New member wstr for `wchar_t' strings.
8447         * locale/programs/locale-spec.c: Handle `collate-classes'
8448         keyword and print information about available collation classes.
8449         * locale/strlen-hash.h: New file.  Simple hashing function which
8450         takes a string with known length.
8451         * locale/Makefile (distribute): Add strlen-hash.h.
8452         (locale-modules): New var.  Additional files for `locale' program.
8454         * locale/C-ctype.c: Rewrite to avoid using string for giving values
8455         which are of type `u_int32_t'.
8456         Correct entry for EOF in toupper and tolower tables.
8458         * locale/loadlocale.c (_nl_load_locale):  Add cast to prevent
8459         warning.
8461         * locale/programs/ld-ctype.c (ctype_output): Add code to make
8462         sure that all tables in binary file are word-aligned.
8464         * locale/programs/locfile.c (write_locale_data): Correct handling
8465         of LC_MESSAGES locale.  Create directory if necessary.
8467         * locale/setlocale.c (setlocale): Add cast to avoid warning.
8469         * string/string.h: Add prototype for `__strndup'.
8471 Wed Jul 24 19:10:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8473         * wcsmbs/mbrtowc.c: Remove unused variable.
8475 Sun Jul 28 22:40:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8477         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
8478         2.0.10; some problems were reported with an earlier version, and this
8479         one is known to work.
8481         * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
8482         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
8484 Sat Jul 27 13:02:09 1996  Ulrich Drepper  <drepper@cygnus.com>
8486         * elf/rtld.c (dl_main): Ignore arguments when environment variable
8487         LD_TRACE_LOADED_OBJECTS is set.
8489 Sun Jul 28 19:42:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8491         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
8492         __libc_enable_secure instead of _dl_secure.
8493         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
8494         * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
8495         of _dl_secure.
8496         * elf/Makefile (routines): Add enbl-secure.
8497         (elide-routines.so): Here too.
8498         * sysdeps/generic/enbl-secure.c: New file.
8499         * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
8500         * elf/dl-support.c (_dl_secure): Variable removed.
8501         * elf/rtld.c: Likewise.  Replace all uses with __libc_enable_secure.
8503 Sun Jul 28 19:26:40 1996  David S. Miller  <dm@neteng.engr.sgi.com>
8505         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
8506         Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
8507         compiler doesn't elide it.
8508         (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
8510 Sat Jul 27 02:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8512         * elf/rtld.c (dl_main): Take new option --verify when run directly.
8513         In verify mode, exit with status zero iff the argument object's
8514         PT_INTERP matches argv[0].
8515         * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
8516         exits with zero status.  This makes `ldd' secure again.
8518 Fri Jul 26 22:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
8520         * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
8521         environment variable handling.  This makes the dynamic linker
8522         only print loaded libraries and quit.
8524         * elf/ldd.sh.in: Don't use `rtld --list' but instead
8525         LD_TRACE_LOADED_OBJECTS environment variable to print needed
8526         objects.
8528 Sat Jul 27 02:03:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8530         * db/makedb.c (main): Print version on stdout, not stderr.  Don't exit
8531         after printing version until after doing usage for --help.
8532         (long_options, main, usage): Rename -l/--lowercase option to
8533         -f/--fold-case (-f matches sort).
8535 Sat Jul 27 04:32:31 1996  Ulrich Drepper  <drepper@cygnus.com>
8537         * db/makedb.c: New file.  Implement program to create simple <db.h>
8538         database from textual input.  This will be used for nss_db.
8540 Sat Jul 27 01:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8542         * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
8543         * sunrpc/rpc/pmap_clnt.h: Likewise.
8544         * sunrpc/rpc/auth.h: Likewise.
8545         * sunrpc/rpc/pmap_rmt.h: Likewise.
8546         * sunrpc/rpc/rpc_msg.h: Likewise.
8548 Sat Jul 27 04:37:34 1996  Ulrich Drepper  <drepper@cygnus.com>
8550         * string/string.h (strndupa): Change to use return value of
8551         `memcpy' for more performance.
8552         * string/strndup.c: Likewise.
8554         * string/string.h (strdupa): Don't call __builtin_alloca in argument.
8555         This might lead to problems.
8556         (strndupa): Likewise.
8558 Fri Jul 26 15:24:25 1996  Ulrich Drepper  <drepper@cygnus.com>
8560         * sunrpc/rpc/auth.h: Add protection against multiple inclusion
8561         and change K&R prototypes to ANSI prototypes.
8562         * sunrpc/rpc/auth_unix.h: Ditto.
8563         * sunrpc/rpc/clnt.h: Ditto.
8564         * sunrpc/rpc/pmap_clnt.h: Ditto.
8565         * sunrpc/rpc/pmap_prot.h: Ditto.
8566         * sunrpc/rpc/pmap_rmt.h: Ditto.
8567         * sunrpc/rpc/rpc_msg.h: Ditto.
8568         * sunrpc/rpc/svc.h: Ditto.
8569         * sunrpc/rpc/svc_auth.h: Ditto.
8570         * sunrpc/rpc/xdr.h: Ditto.
8572 Fri Jul 26 20:39:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8574         * ctype/test_ctype.c: Test EOF too.
8576 Fri Jul 26 18:06:58 1996  Ulrich Drepper  <drepper@cygnus.com>
8578         * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
8579         * sunrpc/rpc/auth_unix.h: Likewise.
8580         * sunrpc/rpc/clnt.h: Likewise.
8581         * sunrpc/rpc/netdb.h: Likewise.
8582         * sunrpc/rpc/pmap_clnt.h: Likewise.
8583         * sunrpc/rpc/pmap_prot.h: Likewise.
8584         * sunrpc/rpc/rpc_msg.h: Likewise.
8585         * sunrpc/rpc/svc.h: Likewise.
8586         * sunrpc/rpc/svc_auth.h: Likewise.
8587         * sunrpc/rpc/xdr.h: Likewise.
8589         * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
8590         to here from...
8591         * sunrpc/pmap_rmt.c: ...here.
8593 Fri Jul 26 16:10:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8595         * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
8596         valid ut_id field.
8597         * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
8598         if a search fails.
8600 Fri Jul 26 00:36:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8602         * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
8603         <kkojima@info.kanagawa-u.ac.jp>.
8605 Fri Jul 26 04:41:28 1996  Ulrich Drepper  <drepper@cygnus.com>
8607         * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
8608         defined, not __OPTIMIZED.
8609         (_nl_msg_cat_cntr): Move declaration outside macro definition
8610         to prevent "nested extern" warning.
8611         (dcgettext): Rename local variable `result' to `__result'.
8613 Thu Jul 25 22:46:30 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8615         * locale/programs/localedef.c (__progname): Remove decl.
8616         (main): Use program_invocation_short_name instead of __progname.
8617         (usage): Use program_invocation_name instead of __progname.
8619 Fri Jul 26 03:46:08 1996  Ulrich Drepper  <drepper@cygnus.com>
8621         * catgets/gencat.c: Use "libc" instead of PACKAGE.
8622         * locale/localedef.c: Ditto.
8623         * locale/locale.c: Ditto.
8625         * locale/findlocale.c (_nl_find_locale): Little optimization.
8626         Use new function `strndup'.
8628         * locale/loadlocale.c: Little optimization.  Use constant value
8629         from `_nl_category_num_items' instead of byte-order dependend
8630         value from file.
8632         * locale/programs/ld-time.c (time_add): Correct string constant.
8634         * locale/programs/locale-spec.c: New file.
8635         * locale/programs/locale.c: Call `locale_special' function if
8636         no other field matches.
8638         * locale/programs/localedef.c: No need to define `program_name'.
8639         Use global variable `__progname'.
8641         * locale/programs/locfile.c (write_locale_data): Always write
8642         LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file.  This is
8643         necessary since message catalogs are also installed in the
8644         LC_MESSAGES/ directory.
8646         * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
8647         function instead of writing single bytes.
8648         (encode_char): Also handle little endian.
8650         * locale/setlocale.c (new_composite_name): Little optimization.
8651         Use return value of `memcpy'.
8653         * misc/ttyent.h: Pretty print prototypes, add missing parameter
8654         names, prepend parameter names with __  and use `__const' instead
8655         of `const'.
8656         * posix/unistd.h: Ditto.
8657         * stdlib/stdlib.h: Ditto.
8658         * string/string.h: Ditto.
8660         * posix/getconf.c: De-ANSI-fy.  Recognize POSIX.2 constant names.
8661         Use `error' function instead of doing it by hand.
8662         * sysdeps/posix/sysconf.c: De-ANSI-fy.
8663         Handle _SC_COLL_WEIGHTS_MAX.
8664         * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
8665         _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
8666         since these do not depend on the platform.
8667         Add POSIX.4 symbols.
8669         * posix/posix2_lim.h: Add missing definition of
8670         _POSIX2_COLL_WEIGHTS_MAX.
8671         Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
8672         to high values since we have no fixed limit.
8674         * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
8675         _SC_PAGESIZE for buggy systems (= HP UX) out there.
8677         * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
8678         * wcsmbs/mbsnrtowcs.c: New file.  Non-standard implementation.
8679         * wcsmbs/wcsnrtombs.c: Ditto.
8680         * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
8681         wcsnrtombs.
8683 Thu Jul 25 00:25:54  Richard Henderson  <rth@tamu.edu>
8685         * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
8686         course.
8687         * nss/getXXent_r.c: Likewise.
8688         * nss/nsswitch.c: Likewise.
8689         * nss/nss_files/files-XXX.c: Likewise.
8690         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
8691         * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
8692         * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
8694 Thu Jul 25 00:53:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8696         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
8697         macro, now put the needed Linux version just once, here; update to
8698         needing linux-2.0.3 headers.
8699         (libc_cv_linuxVER): New macro derived from that.
8700         (kernel header check): Use those macros and some m4 magic to replace
8701         hard-coded `201' and `2.0.1' in several places.
8703         * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
8705 Wed Jul 24 17:02:30 1996  Ulrich Drepper  <drepper@cygnus.com>
8707         * time/localtime.c: Move lock variable declaration to end of
8708         variable declarations since if is a dummy macro the ; at the
8709         end terminates the variable section of the function.
8711         * time/tzset.c: Undefine `tzset' before function declaration.
8712         Use `weak_function' macro instead of `weak_symbol'.
8714 Wed Jul 24 18:57:33 1996  Ulrich Drepper  <drepper@cygnus.com>
8716         * stdlib/strtouq.c: Additional weak alias is `strtoull', not
8717         `strotull'.
8719 Wed Jul 24 18:26:23 1996  Ulrich Drepper  <drepper@cygnus.com>
8721         * locale/C-ctype.c: Increment number of fields after change
8722         from Wed Jun 19 03:24:58 1996.
8724 Tue Jul 23 18:13:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8726         * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
8727         ($(common-objpfx)libc.so): Move deps into that, use it.
8728         [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
8729         $(rpcuserlibs:.so=_pic.a).
8730         * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
8731         use $(LDLIBS-c.so).
8733 Thu Jul 18 21:41:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8735         * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
8736         n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
8738 Tue Jul 23 02:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
8740         * locale/iso-4217.def: Add India to comment for symbol "INR ".
8741         Reported by Raja R Harinath  <harinath@cs.umn.edu>.
8743 Sat Jul 20 14:03:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8745         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
8746         #undef RESOLVE.
8748 Sun Jul 21 06:48:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8750         * time/tzset.c: Include <libc-lock.h>.
8751         (__tzset_lock): New lock variable.
8752         (tzset): New function (weak defn), no longer weak alias for __tzset.
8753         Call __tzset while holding __tzset_lock.
8754         * time/localtime.c: Include <libc-lock.h>.
8755         (__localtime_r): Hold __tzset_lock while doing the work.
8757         * sysdeps/generic/setenv.c (__environ): Change conditional for #define
8758         from [!HAVE_GNU_LD] to [!_LIBC].
8759         [_LIBC]: Include <libc-lock.h> and define a lock.
8760         (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
8761         (setenv, unsetenv): Use them.
8763 Sun Jul 21 01:44:39 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8765         * locale/programs/locfile.c (write_locale_data): Deal with missing
8766         UIO_MAXIOV.
8768         * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
8769         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
8771 Sat Jul 20 21:55:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8773         Win32 hacks from <Rob_Tulloh@tivoli.com>.
8774         * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
8775         use void * for my_realloc; include <malloc.h> for alloca.
8776         (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
8777         * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
8778         * posix/glob.h: Likewise.
8780 Sat Jul 20 13:28:52 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8782         * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
8783         call __io_select unless there's only a single descriptor, as each
8784         descriptor now has its own reply port.
8785         If there is only a single descriptor, just use its reply port for
8786         everything and don't bother creating the port set.
8788         * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
8789         <unistd.h>: New include.
8791         * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
8792         continuation line.
8794 Sat Jul 20 07:15:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8796         * crypt/Makefile, crypt/nocrypt.c: Removed.  It is illegal to export
8797         from the USA any software that even makes it easy to drop in an
8798         encryption module of foreign origin.
8799         * Makerules (cryptobjdir): Variable removed.
8800         ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
8801         * Makefile (subdirs): Remove crypt.
8803 Fri Jul 19 15:45:20 1996  Ulrich Drepper  <drepper@cygnus.com>
8805         * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
8806         operator to yesexpr and noexpr string.
8808 Fri Jul 19 15:10:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8810         * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
8811         old code would have failed on a big-endian 64-bit architecture).
8812         * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
8814         * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
8815         (xdr_u_long): Use switch instead of chain of if-statements.
8816         Remove gratitous parentheses around return expressions.
8817         (xdr_enum): Open code case where INT_MAX<LONG_MAX.
8819         * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
8821         * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
8822         not int.
8824 Fri Jul 19 16:56:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8826         * dlfcn.h, db.h: New wrapper headers.
8828         * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
8829         for `struct stat;' forward decl.
8831 Fri Jul 19 22:25:19 1996  Ulrich Drepper  <drepper@cygnus.com>
8833         * locale/iso-4217.def: Add some more standardized currency
8834         symbols.
8836 Fri Jul 19 13:18:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8838         * hurd/report-wait.c (describe_number): Use unsigned long int for J.
8840 Thu Jul 18 12:33:57 1996  Roland McGrath  <roland@baalperazim.frob.com>
8842         * Rules (dummy.o, empty.o): Targets removed.
8843         (dummy.c, empty.c): New targets replace them.
8845 Thu Jul 18 11:42:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8847         * crypt/Makefile (lib-noranlib): Depend on
8848         $(objpfx)libcrypt.so$(libcrypt.so-version).
8849         (subdir): Fix name.
8851 Thu Jul 18 04:33:21 1996  Roland McGrath  <roland@baalperazim.frob.com>
8853         * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
8854         check.  mib's clueless hacking broke it.
8856 Thu Jul 18 04:27:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8858         * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
8860 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8862         * misc/sys/ustat.h: New file.
8863         * misc/ustat.h: Ditto.
8864         * sysdeps/generic/ustatbits.h: Ditto.
8865         * sysdeps/stub/ustat.c: Ditto.
8866         * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
8867         * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
8868         ustatbits.h.
8869         (routines): Mention ustat.
8871         * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
8872         * sysdeps/alpha/elf/start.S: here.
8874         * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
8875         alphabetically correct place.  Mention ustat.
8877         * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
8878         common symbol (makes errno accessible from gdb).
8880         * login/pututline_r.c (pututline_r): Test ut_id in repositioning
8881         test, not ut_type.
8883         * login/logwtmp.c (logwtmp): Reimplemented.  Must ensure that a
8884         record always gets appended at end of file (wtmp is a log file,
8885         after all).  Set ut_type to DEAD_PROCESS if name is empty.
8887         * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
8888         separate loop from search for UT_ID.  Fix code so it is in
8889         sync with Unix man page.
8891         * login/getutline_r.c (getutline_r): Stop searching only if
8892         ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
8894 Tue Jul 16 15:06:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8896         * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
8897         avoid duplicate declarations.
8899 Sun Jul 14 19:08:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8901         * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
8902         and alpha-gnu-linuxecoff targets.
8904 Fri Jul 12 16:58:44 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8906         * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
8908 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
8910         * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
8911         of int.
8913         * resolv/res_comp.c (res_hnok): Use empty statement in place
8914         of NULL (which generates a "useless expression" warning in
8915         gcc).
8917 Wed Jul 17 23:56:35 1996  Roland McGrath  <roland@baalperazim.frob.com>
8919         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
8920         with $(..) in output.
8922 Wed Jul 17 21:53:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8924         * elf/Makefile (dl-routines): Add dl-cache.
8925         * elf/dl-cache.c: New file.
8926         * elf/dl-load.c (_dl_map_object): Check cache before default path.
8928 Wed Jul 17 20:41:30 1996  Ulrich Drepper  <drepper@cygnus.com>
8930         * stdio-common/vfscanf.c: Major change.  Now read character
8931         from stream only if needed.  Before it was read after the
8932         previous character was used.
8933         Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
8935         * stdio-common/tstscanf.c: Change test program so that return
8936         value is != 0 if one test failed.
8938 Wed Jul 17 17:08:48 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8940         * sysdeps/m68k/Makefile (crypt): Variable removed.
8941         * sysdeps/sparc/Makefile: Likewise.
8943         * version.h (VERSION): Update to 1.93.
8945         * Makerules ($(libdir)/libc.so): Depend on
8946         $(common-objpfx)libcrypt.so$(libcrypt.so-version).
8948         * crypt/nocrypt.c: New file.
8949         * Makefile (subdirs): Add crypt.
8950         * crypt/Makefile: New file.
8952         * Makerules (soversions.mk): Move this target, include of it, and
8953         include of version.mk to ...
8954         * Makeconfig: ... here.
8955         (soversions.mk): Depend on Makeconfig instead of Makerules.
8957         * shlib-versions (*-*-*): Set libcrypt=0.
8959 Wed Jul 17 11:29:26 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8961         * stdio/linewrap.c (lwupdate): Fix boundary condition where a
8962         word extends right up to rmargin.
8964         * stdio/linewrap.c (lwupdate): When we've done a word wrap and
8965         output the wrap margin, set point_col to wmargin.
8966         Use negative point_col to deal with a wmargin of 0.
8967         (line_wrap_point): Return 0 for a negative point_col.
8968         (line_wrap_stream): Make wmargin ssize_t.
8969         * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
8970         point_col ssize_t.
8971         (line_wrap_stream): Make wmargin ssize_t.
8972         (line_wrap_point): Return 0 for a negative point_col.
8974 Wed Jul 17 02:43:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8976         * shlib-versions (*-*-gnu*): Set libc=0.0
8978 Tue Jul 16 01:52:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8980         * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
8981         sysdeps/i386/dl-machine.h.
8983 Tue Jul 16 00:18:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
8985         * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
8986         to fiddle __put_limit in conjunction with __linebuf_active.
8988 Tue Jul 16 00:14:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
8990         * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
8991         to the strong name, not the file name.
8993 Tue Jul 16 16:43:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
8995         * csu/initfini.c: More magic.  Detect if .end is produced and put it
8996         in the output iff the compiler does.
8998         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
8999         because that is broken on alpha.
9001         * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
9002         call as in first.
9004         * Makerules (make-link): Install the new link with atomic mv -f in
9005         case ln itself requires the library being installed.
9007 Tue Jul 16 00:31:31 1996  Richard Henderson  <rth@tamu.edu>
9009         * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
9010         i386/dl-machine.h of 960713.
9012         * sysdeps/generic/dl-sysdep.c:  Include <sys/mman.h>.
9013         (_dl_sysdep_read_whole_file): Fix result variable declaration.
9015 Tue Jul 16 00:53:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9017         * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
9018         `nodename' member.
9020 Mon Jul 15 17:23:53 1996  Ulrich Drepper  <drepper@cygnus.com>
9022         * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
9023         with pointer to local variable instead of NULL.
9025 1996-07-15  Paul Eggert  <eggert@twinsun.com>
9027         * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
9029 Sat Jul 13 09:53:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
9031         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
9032         that are already added by other means.
9034         * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
9035         caller column to get those syscalls added automagically.
9037 Mon Jul 15 12:24:54 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9039         * login/logout.c (logout): Initialize DATA to a state that will
9040         make setutent_r happy.
9042 Sun Jul 14 01:51:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9044         * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
9045         instead of setting the DT_DEBUG pointer.
9047         * csu/initfini.c (_init, _fini): Generate .end directives after
9048         standalone prologues and filter them out from epilogues.
9050         * Makeconfig (rtld-installed-name): Set to ld.so.1.
9051         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
9052         removed.
9054         * manual/Makefile (glibc-targets): Remove subdir_ from elts.
9056         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
9058         * MakeTAGS (extract): Pass --add-comments=TRANS.
9059         * sysdeps/gnu/errlist.awk: Write comments into the output with the
9060         descriptive paragraphs from the manual preceded by TRANS.
9062         * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
9063         (_dl_start): Move RESOLVE defn inside this function and #include
9064         "dynamic-link.h" a second time there.
9065         [RTLD_START]: Move use of this after _dl_start function.
9067         * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
9069         * elf/rtld.c: Include <string.h>.
9071         * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
9072         ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
9073         Conditionalize defns on [RESOLVE].
9074         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
9075         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
9076         Instead use RESOLVE macro with same args.
9077         (elf_machine_rel): Conditionalize defn on [RESOLVE].
9078         * elf/dl-reloc.c (RESOLVE): New macro, define before including
9079         "dynamic-link.h".  It replaces `resolve' local function.
9080         * elf/dl-runtime.c: Likewise.
9081         * elf/rtld.c: Likewise.
9083         * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
9085         * elf/dl-open.c (_dl_open): Force an indirect call for
9086         _dl_relocate_object so there is no chance a PLT fixup will be done
9087         and clobber _dl_global_scope before our call happens.
9089         * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
9090         to =t; must operate on top of fp reg stack, not second from top.
9091         Correct input constraint to 0 from t; must be explicit when input and
9092         output are the same register.
9093         (floor): Use __volatile instead of volatile.
9094         (ceil): Likewise.
9096         * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
9097         other targets.
9099 Sat Jul 13 23:50:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9101         * manual/Makefile (lib): New phony target.  Depend on stamp files.
9102         ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
9104 1996-07-13  Paul Eggert  <eggert@twinsun.com>
9106         * time/strftime.c (strftime): Use space padding for %e, %k, %l,
9107         to match Emacs format-time-string specification.
9108         (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
9110 Sat Jul 13 20:17:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9112         * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
9113         NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
9114         between MAP and its deps.
9115         * elf/link.h: Fix decl.
9116         * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
9117         colon-separated list of names, map those and pass vector of ptrs as
9118         PRELOADS list to _dl_map_object_deps.
9119         * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
9120         _dl_map_object_deps with empty preload list.
9121         * elf/dl-open.c (_dl_open): Likewise.
9123         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
9124         removed.
9125         (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
9126         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
9127         Conditionalize defn on [! MAP_ANON].
9128         * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
9129         on [! MAP_ANON].
9130         * elf/rtld.c (dl_main): Likewise.
9131         * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
9132         (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
9134         * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
9136 Sat Jul 13 02:47:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9138         * stdlib/random.c (__random): Declare as int32_t to be in sync
9139         with declaration.
9141         * socket/Makefile (headers): Add socketbits.h.
9143         * misc/mntent.c (endmntent): Allow for NULL stream.  SunOS does
9144         it that way.
9146         * grp/initgroups.c (initgroups): Add groups that user is a member
9147         of, not the ones he is _not_ a member of.
9149         * nss/nsswitch.c (known_compare): Make known_compare() a static
9150         instead of a local function.  The latter are difficult to debug
9151         and slow to execute on certain platforms.
9153         * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
9154         place of sizeof (dev).  The size of a literal string includes the
9155         NUL byte.
9157         * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
9159 Thu Jul 11 16:59:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9161         * misc/mntent.c (addmntent): Seek to end of file before writing
9162         entry.  Return 1 on error, not -1.
9164 Tue Jul  9 19:08:05 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9166         * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
9167         syscall.
9169 Fri Jul  5 18:44:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9171         * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
9172         shift amount for Jensen must be 5 not 4.
9174 Sat Jul 13 20:04:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9176         * socket/sys/socket.h (struct osockaddr): New type.
9178 Sat Jul 13 03:50:53 1996  Ulrich Drepper  <drepper@cygnus.com>
9180         * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
9181         * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
9182         and `long double' versions can be generated.
9183         * misc/qefgcvt.c, misc/qefgcvt_r.c: New files.  Define macros
9184         so that included efgcvt{,_r}.c file generate `long double'
9185         versions.
9186         * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
9187         functions.
9189         * manual/startup.texi: Document new getsubopt function.
9190         * manual/examples/subopt.c: New example program for documenting
9191         getsubopt function.
9193 Fri Jul 12 23:58:37 1996  Ulrich Drepper  <drepper@cygnus.com>
9195         * stdlib/Makefile (routines): Add getsubopt.
9196         * stdlib/stdlib.h: Add prototype for getsubopt.
9197         * stdlib/getsubopt.c: New file.  Implement getsubopt function
9198         to handle suboption parsing.
9200 Thu Jul 11 20:09:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9202         * inet/getnetent_r.c: Define NEED_H_ERRNO.
9203         * inet/getnetbynm_r.c: Likewise.
9204         * inet/getnetent.c: Likewise.
9205         * inet/getnetbyad_r.c: Likewise.
9206         * inet/getnetbyad.c: Likewise.
9207         * inet/getnetbynm.c: Likewise.
9209         * sysdeps/generic/pselect.c: Include <sys/time.h>.
9211         * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
9212         `struct timespec'.
9214         * math/Makefile (calls): Add s_frexp, s_ldexp.
9215         (routines): Remove them and &f from here.
9217         * sys/socket.h: New file, wrapper for socket/sys/socket.h.
9219         * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
9220         and check it.
9222         * nss/nss_files/files-XXX.c: Comment fix.
9224 Fri Jul 12 01:28:35 1996  Ulrich Drepper  <drepper@cygnus.com>
9226         * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
9227         of reentrant function.
9228         (setup): Pass additional argument with function name we are
9229         looking for.
9230         (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
9231         new argument {SET,END,GET}FUNC_NAME_STRING.
9233         * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
9234         we return a pointer.
9236 Thu Jul 11 18:20:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9238         * nss/nss_files/files-parse.c: Add comment about things to #define.
9240         * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
9242         * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
9243         terminator char as an error.
9245         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
9247 Thu Jul 11 03:21:10 1996  Ulrich Drepper  <drepper@cygnus.com>
9249         * catgets/gencat.c (write_out): Move code to determine new
9250         best size out of inner loop.
9252 Thu Jul 11 00:22:40 1996  Ulrich Drepper  <drepper@cygnus.com>
9254         * sysdeps/libm-ieee754/s_frexpl.c: New file.  `long double'
9255         implementation of frexp() function.
9256         * sysdeps/libm-ieee754/s_ldexpl.c: New file.  `long double'
9257         implementation of ldexp() function.
9259         * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
9260         out before or'ing.
9262 Wed Jul 10 05:24:40 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9264         * misc/mntent.c: Include <sys/types.h>.
9265         (endmntent): Return 1 one success, 0 on failure.
9266         (getmntent): Chop newline and ignore empty lines.
9268 Mon Jul  8 21:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
9270         * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
9271         differently based on [RTLD_BOOTSTRAP].
9272         (elf_machine_rela): Use it instead of the fn ptr arg directly.
9274 Tue Jul  9 09:37:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9276         * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
9277         __glob_closedir_hook): Remove decls.
9279         * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
9281         * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
9282         for send and connect syscalls.
9284         * socket/sys/socket.h: New file, taken from non-sysdep parts of
9285         linux/sys/socket.h; break sysdeps parts out into socketbits.h.
9286         Declare __ names for send and connect.
9287         * sysdeps/generic/socketbits.h: New file.
9288         * sysdeps/unix/sysv/linux/socketbits.h: New file.
9289         * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
9290         * sysdeps/generic/sys/socket.h: File removed.
9292         * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
9293         * sysdeps/mach/hurd/send.c: Likewise.
9295         * sysdeps/mach/libc-lock.h: New file.
9296         * sysdeps/unix/readdir.c: Do locking.
9297         * sysdeps/unix/seekdir.c: Likewise.
9298         * sysdeps/unix/rewinddir.c:  Likewise.
9299         * sysdeps/unix/closedir.c: Likewise.
9300         * sysdeps/unix/bsd/telldir.c: Likewise.
9301         * sysdeps/mach/hurd/seekdir.c: Likewise.
9302         * sysdeps/mach/hurd/readdir.c: Likewise.
9303         * sysdeps/mach/hurd/closedir.c: Likewise.
9304         * sysdeps/mach/hurd/opendir.c: Initialize the lock.
9305         * sysdeps/unix/opendir.c: Likewise.
9306         * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
9307         (struct __dirstream): Add lock member using __libc_lock_define.
9308         * sysdeps/unix/dirstream.h: Likewise.
9310         * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
9312         * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
9314         * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
9316 Thu Jul  4 01:34:04 1996  Ulrich Drepper  <drepper@cygnus.com>
9318         * locale/programs/stringtrans.c: Fix typo in copyright.
9320         * stdio-common/printf-prs.c: Add casts to prevent
9321         signed<->unsigned warnings.
9323         * stdio-common/printf-parse.h: Initialize state variable before
9324         calling mbrlen.
9325         * stdio-common/printf-prs.c: Don't initialize state variable here.
9326         * stdio-common/vfprintf.c: Don't initialize state variable.
9327         (vfprintf): While determining length of multibyte string don't
9328         try to be clever in determining characters to use for first
9329         call.
9331         Add real implementation of multibyte<->wide char conversion
9332         functions.  The functions always convert between the fixed wide
9333         char format (ISO 10646 in UCS4) and the UTF8 representation of
9334         this character set.  Conversion between the currently used
9335         8bit character set and ISO 10646 will not take place.  This is
9336         what iconv() is for.
9337         * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
9338         dummy definition.
9339         Add optimized version of `mbrlen' function.
9340         * wcsmbs/btowc.c (btowc): Restrict range of legal characters
9341         to 0...0x7f.
9342         * wcsmbs/wctob.c (wctob): Restrict range of legal characters
9343         to 0..0x7f.
9344         * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
9345         This is needed in the wchar.h header.
9346         * wcsmbs/mbrtowc.c: Replace dummy implementation.  Convert UTF8
9347         encoded character to UCS4.
9348         * wcsmbs/mbsinit.c: Replace dummy implementation.  Test COUNT
9349         element of `mbstate_t' for initial state.
9350         * wcsmbs/mbsrtowcs.c: Replace dummy implementation.  Convert UTF8
9351         encoded string to UCS4 string.
9352         * wcsmbs/wcrtomb.c: Replace dummy implementation.  Convert UCS4
9353         character to UTF8 encoded form.
9354         * wcsmbs/wcsrtombs.c: Replace dummy implementation.  Convert UCS4
9355         encoded string to UTF8 encoded form.
9357 Tue Jul  9 06:19:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9359         * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
9360         variable name, so new a libc with new requirements won't fail to
9361         notice an insufficient Linux version.
9363         * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
9365         * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
9366         instead of 2.0 headers.
9368         * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
9370         * sysdeps/gnu/errlist.awk: Undo mib's bogus changes.  The
9371         sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
9373         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
9374         before using it in lhs of weak_alias.
9376         * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
9377         Call __nss_lookup when not setting STARTP.
9378         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
9379         function-calling loop.
9381 Tue Jul  9 00:14:52 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
9383         * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
9384         PENDIN, NOFLSH): Undefine these at start if they are already
9385         defined to avoid collision with termbits.h.
9386         * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
9387         (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
9389 Mon Jul  8 13:37:40 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9391         * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
9392         already defined to float, long double.  Use those macros for _Mdouble_
9393         defns when including mathcalls.h.
9394         * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
9395         -D_Mlong_double_=double.
9397         Add more -lm functions to -lc because ldexp uses them.
9398         * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
9399         (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
9400         ldexp have both f and l code, and those have f though not l code.
9402 Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
9404         * sysdeps/mach/hurd/errnos.awk: Skip entries where the
9405         error is 0.  The "placeholder" entries recently added to
9406         errno.texi convert to zero since `???/' is at the front of them.
9407         * sysdeps/gnu/errlist.awk (errnoh): Likewise.
9409         * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
9410         __const to conform with unistd.h.
9412         * stdlib/stdlib.h (random): Declare return type to be int32_t.
9414         * string/argz-delete.c (argz_delete): Use memmove instead of
9415         memcpy for possibly overlapping strings.
9417 Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9419         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
9420         storage class.  GCC gives an error for non-extern data defns with the
9421         alias attribute.
9423 Mon Jul  8 01:37:34 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
9425         * string/argz-insert.c (__argz_insert): (__argz_insert): Use
9426         memmove instead of memcpy for possible overlapping strings.
9428 Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9430         * libc-symbols.h (weak_function): New macro.
9431         For GCC 2.7+ define as __attribute__ ((weak)).
9432         * elf/dl-minimal.c: Use weak_function as keyword in function defns
9433         instead of weak_symbol (NAME) after the defn.
9434         * stdlib/strtol.c: Likewise.
9435         * stdlib/strtod.c: Likewise.
9436         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
9438         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
9439         If this is defined, don't declare _dl_rtld_map as weak, and
9440         don't check for MAP pointing to it.  RESOLVE is always null in this
9441         case, so test with #ifdef instead of if.
9443         * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
9444         weak_symbol.
9445         * csu/initfini.c (_init): Likewise.
9446         * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
9447         * misc/efgcvt_r.c: Likewise.
9448         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
9449         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
9451         * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
9452         It was not used in any assembler code.
9453         (weak_symbol_asm): Renamed to weak_extern_asm.
9454         (weak_extern): New macro replaces weak_symbol for weak extern refs;
9455         define to weak_extern_asm for [!ASSEMBLER].
9457 Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9459         * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
9460         weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
9461         define those now as aliases.
9462         Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
9463         [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
9464         after GCC weak attribute decl.
9466         * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
9467         map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
9468         (element printer): Check for elt in ALIAS, instead of special case
9469         for EWOULDBLOCK.
9471         * io/Makefile (headers): Add sys/vfs.h.
9472         * io/sys/vfs.h: New file.
9474         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
9475         critical section lock before unlinking dying active resources.
9476         The unlock just before return is right (i.e. old code unlocked twice).
9478 Sun Jun  2 22:28:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9480         * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
9481         Use memmove instead of memcpy where overlap is possible (not
9482         necessary using current implementation of memcpy, but...).
9483         (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
9485 Fri May 31 11:48:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9487         * stdio/linewrap.c (lwupdate): New function, mostly was
9488         __line_wrap_update.  Use POINT_COL field instead of POINT.
9489         (__line_wrap_output): Use lwupdate.
9490         (__line_wrap_update): New function.
9491         (ensure_unwrapped, ensure_wrapped): New functions.
9492         (line_wrap_set_lmargin, line_wrap_set_rmargin,
9493         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
9495         * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
9496         POINT_COL. Add POINT_OFFS field.
9497         (__line_wrap_update): New decl.
9498         (line_wrap_set_lmargin, line_wrap_set_rmargin,
9499         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
9501 Fri Jul  5 17:34:47 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9503         * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
9505         * login/pututline_r.c (pututline_r): Since we assign RESULT from
9506         lseek now, check that it's >= 0, not == 0.
9508 Wed Jul  3 13:28:04 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9510         * login/login.c (login): Make a copy of *UT, fill in various
9511         fields that we supply (ut_line, ut_type, ut_pid), and use the copy
9512         in place of UT.
9514         * login/getutline_r.c (getutline_r): When we return ESRCH, mark
9515         UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
9517 Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9519         * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
9520         signal during critical section doing interruptible RPC, if
9521         _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
9522         before thread_resume.  If in critical section, pass 0 for SIGNO to
9523         _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
9525         * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
9527         * sysdeps/unix/sysv/linux/sys/user.h: New file.
9528         * sysdeps/unix/sysv/linux/Dist: Add it.
9529         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
9531         * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
9532         points within DATA->linebuffer; otherwise use all of DATA->linebuffer
9533         itself, no need to skip past a NUL.
9535         * nss/nsswitch.h (known_function): Comment fix.
9536         * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
9537         directly.  Do the lookup and insertion with a single call, and fill in
9538         the tree node afterwards if new.
9539         (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
9541         * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
9542         (struct timeval): Add bodiless decl for scope.
9544         * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
9545         Move struct timespec defn outside [_TIME_H] so it can be got with
9546         #define __need_timespec.
9548         * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
9549         for `struct timespec' member names.
9550         (TIMESPEC_TO_TIMEVAL): Likewise.
9552         * nss/Makefile (extra-libs-others): New variable.
9554         * extra-lib.mk: Don't test for $($(lib)-no-lib-dep).  Instead match
9555         $(lib) in $(extra-libs-others).
9556         * sunrpc/Makefile (extra-libs-others): New variable.
9557         (librpcsvc-no-lib-dep): Variable removed.
9559         * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
9560         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
9561         _dl_rtld_map.
9562         (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
9563         (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
9564         (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
9565         _dl_rtld_map weak only here.
9567         * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
9569 Thu Jul  4 05:21:59 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9571         * login/utmp.h: Fix typos.
9573         * misc/syslog.c (vsyslog): Use __send instead of send and
9574         __connect instead of connect to avoid name-space collisions (e.g.,
9575         with psgetty).
9577 Wed Jul  3 16:29:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9579         * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
9581         * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
9583         * malloc/malloc-size.c (malloc_usable_size): Renamed from
9584         malloc_object_allocation_size.
9585         * malloc/malloc.h: Fix decl.
9587         * sys/select.h: New file, wrapper header.
9589         * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
9590         fd_set, associated macros, and select decl.
9592         * sysdeps/posix/isfdtype.c: New file.
9594 Tue Jul  2 23:45:14 1996  Ulrich Drepper  <drepper@cygnus.com>
9596         The latest Japanese proposal for POSIX locales renames the
9597         CHARMAP keyword in locale definition files to CHARCONV.
9598         * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
9599         function ctype_is_charmap to ctype_is_charconv.
9600         * locale/programs/locfile-kw.gperf: Replace charmap keyword with
9601         charconv.
9602         * locale/programs/locfile-token.h: Add definition of token
9603         charconv.
9604         * locale/programs/locfile.c: Recognize charconv keyword.  Rename
9605         lables according to this.
9607         * locale/weight.h (get_weight): Cast constants to prevent
9608         warnings.
9610         * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
9611         string/strxfrm.c: Add some more casts to prevent signed<->unsigned
9612         warnings.
9614         New stuff described in P1003.1g.
9615         * misc/Makefile (headers): Add sys/select.h.
9616         (routines): Add pselect.
9617         * misc/sys/select.h: New file.  Declare select functions and
9618         needed data types and macros.
9619         * sysdeps/generic/pselect.c: New file.  Add generic implementation
9620         of pselect() function which uses select().
9622         * posix/getconf.c: Recognize new variables from P1003.1g.
9623         * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
9624         _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
9625         * posix/unistd.h: Add description of the P1003.1g variables.
9626         * sysdeps/generic/confname.h: Define _SC_* values for new
9627         variables.
9628         * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
9629         _PC_SOCK_MAXBUF.
9630         * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
9631         * sysdeps/posix/sysconf.c (sysconf): Add handling of new
9632         P1003.1g variables.
9633         * sysdeps/stub/sysconf.c (sysconf): Ditto.
9634         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
9635         _POSIX_SELECT since Linux has this.
9637         * socket/Makefile (routines): Add isfdtype.
9638         * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
9639         * sysdeps/stub/isfdtype.c: New file.  Stub implementation of
9640         isfdtype.
9642         * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
9644 Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9646         * elf/Makefile (LDFLAGS-dl.so): New variable.
9647         (libdl.so): Depend on eval.so.
9648         (distribute): Add eval.c.
9649         * elf/eval.c: New file.
9651         * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
9652         in case it wrote fewer than MAXDIGITS chars.
9654         * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
9655         newline from flushing full buffer in loop, fix test so no fflush is
9656         done when last byte written exactly fills the buffer.
9658         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
9660         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
9661         (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
9663         * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
9664         extracting _dl_rtld_map.l_addr.
9666         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
9667         weak.
9668         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
9670         * shlib-versions (*-*-*): Set libnss_db=1.
9672 Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9674         * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
9676         * rpm/template (%build): Use @prefix@ instead of always /usr.
9677         Set up configparms only if @prefix@ is in fact /usr.
9678         * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
9680         * elf/Makefile: Add missing endif.
9682         * nss/nss_files/files-ethers.c (ntohost): Fix db key.
9684         * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
9685         (DATABASE): Define this instead of DATAFILE.
9686         * nss/nss_files/files-hosts.c: Likewise.
9687         (hostbyname): Use LOOKUP_NAME macro.
9689         * nss/nss_db/db-XXX.c: New file.
9690         * nss/Makefile (services): Add db.
9691         (libnss_db-inhibit-o): New variable.
9692         (libnss_db-routines): New variable.
9693         (distribute): Append db-XXX.c.
9694         (libnss_db.so): Depend on libdb.so and libnss_files.so.
9695         ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
9697         * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
9698         args, ignored.
9699         (DATAFILE): New macro.
9700         * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
9701         "files-XXX.c".
9702         * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
9703         Pass db key args to DB_LOOKUP.
9704         (DATAFILE): Macro removed.
9705         (DATABASE): New macro replaces it, lacks "/etc/" prefix.
9706         * nss/nss_files/files-service.c: Likewise.
9707         * nss/nss_files/files-pwd.c: Likewise.
9708         * nss/nss_files/files-proto.c: Likewise.
9709         * nss/nss_files/files-grp.c: Likewise.
9710         * nss/nss_files/files-ethers.c: Likewise.
9712         * elf/linux-compat.c: File removed.
9713         * elf/Makefile (distribute): Remove linux-compat.c.
9714         (ld-linux.so.1): Remove target and associated variables.
9716         * sunrpc/xdr.c: Remove malloc decl.
9717         * sunrpc/portmap.c: Likewise.
9719         * sunrpc/svc_tcp.c (abort): Don't declare.  Instead define as macro
9720         casting abort to fn returning bool_t.
9722         * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
9723         the parser function.
9724         [EXTERN_PARSER] (LINE_PARSER): Define to empty.
9725         * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
9726         * nss/nss_files/files-grp.c: Likewise.
9728         * Makeconfig (BUILD_CC): If undefined, define to $(CC).
9730         * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
9732         * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
9733         of ld.so so lookups for that soname find it.
9735         * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
9736         (resobjdir, LDLIBS-nss_dns.so): Variables removed.
9738         * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
9739         define parse_line function.
9740         (parse_line): #define to _nss_files_parse_pwent and
9741         add extern decl for that.
9743         * nss/nss_files/files-XXX.c (internal_getent): Return
9744         NSS_STATUS_TRYAGAIN for ERANGE error.
9746         * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
9747         of null, so next round returns null again instead of bombing.  Fix
9748         from drepper.
9750         * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
9751         Remove ; after `ENTDATA_DECL (data)'.
9752         Truncate line at strpbrk (line, EOLSET "\n").
9753         (ENTDATA_DECL): Put ; at end.
9754         (MIDLINE_COMMENTS): Macro removed.
9755         * nss/nss_files/files-ethers.c: Pass new argument.
9756         * nss/nss_files/files-hosts.c: Likewise.
9757         * nss/nss_files/files-network.c: Likewise.
9758         * nss/nss_files/files-parse.c: Likewise.
9759         * nss/nss_files/files-proto.c: Likewise.
9760         * nss/nss_files/files-rpc.c: Likewise.
9761         * nss/nss_files/files-service.c: Likewise.
9762         * grp/fgetgrent.c: Likewise.
9763         * pwd/fgetpwent.c: Likewise.
9764         * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
9765         fgetpwent.c already defines it.
9766         * nss/nss_files/files-grp.c: Likewise.
9768         * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
9769         as well as any matching with l_libname.  Fix DT_SONAME lookup to use
9770         string table properly.
9772         * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
9773         invoked directly, and l_libname from that if PT_INTERP missing.
9774         Set l_name from l_libname only if not set from argv.
9776         * time/europe, time/northamerica: Updated from ADO 96i.
9778 Mon Jul  1 15:44:34 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9780         * stdio-common/tst-ungetc.c: Include unistd.h.
9782         * inet/Makefile (routines): Change getnetbypt to getnetbyad.
9784 Mon Jul  1 13:32:42 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9786         * hurd/report-wait.c (describe_number): Make I unsigned long.
9788         * login/login.c (login): Only Frob OLD->ut_type if getutline_r
9789         actually found any entry.
9791         * login/pututline_r.c (pututline_r): If not located after any
9792         entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
9793         Lock the file before stating.
9795 Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9797         * nss/Makefile (databases): Change host to hosts.
9798         * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
9800         * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
9802         * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
9804         * string/string.h (strndupa): Pass missing arg to strnlen.
9806         * inet/getnetbypt_r.c: Renamed to ...
9807         * inet/getnetbyad_r.c: this; fixed function name.
9808         * inet/getnetbypt.c: Renamed to ...
9809         * inet/getnetbyad.c: this; fixed function name.
9811 Sat Jun 29 01:08:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
9813         * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
9814         struct passwd.
9816 Fri Jun 28 23:25:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9818         * login/login.c (login): Initialize DATA so that setutent_r will
9819         actually do something.
9821 Fri Jun 28 16:53:01 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9823         * resolv/res_hconf.c (strndup): Remove function.
9825         * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
9826         using ElfW() instead of Elf32_*.
9828         * sysdeps/unix/sysv/linux/alpha/init-first.h,
9829         sysdeps/unix/sysv/linux/m68k/init-first.h,
9830         sysdeps/unix/sysv/linux/i386/init-first.h: New files.
9831         * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
9832         init-first.h to make abstract machine dependent parts of
9833         initialization.
9835         * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
9836         error handling.  It's safer that way.
9838         * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
9839         Fix by Richard Henderson.
9841         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
9842         typo/extraneous whitespace.
9844         * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
9845         determine what integer sizes we're dealing with.
9847 Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
9849         * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
9850         check for signal zero, repair logical sense of test by
9851         parenthesizing correctly.
9853         * hurd/hurdsig.c (_hurd_internal_post_signal): In
9854         check-for-pending signals code, release _hurd_siglock before
9855         jumping to deliver_pending.
9857 Thu Jun 27 04:04:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
9859         * configure.in (config_machine): Make ELF the default even for
9860         Linux/Alpha unless a configuration of the form *-*-linux*ecoff
9861         is specified.
9863 Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9865         * nss/nss_files/files-hosts.c (ENTDATA): Define it.
9866         * nss/nss_files/files-parse.c (struct parser_data): Define entdata
9867         member only #ifdef ENTDATA.
9868         (ENTDATA_DECL): New macro.
9869         (LINE_PARSER): Use it for entdata decl.
9870         (parse_list): Find the space for LIST from DATA->linebuffer instead of
9871         from the input LINE, which might not be writable buffer space.
9872         (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
9873         [ENTDATA] (parser_stclass): #define to `static inline'.
9874         [!ENDATA] (parser_stclass): #define to empty.
9875         [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
9876         function is exported to -lnss_files users.
9878         * string/strndup.c: Add missing arg.
9880         * string/string.h (strndupa): Likewise.
9881         * string/strndup.c (strndup): Always terminate the string.
9883 Thu Jun 27 14:22:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
9885         * stdio/Makefile (routines): Add vscanf.
9886         * stdio-common/Makefile (routines): Remove vscanf.
9887         * stdio-common/vscanf.c: Move to ...
9888         * stdio/vscanf.c: here.
9890         * rpm/Makefile (headers, install-lib, install-lib.so,
9891         versioned, install-bin, install-sbin, install-data,
9892         install-others): Add $(-VARIABLE).
9894 Fri Jun 28 02:41:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9896         * nss/Makefile (databases): New variable.
9897         (routines, libnss_files-routines): Use it.
9898         (subdir-dirs): Compute from $(services).
9900         * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
9901         init_module, klogctl): Use EXTRA in the "caller" column so these get
9902         added to unix-extra-syscalls and thus compiled in misc.
9904         * string/Makefile (routines): Add strndup.
9905         * string/strndup.c: New file.
9906         * string/string.h: Declare strndup.
9907         (strndupa): New macro.
9909         * string/string.h: Declare __strdup.
9910         * string/strdup.c: Deansideclized.  Define __ name and weak alias.
9912         * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
9914 Thu Jun 27 02:49:28 1996  Ulrich Drepper  <drepper@cygnus.com>
9916         * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
9918         * grp/initgroups.c (initgroups): De-ansi-fy.
9919         Move declaration of NGROUPS and GROUPS outside #if so that
9920         the code compiles for NGROUPS_MAX != 0.
9922         * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
9923         (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
9924         ether_ntoa, ether_ntoa_r, and ether_ntoh.
9925         * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
9926         inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
9927         inet/ether_ntoh.c: New files.  Implementation of functions to
9928         handle Ethernet address to host mapping.
9929         * inet/netinet/ether.h: New file.  Declare ether_* functions.
9930         * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
9931         compilation.
9932         * nss/ethers-lookup.c: New file.  Lookup function for ethers database.
9933         * nss/Makefile (routines): Add ethers-lookup.
9934         (libnss_files-routines): Add files-ethers.
9936         * nss/getXXent_r.c: Don't define set*ent and end*ent function
9937         with _r suffix.
9939         * nss/nss_files/files-XXX.c (internal_endent): Don't reset
9940         KEEP_STREAM every time called.
9941         (_nss_files_end): Reset KEEP_STREAM here instead.
9942         (internal_getent): If STREAM == NULL try to open instead of
9943         signalling error.
9944         Use cast to prevent warning.
9945         Terminate read line in case the buffer is too small.
9947         * nss/nss_files/files-ethers.c: New file.  Implementation of
9948         Ethernet adress<->hostname lookup through files interface.
9950         * stdlib/mbstowcs.c: Define based on mbsrtowcs().
9951         * stdlib/mbtowc.c: Define based on mbrtowc().
9952         * stdlib/wcstombs.c: Define based on wcsrtombs().
9953         * stdlib/wctomb.c: Define based on wcrtomb().
9955         * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
9956         unexpected_sizes_in_xdr_u_int.
9958         * sysdeps/generic/netinet/if_ether.h: New file.  Generic declaration
9959         of `struct ether_addr'.
9960         * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file.  Linux specific
9961         declaration of `struct ether_addr'.
9963         * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
9964         * wcsmbs/mbsrtowcs.c: Ditto.
9965         * wcsmbs/wcrtomb.c: Ditto.
9966         * wcsmbs/wcsrtombs.c: Ditto.
9968         * wcsmbs/mbsinit.c: Prepare for PS being NULL.
9970 Wed Jun 26 13:19:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
9972         * hurd/get-host.c <fcntl.h>: New include.
9973         * hurd/set-host.c <fcntl.h>: New include.
9974         (_hurd_set_host_config): Include NEW in args to dir_link.
9975         Return NWROTE, not NREAD.
9977         * sysdeps/mach/hurd/getcwd.c
9978         (_hurd_canonicalize_directory_name_internal): Don't deallocate
9979         DOTID & DOTDEVID until we're finished with them (we need to keep
9980         them at least until we've fetched the next level of id ports, so
9981         that mach will be able to use the same name if they're the same).
9982         Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
9983         jumps to errlose, for those places where such cleanup is needed.
9985 Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
9987         * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
9989         Move DB code into separate -ldb library.
9990         * db/Makefile (extra-libs): New variable, list libdb.
9991         (routines): Renamed to libdb-routines.
9992         * shlib-versions: Add libdb=2.
9994         * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
9995         * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
9997         * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
9998         of strncasecmp.  Extend syntax to grok [!foo=bar].
10000         * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
10001         weak alias.
10002         * string/string.h: Declare __strncasecmp.
10004         * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
10005         (service_alias): Variable removed.
10006         (nss_parse_service_list): New function, broken out of nss_getline.
10007         Remove alias conversion; we will just use symlinks.
10008         (__nss_database_lookup): Take new string arg DEFCONFIG.
10009         If no entry exists, make one with service list parsed from that.
10010         * nss/nsswitch.h: Update protocol for __nss_database_lookup.
10011         * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
10012         (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
10014         * grp/initgroups.c: Rewritten using getgrent.  Handle unlimited group
10015         list size.
10017         * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
10019 Wed Jun 26 01:56:50 1996  Ulrich Drepper  <drepper@cygnus.com>
10021         * locale/programs/locale.c (long_options): Short form of
10022         --version option is `-V'.
10023         (main): Recognize `-V' as option, not `-v'.
10024         Call `usage' instead of printing error message for illegal
10025         option.
10026         (usage): Document `-V'.
10028 Tue Jun 25 17:22:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>
10030         * sysdeps/mach/hurd/getcwd.c
10031         (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
10032         THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
10034 Tue Jun 25 10:58:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
10036         * inet/getrpcent.c: Fix macros.
10037         * inet/getrpcent_r.c: Fix macros.
10039         * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
10041         * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
10043 Tue Jun 25 09:55:47 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
10045         * catgets/gencat.c (write_out): Use %Zu to print variables of type
10046         size_t.
10047         * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
10048         cast it to (unsigned long) to make it work both on 32 and 64
10049         bit architectures.
10051 Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
10053         * locale/Makefile (distribute): Add `programs/' prefix to all
10054         files in that directory.
10056         * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
10057         subdir' works.
10059         * MakeTAGS (sources, headers): Make them simply expanded variables
10060         so that all-dist is expanded before it is changed.
10062 Tue Jun 25 02:59:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
10064         * Make-dist (dist): Don't depend on crypt tar file.  Remove that rule.
10065         * Makefile (subdirs): Remove crypt.
10066         * crypt: Directory removed.  It will be made an independent library
10067         distribution.
10069         * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
10071         * inet/getrpcent_r.c (DATABASE_NAME): New macro.
10073         * inet/getrpcbynumber.c (BUFLEN): New macro.
10075         * configure.in (--no-whole-archive check): Remove backslashes in cmd.
10077         * Makefile (headers): Add libc-lock.h.
10078         * sysdeps/stub/libc-lock.h: New file.
10080         * inet/getrpcbynumber.c: Remove _r typo.
10082         * elf/dl-load.c (_dl_map_object): Fix typo in last change.
10084         * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
10085         after the first!
10087         * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
10088         or doesn't mention DATABASE, use an internal default equivalent to
10089         "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
10090         (nss_lookup_function): Call nss_new_service as needed.
10091         (nss_parse_file): Don't bother calling nss_new_service here.
10093         * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
10094         * pwd/fgetpwent.c: Likewise.
10096         * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
10097         * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
10098         * malloc/malloc-size.c: New file.
10099         * malloc/malloc-walk.c: New file.
10101         * malloc/malloc-find.c (malloc_find_object_address): Return null if
10102         PTR is outside the heap.
10104         * elf/dl-load.c (_dl_map_object): If the requested name matches the
10105         soname of a loaded object, use that object.
10107 Mon Jun 24 19:57:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
10109         * Makefile (subdirs): Add nss.
10111         * inet/Makefile (routines): Add getrpcent, getrpcbyname,
10112         getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
10113         * inet/getrpcbynumber_r.c: New file.
10114         * inet/getrpcbynumber.c: New file.
10115         * inet/getrpcbyname.c: New file.
10116         * inet/getrpcbyname_r.c: New file.
10117         * inet/getrpcent_r.c: New file.
10118         * inet/getrpcent.c: New file.
10119         * nss/rpc-lookup.c: New file.
10120         * nss/nss_files/files-rpc.c: New file.
10121         * nss/Makefile (routines): Add rpc-lookup.
10122         (libnss_files-routines): Add files-rpc.
10123         * sunrpc/Makefile (routines): Remove getrpcent.
10124         * sunrpc/getrpcent.c: File removed.
10126         * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
10127         non-null on entry.
10129         * Makeconfig (rpath-link): Add $(nssobjdir).
10130         (nssobjdir): New variable.
10132         * Makerules: Move shared library building before objects rules, so
10133         versions are known before extra-lib.mk gets included.
10134         * extra-lib.mk (lib-noranlib): Depend on the shared object too.
10136         * pwd/getpwuid.c: Rewritten using nss.
10137         * pwd/getpwnam.c: Likewise.
10138         * pwd/getpwent.c: Likewise.
10139         * grp/getgrnam.c: Likewise.
10140         * grp/getgrgid.c: Likewise.
10141         * grp/getgrent.c: Likewise.
10142         * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
10143         * pwd/getpwent_r.c: New file.
10144         * pwd/getpwnam_r.c: New file.
10145         * pwd/getpwuid_r.c: New file.
10146         * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
10147         * grp/getgrnam_r.c: New file.
10148         * grp/getgrgid_r.c: New file.
10149         * grp/getgrent_r.c: New file.
10150         * grp/Makefile (routines): Remove grpopen, grpread.
10151         * pwd/Makefile (routines): Remove pwdopen, pwdread.
10152         * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
10154         * pwd/fgetpwent.c: Rewritten using files-parse.c.
10155         * grp/fgetgrent.c: Likewise.
10157         * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
10158         * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
10159         * nss/nss_files/files-grp.c: New file.
10160         * nss/nss_files/files-pwd.c: New file.
10162         * nss/Makefile (subdir-dirs): New variable; use it in vpath.
10164         * nss/nss_files/files-parse.c: New file.
10165         * nss/nss_files/files-XXX.c: New file.
10166         * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
10167         nss/nss_files/files-service.c, nss/nss_files/files-network.c:
10168         Rewritten using them.
10170         * nss/Makefile (libnss_files-routines): Remove files-host.
10171         Add files-hosts, files-grp, files-pwd.
10173         * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
10175 Mon Jun 24 22:39:12 1996  Richard Henderson  <rth@tamu.edu>
10177         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
10178         A .plt entry now loads the .rela.plt offset directly rather
10179         than making us calculate it.
10181 Sun Jun 23 15:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
10183         * time/Makefile ($(installed-localtime-file) rule): Do
10184         $(make-target-directory) first.
10186         * resolv.h: Fix wrapper for resolv/resolv.h.
10188         * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
10189         Compile dummy file and pass -nostdlib -nostartfiles so as not to
10190         require installed libraries.
10192         * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
10193         libnss_dns=1.
10195 Sun Jun 23 19:42:05 1996  Ulrich Drepper  <drepper@cygnus.com>
10197         * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
10198         and mapv4v6hostent.h.
10199         (routines): Move res* and gethnamaddr into libresolv-routines.
10200         (libresolv-routines): New variable, put them there.
10201         (extra-libs): New variable, list libresolv.
10202         (CPPFLAGS): Add -D for get*by* to res_get*by*.
10204         * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
10206         * inet/herrno.c: New file.
10208         * resolv/res_init.c: Remove res_hconf calls.
10210         * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
10211         nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
10212         nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
10213         nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
10214         nss/service-lookup.c: New files.  Implementation of name
10215         service switch, following the approach in Solaris.
10216         Interface specification and general structure inspired by Peter
10217         Eriksson <pen@lysator.liu.se>.
10218         * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
10219         nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
10220         Implementation of libnss_files.so module for file based databases
10221         in NSS service.
10222         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
10223         if libnss_dns.so module for DNS name lookup in NSS service.
10225         * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
10226         inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
10227         Changed to serve as interface to NSS.
10228         * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
10229         inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
10230         inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
10231         inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
10232         inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
10233         inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
10234         inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files.  Implement
10235         interfaces to NSS, including reentrant functions.
10237         * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
10238         resolv/sethostent.c: Removed:  Obsoleted by NSS.
10240         * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
10241         gethnamaddr.c.  These private functions are now used in more
10242         than one file.
10244         * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
10246 Sat Jun 22 16:49:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
10248         * rpm/Makefile ($(config)): Make sure the word list in the for
10249         loop is syntactically non-empty.
10251 Sat Jun 22 21:29:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
10253         * Version 1.92 test release.
10255 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
10257         * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
10258         to klogctl to match prototype in sys/klog.h.
10260         * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
10261         * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
10263         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
10264         Remove.  Code is now part of __getcwd again.  The old function
10265         never really worked for anything but THISDIR==".".
10267         * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
10268         only when building ELF version of library.
10270         * libio/libioP.h (_IO_vscanf): Add prototype.
10272         * posix/unistd.h (syscall): Change sysno arg and return value
10273         to int long.
10275 Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
10277         * version.h (VERSION): Updated to 1.92.
10279         * misc/Makefile (headers): Add ar.h.
10280         * misc/ar.h: New file.
10282         * config.make.in (BUILD_CC): New variable.
10283         * configure.in: Check for BUILD_CC if $host != $build.
10285         * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
10287         * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
10288         (stamp$o files): New targets, create them empty, no deps.
10290         * rpm/template (Source): New field.
10291         (%prep, %build, %install): New sections.
10292         (%files): Add %doc FAQ NEWS NOTES README.
10293         * rpm/rpmrc (builddir): Removed.
10295 Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
10297         * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
10298         guessing to not assume p_vaddr of first load cmd is zero.
10300         * sysdeps/sparc/elf/start.S: New file.
10301         * sysdeps/sparc/dl-machine.h: New file.
10303         * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
10304         only for ?s, not for *s.  Fix from Chet Ramey.
10306         Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
10307         * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
10308         Use __{BEGIN,END}_DECLS.
10309         (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
10310         * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
10311         New macros, moved here from sysdeps/gnu/utmpbits.h.
10312         * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
10313         * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
10314         * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
10315         Use sizeof instead of UT_*SIZE.
10316         * login/logwtmp.c: Likewise.
10318         * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
10320         * version.c (banner): Add trailing newline.
10322         * login/utmp.h: Declare login_tty.
10324 Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>
10326         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
10327         Changed to a 12-byte PLT entry to remove dependency on $gp.
10328         Take a new got_addr parameter.
10329         (elf_machine_rela): Pass the new parameter.
10330         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
10331         (RTLD_START): Do normal linkage with program entry.
10333 Thu Jun 20 12:18:21 1996  Miles Bader  <miles@gnu.ai.mit.edu>
10335         * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
10337         * hurd/getuids.c (getuids): New weak link to __getuids.
10339 Wed Jun 19 10:21:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>
10341         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
10342         __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
10343         argument.
10344         Rename nested function lookup to lookup_op.
10345         (__file_name_lookup, __file_name_lookup_under):
10346         Pass 0 for lookup arg to __hurd_file_name_lookup.
10347         (__file_name_split): Likewise for __hurd_file_name_split.
10348         * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
10349         Rename nested function lookup to scan_lookup.
10350         (file_name_path_lookup): Pass 0 for lookup arg to
10351         hurd_file_name_path_lookup.
10352         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
10353         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
10354         __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
10355         Add LOOKUP argument.
10356         * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
10357         __hurd_file_name_lookup.
10359 Mon Jun 17 19:09:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
10361         * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
10362         up a huge list just to discard most of it.
10364         * configure.in (sysnames): Avoid fgrep by using the case shell
10365         builtin.
10367         * Makeconfig (config.status): Fix dependency on Implies files.
10369 Wed Jun 19 01:27:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
10371         * math/Makefile (distribute): Add ieee-math.c.
10373 Wed Jun 19 03:24:58 1996  Ulrich Drepper  <drepper@cygnus.com>
10375         * locale/codeset_name.c: New file.  Provide function for information
10376         about currently used character set.
10377         * locale/Makefile (routines): Add codeset_name.
10378         * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
10379         * locale/localeinfo.h: Change magic number because of incompatible
10380         change.
10381         * locale/C-ctype.c: Add initializer for new field `codeset_name'.
10382         * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
10384         * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
10385         name `MAX_IOVEC'.  Instead use standard name `UIO_MAXIOV'.
10387         * locale/setlocale.c (setlocale): Initialize local variables to
10388         prevent warnings.
10390 Thu Jun 13 17:25:11 1996  David Mosberger-Tang  <davidm@azstarnet.com>
10392         * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
10394         * locale/programs/locale.c: Include string.h.
10396         * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
10397         (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
10398         appropriate sign-extension is performed on machines with
10399         sizeof(long) > 4.
10401         * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
10402         sizeof(int)<sizeof(long), we need to go through a temporary
10403         variable.
10405         * locale/programs/ld-numeric.c: Include <alloca.h>
10407         * libio/stdio.h (__libc_fatal): Add prototype.
10409         * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
10410         in efect.
10412         * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
10413         volatile to avoid "might get clobbered by longjmp" warning.
10415         * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
10416         unless _LOOSE_KERNEL_NAMES is in effect (which, with high
10417         probability is a sure loser).
10418         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
10420         * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
10421         * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
10423         * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
10424         to be Linux FSSTND compliant.
10426 Mon Jun 10 17:50:31 1996  David Mosberger-Tang  <davidm@azstarnet.com>
10428         * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
10430         * sysdeps/unix/sysv/linux/alpha/sysdep.S,
10431         sysdeps/unix/sysv/linux/alpha/brk.S,
10432         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
10433         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
10434         sysdeps/unix/sysv/linux/alpha/llseek.S,
10435         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
10436         sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
10437         __syscall_error to avoid intruding application name space.
10439         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
10440         to SYS_get?id so that syscall stubs in sysdeps/unix define
10441         these syscalls in terms of getxpid/getxuid/getxgid.
10443         * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
10444         sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
10445         sysdeps/unix/execve.S, sysdeps/unix/fork.S,
10446         sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
10448         * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
10449         (PSEUDO_END): Rename END() to PSEUDO_END().
10451         * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
10452         to PSEUDO_END to improve branch-prediction.  Include .frame
10453         directive to make syscalls debugabble.
10454         (PSEUDO_END): New macro.
10456         * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
10457         sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
10458         latter is illegal under DEC Unix.
10460         * sysdeps/unix/alpha/sysdep.S: Renamed from
10461         sysdeps/unix/sysv/linux/alpha/sysdep.S.  This file works for OSF/1
10462         as well.
10463         * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
10464         EWOULDBLOCK -> EAGAIN mapping was unnecessary since
10465         EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
10467         * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
10468         address register in the .frame directive.
10470         * sysdeps/alpha/copysign.c: Remove.
10472         * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
10473         avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
10475         * errno.h: Move __END_DECLS to correct place to make file
10476         compilable under c++.
10478         * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro.  Define
10479         d_ino only if <direntry.h> hasn't defined d_fileno.
10481         * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
10482         arguments to weakext to make .weakext detection work on ECOFF systems.
10484         * FAQ: Add Linux/Alpha to list of supported platforms.  Mention
10485         that _validuser() has been replaced by __ivaliduser().
10487 Thu Jun  6 21:39:38 1996  David Mosberger-Tang  <davidm@azstarnet.com>
10489         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
10490         as unsigned long, not as int (to avoid incorrect int->long
10491         promotion).
10495 See ChangeLog.5 for earlier changes.