update from main archive 960922
[glibc.git] / ChangeLog
blobb538fa6096f326ea23489e12a95da97fd18576af
1 Sun Sep 22 15:18:41 1996  Ulrich Drepper  <drepper@cygnus.com>
3         * sysdeps/unix/sysv/linux/init-first.c: Define dummy function
4         `_dl_start' so that linking fails if this file should ever be used
5         in ld.so.
7         * catgets/gencat.c (main): Change --version message according to
8         RMS' last standard revision.
9         * db/makedb.c: Likewise.
10         * locale/programs/locale.c: Likewise.
11         * locale/programs/localedef.c: Likewise.
13 Sat Sep 21 23:42:39 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
15         * sysdeps/mach/getsysstats.c: Include <sys/sysinfo.h>.
16         (__get_nproc_conf): New function.
18 Sun Sep 22 03:40:52 1996  Ulrich Drepper  <drepper@cygnus.com>
20         * resolv/resolv.h: Update to bind-4.9.5-T4B.
21         * resolv/base64.c: Likewise.
22         * resolv/res_debug.c: Likewise.
23         * resolv/res_query.c: Likewise.
24         * resolv/gethnamaddr.c: Likewise.
25         * nss/nss_dns/dns-host.c: Likewise.
26         * resolv/res_comp.c: Likewise.
27         * resolv/res_send.c: Likewise.
28         * resolv/arpa/nameser.h: Likewise.  Attention: MAXDNAME is much
29         higher now.
31         * resolv/Banner: New file.
32         * resolv/Makefile (distribute): Add Banner.
34 Sat Sep 21 19:15:24 1996  Ulrich Drepper  <drepper@cygnus.com>
36         * sysdeps/stub/getsysstats.c: New file.
37         * sysdeps/unix/sysv/linux/getsysstats.c: New file.
39         * misc/Makefile (headers): Add sys/sysinfo.h.
40         (routines): Add getsysstats.
41         * sysdeps/unix/sysv/linux/Makefile [$(subdir)==misc]
42         (sysdep_headers): Remove sys/sysinfo.h.
43         * sysdeps/generic/sys/sysinfo.h: New file.
44         * sysdeps/unix/sysv/linux/sys/sysinfo.h: Add prototype for get_nprocs,
45         get_phys_pages, and get_avphys_pages.
47         * misc/Makefile (routines): Add mntent_r.
48         * misc/mntent_r.c: New file.
49         * misc/mntent.c: Remove all functions but getmntent and use
50         __getmntent_r.
51         * misc/mntent.h: Add prototype for __getmntent_r.
52         * misc/fstab.c: Use __getmntent_r function instead of getmntent.
53         This will not clobber the state in getmntent.
55         * sysdeps/generic/confname.h: Add _SC_PROCESSORS_CONF,
56         _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES, _SC_AVPHYS_PAGES,
57         _SC_ATEXIT_MAX, and _SC_PASS_MAX.
58         * sysdeps/stub/sysconf.c: Add handling _SC_PROCESSORS_CONF and
59         _SC_NPROCESSORS_ONLN by calling __get_nprocs, _SC_PHYS_PAGES by
60         calling __get_phys_pages, _SY_AVPHYS_PAGES by calling
61         __get_avphys_pages, _SC_ATEXIT_MAX and _SC_PASS_MAX.
62         * sysdeps/posix/sysconf.c: Likewise.
63         * posix/getconf.c (vars): Add _NPROCESSORS_CONF, _NPROCESSORS_ONLN,
64         _PHYS_PAGES, _AVPHYS_PAGES, ATEXIT_MAX, and PASS_MAX entries.
66 Sat Sep 21 05:20:36 1996  Ulrich Drepper  <drepper@cygnus.com>
68         * version.h (VERSION): Bump to 1.95.
70         * Make-dist (+tsrcs): Don't filter out files in subdirs which
71         match files in the sysdeps hierachy (welcome back,
72         sys/syscall.h!).
74         * resolv/Makefile (libresolv-routines): Remove getnetnamad.
76 Sat Sep 21 03:00:19 1996  Ulrich Drepper  <drepper@cygnus.com>
78         * locale/loadlocale.c (_nl_free_locale): Remove function.
79         * locale/localeinfo.h: Remove prototype for _nl_free_locale.
80         * locale/setlocale.c (setlocale): Don't free locale data of
81         categories which succeeded to load after a wrong or missing data
82         file was observed.
84         * locale/setlocale (setlocale): Initialize NEWNAME correctly so
85         that it works even when the locale data is not used.
87         * stdlib/random_r.c: Fix typo in comment.
88         * stdlib/drand48-iter.c: Likewise.
89         * stdlib/drand48.c: Likewise.
90         * stdlib/erand48.c: Likewise.
91         * stdlib/jrand48.c: Likewise.
92         * stdlib/lcong48.c: Likewise.
93         * stdlib/lrand48.c: Likewise.
94         * stdlib/mrand48.c: Likewise.
95         * stdlib/nrand48.c: Likewise.
96         * stdlib/random.c: Likewise.
97         * stdlib/seed48.c: Likewise.
98         * stdlib/srand48.c: Likewise.
99         * misc/search.h: Likewise.
100         * misc/hsearch.c: Likewise.
101         * misc/hsearch_r.c: Likewise.
103 Sat Sep 21 14:59:22 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
105         * sysdeps/mach/getsysstats.c: New file.
107         * shlib-versions (*-*-gnu*): Increment libc to 0.2 for upcoming
108         binary distribution.
110         * sysdeps/mach/hurd/Makefile (rtld-installed-name): Provide
111         definition to override dangerous one in Makeconfig.
113         * hurd/Makefile (install-headers-nosubdir): Install <rpc/netdb.h>.
114         ($(includedir)/rpc/netdb.h): New rule.
115         [ This is XXX until sunrpc can be built; <rpc/netdb.h> is
116         essential. ]
118 Fri Sep 20 16:06:06 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
120         * sysdeps/mach/hurd/i386/init-first.c (_dl_start): Add definition,
121         to guarantee link errors if this is included in ld.so.
123 Thu Sep 19 23:36:19 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
125         * hurd/hurdinit.c (__libc_argv): Provide common decl.
126         (_hurd_setproc): Don't declare __libc_argv here.
128 Tue Sep 17 10:51:58 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
130         * malloc/memalign.c (memalign): Only acquire __libc_malloc_lock
131         for actual modifications to global state.  
133 Fri Sep 13 01:21:36 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
135         * sysdeps/mach/Makefile (includes): Add -I$(common-objpfx)mach/.
136         * sysdeps/mach/hurd/Makefile (includes): Add
137         -I$(common-objpfx)hurd/.  Reported by Marcus Daniels.
139         * sysdeps/generic/schedbits.h (struct sched_param): Renamed from
140         struct sched_params.
141         * sysdeps/stub/sched_setp.c (__sched_setparam): struct
142         sched_params -> struct sched_param.
143         * sysdeps/stub/sched_getp.c (__sched_getparam): Likewise.
144         * sysdeps/stub/sched_sets.c (__sched_setscheduler): Likewise.
146 Thu Sep 12 23:58:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
148         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): Fix
149         syntax error.
150         
151         * stdio-common/Makefile: Put lockfile in routines
152         unconditionally. 
153                 
154         * stdio-common/vfprintf.c (__flockfile, __funlockfile): Declare
155         this always, not just if _LIBC_REENTRANT.
156         (__funlockfile): Don't use weak_extern for this one;
157         __libc_cleanup_region_end might be defined and the use of
158         __funlockfile can't be protected the way the use of __flockfile
159         can be. 
160         
161 Thu Sep 19 21:50:55 1996  Ulrich Drepper  <drepper@cygnus.com>
163         * sysdeps/posix/gettimeofday.c (__gettimeofday): Use localtime_r
164         instead of localtime.
165         Reported by Matthias Urlichs.
167         * shlib-versions: Remove version number for libcrypt.
168         * features.h: Define __USE_REENTRANT if _REENTRANT or _THREAD_SAFE.
169         * libc-symbols.h: Define _REENTRANT while compiling libc.
171         * sysdeps/unix/sysv/linux/i386/sysdep.S (__errno_location):
172         Define even if !_LIBC_REENTRANT.
173         * sysdeps/unix/sysv/linux/m68k/sysdep.S (__errno_location):
174         Likewise.
176         * sysdeps/posix/cuserid.h: Remove prototype for geteuid().
177         De-ANSI-fy.
179         * MakeTAGS ($P/libc.pot): Generate correctly formed header.
180         * po/header.pot: Correct title line.
181         * po/nl.po: Update.
183 Thu Sep 19 18:59:55 1996  Ulrich Drepper  <drepper@cygnus.com>
185         * Makeconfig (soversions.mk): Prefer shared lib version numbers
186         is add ons over version in libc itself.
188         * sysdeps/unix/sysv/linux/i386/sysdep.S: Include <sysdep.h>.
189         * sysdeps/unix/sysv/linux/i386/sysdep.h: Prevent multiple
190         inclusion.
192         * libio/iofgets.c: Use __flockfile and __funlockfile instead of
193         _IO_flockfile and _IO_funlockfile resp.
195         * locale/categories.def: Partly support for correct `era' handling
196         in LC_TIME category.
197         * locale/langinfo.h: Likewise.
198         * locale/programs/ld-time.c: Likewise.
199         * locale/localeinfo.h: Change comment a bit.
201         * malloc/memalign.c: Don't use goto, not necessary anymore.
203 1996-09-18  Paul Eggert  <eggert@twinsun.com>
205         * time/mktime.c (ydhms_tm_diff):  Work correctly even if year
206         is negative, or if time_t is unsigned.
207         * time/strftime.c (tm_diff): Work correctly even if tm_year
208         is near INT_MIN.
210 Tue Sep 17 16:14:34 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
212         * sysdeps/m68k/fpu/__math.h (__inline_mathop): Changed to generate
213         all three versions of the math function.
214         (__inline_mathopf, __inline_mathopl): Removed.
215         (__inline_functions): New temporary definition containing all
216         non-trivial inline functions.
218 Wed Sep 18 00:25:41 1996  Ulrich Drepper  <drepper@cygnus.com>
220         * time/strftime.c (strftime): The T_FMT_AMPM string may be empty.
222 Tue Sep 17 20:27:18 1996  Ulrich Drepper  <drepper@cygnus.com>
224         * math/Makefile (extra-libs-others): Use $(extra-libs) instead
225         of $(extra-libc).
227 Tue Sep 17 17:09:44 1996  Ulrich Drepper  <drepper@cygnus.com>
229         * sysdeps/stub/fpu_control.h: Correct end of file comment.
231 Tue Sep 17 05:39:18 1996  Ulrich Drepper  <drepper@cygnus.com>
233         * stdio-common/bug3.c, stdio-common/bug4.c, stdio-common/bug5.c,
234         stdio-common/test-popen.c: Remove temporary files after test.
235         * stdio-common/bug5.c: Use `system' instead of `execlp'.
236         Patches by Andreas Jaeger.
238         * stdio-common/bug5.c: Create string for `system' argument to
239         make sure the input and output file names are really correct.
241 Sun Sep 15 12:46:44 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
243         * configure.in: If $os contains a hyphen add the part before the
244         hyphen to $ostry.
246 Sun Sep 15 18:14:02 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
248         * sysdeps/m68k/fpu/__math.h (__ieee754_pow, __ieee754_powf,
249         __ieee754_powl): Rename local variable i to __i.
250         (__ieee754_atan2, __ieee754_atan2f, __ieee754_atan2l): New inline
251         functions.
252         * sysdeps/m68k/fpu/e_atan2.c, sysdeps/m68k/fpu/e_atan2f.c,
253         sysdeps/m68k/fpu/e_atan2l.c: New files.
255 1996-09-15  Paul Eggert  <eggert@twinsun.com>
257         * manual/time.texi: Change `range X to Y' to `range X through
258         Y', to avoid ambiguity in English.
260         (strftime): Numbers that do not have a range indicated are not padded.
261         Describe E and O modifiers.
262         %g, %G, %u: New formats.
263         %C, %y, %Y: Describe behavior on negative years.
264         %e: Fix typo (was labeled %d).
265         %l, %V: Fix typo in range.
266         %M, %S, %U, %w, %W: Give ranges.
267         %p: Clarify how noon and midnight are handled for AM and PM.
268         %s: Clarify leap second handling.
269         %r: Now locale-defined.
270         %C, %D, %e, %h, %n, %r, %t, %T: Say that they are POSIX.2 extensions.
271         %z: Say that it is a GNU extension.
272         %Z: Wording fix.
274         * time/strftime.c: (strftime):
275                 %V: Fix mishandling of week numbers near year boundaries.
276                 %g, %G: New formats (suggested by Arthur David Olson).
277                 %U, %W: Use inline expression instead of `week' function.
278                 %C, %y: Handle negative years portably.
279                 %C, %Y: Use width 1, since values can be arbitrarily wide.
280                 %r: Use T_FMT_AMPM format if _NL_CURRENT is defined.
281                 %u: New Posix.2 format.
282                 %w: Width is 1, not 2.
283         (iso_week_days): New function, for %V, %G, %g.
284         (week): Remove; it didn't handle %V correctly.
285         (__isleap): New macro.
286         (mbsinit): Use arg, to pacify GCC -Wall.
288 1996-09-13  Paul Eggert  <eggert@twinsun.com>
290         * time/strftime.c (strftime):
291         If using the GNU C library, do not bother to check for
292         multibyte encodings, since they're safe in formats.  Otherwise:
293           - Check for multibyte encodings when encountering any character that
294           is not in the basic execution character set of the C Standard.
295           - Use mbrlen (if available) instead of mblen, to avoid modifying
296           mblen's internal state.
297           - Do not assume that '%' cannot appear as the first character of a
298           multibyte character sequence, since this is possible when not in the
299           initial shift state.
300         (HAVE_MBRLEN, MULTIBYTE_IS_FORMAT_SAFE): Define if _LIBC is defined.
301         (DO_MULTIBYTE): New macro.
302         (<ctype.h>): Do not include.
303         (<wchar.h>): Include if HAVE_MBRLEN.
304         (mbstate_t, mbrlen, mbsinit): Define if ! HAVE_MBRLEN.
305         (mbstate_zero): New constant.
307 1996-09-12  Paul Eggert  <eggert@twinsun.com>
309         * time/strftime.c (strftime):
310         Use an empty zone if it can't be determined; POSIX.2 requires this.
311         Use plain `int' for pad and modifier (which now contain char value).
312         Use plain `int' for number_value, to print negative values correctly.
313         Use plain `int' for digits; there was no need to make it unsigned.
314         Initialize subfmt consistently.
315         Remove incorrect code for %EC and %Ey; they aren't implemented yet.
316         For %O, if there is no alternate digit, output Ascii instead of "".
317         Output the `%' of an unknown format; this is most likely the right
318         thing to do if a multibyte string has been misparsed.
320 Thu Sep 12 23:23:13 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
322         * stdio-common/scanf7.c (main): Remove extra conversion from
323         printf format string.
325 Thu Sep 12 23:01:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
327         * stdlib/test-canon.c (tests): Rename structure member from errno
328         to error, all uses changed.
330 Thu Sep 12 20:08:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
332         * sysdeps/m68k/fpu/__math.h (__ldexp, __ldexpf, __ldexpl):
333         Removed.
334         * sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
335         sysdeps/m68k/fpu/s_ldexpl.c: Removed, use generic implementation
336         instead.
337         * sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
338         sysdeps/m68k/fpu/s_scalbnl.c: Replaced with old contents of
339         s_ldexp.c, s_ldexpf.c and s_ldexpl.c, resp., suitably adpted.
341         * sysdeps/m68k/fpu/__math.h (__frexp, __frexpf, __frexpl):
342         Return value must be in [0.5, 1), not [1, 2).  Reported by Chris
343         Lawrence.
344         (__ilogb, __ilogbf, __ilogbl): Check for argument being zero.
345         (__scalbn, __scalbnf, __scalbnl): Use second argument directly.
347 Thu Sep 12 19:59:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
349         * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
350         * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
352 Thu Sep 12 19:59:24 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
354         * sysdeps/libm-ieee754/e_acoshl.c: Fix typos.
355         * sysdeps/libm-ieee754/s_cbrtl.c: Remove unused variable.
357 Thu Sep 12 19:56:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
359         * inet/herrno.c (__h_errno_location): Fix return type.
361 Thu Sep 19 23:36:19 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
363         * hurd/hurdinit.c (__libc_argv): Provide common decl.
364         (_hurd_setproc): Don't declare __libc_argv here.
366 Fri Sep 13 04:33:08 1996  Ulrich Drepper  <drepper@cygnus.com>
368         * sched.h: New file.  Helper to access posix/sched.h.
369         * posix/sched.h: Change `sched_params' to `sched_param' to follow
370         POSIX.4.
372 Thu Sep 12 20:12:40 1996  Ulrich Drepper  <drepper@cygnus.com>
374         * db/makedb.c (usage): Print bug report address separately to
375         ease translators task.
376         * catgets/gencat.c (usage): Likewise.
377         * locale/locale.c (usage): Likewise.
378         * locale/localedef.c (usage): Likewise.
380 1996-09-12  Paul Eggert  <eggert@twinsun.com>
382         * time/strftime.c (my_localtime_r): Define if ! HAVE_LOCALTIME_R,
383         and #define localtime_r to it.  If _LIBC, use __localtime_r instead.
384         (my_gmtime_r): Similar, except it's not needed if ! HAVE_TM_GMTOFF.
386 Thu Sep 12 14:03:29 1996  Ulrich Drepper  <drepper@cygnus.com>
388         * crypt/Makefile: Include Makeconfig and add crypt object dir to
389         rpath-link so that running the check finds the new library.
390         * crypt/cert.c: provide correct prototypes to prevent warnings.
391         Reported by Andreas Jaeger.
393         * sysdeps/mach/hurd/Makefile (rpath-link): Don't use += because
394         old and new value must be glued using `:'.
395         Reported by Marcus Daniels.
397 Thu Sep 12 12:33:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
399         * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
400         accidentally added on.
402         * sysdeps/stub/intr-msg.h: New file.
404         * stdio-common/vfprintf.c: Include <libc-lock.h>.
405         * stdio-common/vfscanf.c: Include <libc-lock.h>.
407         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
408         macro.
409         (__libc_cleanup_region_end): New macro.
411 Thu Sep 12 12:33:52 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
413         * sysdeps/mach/hurd/dl-cache.c: Delete second copy of file
414         accidentally added on.
416         * sysdeps/stub/intr-msg.h: New file.
418         * stdio-common/vfprintf.c: Include <libc-lock.h>.
419         * stdio-common/vfscanf.c: Include <libc-lock.h>.
421         * sysdeps/mach/libc-lock.h (__libc_cleanup_region_start): New
422         macro.
423         (__libc_cleanup_region_end): New macro.
425 Thu Sep 12 03:35:27 1996  Ulrich Drepper  <drepper@cygnus.com>
427         * sysdeps/unix/sysv/linux/i386/Dist: Remove init-first.h.
428         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
429         * sysdeps/unix/sysv/linux/Dist: Add init-first.h.
431 1996-09-11  Paul Eggert  <eggert@twinsun.com>
433         * strftime.c (strftime):
434         Handle E and O modifiers, required for POSIX.2 and XPG4.
435         Don't use sprintf to format numbers; this way, we can handle time_t
436         correctly regardless of whether it's signed.
437         Don't dump core if format ends in %.
438         In default %c format, use %e instead of %d, for POSIX.2 compatibility.
439         For %z:
440                 Use tm_gmtoff if available.
441                 Output nothing if tm_isdst is negative.
442                 Output correct value even if arg is 1969-12-31 23:59:59 UTC.
443                 Don't assume that UTC offset is less than 24 hours;
444                 Posix requires support for 24 hours, and there's no point
445                 limiting it at all.
446         (HAVE_TM_GMTOFF, TYPE_SIGNED, INT_STRLEN_BOUND): New macros.
447         (CHAR_BIT): Define if <limits.h> doesn't.
448         (tm_diff): New function.
449         (fmt, <stdio.h>): Remove; no longer used.
451 Thu Sep 12 02:21:44 1996  Ulrich Drepper  <drepper@cygnus.com>
453         * db/Makefile: Add extra-libs-others variable so that shared
454         library is built in `others' pass.
455         * elf/Makefile: Likewise.
456         * math/Makefile: Likewise.
457         * resolv/Makefile: Likewise.
459         * Makefile (generated): Add version.info.h.
461         * time/checktab.awk: New file.  From ADO 96k.
462         * time/iso3166.tab: Likewise.
463         * time/tzselect.ksh: Likewise.
464         * time/zone.tab: Likewise.
466         * stdio-common/vfprintf.c: Correct cleanup registration.  We
467         cannot use a macro
469 1996-09-11  Paul Eggert  <eggert@twinsun.com>
471         * time/time.h (tm_gmtoff, tm_zone): Prefix with `__' unless
472         __USE_BSD; this is required for ANSI C compatibility.
473         * manual/time.texi: Replace GMT by UTC, daylight savings by
474         daylight saving, timezone by time zone.
475         Rewrite description of %V to match ISO 8601.
476         Fix TZ Posix string example for US Eastern time.
477         Explain tzname[1] when DST isn't used.
478         Explain tzname when multiple abbreviations used (e.g. EST/EWT/EDT).
479         Explain that timezone's sign is opposite from tm_gmtoff, and that
480         timezone lacks DST adjustment whereas tm_gmtoff has it.
481         Deprecate tzname and timezone.
483 Tue Sep 10 14:46:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
485         Implement Roland McGrath's idea of how to put an .interp into
486         shared libraries.
487         * interp.c: New file.
488         * Makerules (interp-obj): New object, linked into every shared
489         library.
490         (common-generated): Add interp.so.
491         (CFLAGS-interp.c): Pass name of interpreter.
493 Tue Sep 10 21:09:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
495         * db/Makefile: Fix typo.
497 Tue Sep 10 19:29:53 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
499         * nss/db-Makefile ($(VAR_DB)/passwd.db): Look for multiple
500         occurences of the same uid, and only generate a mapping for the
501         first one.
503 Tue Sep 10 03:14:59 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
505         * sysdeps/unix/sysv/linux/system.c: New file, to override
506         sysdeps/unix/system.c.
508 Tue Sep 10 15:05:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
510         * Makefile (before-compile): Add version-info.h, needed to build
511         version.d.
513 Tue Sep 10 14:14:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
515         * sysdeps/unix/sysv/linux/m68k/sysdep.S: Remove check for
516         EWOULDBLOCK, never true on Linux.
517         (__errno_location): New function.
518         [_LIBC_REENTRANT]: Set errno using __errno_location function.
519         * sysdeps/unix/sysv/linux/m68k/sysdep.h [PIC]: Add second
520         syscall_error handler for reentrant libc.
522 Tue Sep 10 13:27:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
524         * elf/Makefile (extra-objs): Add eval.so to get dependencies.
526 Wed Sep 11 04:40:57 1996  Ulrich Drepper  <drepper@cygnus.com>
528         * time/tzset.c (__tzname_cur_max): Use type `size_t' to avoid
529         warning.
530         * time/tzfile.c (compute_tzname_max): Likewise.
532 Wed Sep 11 02:57:31 1996  Ulrich Drepper  <drepper@cygnus.com>
534         * configure.in: Quote $add_ons argument in loop to generated
535         prefices.
537 Tue Sep 10 20:43:45 1996  Ulrich Drepper  <drepper@cygnus.com>
539         * db/makedb.c: Include <locale.h>.  Reported by Fila Kolodny.
541 Tue Sep 10 14:42:39 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
543         * elf/dl-cache.c: Rename to ...
544         * sysdeps/generic/dl-cache.c:  ... here.
545         * sysdeps/mach/hurd/dl-cache.c: New file.
546         
547         * mach/Makefile (distribute): Add `errsystems.awk'.
548         * hurd/Makefile (distribute): Add `Notes' and `intr-msg.h'.
549         * hurd/hurdintr.awk: Delete file.  (Not used in ages.)
550         * hurd/intr-rpc.awk: Likewise.
551         * hurd/invoke-trans.c: Likewise.
552         * sysdeps/mach/hurd/i386/longjmp-ctx.c: Likewise.
553         * sysdeps/mach/hurd/alpha/longjmp-ctx.c: Likewise.
554         * sysdeps/mach/hurd/mips/longjmp-ctx.c: Likewise.
555         * sysdeps/mach/hurd/i386/init-fault.c: Likewise.
556         * sysdeps/mach/hurd/mips/init-fault.c: Likewise.
557         * sysdeps/stub/init-fault.c: Likewise.
558         * sysdeps/stub/longjmp-ctx.c: Likewise.
559         
560 Tue Sep 10 13:49:08 1996  Ulrich Drepper  <drepper@cygnus.com>
562         * inet/herrno.c: Initialize `h_errno' so that we can provide
563         alias.
565         * Makefile (version-info.h): Fix typo in shell script.
567         * sysdeps/i386/i586/strlen.S: Optimize startup code a bit.
568         * sysdeps/i386/i586/strchr.S: Likewise.
570 Mon Sep  9 20:31:27 1996  Ulrich Drepper  <drepper@cygnus.com>
572         * version.c (banner): Report to bug-glibc@prep not @gnu.
573         Reported by Andreas Jaeger.
575         * libio/stdio.h [!__USE_REENTRANT]: Don't define getc as
576         _IO_getc_unlocked.
577         [__USE_REENTRANT]: Don't define
579 Mon Sep  9 15:59:32 1996  Ulrich Drepper  <drepper@cygnus.com>
581         * sysdeps/i386/strrchr.c: Fix bug where NUL byte is not recognized
582         when it is the third byte in the string.  Reported by
583         NIIBE Yutaka.
584         * string/tester.c: Add tests for above bug to strlen, strchr, and
585         strrchr tests.
587 Fri Sep  6 21:23:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
589         * sysdeps/m68k/fpu/e_acos.c: Deansideclized.  Include
590         "math_private.h" to get prototype.
591         * sysdeps/m68k/fpu/e_fmod.c: Likewise.
592         * sysdeps/m68k/fpu/k_cos.c: Likewise.
593         * sysdeps/m68k/fpu/k_sin.c: Likewise.
594         * sysdeps/m68k/fpu/k_tan.c: Likewise.
596         * sysdeps/m68k/fpu/k_sin.c: Remove uneeded indirection of
597         __m81_u.
598         * sysdeps/m68k/fpu/k_tan.c: Likewise.
600 Sun Sep  1 18:01:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
602         * sysdeps/m68k/fpu/__math.h: Check for __NO_M81_MATH_INLINES
603         instead of __NO_MATH_INLINES.
604         (__M81_MATH_INLINES): Renamed from __MATH_INLINES.
605         * sysdeps/m68k/fpu/e_acos.c: Define __NO_M81_MATH_INLINES.
606         * sysdeps/m68k/fpu/e_fmod.c: Likewise.
607         * sysdeps/m68k/fpu/k_cos.c: Likewise.
608         * sysdeps/m68k/fpu/k_sin.c: Likewise.
609         * sysdeps/m68k/fpu/k_tan.c: Likewise.
610         * sysdeps/m68k/fpu/s_atan.c: Likewise.
611         * sysdeps/m68k/fpu/s_frexp.c: Likewise.
612         * sysdeps/m68k/fpu/s_ilogb.c: Likewise.
613         * sysdeps/m68k/fpu/s_isinf.c: Likewise.
614         * sysdeps/m68k/fpu/s_ldexp.c: Likewise.
615         * sysdeps/m68k/fpu/s_modf.c: Likewise.
616         * sysdeps/m68k/fpu/k_cos.c: Use inline version of __cos.
617         * sysdeps/m68k/fpu/k_sin.c: Likewise.
618         * sysdeps/m68k/fpu/k_tan.c: Likewise.
620 Mon Sep  9 12:55:14 1996  Ulrich Drepper  <drepper@cygnus.com>
622         * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): Check for
623         available character before converting number and return with
624         error if none is available.
626 Fri Sep  6 22:09:08 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
628         * sysdeps/unix/sysv/linux/init-first.h: New file, generic
629         implementation for architectures where parameters are passed on
630         stack.
631         * sysdeps/unix/sysv/linux/m68k/init-first.h: Removed.
632         * sysdeps/unix/sysv/linux/i386/init-first.h: Removed.
634 Fri Sep  6 22:05:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
636         * configure.in: Remove unneeded sysnames frobbing.
638 Mon Sep  9 05:29:09 1996  Ulrich Drepper  <drepper@cygnus.com>
640         * time/zic.c: Update from ADO 96l.
641         * time/africa: Update from ADO 96k.
642         * time/antarctica: Likewise.
643         * time/asia: Likewise.
644         * time/australia: Likewise.
645         * time/europe: Likewise.
646         * time/northamerica: Likewise.
647         * time/southamerica: Likewise.
649 Mon Sep  9 05:03:47 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
651         * sysdeps/unix/sysv/linux/i386/init-first.h: Work around buggy
652         gcc <= 2.7.2.1 which optimizes away address operations on weak
653         objects.
655         * nss/nss_files/files-parse.c (INT_FIELD_MAYBE_NULL): New macro.
656         Like INT_FIELD but also accept non-existing field.
657         * shadow/sgetspent_r.c (LINE_PARSER): Use INT_FIELD_MAYBE_NULL
658         for last four fields.
659         * shadow/putspent.c (putspent): Print `:' after numeric value.
661 Mon Sep  9 02:42:48 1996  Richard Henderson  <rth@tamu.edu>
663         * libio/stdio.h (BUFSIZ): Define using _IO_BUFSIZ.
665 Sun Sep  8 16:43:56 1996  Ulrich Drepper  <drepper@cygnus.com>
667         * Make-dist: Filter out $(add-ons) from $(subdirs).
668         Don't distribute TAGS files.
669         ($(tardir).tar): Remove dist.tar when all is done.
670         * manual/Makefile (distribute): Add libc.info*.
671         * libio/Makefile (distribute): Add Banner.
672         * inet/Makefile (headers): Add netinet/tcp.h.
674         * resolv/Makefile (libresolv-routines): Add getnetnamadr.
676         * crypt-README: Removed.
677         * gnu-stabs.h: Removed.
679         * sysdeps/alpha/copysign.S: Renamed to...
680         * sysdeps/alpha/s_copysign.S: ...this.
681         * sysdeps/alpha/fabs.S: Renamed to...
682         * sysdeps/alpha/s_fabs.S: ...this.
684         * sysdeps/m68k/isinfl.c: Renamed to...
685         * sysdeps/m68k/s_isinfl.c: ...this.
686         * sysdeps/m68k/isnanl.c: Renamed to...
687         * sysdeps/m68k/s_isnanl.c: ...this.
689         * sysdeps/sparc/sqrt.c: Renamed to...
690         * sysdeps/sparc/e_sqrt.c: ...this.  Function name now is
691         __ieee754_sqrt.
693         * sysdeps/generic/get_str.c: Removed.
695         * sysdeps/ieee754/cbrt.c: Removed.
696         * sysdeps/ieee754/drem.c: Removed.
697         * sysdeps/ieee754/logb.c: Removed.
698         * sysdeps/ieee754/sqrt.c: Removed.
700         * sysdeps/stub/cbrt.c: Removed.
701         * sysdeps/stub/cos.c: Removed.
702         * sysdeps/stub/drem.c: Removed.
703         * sysdeps/stub/isinf.c: Removed.
704         * sysdeps/stub/isinfl.c: Removed.
705         * sysdeps/stub/isnanl.c: Removed.
706         * sysdeps/stub/logb.c: Removed.
707         * sysdeps/stub/sin.c: Removed.
708         * sysdeps/stub/sqrt.c: Removed.
710         * sysdeps/tahoe/log10.c: Removed.
712         * sysdeps/vax/index.s: Removed.
713         * sysdeps/vax/rindex.s: Removed.
714         * sysdeps/vax/bcmp.s: Removed.
715         * sysdeps/vax/log10.c: Removed.
716         * sysdeps/vax/infnan.c: Removed.
717         * sysdeps/vax/Dist: Add fl.h.
719         * sysdeps/unix/sysv/linux/alpha/Dist: Add llseek.S.
721         * inet/rcmd.c (rcmd): Make messages more uniform.
723 Sun Sep  8 14:15:42 1996  Ulrich Drepper  <drepper@cygnus.com>
725         * po/de.po: Update.
726         * po/es.po: Update.
727         * po/ko.po: Update.
728         * po/pl.po: New file.
729         * po/nl.po: New file.
731 Sat Sep  7 18:41:17 1996  Richard Henderson  <rth@tamu.edu>
733         * Makeconfig (+link): Filter out start, pre & postinit from the
734         generic depenancies as well.
735         * Rules: Add start, pre & postinit to the dependancies of
736         $(others) and $(tests).
738         * configure.in: elf_dirs missing "sysdeps" component.
740 Sun Sep  8 02:36:02 1996  Ulrich Drepper  <drepper@cygnus.com>
742         * locale/SYS_libc.c (_libc_intl_domainname): Change value to "libc".
743         This is consistent with all other GNU packages.  We shouldn't
744         take care for a possible clash.  Nobody will name the domain
745         of a package libc if it is not the libc itself.
746         * MakeTAGS ($P/SYS_libc.pot): Rename to $P/libc.pot.
747         * po/Makefile (domainname): Change to libc.
748         (distribute): Now ship libc.pot.
749         * catgets/gencat.c (usage): Use `PACKAGE' for package name in
750         version information banner.
751         Change bug report address to bug-glibc@prep not @gnu.
752         * db/makedb.c (PACKAGE): New macro.  Set to _libc_intl_domain.
753         (main): Use `PACKAGE' for package name in version information
754         banner.
755         Change bug report address to bug-glibc@prep not @gnu.
756         * locale/programs/locale.c (main): Use `PACKAGE' for package name
757         in version information banner.
758         Change bug report address to bug-glibc@prep not @gnu.
759         * locale/programs/localedef.c (main): Likewise.
761         * version.h (VERSION): Bump to 1.94.
763         * locale/Makefile (distribute): Add locale.c and localedef.c.
765 Sat Sep  7 14:00:33 1996  David Mosberger-Tang  <davidm@azstarnet.com>
767         * catgets/catgets.c (catopen): Allocate sizeof(*result) bytes
768         instead of sizeof(nl_catd) (which is just a pointer!).
770 Sat Sep  7 19:39:19 1996  Ulrich Drepper  <drepper@cygnus.com>
772         * Makefile ($(objpfx)version-info.h): Generate from Banner files.
773         * version.c (banner): Add contents of version-info.h to string.
775         * Makerules: If $($(subdir)-version) is available name versioned
776         shared library according to this value instead of glibc's version.
778         * libio/Banner: New file.
780         * elf/eval.c (funcall): Write error message in case function is
781         not found.
782         (eval): Recognize `_' in names.
784 Sat Sep  7 05:15:45 1996  Ulrich Drepper  <drepper@cygnus.com>
786         * libio/iofdopen: Initialize _lock field only if _IO_MTSAFE_IO.
787         * libio/iofopen: Likewise.
788         * libio/iofopncook.c: Likewise.
789         * libio/iopopen.c: Likewise.
790         * libio/iovsprintf.c: Likewise.
791         * libio/iovsscanf.c: Likewise.
792         * libio/memstream.c: Likewise.
793         * libio/vasprintf.c: Likewise.
794         * libio/vdprintf.c: Likewise.
795         * libio/vsnprintf.c: Likewise.
797 Sat Sep  7 03:55:47 1996  Ulrich Drepper  <drepper@cygnus.com>
799         * Makeconfig (soversions.mk): Also use shlib-versions files
800         in add-on directories.
801         * config.make.in (config-defines): Remove.  Not used anymore.
802         (defines): New variable.  Initiliazed by @DEFINES@.
803         * configure.in: Add AC_SUBST(DEFINES).
805         * libio/Makefile (routines): When compiling reentrant libc add
806         clearerr_u, feof_u, ferror_u, fputc_u, getc_u, getchar_u,
807         iofflush_u, putc_u, putchar_u, ioflockfile.
808         (CPPFLAGS): Add -D_IO_MTSAFE_IO for reentrant libc.
810         * sysdeps/stub/libc-lock.h: Add stubs for __libc_cleanup_region_start
811         and __libc_cleanup_region_end.
813         * sysdeps/unix/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
814         using __errno_location function.
815         * sysdeps/unix/sysv/linux/i386/sysdep.S [_LIBC_REENTRANT]: Set errno
816         using __errno_location function.
817         (__errno_location): New function.
818         * sysdeps/unix/sysv/linux/i386/sysdep.h [PIC]: Add second
819         syscall_error handler for reentrant libc.
821         * sysdeps/unix/opendir.c: Remove unneeded `;'.
823         * libio.h [_IO_MTSAFE_IO]: Include <pthread.h>.
824         [!_IO_MTSAFE_IO]: Define _IO_flockfile and _IO_funlockfile
825         as empty macros.
826         * libioP.h: Include <libc-lock.h>.
827         * libio/stdio.h: Add prototypes for *_locked and *_unlocked
828         functions.
830         * libio/clearerr.c: Use _IO_ protected versions of flockfile
831         and funlockfile to be namespace clean.
833         * libio/genops.c: Use __libc_lock_* macros for handling lock.
835         * libio/iofdopen: Add initialization of _lock in _IO_FILE.
836         * libio/iofopen: Likewise.
837         * libio/iofopncook.c: Likewise.
838         * libio/iopopen.c: Likewise.
839         * libio/iovsprintf.c: Likewise.
840         * libio/iovsscanf.c: Likewise.
841         * libio/memstream.c: Likewise.
842         * libio/vasprintf.c: Likewise.
843         * libio/vdprintf.c: Likewise.
844         * libio/vsnprintf.c: Likewise.
846         * libio/fgetc.c: Use __libc_cleanup_region_* macros instead
847         of flockfile etc.
848         * libio/fputc.c: Likewise.
849         * libio/freopen.c: Likewise.
850         * libio/fseek.c: Likewise.
851         * libio/getc.c: Likewise.
852         * libio/getchar.c: Likewise.
853         * libio/iofclose.c: Likewise.
854         * libio/iofflush.c: Likewise.
855         * libio/iofgetpos.c: Likewise.
856         * libio/iofgets.c: Likewise.
857         * libio/iofputs.c: Likewise.
858         * libio/iofread.c: Likewise.
859         * libio/iofsetpos.c: Likewise.
860         * libio/ioftell.c: Likewise.
861         * libio/iofwrite.c: Likewise.
862         * libio/iogetdelim.c: Likewise.
863         * libio/iogets.c: Likewise.
864         * libio/ioputs.c: Likewise.
865         * libio/iosetbuffer.c: Likewise.
866         * libio/iosetvbuf.c: Likewise.
867         * libio/ioungetc.c: Likewise.
868         * libio/putc.c: Likewise.
869         * libio/putchar.c: Likewise.
870         * libio/rewind.c: Likewise.
871         * stdio-common/vfprintf.c: Likewise.
872         * stdio-common/vfscanf.c: Likewise.
874         * libio/clearerr_u.c: Correct alias name.
875         * libio/ferror_u.c: Likewise.
876         * libio/fileno.c: Likewise.
877         * libio/fputc_u.c: Likewise.
878         * libio/getc.c: Likewise.
879         * libio/getc_u.c: Likewise.
880         * libio/getchar.c: Likewise.
881         * libio/getchar_u.c: Likewise.
882         * libio/putc.c: Likewise.
883         * libio/putchar.c: Likewise.
885         * libio/feof_u.c: Undefine macro with name of function before
886         definition of function itself.
888         * libio/ioflockfile.c: New file.  Implementation of flockfile and
889         funlockfile.
891         * libio/putchar_u.c: Fix typo.  Use stdout instead of fp.
893         * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
894         _malloc_loc.
896         * malloc/free.c: Include <libc-lock.h>.
897         * malloc/realloc.c: Likewise.
898         * malloc/malloc-find.c: Likewise.
899         * malloc/malloc-size.c: Likewise.
900         * malloc/malloc-walk.c: Likewise.
901         * malloc/memalign.c: Likewise.
902         * malloc/malloc.c: Likewise.
904         * sysdeps/i386/dl-machine.h: Correct clearing of _dl_starting_up.
906 Fri Sep  6 19:38:49 1996  Ulrich Drepper  <drepper@cygnus.com>
908         * sysdeps/stub/libc-lock.h: Define __libc_lock_critical_start
909         and __libc_lock_critical_end as empty macros.
911         * malloc/malloc.h: Don't include <libc-lock.h> and don't declare
912         __libc_malloc_lock.
913         * malloc/free.c: Include <libc-lock.h>.
914         * malloc/malloc-find.c: Likewise.
915         * malloc/malloc-size.c: Likewise.
916         * malloc/malloc-walk.c: Likewise.
917         * malloc/malloc.c: Likewise.
918         * malloc/memalign.c: Likewise.
919         * malloc/realloc.c: Likewise.
921         * Makefile: Undo change from Mon Sep  2 22:15:14 1996.  No more
922         extra_solibs pass.
923         * Rules: Likewise.
924         * extra-lib.mk: Likewise.
925         * manual/Makefile: Likewise.
927         * db/Makefile (makedb): Choose dependecies based on build-shared.
928         Patch by Andres Schwab.
930         * sysdeps/posix/sysconf.c: Don't use PTHREAD_DESTRUCTOR_ITERATIONS
931         but _POSIX_THREAD_DESTRUCTOR_ITERATIONS.
933         * sysdeps/unix/sysv/linux/errnos.h: New file.
934         * sysdeps/unix/sysv/linux/schedbits.h: New file.
935         * sysdeps/unix/sysv/linux/waitflags.h: New file.
937         * sysdeps/unix/sysv/linux/gnu/types.h: Add definition of `key_t'.
939 Fri Sep  6 08:26:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
941         * rpm/template: Fix typo in %build section.
943 Fri Sep  6 03:31:07 1996  Ulrich Drepper  <drepper@cygnus.com>
945         * sysdeps/unix/sysv/linux/errnos.h: Don't define errno macro when
946         building libc without thread support.
947         * resolv/netdb.h: Likewise for h_errno macro.
949 Thu Sep  5 23:01:48 1996  Ulrich Drepper  <drepper@cygnus.com>
951         * libc-symbols.h: Add new macro weak_const_function.  It's like
952         weak_function, but the function is additionally marked as const.
953         * features.h: Only include <sys/cdefs.h> if !__ASSEMBLER__.
955 Thu Sep  5 22:55:49 1996  Richard Henderson  <rth@tamu.edu>
957         * inet/herrno.c (__h_errno_location): New function.
958         (h_errno): Make strong_alias __h_errno so that we can access
959         the variable even if `h_errno' is a macro.
960         * resolv/netdb.h: Define macro h_errno to access thread specific
961         version of h_errno variable.  Declare alias __h_errno for h_errno.
962         * resolv/res_query (h_errno): Remove definition.
963         * sysdeps/unix/sysv/linux/errnos.h [!__ASSEMBLER__ && __USE_REENTRANT]:
964         Add macro `errno' to get thread specific variable.
965         * sysdeps/unix/alpha/sysdep.S [_LIBC_REENTRANT]: Set errno using
966         __errno_location function.
967         (__errno_location): New function.
969 Thu Sep  5 21:08:44 1996  Ulrich Drepper  <drepper@cygnus.com>
971         * posix/gnu/types.h: Remove definition of key_t.
972         * sysdeps/generic/gnu/types.h: Move it to here.
973         * sysdeps/unix/sysv/linux/gnu/types.h: Add Linux specific
974         definition of key_t.
976         * sysdeps/unix/sysv/linux/waitflags.h: New file.  Linux specific
977         definitions.
978         * sysdeps/unix/sysv/linux/schedbits.h: New file.  Include
979         clone prototypes and associated flags.
981 Thu Sep  5 13:18:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
983         * sysdeps/mach/hurd/i386/init-first.c (__libc_argc, __libc_argv):
984         New variables.
985         (init1): Initialize them.
986         * hurd/hurdinit.c (_hurd_setproc): Now that happens to be
987         available, pass __libc_argv in call to __proc_set_arg_locations.
989         * gmon/gmon.c (write_hist): Call __profile_frequency instead of
990         hertz.
991         (hertz): Delete function.
992         * gmon/Makefile (routines): Add `prof-freq'.
993         * sysdeps/generic/prof-freq.c: New file.
994         * sysdeps/mach/hurd/prof-freq.c: New (stubby) file.
995         * sysdeps/mach/hurd/profil.c (profile_tick): New variable.
996         (update_waiter): Store frequency in profile_tick.
997         (__profile_frequency): New function.
999         * sysdeps/mach/hurd/sendto.c (sendto): Use prototype definition
1000         syntax.
1002         * Rules (generated): Restore reference to $(generated).
1004         * mach/Machrules (mig.uh, mig.__h): Don't include $(user-MIGFLAGS)
1005         here.
1007         * malloc/free.c (free): __lib_malloc_lock -> __libc_malloc_lock.
1009         * malloc/free.c: Provide extern decl of __libc_malloc_lock.
1010         * malloc/realloc.c: Likewise.
1011         * malloc/malloc-find.c: Likewise.
1012         * malloc/malloc-size.c: Likewise.
1013         * malloc/malloc-walk.c: Likewise.
1014         * malloc/memalign.c: Likewise.
1016 Thu Sep  5 08:58:47 1996  Richard Henderson  <rth@tamu.edu>
1018         * sysdeps/alpha/elf/start.S: Make _start global again.
1020 Thu Sep  5 03:20:42 1996  Ulrich Drepper  <drepper@cygnus.com>
1022         Change configuration and Makefiles to allow add-ons to have a
1023         sysdeps/ directory hierachy.
1024         * configure.in: Test for sysdeps/ directory in add-ons.  Before
1025         all test and searches in these hierachies, too.
1026         * Makeconfig (full-config-subdirs): Define based on $(config-sysdirs).
1027         Extend with $(..) if not absolute path.
1028         Use $(full-config-subdirs) where $(config-sysdirs) was used.
1029         * Makefile ($(objpfx)sysd-dirs): Use config-sysdirs.
1030         * MakeTAGS: Use $(full-config-subdirs).
1031         * Makerules: Change comment to libc.so link script.
1032         (sysdirs): Define based on $(full-config-subdirs).
1033         (sysd-Makefile): Define using config-sysdirs.
1034         (sysd-rules): Likewise.
1035         * sysdeps/unix/Makefile (sysd-syscalls): Define based on +sysdep-dirs.
1036         * sysdeps/unix/make-syscalls.sh: Remove basedir argument.
1038 Wed Sep  4 01:32:21 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1040         * sysdeps/m68k/fpu/k_cos.c: Rewritten for better accuracy.
1041         * sysdeps/m68k/fpu/k_sin.c: Likewise.
1042         * sysdeps/m68k/fpu/k_tan.c: Likewise.
1044 Thu Sep  5 01:06:09 1996  Richard Henderson  <rth@tamu.edu>
1046         * malloc/free.c (free): Protect by using __libc_malloc_lock.
1047         * malloc/malloc-find.c (malloc_find_object_address): Likewise.
1048         * malloc/malloc-size.c (malloc_usable_size): Likewise.
1049         * malloc/malloc-walk.c (malloc_walk): Likewise.
1050         * malloc/memalign.c (memalign): Likewise.
1051         * malloc/realloc.c (realloc): Likewise.
1052         * malloc/malloc.c: Define __libc_malloc_lock.
1053         (_malloc_internal): Don't use `malloc'.  Instead look for
1054         `__malloc_hook' or call `_malloc_internal'.
1055         (malloc): Protect by using `__libc_malloc_lock'.
1056         * malloc/malloc.h: Declare `__libc_malloc_lock'.
1058 Mon Sep  2 22:42:59 1996  Richard Henderson  <rth@tamu.edu>
1060         * sysdeps/alpha/elf/start.S: Use weak_alias for __start
1061         instead of the hard definition.
1063         * sysdeps/alpha/dl-machine.h (RTLD_START): Add type info for
1064         _start and _dl_start_user.
1066         * sysdeps/unix/sysv/linux/alpha/init-first.h (SYSDEP_CALL_INIT):
1067         Make _dl_starting_up weak.  Add type info for NAME.
1069 Mon Sep  2 22:15:14 1996  Richard Henderson  <rth@tamu.edu>
1071         * Makefile (all): Add extra_solibs pass.
1072         (+subdir_targets): Same.
1073         * Rules (extra_solibs): New phony empty target for subdirs without
1074         extra libs.
1075         * extra-lib.mk: Build lib*.so* in extra_solibs not lib-noranlib.
1076         * manual/Makefile: Add dummy extra_solibs target.
1078 Sun Sep  1 15:41:22 1996  Richard Henderson  <rth@tamu.edu>
1080         * Makeconfig (+link): Add $(link-extra-libs).
1081         (link-extra-libs): New variable which expands to the full paths of
1082         the other libraries needed by a program, as controled by LDLIBS-$(@F).
1083         * db/Makefile: Use LDLIBS-makedb to link libdb not a dependency, as
1084         the later attempts to install the library before linking it.
1086         * sysdeps/unix/alpha/sysdep.S: Align errno.
1088         * sysdeps/unix/sysv/linux/alpha/ioperm.c (struct platform): Add
1089         hae_shift entry.
1090         (io): Move bus_memory_base and sparse_bus_memory_base into struct.
1091         (_hae_shift): New function.
1092         * sysdeps/unix/sysv/linux/alpha/sys/io.h: New file.  Prototypes
1093         for the bus query functions.
1095 Sat Aug 31 18:14:54 1996  Richard Henderson  <rth@tamu.edu>
1097         * elf/dl-close.c (_dl_close): In static executables, map->l_prev
1098         can be NULL when unloading a library.
1100         * elf/dl-open.c (_dl_open): Pass __environ instead of __libc_envp
1101         to the library .init function.
1103         * sysdeps/alpha/dl-machine.h (elf_machine_rela):  Since we omitted
1104         part of the COPY reloc processing earlier, omit the rest now --
1105         we'll get into less trouble later when some fool does use a COPY.
1107         * sysdeps/unix/sysv/linux/init-first.c (init): Accept argc et al as
1108         parameters.  Move all argc and __libc_multiple_libcs calculation out
1109         to init-first.h.  Use __environ not __libc_envp.
1110         * sysdeps/unix/sysv/linux/alpha/init-first.h: Rewrite.
1111         * sysdeps/unix/sysv/linux/i386/init-first.h: Rewrite.
1113 Thu Aug 29 20:26:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1115         * sysdeps/posix/profil.c (profil): Don't clobber saved timer and
1116         signal settings when profiling was already turned on.
1118         * csu/gmon-start.c (__gmon_start__) [HAVE_INITFINI]: Protect from
1119         being called twice.
1121 Wed Sep  4 01:31:50 1996  Ulrich Drepper  <drepper@cygnus.com>
1123         * sysdeps/unix/sysv/linux/i386/mmap.S: Test for
1124         0 < return value < -4096 and not < 0 to decide about failure.
1125         Reported by Andreas Jaeger.
1127 Tue Sep  3 19:04:05 1996  Ulrich Drepper  <drepper@cygnus.com>
1129         * stdio-common/vfscanf.c (__vfscanf): Don't count EOF char
1130         in %c format.
1132 Sat Aug 31 18:10:51 1996  Ulrich Drepper  <drepper@cygnus.com>
1134         * wcsmbs/wchar.h: Define prototypes for wcstoq and wcstouq only
1135         #ifdef __USE_GNU.
1137 Sat Aug 31 12:34:29 1996  Ulrich Drepper  <drepper@cygnus.com>
1139         * version.c: Add missing newline character in banner.
1141         * sysdeps/unix/sysv/linux/alpha/Dist: Correct typo.
1142         * sysdeps/unix/sysv/linux/i386/Dist: Likewise.
1144 Sat Aug 31 03:07:39 1996  Ulrich Drepper  <drepper@cygnus.com>
1146         * intl/l10nflist.c (_nl_normalize_codeset): We convert to lower
1147         case, so don't prepend uppercase `ISO' for only numeric arg.
1149 Wed Sep  4 16:16:13 1996  Ulrich Drepper  <drepper@cygnus.com>
1151         * sysdeps/mach/hurd/send.c (__send): De-ANSI-fy.
1152         * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
1154 Tue Sep  3 11:16:07 1996  Thomas Bushnell/ n/BSG  <thomas@gnu.ai.mit.edu>
1156         * shadow/lckpwdf.c (__ulckpwdf): Don't take address of LOCK in
1157         call to __libc_lock_lock.
1159         * sysdeps/mach/hurd/send.c (__send): Declare BUF const.
1160         * sysdeps/mach/hurd/sendto.c (sendto): Likewise.
1162         * sysdeps/stub/ustat.c: Include <sys/ustat.h>.
1164         * misc/syslog.c (vsyslog): Fix typo (`mow_tm' -> `now_tm').
1166 Fri Aug 30 19:55:27 1996  Ulrich Drepper  <drepper@cygnus.com>
1168         * libio/genops.c: Make _cleanup an alias of _IO_cleanup.
1169         Reported by Erik Troan.
1171 Fri Aug 30 15:40:04 1996  Ulrich Drepper  <drepper@cygnus.com>
1173         * sysdeps/unix/sysv/linux/Dist: Add sys/procfs.h and
1174         sys/sysmacros.h.  Reported by Curtiss <1CMC3466@IBM.MTSAC.EDU>.
1176 Fri Aug 30 13:53:32 1996  Andreas Jaeger  <aj@arthur.pfalz.de>
1178         * sysdeps/unix/mman/syscalls.list: `mmap' has 6 arguments, not 5.
1180 Fri Aug 30 13:01:10 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
1182         * sysdeps/i386/fpu/__math.h (tan): Pop 1.0 in ST to get
1183         real result.
1185 Fri Aug 30 03:33:33 1996  Ulrich Drepper  <drepper@cygnus.com>
1187         * sysdeps/libm-ieee754/s_cbrtl.c: New file.  `long double'
1188         implementation.
1190 Fri Aug 30 13:39:21 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1192         * Makerules (BUILD_CFLAGS): Use @(common-objpfx) for config.h, not
1193         $(..).  Some rules (like sysdeps/posix/Makefile for mk-stdiolim)
1194         do `cd' commands.
1195         (sed-remove-objpfx): Don't substitute for $(objpfx) anymore;
1196         $(common-objpfx) is good enough.
1197         * Rules (common-generated): Provide default (empty) value.
1198         (dummy.o, dummy.c, empty.o, empty.c): Put these in
1199         $(common-generated), not $(generated), and without $(..).
1200         (subdir_echo-distinfo): Treat $(common-generated) just like
1201         $(generated).
1202         (generated): Depend on the (suitably mutated) $(common-generated)
1203         files too.
1204         * Makerules (common-clean): Remove common-generated files too.
1205         * sysdeps/mach/hurd/Makefile (generated): Don't put errnos.d and
1206         stamp-errnos here.
1207         (common-generated): Do put errnos.d and stamp-errnos here.
1208         (rpath-link): Don't use +=; $(rpath-link) is a colon separated list.
1210         * sysdeps/mach/hurd/Makefile (before-compile): Add auth; also add
1211         auth to following rule to get it built.
1213 Fri Aug 30 01:26:44 1996  Ulrich Drepper  <drepper@cygnus.com>
1215         * sysdeps/unix/sysv/linux/i386/Dist: Add clone.S.
1216         * sysdeps/unix/sysv/linux/m68k/Dist: Likewise.
1217         * sysdeps/unix/sysv/linux/alpha/Dist: Likewise.
1219         * version.c: Add comment about where to report bugs to.
1220         * catgets/gencat.c (usage): Likewise.
1221         * db/makedb.c (usage): Likewise.
1222         * locale/programs/locale.c (usage): Likewise.
1223         * locale/programs/localedef.c (usage): Likewise.
1225         * manual/socket.texi: A little bit better wording.
1227 Thu Aug 29 18:03:06 1996  Ulrich Drepper  <drepper@cygnus.com>
1229         * Makerules: Make sure directory exists before generating stamp file.
1230         (BUILD_CFLAGS): Always refer to using $(..).
1231         * manual/Makefile: Make sure directory exists before generating
1232         stamp file.
1233         (make-target-directory): Add macro definition.
1234         * sysdeps/generic/Makefile: Make sure directory exists before
1235         generating stamp file.
1237         * Makefile (distribute): Add autolock.sh.  Reported by Fila Kolodny.
1239 Tue Aug 27 10:06:22 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1241         When compiling in separate directory put objects into
1242         subdirectories matching the source layout.
1243         * Makeconfig (objpfx) [ifdef objdir]: Append $(subdir).
1244         When looking for configparms try in $(common-objpfx).
1245         Use $(common-objpfx)SUBDIR to find objects from other subdirectory
1246         builds.
1247         * Makerules: Add $(objpfx) to vpath list.
1248         (make-dummy-dep): Use $(common-objpfx) to avoid creating dummy.d
1249         more than once.  All uses in dependency lists changed.
1250         (+make-deps): Make target directory.
1251         (sed-remove-objpfx): Substitute $(common-objpfx).
1252         (do-ar, build-extra-lib, $(common-objpfx)stub-$(subdir)): Use
1253         $(objpfx) instead of $(objdir) for cd command.
1254         (O%-lib): Always find libc relative to $(..).
1255         (subdir-stamps): Collect stamp files from subdirs.
1256         (common-mostlyclean): Remove stub file in $(common-objpfx).
1257         * MakeTAGS ($P/siglist.pot): Find siglist.c in stdio-common.
1258         * Rules (dep-dummy-lib): Use $(common-objpfx) to avoid creating to
1259         more than once.
1260         ($(objpfx)dummy.c, $(objpfx)empty.c): Change target name to use
1261         $(common-objpfx).  All uses in dependency lists changed.
1262         (generated): Prepend $(..) to names.
1263         * bare/Makefile ($(objpfx)lib$(config-vendor).a): Remove $(objpfx)
1264         from $@.
1265         * nss/Makefile ($(objpfx)libnss_dns.so, $(objpfx)libnss_db.so):
1266         Use $(common-objpfx) instead of $(..) in dependencies.
1267         * sysdeps/mach/Makefile (mach-objpfx): Unconditionally use
1268         $(common-objpfx) instead of $(..) and (objpfx).
1269         * sysdeps/mach/hurd/Makefile (hurd-objpfx): Likewise.
1270         (rpath-link): Likewise.
1271         (rpcuserlibs): Likewise.
1272         * sysdeps/unix/Makefile [$(subdir) = stdio-common]: Check for
1273         errlist.c in $(objpfx), not $(common-objpfx).
1274         ($(common-objpfx)s-proto.d): Special rule not covered by pattern
1275         rule.
1276         * sysdeps/unix/make-syscalls.sh: Make syscall rules depending on
1277         s-proto.d in $(common-objpfx), not $(objpfx).
1279 Thu Aug 29 17:45:49 1996  Ulrich Drepper  <drepper@cygnus.com>
1281         * nss/nsswitch.c (nss_dlerror_run): Free returned error
1282         string.
1284 Thu Aug 29 15:53:33 1996  Ulrich Drepper  <drepper@cygnus.com>
1286         * sysdeps/libm-ieee754/e_acoshl.c: New file. `long double'
1287         implementation.
1288         * sysdeps/libm-ieee754/e_atanhl.c: Likewise.
1289         * sysdeps/libm-ieee754/e_remainderl.c: Likewise.
1290         * sysdeps/libm-ieee754/e_scalbl.c: Likewise.
1291         * sysdeps/libm-ieee754/s_asinhl.c: Likewise.
1292         * sysdeps/libm-ieee754/s_cosl.c: Likewise.
1293         * sysdeps/libm-ieee754/s_sinl.c: Likewise.
1294         * sysdeps/libm-ieee754/s_tanhl.c: Likewise.
1295         * sysdeps/libm-ieee754/s_tanl.c: Likewise.
1297 Thu Aug 29 12:00:30 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1298         
1299         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Correct
1300         spelling error of _hurd_itimerval.
1302         * mach/Makefile (MIGFLAGS-mach/mach4): Define variable.
1303         * mach/Machrules (mig.uh, mig.__h): Include $(user-MIGFLAGS) and
1304         $(MIGFLAGS-$*) here too, as well as in the code-generating MiG calls. 
1305         
1306         * hurd/hurdinline.c: Include "hurd.h" for function definitions too. 
1307         
1308         * stdio/fseek.c (fseek): Don't assume we know the file position;
1309         other handles may have changed it.  So set STREAM.__offset to -1
1310         before calling __stdio_check_offset to make sure we have a correct
1311         value.
1313 Thu Aug 29 00:28:08 1996  Ulrich Drepper  <drepper@cygnus.com>
1315         * stdio-common/printf_fp.c (__printf_fp): Use default value '.' if
1316         `decimal' char is 0.
1318         * C-numeric.c (not_available): New constant.
1319         (_nl_C_LC_NUMERIC): Use `not_available' for grouping value.
1321         * nss/nsswitch.conf: Example configuration file.
1322         * nss/db-Makefile: Example Makefile for generation of databases
1323         for nss_db.
1324         * nss/Makefile (distribute): Add nsswitch.conf and db-Makefile.
1326 1996-08-28  Paul Eggert  <eggert@twinsun.com>
1328         * C-messages.c (_nl_C_LC_MESSAGES): Set yesexpr to "^[yY]" and
1329         noexpr to "^[nN]"; this conforms to POSIX.2.
1331         * C-time.c (_nl_C_LC_TIME): Change %d to %e in d_t_format, to
1332         conform to POSIX.2.
1334 1996-08-28  Paul Eggert  <eggert@twinsun.com>
1336         * C-monetary.c (not_available): New constant.
1337         (_nl_C_LC_MONETARY): Set mon_decimal_point to "", and set
1338         mon_grouping, int_frac_digits, frac_digits, p_cs_precedes,
1339         p_sep_by_space, n_cs_precedes, n_sep_by_space, p_sign_posn, and
1340         n_sign_posn to CHAR_MAX, as required by the POSIX Standard.
1342 Wed Aug 28 23:12:28 1996  Ulrich Drepper  <drepper@cygnus.com>
1344         * nss/nss_db/db-XXX.c: Correct function names.  They must be
1345         `_nss_db_*' instead of `_nss_files_*'.
1346         (lookup): `parse_line' returns 1 if succesful.
1347         * nss/nss_files/files-service.c (servbyname): Key for database
1348         must also contain protocol names.
1349         (servbypt): Likewise.
1350         Test must also check for protocol.  Add `proto' argument.
1352 Tue Aug 27 09:56:13 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1354         * MakeTAGS ($P/subdirs.pot): Prefix all file names, not only the
1355         first one.
1357 Tue Aug 27 17:45:21 1996  Ulrich Drepper  <drepper@cygnus.com>
1359         * Makerules: Add some test for correct version of GNU Make.
1361         * io/fcntl.h: Undo change from Mon Aug 26 22:22:17 1996.
1362         * sysdeps/unix/sysv/linux/fcntlbits.h: Place macros here instead.
1364         * sysdeps/generic/dl-sysdep.c: Initialize break address to
1365         avoid overwriting last page (OK, Roland).
1367 Tue Aug 27 16:20:37 1996  Ulrich Drepper  <drepper@cygnus.com>
1369         * resolv/resolv.h: Update from BIND-4.9.5-T3A.
1370         * resolv/arpa/nameser.h: Likewise.
1371         * resolv/res_init.c: Likewise.
1372         * resolv/res_debug.c: Likewise.
1373         * resolv/res_mkquery.c: Likewise.
1375 Tue Aug 27 15:47:04 1996  Ulrich Drepper  <drepper@cygnus.com>
1377         * elf/dl-error.c (catch): Define errstring element not as const.
1378         (_dl_catch_error): ERRSTRING argument is not const pointer.
1379         Initialize *ERRSTRING and *OBJNAME separately.
1380         * elf/link.h: Change prototype for `_dl_catch_error'.
1382         * elf/dl-load.c (_dl_map_object): Use separate variable for
1383         copied NAME to avoid `const' warning.
1385         * elf/dlerror.c: Make `last_errstring' variable not const pointer.
1387         * elf/rtld.c: Implement reading of /etc/ld.so.preload.  This
1388         provides preloading even for SUID binaries.
1389         Add some more casts to avoid signed<->unsigned warnings.
1391 Tue Aug 27 15:40:28 1996  NIIBE Yutaka  <gniibe@mri.co.jp>
1393         * posix/sys/types.h: Define loff_t.
1394         * sysdeps/unix/sysv/linux/gnu/types.h: Define __loff_t.
1396 Mon Aug 26 22:22:17 1996  Ulrich Drepper  <drepper@cygnus.com>
1398         * io/fcntl.h: Add definition for BSD F* macros.
1400         * misc/init-misc.c (__init_misc): Make static.
1401         * misc/Makefile: Pass -fkeep-inline-functions flag for init-misc.c.
1403         * configure.in: Add test for -fno-exception option of gcc.
1404         * config.make.in: Add definition of have-no-exceptions.
1405         * Makerules: Define no-exceptions based on have-no-exceptions.
1406         * csu/Makefile: When translating initfini.c pass $(no-exceptions).
1407         This is necessary for gcc >= ss-960816.
1409 Mon Aug 26 17:16:48 1996  Richard Henderson  <rth@tamu.edu>
1411         * sysdeps/alpha/dl-machine.h: Clear startup flag.
1413 Fri Aug 16 21:17:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1415         * Makerules (o-iterator-doit): Simplify reference to autolock
1416         script.
1418 Sat Aug 24 15:27:41 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1420         * sysdeps/mach/hurd/getcwd.c
1421         (_hurd_canonicalize_directory_name_internal): After resizing the
1422         buffer move the current contents to the end.  Correctly relocate
1423         file name pointer to upper half of the buffer.
1425 Mon Aug 26 15:49:59 1996  Ulrich Drepper  <drepper@cygnus.com>
1427         * rtld.c (dl_main): Remove code to call ld.so initializer.  This
1428         was introduced for compatibility with Linux ld.so and would not
1429         be used anymore.  Now we don't have any good values to use as the
1430         parameters to the initializer so simply remove it.
1432 Sun Aug 25 18:25:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1434         * gmon/gmon.c (ERR): Don't write the terminating NUL.
1436         * sysdeps/posix/profil.c (profil): Disable the profiling timer at
1437         first.
1438         (profil_count): Use 64 bit arithmethic to avoid overflow.
1440         * sysdeps/generic/machine-gmon.h (MCOUNT): Fix argument order.
1442 Mon Aug 26 16:31:33 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1444         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Tolerate NEW
1445         being null; in that case don't touch the timer at all (but do
1446         return something in OLD if necessary).
1448 Mon Aug 26 13:35:16 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1450         * sysdeps/mach/hurd/i386/init-first.c (__libc_multiple_libcs): New
1451         variable.
1452         * sysdeps/i386/init-first.c: Likewise.
1453         * sysdeps/stub/init-first.c: Likewise.
1455 Mon Aug 26 02:01:37 1996  Ulrich Drepper  <drepper@cygnus.com>
1457         * elf/dl-open.c (_dl_open): Call library initializer with
1458         correct command line arguments and environment information.
1459         * elf/rtld.c (dl_main): Provide arguments to initializer of
1460         ld.so itself.
1462 Sun Aug 25 19:15:46 1996  Ulrich Drepper  <drepper@cygnus.com>
1464         * shadow/Makefile (routines): Add lckpwdf.
1465         * shadow/lckpwdf.c: New file.
1467         * sysdeps/i386/fpu_control.h (_FPU_GETCW, _FPU_SETCW): Force
1468         argument `cw' to be placed in memory.  Patch by Torbjorn Granlund.
1470 Sun Aug 25 12:53:37 1996  Ulrich Drepper  <drepper@cygnus.com>
1472         * configure.in: Add definition for `__eh_pc' and `__throw' in
1473         test for --no-whole-archive.  The compiler generates dependencies
1474         for this but none of the standard librares and startup files
1475         are used.  Necessary for gcc >= ss-960816.
1477 Sun Aug 25 01:31:33 1996  Ulrich Drepper  <drepper@cygnus.com>
1479         * elf/dl-error.c (_dl_signal_error): If error is catched, malloc
1480         return string since string might be on stack.
1481         * elf/dl-lookup.c (_dl_lookup_symbol): Undo change of
1482         Wed Aug 21 10:14:59 1996.
1483         * elf/dlerror.c (dlerror): Free error string after printing.
1484         (_dlerror_run): If error string was not printed since last error
1485         free string.
1486         * rtld.c (dl_main): Free error string in case of error.
1488 Sat Aug 24 03:16:47 1996  Ulrich Drepper  <drepper@cygnus.com>
1490         * misc/syslog.c (vsyslog): Don't use `localtime' or `gmtime' since
1491         this changes the global state for `localtime' and `gmtime'.  Use
1492         `__localtime_r'/`__gmtime_r' instead.
1493         * resolv/res_debug.c (__p_secstodate): Likewise.
1494         * sysdeps/generic/ftime.c: Likewise.
1495         * sysdeps/posix/gettimeofday.c: Likewise.
1496         Reported by Paul Eggert.
1498         * time/gmtime.c: De-ANSI-fy.
1499         * time/strftime.c: Don't call non-reentrant functions which change
1500         state.
1502 Wed Aug 21 10:14:59 1996  Richard Henderson  <rth@tamu.edu>
1504         * elf/dl-lookup.c (_dl_lookup_symbol): Malloc the error string rather
1505         than putting it on the stack.
1507 Wed Aug 21 10:12:42 1996  Richard Henderson  <rth@tamu.edu>
1509         * elf/rtld.c (dl_main): When looking up symbols in response to --list,
1510         don't find .plt entries.
1512 Mon Aug 19 23:18:12 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1514         * sysdeps/m68k/dl-machine.h (RTLD_START): Optimize clearing
1515         _dl_starting_up.
1517 Tue Aug 20 17:42:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1519         * stdio/linewrap.c (line_wrap_stream): Initialize D->seek.
1521 Sat Aug 17 12:19:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1523         * login/pututline_r.c (__pututline_r): Fix handling of case where
1524         getutid_r() fails with ESRCH.  Reported by Miquel van Smoorenburg.
1526 Wed Aug 14 14:10:54 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1528         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Change entry
1529         for "Jensen" so _bus_base() returns 0 on that platform.  Use
1530         _bus_base_sparse() to determine base address of sparse memory.
1532         * sysdeps/unix/sysv/linux/sys/io.h: Enclose #include <asm/io.h>
1533         and declarations in __BEGIN_DECLS/__END_DECLS.
1535 Sun Aug 18 13:37:09 1996  Ulrich Drepper  <drepper@cygnus.com>
1537         * err.h: New file.  Wrapper around misc/err.h.
1539         Correct solution of multiple initialization problem by
1540         Roland McGrath.
1541         * csu/initfini.c: Remove global variable __libc_is_static.
1542         * elf/rtld.c: Introduce new global variable _dl_starting_up.
1543         It's nonzero during the startup.
1544         * elf/dl-open.c (_dl_open): When _dl_start function is not
1545         available (i.e., if in static libc) set `__libc_multiple_libcs'
1546         to nonzero value.
1547         * sysdeps/unix/sysv/linux/init-first.c (__libc_multiple_libc):
1548         New global variable.
1549         (init): Undo change of Fri Aug  2 03:12:40 1996.
1550         Initialize `__libc_multiple_libcs' to nonzero only if this is
1551         a shared lib called from a statically linked program and don't
1552         call `personality' and `setfpucw' in this case either.
1553         * sysdeps/generic/sbrk.c: Undo change of Fri Aug  2 03:12:40 1996.
1554         Don't call brk(0) until `__libc_multiple_libcs' is nonzero.
1555         * sysdeps/i386/dl-machine.h (RTLD_START): Clear _dl_starting_up
1556         before jumping to user code.
1557         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
1559 Fri Aug 16 04:59:01 1996  Ulrich Drepper  <drepper@cygnus.com>
1561         * sysdeps/unix/sysv/linux/init-first.c: Remove hack from
1562         Thu Aug  8 12:40:20 1996.
1563         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = csu]: Use
1564         -fkeep-inline-functions flag instead.
1566 Fri Aug 16 16:11:25 1996  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
1568         * nss/nss_dns/dns-host.c (_nss_dns_gethostbyname2_r): Treat
1569         EPFNOSUPPORT and EAFNOSUPPORT as implying NSS_STATUS_UNAVAIL just
1570         like ECONNREFUSED already does.
1571         (_nss_dns_gethostbyaddr_r): Likewise.
1572         * nss/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Likewise.
1573         (_nss_dns_getnetbyaddr_r): Likewise.
1575         * sysdeps/mach/hurd/socket.c (socket): For message transmission
1576         and RPC errors that indicate that the socket server is not really
1577         present and able to do its job, turn the error into EPFNOSUPPORT.
1579 Fri Aug 16 01:24:33 1996  Ulrich Drepper  <drepper@cygnus.com>
1581         * inet/ruserpass.c (userpass): Allocate buffer for .netrc file
1582         name dynamically.  Reported by Alan Cox.
1583         Uncomment warnings and mark as translatable.
1585         * time/strftime (strftime): Add implementation for %s and %z
1586         format.  Change behaviour for unknown format character: now
1587         simply print it.  This matches the behaviour of printf.
1588         Reported by Jim Meyering.
1589         * manual/time.texi: Document all formats and flags of strftime.
1591 Thu Aug 15 18:02:51 1996  Ulrich Drepper  <drepper@cygnus.com>
1593         * elf/rtld.c (dl_main): Loaded object has type lt_executable,
1594         not lt_library.
1596         * misc/sys/select.h: Define fd_set using typedef, not #define.
1597         Proposed by David Mosberger-Tang.
1599 Thu Aug 15 12:48:21 1996  Ulrich Drepper  <drepper@cygnus.com>
1601         * po/header.pot: Use real description line.
1603 Thu Aug 15 04:42:44 1996  Ulrich Drepper  <drepper@cygnus.com>
1605         * elf/rtld.c (dl_main): When started with --verify prevent
1606         any warning.  Just exit with an error.
1607         * elf/ldd.sh.in: Don't run given object directly.  This fails for
1608         libraries.  Instead use $RTLD again.
1610 Thu Aug 15 02:08:59 1996  Ulrich Drepper  <drepper@cygnus.com>
1612         * manual/nss.texi: New file.  Document NSS.
1613         * manual/nsswitch.texi: New file.  Example configuration.
1615         * manual/string.texi: Document stpncpy, strdupa, and strndupa.
1616         * manual/example/strdupa.c: New file.  Example for strdupa.
1618 Wed Aug 14 21:36:16 1996  Ulrich Drepper  <drepper@cygnus.com>
1620         * stdlib/strtod.c (STRTOD): Correct assertion about size of
1621         wint_t and wchar_t.  Reported by David Mosberger-Tang.
1623 Mon Aug 12 22:40:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1625         * elf/dl-lookup.c (_dl_lookup_symbol): Remove fifth parameter
1626         RELOC_ADDR and make NOPLT a set of flags.  All callers
1627         changed.  Delete condition that checks for resolving to the
1628         location being filled in.  Add condition to skip the
1629         executable's symbols if requested.
1630         * elf/link.h: Change declaration of _dl_lookup_symbol
1631         accordingly.
1632         (DL_LOOKUP_NOEXEC, DL_LOOKUP_NOPLT): New definitions.
1633         * elf/dl-reloc.c (RESOLVE): Remove second parameter and rename
1634         NOPLT to FLAGS.
1635         * elf/dl-runtime.c (RESOLVE): Likewise.
1636         * elf/rtld.c (RESOLVE): Likewise.
1637         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Pass
1638         DL_LOOKUP_NOEXEC as second argument to the RESOLVE macro if
1639         processing a copy reloc, DL_LOOKUP_NOPLT for a jump slot
1640         reloc, zero otherwise.
1641         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
1642         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1643         * sysdeps/mips/dl-machine.h (elf_machine_rel): Likewise.
1645 Wed Aug 14 17:57:08 1996  Ulrich Drepper  <drepper@cygnus.com>
1647         * MakeTAGS: Clean up use of --omit-header and -n for xgettext.
1648         * po/header.pot: Add empty line at end.
1650 Sun Aug 11 13:45:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1652         * MakeTAGS (all-pot): Remove $P/errlist.pot, all error messages
1653         are now in $P/stdio-common.pot.
1654         (XGETTEXTFLAGS-errlist.pot): Variable removed.
1656 Mon Aug 12 19:25:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1658         * Makerules (do-ar, o-iterator-doit): Compute path to autolock
1659         script at run time, not configure time.
1660         * config.make.in, configure.in: Undo previous change.
1662 Wed Aug 14 13:20:02 1996  Ulrich Drepper  <drepper@cygnus.com>
1664         * sysdeps/unix/sysv/linux/i386/close.S: Push return value of thread
1665         on stack as argument for `_exit'.  Reported by Andreas Schwab.
1667 Mon Aug 12 19:36:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1669         * sysdeps/unix/sysv/linux/m68k/clone.S: New file.
1671 Wed Aug 14 04:22:35 1996  Richard Henderson  <rth@tamu.edu>
1673         * elf/dl-load.c (_dl_map_object): Save name in malloced memory.
1674         (_dl_map_object_from_fd): Free name on error.
1676 Wed Aug 14 13:00:09 1996  Ulrich Drepper  <drepper@cygnus.com>
1678         * string/strdup.c: Use result of memcpy to avoid reloading.
1680 Tue Aug 13 00:55:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1682         * shadow/sgetspent_r.c (__sgetspent_r): Copy string to buffer, not
1683         the other way round.
1685 Tue Aug 13 20:51:21 1996  Ulrich Drepper  <drepper@cygnus.com>
1687         * stdlib/canonicalize.c (canonicalize): Add cast to prevent
1688         warning.
1690         * Makerules (o-iterator-doit): Use autolock.sh when running ranlib.
1692 Tue Aug 13 18:26:45 1996  Ulrich Drepper  <drepper@cygnus.com>
1694         * nss/nsswitch.c (__nss_configure_lookup): Use fact that list is
1695         sorted.
1697         Update from bind-4.9.5-T1A.
1698         * resolv/Makefile (libresolv-routines): Add base64, inet_net_ntop,
1699         inet_net_pton, inet_net.
1701         * resolv/gethnamaddr.c: Include <sys/types.h>.
1702         * resolv/getnetnamadr.c: Likewise.
1703         * resolv/herror.c: Likewise.
1704         * resolv/inet_addr.c: Likewise.
1705         * resolv/nsap_addr.c: Likewise.
1706         * resolv/res_comp.c: Likewise.
1707         * resolv/res_data.c: Likewise.
1708         * resolv/res_init.c: Likewise.
1709         * resolv/res_mkquery.c: Likewise.
1710         * resolv/res_query.c: Likewise.
1711         * resolv/res_send.c: Likewise.
1713         * resolv/gethnamaddr.c [! SPRINTF_CHAR] (SPRINTF): Cast return
1714         value of sprintf.
1715         * resolv/inet_ntop.c: Likewise.
1717         * resolv/gethnamaddr.c [BSD]: Include <stdlib.h>.
1718         Remove prototype of gethostbyname_ipv4.
1720         * resolv/inet_ntop.c, resolv/inet_pton.c: Use ISO C `mem*'
1721         functions instead of BSD `b*' functions.
1723         * resolv/nsap_addr.c: Add copyright message.
1725         * resolv/res_comp.c: Remove comment explaining label format.
1726         (res_mailok): Correct check.
1728         * resolv/res_debug: Include missing headers.
1729         (__fp_nquery): Handle `unused', `ad', and `cd' bits.
1730         (__p_fqnname): New function to print FQDN from compressed name.
1731         (__p_rr): Use __p_fqnname.  Correct printing of ".  Handle T_TXT
1732         correctly.  Add handling of T_KEY and T_SIG.
1733         Handle class and type names by using name arrays instead of
1734         explicit `switch'es.
1735         (__sym_ston, __sym_ntos, __sym_ntop): New functions to use arrays.
1736         (__dn_count_labels, __p_secstodate): New functions.
1738         * resolv/resolv.h (__RES): Update version number.
1739         (res_sym): New type.
1740         Add #defines for new functions.
1741         Declare sym_ntos, sym_ntop, b64_ntop, b64_pton, __p_fqnname,
1742         __p_secstodate, dn_count_labels.
1744         * resolv/arpa/nameser.h (__BIND): Update version number.
1745         Add KEYFLAG_* and ALGORITHM_* symbols.
1746         (HEADER): Add `ad' and `cd' flags.
1748         * inet/ient.h: Add prototypes for inet_neta, inet_net_ntop,
1749         and inet_net_pton.
1751         * manual/maint.texi: Document that we use bind-4.9.5.
1752         * INSTALL: Ditto.
1754 Mon Aug 12 19:03:22 1996  Thomas Bushnell n/BSG  <thomas@psilocin.gnu.ai.mit.edu>
1756         * sysdeps/generic/gnu/types.h: Declare __fd_mask as `unsigned long'.
1758         * mach/Makefile (mach/mach_host.uh): Depend on
1759         $(objpfx)/mach-syscalls.mk.
1760         ($(objpfx)mach-shortcuts.h): Depend on $(objpfx)mach/mach_host.h.
1761         (This fixes a make loop; thanks to Marcus Daniels
1762         <marcus@sysc.pdx.edu> for the patch.)
1764 Mon Aug 12 16:41:52 1996  Thomas Bushnell n/BSG  <thomas@gnu.ai.mit.edu>
1766         * io/getwd.c (getwd) [! PATH_MAX]: Don't assume that the user's
1767         buffer is any longer than the amount necessary to hold the
1768         filename; the Hurd getcwd uses the *entire* contents of the
1769         buffer, however long it is specified to be.
1771 Mon Aug 12 04:33:09 1996  Ulrich Drepper  <drepper@cygnus.com>
1773         * nss/nsswitch.c (__nss_database_lookup): Always release locks
1774         before returning.  Reported by Miles Bader.
1776 Mon Aug 12 03:31:58 1996  Ulrich Drepper  <drepper@cygnus.com>
1778         * nss/nsswitch.c (__nss_configure_lookup):  New function.
1779         Allows to specify services.
1780         * nss/XXX-lookup.h: Rename database variable and make global.
1781         * nss/databases.def: New file.  Real names of all databases.
1783         * nss/nss.h: New file.  Contains declaration useful for users
1784         and service developers.
1785         * nss/nsswitch.h: Move some declarations to nss/nss.h.
1786         * nss.h: New file.  Wrapper around nss/nss.h.
1788         * nss/Makefile (headers): Add nss.h.
1789         (distributes): Add databases.def.
1791 Sun Aug 11 16:19:42 1996  Ulrich Drepper  <drepper@cygnus.com>
1793         Help the poor people with fast machines by making sure only
1794         one `ar' commands works on the library.
1795         * autolock.sh: New file.  Written by Tom Tromey.
1796         * Makerules (do-ar): Call autolock.sh shell script instead of
1797         directly using `ar'.
1798         * config.make.in: Make configuration variable AUTOLOCK which
1799         gets initialized by configure.
1800         * configure.in: Define variable AUTOLOCK to point to autolock.sh
1801         script and mark it to substitute.
1803         * string/Makefile: Add -fno-builtin for tst-strlen.c, too.
1805         * sysdeps/generic/sbrk.c (__sbrk):  Get kernel brk address
1806         always only if in static libc or if statically linked program
1807         uses libc.so.
1809         * sysdeps/generic/sbrk.c (__sbrk):  Get kernel brk address
1810         always only if in static libc or if statically linked program
1811         uses libc.so.
1813 Sun Aug 11 01:12:38 1996  Richard Henderson  <rth@tamu.edu>
1815         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Optimize LD_BIND_NOW
1816         startup by moving Icache flush from here ...
1817         (ELF_MACHINE_RUNTIME_TRAMPOLINE): ... to here.
1818         (ELF_MACHINE_USER_ADDRESS_MASK): Delete; it is unused.
1820         * sysdeps/alpha/divrem.h: Update comment to reflect the actual
1821         calling conventions.  The code is already correct.
1823 Sun Aug 11 01:06:42 1996  Richard Henderson  <rth@tamu.edu>
1825         * string/Makefile: Compile tester with -fno-builtin as we want to
1826         test our implementations, not gcc's.
1828 Sat Aug 10 13:17:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1830         * shadow.h: New file.
1832         * sysdeps/unix/sysv/linux/netinet/in.h: Move
1833         __BEGIN_DECLS/__END_DECLS up so ntohl() et al are bracketed as
1834         well.
1836         * socket/sys/socket.h [__cplusplus]: Use old-style __SOCKADDR_ARG.
1837         g++ 2.7.2 (and earlier) has no transparent unions support.
1839 Fri Aug  9 18:50:06 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1841         * sysdeps/unix/sysv/linux/alpha/ioperm.c (_bus_base_sparse): New
1842         function to determine the base address of sparse bus memory.
1843         (APECS_*): Rename to CIA_*.
1844         (APECS_SPARSE_MEM, CIA_SPARSE_MEM): New macros.
1845         (platform): Add sparse_bus_memory_base member and initialize.
1846         (sparse_bus_memory_base): New variable.
1848 Tue Aug  6 10:23:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1850         * sysdeps/posix/ttyname_r.c (ttyname_r),
1851         sysdeps/posix/ttyname.c (ttyname): Return -1/NULL if
1852         !__isatty(fd) (POSIX.1 says so.)
1854         * sysdeps/unix/getlogin.c (getlogin): Fix to check fd 0 only.
1855         This is not a gross hack, after all---for compatibility,
1856         getlogin() really should check fd 0 only and not try to base its
1857         operation on the controlling tty.
1859 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1861         * sysdeps/unix/getlogin.c (getlogin): Add static variable NAME,
1862         change utmp_data from static to auto.
1864 Sun Aug 11 02:56:08 1996  Ulrich Drepper  <drepper@cygnus.com>
1866         * posix/unistd.h [__USE_MISC]: Add prototype for `nice'.
1867         Reported by David Mosberger-Tang.
1869 Sat Aug 10 02:05:28 1996  Richard Henderson  <richard@twiddle.tamu.edu>
1871         * sysdeps/libm-ieee754/s_isnan.c [NO_LONG_DOUBLE]: Add strong
1872         alias to `__isnanl'.
1874 Fri Aug  9 17:38:58 1996  Ulrich Drepper  <drepper@cygnus.com>
1876         * sysdeps/unix/sysv/linux/sys/timex.h: Include <sys/time.h> to
1877         get `struct timeval'.
1878         * sysdeps/unix/sysv/linux/sys/acct.h: Get time_t from <time.h>.
1879         * sysdeps/unix/sysv/linux/sys/module.h: Get size_t from <stddef.h>.
1880         * sysdeps/unix/sysv/linux/sys/io.h: Get definition of __P.
1881         * sysdeps/unix/sysv/linux/sys/klog.h: Likewise.
1882         * gmon/sys/gmon.h: Include <sys/types.h> to get u_long.
1883         * sysdeps/unix/sysv/linux/direntry.h: Complete types in
1884         <linux/dirent.h>.
1885         * io/fts.h: Include <sys/types.h> to get dev_t.
1886         Reported by Matthias Urlichs.
1888         * sysdeps/posix/tempname.c [USE_IN_LIBIO]: Don't clear
1889         _IO_file_flags.  It's the same as _flags.
1890         Reported by Miquel van Smoorenburg <miquels@Q.cistron.nl>.
1892 Wed Aug  7 19:38:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1894         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: Add RLIMIT_AS.
1896 Thu Aug  8 16:17:38 1996  Ulrich Drepper  <drepper@cygnus.com>
1898         * pwd/getpwent.c: Define BUFLEN from NSS_BUFLEN_PASSWD.
1899         * pwd/getpwent_r.c: Likewise.
1900         * pwd/getpwnam.c: Likewise.
1901         * pwd/getpwnam_r.c: Likewise.
1902         * pwd/getpwuid.c: Likewise.
1903         * pwd/getpwuid_r.c: Likewise.
1905         * grp/getgrent.c: Define BUFLEN from NSS_BUFLEN_GROUP.
1906         * grp/getgrent_r.c: Likewise.
1907         * grp/getgrgid.c: Likewise.
1908         * grp/getgrgid_r.c: Likewise.
1909         * grp/getgrnam.c: Likewise.
1911         * pwd/fgetpwent_r.c: New file.  Reentrant version of fgetpwent.
1912         * pwd/fgetpwent.c: Rewrite to use fgetpwent_r.
1913         * pwd/Makefile (routines): Add fgetpwent_r.
1914         * pwd/pwd.h: Add prototypes for __fgetpwent_r and fgetpwent_r.
1916         * grp/fgetgrent_r.c: New file.  Reentrant version of fgetgrent.
1917         * grp/fgetgrent.c: Rewrite to use fgetgrent_r.
1918         * grp/Makefile (routines): Add fgetgrent_r.
1919         * grp/grp.h: Add prototypes for __fgetgrent_r and fgetgrent_r.
1921         Implement shadow password lookup functions.  This is no complete
1922         shadow password suite.
1923         * shadow/Makefile: New file.
1924         * shadow/fgetspent.c: New file.
1925         * shadow/fgetspent_r.c: New file.
1926         * shadow/getspent.c: New file.
1927         * shadow/getspent_r.c: New file.
1928         * shadow/getspnam.c: New file.
1929         * shadow/getspnam_r.c: New file.
1930         * shadow/putspent.c: New file.
1931         * shadow/sgetspent.c: New file.
1932         * shadow/sgetspent_r.c: New file.
1933         * shadow/shadow.h: New file.
1934         * shadow/spwd-lookup.c: New file.
1935         * shadow/nss_files/files-spwd.c: New file.
1937 Thu Aug  8 13:33:45 1996  Ulrich Drepper  <drepper@cygnus.com>
1939         * sysdeps/unix/sysv/linux/ftime.c: New file.  Available system
1940         call is only a stub.
1941         Reported by Matthias Urlichs.
1943         * Makeconfig [!default_cflags]: Change default value from `-g'
1944         to `-g -O'.
1946         * configure.in: Recognize i686.
1947         * sysdeps/i386/i686/Implies: Default on i586 optimized code.
1949 Thu Aug  8 12:40:20 1996  Matthias Urlichs  <smurf@smurf.noris.de>
1951         * Makeconfig [$(build-omitfp) == yes]: Add to CFLAGS-.so
1952         value of CFLAGS-.o, not CFLAGS-o.
1954         * sysdeps/unix/sysv/linux/init-first.c (init): Add volatile
1955         pointer to ourself.  Otherwise `gcc -O3' optimized init away.
1957 Thu Aug  8 01:41:43 1996  Ulrich Drepper  <drepper@cygnus.com>
1959         * elf/Makefile: Undo change of Tue Aug  6 14:27:11 1996.
1960         * elf/dl-support: Add definition of `_dl_sysdep_read_whole_file'.
1962 Thu Aug  8 01:15:59 1996  Ulrich Drepper  <drepper@cygnus.com>
1964         * sysdeps/i386/fpu_control.h (_FPU_DEFAULT, _FPU_IEEE): Set
1965         to 0x137f to allow long double operations.
1967 Sun Aug  4 13:12:05 1996  Richard Henderson  <rth@tamu.edu>
1969         Bug Fixes:
1971         * nss/nsswitch.c (_res): Remove redundant variable definition.
1972         The real one is in resolve/res_init.c, and having both prevents
1973         using -fno-common when building the shared library.
1974         * sunrpc/rpc_prot.c (_null_auth): Same.  Original is in rpc_common.c.
1976         * sysdeps/unix/sysv/linux/alpha/brk.S: When PIC, define __curbrk as
1977         a .bss object not a COMMON symbol.
1979         * sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/bsd-setjmp.S: Must load
1980         $gp before referencing __sigsetjmp symbol.  Retain LITUSE for same.
1982         Optimizations:
1984         * sysdeps/alpha/strlen.S: Rearrange first-word setup and thense the
1985         main loop for better dual-issue on EV5.  Rearrange binary search to
1986         pipeline better and trim one instruction.
1988         Cosmetic Changes:
1990         * time/localtime.c (localtime_r): Move lock declaration back next to
1991         the comment where it was before the 960724 change.
1993         * INSTALL, manual/maint.texi: alpha-gnu-linux -> alpha-ANYTHING-linux.
1994         The second word is supposed to be the hardware manufacturer.
1996         * sysdeps/alpha/_mcount.S: Retain LITUSE for __mcount.
1997         * sysdeps/alpha/setjmp.S: Retain LITUSE for __sigsetjmp_aux.
1999         * sysdeps/alpha/divrem.h: More local labels, retain LITUSE for _mcount.
2001         * sysdeps/alpha/alphaev5/add_n.S, sysdeps/alpha/alphaev5/lshift.S,
2002         sysdeps/alpha/alphaev5/rshift.S, sysdeps/alpha/alphaev5/sub_n.S:
2003         Same cleanups as with EV4 GMP stuff.
2005 Tue Jul 25 03:30:56 1996  Richard Henderson  <rth@tamu.edu>
2007         * sysdeps/unix/sysv/linux/Makefile [misc] (sysdep_routines): Add clone.
2008         * sysdeps/unix/sysv/linux/alpha/clone.S: New file.
2009         * sysdeps/unix/sysv/linux/i386/clone.S: New file.
2011 Sun Aug  4 00:12:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2013         * sysdeps/unix/sysv/linux/gnu/types.h: Declare __fd_mask as
2014         `unsigned long'.
2016         * misc/sys/select.h: Declare fd_mask as alias of __fd_mask.
2018 Sat Aug  3 16:20:02 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2020         * sysdeps/unix/sysv/linux/alpha/ioperm.c (platform): Add entry for
2021         Mikasa.
2023         * socket/sys/socket.h (send, __send, sendto): Declare buffer
2024         pointer as __const.
2026         * string/tester.c (main): Test stpncpy.
2028         * sysdeps/generic/stpncpy.c (__stpncpy): Fix so it works without
2029         segfault when called with an N that is not a multiple of four and
2030         src[N-1]=='\0'.
2032         * misc/syslog.c (LogType): New variable.
2033         (openlog): If connect() with SOCK_DGRAM fails with EPROTOTYPE,
2034         try again with SOCK_STREAM (the Linux syslogd uses a socket of the
2035         latter type).
2036         (vsyslog): When LogType==SOCK_STREAM, also send ASCII NUL
2037         terminator as a record-delimiter.  If __send(LogFile) fails,
2038         call closelog() so logfile gets re-opened next time.
2040 Wed Aug  7 15:15:14 1996  Ulrich Drepper  <drepper@cygnus.com>
2042         * elf/dl-open (_dl_open): Add cast to avoid warning.
2044         * manual/memory.texi: Improve some examples to give readers better
2045         advice: Use `stpcpy' instead of `strcat' if possible.
2046         * manual/string.texi: Document `strtok_r' and `strtok'.
2048         * sunrpc/Makefile: Move `+gccwarn' definition before inclusion
2049         of Makeconfig.
2050         [$(cross-compiling)=no]: Change test before making librpcsvc
2051         to this from $(cross-compile).
2052         Reported by Andreas Schwab.
2054 Tue Aug  6 14:27:11 1996  Ulrich Drepper  <drepper@cygnus.com>
2056         * elf/Makefile (routines): Move dl-sysdep to here...
2057         (rtld-routines): ...from here.  This should make static linking
2058         work again.
2060         * locale/setlocale.c: Add local variable `lock' and add code to
2061         `setlocale' to avoid simultaneous changing of global data.
2063         * catgets/catgets.c (catopen): Use `__strdup' instead of `strdup'.
2064         * catgets/open_catalog (__open_catalog): Use `__stpcpy', `__open',
2065         `__fstat', `__read', `__mmap', `__munmap' and `__close' instead
2066         of unprotected names.
2068 Tue Aug  6 01:13:56 1996  Ulrich Drepper  <drepper@cygnus.com>
2070         Clean name space according to ISO C, ISO C/Amd 1, and POSIX.1.
2071         This requires to rename several functions to use __ protected
2072         names.
2073         * dirent/dirent.h: Add prototypes of __opendir, __closedir,
2074         and __readdir.
2075         * sysdeps/mach/hurd/closedir.c: Prepend function name with __
2076         and make old name a weak alias.
2077         * sysdeps/mach/hurd/getrlimit.c: Likewise.
2078         * sysdeps/mach/hurd/opendir.c: Likewise.
2079         * sysdeps/mach/hurd/readdir.c: Likewise.
2080         * sysdeps/stub/closedir.c: Likewise.
2081         * sysdeps/stub/opendir.c: Likewise.
2082         * sysdeps/stub/readdir.c: Likewise.
2083         * sysdeps/unix/closedir.c: Likewise.
2084         * sysdeps/unix/opendir.c: Likewise.
2085         * sysdeps/unix/readdir.c: Likewise.
2087         * sysdeps/unix/opendir.c: Call `__fcntl' instead `fcntl'.
2089         * sysdeps/posix/getcwd.c: Call `__opendir', `__readdir',
2090         `__closedir' instead of unprotected names.
2092         * libio/filedoalloc.c (_IO_file_doallocate): Call `__isatty'
2093         instead of `isatty' since later is not part of ISO C.
2094         * libio/fileops.c (_IO_file_fopen): Call `__open' instead of
2095         `open' since later is not part of ISO C.
2097         * login/endutent.c (endutent): Call `__endutent_r', not
2098         `endutent_r'.
2099         * login/endutent_r.c: Rename defined function to `__endutent_r',
2100         make `endutent_r' weak alias.
2101         * login/getutent.c (getutent): Call `__getutent_r', not
2102         `getutent_r'.
2103         * login/getutid.c (getutid): Call `__getutid_r', not `getutid_r'.
2104         * login/getutid_r.c: Rename defined function to `__getutent_r',
2105         make `getutent_r' weak alias.
2106         * login/getutline.c (getutline): Call `__getutline_r', not
2107         `getutline_r'.
2108         * login/getutline_r.c: Rename defined function to `__getutline_r',
2109         make `getutline_r' weak alias.
2110         * login/pututline_r.c: Rename defined function to `__pututline_r',
2111         make `pututline_r' weak alias.
2112         * login/setutent.c (setutent): Call `__setutline_r', not
2113         `setutline_r'.
2114         * login/setutent_r.c: Rename defined function to `__setutline_r',
2115         make `setutline_r' weak alias.
2116         Rename `utmpname' to `__utmpname' and make former weak alias.
2117         (__utmpname): Call `__strdup', not `strdup'.
2118         * login/utmp.h: Add prototypes for name space clean reentrant
2119         versions.
2120         * sysdeps/unix/getlogin.c: Call `__ttyname_r', `__setutent_r',
2121         and `__endutent_r' instead of unprotected names.
2123         * math/math.h: Add prototype for `__matherr'.
2124         * sysdeps/libm-ieee754/k_standard.c: Call `__matherr' instead
2125         of `matherr'.
2127         * nss/getXXbyYY.c: Call __ protected reentrant function.
2128         * nss/getXXent.c: Likewise.
2129         * nss/getXXbyYY_r.c: Define `get*' function with __ protected
2130         name.  Make usual name a weak alias.
2131         * nss/getXXent_r.c: Likewise.
2133         * posix/unistd.h: Add prototype for `__ttyname_r'.
2134         * sysdeps/posix/ttyname_r.c: Rename function to `__ttyname_r'
2135         and make `ttyname_r' a weak alias.
2137         * resource/sys/resource.h: Add prototype for `__getrlimit'.
2138         * sysdeps/stub/getrlimit.c: Prepend function name with __
2139         and make old name a weak alias.
2140         * sysdeps/unix/syscalls.list: Rename system call to `__getrlimit'
2141         and make `getrlimit' weak alias.
2143         * libc/stdio/stdio.h: Add prototype for `__vscanf'.
2144         * libc/stdio/vscanf.c: De-ANSI-fy.
2145         Rename function to `__vscanf' and make `vscanf' a weak alias.
2146         * stdio-common/scanf.c (scanf): Use _IO_vscanf/__vscanf instead
2147         of `vscanf'.
2149         * stdio-common/reg-printf.c: De-ANSI-fy.
2150         Rename function to `__register_printf_function' and make
2151         `register_printf_function' weak alias.
2153         * stdio-common/vfprintf.c: Call `__wcsrtombs' instead of
2154         `wcsrtombs'.
2156         * stdlib/mbstowcs.c: Call `__mbsrtowcs' instead of `mbsrtowcs'.
2157         * stdlib/mbtowc.c: Call `__mbrtowc' instead of `mbrtowc'.
2158         * stdlib/wcstombs.c: Call `__wcsrtombs' instead of `wcsrtombs'.
2159         * stdlib/wctomb.c: Call `__wcrtomb' instead of `wcrtomb'.
2160         * wcsmbs/mbrtowc.c: Prepend function name with __ and make old
2161         name a weak alias.
2162         * wcsmbs/mbsrtowcs.c: Likewise.
2163         * wcsmbs/wcrtomb.c: Likewise.
2164         * wcsmbs/wcsrtombs.c: Likewise.
2165         * wcsmbs/wchar.h: Add prototypes for __ protected versions.
2167         * sysdeps/posix/sigsetmask.c (__sigsetmask): Call `__sigprocmask'
2168         instead of `sigprocmask'.
2171         * grp/grp.h [__USE_REENTRANT]: Add prototypes for reentrant
2172         version getgrent_r, getgrgid_r, and getgrnam_r.
2173         * pwd/pwd.h [__USE_REENTRANT]: Add prototypes for reentrant
2174         version getpwent_r, getpwuid_r, getpwnam_r and __ protected
2175         names.
2176         * resolv/netdb.h: Complete rewrite.  No more BSD ugliness.
2179         * misc/error.c (private_strerror): Translate messages from table,
2180         too.
2182         * io/fcntl.h: Pretty printing.
2183         * misc/fstab.h: Likewise.
2184         * misc/ttyent.h: Likewise.
2185         * resource/sys/resource.h: Likewise.
2186         * string/argz.h: Likewise.
2187         * string/envz.h: Likewise.
2189         Add support for symbols from POSIX.1c (POSIX threads).
2190         * posix/getconf.c: Handle new sysconf symbols.
2191         * posix/posix1_lim.h: Define _POSIX_TTY_NAME_MAX and
2192         _POSIX_LOGIN_NAME_MAX with minimal maximal values.
2193         * sysdeps/generic/confname.h: Define new symbols.
2194         * sysdeps/posix/sysconf.c: Handle new symbols.
2195         * sysdeps/stub/sysconf.c: Ditto.
2196         * sysdeps/unix/sysv/linux/sysconf.c: Removed.  Generic version
2197         is ok now.
2199         * sunrpc/rpc/xdr.h: Move definition of type `xdrproc_t' to
2200         have real prototype.
2202         * sysdeps/generic/resourcebits.h: Add macro definition for
2203         RLIMIT_* values.  Some sources test using #ifdef whether specific
2204         limit is available.
2205         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: Ditto.
2206         * sysdeps/unix/sysv/linux/resourcebits.h: Removed.  We need
2207         separate files for the architectures.
2208         * sysdeps/unix/sysv/linux/alpha/resourcebits.h: New file.
2209         * sysdeps/unix/sysv/linux/i386/resourcebits.h: New file.
2210         * sysdeps/unix/sysv/linux/m68k/resourcebits.h: New file.
2211         * sysdeps/unix/sysv/linux/mips/resourcebits.h: New file.
2213         * sysdeps/posix/getdtsz.c: Rewrite to use `__getrlimit' function
2214         and only default on `OPEN_MAX'.
2215         * sysdeps/unix/sysv/sysv4/getdtsz.c: Removed.  Default is already
2216         the POSIX version.
2218         * time/Makefile (routines): Add ctime_r.
2219         * time/asctime.c: Add implementation of `asctime_r'.  Make
2220         `asctime' implementation based on reentrant version.
2221         * time/ctime_r.c: New file.
2222         * time/time.h [__USE_REENTRANT]: Add definition of `asctime_r'
2223         and `ctime_r'.
2225 Sat Aug  3 18:41:36 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2227         * locale/C-ctype.c (_nl_C_LC_CTYPE_toupper): Fix EOF entry.
2228         (_nl_C_LC_CTYPE): Fix ordering.
2229         * locale/categories.def (LC_CTYPE): Add missing ctype-class32; fix
2230         typo.
2232 Sat Aug  3 12:31:06 1996  Richard Henderson  <rth@tamu.edu>
2234         * csu/initfini.c: Discover the maximum alignment generated by the
2235         compiler when emitting a function.
2236         (_init): Make sure the end of the crti fragment is aligned.
2237         (_fini): Likewise.
2239 Fri Aug  2 03:12:40 1996  Ulrich Drepper  <drepper@cygnus.com>
2241         * initfini.c: (__libc_is_static): New variable.  Will be
2242         initialized in init-first.c.  Some actions in the libc work
2243         different when libc is static or dynamic.
2245         * sysdeps/unix/sysv/linux/init-first.c (init): Use
2246         `__libc_is_static' variable to determine whether call to
2247         `personality' and `setfpucw' is necessary.  When done set variable
2248         to +-1 depending on library type.
2250         * locale/setlocale.c (setlocale): Use global variable
2251         `__libc_enable_secure' instead of calling `get{,e}{g,u}id()' to
2252         determine whether it's a SET[UG]ID program.
2254 Fri Aug  2 14:40:22 1996  Roland McGrath  <roland@fast.cs.utah.edu>
2256         * Version 1.93 test release.
2258         * manual/Makefile: Use -include for chapters-incl too.
2260         * Makeconfig (+link): Add back start.o, mistakenly removed in last
2261         change.
2263 Fri Aug  2 01:04:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2265         * nss/Makefile (generated): Add db-*.c.
2267         * sysdeps/i386/sysdep.h: Get generic/sysdep.h explicitly instead of
2268         using #include_next.
2270         * configure.in (--enable-add-ons): Quote m4 macro args.
2272         * elf/rtld.c (dl_main): For --verify, fail if no dynamic section.
2274 Thu Aug  1 14:40:03 1996  Roland McGrath  <roland@fast.cs.utah.edu>
2276         * sunrpc/Makefile [$(cross-compile)=no]: Test before making librpcsvc.
2278         * Makerules (build-shlib): Add -B$(csu-objpfx) to find crt[in].o there.
2280         * Makeconfig (+preinit, +postinit): Prepend $(csu-objpfx) here.
2281         (+link): Not here.
2283         * stdio-common/_itoa.h (_itoa_word): Declare unused to suppress
2284         warning when inline function is elided.
2285         * sysdeps/i386/dl-machine.h (elf_machine_matches_host): Likewise.
2286         (elf_machine_runtime_setup): Likewise.
2287         * elf/dynamic-link.h (elf_get_dynamic_info): Likewise.
2288         * sysdeps/i386/dl-machine.h (elf_machine_got): Likewise.
2289         (elf_machine_load_address): Likewise.
2291         * catgets/gencat.c: Include <locale.h>.
2293         * sysdeps/unix/mk-local_lim.c (param): Add SYMLOOP_MAX/MAXSYMLINKS.
2295         * login/logwtmp.c (logwtmp): Call time, not __time.
2297         * sysdeps/gnu/utmpbits.h (_HAVE_UT_PID): New macro.
2298         * login/login.c (login): Test [_HAVE_UT_PID] to use ut_pid member.
2299         * login/logwtmp.c (logwtmp): Likewise.
2301         * sysdeps/generic/ioctl-types.h (sizeof): Define to 0 around #if
2302         comparing ioctl macro values.
2304         * sysdeps/i386/sysdep.h: Do `#include_next <sysdep.h>'.
2306         * manual/Makefile: Use -include for chapters to suppress warning.
2308         * sysdeps/stub/socket.c: Fix type of TYPE arg.
2309         * sysdeps/stub/socketpair.c: Likewise.
2311         * sysdeps/stub/_exit.c (_exit): Remove obsolete __NORETURN keyword.
2313         * sysdeps/generic/sysdep.h: New file, broken out of ...
2314         * sysdeps/unix/sysdep.h: ... here.
2315         (C_LABEL): Moved out.
2317         * Makeconfig (soversions.mk): Don't use newfangled ${x%%y} syntax;
2318         stick to sed.  Do `exit 0' at end because while returns nonzero.
2320         * sysdeps/i386/sysdep.h: New file, broken out of ...
2321         * sysdeps/unix/i386/sysdep.h: ... here.  Generic asm macros moved out.
2323         * sysdeps/stub/stdio_lim.h (L_ctermid, L_cuserid): Macros removed.
2324         They are defined unconditionally in libio/stdio.h.
2326         * elf/dl-runtime.c: Include <stddef.h> for `NULL' defn.
2327         * elf/dl-cache.c: Likewise.
2329 Mon Jul 29 19:20:05 1996  Ulrich Drepper  <drepper@cygnus.com>
2331         * sysdeps/unix/sysv/linux/Makefile [$(subdir == misc]
2332         (sysdep_headers): Add sys/sysmacros.h.
2333         * sysdeps/unix/sysv/linux/sys/sysmacros.h: New file.
2335 Wed Jul 31 14:21:36 1996  Ulrich Drepper  <drepper@cygnus.com>
2337         * termios/termios.h [__OPTIMIZE__]: Remove "optimization" for
2338         tcgetattr.  We have weak aliases now.
2339         * stdlib/stdlib.h [__OPTIMIZE__ && __GNUC__ >= 2]: Remove
2340         "optimizations" for random functions.
2342 Mon Jul 29 20:33:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2344         * sysdeps/unix/sysv/linux/netinet/in.h (ntohl, ntohs, htonl,
2345         htons) [__BIG_ENDIAN]: #undef them before defining to avoid
2346         redefinition warning.
2348 Mon Jul 29 20:28:27 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2350         * time/time.h: Don't optimize tzset() to __tzset() which bypasses
2351         the __tzset_lock.
2353 Tue Jul 30 15:14:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2355         * sunrpc/rpc/pmap_clnt.h: Fix botched patch for multiple inclusion
2356         protection.
2358 Tue Jul 30 02:48:28 1996  Ulrich Drepper  <drepper@cygnus.com>
2360         * locale/loadlocale.c (_nl_load_locale): Change cast to `size_t'
2361         to be 64-bit clean.
2362         Reported by Richard Henderson <rth@tamu.edu>.
2364 Tue Jul 30 15:04:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2366         * locale/programs/ld-collate.c (collate_output): Fix typo reported by
2367         David Miller.
2369 Tue Jul 30 13:23:13 1996  Ulrich Drepper  <drepper@cygnus.com>
2371         * locale/setlocale.c (setlocale): Don't try to free C locale
2372         data.
2373         Reported by Matthias Urlichs.
2375 Tue Jul 30 14:35:17 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2377         * sysdeps/mach/hurd/dl-sysdep.c (__open): Use open_file.
2378         (open_file): New function, contents mostly from __open.
2379         (_dl_sysdep_read_whole_file): New function.
2381 Sat Jul 27 11:23:59 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2383         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Quote
2384         `..' dots in sed search string.
2386 Mon Jul 29 01:27:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2388         * sunrpc/rpc/rpc_msg.h: Fix botched patch for multiple inclusion
2389         protection.
2391 Sun Jul 28 23:46:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2393         * configure.in: Grok `--enable-add-ons=DIR1,DIR2,...', and configure
2394         in those directories.
2395         * config.make.in (add-ons): New varaible, set from @subdirs@.
2396         * Makefile (subdirs): Added $(add-ons) at the end.
2398         * time/strftime.c (strftime: do_number): Initialize PRINTED to
2399         MAXDIGITS in case P is null and so sprintf is never actually called.
2401 Mon Jul 29 02:46:23 1996  Ulrich Drepper  <drepper@cygnus.com>
2403         Add support for the to-be-written internationalized regexp.
2404         This code must be able to use collation symbols and collation
2405         equivalent classes.
2406         * locale/C-collate.c (_nl_C_LC_COLLATE_symbol_hash,
2407         _nl_C_LC_COLLATE_symbol_strings, _nl_C_LC_COLLATE_symbol_classes):
2408         New global variables for collation classes.
2409         * locale/categories.def: Add new descriptions for collation symbols
2410         and collation classes.
2411         * locale/langinfo.h: Add constants for collation symbols and
2412         collation classes.
2413         * locale/lc-collate.c: Add new global variables for collation symbols
2414         and collation classes.
2415         (_nl_postload_collate): Initialize new variables.
2416         * locale/programs/ld-collate.c: Add code to emit tables for
2417         collation symbols and collation classes.
2418         * locale/programs/locales.h: Change prototype for `collate_output'.
2419         * locale/programs/locfile.c (write_all_categories): Call
2420         `collate_output' with new argument.
2421         * locale/localeinfo.h: Add declaration for new global vars.
2422         (union locale_data_value): New member wstr for `wchar_t' strings.
2423         * locale/programs/locale-spec.c: Handle `collate-classes'
2424         keyword and print information about available collation classes.
2425         * locale/strlen-hash.h: New file.  Simple hashing function which
2426         takes a string with known length.
2427         * locale/Makefile (distribute): Add strlen-hash.h.
2428         (locale-modules): New var.  Additional files for `locale' program.
2430         * locale/C-ctype.c: Rewrite to avoid using string for giving values
2431         which are of type `u_int32_t'.
2432         Correct entry for EOF in toupper and tolower tables.
2434         * locale/loadlocale.c (_nl_load_locale):  Add cast to prevent
2435         warning.
2437         * locale/programs/ld-ctype.c (ctype_output): Add code to make
2438         sure that all tables in binary file are word-aligned.
2440         * locale/programs/locfile.c (write_locale_data): Correct handling
2441         of LC_MESSAGES locale.  Create directory if necessary.
2443         * locale/setlocale.c (setlocale): Add cast to avoid warning.
2445         * string/string.h: Add prototype for `__strndup'.
2447 Wed Jul 24 19:10:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2449         * wcsmbs/mbrtowc.c: Remove unused variable.
2451 Sun Jul 28 22:40:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2453         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): Update to
2454         2.0.10; some problems were reported with an earlier version, and this
2455         one is known to work.
2457         * sysdeps/generic/dl-sysdep.c (__libc_enable_secure): New variable.
2458         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2460 Sat Jul 27 13:02:09 1996  Ulrich Drepper  <drepper@cygnus.com>
2462         * elf/rtld.c (dl_main): Ignore arguments when environment variable
2463         LD_TRACE_LOADED_OBJECTS is set.
2465 Sun Jul 28 19:42:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2467         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Initialize
2468         __libc_enable_secure instead of _dl_secure.
2469         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2470         * elf/dl-load.c (_dl_map_object): Check __libc_enable_secure instead
2471         of _dl_secure.
2472         * elf/Makefile (routines): Add enbl-secure.
2473         (elide-routines.so): Here too.
2474         * sysdeps/generic/enbl-secure.c: New file.
2475         * posix/unistd.h [__USE_GNU]: Declare `__libc_enable_secure' flag.
2476         * elf/dl-support.c (_dl_secure): Variable removed.
2477         * elf/rtld.c: Likewise.  Replace all uses with __libc_enable_secure.
2479 Sun Jul 28 19:26:40 1996  David S. Miller  <dm@neteng.engr.sgi.com>
2481         * sysdeps/mips/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
2482         Declare _dl_runtime_resolve with __attribute__ ((unused)) so the
2483         compiler doesn't elide it.
2484         (elf_machine_rel): Follow Jul 14 change in sysdeps/i386/dl-machine.h.
2486 Sat Jul 27 02:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2488         * elf/rtld.c (dl_main): Take new option --verify when run directly.
2489         In verify mode, exit with status zero iff the argument object's
2490         PT_INTERP matches argv[0].
2491         * elf/ldd.sh.in: Use ${RTLD} --verify and only run the program if it
2492         exits with zero status.  This makes `ldd' secure again.
2494 Fri Jul 26 22:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
2496         * elf/rtld.c (dl_main): Implement LD_TRACE_LOADED_OBJECTS
2497         environment variable handling.  This makes the dynamic linker
2498         only print loaded libraries and quit.
2500         * elf/ldd.sh.in: Don't use `rtld --list' but instead
2501         LD_TRACE_LOADED_OBJECTS environment variable to print needed
2502         objects.
2504 Sat Jul 27 02:03:26 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2506         * db/makedb.c (main): Print version on stdout, not stderr.  Don't exit
2507         after printing version until after doing usage for --help.
2508         (long_options, main, usage): Rename -l/--lowercase option to
2509         -f/--fold-case (-f matches sort).
2511 Sat Jul 27 04:32:31 1996  Ulrich Drepper  <drepper@cygnus.com>
2513         * db/makedb.c: New file.  Implement program to create simple <db.h>
2514         database from textual input.  This will be used for nss_db.
2516 Sat Jul 27 01:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2518         * sunrpc/rpc/auth_unix.h: Fix misapplied patches in last changes.
2519         * sunrpc/rpc/pmap_clnt.h: Likewise.
2520         * sunrpc/rpc/auth.h: Likewise.
2521         * sunrpc/rpc/pmap_rmt.h: Likewise.
2522         * sunrpc/rpc/rpc_msg.h: Likewise.
2524 Sat Jul 27 04:37:34 1996  Ulrich Drepper  <drepper@cygnus.com>
2526         * string/string.h (strndupa): Change to use return value of
2527         `memcpy' for more performance.
2528         * string/strndup.c: Likewise.
2530         * string/string.h (strdupa): Don't call __builtin_alloca in argument.
2531         This might lead to problems.
2532         (strndupa): Likewise.
2534 Fri Jul 26 15:24:25 1996  Ulrich Drepper  <drepper@cygnus.com>
2536         * sunrpc/rpc/auth.h: Add protection against multiple inclusion
2537         and change K&R prototypes to ANSI prototypes.
2538         * sunrpc/rpc/auth_unix.h: Ditto.
2539         * sunrpc/rpc/clnt.h: Ditto.
2540         * sunrpc/rpc/pmap_clnt.h: Ditto.
2541         * sunrpc/rpc/pmap_prot.h: Ditto.
2542         * sunrpc/rpc/pmap_rmt.h: Ditto.
2543         * sunrpc/rpc/rpc_msg.h: Ditto.
2544         * sunrpc/rpc/svc.h: Ditto.
2545         * sunrpc/rpc/svc_auth.h: Ditto.
2546         * sunrpc/rpc/xdr.h: Ditto.
2548 Fri Jul 26 20:39:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2550         * ctype/test_ctype.c: Test EOF too.
2552 Fri Jul 26 18:06:58 1996  Ulrich Drepper  <drepper@cygnus.com>
2554         * sunrpc/rpc/auth.h: Add __BEGIN_DECLS and __END_DECLS.
2555         * sunrpc/rpc/auth_unix.h: Likewise.
2556         * sunrpc/rpc/clnt.h: Likewise.
2557         * sunrpc/rpc/netdb.h: Likewise.
2558         * sunrpc/rpc/pmap_clnt.h: Likewise.
2559         * sunrpc/rpc/pmap_prot.h: Likewise.
2560         * sunrpc/rpc/rpc_msg.h: Likewise.
2561         * sunrpc/rpc/svc.h: Likewise.
2562         * sunrpc/rpc/svc_auth.h: Likewise.
2563         * sunrpc/rpc/xdr.h: Likewise.
2565         * sunrpc/rpc/pmap_clnt.h: Move definition of type `resultproc_t'
2566         to here from...
2567         * sunrpc/pmap_rmt.c: ...here.
2569 Fri Jul 26 16:10:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2571         * login/pututline_r.c (pututline_r): Only call getutid_r if ID has a
2572         valid ut_id field.
2573         * login/getutid_r.c (getutid_r): Mark UTMP_DATA->loc_utmp invalid
2574         if a search fails.
2576 Fri Jul 26 00:36:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2578         * sysdeps/mips/dl-machine.h: New file, contributed by Kazumoto Kojima
2579         <kkojima@info.kanagawa-u.ac.jp>.
2581 Fri Jul 26 04:41:28 1996  Ulrich Drepper  <drepper@cygnus.com>
2583         * intl/libintl.h: Define optimizing macros if __OPTIMIZE__ is
2584         defined, not __OPTIMIZED.
2585         (_nl_msg_cat_cntr): Move declaration outside macro definition
2586         to prevent "nested extern" warning.
2587         (dcgettext): Rename local variable `result' to `__result'.
2589 Thu Jul 25 22:46:30 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2591         * locale/programs/localedef.c (__progname): Remove decl.
2592         (main): Use program_invocation_short_name instead of __progname.
2593         (usage): Use program_invocation_name instead of __progname.
2595 Fri Jul 26 03:46:08 1996  Ulrich Drepper  <drepper@cygnus.com>
2597         * catgets/gencat.c: Use "libc" instead of PACKAGE.
2598         * locale/localedef.c: Ditto.
2599         * locale/locale.c: Ditto.
2601         * locale/findlocale.c (_nl_find_locale): Little optimization.
2602         Use new function `strndup'.
2604         * locale/loadlocale.c: Little optimization.  Use constant value
2605         from `_nl_category_num_items' instead of byte-order dependend
2606         value from file.
2608         * locale/programs/ld-time.c (time_add): Correct string constant.
2610         * locale/programs/locale-spec.c: New file.
2611         * locale/programs/locale.c: Call `locale_special' function if
2612         no other field matches.
2614         * locale/programs/localedef.c: No need to define `program_name'.
2615         Use global variable `__progname'.
2617         * locale/programs/locfile.c (write_locale_data): Always write
2618         LC_MESSAGES data in LC_MESSAGES/SYS_LC_MESSAGES file.  This is
2619         necessary since message catalogs are also installed in the
2620         LC_MESSAGES/ directory.
2622         * locale/programs/stringtrans.c (ADDC): Correctly use `encode_char'
2623         function instead of writing single bytes.
2624         (encode_char): Also handle little endian.
2626         * locale/setlocale.c (new_composite_name): Little optimization.
2627         Use return value of `memcpy'.
2629         * misc/ttyent.h: Pretty print prototypes, add missing parameter
2630         names, prepend parameter names with __  and use `__const' instead
2631         of `const'.
2632         * posix/unistd.h: Ditto.
2633         * stdlib/stdlib.h: Ditto.
2634         * string/string.h: Ditto.
2636         * posix/getconf.c: De-ASNI-fy.  Recognize POSIX.2 constant names.
2637         Use `error' function instead of doing it by hand.
2638         * sysdeps/posix/sysconf.c: De-ANSI-fy.
2639         Handle _SC_COLL_WEIGHTS_MAX.
2640         * sysdeps/stub/sysconf.c: Handle _SC_CHARCLASS_NAME_MAX,
2641         _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_2_LOCALEDEF
2642         since these do depend on the platform.
2643         Add POSIX.4 symbols.
2645         * posix/posix2_lim.h: Add missing definition of
2646         _POSIX2_COLL_WEIGHTS_MAX.
2647         Change _POSIX2_EQUIV_CLASS_MAX and _POSIX2_CHARCLASS_NAME_MAX
2648         to high values since we have no fixed limit.
2650         * sysdeps/generic/confname.h: Add _SC_PAGE_SIZE as alias for
2651         _SC_PAGESIZE for buggy systems (= HP UX) out there.
2653         * wcsmbs/Makefile (routines): Add mbsnrtowcs and wcsnrtombs.
2654         * wcsmbs/mbsnrtowcs.c: New file.  Non-standard implementation.
2655         * wcsmbs/wcsnrtombs.c: Ditto.
2656         * wcsmbs/wchar.h [__USE_GNU]: Add prototypes for mbsnrtowcs and
2657         wcsnrtombs.
2659 Thu Jul 25 00:25:54  Richard Henderson  <rth@tamu.edu>
2661         * nss/nss_db/db-XXX.c: Kill trailing ; from lock defn as a matter of
2662         course.
2663         * nss/getXXent_r.c: Likewise.
2664         * nss/nsswitch.c: Likewise.
2665         * nss/nss_files/files-XXX.c: Likewise.
2666         * sysdeps/mach/hurd/dirstream.h (struct __dirstream): Likewise.
2667         * sysdeps/unix/bsd/telldir.c (struct record): Likewise.
2668         * sysdeps/unix/dirstream.h (struct __dirstream): Likewise.
2670 Thu Jul 25 00:53:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2672         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION): New
2673         macro, now put the needed Linux version just once, here; update to
2674         needing linux-2.0.3 headers.
2675         (libc_cv_linuxVER): New macro derived from that.
2676         (kernel header check): Use those macros and some m4 magic to replace
2677         hard-coded `201' and `2.0.1' in several places.
2679         * Makerules ($(libdir)/libc.so): Fix typos in generated comment.
2681 Wed Jul 24 17:02:30 1996  Ulrich Drepper  <drepper@cygnus.com>
2683         * time/localtime.c: Move lock variable declaration to end of
2684         variable declarations since if is a dummy macro the ; at the
2685         end terminates the variable section of the function.
2687         * time/tzset.c: Undefine `tzset' before function declaration.
2688         Use `weak_function' macro instead of `weak_symbol'.
2690 Wed Jul 24 18:57:33 1996  Ulrich Drepper  <drepper@cygnus.com>
2692         * stdlib/strtouq.c: Additional weak alias is `strtoull', not
2693         `strotull'.
2695 Wed Jul 24 18:26:23 1996  Ulrich Drepper  <drepper@cygnus.com>
2697         * locale/C-ctype.c: Increment number of fields after change
2698         from Wed Jun 19 03:24:58 1996.
2700 Tue Jul 23 18:13:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2702         * sysdeps/mach/hurd/Makefile (rpcuserlibs): New variable.
2703         ($(common-objpfx)libc.so): Move deps into that, use it.
2704         [$(subdir) = elf] ($(objpfx)librtld.so): Depend on
2705         $(rpcuserlibs:.so=_pic.a).
2706         * elf/Makefile ($(objpfx)librtld.so): Just depend on libc_pic.a; don't
2707         use $(LDLIBS-c.so).
2709 Thu Jul 18 21:41:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2711         * sysdeps/generic/stpncpy.c: Fix semantics to make `stpncpy (d, s,
2712         n)' equivalent to `strncpy (d, s, n), d += strnlen (d, n)'.
2714 Tue Jul 23 02:49:58 1996  Ulrich Drepper  <drepper@cygnus.com>
2716         * locale/iso-4217.def: Add India to comment for symbol "INR ".
2717         Reported by Raja R Harinath  <harinath@cs.umn.edu>.
2719 Sat Jul 20 14:03:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2721         * sysdeps/m68k/dl-machine.h (elf_machine_rela): Remove bogus
2722         #undef RESOLVE.
2724 Sun Jul 21 06:48:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2726         * time/tzset.c: Include <libc-lock.h>.
2727         (__tzset_lock): New lock variable.
2728         (tzset): New function (weak defn), no longer weak alias for __tzset.
2729         Call __tzset while holding __tzset_lock.
2730         * time/localtime.c: Include <libc-lock.h>.
2731         (__localtime_r): Hold __tzset_lock while doing the work.
2733         * sysdeps/generic/setenv.c (__environ): Change conditional for #define
2734         from [!HAVE_GNU_LD] to [!_LIBC].
2735         [_LIBC]: Include <libc-lock.h> and define a lock.
2736         (LOCK, UNLOCK): New macros, no-ops for [! _LIBC].
2737         (setenv, unsetenv): Use them.
2739 Sun Jul 21 01:44:39 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2741         * locale/programs/locfile.c (write_locale_data): Deal with missing
2742         UIO_MAXIOV.
2744         * sysdeps/mach/hurd/socket.c (socket): Make TYPE an int.
2745         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
2747 Sat Jul 20 21:55:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2749         Win32 hacks from <Rob_Tulloh@tivoli.com>.
2750         * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino;
2751         use void * for my_realloc; include <malloc.h> for alloca.
2752         (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable.
2753         * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__].
2754         * posix/glob.h: Likewise.
2756 Sat Jul 20 13:28:52 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2758         * sysdeps/mach/hurd/select.c (__select): Don't poll on the last
2759         call __io_select unless there's only a single descriptor, as each
2760         descriptor now has its own reply port.
2761         If there is only a single descriptor, just use its reply port for
2762         everything and don't bother creating the port set.
2764         * sysdeps/mach/hurd/uname.c (uname): Deref UNAME to get nodename.
2765         <unistd.h>: New include.
2767         * sysdeps/mach/libc-lock.h (__libc_lock_define): Backslashify
2768         continuation line.
2770 Sat Jul 20 07:15:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2772         * crypt/Makefile, crypt/nocrypt.c: Removed.  It is illegal to export
2773         from the USA any software that even makes it easy to drop in an
2774         encryption module of foreign origin.
2775         * Makerules (cryptobjdir): Variable removed.
2776         ($(libdir)/libc.so): Remove dep on libcrypt.so$(libcrypt.so-version).
2777         * Makefile (subdirs): Remove crypt.
2779 Fri Jul 19 15:45:20 1996  Ulrich Drepper  <drepper@cygnus.com>
2781         * locale/C-messages.c (_nl_C_LC_MESSAGES): Add missing Kleene
2782         operator to yesexpr and noexpr string.
2784 Fri Jul 19 15:10:37 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2786         * sunrpc/xdr_mem.c (xdrmem_putlong): Don't cast LP to int32 (the
2787         old code would have failed on a big-endian 64-bit architecture).
2788         * sunrpc/xdr_stdio.c (xdrstdio_putlong): Ditto.
2790         * sunrpc/xdr.c (xdr_int): Handle XDR_FREE case.
2791         (xdr_u_long): Use switch instead of chain of if-statements.
2792         Remove gratitous parentheses around return expressions.
2793         (xdr_enum): Open code case where INT_MAX<LONG_MAX.
2795         * sunrpc/svc.c (svc_getreqset): Increment SOCK by 32, not NFDBITS.
2797         * sunrpc/portmap.c (reg_service): Declare ANS and PORT as long,
2798         not int.
2800 Fri Jul 19 16:56:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2802         * dlfcn.h, db.h: New wrapper headers.
2804         * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA]
2805         for `struct stat;' forward decl.
2807 Fri Jul 19 22:25:19 1996  Ulrich Drepper  <drepper@cygnus.com>
2809         * locale/iso-4217.def: Add some more standardized currency
2810         symbols.
2812 Fri Jul 19 13:18:02 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2814         * hurd/report-wait.c (describe_number): Use unsigned long int for J.
2816 Thu Jul 18 12:33:57 1996  Roland McGrath  <roland@baalperazim.frob.com>
2818         * Rules (dummy.o, empty.o): Targets removed.
2819         (dummy.c, empty.c): New targets replace them.
2821 Thu Jul 18 11:42:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2823         * crypt/Makefile (lib-noranlib): Depend on
2824         $(objpfx)libcrypt.so$(libcrypt.so-version).
2825         (subdir): Fix name.
2827 Thu Jul 18 04:33:21 1996  Roland McGrath  <roland@baalperazim.frob.com>
2829         * sysdeps/mach/hurd/errnos.awk: Move EWOULDBLOCK check before errno==0
2830         check.  mib's clueless hacking broke it.
2832 Thu Jul 18 04:27:21 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2834         * Makerules ($(libdir)/libc.so): Add missing / after $(cryptobjdir).
2836 Wed Jul 17 10:54:20 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2838         * misc/sys/ustat.h: New file.
2839         * misc/ustat.h: Ditto.
2840         * sysdeps/generic/ustatbits.h: Ditto.
2841         * sysdeps/stub/ustat.c: Ditto.
2842         * sysdeps/unix/sysv/linux/ustatbits.h: Ditto.
2843         * misc/Makefile (headers): Mention ustat.h, sys/ustat.h, and
2844         ustatbits.h.
2845         (routines): Mention ustat.
2847         * sysdeps/unix/sysv/linux/alpha/start.S: Move to ...
2848         * sysdeps/alpha/elf/start.S: here.
2850         * sysdeps/unix/sysv/linux/syscalls.list: Mention klogctl in
2851         alphabetically correct place.  Mention ustat.
2853         * sysdeps/unix/alpha/sysdep.S: Make errno a bss symbol, not a
2854         common symbol (makes errno accessible from gdb).
2856         * login/pututline_r.c (pututline_r): Test ut_id in repositioning
2857         test, not ut_type.
2859         * login/logwtmp.c (logwtmp): Reimplemented.  Must ensure that a
2860         record always gets appended at end of file (wtmp is a log file,
2861         after all).  Set ut_type to DEAD_PROCESS if name is empty.
2863         * login/getutid_r.c (getutid_r): Handle search for UT_TYPE in
2864         separate loop from search for UT_ID.  Fix code so it is in
2865         sync with Unix man page.
2867         * login/getutline_r.c (getutline_r): Stop searching only if
2868         ut_line matches and type is either USER_PROCESS or LOGIN_PROCESS.
2870 Tue Jul 16 15:06:18 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2872         * sysdeps/unix/sysv/linux/netinet/in.h: Base on <linux/in.h> to
2873         avoid duplicate declarations.
2875 Sun Jul 14 19:08:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2877         * manual/maint.texi (Supported Configurations): Add alpha-gnu-linux
2878         and alpha-gnu-linuxecoff targets.
2880 Fri Jul 12 16:58:44 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2882         * sysdeps/unix/sysv/linux/netinet/in.h: Declare bindresvport().
2884 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2886         * resolv/res_send.c (res_send): Declare FROMLEN as size_t instead
2887         of int.
2889         * resolv/res_comp.c (res_hnok): Use empty statement in place
2890         of NULL (which generates a "useless expression" warning in
2891         gcc).
2893 Wed Jul 17 23:56:35 1996  Roland McGrath  <roland@baalperazim.frob.com>
2895         * sysdeps/mach/hurd/Makefile ($(common-objpfx)errnos.d): Replace ../
2896         with $(..) in output.
2898 Wed Jul 17 21:53:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2900         * elf/Makefile (dl-routines): Add dl-cache.
2901         * elf/dl-cache.c: New file.
2902         * elf/dl-load.c (_dl_map_object): Check cache before default path.
2904 Wed Jul 17 20:41:30 1996  Ulrich Drepper  <drepper@cygnus.com>
2906         * stdio-common/vfscanf.c: Major change.  Now read character
2907         from stream only if needed.  Before it was read after the
2908         previous character was used.
2909         Bug reported by Martin Goik <goma0002@FH-Karlsruhe.DE>
2911         * stdio-common/tstscanf.c: Change test program so that return
2912         value is != 0 if one test failed.
2914 Wed Jul 17 17:08:48 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2916         * sysdeps/m68k/Makefile (crypt): Variable removed.
2917         * sysdeps/sparc/Makefile: Likewise.
2919         * version.h (VERSION): Update to 1.93.
2921         * Makerules ($(libdir)/libc.so): Depend on
2922         $(common-objpfx)libcrypt.so$(libcrypt.so-version).
2924         * crypt/nocrypt.c: New file.
2925         * Makefile (subdirs): Add crypt.
2926         * crypt/Makefile: New file.
2928         * Makerules (soversions.mk): Move this target, include of it, and
2929         include of version.mk to ...
2930         * Makeconfig: ... here.
2931         (soversions.mk): Depend on Makeconfig instead of Makerules.
2933         * shlib-versions (*-*-*): Set libcrypt=0.
2935 Wed Jul 17 11:29:26 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2937         * stdio/linewrap.c (lwupdate): Fix boundary condition where a
2938         word extends right up to rmargin.
2940         * stdio/linewrap.c (lwupdate): When we've done a word wrap and
2941         output the wrap margin, set point_col to wmargin.
2942         Use negative point_col to deal with a wmargin of 0.
2943         (line_wrap_point): Return 0 for a negative point_col.
2944         (line_wrap_stream): Make wmargin ssize_t.
2945         * stdio/linewrap.h (struct line_wrap_data): Make wmargin &
2946         point_col ssize_t.
2947         (line_wrap_stream): Make wmargin ssize_t.
2948         (line_wrap_point): Return 0 for a negative point_col.
2950 Wed Jul 17 02:43:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2952         * shlib-versions (*-*-gnu*): Set libc=0.0
2954 Tue Jul 16 01:52:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2956         * sysdeps/m68k/dl-machine.h: Follow Jul 14 change in
2957         sysdeps/i386/dl-machine.h.
2959 Tue Jul 16 00:18:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2961         * stdio/linewrap.c (__line_wrap_update): Add hackery from flshfp
2962         to fiddle __put_limit in conjunction with __linebuf_active.
2964 Tue Jul 16 00:14:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2966         * sysdeps/unix/inet/syscalls.list (connect, send): Add underscores
2967         to the strong name, not the file name.
2969 Tue Jul 16 16:43:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2971         * csu/initfini.c: More magic.  Detect if .end is produced and put it
2972         in the output iff the compiler does.
2974         * elf/dl-lookup.c (_dl_lookup_symbol): Avoid sizeof dynamic auto array
2975         because that is broken on alpha.
2977         * sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map
2978         call as in first.
2980         * Makerules (make-link): Install the new link with atomic mv -f in
2981         case ln itself requires the library being installed.
2983 Tue Jul 16 00:31:31 1996  Richard Henderson  <rth@tamu.edu>
2985         * sysdeps/alpha/dl-machine.h: Mirror Roland's changes to
2986         i386/dl-machine.h of 960713.
2988         * sysdeps/generic/dl-sysdep.c:  Include <sys/mman.h>.
2989         (_dl_sysdep_read_whole_file): Fix result variable declaration.
2991 Tue Jul 16 00:53:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2993         * sysdeps/mach/hurd/uname.c: Call __gethostname to fill in the
2994         `nodename' member.
2996 Mon Jul 15 17:23:53 1996  Ulrich Drepper  <drepper@cygnus.com>
2998         * stdio-common/vfprintf.c (vfprintf): Call parse_one_spec
2999         with pointer to local variable instead of NULL.
3001 1996-07-15  Paul Eggert  <eggert@twinsun.com>
3003         * time/strftime.c (strftime): Don't pass empty macro argument to `add'.
3005 Sat Jul 13 09:53:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3007         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove names
3008         that are already added by other means.
3010         * sysdeps/unix/sysv/linux/syscalls.list: Add more EXTRA's in the
3011         caller column to get those syscalls added automagically.
3013 Mon Jul 15 12:24:54 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3015         * login/logout.c (logout): Initialize DATA to a state that will
3016         make setutent_r happy.
3018 Sun Jul 14 01:51:39 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3020         * elf/rtld.c (dl_main) [ELF_MACHINE_DEBUG_SETUP]: Use this macro
3021         instead of setting the DT_DEBUG pointer.
3023         * csu/initfini.c (_init, _fini): Generate .end directives after
3024         standalone prologues and filter them out from epilogues.
3026         * Makeconfig (rtld-installed-name): Set to ld.so.1.
3027         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): Variable
3028         removed.
3030         * manual/Makefile (glibc-targets): Remove subdir_ from elts.
3032         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_read_whole_file): New fn.
3034         * MakeTAGS (extract): Pass --add-comments=TRANS.
3035         * sysdeps/gnu/errlist.awk: Write comments into the output with the
3036         descriptive paragraphs from the manual preceded by TRANS.
3038         * elf/rtld.c (RESOLVE): Use the dl's load address, not a constant zero!
3039         (_dl_start): Move RESOLVE defn inside this function and #include
3040         "dynamic-link.h" a second time there.
3041         [RTLD_START]: Move use of this after _dl_start function.
3043         * elf/dl-reloc.c: Include "dynamic-link.h" at file scope.
3045         * elf/rtld.c: Include <string.h>.
3047         * elf/dynamic-link.h (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA,
3048         ELF_DYNAMIC_RELOCATE): No longer take RESOLVE argument.
3049         Conditionalize defns on [RESOLVE].
3050         * elf/do-rel.h (elf_dynamic_do_rel): Likewise.
3051         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3052         Instead use RESOLVE macro with same args.
3053         (elf_machine_rel): Conditionalize defn on [RESOLVE].
3054         * elf/dl-reloc.c (RESOLVE): New macro, define before including
3055         "dynamic-link.h".  It replaces `resolve' local function.
3056         * elf/dl-runtime.c: Likewise.
3057         * elf/rtld.c: Likewise.
3059         * elf/dl-deps.c (_dl_map_object_deps): Start TAILP at last preload.
3061         * elf/dl-open.c (_dl_open): Force an indirect call for
3062         _dl_relocate_object so there is no chance a PLT fixup will be done
3063         and clobber _dl_global_scope before our call happens.
3065         * sysdeps/i386/fpu/__math.h (tan): Correct output constraint from =u
3066         to =t; must operate on top of fp reg stack, not second from top.
3067         Correct input constraint to 0 from t; must be explicit when input and
3068         output are the same register.
3069         (floor): Use __volatile instead of volatile.
3070         (ceil): Likewise.
3072         * manual/Makefile ($(objpfx)stamp%-$(subdir)): Separate rule from
3073         other targets.
3075 Sat Jul 13 23:50:17 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3077         * manual/Makefile (lib): New phony target.  Depend on stamp files.
3078         ($(objpfx)stamp%-$(subdir)): New rule to create them when necessary.
3080 1996-07-13  Paul Eggert  <eggert@twinsun.com>
3082         * time/strftime.c (strftime): Use space padding for %e, %k, %l,
3083         to match Emacs format-time-string specification.
3084         (DO_NUMBER_SPACEPAD): Renamed from DO_NUMBER_NOPAD.
3086 Sat Jul 13 20:17:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3088         * elf/dl-deps.c (_dl_map_object_deps): Take new args PRELOADS and
3089         NPRELOADS, vector of `struct link_map *'s; add them to the searchlist
3090         between MAP and its deps.
3091         * elf/link.h: Fix decl.
3092         * elf/rtld.c (dl_main): If not secure, parse LD_PRELOAD for
3093         colon-separated list of names, map those and pass vector of ptrs as
3094         PRELOADS list to _dl_map_object_deps.
3095         * elf/dl-runtime.c (_dl_object_relocation_scope): Pass new args to
3096         _dl_map_object_deps with empty preload list.
3097         * elf/dl-open.c (_dl_open): Likewise.
3099         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_open_zero_fill): Function
3100         removed.
3101         (__mmap): Pass MACH_PORT_NULL for memobj port when (flags & MAP_ANON).
3102         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_open_zero_fill):
3103         Conditionalize defn on [! MAP_ANON].
3104         * elf/dl-minimal.c (malloc): Conditionalize use of _dl_zerofd
3105         on [! MAP_ANON].
3106         * elf/rtld.c (dl_main): Likewise.
3107         * elf/dl-load.c (_dl_zerofd): Conditionalize defn on [! MAP_ANON].
3108         (_dl_map_object_from_fd): Conditionalize initialization of _dl_zerofd.
3110         * elf/dl-fini.c (_dl_fini): Skip finalizer for executable itself.
3112 Sat Jul 13 02:47:53 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3114         * stdlib/random.c (__random): Declare as int32_t to be in sync
3115         with declaration.
3117         * socket/Makefile (headers): Add socketbits.h.
3119         * misc/mntent.c (endmntent): Allow for NULL stream.  SunOS does
3120         it that way.
3122         * grp/initgroups.c (initgroups): Add groups that user is a member
3123         of, not the ones he is _not_ a member of.
3125         * nss/nsswitch.c (known_compare): Make known_compare() a static
3126         instead of a local function.  The latter are difficult to debug
3127         and slow to execute on certain platforms.
3129         * sysdeps/posix/ttyname_r.c (ttyname_r): Use sizeof (dev) - 1 in
3130         place of sizeof (dev).  The size of a literal string includes the
3131         NUL byte.
3133         * sysdeps/unix/getlogin.c (getlogin): Initialize ut_fd with -1.
3135 Thu Jul 11 16:59:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3137         * misc/mntent.c (addmntent): Seek to end of file before writing
3138         entry.  Return 1 on error, not -1.
3140 Tue Jul  9 19:08:05 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3142         * sysdeps/unix/sysv/linux/syscalls.list: Mark bdflush as EXTRA
3143         syscall.
3145 Fri Jul  5 18:44:55 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3147         * sysdeps/unix/sysv/linux/alpha/ioperm.c (port_to_cpu_addr): Size
3148         shift amount for Jensen must be 5 not 4.
3150 Sat Jul 13 20:04:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3152         * socket/sys/socket.h (struct osockaddr): New type.
3154 Sat Jul 13 03:50:53 1996  Ulrich Drepper  <drepper@cygnus.com>
3156         * misc/Makefile (routines): Add qefgcvt and qefgcvt_r.
3157         * misc/efgcvt.c, misc/efgcvt_r.c: Change code so that the `double'
3158         and `long double' versions can be generated.
3159         * misc/qefgcvt.c, misc/qefgcvt_r.c: New files.  Define macros
3160         so that included efgcvt{,_r}.c file generate `long double'
3161         versions.
3162         * stdlib/stdlib.h: Add prototypes for q[efg]cvt() and q[ef]cvt_r()
3163         functions.
3165         * manual/startup.texi: Document new getsubopt function.
3166         * manual/examples/subopt.c: New example program for documenting
3167         getsubopt function.
3169 Fri Jul 12 23:58:37 1996  Ulrich Drepper  <drepper@cygnus.com>
3171         * stdlib/Makefile (routines): Add getsubopt.
3172         * stdlib/stdlib.h: Add prototype for getsubopt.
3173         * stdlib/getsubopt.c: New file.  Implement getsubopt function
3174         to handle suboption parsing.
3176 Thu Jul 11 20:09:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3178         * inet/getnetent_r.c: Define NEED_H_ERRNO.
3179         * inet/getnetbynm_r.c: Likewise.
3180         * inet/getnetent.c: Likewise.
3181         * inet/getnetbyad_r.c: Likewise.
3182         * inet/getnetbyad.c: Likewise.
3183         * inet/getnetbynm.c: Likewise.
3185         * sysdeps/generic/pselect.c: Include <sys/time.h>.
3187         * misc/sys/select.h: Include <time.h> instead of <sys/time.h> for
3188         `struct timespec'.
3190         * math/Makefile (calls): Add s_frexp, s_ldexp.
3191         (routines): Remove them and &f from here.
3193         * sys/socket.h: New file, wrapper for socket/sys/socket.h.
3195         * nss/nss_files/files-service.c (getservbyname): Take second arg PROTO
3196         and check it.
3198         * nss/nss_files/files-XXX.c: Comment fix.
3200 Fri Jul 12 01:28:35 1996  Ulrich Drepper  <drepper@cygnus.com>
3202         * nss/getXXent_r.c (GETFUNC_NAME_STRING): Define with name
3203         of reentrant function.
3204         (setup): Pass additional argument with function name we are
3205         looking for.
3206         (SETFUNC_NAME, ENDFUNC_NAME, GETFUNC_NAME): Call setup with
3207         new argument {SET,END,GET}FUNC_NAME_STRING.
3209         * nss/getXXent.c (GETFUNC_NAME): RESULT must be static because
3210         we return a pointer.
3212 Thu Jul 11 18:20:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3214         * nss/nss_files/files-parse.c: Add comment about things to #define.
3216         * nss/nss_files/files-hosts.c (NEED_H_ERRNO): Define it.
3218         * nss/nss_files/files-parse.c (STRING_FIELD): Don't flag NUL before
3219         terminator char as an error.
3221         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set *H_ERRNOP, not h_errno.
3223 Thu Jul 11 03:21:10 1996  Ulrich Drepper  <drepper@cygnus.com>
3225         * catgets/gencat.c (write_out): Move code to determine new
3226         best size out of inner loop.
3228 Thu Jul 11 00:22:40 1996  Ulrich Drepper  <drepper@cygnus.com>
3230         * sysdeps/libm-ieee754/s_frexpl.c: New file.  `long double'
3231         implementation of frexp() function.
3232         * sysdeps/libm-ieee754/s_ldexpl.c: New file.  `long double'
3233         implementation of ldexp() function.
3235         * sysdeps/libm-i387/s_isnanl.c (isnanl): Mask explicit one
3236         out before or'ing.
3238 Wed Jul 10 05:24:40 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3240         * misc/mntent.c: Include <sys/types.h>.
3241         (endmntent): Return 1 one success, 0 on failure.
3242         (getmntent): Chop newline and ignore empty lines.
3244 Mon Jul  8 21:18:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3246         * sysdeps/m68k/dl-machine.h (RESOLVE): New macro, defined
3247         differently based on [RTLD_BOOTSTRAP].
3248         (elf_machine_rela): Use it instead of the fn ptr arg directly.
3250 Tue Jul  9 09:37:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3252         * posix/glob.h (__glob_opendir_hook, __glob_readdir_hook,
3253         __glob_closedir_hook): Remove decls.
3255         * sysdeps/generic/machine-gmon.h: Declare mcount_internal.
3257         * sysdeps/unix/inet/syscalls.list: Define __ names with weak aliases
3258         for send and connect syscalls.
3260         * socket/sys/socket.h: New file, taken from non-sysdep parts of
3261         linux/sys/socket.h; break sysdeps parts out into socketbits.h.
3262         Declare __ names for send and connect.
3263         * sysdeps/generic/socketbits.h: New file.
3264         * sysdeps/unix/sysv/linux/socketbits.h: New file.
3265         * sysdeps/unix/sysv/linux/sys/socket.h: File removed.
3266         * sysdeps/generic/sys/socket.h: File removed.
3268         * sysdeps/mach/hurd/connect.c: Define __ name and weak alias.
3269         * sysdeps/mach/hurd/send.c: Likewise.
3271         * sysdeps/mach/libc-lock.h: New file.
3272         * sysdeps/unix/readdir.c: Do locking.
3273         * sysdeps/unix/seekdir.c: Likewise.
3274         * sysdeps/unix/rewinddir.c:  Likewise.
3275         * sysdeps/unix/closedir.c: Likewise.
3276         * sysdeps/unix/bsd/telldir.c: Likewise.
3277         * sysdeps/mach/hurd/seekdir.c: Likewise.
3278         * sysdeps/mach/hurd/readdir.c: Likewise.
3279         * sysdeps/mach/hurd/closedir.c: Likewise.
3280         * sysdeps/mach/hurd/opendir.c: Initialize the lock.
3281         * sysdeps/unix/opendir.c: Likewise.
3282         * sysdeps/mach/hurd/dirstream.h: Include <libc-lock.h>.
3283         (struct __dirstream): Add lock member using __libc_lock_define.
3284         * sysdeps/unix/dirstream.h: Likewise.
3286         * sysdeps/stub/libc-lock.h (__libc_lock_fini): New macro.
3288         * stdlib/mbstowcs.c: Pass address of pointer to mbsrtowcs.
3290         * stdlib/wcstombs.c: Use wcsrtombs instead of mbsrtowcs.
3292 Thu Jul  4 01:34:04 1996  Ulrich Drepper  <drepper@cygnus.com>
3294         * locale/programs/stringtrans.c: Fix typo in copyright.
3296         * stdio-common/printf-prs.c: Add casts to prevent
3297         signed<->unsigned warnings.
3299         * stdio-common/printf-parse.h: Initialize state variable before
3300         calling mbrlen.
3301         * stdio-common/printf-prs.c: Don't initialize state variable here.
3302         * stdio-common/vfprintf.c: Don't initialize state variable.
3303         (vfprintf): While determining length of multibyte string don't
3304         try to be clever in determining characters to use for first
3305         call.
3307         Add real implementation of multibyte<->wide char conversion
3308         functions.  The functions always convert between the fixed wide
3309         char format (ISO 10646 in UCS4) and the UTF8 representation of
3310         this character set.  Conversion between the currently used
3311         8bit character set and ISO 10646 will not take place.  This is
3312         what iconv() is for.
3313         * wcsmbs/wchar.h (mbstate_t): Define as structure to replace
3314         dummy definition.
3315         Add optimized version of `mbrlen' function.
3316         * wcsmbs/btowc.c (btowc): Restrict range of legal characters
3317         to 0...0x7f.
3318         * wcsmbs/wctob.c (wctob): Restrict range of legal characters
3319         to 0..0x7f.
3320         * wcsmbs/mbrlen.c: Make mbrlen a weak alias of __mbrlen.
3321         This is needed in the wchar.h header.
3322         * wcsmbs/mbrtowc.c: Replace dummy implementation.  Convert UTF8
3323         encoded character to UCS4.
3324         * wcsmbs/mbsinit.c: Replace dummy implementation.  Test COUNT
3325         element of `mbstate_t' for initial state.
3326         * wcsmbs/mbsrtowcs.c: Replace dummy implementation.  Convert UTF8
3327         encoded string to UCS4 string.
3328         * wcsmbs/wcrtomb.c: Replace dummy implementation.  Convert UCS4
3329         character to UTF8 encoded form.
3330         * wcsmbs/wcsrtombs.c: Replace dummy implementation.  Convert UCS4
3331         encoded string to UTF8 encoded form.
3333 Tue Jul  9 06:19:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3335         * sysdeps/unix/sysv/linux/configure.in: Use version number in cache
3336         variable name, so new a libc with new requirements won't fail to
3337         notice an insufficient Linux version.
3339         * sysdeps/unix/sysv/linux/direntry.h: New file from David Mosberger.
3341         * sysdeps/unix/sysv/linux/configure.in: Check for Linux 2.0.1 headers,
3342         instead of 2.0 headers.
3344         * sysdeps/mach/hurd/Makefile (stamp-errnos): Uncomment CVS commit cmds.
3346         * sysdeps/gnu/errlist.awk: Undo mib's bogus changes.  The
3347         sysdeps/mach/hurd/errnos.awk bug fix was the only correct change.
3349         * sysdeps/generic/machine-gmon.h [NO_UNDERSCORES]: Declare _mcount
3350         before using it in lhs of weak_alias.
3352         * nss/getXXent_r.c (setup): New function, broken out of SETFUNC_NAME.
3353         Call __nss_lookup when not setting STARTP.
3354         (SETFUNC_NAME, ENDFUNC_NAME, REENTRANT_GETNAME): Call it to set up for
3355         function-calling loop.
3357 Tue Jul  9 00:14:52 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
3359         * sysdeps/mach/hurd/ioctls.h (MDMBUF, ECHO, TOSTOP, FLUSHO,
3360         PENDIN, NOFLSH): Undefine these at start if they are already
3361         defined to avoid collision with termbits.h.
3362         * sysdeps/generic/termbits.h (ECHO, TOSTOP, NOFLSH): Likewise.
3363         (MDMBUF, FLUSHO, PENDIN) [__USE_BSD]: Likewise.
3365 Mon Jul  8 13:37:40 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3367         * math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
3368         already defined to float, long double.  Use those macros for _Mdouble_
3369         defns when including mathcalls.h.
3370         * math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
3371         -D_Mlong_double_=double.
3373         Add more -lm functions to -lc because ldexp uses them.
3374         * math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
3375         (routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
3376         ldexp have both f and l code, and those have f though not l code.
3378 Mon Jul  8 13:10:50 1996  Michael I. Bushnell p/BSG  <mib@gnu.ai.mit.edu>
3380         * sysdeps/mach/hurd/errnos.awk: Skip entries where the
3381         error is 0.  The "placeholder" entries recently added to
3382         errno.texi convert to zero since `???/' is at the front of them.
3383         * sysdeps/gnu/errlist.awk (errnoh): Likewise.
3385         * sysdeps/stub/setdomain.c (setdomainname): Declare NAME parm
3386         __const to conform with unistd.h.
3388         * stdlib/stdlib.h (random): Declare return type to be int32_t.
3390         * string/argz-delete.c (argz_delete): Use memmove instead of
3391         memcpy for possibly overlapping strings.
3393 Mon Jul  8 02:14:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3395         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_alias): Use extern
3396         storage class.  GCC gives an error for non-extern data defns with the
3397         alias attribute.
3399 Mon Jul  8 01:37:34 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
3401         * string/argz-insert.c (__argz_insert): (__argz_insert): Use
3402         memmove instead of memcpy for possible overlapping strings.
3404 Mon Jul  8 00:11:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3406         * libc-symbols.h (weak_function): New macro.
3407         For GCC 2.7+ define as __attribute__ ((weak)).
3408         * elf/dl-minimal.c: Use weak_function as keyword in function defns
3409         instead of weak_symbol (NAME) after the defn.
3410         * stdlib/strtol.c: Likewise.
3411         * stdlib/strtod.c: Likewise.
3412         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3414         * sysdeps/alpha/dl-machine.h (elf_machine_rela) [RTLD_BOOTSTRAP]:
3415         If this is defined, don't declare _dl_rtld_map as weak, and
3416         don't check for MAP pointing to it.  RESOLVE is always null in this
3417         case, so test with #ifdef instead of if.
3419         * libc-symbols.h (symbol_set_declare): Use weak_extern instead of
3420         weak_symbol.
3421         * csu/initfini.c (_init): Likewise.
3422         * locale/setlocale.c (DEFINE_CATEGORY): Likewise.
3423         * misc/efgcvt_r.c: Likewise.
3424         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
3425         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
3427         * libc-symbols.h [ASSEMBLER] (weak_symbol): Macro removed.
3428         It was not used in any assembler code.
3429         (weak_symbol_asm): Renamed to weak_extern_asm.
3430         (weak_extern): New macro replaces weak_symbol for weak extern refs;
3431         define to weak_extern_asm for [!ASSEMBLER].
3433 Sun Jul  7 18:42:06 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3435         * libc-symbols.h [! ASSEMBLER] [HAVE_WEAK_SYMBOLS] (weak_symbol_asm,
3436         weak_alias_asm): New macros, renamed from weak_symbol/weak_alias;
3437         define those now as aliases.
3438         Change conditional to use __attribute__ syntax for GCC 2.7+, not 2.8+
3439         [GCC >= 2.7] [HAVE_WEAK_SYMBOLS] (weak_symbol): Do weak_symbol_asm
3440         after GCC weak attribute decl.
3442         * sysdeps/gnu/errlist.awk (BEGIN): Initialize associative array ALIAS,
3443         map EWOULDBLOCK->EAGAIN, EDEADLOCK->EDEADLK.
3444         (element printer): Check for elt in ALIAS, instead of special case
3445         for EWOULDBLOCK.
3447         * io/Makefile (headers): Add sys/vfs.h.
3448         * io/sys/vfs.h: New file.
3450         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Don't unlock the
3451         critical section lock before unlinking dying active resources.
3452         The unlock just before return is right (i.e. old code unlocked twice).
3454 Sun Jun  2 22:28:43 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3456         * stdio/linewrap.c (lwupdate): Update D->point_offs when done.
3457         Use memmove instead of memcpy where overlap is possible (not
3458         necessary using current implementation of memcpy, but...).
3459         (__line_wrap_update): Don't update D->point_offs (lwupdate does it).
3461 Fri May 31 11:48:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3463         * stdio/linewrap.c (lwupdate): New function, mostly was
3464         __line_wrap_update.  Use POINT_COL field instead of POINT.
3465         (__line_wrap_output): Use lwupdate.
3466         (__line_wrap_update): New function.
3467         (ensure_unwrapped, ensure_wrapped): New functions.
3468         (line_wrap_set_lmargin, line_wrap_set_rmargin,
3469         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
3471         * stdio/linewrap.h (struct line_wrap_data): Rename POINT field to
3472         POINT_COL. Add POINT_OFFS field.
3473         (__line_wrap_update): New decl.
3474         (line_wrap_set_lmargin, line_wrap_set_rmargin,
3475         line_wrap_set_wmargin, line_wrap_point): Use __line_wrap_update.
3477 Fri Jul  5 17:34:47 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3479         * login/logout.c (logout): Do nothing if getutline_r returns ESRCH.
3481         * login/pututline_r.c (pututline_r): Since we assign RESULT from
3482         lseek now, check that it's >= 0, not == 0.
3484 Wed Jul  3 13:28:04 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3486         * login/login.c (login): Make a copy of *UT, fill in various
3487         fields that we supply (ut_line, ut_type, ut_pid), and use the copy
3488         in place of UT.
3490         * login/getutline_r.c (getutline_r): When we return ESRCH, mark
3491         UTMP_DATA->ubuf invalid (by setting UTMP_DATA->loc_utmp to 0).
3493 Fri Jul  5 12:22:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3495         * hurd/hurdsig.c (_hurd_internal_post_signal): In case of handled
3496         signal during critical section doing interruptible RPC, if
3497         _hurdsig_abort_rpcs wants to change thread state, do thread_set_state
3498         before thread_resume.  If in critical section, pass 0 for SIGNO to
3499         _hurdsig_abort_rpcs so rpc is interrupted regardless of SA_RESTART.
3501         * extra-lib.mk: Fix typo in $(extra-libs-others) conditional.
3503         * sysdeps/unix/sysv/linux/sys/user.h: New file.
3504         * sysdeps/unix/sysv/linux/Dist: Add it.
3505         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add sys/user.h.
3507         * nss/nss_files/files-parse.c (parse_list): Set EOL from LINE if it
3508         points within DATA->linebuffer; otherwise use all of DATA->linebuffer
3509         itself, no need to skip past a NUL.
3511         * nss/nsswitch.h (known_function): Comment fix.
3512         * nss/nsswitch.c (nss_lookup_function): Rewritten using __tsearch
3513         directly.  Do the lookup and insertion with a single call, and fill in
3514         the tree node afterwards if new.
3515         (known_compare, nss_find_entry, nss_insert_entry): Functions removed.
3517         * misc/sys/select.h: #define __need_timespec before <sys/time.h> incl.
3518         (struct timeval): Add bodiless decl for scope.
3520         * time/time.h (struct timespec): Rename members from `ts_*' to `tv_*'.
3521         Move struct timespec defn outside [_TIME_H] so it can be got with
3522         #define __need_timespec.
3524         * time/sys/time.h (TIMEVAL_TO_TIMESPEC): Use `tv_*' instead of `ts_*'
3525         for `struct timespec' member names.
3526         (TIMESPEC_TO_TIMEVAL): Likewise.
3528         * nss/Makefile (extra-libs-others): New variable.
3530         * extra-lib.mk: Don't test for $($(lib)-no-lib-dep).  Instead match
3531         $(lib) in $(extra-libs-others).
3532         * sunrpc/Makefile (extra-libs-others): New variable.
3533         (librpcsvc-no-lib-dep): Variable removed.
3535         * elf/rtld.c: Define RTLD_BOOTSTRAP before #include "dynamic-link.h".
3536         * sysdeps/i386/dl-machine.h (elf_machine_rel): Remove weak decl for
3537         _dl_rtld_map.
3538         (RESOLVE): New macro, defined differently based on [RTLD_BOOTSTRAP].
3539         (elf_machine_rel): Use it instead of testing fn ptr arg at runtime.
3540         (elf_machine_rel: case R_386_32) [! RTLD_BOOTSTRAP]: Declare
3541         _dl_rtld_map weak only here.
3543         * posix/unistd.h [__USE_BSD]: Declare getdomainname, setdomainname.
3545 Thu Jul  4 05:21:59 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3547         * login/utmp.h: Fix typos.
3549         * misc/syslog.c (vsyslog): Use __send instead of send and
3550         __connect instead of connect to avoid name-space collisions (e.g.,
3551         with psgetty).
3553 Wed Jul  3 16:29:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3555         * nss/getXXbyYY_r.c (REENTRANT_NAME): Cast FCT in __nss_next call.
3557         * sysdeps/generic/sbrk.c: Always call __brk (0) to update __curbrk.
3559         * malloc/malloc-size.c (malloc_usable_size): Renamed from
3560         malloc_object_allocation_size.
3561         * malloc/malloc.h: Fix decl.
3563         * sys/select.h: New file, wrapper header.
3565         * posix/sys/types.h [__USE_BSD]: Include <sys/select.h>; remove
3566         fd_set, associated macros, and select decl.
3568         * sysdeps/posix/isfdtype.c: New file.
3570 Tue Jul  2 23:45:14 1996  Ulrich Drepper  <drepper@cygnus.com>
3572         The latest Japanese proposal for POSIX locales renames the
3573         CHARMAP keyword in locale definition files to CHARCONV.
3574         * locale/programs/ld-ctype.c, locale/programs/locales.h: Rename
3575         function ctype_is_charmap to ctype_is_charconv.
3576         * locale/programs/locfile-kw.gperf: Replace charmap keyword with
3577         charconv.
3578         * locale/programs/locfile-token.h: Add definition of token
3579         charconv.
3580         * locale/programs/locfile.c: Recognize charconv keyword.  Rename
3581         lables according to this.
3583         * locale/weight.h (get_weight): Cast constants to prevent
3584         warnings.
3586         * stdlib/strtod.c, stdlib/strtol.c, string/strcoll.c,
3587         string/strxfrm.c: Add some more casts to prevent signed<->unsigned
3588         warnings.
3590         New stuff described in P1003.1g.
3591         * misc/Makefile (headers): Add sys/select.h.
3592         (routines): Add pselect.
3593         * misc/sys/select.h: New file.  Declare select functions and
3594         needed data types and macros.
3595         * sysdeps/generic/pselect.c: New file.  Add generic implementation
3596         of pselect() function which uses select().
3598         * posix/getconf.c: Recognize new variables from P1003.1g.
3599         * posix/posix1_lim.h: Define _POSIX_FD_SETSIZE, _POSIX_QLIMIT,
3600         _POSIX_HIWAT, and _POSIX_UIO_MAXIOV.
3601         * posix/unistd.h: Add description of the P1003.1g variables.
3602         * sysdeps/generic/confname.h: Define _SC_* values for new
3603         variables.
3604         * sysdeps/posix/fpathconf.c (fpathconf): Add handling of
3605         _PC_SOCK_MAXBUF.
3606         * sysdeps/stub/fpathconf.c (fpathconf): Ditto.
3607         * sysdeps/posix/sysconf.c (sysconf): Add handling of new
3608         P1003.1g variables.
3609         * sysdeps/stub/sysconf.c (sysconf): Ditto.
3610         * sysdeps/unix/sysv/linux/posix_opt.h: Define _POSIX_POLL and
3611         _POSIX_SELECT since Linux has this.
3613         * socket/Makefile (routines): Add isfdtype.
3614         * sysdeps/generic/sys/socket.h: Add prototype for isfdtype.
3615         * sysdeps/stub/isfdtype.c: New file.  Stub implementation of
3616         isfdtype.
3618         * wcsmbs/wcrtomb.c (wcrtomb): Fix typo.
3620 Wed Jul  3 11:26:28 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3622         * elf/Makefile (LDFLAGS-dl.so): New variable.
3623         (libdl.so): Depend on eval.so.
3624         (distribute): Add eval.c.
3625         * elf/eval.c: New file.
3627         * time/strftime.c (strftime: do_number): Adjust P and I after sprintf
3628         in case it wrote fewer than MAXDIGITS chars.
3630         * stdio/fwrite.c (fwrite: fill_buffer): Separate flushing for last
3631         newline from flushing full buffer in loop, fix test so no fflush is
3632         done when last byte written exactly fills the buffer.
3634         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Depend on libc.so.
3636         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): Variable removed.
3637         (libc.so): Instead, give this deps on lib{mach,hurd}user.so.
3639         * elf/dl-debug.c (_dl_debug_initialize): Use LDBASE arg instead of
3640         extracting _dl_rtld_map.l_addr.
3642         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare _dl_rtld_map as
3643         weak.
3644         * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
3646         * shlib-versions (*-*-*): Set libnss_db=1.
3648 Tue Jul  2 10:44:37 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3650         * elf/rtld.c (dl_main): Set _dl_rtld_map's DT_DEBUG location too.
3652         * rpm/template (%build): Use @prefix@ instead of always /usr.
3653         Set up configparms only if @prefix@ is in fact /usr.
3654         * rpm/Makefile ($(config)): Substitute $(prefix) for @prefix@.
3656         * elf/Makefile: Add missing endif.
3658         * nss/nss_files/files-ethers.c (ntohost): Fix db key.
3660         * nss/nss_files/files-network.c: Pass empty for new DB_LOOKUP args.
3661         (DATABASE): Define this instead of DATAFILE.
3662         * nss/nss_files/files-hosts.c: Likewise.
3663         (hostbyname): Use LOOKUP_NAME macro.
3665         * nss/nss_db/db-XXX.c: New file.
3666         * nss/Makefile (services): Add db.
3667         (libnss_db-inhibit-o): New variable.
3668         (libnss_db-routines): New variable.
3669         (distribute): Append db-XXX.c.
3670         (libnss_db.so): Depend on libdb.so and libnss_files.so.
3671         ($(libnss_db-routines:%=$(objpfx)%.c)): New static pattern rule.
3673         * nss/nss_files/files-XXX.c (DB_LOOKUP): Add KEYSIZE and KEYPATTERN
3674         args, ignored.
3675         (DATAFILE): New macro.
3676         * nss/nss_files/files-parse.c (GENERIC): If undefined, define to
3677         "files-XXX.c".
3678         * nss/nss_files/files-rpc.c: Include GENERIC instead of "files-XXX.c".
3679         Pass db key args to DB_LOOKUP.
3680         (DATAFILE): Macro removed.
3681         (DATABASE): New macro replaces it, lacks "/etc/" prefix.
3682         * nss/nss_files/files-service.c: Likewise.
3683         * nss/nss_files/files-pwd.c: Likewise.
3684         * nss/nss_files/files-proto.c: Likewise.
3685         * nss/nss_files/files-grp.c: Likewise.
3686         * nss/nss_files/files-ethers.c: Likewise.
3688         * elf/linux-compat.c: File removed.
3689         * elf/Makefile (distribute): Remove linux-compat.c.
3690         (ld-linux.so.1): Remove target and associated variables.
3692         * sunrpc/xdr.c: Remove malloc decl.
3693         * sunrpc/portmap.c: Likewise.
3695         * sunrpc/svc_tcp.c (abort): Don't declare.  Instead define as macro
3696         casting abort to fn returning bool_t.
3698         * nss/nss_files/files-parse.c [EXTERN_PARSER]: Do an extern decl of
3699         the parser function.
3700         [EXTERN_PARSER] (LINE_PARSER): Define to empty.
3701         * nss/nss_files/files-pwd.c (EXTERN_PARSER): Define it.
3702         * nss/nss_files/files-grp.c: Likewise.
3704         * Makeconfig (BUILD_CC): If undefined, define to $(CC).
3706         * sunrpc/rpc/types.h: Include stdlib.h instead of declaring malloc.
3708         * Makeconfig (built-program-cmd): Use $(rtld-installed-name) in place
3709         of ld.so so lookups for that soname find it.
3711         * nss/Makefile (libnss_dns.so): Depend on libresolv.so.
3712         (resobjdir, LDLIBS-nss_dns.so): Variables removed.
3714         * pwd/fgetpwent.c: Don't include ../nss/nss_files/files-parse.c to
3715         define parse_line function.
3716         (parse_line): #define to _nss_files_parse_pwent and
3717         add extern decl for that.
3719         * nss/nss_files/files-XXX.c (internal_getent): Return
3720         NSS_STATUS_TRYAGAIN for ERANGE error.
3722         * sysdeps/i386/strtok.S (LreturnNULL): Save current state ptr instead
3723         of null, so next round returns null again instead of bombing.  Fix
3724         from drepper.
3726         * nss/nss_files/files-parse.c (LINE_PARSER): Take new first arg EOLSET.
3727         Remove ; after `ENTDATA_DECL (data)'.
3728         Truncate line at strpbrk (line, EOLSET "\n").
3729         (ENTDATA_DECL): Put ; at end.
3730         (MIDLINE_COMMENTS): Macro removed.
3731         * nss/nss_files/files-ethers.c: Pass new argument.
3732         * nss/nss_files/files-hosts.c: Likewise.
3733         * nss/nss_files/files-network.c: Likewise.
3734         * nss/nss_files/files-parse.c: Likewise.
3735         * nss/nss_files/files-proto.c: Likewise.
3736         * nss/nss_files/files-rpc.c: Likewise.
3737         * nss/nss_files/files-service.c: Likewise.
3738         * grp/fgetgrent.c: Likewise.
3739         * pwd/fgetpwent.c: Likewise.
3740         * nss/nss_files/files-pwd.c: Get parse_line with extern decl, since
3741         fgetpwent.c already defines it.
3742         * nss/nss_files/files-grp.c: Likewise.
3744         * elf/dl-load.c (_dl_map_object): Use any object with matching l_name
3745         as well as any matching with l_libname.  Fix DT_SONAME lookup to use
3746         string table properly.
3748         * elf/rtld.c (dl_main): Set _dl_rtld_map.l_name from _dl_argv[0] when
3749         invoked directly, and l_libname from that if PT_INTERP missing.
3750         Set l_name from l_libname only if not set from argv.
3752         * time/europe, time/northamerica: Updated from ADO 96i.
3754 Mon Jul  1 15:44:34 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3756         * stdio-common/tst-ungetc.c: Include unistd.h.
3758         * inet/Makefile (routines): Change getnetbypt to getnetbyad.
3760 Mon Jul  1 13:32:42 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3762         * hurd/report-wait.c (describe_number): Make I unsigned long.
3764         * login/login.c (login): Only Frob OLD->ut_type if getutline_r
3765         actually found any entry.
3767         * login/pututline_r.c (pututline_r): If not located after any
3768         entry don't use UTMP_DATA->ubuf, and seek to the end before adding.
3769         Lock the file before stating.
3771 Mon Jul  1 12:29:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3773         * nss/Makefile (databases): Change host to hosts.
3774         * nss/host-lookup.c: Renamed to nss/hosts-lookup.c.
3776         * nss/nsswitch.c (nss_parse_service_list): Use const for NAME.
3778         * nss/nss_files/files-parse.c (parse_list): Correct alignment fixup.
3780         * string/string.h (strndupa): Pass missing arg to strnlen.
3782         * inet/getnetbypt_r.c: Renamed to ...
3783         * inet/getnetbyad_r.c: this; fixed function name.
3784         * inet/getnetbypt.c: Renamed to ...
3785         * inet/getnetbyad.c: this; fixed function name.
3787 Sat Jun 29 01:08:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3789         * grp/getgrgid_r.c (LOOKUP_TYPE): Define to struct group, not
3790         struct passwd.
3792 Fri Jun 28 23:25:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3794         * login/login.c (login): Initialize DATA so that setutent_r will
3795         actually do something.
3797 Fri Jun 28 16:53:01 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3799         * resolv/res_hconf.c (strndup): Remove function.
3801         * nss/nsswitch.c (nss_lookup_function): Declare loadbase and ref
3802         using ElfW() instead of Elf32_*.
3804         * sysdeps/unix/sysv/linux/alpha/init-first.h,
3805         sysdeps/unix/sysv/linux/m68k/init-first.h,
3806         sysdeps/unix/sysv/linux/i386/init-first.h: New files.
3807         * sysdeps/unix/sysv/linux/init-first.c: Use platform-dependent
3808         init-first.h to make abstract machine dependent parts of
3809         initialization.
3811         * sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall
3812         error handling.  It's safer that way.
3814         * sysdeps/unix/alpha/sysdep.S: Make ldgp part of the prologue.
3815         Fix by Richard Henderson.
3817         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt): Fix
3818         typo/extraneous whitespace.
3820         * sunrpc/xdr.c (xdr_int, xdr_u_int): Use <limits.h> to test
3821         determine what integer sizes we're dealing with.
3823 Fri Jun 28 15:46:02 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
3825         * hurd/hurdsig.c (_hurd_internal_post_signal): In pending signal
3826         check for signal zero, repair logical sense of test by
3827         parenthesizing correctly.
3829         * hurd/hurdsig.c (_hurd_internal_post_signal): In
3830         check-for-pending signals code, release _hurd_siglock before
3831         jumping to deliver_pending.
3833 Thu Jun 27 04:04:27 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3835         * configure.in (config_machine): Make ELF the default even for
3836         Linux/Alpha unless a configuration of the form *-*-linux*ecoff
3837         is specified.
3839 Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3841         * nss/nss_files/files-hosts.c (ENTDATA): Define it.
3842         * nss/nss_files/files-parse.c (struct parser_data): Define entdata
3843         member only #ifdef ENTDATA.
3844         (ENTDATA_DECL): New macro.
3845         (LINE_PARSER): Use it for entdata decl.
3846         (parse_list): Find the space for LIST from DATA->linebuffer instead of
3847         from the input LINE, which might not be writable buffer space.
3848         (LINE_PARSER): Use `parser_stclass' in place of `static inline'.
3849         [ENTDATA] (parser_stclass): #define to `static inline'.
3850         [!ENDATA] (parser_stclass): #define to empty.
3851         [!ENTDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
3852         function is exported to -lnss_files users.
3854         * string/strndup.c: Add missing arg.
3856         * string/string.h (strndupa): Likewise.
3857         * string/strndup.c (strndup): Always terminate the string.
3859 Thu Jun 27 14:22:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3861         * stdio/Makefile (routines): Add vscanf.
3862         * stdio-common/Makefile (routines): Remove vscanf.
3863         * stdio-common/vscanf.c: Move to ...
3864         * stdio/vscanf.c: here.
3866         * rpm/Makefile (headers, install-lib, install-lib.so,
3867         versioned, install-bin, install-sbin, install-data,
3868         install-others): Add $(-VARIABLE).
3870 Fri Jun 28 02:41:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3872         * nss/Makefile (databases): New variable.
3873         (routines, libnss_files-routines): Use it.
3874         (subdir-dirs): Compute from $(services).
3876         * sysdeps/unix/sysv/linux/syscalls.list (create_module, delete_module,
3877         init_module, klogctl): Use EXTRA in the "caller" column so these get
3878         added to unix-extra-syscalls and thus compiled in misc.
3880         * string/Makefile (routines): Add strndup.
3881         * string/strndup.c: New file.
3882         * string/string.h: Declare strndup.
3883         (strndupa): New macro.
3885         * string/string.h: Declare __strdup.
3886         * string/strdup.c: Deansideclized.  Define __ name and weak alias.
3888         * string/string.h: Don't define memccpy as macro for [__OPTIMIZE__].
3890 Thu Jun 27 02:49:28 1996  Ulrich Drepper  <drepper@cygnus.com>
3892         * catgets/gencat.c: Add casts to avoid signed<->unsigned warnings.
3894         * grp/initgroups.c (initgroups): De-ansi-fy.
3895         Move declaration of NGROUPS and GROUPS outside #if so that
3896         the code compiles for NGROUPS_MAX != 0.
3898         * inet/Makefile (headers): Add netinet/ether.h and netinet/if_ether.h.
3899         (routines): Add ether_aton, ether_aton_r, ether_hton, ether_line,
3900         ether_ntoa, ether_ntoa_r, and ether_ntoh.
3901         * inet/ether_aton.c, inet/ether_aton_r.c, inet/ether_hton.c,
3902         inet/ether_line.c, inet/ether_ntoa.c, inet/ether_ntoa_r.c,
3903         inet/ether_ntoh.c: New files.  Implementation of functions to
3904         handle Ethernet address to host mapping.
3905         * inet/netinet/ether.h: New file.  Declare ether_* functions.
3906         * netinet/ether.h: Wrapper around inet/netinet/ether.h for glibc
3907         compilation.
3908         * nss/ethers-lookup.c: New file.  Lookup function for ethers database.
3909         * nss/Makefile (routines): Add ethers-lookup.
3910         (libnss_files-routines): Add files-ethers.
3912         * nss/getXXent_r.c: Don't define set*ent and end*ent function
3913         with _r suffix.
3915         * nss/nss_files/files-XXX.c (internal_endent): Don't reset
3916         KEEP_STREAM every time called.
3917         (_nss_files_end): Reset KEEP_STREAM here instead.
3918         (internal_getent): If STREAM == NULL try to open instead of
3919         signalling error.
3920         Use cast to prevent warning.
3921         Terminate read line in case the buffer is too small.
3923         * nss/nss_files/files-ethers.c: New file.  Implementation of
3924         Ethernet adress<->hostname lookup through files interface.
3926         * stdlib/mbstowcs.c: Define based on mbsrtowcs().
3927         * stdlib/mbtowc.c: Define based on mbrtowc().
3928         * stdlib/wcstombs.c: Define based on wcsrtombs().
3929         * stdlib/wctomb.c: Define based on wcrtomb().
3931         * sunrpc/xdr.c (xdr_u_int): Avoid bogus call to
3932         unexpected_sizes_in_xdr_u_int.
3934         * sysdeps/generic/netinet/if_ether.h: New file.  Generic declaration
3935         of `struct ether_addr'.
3936         * sysdeps/unix/sysv/linux/netinet/if_ether.h: New file.  Linux specific
3937         declaration of `struct ether_addr'.
3939         * wcsmbs/mbrtowc.c: Handle case where argument PS is NULL.
3940         * wcsmbs/mbsrtowcs.c: Ditto.
3941         * wcsmbs/wcrtomb.c: Ditto.
3942         * wcsmbs/wcsrtombs.c: Ditto.
3944         * wcsmbs/mbsinit.c: Prepare for PS being NULL.
3946 Wed Jun 26 13:19:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3948         * hurd/get-host.c <fcntl.h>: New include.
3949         * hurd/set-host.c <fcntl.h>: New include.
3950         (_hurd_set_host_config): Include NEW in args to dir_link.
3951         Return NWROTE, not NREAD.
3953         * sysdeps/mach/hurd/getcwd.c
3954         (_hurd_canonicalize_directory_name_internal): Don't deallocate
3955         DOTID & DOTDEVID until we're finished with them (we need to keep
3956         them at least until we've fetched the next level of id ports, so
3957         that mach will be able to use the same name if they're the same).
3958         Add inner_errlose: label, which deallocates DOTID & DOTDEVID and
3959         jumps to errlose, for those places where such cleanup is needed.
3961 Wed Jun 26 01:58:49 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
3963         * nss/nss_files/files-parse.c (parse_list): Count null in EOL calc.
3965         Move DB code into separate -ldb library.
3966         * db/Makefile (extra-libs): New variable, list libdb.
3967         (routines): Renamed to libdb-routines.
3968         * shlib-versions: Add libdb=2.
3970         * nss/network-lookup.c (DEFAULT_CONFIG): New macro.
3971         * nss/host-lookup.c (DEFAULT_CONFIG): New macro.
3973         * nss/nsswitch.c (nss_parse_service_list): Use __strncasecmp instead
3974         of strncasecmp.  Extend syntax to grok [!foo=bar].
3976         * sysdeps/generic/strncase.c: Define __strncasecmp with strncasecmp as
3977         weak alias.
3978         * string/string.h: Declare __strncasecmp.
3980         * nss/nsswitch.c (nss_parse_file): Call __getline, not getline.
3981         (service_alias): Variable removed.
3982         (nss_parse_service_list): New function, broken out of nss_getline.
3983         Remove alias conversion; we will just use symlinks.
3984         (__nss_database_lookup): Take new string arg DEFCONFIG.
3985         If no entry exists, make one with service list parsed from that.
3986         * nss/nsswitch.h: Update protocol for __nss_database_lookup.
3987         * nss/XXX-lookup.c (DEFAULT_CONFIG): New macro, set to 0 if undefined.
3988         (DB_LOOKUP_FCT): Pass it to _nss_database_lookup.
3990         * grp/initgroups.c: Rewritten using getgrent.  Handle unlimited group
3991         list size.
3993         * sunrpc/xdr.c (xdr_int): #if 0 out unresolved references in dead code.
3995 Wed Jun 26 01:56:50 1996  Ulrich Drepper  <drepper@cygnus.com>
3997         * locale/programs/locale.c (long_options): Short form of
3998         --version option is `-V'.
3999         (main): Recognize `-V' as option, not `-v'.
4000         Call `usage' instead of printing error message for illegal
4001         option.
4002         (usage): Document `-V'.
4004 Tue Jun 25 17:22:55 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4006         * sysdeps/mach/hurd/getcwd.c
4007         (_hurd_canonicalize_directory_name_internal): Initialize PARENT to
4008         THISDIR, and don't ever deallocate PARENT unless it's != THISDIR.
4010 Tue Jun 25 10:58:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4012         * inet/getrpcent.c: Fix macros.
4013         * inet/getrpcent_r.c: Fix macros.
4015         * elf/dlsym.c (dlsym): Search the global scope if HANDLE is null.
4017         * elf/dl-load.c (_dl_map_object_from_fd): Initialize L.
4019 Tue Jun 25 09:55:47 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
4021         * catgets/gencat.c (write_out): Use %Zu to print variables of type
4022         size_t.
4023         * resolv/res_debug.c (__p_rr): Print size_t variable as %lu and
4024         cast it to (unsigned long) to make it work both on 32 and 64
4025         bit architectures.
4027 Sat Jun 22 13:05:25 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4029         * locale/Makefile (distribute): Add `programs/' prefix to all
4030         files in that directory.
4032         * Makerules (distinfo-vars): Assign subdir directly so that `ifdef
4033         subdir' works.
4035         * MakeTAGS (sources, headers): Make them simply expanded variables
4036         so that all-dist is expanded before it is changed.
4038 Tue Jun 25 02:59:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4040         * Make-dist (dist): Don't depend on crypt tar file.  Remove that rule.
4041         * Makefile (subdirs): Remove crypt.
4042         * crypt: Directory removed.  It will be made an independent library
4043         distribution.
4045         * Makefile (distribute): Add rpm/{Makefile,teplate,rpmrc}.
4047         * inet/getrpcent_r.c (DATABASE_NAME): New macro.
4049         * inet/getrpcbynumber.c (BUFLEN): New macro.
4051         * configure.in (--no-whole-archive check): Remove backslashes in cmd.
4053         * Makefile (headers): Add libc-lock.h.
4054         * sysdeps/stub/libc-lock.h: New file.
4056         * inet/getrpcbynumber.c: Remove _r typo.
4058         * elf/dl-load.c (_dl_map_object): Fix typo in last change.
4060         * nss/nss_files/files-parse.c (parse_list): Reset ELT for elements
4061         after the first!
4063         * nss/nsswitch.c (__nss_database_lookup): If nsswitch.conf is missing
4064         or doesn't mention DATABASE, use an internal default equivalent to
4065         "DATABASE: compat [NOTFOUND=return] dns [NOTFOUND=return] files".
4066         (nss_lookup_function): Call nss_new_service as needed.
4067         (nss_parse_file): Don't bother calling nss_new_service here.
4069         * grp/fgetgrent.c (LINE_PARSER): Pass zero SWALLOW arg for fields.
4070         * pwd/fgetpwent.c: Likewise.
4072         * malloc/malloc.h: Declare malloc_object_allocated_size, malloc_walk.
4073         * malloc/Makefile (dist-routines): Add malloc-size, malloc-walk.
4074         * malloc/malloc-size.c: New file.
4075         * malloc/malloc-walk.c: New file.
4077         * malloc/malloc-find.c (malloc_find_object_address): Return null if
4078         PTR is outside the heap.
4080         * elf/dl-load.c (_dl_map_object): If the requested name matches the
4081         soname of a loaded object, use that object.
4083 Mon Jun 24 19:57:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4085         * Makefile (subdirs): Add nss.
4087         * inet/Makefile (routines): Add getrpcent, getrpcbyname,
4088         getrpcbynumber, getrpcent_r, getrpcbyname_r, getrpcbynumber_r.
4089         * inet/getrpcbynumber_r.c: New file.
4090         * inet/getrpcbynumber.c: New file.
4091         * inet/getrpcbyname.c: New file.
4092         * inet/getrpcbyname_r.c: New file.
4093         * inet/getrpcent_r.c: New file.
4094         * inet/getrpcent.c: New file.
4095         * nss/rpc-lookup.c: New file.
4096         * nss/nss_files/files-rpc.c: New file.
4097         * nss/Makefile (routines): Add rpc-lookup.
4098         (libnss_files-routines): Add files-rpc.
4099         * sunrpc/Makefile (routines): Remove getrpcent.
4100         * sunrpc/getrpcent.c: File removed.
4102         * nss/getXXent_r.c (REENTRANT_GETNAME): Clear NO_MORE when NIP is
4103         non-null on entry.
4105         * Makeconfig (rpath-link): Add $(nssobjdir).
4106         (nssobjdir): New variable.
4108         * Makerules: Move shared library building before objects rules, so
4109         versions are known before extra-lib.mk gets included.
4110         * extra-lib.mk (lib-noranlib): Depend on the shared object too.
4112         * pwd/getpwuid.c: Rewritten using nss.
4113         * pwd/getpwnam.c: Likewise.
4114         * pwd/getpwent.c: Likewise.
4115         * grp/getgrnam.c: Likewise.
4116         * grp/getgrgid.c: Likewise.
4117         * grp/getgrent.c: Likewise.
4118         * pwd/Makefile (routines): Add getpwent_r, getpwnam_r, getpwuid_r.
4119         * pwd/getpwent_r.c: New file.
4120         * pwd/getpwnam_r.c: New file.
4121         * pwd/getpwuid_r.c: New file.
4122         * grp/Makefile (routines): Add getgrent_r, getgrgid_r, getgrnam_r.
4123         * grp/getgrnam_r.c: New file.
4124         * grp/getgrgid_r.c: New file.
4125         * grp/getgrent_r.c: New file.
4126         * grp/Makefile (routines): Remove grpopen, grpread.
4127         * pwd/Makefile (routines): Remove pwdopen, pwdread.
4128         * grp/grpopen.c, grp/grpread.c, pwd/pwdopen.c, pwd/pwdread.c: Removed.
4130         * pwd/fgetpwent.c: Rewritten using files-parse.c.
4131         * grp/fgetgrent.c: Likewise.
4133         * nss/Makefile (routines): Add grp-lookup and pwd-lookup.
4134         * nss/pwd-lookup.c, nss/grp-lookup.c: New files.
4135         * nss/nss_files/files-grp.c: New file.
4136         * nss/nss_files/files-pwd.c: New file.
4138         * nss/Makefile (subdir-dirs): New variable; use it in vpath.
4140         * nss/nss_files/files-parse.c: New file.
4141         * nss/nss_files/files-XXX.c: New file.
4142         * nss/nss_files/files-hosts.c, nss/nss_files/files-proto.c,
4143         nss/nss_files/files-service.c, nss/nss_files/files-network.c:
4144         Rewritten using them.
4146         * nss/Makefile (libnss_files-routines): Remove files-host.
4147         Add files-hosts, files-grp, files-pwd.
4149         * nss/nss_dns/dns-network.c: Don't include <pthread.h>.
4151 Mon Jun 24 22:39:12 1996  Richard Henderson  <rth@tamu.edu>
4153         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE):
4154         A .plt entry now loads the .rela.plt offset directly rather
4155         than making us calculate it.
4157 Sun Jun 23 15:24:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4159         * time/Makefile ($(installed-localtime-file) rule): Do
4160         $(make-target-directory) first.
4162         * resolv.h: Fix wrapper for resolv/resolv.h.
4164         * configure.in (ld --no-whole-archive check): Use AC_TRY_COMMAND.
4165         Compile dummy file and pass -nostdlib -nostartfiles so as not to
4166         require installed libraries.
4168         * shlib-versions (*-*-*): Set libresolv=2, libnss_files=1,
4169         libnss_dns=1.
4171 Sun Jun 23 19:42:05 1996  Ulrich Drepper  <drepper@cygnus.com>
4173         * resolv/Makefile (distribute): Remove res_hconf.h; add mapv4v6addr.h
4174         and mapv4v6hostent.h.
4175         (routines): Move res* and gethnamaddr into libresolv-routines.
4176         (libresolv-routines): New variable, put them there.
4177         (extra-libs): New variable, list libresolv.
4178         (CPPFLAGS): Add -D for get*by* to res_get*by*.
4180         * resolv/netdb.h (_PATH_NSSWITCH_CONF): New macro.
4182         * inet/herrno.c: New file.
4184         * resolv/res_init.c: Remove res_hconf calls.
4186         * nss/Makefile, nss/XXX-lookup.c, nss/file-lookup.c,
4187         nss/getXXbyYY.c, nss/getXXbyYY_r.c, nss/getXXent.c,
4188         nss/getXXent_r.c, nss/host-lookup.c, nss/network-lookup.c,
4189         nss/nsswitch.c, nss/nsswitch.h, nss/proto-lookup.c,
4190         nss/service-lookup.c: New files.  Implementation of name
4191         service switch, following the approach in Solaris.
4192         Interface specification and general structure inspired by Peter
4193         Eriksson <pen@lysator.liu.se>.
4194         * nss/nss_files/files-host.c, nss/nss_files/files-network.c,
4195         nss/nss_files/files-proto.c, nss/nss_files/files-service.c:
4196         Implementation of libnss_files.so module for file based databases
4197         in NSS service.
4198         * nss/nss_dns/dns-host.c, nss/nss_dns/dns-network.c: Implementation
4199         if libnss_dns.so module for DNS name lookup in NSS service.
4201         * inet/getproto.c, inet/getprtent.c, inet/getprtname.c,
4202         inet/getservent.c, inet/getsrvbynm.c, inet/getsrvbypt.c:
4203         Changed to serve as interface to NSS.
4204         * inet/gethstbyad.c, inet/gethstbyad_r.c, inet/gethstbynm.c,
4205         inet/gethstbynm2.c, inet/gethstbynm2_r.c, inet/gethstbynm_r.c,
4206         inet/gethstent.c, inet/gethstent_r.c, inet/getnetbynm.c,
4207         inet/getnetbynm_r.c, inet/getnetbypt.c, inet/getnetbypt_r.c,
4208         inet/getnetent.c, inet/getnetent_r.c, inet/getproto_r.c,
4209         inet/getprtent_r.c, inet/getprtname_r.c, inet/getservent_r.c,
4210         inet/getsrvbynm_r.c, inet/getsrvbypt_r.c: New files.  Implement
4211         interfaces to NSS, including reentrant functions.
4213         * resolv/getnetbyaddr.c, resolv/getnetbyname.c, resolv/getnetent.c,
4214         resolv/sethostent.c: Removed:  Obsoleted by NSS.
4216         * resolv/mapv4v6addr.h, resolv/mapv4v6hostent.h: Extracted from
4217         gethnamaddr.c.  These private functions are now used in more
4218         than one file.
4220         * resolv/inet_pton.c, resolv/gethnamaddr.c: Updated to bind-4.9.4-T5B.
4222 Sat Jun 22 16:49:47 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4224         * rpm/Makefile ($(config)): Make sure the word list in the for
4225         loop is syntactically non-empty.
4227 Sat Jun 22 21:29:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4229         * Version 1.92 test release.
4231 Sat Jun 22 23:30:07 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4233         * sysdeps/unix/sysv/linux/syscalls.list (ksyslog_ctl): Rename
4234         to klogctl to match prototype in sys/klog.h.
4236         * sysdeps/posix/libc_fatal.c: Add include of <string.h>.
4237         * sysdeps/unix/sysv/linux/gethostid.c: Ditto.
4239         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal):
4240         Remove.  Code is now part of __getcwd again.  The old function
4241         never really worked for anything but THISDIR==".".
4243         * sysdeps/alpha/Makefile (CFLAGS-rtld.c): Add -mbuild-constants
4244         only when building ELF version of library.
4246         * libio/libioP.h (_IO_vscanf): Add prototype.
4248         * posix/unistd.h (syscall): Change sysno arg and return value
4249         to int long.
4251 Sat Jun 22 10:44:09 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4253         * version.h (VERSION): Updated to 1.92.
4255         * misc/Makefile (headers): Add ar.h.
4256         * misc/ar.h: New file.
4258         * config.make.in (BUILD_CC): New variable.
4259         * configure.in: Check for BUILD_CC if $host != $build.
4261         * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc].
4263         * Makerules [! objects] (subdir_lib): Depend on the stamp$o files.
4264         (stamp$o files): New targets, create them empty, no deps.
4266         * rpm/template (Source): New field.
4267         (%prep, %build, %install): New sections.
4268         (%files): Add %doc FAQ NEWS NOTES README.
4269         * rpm/rpmrc (builddir): Removed.
4271 Fri Jun 21 00:27:51 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4273         * elf/dl-load.c (_dl_map_object_from_fd): Fix mapping and l_phdr
4274         guessing to not assume p_vaddr of first load cmd is zero.
4276         * sysdeps/sparc/elf/start.S: New file.
4277         * sysdeps/sparc/dl-machine.h: New file.
4279         * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr
4280         only for ?s, not for *s.  Fix from Chet Ramey.
4282         Fixes thanks to Raja R Harinath <harinath@cs.umn.edu>:
4283         * sysdeps/unix/sysv/utmpbits.h: Define _HAVE_UT_{TYPE,ID,TV,HOST}.
4284         Use __{BEGIN,END}_DECLS.
4285         (_PATH_WTMP, _PATH_UTMP, _PATH_LASTLOG): New macros.
4286         * login/utmp.h (UTMP_FILE, UTMP_FILENAME, WTMP_FILE, WTMP_FILENAME):
4287         New macros, moved here from sysdeps/gnu/utmpbits.h.
4288         * sysdeps/generic/utmpbits.h (_HAVE_UT_HOST): Define it.
4289         * sysdeps/gnu/utmpbits.h (_HAVE_UT_HOST): Likewise.
4290         * login/logout.c: Use ut_host only #if _HAVE_UT_HOST.
4291         Use sizeof instead of UT_*SIZE.
4292         * login/logwtmp.c: Likewise.
4294         * misc/tsearch.c (tdelete): Define as weak alias to __tdelete.
4296         * version.c (banner): Add trailing newline.
4298         * login/utmp.h: Declare login_tty.
4300 Thu Jun 20 21:19:07 1996  Richard Henderson  <rth@tamu.edu>
4302         * sysdeps/alpha/dl-machine.h (elf_alpha_fix_plt):
4303         Changed to a 12-byte PLT entry to remove dependency on $gp.
4304         Take a new got_addr parameter.
4305         (elf_machine_rela): Pass the new parameter.
4306         (ELF_MACHINE_RUNTIME_TRAMPOLINE): Do arithmetic for 12-byte PLT.
4307         (RTLD_START): Do normal linkage with program entry.
4309 Thu Jun 20 12:18:21 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4311         * sysdeps/mach/hurd/brk.c (_hurd_brk): Initialize to 0.
4313         * hurd/getuids.c (getuids): New weak link to __getuids.
4315 Wed Jun 19 10:21:24 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4317         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry,
4318         __hurd_file_name_lookup, __hurd_file_name_split): Add & use LOOKUP
4319         argument.
4320         Rename nested function lookup to lookup_op.
4321         (__file_name_lookup, __file_name_lookup_under):
4322         Pass 0 for lookup arg to __hurd_file_name_lookup.
4323         (__file_name_split): Likewise for __hurd_file_name_split.
4324         * hurd/path-lookup.c (hurd_file_name_path_lookup): Add LOOKUP argument.
4325         Rename nested function lookup to scan_lookup.
4326         (file_name_path_lookup): Pass 0 for lookup arg to
4327         hurd_file_name_path_lookup.
4328         * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
4329         __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry:
4330         __hurd_file_name_split, hurd_file_name_split, hurd_file_name_lookup):
4331         Add LOOKUP argument.
4332         * sysdeps/mach/hurd/access.c (__access): Pass 0 lookup arg to
4333         __hurd_file_name_lookup.
4335 Mon Jun 17 19:09:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4337         * Make-dist (+sysdeps): Move wildcard inside loop to avoid consing
4338         up a huge list just to discard most of it.
4340         * configure.in (sysnames): Avoid fgrep by using the case shell
4341         builtin.
4343         * Makeconfig (config.status): Fix dependency on Implies files.
4345 Wed Jun 19 01:27:57 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
4347         * math/Makefile (distribute): Add ieee-math.c.
4349 Wed Jun 19 03:24:58 1996  Ulrich Drepper  <drepper@cygnus.com>
4351         * locale/codeset_name.c: New file.  Provide function for information
4352         about currently used character set.
4353         * locale/Makefile (routines): Add codeset_name.
4354         * locale/langinfo.h (_NL_CTYPE_CODESET_NAME): Add new constant.
4355         * locale/localeinfo.h: Change magic number because of incompatible
4356         change.
4357         * locale/C-ctype.c: Add initializer for new field `codeset_name'.
4358         * locale/programs/ld-ctype.c: Implement handling of `codeset_name'.
4360         * locale/programs/locfile.c: Don't depend in pre-2.0 Linux specific
4361         name `MAX_IOVEC'.  Instead use standard name `UIO_MAXIOV'.
4363         * locale/setlocale.c (setlocale): Initialize local variables to
4364         prevent warnings.
4366 Thu Jun 13 17:25:11 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4368         * sysdeps/generic/memcmp.c: Add prototype decls for internal fns.
4370         * locale/programs/locale.c: Include string.h.
4372         * sunrpc/xdr_stdio.c (xdrstdio_getlong), sunrpc/xdr_rec.c
4373         (xdrrec_getlong), sunrpc/xdr_mem.c (xdrmem_getlong): Make sure
4374         appropriate sign-extension is performed on machines with
4375         sizeof(long) > 4.
4377         * sunrpc/xdr.c (xdr_int, xdr_u_int): If sizeof(long)==8 and
4378         sizeof(int)<sizeof(long), we need to go through a temporary
4379         variable.
4381         * locale/programs/ld-numeric.c: Include <alloca.h>
4383         * libio/stdio.h (__libc_fatal): Add prototype.
4385         * libio/cleanup.c: Use __P() to declare prototype when __STDC__ is
4386         in efect.
4388         * libio/iopopen.c (read_or_write, parent_end, child_end): Declare
4389         volatile to avoid "might get clobbered by longjmp" warning.
4391         * features.h (__KERNEL_STRICT_NAMES): Define __KERNEL_STRICT_NAMES
4392         unless _LOOSE_KERNEL_NAMES is in effect (which, with high
4393         probability is a sure loser).
4394         * sysdeps/unix/sysv/linux/gnu/types.h (__KERNEL_STRICT_NAMES): Remove.
4396         * sysdeps/unix/bsd/osf/alpha/start.S (errno): Removed.
4397         * sysdeps/unix/sysv/linux/alpha/start.S: Ditto.
4399         * misc/paths.h (_PATH_MAN): Change from /usr/share/man to /usr/man
4400         to be Linux FSSTND compliant.
4402 Mon Jun 10 17:50:31 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4404         * sysdeps/unix/sysv/linux/alpha/pipe.S: Use PSEUDO.
4406         * sysdeps/unix/sysv/linux/alpha/sysdep.S,
4407         sysdeps/unix/sysv/linux/alpha/brk.S,
4408         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
4409         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
4410         sysdeps/unix/sysv/linux/alpha/llseek.S,
4411         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
4412         sysdeps/unix/sysv/linux/alpha/syscall.S: Rename syscall_error to
4413         __syscall_error to avoid intruding application name space.
4415         * sysdeps/unix/sysv/linux/alpha/sysdep.h: Rename __NR_get?id
4416         to SYS_get?id so that syscall stubs in sysdeps/unix define
4417         these syscalls in terms of getxpid/getxuid/getxgid.
4419         * sysdeps/unix/_exit.S, sysdeps/unix/getegid.S,
4420         sysdeps/unix/geteuid.S, sysdeps/unix/getppid.S,
4421         sysdeps/unix/execve.S, sysdeps/unix/fork.S,
4422         sysdeps/unix/syscall.S: Terminate syscall with PSEUDO_END.
4424         * sysdeps/unix/make-syscalls.sh, sysdeps/unix/sysdep.h
4425         (PSEUDO_END): Rename END() to PSEUDO_END().
4427         * sysdeps/unix/alpha/sysdep.h: Move error-handling code in PSEUDO
4428         to PSEUDO_END to improve branch-prediction.  Include .frame
4429         directive to make syscalls debugabble.
4430         (PSEUDO_END): New macro.
4432         * sysdeps/unix/alpha/sysdep.h, sysdeps/alpha/bb_init_func.S,
4433         sysdeps/unix/sysv/linux/alpha/brk.S: Use ldiq instead of ldi since
4434         latter is illegal under DEC Unix.
4436         * sysdeps/unix/alpha/sysdep.S: Renamed from
4437         sysdeps/unix/sysv/linux/alpha/sysdep.S.  This file works for OSF/1
4438         as well.
4439         * sysdeps/unix/bsd/osf/alpha/sysdep.S: Remove (note that the
4440         EWOULDBLOCK -> EAGAIN mapping was unnecessary since
4441         EWOULDBLOCK==EAGAIN under DEC Unix and Linux/Alpha).
4443         * sysdeps/alpha/divrem.h: Use retaddr instead of ra as the return
4444         address register in the .frame directive.
4446         * sysdeps/alpha/copysign.c: Remove.
4448         * sunrpc/rpc/types.h: Include <sys/param.h> and <netinet/in.h> to
4449         avoid RPC definitions of INADDR_LOOPBACK and/or MAXHOSTNAMELEN.
4451         * errno.h: Move __END_DECLS to correct place to make file
4452         compilable under c++.
4454         * dirent/dirent.h: Document _DIRENT_HAVE_D_OFF macro.  Define
4455         d_ino only if <direntry.h> hasn't defined d_fileno.
4457         * configure.in (HAVE_ASM_WEAKEXT_DIRECTIVE): Reverse order of
4458         arguments to weakext to make .weakext detection work on ECOFF systems.
4460         * FAQ: Add Linux/Alpha to list of supported platforms.  Mention
4461         that _validuser() has been replaced by __ivaliduser().
4463 Thu Jun  6 21:39:38 1996  David Mosberger-Tang  <davidm@azstarnet.com>
4465         * sysdeps/unix/bsd/sun/sunos4/tcsetattr.c (tcsetattr): Declare cmd
4466         as unsigned long, not as int (to avoid incorrect int->long
4467         promotion).
4471 See ChangeLog.5 for earlier changes.