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