Fri Apr 26 01:55:07 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[platform/upstream/glibc.git] / ChangeLog
1 Fri Apr 26 01:55:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2
3         * malloc/mcheck.c (mabort): Use __libc_fatal only #ifdef _LIBC.
4
5 Wed Apr 24 00:22:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
6
7         * stdio/internals.c (seek_to_target): Set errno if seek function
8         returns the wrong offset.
9
10         * wcsmbs/wcsrtombs.c [! EILSEQ] (EILSEQ): Define to EINVAL.
11         * wcsmbs/wcrtomb.c: Likewise.
12
13         * stdio-common/vfprintf.c: Include errno.h.
14
15 Tue Apr 23 21:09:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
16
17         * hurd/hurdsig.c (signal_allowed): For SIGIO/SIGURG, add a new
18         variable, LUCKY, to use instead of setting D to -1 (which fucks
19         things up).
20
21 Tue Apr 23 15:56:56 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
22
23         * config.h.in (HAVE_REGEX): New macro.
24
25         * sysdeps/unix/syscalls.list: Add statfs, fstatfs.
26         * io/Makefile (headers): Add sys/statfs.h, statfsbuf.h.
27         (routines): Add statfs, fstatfs.
28         * sysdeps/mach/hurd/statfs.c: New file.
29         * sysdeps/mach/hurd/fstatfs.c: New file.
30         * sysdeps/stub/fstatfs.c: New file.
31         * sysdeps/stub/statfs.c: New file.
32         * io/sys/statfs.h: New file.
33         * sysdeps/generic/statfsbuf.h: New file.
34         * sysdeps/unix/sysv/linux/statfsbuf.h: New file.
35
36 Tue Apr 23 00:06:47 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
37
38         * malloc/Makefile (gmalloc-routines): Add valloc back here.
39         (dist-routines): Remove it here.
40         * malloc/valloc.c [_MALLOC_INTERNAL && GMALLOC_INHIBIT_VALLOC]
41         (ELIDE_VALLOC): Define it.
42         [! ELIDE_VALLOC]: Make whole file conditional on this.
43         * malloc/malloc.h (valloc): Make decl conditional on
44         [!GMALLOC_INHIBIT_VALLOC] instead of [!emacs].
45
46 Mon Apr 22 00:02:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
47
48         * MakeTAGS: Include version.mk.
49         (po/SYS_libc.pot): Add missing / in sed s cmd.
50
51 Sat Apr 20 18:13:00 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
52
53         * Makerules (no-whole-archive): Test $(have-no-whole-archive), not
54         $(libc_cv_ld_no_whole_archive).
55
56 Sat Apr 20 17:07:17 1996  Ulrich Drepper  <drepper@cygnus.com>
57
58         * assert/assert.h, ctype/ctype.h, dirent/dirent.h, errno.h,
59         grp/grp.h, io/fcntl.h, io/sys/stat.h, io/utime.h, locale/locale.h,
60         math/math.h, misc/nlist.h, misc/sgtty.h, misc/sys/file.h,
61         misc/sys/ioctl.h, misc/sys/uio.h, posix/sys/times.h,
62         posix/sys/types.h, posix/sys/utsname.h, posix/sys/wait.h,
63         posix/tar.h, posix/wordexp.h, pwd/pwd.h, resource/sys/vlimit.h,
64         resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
65         stdio-common/printf.h, stdlib/alloca.h, stdlib/stdlib.h,
66         string/string.h, sysdeps/generic/sigaction.h,
67         sysdeps/generic/sigset.h, sysdeps/generic/sys/ptrace.h,
68         sysdeps/generic/sys/ptrace.h, sysdeps/unix/bsd/osf/sigaction.h,
69         sysdeps/unix/sysv/linux/sys/ptrace.h,
70         sysdeps/unix/sysv/minix/sigaction.h,
71         sysdeps/unix/sysv/sco3.2.4/sigaction.h,
72         sysdeps/unix/sysv/sysv4/sigaction.h,
73         sysdeps/unix/sysv/sysv4/sigset.h, termios/termios.h,
74         time/sys/time.h, time/time.h: Fix copyright comment.
75
76 Fri Apr 19 00:49:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
77
78         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If uids and gids are
79         not given in stack aux vector, fetch them with syscalls.
80
81         * stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
82         for nonmatching nonerror (instead of !MATCH).
83         (rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
84
85         * resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
86         unsigned long for variable NET2.
87
88         * time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
89
90 Tue Apr  9 14:37:31 1996  Ulrich Drepper  <drepper@cygnus.com>
91
92         * catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
93         catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
94         catgets/open_catalog.c: New files.  Implementation of XPG4
95         compliant catgets() function and needed tools.
96         * Makefile (subdirs): Add catgets.
97
98 Thu Apr 18 23:36:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
99
100         * math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
101
102 Wed Apr 10 20:48:43 1996  Ulrich Drepper  <drepper@cygnus.com>
103
104         * stdio-common/vfprintf.c: Correct some typos.
105
106         * sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
107         sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
108         __signgam.
109
110 Thu Apr 18 21:07:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
111
112         * Makerules (no-whole-archive): New variable.
113         (build-shlib): Use it.
114         * elf/Makefile (libdl.so): Use it.
115         * configure.in (libc_cv_ld_no_whole_archive): New check for
116         --no-whole-archive.
117         * config.make.in (have-no-whole-archive): New variable.
118
119         * stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
120         from 3 to 4.
121
122         * Make-dist: Include version.mk.
123         (version, release): Variables removed.
124         * Makeconfig (version.mk): New target.
125
126 Fri Apr 19 01:42:18 1996  Ulrich Drepper  <drepper@cygnus.com>
127
128         * locale/Makefile (headers): Add langinfo.h.
129         (CPPFLAGS): Remove -Iliblib.
130
131 Mon Apr 15 16:49:04 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
132
133         * malloc/memalign.c, malloc/malloc.h [__DJGPP__ == 1]: Elide memalign
134         function and its declaration.
135
136 Wed Apr 10 14:13:45 1996  Miles Bader  <miles@gnu.ai.mit.edu>
137
138         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Store
139         MACH_PORT_DEAD in the thread reply-port variable before destroying
140         the signal handler's reply port, to avoid infinite recursion.
141
142 Mon Apr  8 18:27:17 1996  Miles Bader  <miles@gnu.ai.mit.edu>
143
144         * sysdeps/mach/gettimeofday.c (__gettimeofday): Don't fail if the
145         user passes in TZ, just zero it (emacs passes in a dummy variable,
146         and rms says the hurd should be the one to change).
147
148 Sun Apr  7 10:37:30 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
149
150         * sysdeps/mach/hurd/fork.c: Don't leak send rights to the child's proc
151         port in the parent.
152
153 Fri Apr  5 17:43:41 1996  Miles Bader  <miles@gnu.ai.mit.edu>
154
155         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Store
156         MACH_PORT_DEAD in the thread reply-port variable before destroying
157         the signal handler's reply port to avoid infinite recursion.
158         * sysdeps/mach/hurd/mig-reply.c (__mig_dealloc_reply_port): Only
159         attempt to destroy PORT if it's a valid port name.
160
161 Wed Apr  3 17:10:44 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
162
163         * extra-lib.mk: Put libs in $(common-objpfx) instead of $(objpfx).
164         * Makerules ($(install-lib) rules): Find libs with $(common-objpfx)
165         instead of $(objpfx).
166
167 Tue Apr  2 21:27:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
168
169         * posix/glob.c (glob_pattern_p): Avoid scanning past eos if
170         the pattern ends with a backslash and quoting is enabled.
171         * posix/fnmatch.c (fnmatch): Likewise; return FNM_NOMATCH for such
172         patterns.
173
174 Mon Apr  1 13:34:55 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
175
176         * stdio-common/tst-printf.c (main): Add new test case.
177
178         * sysdeps/generic/setenv.c (unsetenv): Use old-style definition.
179
180 Mon Apr  1 11:39:10  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
181
182         * stdlib/strtod.c (STRTOD): Fix handling of American style FP
183         numbers.
184
185         * stdio-common/vfprintf.c (vfprintf): Don't increment format
186         string pointer twice after seeing `*'.
187
188 Sun Mar 31 17:31:54 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
189
190         * MakeTAGS (po/SYS_libc.pot): Prepend header processed from
191         po/header.pot.
192
193 Sun Mar 31 18:07:32 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
194
195         * locale/Makefile (others, install-bin): Compiling locale works
196         again.
197         (locale-modules): locale has no --dump option anymore.  Remove
198         ctypedump.
199
200         * locale/programs/config.h: Don't declare euidaccess.
201         Use #include_next to get libc's config.h.
202
203         * locale/programs/ctypedump.c: Not needed anymore.  Dump option
204         of locale is removed.
205
206         * locale/programs/locale.c: Adapt for new locale implementation.
207
208         * stdio-common/_itoa.h (_itoa_word): Define as inline function.
209         * stdio-common/_itoa.c (_itoa_lower_digits, _itoa_upper_digits):
210         Don't declare static because used in _itoa_word inline function.
211
212         * stdio-common/printf-parse.h: Prepare for use in wide-char
213         stdio implementation.
214         (find_spec): Take additional argument to work with mbrlen instead
215         of mblen.
216         (parse_one_spec): Ditto.
217
218         * stdio-common/printf-prs.c: Prepare for use in wide-char
219         stdio implementation.
220
221         * stdio-common/printf.h: Mark change for wide-char handling.
222         Changing it now would result in incompatibilities.
223
224         * stdio-common/vfprintf.c: New and fast implementation.
225
226         * wcsmbs/Makefile (routines): Remove pre-ISO C multibyte functions
227         mbsadvance, mbscat, mbschr, mbscmp, mbscpy, mbsdup, mbslen,
228         mbsncat, mbsncmp, mbsncpy, mbsrchr, mbstomb.
229         Change wcswcs to wcsstr.
230         Add wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset, btowc, wctob,
231         mbsinit, mbrlen, mbrtowc, wcrtomb, mbsrtowcs, wcsrtombs.
232
233         * wcsmbs/btowc.c, wcsmbs/mbrlen.c, wcsmbs/mbrtowc.c,
234         wcsmbs/mbsinit.c, wcsmbs/mbsrtowcs.c, wcsmbs/wchar.h,
235         wcsmbs/wcrtomb.c, wcsmbs/wcsrtombs.c, wcsmbs/wcsstr.c,
236         wcsmbs/wctob.c, wcsmbs/wmemchr.c, wcsmbs/wmemcmp.c,
237         wcsmbs/wmemcpy.c, wcsmbs/wmemmove.c, wcsmbs/wmemset.c: New
238         function according to ISO C amendment 1.
239         * wchar.h: Wrapper around "wcsmbs/wchar.h".
240
241         * wcsmbs/wcscat.c, wcsmbs/wcschr.c, wcsmbs/wcscmp.c,
242         wcsmbs/wcscpy.c, wcsmbs/wcscspn.c, wcsmbs/wcsdup.c,
243         wcsmbs/wcslen.c, wcsmbs/wcsncat.c, wcsmbs/wcsncmp.c,
244         wcsmbs/wcsncpy.c, wcsmbs/wcspbrk.c, wcsmbs/wcsrchr.c,
245         wcsmbs/wcsspn.c, wcsmbs/wcstok.c: Changed to conform with ISO C
246         amendment 1.
247
248         * wcsmbs/mbsadvance.c, wcsmbs/mbscat.c, wcsmbs/mbschr.c,
249         wcsmbs/mbscmp.c, wcsmbs/mbscpy.c, wcsmbs/mbsdup.c,
250         wcsmbs/mbslen.c, wcsmbs/mbsncat.c, wcsmbs/mbsncmp.c,
251         wcsmbs/mbsncpy.c, wcsmbs/mbsrchr.c, wcsmbs/mbstomb.c,
252         wcsmbs/mbstr.h, wcsmbs/wcstr.h, wcsmbs/wcswcs.c: Removed.
253         Implement functions from early drafts, not part of final standard.
254
255 Sun Mar 31 16:50:41 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
256
257         * setjmp/setjmp.h (jmp_buf): Change gratuitous struct tag name to
258         __jmp_bug_tag so its C++ implicit typedef does not conflict with the
259         __jmp_buf typedef.
260
261         * Makerules (BUILD_CFLAGS) [! objdir]: Use $(..)config.h when
262         compiling in the source directories.
263
264 Fri Mar 29 16:26:35 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
265
266         * sysdeps/libm-ieee754/w_gamma.c: Use signgam instead of __signgam.
267         * sysdeps/libm-ieee754/s_signgam.c: Undo last change.
268
269 Fri Mar 29 11:29:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
270
271         * sysdeps/libm-ieee754/s_signgam.c (signgam): Renamed to __signgam,
272         with weak alias signgam.
273
274 Thu Mar 28 18:32:34 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
275
276         * Makeconfig (+cflags, +gcc-nowarn): Use gcc flags unconditionally.
277
278 Thu Mar 28 14:22:51 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
279
280         * sunrpc/rpc_main.c (main): Call textdomain.
281
282         * MakeTAGS (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): Add
283         --no-location.
284         (all-pot): Replace $(subdirs) files with $P/subdirs.pot.
285         ($P/subdirs.pot): New target.
286         ($P/SYS_libc.pot): Add -n switch.
287
288         * locale/locale.h (LC_*): Values reordered to match Linux libc.
289
290         * sysdeps/mach/hurd/kill.c: If proc_pid2task gives us MACH_PORT_NULL
291         the process is a zombie; send no messages and return success.
292
293 Thu Mar 28 11:53:26 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
294
295         * wctype/cname-lookup.h: Find localeinfo.h in ../locale.
296         * wctype/wctype.c: Likewise.
297         * wctype/wctrans.c: Likewise.
298
299 Thu Mar 28 03:00:43 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
300
301         * locale/nl_langinfo.c (nl_langinfo): Use DATA->values instead of
302         DATA->strings.
303
304         * Makerules (BUILD_CFLAGS): Remove $(common-objpfx) from config.h.
305
306         * configure.in (.weakext check): Fix asm code to use .weakext instead
307         of .weak!  Fix bogus test calls.
308         * configure: Regenerated.
309
310 Thu Mar 28 03:25:10 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
311
312         * locale/programs/xmalloc.c: Test _LIBC as well as STDC_HEADERS.
313
314         * locale/programs/ld-collate.c (collate_finish): Use error_at_line
315         instead of error_with_loc.
316
317         * locale/weight.h: Use u_int32_t instead of u32_t.
318         * string/strxfrm.c: Likewise.
319
320         * string/strxfrm.c: Find weight.h in ../locale; don't #include
321         "localeinfo.h".
322         * string/strcoll.c: Likewise.
323
324         * intl/Makefile (copysrc): Add missing > in sed cmd.
325
326 Sat Mar 23 17:52:49 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
327
328         * Makeconfig: Rename Makefile variable nlsdir to i18ndir and
329         change value to $(datadir)/i18n.  `nls' is not an appropriate
330         name.
331
332         * Makefile (subdirs): Add new subdir wctype.
333
334         * ctype/ctype-info.c: Add new global variable __ctype_names
335         and initialize from _nl_C_LC_CTYPE.
336
337         * ctype/ctype.h: In P1003.3b/D11 `alnum' is a separate character
338         class.  Use bit 11.
339         [_ISbit]: Protect definition of bitmasks because they are also
340         used in wctype.h.
341
342         * libio/genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag
343         after successfully pushing back a character.
344
345         Fundamental changes in locale implementation.  Almost nothing
346         from the old code is used anymore.
347         * locale/charmap.c, locale/collate.c, locale/config.h,
348         locale/ctypedump.c, locale/hash.h, locale/keyword.gperf,
349         locale/keyword.h, locale/loadlocale.c, locale/locale-ctype.c,
350         locale/locale.c locale/localeconv.c, locale/localedef.c,
351         locale/localedef.h, locale/locfile-hash.c, locale/locfile-lex.c,
352         locale/locfile-parse.c, locale/messages.c, locale/monetary.c,
353         locale/numeric.c, locale/setlocale.c, locale/token.h,
354         locale/xmalloc.c: Removed.
355
356         * locale/Makefile: Update for new locale implementation with
357         program source code distributed in subdir.
358
359         * locale/categories.def, locale/iso-4217.def: Updated file
360         for new locale implementation.
361
362         * locale/langinfo.h: Updated for new locale implementation.
363         (ERA_D_T_FMT, ERA_T_FMT): New official values according to
364         P1003.2b/D11.
365         (_NL_COLLATE_NRULES, _NL_COLLATE_RULES, _NL_COLLATE_HASH_SIZE,
366         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_TABLE_EB,
367         _NL_COLLATE_TABLE_EL, _NL_COLLATE_UNDEFINED, _NL_COLLATE_EXTRA_EB,
368         _NL_COLLATE_EXTRA_EL, _NL_CTYPE_NAMES_EB, _NL_CTYPE_NAMES_EL,
369         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS, _NL_CTYPE_CLASS_NAMES,
370         _NL_CTYPE_MAP_NAMES, _NL_CTYPE_WIDTH): New internal values for
371         extended LC_CTYPE and LC_COLLATE implementation.
372
373         * locale/programs/simple-hash.c, locale/programs/simple-hash.h,
374         locale/programs/xmalloc.c, locale/programs/xstrdup.c: Helper functions
375         for locale related programs.
376
377         * locale/C-collate.c, locale/C-ctype.c,
378         locale/C-messages.c, locale/C-monetary.c,
379         locale/C-numeric.c, locale/C-time.c,
380         locale/lc-collate.c, locale/lc-ctype.c,
381         locale/lc-messages.c, locale/lc-monetary.c,
382         locale/lc-numeric.c, locale/lc-time.c: New implementation of locale
383         functions, and new generated "C" locale data.
384
385         * locale/loadlocale.c: Now handles word fields in locale binary
386         automatically by changing the endianess if necessary.
387
388         * locale/localeinfo.h (LIMAGIC): Changed magic number because
389         of incompatible changes.
390         (locale_data): Changed definition to allow word as a value type.
391         (coll_sort_rule): Values for collation sorting mode.
392         (_NL_CURRENT_WORD): New macro to access word value of locale entry.
393         (__collate_table, __collate_extra): Declare new global variables
394         for collation tables.
395
396         * locale/programs/charmap-kw.gperf, locale/programs/charmap-kw.h,
397         locale/programs/charmap.c, locale/programs/charset.c,
398         locale/programs/charset.h, locale/programs/config.h,
399         locale/programs/ctypedump.c, locale/programs/ld-collate.c,
400         locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
401         locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
402         locale/programs/ld-time.c, locale/programs/linereader.c,
403         locale/programs/linereader.h, locale/programs/locale.c,
404         locale/programs/localedef.c, locale/programs/locales.h,
405         locale/programs/locfile-kw.gperf, locale/programs/locfile-kw.h,
406         locale/programs/locfile-token.h, locale/programs/locfile.c,
407         locale/programs/locfile.h, locale/programs/stringtrans.c,
408         locale/programs/stringtrans.h: Implementation of locale related
409         programs.
410
411         * locale/weight.h: Functions to access collation tables.
412
413         * posix/unistd.h: Define _POSIX2_LOCALEDEF.
414
415         * stdio-common/printf_fp.c: Fix bug with printing certain numbers
416         < 10^-1.  Reported by Bill Metzenthen.
417
418         * stdio-common/tfformat.c: Add new test for above bug.
419
420         * string/strcoll.c, string/strxfrm.c: Real implementation of
421         string collation according to ISO C.
422
423         * wctype/Makefile, wctype/cname-lookup.h, wctype/iswctype.c,
424         wctype/test_wctype.c, wctype/towctrans.c, wctype/wcfuncs.c,
425         wctype/wctrans.c, wctype/wctype.c, wctype/wctype.h: New files.
426         Implementation of wide character classes and mapping.
427
428 Wed Mar 27 14:52:11 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
429
430         * elf/rtld.c (dl_main): Call _dl_sysdep_start_cleanup after
431         _dl_relocate_object loop.  Avoid relocating RTLD_MAP in that loop, and
432         do it individually if necessary after _dl_sysdep_start_cleanup call.
433
434         * stdlib/Makefile (mpn-routines): Add divrem.
435
436 Tue Mar 26 22:54:14  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
437
438         * stdio-common/printf_fp.c (__printf_fp): Use mpn_divmod
439         instead of __mpn_divmod.
440
441 Wed Mar 27 10:26:21 1996  David Mosberger-Tang  <davidm@azstarnet.com>
442
443         * sysdeps/alpha/setjmp.S: Must establish global pointer before
444         address of __sigsetjmp_aux can be loaded.
445
446 Wed Mar 27 02:23:19 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
447
448         * sysdeps/i386/i586/memset.S: New file.  Highly optimized
449         version for i586 contributed by Torbjorn Granlund.
450         Adapted for use as bzero.
451         * sysdeps/i386/i586/bzero.S: Use sysdeps/i386/i586/memset.S
452         code to implement bzero().
453
454 Tue Mar 26 20:01:17 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
455
456         * stdlib/Makefile (mpn-routines): Remove divmod.
457
458 Tue Mar 26 15:40:14 1996  Brendan Kehoe  <brendan@zen.org>
459
460         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (NO_UNDERSCORES): Use
461         wrapped with #ifndef, to avoid config.h defining it.
462
463 Mon Mar 25 13:10:04 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
464
465         * malloc/realloc.c (_realloc_internal): In case of growing large
466         block, leave _heaplimit zero across _malloc_internal call.
467
468         * intl/Makefile [gettext-srcdir]: Use gpl2lgpl.sed on copied sources.
469
470 Mon Mar 25 03:35:16 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
471
472         * malloc/malloc.c (morecore): Don't attempt recursive realloc of info
473         table when _heaplimit==0 during realloc growing large block.
474
475         * MakeTAGS (extract): Remove /dev/null from xgettext command line.
476         (text-srcs): New variable: extract only C sources from $(tags_sources).
477         (po/$(domain).pot): Depend on that.
478         If it's empty, cp /dev/null $@ instead of $(extract).
479
480         * misc/Makefile (headers): Add iovec.h.
481         * sysdeps/unix/sysv/linux/iovec.h: New file.
482         * sysdeps/generic/iovec.h: New file.
483         * misc/sys/uio.h (struct iovec): Type replaced with #include <iovec.h>.
484
485         * configure.in (NO_UNDERSCORES check): Use AC_TRY_LINK instead of
486         AC_TRY_COMPILE.
487
488         * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): Move these
489         macros inside [! __STDC__].
490
491         * stdlib/rpmatch.c: New file.
492         * stdlib/Makefile (routines): Add rpmatch.
493         * stdlib/stdlib.h [__USE_SVID]: Declare rpmatch.
494
495         * MakeTAGS (MSGJOIN): Variable removed.
496         (po/SYS_libc.pot): Use $(XGETTEXT) instead of $(MSGJOIN).
497
498 Wed Mar 20 20:08:46 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
499
500         * sysdeps/unix/sysdep.h: Don't define C_SYMBOL_NAME.
501
502         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Don't define
503         NO_UNDERSCORES.
504
505 Thu Mar 21 11:19:15 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
506
507         * mach/devstream.c (input): Translate \r to \n on input.
508
509 Wed Mar 20 11:28:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
510
511         * stdio-common/printf.h, stdio-common/printf_fp.c,
512         stdio-common/vfprintf.c: Place const in parameter list at
513         correct place.
514
515 Wed Mar 20 23:58.12 1996  Ulrich Drepper <drepper@gnu.ai.mit.edu>
516
517         * sysdeps/i386/ldbl2mpn.c: Copy of former version of
518         sysdeps/ieee754/ldbl2mpn.c.
519         * sysdeps/ieee754/ldbl2mpn.c: Remove i386 specific unification.
520         Reported by Andreas Schwab.
521
522 Wed Mar 20 19:58:43 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
523
524         * version.c: Include version.h to define RELEASE and VERSION macros.
525         (__libc_release, __libc_version): Use them.
526         * locale/SYS_libc.c (_libc_intl_domainname): Include ../version.h and
527         use VERSION to define domainname as `SYS_GNU_libc-VERSION'.
528         * Make-dist (rel+vers): Snarf the macro values from version.h.
529
530         * MakeTAGS (extract): Pass $(XGETTEXTFLAGS-$(@F)).
531         (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): New variables;
532         pass -a for these files.
533
534         * Makerules (po/%.pot): Depend on FORCE target so recursive make is
535         always run.
536
537 Mon Mar 18 22:54:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
538
539         * sysdeps/unix/sysv/linux/wait3.c: New file.
540         * sysdeps/unix/sysv/linux/wait.c: Use the bsd4.4 wait, not the
541         one from sysdeps/posix.
542
543 Wed Mar 20 09:42:11 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
544
545         * sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
546
547         * elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
548         lt_executable, then lt_library.
549         * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
550
551 Wed Mar 20 00:08:23 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
552
553         * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty.
554
555 Tue Mar 19 16:31:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
556
557         * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL,
558         VEOL2, VMIN, VTIME): Corrected.
559         (PAGEOUT, WRAP, VDSUSP): Deleted.
560
561 Tue Mar 19 14:18:42 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
562
563         * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of
564         (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
565
566         * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p.
567
568         * math/math.h: Move M_* constants before __math.h include.
569         [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this.
570
571         * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern.
572         If log10 is not defined (i.e. no -lm), use stupid loop instead.
573
574         * features.h (__FAVOR_BSD): Define only if _BSD_SOURCE is defined
575         and no other _*_SOURCE macro is.
576         (_GNU_SOURCE): Don't define by default.
577         * libc-symbols.h (_GNU_SOURCE): Define it.
578
579         * configure.in (alpha*-*-linux*): Unset $gnu_ld and $elf.
580
581         * config.make.in (weak-symbols): Variable removed.
582         * configure.in (--with-weak-symbols): Option removed.
583         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
584         New tests.
585
586         * config.h.in (HAVE_WEAK_SYMBOLS): #undef removed.
587         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
588         New #undefs.
589         * libc-symbols.h: Use them instead of HAVE_WEAK_SYMBOLS.
590
591         * sysdeps/unix/bsd/pause.c: Moved to sysdeps/unix/common/pause.c.
592
593 Mon Mar  4 20:17:28 1996  David Mosberger-Tang  <davidm@azstarnet.com>
594
595         * inet/inet_lnaof.c: Use u_int32_t instead of u_long.
596         * inet/inet_mkadr.c: Likewise.
597         * inet/inet_net.c: Likewise.
598         * inet/inet_netof.c: Likewise.
599         * inet/rcmd.c: Likewise.
600         * inet/arpa/inet.h: Likewise.
601         * inet/netinet/in.h: Likewise.
602         * inet/netinet/tcp.h: Likewise.
603         * inet/protocols/rwhod.h: Likewise.
604         * inet/protocols/talkd.h: Likewise.
605         * resolv/inet_addr.c: Likewise.
606
607         * sysdeps/unix/sysv/linux/adjtime.c: Use INT_MAX instead of LONG_MAX.
608
609         * sysdeps/unix/sysv/Makefile (sysdep_routines): Don't add s_getdents.
610
611         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add mount,
612         umount.
613
614         * sysdeps/alpha/__math.h (atan, cabs): New functions.
615
616         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: new file (syscall
617         expects set-value, not pointer to it).
618
619 Sun Feb 25 22:36:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
620
621         * sysdeps/unix/sysv/linux/alpha/profil-counter.h: New file.
622
623         * gmon/gmon.c (__bb_head): new variable.
624         (write_hist, write_call_graph, write_bb_counts): new functions.
625         (_mcleanup): modified to call above functions instead of directly
626         writing out gmon.out.
627         * gmon/sys/gmon.h (struct __bb): New type.
628         (struct gmonhdr): Type removed.
629         (struct gmonparam): New member `log_hashfraction'.
630         (GMONVERSION): Macro removed.
631
632         * gmon/sys/gmon_out.h, gmon/bb_exit_func.c,
633         sysdeps/generic/bb_init_func.c, sysdeps/alpha/bb_init_func.S: new
634         files.
635         * gmon/Makefile (headers): Add sys/gmon_out.h.
636         (routines): Add bb_init_func, bb_exit_func.
637
638         * gmon/mcount.c: Avoid integer division.
639
640 Wed Feb 21 23:56:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
641
642         * sysdeps/alpha/setjmp.S: switched order in which sp and fp are
643         passed to match what __sigsetjmp_aux() expects.
644
645 Tue Feb 20 11:33:46 1996  David Mosberger-Tang  <davidm@azstarnet.com>
646
647         * sysdeps/unix/sysv/linux/alpha/syscalls.list (select, bind,
648         connect, getpeername, getsockname, listen, recv, recvfrom,
649         recvmsg, send, sendmsg, sendto, setsockopt, shutdown, socketpair):
650         added to override same-name assembly file in the parent directory.
651
652         * stdlib/stdlib.h: add include of sys/types.h in front of random
653         etc declarations to ensure int32_t is declared.
654
655         * stdlib/random.c, stdlib/random_r.c: replaced "long int" by int32_t
656         where 32 bit integers are required.  Also change LONG_MAX into
657         0x7fffffff since the intent is to turn off the sign bit in a
658         32 bit integer.
659
660         * time/offtime.c (__offtime): Use Paul Eggert's code to deal
661         with very large values for "days" (e.g., 64 bit values).
662
663 Mon Feb 19 22:22:12 1996  David Mosberger-Tang  <davidm@azstarnet.com>
664
665         * stdlib/stdlib.h (__random, __random_r, random_r, struct
666         random_data): use int32_t instead of `long int'.
667
668 Sat Feb 17 11:29:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
669
670         * sysdeps/unix/sysv/linux/alpha/ioperm.c: new file.
671
672         * sysdeps/alpha/ffs.S: new file.
673
674         * sysdeps/alpha/fabs.c: File removed.
675
676         * time/tzfile.c (__tzfile_read): counter variable is i, *not*
677         num_transitions!
678
679         * time/offtime.c: make capable of dealing with very large (64 bit)
680         time_t values.  Use old algorithm until a year is reached that
681         is an integer multiple of 400, then use DAYS_PER_400_YEARS to
682         do the remainder in a single division.
683
684         * sysdeps/generic/ffs.c (ffs): fix variable declarations to
685         be unsigned int, not unsigned long.
686
687         * string/test-ffs.c (main): add test case with all upper bits
688         set.
689
690         * stdlib/tst-strtol.c: add tests cases for machines where
691         sizeof(long)==8.
692
693         * stdlib/testrand.c (main): disallow rand() to return negative
694         integers.
695
696         * stdlib/testmb.c (main): fix format to use %lx instead of %x.
697
698         * stdlib/stdlib.h: on 64 bit machines, declare
699         struct random_data, __random(),  __random_r, and random_r to
700         return "int" instead of "long int".
701
702         * stdlib/random_r.c: 64 bit machines use "int" instead of "long
703         int".  Similarly, use INT_MAX instead of LONG_MAX.
704
705         * stdlib/random.c: on 64 bit machines, randtbl[] and __random[]
706         need to operate on "int" instead of "long int".
707
708         * locale/locfile-hash.c (compute_hashval): make shifted constant
709         a long to avoid loosing bits on 64 bit machines.
710
711         * dirent/tst-seekdir.c (main): fix confusing comment; print
712         a line to mark point where directory is rewound.
713
714 Fri Feb 16 15:01:49 1996  David Mosberger-Tang  <davidm@azstarnet.com>
715
716         * time/strftime.c (strftime): any hour > 11 is PM (not > 12!).
717
718 Wed Feb 14 00:21:17 1996  David Mosberger-Tang  <davidm@azstarnet.com>
719
720         * sysdeps/unix/sysv/linux/alpha/Makefile,
721         sysdeps/unix/sysv/linux/alpha/brk.S,
722         sysdeps/unix/sysv/linux/alpha/fpu_control.c,
723         sysdeps/unix/sysv/linux/alpha/fpu_control.h,
724         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
725         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
726         sysdeps/unix/sysv/linux/alpha/pipe.S,
727         sysdeps/unix/sysv/linux/alpha/setfpucw.c,
728         sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
729         sysdeps/unix/sysv/linux/alpha/speed.c,
730         sysdeps/unix/sysv/linux/alpha/start.S,
731         sysdeps/unix/sysv/linux/alpha/syscall.S,
732         sysdeps/unix/sysv/linux/alpha/syscalls.list,
733         sysdeps/unix/sysv/linux/alpha/alpha/regdef.h,
734         sysdeps/unix/sysv/linux/alpha/sysdep.S,
735         sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
736
737         * sysdeps/alpha/setjmp_aux.c (__sigsetjmp_aux): restore return
738         address register before returning (gcc 2.7.1 doesn't do it,
739         presumably because $26 is declared as a global variable).
740
741         * sysdeps/unix/sysv/linux/sys/mman.h: msync was missing "flags"
742         argument.
743
744         * sysdeps/unix/alarm.c (alarm): do roundup using test & increment
745         instead of multiplication.
746
747         * sysdeps/posix/sleep.c (sleep): initialize sa_mask to mask of
748         currently blocked signals instead of the empty mask to ensure
749         that execution of alarm handler occurs with none of the currently
750         blocked signals enabled.
751
752         * sysdeps/unix/alpha/sysdep.h: new file (adapted from OSF/1 version).
753
754         * sysdeps/unix/bsd/osf/alpha/sysdep.h: include
755         sysdeps/unix/alpha/sysdep.h and removed definitions now in that file.
756
757         * sysdeps/alpha/divrem.S, sysdeps/alpha/htonl.S,
758         sysdeps/alpha/htons.S, sysdeps/alpha/machine-gmon.h,
759         sysdeps/alpha/_mcount.S, sysdeps/alpha/ntohl.s, sysdeps/alpha/ntohs.s,
760         sysdeps/alpha/strlen.S: New files.
761
762         * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
763         sysdeps/alpha/divqu.S, sysdeps/alpha/divrem.m4,
764         sysdeps/alpha/macros.m4, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
765         sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S, sysdeps/alpha/strlen.c:
766         Removed.
767
768         * sysdeps/generic/sbrk.c (__sbrk): argument is of type ptrdiff_t, not
769         int.
770
771         * sysdeps/alpha/__longjmp.c (__longjmp): moved dummy while loop
772         to end of function to avoid a jump across NOPs.
773
774         * sysdeps/alpha/Makefile (sysdep_routines): Removed all rules
775         pertaining to integer division/remainder routines since new code
776         doesn't require them.
777
778         * sunrpc/xdr_mem.c, sunrpc/xdr_stdio.c: Use 4 instead of sizeof(long)
779         where 32 bit quantities are consumed/stored.  Various other minor
780         64-bit cleanups (casting).
781
782         * sunrpc/xdr.c (xdr_int): test for sizeof(int)==4 to determine
783         whether xdr_long or xdr_short should be used to encode an int.
784         Notice that an xdr_long is 4 bytes independent of the architecture
785         (otherwise no Alpha could interoperate with existing NFS servers,
786         for example).  Ditto for enums.
787
788         * sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
789         to 16 since it really wants 16 bytes.
790
791         * sunrpc/svc.c (maskp): changed from u_long* to u_int32*.
792
793         * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): change casts to
794         u_int32_t (instead of u_long).
795
796         * sunrpc/rpc_cmsg.c (xdr_callmsg), sunrpc/svc_authux.c: increment
797         "buf" pointer by casting it to a char* first since a long* may be 8
798         bytes or more and oa->oa_length may be any multiple of 4.
799
800         * sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
801         since it really is testing for 32 bits.  Fixed casts to use
802         u_int32 instead of u_long.
803         * sunrpc/xdr_rec.c: Likewise.
804
805         * sunrpc/clnt_tcp.c (clnttcp_call): replaced u_long by u_int32.
806         * sunrpc/rpc/auth.h: Likewise.
807
808         * limits.h (LONG_MAX, LONG_MIN, ULONG_MAX): use 64 bit values
809         for Alpha.
810
811 Tue Mar 19 13:27:49 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
812
813         * sysdeps/i386/fpu/__math.h: New file.
814         Contributed by John C. Bowman <bowman@hagar.ph.utexas.edu>.
815
816 Sun Mar 17 00:28:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
817
818         * sysdeps/posix/clock.c: Don't multiply the return value by
819         CLOCKS_PER_SEC or CLK_TCK.
820
821 Mon Mar 18 13:20:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
822
823         * sysdeps/mach/hurd/getcwd.c: Fail with ENOENT if a parent directory
824         scan finds no match.
825
826         * posix/unistd.h (setpgrp): Declare no-arg version unless __FAVOR_BSD.
827         * misc/bsd-compat.c (setpgrp): New function, two arg version.
828         * sysdeps/stub/setpgid.c: Remove setpgrp alias.
829         * sysdeps/mach/hurd/setpgid.c: Likewise.
830         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
831         * sysdeps/unix/common/syscalls.list (setpgid): Remove setpgrp alias.
832         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
833         * sysdeps/unix/sysv/linux/setpgrp.c: Obsolete file removed.
834         * posix/setpgrp.c (setpgrp): New file.
835         * posix/Makefile (routines): Add setpgrp.
836
837         * elf/Makefile (rtld-link): New canned sequence.
838         (ld.so, ld-linux.so.1): Use it.  Pass -soname option.
839
840         * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.
841
842 Sun Mar 17 23:15:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
843
844         * sysdeps/unix/sysv/linux/tcgetpgrp.c,
845         sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
846
847 Sun Mar 17 07:19:33 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
848
849         * db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
850         (CFLAGS): Append -Wno-unitialized.
851
852 Sat Mar 16 20:58:43 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
853
854         * stdlib/erand48_r.c: Use FP division by powers of two to distribute
855         short bits into double.
856
857 Sat Mar 16 20:08:22 1996  David Mosberger-Tang  <davidm@azstarnet.com>
858
859         * sysdeps/alpha/memchr.S: New file.
860         * sysdeps/alpha/memchr.c: Obsolete file removed.
861         * string/tester.c: Soup up memchr tests.
862
863 Sat Mar 16 16:26:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
864
865         * misc/Makefile (headers): Add sysexits.h.
866         * misc/sysexits.h: New file.
867
868 Thu Mar 14 15:20:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
869
870         * sysdeps/libm-ieee754/e_atan2.c (__ieee754_atan2): Change atan
871         call to __atan.
872         * sysdeps/libm-ieee754/e_atan2f.c (__ieee754_atan2f): Change atanf
873         call to __atanf.
874
875         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
876         sysdeps/m68k/fpu/e_asin.c, sysdeps/m68k/fpu/e_asinf.c,
877         sysdeps/m68k/fpu/e_atanh.c, sysdeps/m68k/fpu/e_atanhf.c,
878         sysdeps/m68k/fpu/e_cosh.c, sysdeps/m68k/fpu/e_coshf.c,
879         sysdeps/m68k/fpu/e_exp.c, sysdeps/m68k/fpu/e_expf.c,
880         sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
881         sysdeps/m68k/fpu/e_log.c, sysdeps/m68k/fpu/e_log10.c,
882         sysdeps/m68k/fpu/e_log10f.c, sysdeps/m68k/fpu/e_logf.c,
883         sysdeps/m68k/fpu/e_pow.c, sysdeps/m68k/fpu/e_powf.c,
884         sysdeps/m68k/fpu/e_remainder.c, sysdeps/m68k/fpu/e_remainderf.c,
885         sysdeps/m68k/fpu/e_scalb.c, sysdeps/m68k/fpu/e_scalbf.c,
886         sysdeps/m68k/fpu/e_sinh.c, sysdeps/m68k/fpu/e_sinhf.c,
887         sysdeps/m68k/fpu/e_sqrt.c, sysdeps/m68k/fpu/e_sqrtf.c,
888         sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_cosf.c,
889         sysdeps/m68k/fpu/k_sin.c, sysdeps/m68k/fpu/k_sinf.c,
890         sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/k_tanf.c,
891         sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
892         sysdeps/m68k/fpu/s_ceil.c, sysdeps/m68k/fpu/s_ceilf.c,
893         sysdeps/m68k/fpu/s_cos.c, sysdeps/m68k/fpu/s_cosf.c,
894         sysdeps/m68k/fpu/s_expm1.c, sysdeps/m68k/fpu/s_expm1f.c,
895         sysdeps/m68k/fpu/s_fabs.c, sysdeps/m68k/fpu/s_fabsf.c,
896         sysdeps/m68k/fpu/s_finite.c, sysdeps/m68k/fpu/s_finitef.c,
897         sysdeps/m68k/fpu/s_floor.c, sysdeps/m68k/fpu/s_floorf.c,
898         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
899         sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
900         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
901         sysdeps/m68k/fpu/s_isnan.c, sysdeps/m68k/fpu/s_isnanf.c,
902         sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
903         sysdeps/m68k/fpu/s_log1p.c, sysdeps/m68k/fpu/s_log1pf.c,
904         sysdeps/m68k/fpu/s_logb.c, sysdeps/m68k/fpu/s_logbf.c,
905         sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c,
906         sysdeps/m68k/fpu/s_rint.c, sysdeps/m68k/fpu/s_rintf.c,
907         sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
908         sysdeps/m68k/fpu/s_significand.c,
909         sysdeps/m68k/fpu/s_significandf.c, sysdeps/m68k/fpu/s_sin.c,
910         sysdeps/m68k/fpu/s_sinf.c, sysdeps/m68k/fpu/s_tan.c,
911         sysdeps/m68k/fpu/s_tanf.c, sysdeps/m68k/fpu/s_tanh.c,
912         sysdeps/m68k/fpu/s_tanhf.c: New files, for m68881 port of fdlibm.
913
914         * sysdeps/m68k/fpu/__math.h: Rewritten for fdlibm.
915
916         * sysdeps/m68k/fpu/isinfl.c: Rewritten to get argument type right.
917         * sysdeps/m68k/fpu/isnanl.c: Likewise.
918
919 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
920
921         * posix/glob.c (glob): In GLOB_BRACE brace expansion, fix buffer size
922         calculation to include trailing invariant portion.  Don't use alloca;
923         instead use a dynamic auto array for GCC, malloc for non-GCC.
924         Handle nested braces properly.
925
926         * elf/elf.h (Elf32_auxv_t): Specify prototype (void) for `a_un.a_fcn'.
927
928         * libc-symbols.h (lint): New macro.
929
930 Fri Mar 15 01:18:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
931
932         * libio/iosetvbuf.c: Add weak alias setvbuf.
933
934 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
935
936         * string/strnlen.c: New file.
937         * string/Makefile (routines): Add strnlen.
938         * string/string.h [__USE_GNU] (strnlen): Declare new function.
939         [__OPTIMIZE__]: Define extern inline implementation of it.
940
941         * stdlib/erand48_r.c: Use __mpn_construct_double instead of ldexp and
942         addition, to avoid using anything from -lm.
943
944 Mon Mar  4 21:57:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
945
946         * sysdeps/unix/sysv/linux/m68k/Makefile: New file.
947
948         * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYS_ify): Redefine.
949         (CALL_MCOUNT): New macro, empty unless [PROF].
950         (ENTRY): Do CALL_MCOUNT just after the label.
951         (JUMPTARGET): New macro.
952         (SYSCALL_ERROR_HANDLER): Fix syntax.
953
954 Thu Mar 14 04:20:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
955
956         * sysdeps/unix/sysv/linux/init-first.c (init): Call `__personality'
957         function instead of using inline asm i386 syscall.
958         * sysdeps/unix/sysv/linux/syscalls.list: Add personality syscall.
959
960         * posix/unistd.h [__USE_BSD]: Declare usleep.
961
962 Tue Mar 12 04:57:57 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
963
964         * misc/efgcvt.c (MAXDIG): New macro computed from <floats.h> constants.
965         (fcvt, ecvt): Use it for buffer size.
966
967         * stdlib/drand48-iter.c (__drand48_iterate): Use u_int64_t instead of
968         conditionalizing long vs long long.
969
970         * stdlib/drand48-iter.c (__drand48_iterate): Don't check for null
971         pointers; never return EFAULT.
972         * stdlib/drand48_r.c (drand48_r): Likewise.
973         * stdlib/erand48_r.c (erand48_r): Likewise.
974
975         * setjmp/Makefile (tests): Add jmpbug.
976         * setjmp/jmpbug.c: New file.
977
978 Tue Mar 12 04:42:01 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
979
980         * sysdeps/sparc/jmp_buf.h: Rewritten; use array of ints, not struct.
981         * sysdeps/sparc/setjmp.S: Rewritten; store %fp value as well.
982         * sysdeps/sparc/__longjmp.S: Rewritten; unwind frames one by one with
983         `restore' until the target frame is hit.
984
985 Sun Mar 10 20:29:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
986
987         * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
988         * sysdeps/unix/sysv/linux/syscalls.list: Remove sigsuspend, add
989         s_sigsuspend.
990
991 Thu Mar  7 21:30:58 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
992
993         * Makerules (+make-deps, sed-remove-objpfx): Quote periods on the
994         left side of sed substitutions.
995
996 Sun Mar 10 16:58:10 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
997
998         * stdio-common/printf_fp.c (hack_digit): __mpn_normal_size
999         is not available anymore.  Do it ourselves.
1000
1001         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_SETCW):
1002         Correct GCC `asm' syntax.
1003
1004 Tue Mar 12 03:15:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1005
1006         * stdio-common/Makefile (tests): Add tst-ungetc.
1007         * stdio-common/tst-ungetc.c: New test from drepper.
1008         * stdio-common/tstscanf.c (main): New %[ test case from drepper.
1009
1010         * sysdeps/libm-ieee754/s_scalbn.c (scalbn): Rename to __scalbn;
1011         somehow this was missed, though the weak alias is already there.
1012
1013         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
1014         default to double precision, all interrupts masked; fdlibm requires.
1015
1016 Sat Mar  9 18:44:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1017
1018         * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.
1019
1020 Fri Mar  8 22:16:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1021
1022         * stdio-common/printf_fp.c (HAVE_ALLOCA): New macro.
1023
1024 Tue Mar  5 18:45:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1025
1026         * sysdeps/mach/hurd/select.c (__select): Include LASTFD in the
1027         final loop.
1028
1029 Mon Mar  4 20:54:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1030
1031         * Makeconfig ($(common-objpfx)config.make): Depend on config.h.in.
1032
1033 Tue Mar  5 12:14:57 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1034
1035         * sysdeps/mach/hurd/select.c (__select): Also don't fault just
1036         because some fdmask is 0.
1037
1038 Mon Mar  4 17:35:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1039
1040         * sysdeps/mach/hurd/select.c (__select):
1041         Don't increment GOT only because READ/WRITE/EXCEPTFDS is 0!
1042         Don't return without frobbing the bitmasks after a timeout.
1043         When clearing the bitmasks, only loop from FIRSTFD to LASTFD.
1044
1045 Mon Mar  4 17:35:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1046
1047         * hurd/catch-signal.c (hurd_safe_memmove): New function.
1048         (hurd_safe_copyin, hurd_safe_copyout): New functions.
1049         * hurd/hurd/sigpreempt.h: Declare them.
1050
1051 Sun Mar  3 08:43:44 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1052
1053         Replace math code with fdlibm from Sun as modified for netbsd by
1054         JT Conklin and Ian Taylor, including x86 FPU support.
1055         * sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
1056         * math/math_private.h: New file.
1057         * sysdeps/i386/fpu/Implies: New file.
1058         * sysdeps/ieee754/Implies: New file.
1059         * math/machine/asm.h, math/machine/endian.h: New files.
1060         * math/Makefile, math/math.h: Rewritten.
1061         * mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
1062         * math/finite.c: File removed.
1063         * sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.
1064
1065         * math/test-math.c: Include errno.h and string.h.
1066
1067         * sysdeps/unix/bsd/dirstream.h: File removed.
1068         * sysdeps/unix/bsd/readdir.c: File removed.
1069
1070 Sat Mar  2 16:35:40 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1071
1072         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: File removed.
1073         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: File
1074         removed.
1075         * sysdeps/generic/profil-counter.h: New file.
1076
1077 Fri Mar  1 17:11:59 1996  Brendan Kehoe  <brendan@zen.org>
1078
1079         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sigcontext.h: New file,
1080         including <sysdeps/unix/bsd/sun/sparc/sigcontext.h>.
1081         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: New file,
1082         same as linux/m68k/profil-counter.h except the comment.
1083
1084 Fri Mar  1 10:09:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1085
1086         * stdlib/Makefile (mpn-stuff): New target.
1087         (copy-mpn): Use it.
1088
1089         * Code copied from GMP updated to 1.937 version.
1090         * stdlib/strtod.c (HAVE_ALLOCA): Define this for gmp headers.
1091
1092         * posix/glob.c: Use canonical code from autoconf manual for dirent
1093         include.
1094         [_D_NAMLEN]: Redefine NAMLEN using this.
1095         (glob_in_dir): Use NAMLEN macro.
1096
1097         * sysdeps/posix/profil.c: New file.
1098
1099 Thu Feb 29 20:55:57 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1100
1101         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: New file.
1102
1103 Tue Feb 27 12:14:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1104
1105         * libc-symbols.h [GCC >= 2.8] (strong_alias, weak_alias): Remove
1106         `extern' keyword.
1107
1108         * time/strftime.c: Support - and _ flags to affect number padding.
1109
1110         * sysdeps/unix/common/tcsendbrk.c: New file.
1111
1112 Mon Feb 26 10:22:30 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1113
1114         * sysdeps/unix/dirstream.h: Rewritten.
1115         * sysdeps/unix/readdir.c: Rewritten.
1116         * sysdeps/unix/telldir.c: Rewritten.
1117         * sysdeps/unix/closedir.c: Use <...> instead of "..." for dirstream.h.
1118         Remove __ from DIR struct member names.
1119         * sysdeps/unix/dirfd.c: Likewise.
1120         * sysdeps/unix/seekdir.c: Likewise.
1121         * sysdeps/unix/rewinddir.c: Likewise.
1122         * sysdeps/unix/opendir.c: Likewise.  Don't allocate extra space after
1123         DIR structure.
1124         * sysdeps/stub/direct.h: File removed.
1125         * sysdeps/unix/bsd/bsd4.4/direct.h: File removed.
1126         * sysdeps/unix/bsd/direct.h: File removed.
1127         * sysdeps/unix/common/direct.h: File removed.
1128         * sysdeps/unix/sysv/irix4/direct.h: File removed.
1129         * sysdeps/unix/sysv/isc3/direct.h: File removed.
1130         * sysdeps/unix/sysv/sco3.2.4/direct.h: File removed.
1131         * sysdeps/unix/sysv/sysv4/solaris2/direct.h: File removed.
1132         * sysdeps/unix/common/direntry.h: New file.
1133         * sysdeps/unix/bsd/direntry.h: New file.
1134         * sysdeps/unix/bsd/bsd4.4/direntry.h: New file.
1135         * sysdeps/unix/sysv/direntry.h: New file.
1136         * sysdeps/stub/direntry.h: New file.
1137         * dirent/dirent.h (struct dirent): Type removed.  Include <direntry.h>
1138         to define it.
1139         (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New macros.
1140         * dirent/Makefile (headers): Add direntry.h.
1141         (distribute): Remove direct.h.
1142         * sysdeps/posix/getcwd.c: Use new macros instead of d_namlen.
1143         * dirent/scandir.c: Likewise.
1144         * io/fts.c (fts_build): Likewise.
1145         * io/ftw.c (ftw_dir): Likewise.
1146         * sysdeps/posix/ttyname.c: Likewise.
1147
1148         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
1149
1150         * sysdeps/mach/hurd/profil.c (MAX_PC_SAMPLES): New macro.
1151         (collector_timeout): New static variable.
1152         (update_waiter): Actually call __task_enable_pc_sampling.
1153         Set collector_timeout based on the `tick' count returned.
1154         (profile_waiter): Use MAX_PC_SAMPLES.  Set nsamples before RPC.
1155         Use collector_timeout in __mach_msg call.
1156
1157         * gmon/Makefile (noprof): New variable containing mcount.
1158         Append profil unless it is in $(unix-syscalls).
1159         (mcount.po): Use $(noprof) for list of targets in this rule.
1160
1161         * libc-symbols.h: Define _LIBC before #include <config.h>.
1162
1163 Sun Feb 25 12:29:23 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1164
1165         * config.h.in [_LIBC] (HAVE_STRERROR): Define it.
1166         Protect 2nd page of #undef's for generator programs with #ifndef _LIBC.
1167
1168         * time/zic.c, time/zdump.c, time/private.h: Updated from ADO 96e.
1169
1170 Fri Feb  9 12:40:19 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
1171
1172         * libio/cleanup.c (_IO_cleanup_registration_needed)
1173         [!_G_HAVE_ATEXIT]: Init to NULL.
1174         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
1175
1176 Thu Feb  8 08:12:50 1996  Brendan Kehoe  <brendan@cygnus.com>
1177
1178         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Revert
1179         previous change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
1180
1181 Wed Feb  7 15:10:17 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
1182
1183         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Declare as
1184         extern.
1185
1186 Sat Feb 24 11:34:13 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1187
1188         * sysdeps/i386/memcmp.S: Fix argument %esp offsets.
1189
1190         * time/sys/time.h (timeradd, timersub): New macros; BSD has these.
1191
1192 Wed Feb 21 02:25:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1193
1194         * Rules (others): Depend on $(extra-objs), $(install-lib),
1195         $(install-bin), $(install-sbin), in object directory.
1196
1197         * Makeconfig (link-libc): Don't pass -rpath option with default
1198         path, since ld.so should use the same default.
1199         * Makerules (build-shlib): Likewise.
1200
1201         * Makerules (make-target-directory): Use mkinstalldirs.
1202
1203         * sysdeps/mach/i386/sysdep.h: Include unix/i386/sysdep.h to
1204         redefine ENTRY et al.
1205
1206         * sysdeps/unix/sysv/linux/i386/sysdep.h (NO_UNDERSCORES, ENTRY):
1207         Macros removed.  The code in unix/i386/sysdep.h should now suffice.
1208
1209         * sysdeps/unix/i386/sysdep.h (ALIGNARG): New macro, defns for
1210         [HAVE_ELF] and not.
1211         (ENTRY): Use it in .align directive.
1212         (CALL_MCOUNT): New macro, empty unless [PROF].
1213         (ENTRY): Do CALL_MCOUNT just after the label.
1214
1215         * Makeconfig (CPPFLAGS-.po): New variable, use -DPROF so assembly
1216         code can call mcount.
1217
1218 Tue Feb 20 23:05:16 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1219
1220         * time/private.h, time/zdump.c, time/zic.c: Updated verbatim from ADO;
1221         translation markings are now integrated in his distribution.
1222
1223         * stdlib/strtod.c (round_and_return): Add missing (mp_limb) 1 cast.
1224
1225 Mon Feb 19 18:31:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1226
1227         * po: New directory where `LANG.po' files for message translations
1228         will reside.
1229         * po/SYS_libc.pot: New file, template of message strings as in source.
1230         * MakeTAGS: New rules to build po/SYS_libc.pot automatically from
1231         the source using xgettext.
1232         * Makerules ($(..)po/%.pot): New rule.
1233         * manual/Makefile (../po/manual.pot): New target, make it empty.
1234
1235         * sysdeps/unix/bsd/alarm.c: Moved to sysdeps/unix/alarm.c.
1236         * sysdeps/unix/bsd/nice.c: Moved to sysdeps/unix/nice.c.
1237         * sysdeps/unix/bsd/stime.c: Moved to sysdeps/unix/stime.c.
1238         * sysdeps/unix/bsd/time.c: Moved to sysdeps/unix/time.c.
1239         * sysdeps/unix/bsd/utime.c: Moved to sysdeps/unix/utime.c.
1240
1241         * time/zic.c, time/scheck.c, time/private.h, time/tzfile.h:
1242         Updated from ADO 96d.
1243
1244 Sun Feb 18 14:08:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1245
1246         * csu/initfini.c (_init): Remove bogus volatile declarations and
1247         extra variable, take the address of __gmon_start__ only implicitly
1248         to avoid the test being optimized out.
1249
1250 Sun Feb 18 15:08:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1251
1252         * sysdeps/posix/utimes.c (__utimes): There are 1000000 usecs in a
1253         sec.
1254
1255 Sun Feb 18 13:56:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1256
1257         * elf/Makefile, time/Makefile: Make `all' the default target.
1258
1259 Mon Feb 19 18:09:04 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1260
1261         * misc/sys/ptrace.h: Moved to ...
1262         * sysdeps/generic/sys/ptrace.h: ... here.
1263         * sys/ptrace.h: File removed.
1264
1265 Sun Feb 18 12:13:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1266
1267         * sysdeps/unix/sysv/linux/Makefile (headers): Add fpu_control.h.
1268
1269         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Put it into .bss
1270         so that the symbol alias works.
1271
1272         * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_SETCW): Corrected.
1273
1274         * sysdeps/unix/sysv/linux/resourcebits.h: New file.
1275
1276         * sysdeps/unix/sysv/linux/sys/ptrace.h: New file.
1277
1278         * sysdeps/unix/sysv/linux/syscalls.list: Add getegid, geteuid,
1279         getppid and reboot.
1280
1281         * sysdeps/unix/sysv/linux/sysconf.c: Special version that does not
1282         use getdtablesize.
1283
1284 Sat Feb 17 10:30:21 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
1285
1286         * stdio-common/printf_fp.c, stdlib/strtod.c, sysdeps/ieee754/dbl2mpn.c,
1287         sysdeps/ieee754/ldbl2mpn.c, sysdeps/ieee754/mpn2dbl.c,
1288         sysdeps/ieee754/mpn2ldbl.c: Cast left operands of shift instructions
1289         to `long' where necessary.
1290
1291 Thu Feb 15 20:04:50 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
1292
1293         * stdlib/fpioconst.h: Introduce new constant _FPIO_CONST_OFFSET.
1294         * stdio-common/printf_fp.c, stdlib/strtod.c: Use _FPIO_CONST_OFFSET
1295         to correctly access MPN array depending on architecture.
1296
1297 Mon Feb 19 15:30:26 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1298
1299         * stdio-common/tstscanf.c (main): Add check for "0" as %d.
1300
1301         * sysdeps/stub/msync.c: Undo change of Jan 29; just two args.
1302         Only some systems have three args; let them define their own stub.
1303
1304         * sysdeps/generic/dl-sysdep.c: Declare _dl_secure.
1305
1306         * sysdeps/generic/machine-gmon.h: New file.
1307         * gmon/Makefile (distribute): Add machine-gmon.h.
1308         * gmon/mcount.c: Undo changes of Feb 13.
1309         Include "machine-gmon.h".
1310
1311 Sun Feb 18 13:24:06 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1312
1313         * sysdeps/unix/sysv/linux/direct.h: File removed, since it is
1314         identical to unix/common/direct.h.
1315
1316         * sysdeps/unix/Makefile [no_deps]: Don't include s-proto.d.
1317
1318         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add ipc.
1319
1320         * stdio-common/Makefile (tests): Remove scanf6.
1321
1322         * sysdeps/unix/sysv/linux/Makefile (non-lib.a): Append libieee.a.
1323
1324         * time/mktime.c (mktime): Move static variable localtime_offset to
1325         file scope.
1326
1327         * stdio-common/vfscanf.c: Put '0' in buffer before scanning for %i
1328         base indicator.
1329
1330 Thu Feb 15 16:56:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1331
1332         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Corrected.
1333         (ELF_MACHINE_BEFORE_RTLD_RELOC): Define.
1334         (_dl_runtime_resolve): Save %a1 as well.
1335         (ELF_MACHINE_RUNTIME_FIXUP_ARGS): Add second dummy arg.
1336         (elf_machine_relplt): Define.
1337
1338         * elf/dl-runtime.c: Include possible extra args in declaration of
1339         fixup.
1340
1341 Fri Feb 16 11:01:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1342
1343         * time/tzset.c: Limit hours to 23, not 12.  From jaffer.
1344
1345 Fri Feb 16 10:14:05 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1346
1347         * Makeconfig (CFLAGS-.po): Use -pg instead of -p.
1348
1349 Thu Feb 15 13:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1350
1351         * mach/Machrules: Use -include for $(*.ir).
1352
1353         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Mask off type bits in
1354         request values.
1355         * sysdeps/mach/hurd/ioctls.h (_IOC_NOTYPE): New macro.
1356         (_IOT_COUNT2): Field is 3 bits, not 2.
1357         * sysdeps/mach/hurd/ioctl.c: Ignore handler if it fails with ENOTTY.
1358         * hurd/hurdioctl.c (_hurd_lookup_ioctl_handler): Mask off type
1359         bits before looking up handler.
1360         (fioctl): Use __hurd_dfail.
1361         (fioctl, fioclex): Use ENOTTY for bogus request instead of EGRATUITOUS.
1362
1363 Thu Feb 15 11:49:45 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1364
1365         * sysdeps/unix/sysv/sysv4/Makefile [$(subdir)-signal]
1366         (sysdep_routines): Don't add sys-sig.
1367
1368         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
1369
1370 Wed Feb 14 00:21:17 1996 David Mosberger-Tang  <davidm@azstarnet.com>
1371
1372         * sysdeps/alpha/memchr.c (memchr): loop searching for matching
1373         character bailed out one too early; changed constant 6 to
1374         7 to fix this.
1375
1376 Wed Feb 14 01:08:58 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1377
1378         * posix/execvp.c: When executing shell on script, first arg is
1379         full file name, not argv[0].
1380
1381         * mach/Makefile [no_deps]: Inhibit inclusion of mach-syscalls.mk.
1382         * mach/Machrules [no_deps]: Inhibit interface rules.
1383
1384         * malloc/Makefile (distribute): Removed TODO.
1385
1386 Tue Feb 13 05:12:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1387
1388         * sysdeps/unix/sysv/linux/syscalls.list (ipc): Specify msgget in
1389         caller column.
1390
1391         * sysdeps/unix/common/syscalls.list: Add sigaction syscall.
1392
1393         * sysdeps/unix/sysv/linux/gnu/types.h: Moved from linux/i386.
1394
1395         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]
1396         (sysdep_routines): Append setfpucw.
1397         (extra-objs): Append ieee-fpucw.o.
1398         (install-lib): Append libieee.a.
1399         (libieee.a): New target.
1400         * sysdeps/unix/sysv/linux/ieee-fpucw.c: New file.
1401         * sysdeps/unix/sysv/linux/i386/fpu_control.h
1402         (_FPU_GETCW, _FPU_SETCW): New macros.
1403         (fpu_control_t): New typedef.
1404         (__setfpucw): Use fpu_control_t for argument type.
1405         * sysdeps/unix/sysv/linux/fpu_control.c: Moved from linux/i386.
1406
1407         * sysdeps/unix/sysv/linux/init-first.c: Moved from linux/i386.
1408
1409         * sysdeps/unix/sysv/linux/syscalls.list: Add ipc syscall.
1410         * sysdeps/unix/sysv/linux/i386/syscalls.list: File removed.
1411
1412 Sat Feb 10 13:09:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1413
1414         * sysdeps/unix/sysv/linux/m68k/brk.c,
1415         sysdeps/unix/sysv/linux/m68k/mmap.S,
1416         sysdeps/unix/sysv/linux/m68k/select.S,
1417         sysdeps/unix/sysv/linux/m68k/sigcontext.h,
1418         sysdeps/unix/sysv/linux/m68k/sigreturn.S,
1419         sysdeps/unix/sysv/linux/m68k/socket.S,
1420         sysdeps/unix/sysv/linux/m68k/syscall.S,
1421         sysdeps/unix/sysv/linux/m68k/sysdep.S,
1422         sysdeps/unix/sysv/linux/m68k/sysdep.h: New files.
1423
1424         * sysdeps/unix/sysv/linux/m68k/fpu_control.h: New file.
1425
1426         * sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
1427         sysdeps/m68k/isinfl.c, sysdeps/m68k/isnanl.c: New files.
1428
1429         * sysdeps/unix/sysv/linux/sys/mman.h: Define MAP_ANON and
1430         MAP_FILE if not already defined.
1431
1432         * elf/elf.h: Add m68k reloc definitions.
1433         * sysdeps/m68k/dl-machine.h, sysdeps/m68k/elf/start.S: New files.
1434
1435 Tue Feb 13 00:12:12 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1436
1437         * elf/dl-runtime.c (fixup) [ELF_MACHINE_RUNTIME_FIXUP_ARGS]: Let
1438         this macro declare extra leading args.
1439
1440         * Makerules [$(elf)=yes] (ar-symtab-name): Define to empty.
1441
1442         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE,
1443         elf_machine_relplt): New macros.
1444         * elf/dl-runtime.c: New file.
1445         * sysdeps/i386/dl-runtime.c, sysdeps/stub/dl-runtime.c: Files removed.
1446
1447         * gmon/Makefile (headers): Remove machine-gmon.h.
1448         * sysdeps/stub/machine-gmon.h, sysdeps/i386/machine-gmon.h: Removed.
1449         * gmon/mcount.c [! NO_UNDERSCORES] (_mcount): Specify "mcount" as
1450         the asm name.
1451         (_mcount): Define normally, taking no args.
1452         Use __builtin_return_address to fetch PC values of caller and caller's
1453         caller.
1454
1455         * Makerules: Rewrote rules to update libc archives of all flavors.
1456         Define separate specific rules for each flavor using o-iterator.
1457
1458         * sysdeps/unix/Makefile: Include s-proto.d only ifdef subdir.
1459
1460 Sat Feb 10 11:35:16 1996 Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1461
1462         * Makerules (ar-symtab-name): New macro.  Replace all occurences
1463         of __.SYMDEF by $(ar-symtab-name).
1464         * sysdeps/unix/sysv/Makefile (ar-symtab-name): Define as empty.
1465
1466 Mon Feb 12 03:10:41 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1467
1468         * Makefile (configure, %/configure): Depend on aclocal.m4.
1469         * Make-dist (configure, %/configure): Likewise.
1470
1471         * sysdeps/unix/Makefile: Include s-proto.d for its deps.
1472
1473         * gmon/sys/gmon.h: Don't include machine-gmon.h; those defns are
1474         only needed in the implementation, not for any users.
1475
1476         * time/northamerica: Updated from ADO 96c, new rules for Mexico in
1477         1996.
1478
1479         * sunrpc/pm_getport.c: #if 0 out gratuitous inclusion of <net/if.h>.
1480         * sunrpc/pm_getmaps.c: Likewise.
1481
1482         * sysdeps/unix/sysv/syscalls.list: Add setrlimit and settimeofday,
1483         so real syscalls override unix/sysv/*.c on sysv-derived systems
1484         that have them.
1485         * sysdeps/unix/common/syscalls.list: Add settimeofday here, to
1486         override unix/sysv/settimeofday.c since that overrides
1487         unix/syscalls.list.
1488
1489         * Makeconfig (+link): Put $(link-libc) after deps from $^,
1490         regardless of where libc.a appears in the deps.
1491
1492         * sysdeps/unix/sysv/sysv4/syscalls.list: Remove redundancies.
1493         Add __waitid.
1494         * sysdeps/unix/sysv/linux/syscalls.list: Remove redundancies.
1495         Define __ name for sigprocmask.
1496         * sysdeps/unix/bsd/ultrix4/syscalls.list: Remove redundancies.
1497         Add getsysinfo.
1498         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: Remove redundancies.
1499         * sysdeps/unix/bsd/sun/syscalls.list: Remove redundancies.
1500         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove redundancies.
1501         * sysdeps/unix/bsd/syscalls.list: Remove settimeofday, utimes.
1502         Add getdents, wait3, waitpid.
1503         * sysdeps/unix/syscalls.list: Add seteuid, setegid, setsid,
1504         settimeofday, sigsuspend, sstk, utimes.
1505         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
1506         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
1507         * sysdeps/unix/bsd/ultrix4/mips/Makefile (sysdep_routines):
1508         Removed sigtramp.
1509         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Renamed from sigtramp.c.
1510         * sysdeps/unix/bsd/bsd4.4/sstk.S: File removed.
1511         * sysdeps/unix/bsd/hp/m68k/syscalls.list: File removed.
1512         * sysdeps/unix/bsd/osf/alpha/getdents.S: File removed.
1513         * sysdeps/unix/bsd/ultrix4/getsysinfo.S: File removed.
1514         * sysdeps/unix/bsd/ultrix4/waitpid.S: File removed.
1515         * sysdeps/unix/bsd/ultrix4/mips/sigtramp.c: File removed.
1516         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
1517         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: New file.
1518         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
1519         * sysdeps/unix/sysv/irix4/wait3.S: File removed.
1520         * sysdeps/unix/sysv/sysv4/__waitid.S: File removed.
1521         * sysdeps/unix/sysv/sysv4/fchdir.S: File removed.
1522         * sysdeps/unix/sysv/sysv4/setegid.S: File removed.
1523         * sysdeps/unix/sysv/sysv4/seteuid.S: File removed.
1524         * sysdeps/unix/sysv/sysv4/sigaltstack.S: File removed.
1525         * sysdeps/unix/sysv/sysv4/solaris2/utimes.S: File removed.
1526
1527         * hurd/hurdfault.c (_hurdsig_fault_init): Set qlimit on
1528         FORWARD_SIGEXC to one.  Uncomment setting of thread exc port, and
1529         move it to last thing.
1530
1531 Sat Feb 10 05:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1532
1533         * sysdeps/generic/make_siglist.c: #undef _SIGNAL_H before defining it.
1534
1535         * sysdeps/unix/sysv/linux/syscalls.list: Add sigprocmask, sigsuspend.
1536
1537 Sat Feb 10 04:18:48 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1538
1539         * posix/execvp.c: If execv fails with ENOEXEC, run the shell on
1540         the file.
1541
1542 Fri Feb  9 11:46:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1543
1544         * time/Makefile (CFLAGS-zdump.c, CFLAGS-zic.c, CFLAGS-ialloc.c,
1545         CFLAGS-scheck.c): Use -DNOID instead of -Wno-unused.
1546
1547         * hurd/Makefile (user-interfaces): Added hurd/tioctl.
1548
1549 Thu Feb  8 18:55:27 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1550
1551         * hurd/hurdioctl.c (tiocsctty): Set the terminal's pgrp to our own.
1552
1553 Wed Feb  7 18:48:30 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1554
1555         * Makefile (subdirs): Added wcsmbs.
1556         * wcsmbs: New directory of wide char/multibyte char functions from
1557         drepper.
1558
1559         * hurd/hurdmsg.c (_S_msg_report_wait): Function removed.
1560         * hurd/report-wait.c: New file.
1561         * hurd/Makefile (routines): Added report-wait.
1562
1563         * sysdeps/mach/hurd/Makefile (inhibit-unix-syscalls): New variable.
1564
1565         * sysdeps/mach/hurd/i386/intr-msg.h (struct mach_msg_trap_args):
1566         New type.
1567         (SYSCALL_EXAMINE, MSG_EXAMINE): New inline functions.
1568         * sysdeps/mach/hurd/i386/trampoline.c (struct mach_msg_trap_args):
1569         Structure moved to intr-msg.h; include that.
1570
1571         * time/Makefile (CFLAGS-ialloc.c): Add -Wno-unused.
1572         (CFLAGS-scheck.c): New variable.
1573
1574         * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
1575         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
1576         __hurd_threadvar_stack_mask): New variables.
1577
1578         * sysdeps/mach/hurd/fork.c: Set the new task's exception port to
1579         its new message port.
1580
1581         * misc/init-misc.c: Put __init_misc in the __libc_subinit set.
1582
1583         * configure.in (uname): Add quoting.
1584
1585         * sysdeps/mach/hurd/fchdir.c: Don't consult errno unless lookup fails.
1586         * hurd/fchroot.c: Likewise.
1587
1588         * posix/sys/types.h [GCC >= 2.7]: Define intN_t/u_intN_t using
1589         __attribute__ ((__mode__ (__XX__))).
1590
1591 Wed Feb 7 03:24:05 1996 Torbjorn Granlund  <tege@tmg.se>
1592
1593         * sysdeps/i386/i586/memcopy.h (WORD_COPY_FWD): Manually allocate
1594         destination cache lines.
1595         (WORD_COPY_BWD): Likewise.
1596
1597 Wed Feb  7 14:16:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1598
1599         * sysdeps/generic/Makefile (make_siglist): Get signum.h absolute
1600         file name first thing, before $(native-compile) changes directories.
1601
1602         From Gord Matzigkeit <gord@enci.ucalgary.ca>:
1603         * sysdeps/unix/make_errlist.c: Use strerror if available.
1604         * sysdeps/unix/configure.in: New file
1605
1606         * sysdeps/unix/bsd/sun/syscalls.list: Added sigvec.
1607         * sysdeps/unix/bsd/sun/sigvec.S: File removed.
1608
1609         * sysdeps/stub/sendto.c: Make sockaddr arg pointer to const.
1610         * sysdeps/stub/connect.c: Likewise.
1611         * sysdeps/stub/bind.c: Likewise.
1612
1613         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): RETRYNAME of
1614         "" is only special for FS_RETRY_NORMAL; for FS_RETRY_REAUTH, do
1615         another dir_lookup of "".
1616
1617 Tue Feb  6 12:46:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
1618
1619         * libc-symbols.h (weak_alias, weak_symbol): added definitions
1620         for ECOFF (HAVE_ECOFF).
1621
1622 Fri Feb  2 13:09:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1623
1624         * sysdeps/mach/hurd/fork.c: Clear trace flag in child.
1625
1626 Wed Jan 31 20:08:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1627
1628         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Clear SS->intr_port
1629         when cancelled before RPC.
1630
1631 Tue Jan 30 13:32:05 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1632
1633         * dirent/scandir.c: Allocate dirents with correct size for name, and
1634         copy with correct size.
1635
1636         * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook.
1637
1638         * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier
1639         flag bits.
1640         (__vfscanf): Fix checking of extra type modifiers.
1641
1642         * time/asia, time/australasia, time/backward: Updated from ADO 96b.
1643
1644 Tue Jan 30 12:17:26 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
1645
1646         * stdlib/strtod.c: Only negate exponent when there really is one.
1647
1648         * stdio-common/vfscanf.c: Accept type modifiers on %n.
1649         Fix FP number parsing.
1650
1651 Mon Jan 29 21:53:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1652
1653         * sysdeps/stub/msync.c (msync): Declare third arg FLAGS.
1654
1655         * resolv/Makefile (+cflags): Append to this instead of CFLAGS.
1656
1657 Mon Jan 29 16:29:16 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1658
1659         * sysdeps/mach/hurd/select.c (__select): Recalculate GOT to
1660         include an increment for each operation allowed on each fd.
1661
1662 Mon Jan 29 11:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1663
1664         * sysdeps/unix/sysv/linux/configure: Set $inhibit_glue.
1665
1666         * Makefile: Use -include for sysd-dirs.
1667
1668         * configure.in (uname): Check for uname in syscalls.list files.
1669         * sysdeps/unix/sysv/syscalls.list: Remove uname.
1670         * sysdeps/unix/syscalls.list: Add uname.
1671
1672         * stdlib/strtol.c (weak1): New macro, to get the right name declared
1673         weak.
1674
1675         * sysdeps/posix/getcwd.c (size_t): Don't define #ifdef __GNU_LIBRARY__.
1676
1677         * db/hash/ndbm.c: Change all uses of `errno' struct member to `errnum'.
1678         (dbm_open): Use dynamic allocation for file name buffer, instead of
1679         limitting its size to MAXPATHLEN.
1680
1681         * db/btree/bt_open.c (tmp): Use dynamic allocation for file name
1682         buffer, instead of limitting its size to MAXPATHLEN.
1683
1684         * db/hash/hash.h (HTAB): Rename member `errno' to `errnum'.
1685         * db/hash/hash.c: Change all uses of `errno' struct member to `errnum'.
1686
1687 Sun Jan 28 19:42:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1688
1689         * time/Makefile: Fix check for cross compiling.
1690
1691 Thu Jan 25 21:10:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1692
1693         * db/Makefile (subdir-dirs): Renamed from dbdirs.
1694
1695         * Makerules (distinfo-vars): Add subdir-dirs.
1696
1697         * MakeTAGS: Remove vpath directives.
1698         (all-dirs): Prepend $(subdir-dirs).
1699         (all-sources, all-headers): Use wildcard to find sources.
1700
1701 Mon Jan 29 10:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1702
1703         * malloc/Makefile (CFLAGS-vm-limit.c, CFLAGS-ralloc.c): New
1704         variables.
1705
1706         * mach/msgserver.c: Declare DEMUX arg with prototype.
1707
1708 Sun Jan 28 17:25:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1709
1710         * setjmp/setjmp.h (jmp_buf): Give a tag in the struct defn, to
1711         make C++ happy.
1712         * alpha/jmp_buf.h: Likewise.
1713         * m68k/jmp_buf.h: Likewise.
1714         * mips/jmp_buf.h: Likewise.
1715         * sparc/jmp_buf.h: Likewise.
1716         * vax/jmp_buf.h: Likewise.
1717
1718         * sysdeps/generic/memmem.c: Fix return value in case where
1719         NEEDLE_LEN==0.
1720
1721         * hurd/hurdlookup.c (__file_name_lookup_under,
1722         __file_name_lookup): Restrict mode with umask.
1723         * sysdeps/mach/hurd/xmknod.c: Restrict mode with umask.
1724         * sysdeps/mach/hurd/mkdir.c: Restrict mode with umask.
1725
1726 Fri Jan 26 12:20:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1727
1728         * stdlib/strtol.c: Undo last change.  ANSI C changed since the
1729         draft I checked yesterday.  Sigh.
1730
1731 Thu Jan 25 18:58:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1732
1733         * stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
1734
1735 Wed Jan 24 03:22:07 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1736
1737         * malloc/mcheck.c (mabort): Declare prototype.
1738
1739         * sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
1740
1741         * Makerules: Use -include for generated makefiles.
1742
1743         * errno.h: Don't declare errno if it's defined as a macro.
1744
1745         * stdio-common/vfscanf.c: Disallow l flag after ll or L.
1746
1747         * stdio-common/Makefile (tests): Add scanf[1-9].
1748         * stdio-common/scanf[1-9].c: New files.  Bug tests from hjl.
1749
1750 Wed Jan 24 04:18:36 1996  Paul Eggert  <eggert@twinsun.com>
1751
1752         * strftime.c (strftime):
1753         When invoking self, check whether the subsidiary invocation failed.
1754         Use "???" (not "") to denote unknown time zone information.
1755
1756         Make this source file portable to standalone contexts (e.g. GNU Emacs).
1757         <config.h>: Include if HAVE_CONFIG_H is defined.
1758         (HAVE_LIMITS_H, HAVE_MBLEN, HAVE_TM_ZONE, STDC_HEADERS): New symbols,
1759         defined if _LIBC or if <config.h> defines them.
1760         <ansidecl.h>, "../locale/localeinfo.h": Include only if _LIBC.
1761         <sys/types.h>: New include; some hosts require it for `time_t'.
1762         <ctype.h>: Include only if HAVE_MBLEN (since it's only needed then).
1763         <limits.h>: Include only if HAVE_LIMITS_H.
1764         <stddef.h, stdlib.h, string.h>: Include only if STDC_HEADERS.
1765         (memcpy): Define in terms of bcopy if !STDC_HEADERS.
1766         (__P, PTR): Define if not already defined.
1767         (__tzname, __daylight, __timezone): Remove macros; no longer needed.
1768         (add, strftime): Don't use NULL, for portability to some weird hosts.
1769         (fmt): If !_LIBC, don't assume sprintf returns a count.
1770         (week, strftime): Use old-style function declarations.
1771         (weekday_name, month_name): New constants.
1772         (strftime): Use traditional C values if locale support isn't available.
1773         Use `const' instead of CONST.  For time zones, use tm_zone if
1774         possible, then fall back on tzname.  Don't check for multibyte
1775         characters unless mblen is supported.  Use formats like %02d instead
1776         of %.2d, for portability to older hosts.
1777
1778 Wed Jan 24 00:07:52 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1779
1780         * stdio-common/vfscanf.c (GROUP, MALLOC): New flag macros.
1781         (__vfscanf): Eliminate flag vars that were redundant with FLAGS bits.
1782         Fix bug in recognition of %ll flag for long long.
1783         Fix overeager checks for conflicting type modifiers.
1784         With ' flag, match thousands separators for decimal numbers.
1785
1786 Tue Jan 23 22:02:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1787
1788         * locale/Makefile (CFLAGS-locfile-lex.c): New variable.
1789
1790         * resolv/Makefile (CFLAGS): Disable some warnings.
1791
1792         * sysdeps/generic/Makefile (elided-routines): Removed hypot.
1793         (+gccwarn): Set with override.
1794
1795         * stdio-common/Makefile (CFLAGS-tst-printf.c): New variable.
1796
1797         * posix/Makefile (CFLAGS-regex.c): New variable.
1798
1799         * malloc/Makefile (CFLAGS-obstack.c): New variable.
1800
1801         * io/Makefile (CFLAGS-fts.c): New variable.
1802         * io/fts.c (fts_open): Use prototypes for COMPAR decl.
1803
1804 Tue Jan 23 21:35:32 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1805
1806         * sysdeps/mach/hurd/bind.c (bind): Ensure NAME for the AF_LOCAL
1807         case is '\0'-terminated.
1808
1809 Tue Jan 23 19:49:54 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1810
1811         * elf/rtld.c (dl_main): Support additional args in --list mode for
1812         debugging: look them up as symbol names and print values.
1813
1814         * misc/getttyent.c (skip, value): Declare with prototypes in file
1815         scope.
1816
1817         * csu/initfini.c (_init): Explicitly set a variable that is
1818         pointer to volatile with the address of __gmon_start__, to avoid
1819         the test being optimized out.
1820
1821 Mon Jan 22 10:40:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1822
1823         * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h.
1824
1825         * io/fts.h (FTSENT): Define fts_compar member with prototype.
1826
1827         * hurd/hurd.h: Use prototype in getcttyid decl.
1828
1829         * stdlib/l64a.c: Fix typo in last change.
1830
1831         * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof
1832         for determining size of types.
1833         * stdlib/srand48_r.c: Likewise.
1834
1835         * misc/utmp.h: Declare login, logout, logwtmp.
1836         * misc/logout.c: Declare argument as pointer to const.
1837         * misc/login.c: Likewise.
1838         * misc/logwtmp.c: Likewise.
1839         Include time.h, string.h.
1840
1841         * misc/efgcvt_r.c: Include stdlib.h.
1842
1843         * io/mknod.c: Include sys/types.h.
1844
1845         * gmon/sys/gmon.h: Declare monstartup, _mcleanup.
1846
1847         * csu/gmon-start.c (_start, etext): Declare with prototypes.
1848
1849         * stdio-common/vfscanf.c (%[): Fix range handling.
1850
1851 Sun Jan 21 00:55:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1852
1853         * misc/Makefile (headers): Rename queue.h to sys/queue.h.
1854         * misc/queue.h: Moved to misc/sys/queue.h.
1855
1856         * sysdeps/unix/sysv/linux/shmat.c: Include sys/shm.h instead of
1857         sys/sem.h.
1858
1859         * stdlib/stdlib.h [__USE_SVID]: Declare a64l, l64a.
1860
1861         * stdlib/l64a.c: Use 6-bit numbers as indices in CONV_TABLE, not
1862         literal byte values.
1863
1864         * misc/bsd-compat.c (getpgrp): Define with prototype.
1865
1866         * misc/init-misc.c (__progname_full): New variable.
1867         (program_invocation_name, program_invocation_short_name): New aliases.
1868         (__init_misc): Define with prototype.  Set __progname_full.
1869         * misc/progname.c: File removed.
1870         * misc/Makefile (aux): Remove progname.
1871
1872         * misc/hsearch_r.c (isprime): Define with prototype.
1873
1874         * sysdeps/unix/sysv/linux/seteuid.c: Just include unix/bsd version.
1875         * sysdeps/unix/bsd/seteuid.c: Disallow arg of -1.
1876         * sysdeps/unix/bsd/setegid.c: Likewise.
1877
1878 Fri Jan 19 13:28:59 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1879
1880         * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
1881         __tcdrain.
1882
1883         * posix/glob.c (glob): Use prototype in getlogin decl.
1884
1885         * db/ndbm.h: Declare dbm_error, dbm_clearerr.
1886         * db/db/db.c (__dberr): Define with prototype.
1887         (__dbpanic): Use prototypes in casts.
1888         * db/hash/hash_log2.c: Add prototype decl.
1889
1890         * sysdeps/generic/_strerror.c (_strerror_internal): Define with
1891         prototype.
1892
1893         * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
1894         They will be overridden with syscalls if extant by unix/syscalls.list.
1895
1896         * Makeconfig (+gccwarn): Add -Wstrict-prototypes.
1897
1898         * stdio-common/printf_fp.c (__printf_fp): Define with prototype.
1899         * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
1900
1901 Thu Jan 18 00:32:43 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1902
1903         * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
1904
1905         * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
1906         get args.
1907
1908         * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
1909         defines GNU extensions.
1910         * posix/fnmatch.c: Likewise.
1911
1912         Replaced all simple system call files *.S throughout sysdeps/unix
1913         with syscalls.list files to be processed by make-syscalls.sh.
1914         * sysdeps/unix/s-proto.S: New file.
1915         * sysdeps/unix/syscalls.list: New file.
1916         * sysdeps/unix/bsd/syscalls.list: New file.
1917         * sysdeps/unix/bsd/bsd4.4/syscalls.list: New file.
1918         * sysdeps/unix/bsd/hp/m68k/syscalls.list: New file.
1919         * sysdeps/unix/bsd/osf/syscalls.list: New file.
1920         * sysdeps/unix/bsd/osf/alpha/syscalls.list: New file.
1921         * sysdeps/unix/bsd/sony/newsos4/syscalls.list: New file.
1922         * sysdeps/unix/bsd/sun/syscalls.list: New file.
1923         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: New file.
1924         * sysdeps/unix/bsd/ultrix4/syscalls.list: New file.
1925         * sysdeps/unix/common/syscalls.list: New file.
1926         * sysdeps/unix/inet/syscalls.list: New file.
1927         * sysdeps/unix/mman/syscalls.list: New file.
1928         * sysdeps/unix/sysv/syscalls.list: New file.
1929         * sysdeps/unix/sysv/irix4/syscalls.list: New file.
1930         * sysdeps/unix/sysv/isc2.2/syscalls.list: New file.
1931         * sysdeps/unix/sysv/linux/syscalls.list: New file.
1932         * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.
1933         * sysdeps/unix/sysv/sco3.2.4/syscalls.list: New file.
1934         * sysdeps/unix/sysv/sysv4/syscalls.list: New file.
1935         * sysdeps/unix/sysv/sysv4/i386/syscalls.list: New file.
1936         * sysdeps/unix/sysv/sysv4/solaris2/sparc/syscalls.list: New file.
1937         * sysdeps/unix/acct.S: File removed.
1938         * sysdeps/unix/chdir.S: File removed.
1939         * sysdeps/unix/chmod.S: File removed.
1940         * sysdeps/unix/chown.S: File removed.
1941         * sysdeps/unix/chroot.S: File removed.
1942         * sysdeps/unix/close.S: File removed.
1943         * sysdeps/unix/configure: File removed.
1944         * sysdeps/unix/configure.in: File removed.
1945         * sysdeps/unix/dup.S: File removed.
1946         * sysdeps/unix/fcntl.S: File removed.
1947         * sysdeps/unix/fsync.S: File removed.
1948         * sysdeps/unix/getgid.S: File removed.
1949         * sysdeps/unix/getpid.S: File removed.
1950         * sysdeps/unix/getuid.S: File removed.
1951         * sysdeps/unix/ioctl.S: File removed.
1952         * sysdeps/unix/kill.S: File removed.
1953         * sysdeps/unix/link.S: File removed.
1954         * sysdeps/unix/lseek.S: File removed.
1955         * sysdeps/unix/open.S: File removed.
1956         * sysdeps/unix/ptrace.S: File removed.
1957         * sysdeps/unix/read.S: File removed.
1958         * sysdeps/unix/reboot.S: File removed.
1959         * sysdeps/unix/setgid.S: File removed.
1960         * sysdeps/unix/setuid.S: File removed.
1961         * sysdeps/unix/sync.S: File removed.
1962         * sysdeps/unix/umask.S: File removed.
1963         * sysdeps/unix/unlink.S: File removed.
1964         * sysdeps/unix/write.S: File removed.
1965         * sysdeps/unix/bsd/flock.S: File removed.
1966         * sysdeps/unix/bsd/getdtsz.S: File removed.
1967         * sysdeps/unix/bsd/getpagesize.S: File removed.
1968         * sysdeps/unix/bsd/killpg.S: File removed.
1969         * sysdeps/unix/bsd/profil.S: File removed.
1970         * sysdeps/unix/bsd/readv.S: File removed.
1971         * sysdeps/unix/bsd/settimeofday.S: File removed.
1972         * sysdeps/unix/bsd/sigblock.S: File removed.
1973         * sysdeps/unix/bsd/sigpause.S: File removed.
1974         * sysdeps/unix/bsd/sigsetmask.S: File removed.
1975         * sysdeps/unix/bsd/sigstack.S: File removed.
1976         * sysdeps/unix/bsd/sigvec.S: File removed.
1977         * sysdeps/unix/bsd/utimes.S: File removed.
1978         * sysdeps/unix/bsd/writev.S: File removed.
1979         * sysdeps/unix/bsd/bsd4.4/chflags.S: File removed.
1980         * sysdeps/unix/bsd/bsd4.4/fchdir.S: File removed.
1981         * sysdeps/unix/bsd/bsd4.4/fchflags.S: File removed.
1982         * sysdeps/unix/bsd/bsd4.4/getdents.S: File removed.
1983         * sysdeps/unix/bsd/bsd4.4/getdomain.S: File removed.
1984         * sysdeps/unix/bsd/bsd4.4/revoke.S: File removed.
1985         * sysdeps/unix/bsd/bsd4.4/setdomain.S: File removed.
1986         * sysdeps/unix/bsd/bsd4.4/setegid.S: File removed.
1987         * sysdeps/unix/bsd/bsd4.4/seteuid.S: File removed.
1988         * sysdeps/unix/bsd/bsd4.4/setlogin.S: File removed.
1989         * sysdeps/unix/bsd/bsd4.4/setsid.S: File removed.
1990         * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: File removed.
1991         * sysdeps/unix/bsd/bsd4.4/wait4.S: File removed.
1992         * sysdeps/unix/bsd/hp/m68k/getdents.S: File removed.
1993         * sysdeps/unix/bsd/osf/msync.S: File removed.
1994         * sysdeps/unix/bsd/osf/alpha/wait4.S: File removed.
1995         * sysdeps/unix/bsd/sony/newsos4/fchdir.S: File removed.
1996         * sysdeps/unix/bsd/sony/newsos4/sys_wait4.S: File removed.
1997         * sysdeps/unix/bsd/sun/getdents.S: File removed.
1998         * sysdeps/unix/bsd/sun/sunos3/m68k/wait.S: File removed.
1999         * sysdeps/unix/bsd/sun/sunos4/msync.S: File removed.
2000         * sysdeps/unix/bsd/sun/sunos4/poll.S: File removed.
2001         * sysdeps/unix/bsd/sun/sunos4/setsid.S: File removed.
2002         * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: File removed.
2003         * sysdeps/unix/bsd/sun/sunos4/sys_wait4.S: File removed.
2004         * sysdeps/unix/bsd/sun/sunos4/uname.S: File removed.
2005         * sysdeps/unix/bsd/ultrix4/getdents.S: File removed.
2006         * sysdeps/unix/bsd/ultrix4/setsid.S: File removed.
2007         * sysdeps/unix/bsd/ultrix4/uname.S: File removed.
2008         * sysdeps/unix/common/access.S: File removed.
2009         * sysdeps/unix/common/adjtime.S: File removed.
2010         * sysdeps/unix/common/dup2.S: File removed.
2011         * sysdeps/unix/common/fchmod.S: File removed.
2012         * sysdeps/unix/common/fchown.S: File removed.
2013         * sysdeps/unix/common/ftruncate.S: File removed.
2014         * sysdeps/unix/common/getgroups.S: File removed.
2015         * sysdeps/unix/common/getitimer.S: File removed.
2016         * sysdeps/unix/common/getpgid.S: File removed.
2017         * sysdeps/unix/common/getpriority.S: File removed.
2018         * sysdeps/unix/common/getrlimit.S: File removed.
2019         * sysdeps/unix/common/getrusage.S: File removed.
2020         * sysdeps/unix/common/gettimeofday.S: File removed.
2021         * sysdeps/unix/common/mkdir.S: File removed.
2022         * sysdeps/unix/common/readlink.S: File removed.
2023         * sysdeps/unix/common/rename.S: File removed.
2024         * sysdeps/unix/common/rmdir.S: File removed.
2025         * sysdeps/unix/common/select.S: File removed.
2026         * sysdeps/unix/common/setgroups.S: File removed.
2027         * sysdeps/unix/common/setitimer.S: File removed.
2028         * sysdeps/unix/common/setpgid.S: File removed.
2029         * sysdeps/unix/common/setpriority.S: File removed.
2030         * sysdeps/unix/common/setregid.S: File removed.
2031         * sysdeps/unix/common/setreuid.S: File removed.
2032         * sysdeps/unix/common/setrlimit.S: File removed.
2033         * sysdeps/unix/common/swapon.S: File removed.
2034         * sysdeps/unix/common/symlink.S: File removed.
2035         * sysdeps/unix/common/truncate.S: File removed.
2036         * sysdeps/unix/common/vhangup.S: File removed.
2037         * sysdeps/unix/inet/accept.S: File removed.
2038         * sysdeps/unix/inet/bind.S: File removed.
2039         * sysdeps/unix/inet/connect.S: File removed.
2040         * sysdeps/unix/inet/gethostid.S: File removed.
2041         * sysdeps/unix/inet/gethostname.S: File removed.
2042         * sysdeps/unix/inet/getpeername.S: File removed.
2043         * sysdeps/unix/inet/getsockname.S: File removed.
2044         * sysdeps/unix/inet/getsockopt.S: File removed.
2045         * sysdeps/unix/inet/listen.S: File removed.
2046         * sysdeps/unix/inet/recv.S: File removed.
2047         * sysdeps/unix/inet/recvfrom.S: File removed.
2048         * sysdeps/unix/inet/recvmsg.S: File removed.
2049         * sysdeps/unix/inet/send.S: File removed.
2050         * sysdeps/unix/inet/sendmsg.S: File removed.
2051         * sysdeps/unix/inet/sendto.S: File removed.
2052         * sysdeps/unix/inet/sethostid.S: File removed.
2053         * sysdeps/unix/inet/sethostname.S: File removed.
2054         * sysdeps/unix/inet/setsockopt.S: File removed.
2055         * sysdeps/unix/inet/shutdown.S: File removed.
2056         * sysdeps/unix/inet/socket.S: File removed.
2057         * sysdeps/unix/inet/socketpair.S: File removed.
2058         * sysdeps/unix/mman/madvise.S: File removed.
2059         * sysdeps/unix/mman/mmap.S: File removed.
2060         * sysdeps/unix/mman/mprotect.S: File removed.
2061         * sysdeps/unix/mman/msync.S: File removed.
2062         * sysdeps/unix/mman/munmap.S: File removed.
2063         * sysdeps/unix/sysv/alarm.S: File removed.
2064         * sysdeps/unix/sysv/ftime.S: File removed.
2065         * sysdeps/unix/sysv/nice.S: File removed.
2066         * sysdeps/unix/sysv/pause.S: File removed.
2067         * sysdeps/unix/sysv/poll.S: File removed.
2068         * sysdeps/unix/sysv/s_getdents.S: File removed.
2069         * sysdeps/unix/sysv/signal.S: File removed.
2070         * sysdeps/unix/sysv/stime.S: File removed.
2071         * sysdeps/unix/sysv/time.S: File removed.
2072         * sysdeps/unix/sysv/times.S: File removed.
2073         * sysdeps/unix/sysv/ulimit.S: File removed.
2074         * sysdeps/unix/sysv/uname.S: File removed.
2075         * sysdeps/unix/sysv/utime.S: File removed.
2076         * sysdeps/unix/sysv/irix4/getpgid.S: File removed.
2077         * sysdeps/unix/sysv/irix4/msync.S: File removed.
2078         * sysdeps/unix/sysv/irix4/setpgid.S: File removed.
2079         * sysdeps/unix/sysv/irix4/signal.S: File removed.
2080         * sysdeps/unix/sysv/irix4/sysmp.S: File removed.
2081         * sysdeps/unix/sysv/irix4/syssgi.S: File removed.
2082         * sysdeps/unix/sysv/isc2.2/rename.S: File removed.
2083         * sysdeps/unix/sysv/linux/adjtimex.S: File removed.
2084         * sysdeps/unix/sysv/linux/fork.S: File removed.
2085         * sysdeps/unix/sysv/linux/getpgid.S: File removed.
2086         * sysdeps/unix/sysv/linux/getpgrp.S: File removed.
2087         * sysdeps/unix/sysv/linux/getsid.S: File removed.
2088         * sysdeps/unix/sysv/linux/gtty.S: File removed.
2089         * sysdeps/unix/sysv/linux/mlock.S: File removed.
2090         * sysdeps/unix/sysv/linux/mlockall.S: File removed.
2091         * sysdeps/unix/sysv/linux/mount.S: File removed.
2092         * sysdeps/unix/sysv/linux/munlock.S: File removed.
2093         * sysdeps/unix/sysv/linux/munlockall.S: File removed.
2094         * sysdeps/unix/sysv/linux/pipe.S: File removed.
2095         * sysdeps/unix/sysv/linux/s_ptrace.S: File removed.
2096         * sysdeps/unix/sysv/linux/setpgid.S: File removed.
2097         * sysdeps/unix/sysv/linux/setsid.S: File removed.
2098         * sysdeps/unix/sysv/linux/settimeofday.S: File removed.
2099         * sysdeps/unix/sysv/linux/sigpending.S: File removed.
2100         * sysdeps/unix/sysv/linux/stty.S: File removed.
2101         * sysdeps/unix/sysv/linux/umount.S: File removed.
2102         * sysdeps/unix/sysv/linux/wait4.S: File removed.
2103         * sysdeps/unix/sysv/linux/i386/ipc.S: File removed.
2104         * sysdeps/unix/sysv/sco3.2.4/pathconf.S: File removed.
2105         * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: File removed.
2106         * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: File removed.
2107         * sysdeps/unix/sysv/sco3.2.4/sigpending.S: File removed.
2108         * sysdeps/unix/sysv/sco3.2.4/sigprocmask.S: File removed.
2109         * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: File removed.
2110         * sysdeps/unix/sysv/sysv4/pgrpsys.S: File removed.
2111         * sysdeps/unix/sysv/sysv4/sigprocmask.S: File removed.
2112         * sysdeps/unix/sysv/sysv4/sigsuspend.S: File removed.
2113         * sysdeps/unix/sysv/sysv4/sysconfig.S: File removed.
2114         * sysdeps/unix/sysv/sysv4/sysinfo.S: File removed.
2115         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: File removed.
2116
2117         * io/mknod.c: New file.
2118
2119         * Makerules (COMPILE.s): New variable.
2120
2121         * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with
2122         make-syscalls.sh and include it.
2123         [$(subdir)=misc] (sysdep_routines): Append extra syscalls from
2124         sysd-syscalls.
2125         * sysdeps/unix/make-syscalls.sh: New file.
2126
2127         * Makerules (COMPILE.S): New variable.
2128
2129 Wed Jan 17 11:04:58 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2130
2131         * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
2132         _STAT_VER_SVR4, _STAT_VER): New macros.
2133         (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
2134
2135         * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
2136         New macros.
2137
2138         * io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
2139         (__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
2140         [__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
2141         as `extern inline's calling the `x' functions.
2142         * io/fstat.c: New file.
2143         * io/lstat.c: New file.
2144         * io/stat.c: New file.
2145         * sysdeps/generic/lstat.c: File removed.
2146         * sysdeps/generic/lxstat.c: New file.
2147         * sysdeps/mach/hurd/fstat.c: File removed.
2148         * sysdeps/mach/hurd/fxstat.c: New file.
2149         * sysdeps/mach/hurd/lstat.c: File removed.
2150         * sysdeps/mach/hurd/lxstat.c: New file.
2151         * sysdeps/mach/hurd/mknod.c: File removed.
2152         * sysdeps/mach/hurd/stat.c: File removed.
2153         * sysdeps/mach/hurd/xmknod.c: New file.
2154         * sysdeps/mach/hurd/xstat.c: New file.
2155         * sysdeps/stub/fstat.c: File removed.
2156         * sysdeps/stub/fxstat.c: New file.
2157         * sysdeps/stub/lstat.c: File removed.
2158         * sysdeps/stub/lxstat.c: New file.
2159         * sysdeps/stub/mknod.c: File removed.
2160         * sysdeps/stub/stat.c: File removed.
2161         * sysdeps/stub/xmknod.c: New file.
2162         * sysdeps/stub/xstat.c: New file.
2163         * sysdeps/unix/common/lstat.S: File removed.
2164         * sysdeps/unix/common/lxstat.c: New file.
2165         * sysdeps/unix/fstat.S: File removed.
2166         * sysdeps/unix/fxstat.c: New file.
2167         * sysdeps/unix/mknod.S: File removed.
2168         * sysdeps/unix/stat.S: File removed.
2169         * sysdeps/unix/sysv/linux/fstat.c: File removed.
2170         * sysdeps/unix/sysv/linux/i386/fxstat.S: File removed.
2171         * sysdeps/unix/sysv/linux/i386/lxstat.S: File removed.
2172         * sysdeps/unix/sysv/linux/i386/xmknod.S: File removed.
2173         * sysdeps/unix/sysv/linux/i386/xstat.S: File removed.
2174         * sysdeps/unix/sysv/linux/lstat.c: File removed.
2175         * sysdeps/unix/sysv/linux/mknod.c: File removed.
2176         * sysdeps/unix/sysv/linux/stat.c: File removed.
2177         * sysdeps/unix/sysv/sysv4/i386/fstat.S: File removed.
2178         * sysdeps/unix/sysv/sysv4/i386/lstat.S: File removed.
2179         * sysdeps/unix/sysv/sysv4/i386/mknod.S: File removed.
2180         * sysdeps/unix/sysv/sysv4/i386/stat.S: File removed.
2181         * sysdeps/unix/xmknod.c: New file.
2182         * sysdeps/unix/xstat.c: New file.
2183         * sysdeps/unix/mkfifo.c: Use __xmknod instead of __mknod.
2184         * misc/Makefile (routines): Remove mknod.
2185
2186         * sysdeps/ieee754/ieee754.h (union ieee854_long_double.ieee_nan):
2187         Add missing ; in little-endian case.
2188
2189         * elf/dynamic-link.h [ELF_MACHINE_NO_REL] (ELF_DYNAMIC_DO_REL):
2190         Define this instead of ELF_DYNAMIC_DO_RELA.
2191
2192         * sysdeps/unix/sysv/time.S: Moved from sysv4.
2193         * sysdeps/unix/sysv/irix4/time.S: File removed.
2194
2195         * sysdeps/unix/sysv/linux/signum.h: Moved from
2196         sysdeps/unix/sysv/linux/i386.
2197         (_NSIG): Move inside #ifdef _SIGNAL_H.
2198
2199 Tue Jan 16 17:37:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2200
2201         * sysdeps/unix/seekdir.c: Don't modify POS before seeking.
2202         * sysdeps/unix/telldir.c: Fix position calculation to account for
2203         buffered data properly.
2204
2205         * sysdeps/m68k/Makefile (crypt): Don't define if building a shared
2206         library.
2207
2208         * csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
2209         * csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
2210         global.
2211         [! HAVE_INITFINI]: Only make it a constructor in this case.
2212
2213         * gmon/Makefile (CFLAGS-mcount.c): New variable.
2214         (mcount.po): New target.
2215
2216         * Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
2217
2218         * csu/Makefile [have-initfini=yes] (CPPFLAGS): Append -DHAVE_INITFINI.
2219         (initfini): Compile initfini.c with -fPIC.
2220
2221 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
2222
2223         * sysdeps/mips/bytesex.h: Add default byte sex.  By Ralf Baechle.
2224
2225         * sysdeps/unix/sysv/linux/adjtime.c [! MOD_OFFSET]: Use `mode'
2226         member of `struct timex' instead of `modes'.  From Andreas Schwab.
2227
2228         * sysdeps/unix/sysv/linux/mknod.c: New file.  Generic C version.
2229         * sysdeps/unix/sysv/linux/i386/mknod.S: Remove assembler version.
2230
2231         * sysdeps/unix/sysv/linux/Makefile (inhibit-glue): New variable.
2232         [$(subdir) = misc] (sysdep_routines): Add mount, umount, and s_ptrace.
2233         [$(subdir) = misc] (headers): Append sys/mount.h.
2234
2235         * sysdeps/unix/sysv/linux/mount.S, sysdeps/unix/sysv/linux/umount.S:
2236         New files.  Implement system calls.
2237         * sysdeps/unix/sysv/linux/sys/mount.h: New header file.
2238
2239         * sysdeps/unix/sysv/linux/ptrace.c: New file.  Wrapper around
2240         ptrace system call.
2241         * sysdeps/unix/sysv/linux/s_ptrace.S: New file: ptrace system call.
2242
2243         * sysdeps/unix/sysv/linux/i386/gnu/types.h: New file with correct
2244         types for i386/Linux.
2245
2246 Sun Jan 14 17:51:09 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2247
2248         * MakeTAGS (all-sources, all-headers): Always search the
2249         current directory first.
2250
2251         * db/btree/bt_seq.c (__bt_first): Return RET_SPECIAL when key not
2252         found.
2253
2254         * stdio-common/vfscanf.c (inchar, conv_error, input_error,
2255         memory_error): Add cast to void to avoid gcc warning.
2256         (vfscanf): Rewrite character class parsing to make it more efficient.
2257
2258         * misc/efgcvt_r.c (ecvt_r): Handle negative values.
2259
2260         * stdlib/stdlib.h: Replace __CONSTVALUE by attribute.
2261         * stdlib/abs.c, stdlib/div.c, stdlib/labs.c, stdlib/ldiv.c,
2262         sysdeps/generic/hypot.c: Remove obsolete __CONSTVALUE.
2263
2264         * stdio-common/printf_fp.c (__printf_fp): Fix parameter
2265         declaration.
2266
2267         * sysdeps/generic/putenv.c (putenv): Fix second argument of
2268         setenv.
2269
2270         * sysdeps/ieee754/hypot.c: New file, extracted out of cabs.c.
2271         * sysdeps/ieee754/cabs.c: Don't define hypot here.
2272
2273         * sysdeps/ieee754/ieee754.h (union ieee854_long_double): Fix
2274         definition of ieee_nan alternative.
2275
2276         * sysdeps/m68k/__longjmp.c, sysdeps/m68k/setjmp.c: Add register
2277         prefix spec.
2278
2279         * sysdeps/m68k/ffs.c (ffs): Fix register constraint.
2280
2281         * sysdeps/m68k/fpu/__math.h: Include <errno.h>.  Replace obsolete
2282         __CONSTVALUE by attribute.
2283         (floor): Round to negative infinity.
2284         (rint, expm1) [__NO_MATH_INLINES]: Don't define, to avoid type
2285         clash when compiling source.
2286         (pow): Handle x == 0 and x < 0.
2287         (ceil, __isinf, __isnan): Fix register constraints.
2288         (__isinfl, __isnanl): Added.
2289         * sysdeps/m68k/fpu/acos.c, sysdeps/m68k/fpu/atan2.c,
2290         sysdeps/m68k/fpu/fmod.c, sysdeps/m68k/fpu/ldexp.c,
2291         sysdeps/m68k/fpu/pow.c: Remove obsolete __CONSTVALUE.
2292
2293         * sysdeps/m68k/bsd-_setjmp.S, sysdeps/m68k/bsd-setjmp.S: Fix
2294         assembler syntax.
2295
2296         * sysdeps/unix/bsd/bsd4.4/fchdir.S (fchdir): Take only one
2297         argument.
2298
2299         * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Fix timeval to
2300         clock_t conversion.
2301         (clock): Don't multiply by CLOCKS_PER_SEC.
2302
2303         * sysdeps/unix/bsd/poll.c (poll): Fix msec to timeval conversion.
2304
2305         * sysdeps/unix/bsd/sun/m68k/brk.S (brk): Compare with address of
2306         __end.
2307
2308         * sysdeps/unix/bsd/sun/m68k/vfork.S: Fix assembler syntax.
2309
2310         * sysdeps/unix/bsd/ualarm.c (ualarm): Fix timeval calculation.
2311
2312         * sysdeps/unix/bsd/vax/vfork.S: Remove duplicate label.
2313
2314 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
2315
2316         * stdlib/strtol.c: Return correct pointer for strings
2317         like "0xyz" and base 0 or 16.
2318
2319         * string/strxfrm.c: Handle case for LENGTH == 0 correct.
2320
2321         * sunrpc/etc.rpc: Add some more known protocols.
2322
2323 Fri Jan 12 13:40:01 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2324
2325         * posix/gnu/types.h: Moved to sysdeps/generic/gnu/types.h.
2326
2327         * posix/glob.c (glob): Add parens in glob call flags arg for
2328         GLOB_BRACE case.
2329
2330         * string/string.h (strdupa): New macro.
2331
2332         * stdio-common/vfscanf.c (%[): Grok ] as first char in set, not
2333         terminator on empty set.  From drepper.
2334
2335 Thu Jan 11 13:09:20 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2336
2337         * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
2338         referent for STB_LOCAL.
2339
2340 Wed Jan 10 10:11:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2341
2342         * time/africa, time/antarctica, time/asia, time/australasia,
2343         time/europe, time/northamerica, time/pacificnew, time/solar87,
2344         time/solar88, time/solar89, time/southamerica: Updated from ADO 96a.
2345
2346 Tue Jan  9 16:10:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2347
2348         * elf/dl-load.c (_dl_map_object_from_fd): After mapping first
2349         segment to find location, mprotect excess region to no access,
2350         don't munmap it.
2351
2352         * sysdeps/mach/hurd/dl-sysdep.c (mmap): If vm_map returns
2353         KERN_NO_SPACE for fixed location, deallocate it and try again.
2354
2355 Mon Jan  8 17:43:23 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2356
2357         * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
2358         * locale/hash.c: Renamed to locale/locfile-hash.c.
2359
2360 Sat Jan  6 16:39:14 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2361
2362         * Makefile (subdirs): Added db.
2363
2364         * resolv/Makefile (routines): Add res_data.
2365         * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
2366         Updated from BIND 4.9.3 final release.
2367
2368         * elf/dynamic-link.h (elf_get_dynamic_info): Handle
2369         processor-specific tags.
2370         (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
2371
2372         * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
2373         * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
2374
2375         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
2376         arg LAZY.  Only do our work if LAZY and there is a DT_JMPREL record.
2377         * elf/dl-reloc.c (_dl_relocate_object): Call
2378         elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
2379
2380         * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
2381         Align end of load segment only to page size, not to segment alignment.
2382
2383 Thu Jan  4 11:35:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2384
2385         * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
2386         preemption interface.
2387
2388         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2389         Use _hurdsig_catch_memory_fault.
2390
2391         * hurd/Makefile (headers): Add hurd/sigpreempt.h.
2392         (sig): Add catch-signal.
2393
2394         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2395         Rewritten using a preempter in new interface.
2396         * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
2397         (_hurdsig_catch_memory_fault): New macro.
2398
2399 Wed Jan  3 20:23:42 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2400
2401         * hurd/catch-signal.c: New file.
2402
2403         * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
2404
2405         * hurd/hurdsig.c: Use new hurdfault.h interface.
2406         (abort_all_rpcs): Mutate return value to EINTR in threads whose
2407         replies we will wait for.
2408
2409         * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
2410         do ourselves last.
2411
2412 Wed Jan  3 19:17:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2413
2414         * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
2415         to auth_makeauth() in the right order.
2416
2417 Wed Jan  3 17:19:04 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2418
2419         * sysdeps/generic/strsep.c: Rewritten.
2420
2421         * sysdeps/mach/hurd/fork.c: Use a different workaround for the
2422         suspended page fault deadlock kernel bug: thread_abort our signal
2423         thread first thing after proc_dostop.
2424
2425         * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
2426         recognize rootness properly.
2427
2428 Tue Jan  2 00:50:10 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2429
2430         * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
2431         (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
2432         * hurd/hurd/sigpreempt.h: New file.
2433         * hurd/preempt-sig.c: Rewritten with new interface.
2434         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
2435         preempters being unwound past.
2436         * hurd/hurdsig.c: Use new signal preemption interface.
2437
2438         * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
2439         release.
2440
2441         * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
2442         compatibility.
2443
2444         * misc/queue.h: New file, incorporated from 4.4BSD.
2445         * misc/Makefile (headers): Add queue.h.
2446
2447         * posix/sys/types.h [__USE_BSD]: Include endian.h.
2448
2449         * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
2450         New macros.
2451
2452 Thu Dec 28 10:21:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2453
2454         * sysdeps/generic/confname.h: Define all names as self-referential
2455         macros so #ifdef works.
2456
2457         * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
2458         of _hurd_signal_preempters[SIGNO].
2459
2460 Mon Dec 25 20:56:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2461
2462         * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
2463         EADDRINUSE.  If translated node doesn't grok ifsock protocol,
2464         return EADDRINUSE.
2465
2466         * sysdeps/mach/hurd/connect.c: Make address arg
2467         `const struct sockaddr_un *'.
2468         The redecl is kosher and avoids another variable for AF_LOCAL case.
2469         * sysdeps/mach/hurd/sendto.c: Likewise.
2470         * sysdeps/mach/hurd/bind.c: Likewise.
2471
2472         * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
2473         code for GCC >= 2.7; use __transparent_union__ for name safety;
2474         add several sockaddr flavors.
2475         (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
2476         constructing the transparent union declarations.
2477         (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
2478         (bind, connect, sendto): Make the sockaddr argument use that.
2479
2480 Fri Dec 22 00:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2481
2482         * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
2483         old vector.
2484         * sysdeps/mach/hurd/setuid.c: Likewise.
2485
2486         * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
2487         right thing.
2488         * sysdeps/mach/hurd/setgid.c: Likewise.
2489         * sysdeps/mach/hurd/setreuid.c: Likewise.
2490         * sysdeps/mach/hurd/setregid.c: Likewise.
2491         * sysdeps/mach/hurd/setegid.c: Likewise.
2492         * sysdeps/mach/hurd/seteuid.c: Likewise.
2493
2494         * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
2495         proc_dostop call to work around kernel paging bug.
2496
2497 Fri Dec 22 00:38:00 1995  H.J. Lu  <hjl@nynexst.com>
2498
2499         * stdio-common/vfscanf.c: Correctly handle white space skipping.
2500         * stdio-common/Makefile (tests): Add bug11.
2501         * stdio-common/bug11.c: New file.
2502
2503 Thu Dec 21 12:19:32 1995  Miles Bader  <miles@gnu.ai.mit.edu>
2504
2505         * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
2506         instead of putting it (and other uids) in the gids and leaving the
2507         old uids as is.
2508
2509 Wed Dec 20 18:23:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2510
2511         * stdio/internals.c (flushbuf): If the target is -1, always
2512         discard the buffer of read data.
2513         Only set TWIDDLED flag in !ALIGNED case.
2514         Never increment target or offset when old value is -1.
2515
2516 Tue Dec 19 17:00:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2517
2518         * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
2519         pgrp changes.
2520
2521 Mon Dec 18 13:40:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2522
2523         * stdio/fread.c: Don't increment __offset when it's -1.
2524
2525         * elf/rtld.c (dl_main): Prepend tab to "statically linked".  Exit
2526         0 in that case.
2527
2528         * misc/err.c (vwarnx, vwarn): Fix major brainos.
2529
2530         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
2531         inheritance.
2532
2533 Sun Dec 17 15:56:35 1995  Miles Bader  <miles@gnu.ai.mit.edu>
2534
2535         * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
2536
2537 Sat Dec 16 10:33:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2538
2539         * Makerules: Use $(do-install-so) for installing shared objects.
2540         (do-install-so): New canned sequence.  Make a symlink LIB.so after
2541         installing LIB.so.VERSION.
2542
2543         * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
2544
2545 Fri Dec 15 04:41:22 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2546
2547         * stdio-common/Makefile (tests): Add bug10.
2548         * stdio-common/bug10.c: New file.  From HJ Lu.
2549
2550         * stdio-common/tstdiomisc.c: Make more test-suite like: exit
2551         status tells about successful run.
2552
2553         * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
2554         format correctness.
2555         Correct handling of trailing white spaces in format + EOF.
2556
2557 Fri Dec 15 01:31:56 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2558
2559         * stdio-common/Makefile (tests): Add bug8 and bug9.
2560         * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
2561
2562         * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
2563
2564         * stdlib/strtod.c: Correct spelling: nominator -> numerator.
2565         Thanks to Jim Meyering.
2566
2567 Sat Nov 25 06:05:12 1995  H.J. Lu  <hjl@nynexst.com>
2568
2569         * stdio-common/vfscanf.c: Always check width !=0.
2570         Correctly handle %%.
2571
2572 Thu Dec 14 02:28:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2573
2574         * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
2575         and cast STREAM to DIR * before passing to readdir and closedir.
2576
2577 Wed Dec 13 22:06:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2578
2579         * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
2580         after aborting RPCs but before calling proc_mark_stop.
2581
2582 Mon Dec 11 20:07:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2583
2584         * posix/glob.c [! STDC_HEADERS]: Declare getenv.
2585         (glob): Avoid using function as value.
2586
2587         * elf/rtld.c (dl_main): When mapping argument executable, set
2588         l_name to "", not l_libname.
2589         After loading DT_NEEDED library, set its l_type to lt_library.
2590
2591         * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
2592         VM_INHERIT.  We can't handle MAP_INHERIT easily.
2593         Handle non-page-aligned addresses if congruent to offset.
2594
2595         * elf/dl-init.c: Skip the initializer for l_type lt_executable
2596         with l_name "". Start at _dl_loaded; don't skip the first element.
2597
2598         * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
2599         (MAP_COPY): Define to MAP_PRIVATE if undefined.
2600         (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
2601         If file it ET_EXEC, set its l_type to lt_executable.
2602
2603 Sun Dec 10 09:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2604
2605         * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
2606
2607 Fri Dec  8 13:04:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2608
2609         * locale/error.c, locale/error.h: Files removed.
2610         * locale/Makefile (distribute): Remove error.h.
2611         (lib-modules): Remove error.
2612
2613         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
2614         magic, return ENXIO if no ctty.
2615
2616         * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
2617         mapping if vm_map fails for that reason.
2618
2619         * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
2620         GLOB_TILDE, GLOB_NOMAGIC.
2621         (glob): Use stat instead of lstat to determine directoriness.
2622         * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
2623         New flag bits.
2624         (__GLOB_FLAGS): Include them.
2625         (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
2626         gl_stat.
2627
2628         * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
2629
2630         * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
2631         define all the bit values.
2632         (MAP_*, MCL_*): Macros removed.
2633
2634 Thu Dec  7 02:27:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2635
2636         * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
2637         Updated from BIND 4.9.3-BETA27.
2638
2639 Wed Dec  6 18:44:01 1995  Miles Bader  <miles@gnu.ai.mit.edu>
2640
2641         * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
2642
2643         * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
2644         we get a delayed reply.
2645         Only grab values out of entries in TYPES that have SELECT_RETURNED
2646         turned on, and turn it on whenever an rpc returns.
2647         Only clear bits in the user's fdsets -- those needing to be set
2648         should be already.
2649         Use SELECT_ALL in appropiate places.
2650         (SELECT_RETURNED, SELECT_ALL): New macros.
2651
2652 Wed Dec  6 09:10:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2653
2654         * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
2655
2656         * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
2657
2658 Tue Dec  5 14:00:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2659
2660         * misc/Makefile (headers): Add error.h, err.h.
2661         (routines): Add error, err.
2662         (gpl2lgpl): New variable.
2663         * misc/err.c: New file.
2664         * misc/err.h: New file.
2665         * misc/error.c, misc/error.h: New files.
2666
2667         * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
2668
2669         * Makeconfig (+link): Translate libc% from $^, not just libc.a.
2670         (link-libc): Append $(libc.so-version) to libc.so.
2671         (built-program-cmd): Fix comma usage.
2672         * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
2673         symlink to libc.so in the build directory.
2674         * Rules ($(others) $(tests)): Depend on the library that appears
2675         in $(link-libc).
2676         (%.out): Use $(built-program-cmd) in commands.
2677
2678         * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
2679
2680         * sysdeps/generic/setenv.c: Added canonical portability cruft.
2681         (setenv): Use realloc on LAST_ENVIRON instead of always copying.
2682         (unsetenv): New function.
2683         * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
2684         * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
2685
2686 Tue Dec  5 02:27:32 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2687
2688         * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
2689
2690         * libio/iofscanf.c: Remove file.
2691
2692         * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
2693         termination.
2694
2695         * libio/iopopen.c: New file from GNU libio.
2696
2697         * libio/memstream.c: Fixed bug in fclose handling.  Instead of
2698         providing a close callback we need a finish callback.
2699
2700         * libio/pclose.c: New file.  Derived from popen.c in GNU libio.
2701
2702         * posix/gnu/types.h: Fixed typo.
2703
2704         * stdio-common/errnobug.c: fputs returns EOF in error case.  Do
2705         not test for != 0.
2706
2707         * stdio-common/printf-parse.h (parse_one_spec): Do not force
2708         padding with ' ' if precision is given.  Fix by HJ Lu.
2709
2710         * stdio-common/printf_fp.c: Fix comment.
2711
2712         * stdio-common/tfformat.c, stdio-common/tiformat.c,
2713         stdio-common/tstdiomisc.c: New files from GNU libio test suite.
2714
2715         * stdio-common/tstgetln.c: Provide ssize_t type when testing
2716         libio.
2717
2718         * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
2719         (vfprintf): Cleasr args_type array before using it.
2720         When printing 0 as an integer with precision 0 nothing must be
2721         written for the number.
2722         Based on patch by HJ Lu.
2723
2724         * stdio-common/vfscanf.c: Remove fixed input buffer.  Now we
2725         have a dynamically extended buffer.
2726
2727         * stdlib/strtod.c: Merge with version in Linux libc.  This fixes
2728         some bugs with handling of very small numbers and has different
2729         solution for formaer patches.
2730
2731         * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
2732         macros r1 and r2 to t1, and t2 resp.  This is necessary because
2733         glibc headers also define r1.
2734
2735 Mon Dec  4 12:10:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2736
2737         * stdlib/gen-mpn-copy (translations): Updated for new layout in
2738         GMP 1.910.
2739
2740         * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
2741         made global.
2742         (malloc): Caller changed.
2743         * malloc/realloc.c (realloc): Call __malloc_initialize if
2744         necessary, before checking hook.
2745         * malloc/malloc.h: Declare __malloc_initialize.
2746
2747         * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
2748         as integer_t arg in RPC.
2749
2750 Sat Dec  2 03:47:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2751
2752         * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
2753         (_hurd_set_brk): Try to allocate more space when we run out.
2754
2755         * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
2756         zero and examine it again.
2757         * sysdeps/unix/sysv/linux/i386/brk.c: New file.
2758         * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
2759         * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
2760         * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
2761         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
2762         Invoke this macro before calling DL_MAIN.
2763
2764         * malloc/malloc.c (malloc): Do initialization here, before
2765         checking the hook.
2766         (_malloc_internal): Don't do it here.
2767
2768 Wed Nov 29 12:30:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2769
2770         * libio/vsnprintf.c (__vsnprintf): Define as alias.
2771         * libio/iovsscanf.c (__vsscanf): Define as alias.
2772         * asprintf.c: Remove libio adaptation code added by drepper.
2773         * dprintf.c: Likewise.
2774         * printf.c: Likewise.
2775         * scanf.c: Likewise.
2776         * snprintf.c: Likewise.
2777         * sprintf.c: Likewise.
2778         * sscanf.c: Likewise.
2779         * vprintf.c: Likewise.
2780         * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
2781         function.
2782         (vfscanf): Define unconditionally.
2783
2784         * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
2785         zero for value.
2786
2787         * misc/getpass.c: Write a newline after reading the unechoed
2788         password.
2789
2790 Mon Nov 27 19:24:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2791
2792         * posix/Makefile (routines): Add getsid.
2793         * sysdeps/unix/sysv/linux/getsid.S: New file.
2794         * sysdeps/mach/hurd/getsid.c: New file.
2795         * sysdeps/stub/getsid.c: New file.
2796         * posix/unistd.h [__USE_GNU]: Declare getsid.
2797
2798 Sun Nov 26 12:44:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2799
2800         * libc-symbols.h (N_): New macro.
2801
2802 Sat Nov 25 02:48:47 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2803
2804         * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
2805         malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
2806         resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
2807         sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
2808         sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
2809         sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
2810         sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
2811         sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
2812         strings.
2813
2814 Sun Nov 26 02:00:02 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2815
2816         * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
2817
2818 Thu Nov 23 02:21:55 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2819
2820         * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
2821         New files.
2822         * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
2823         mlock, munlock, mlockall, and munlockall.
2824
2825 Thu Nov 23 18:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2826
2827         * configure.in (--enable-libio): Set $stdio based on $enableval,
2828         not always to libio.
2829
2830 Thu Nov 23 18:06:48 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
2831
2832         * malloc/malloc.c (_malloc_internal): Can't use
2833         get_contiguous_space when the heap info table
2834         will be growing.  Account for new contiguous space in _heaplimit.
2835
2836 Wed Nov 22 12:37:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2837
2838         * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
2839         for errno.
2840
2841         * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
2842         alias for _IO_vfprintf.
2843
2844         * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
2845
2846         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
2847         __fpu_control instead of ___fpu_control.
2848         * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
2849         (___fpu_control): Renamed to __fpu_control.
2850         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
2851         * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
2852
2853         * elf/dl-minimal.c: New file.
2854         * elf/Makefile (rtld-routines): Add dl-minimal.
2855         * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
2856         Functions moved to dl-minimal.c.
2857         * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
2858         sigjmp_save, longjmp): Likewise.
2859
2860         * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
2861         to &_end, regardless of PIC.
2862
2863         * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
2864
2865 Tue Nov 21 14:12:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2866
2867         * malloc/malloc.c (align): Don't check contiguity and call abort.
2868
2869         * hurd/hurdsig.c (post_reply): Function removed.
2870         (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
2871         Take single callback fn arg instead of reply port and type.
2872         (_hurd_internal_post_signal): Callers changed.
2873         Cache reply stub fn ptr in local var before UNTRACED might be changed.
2874
2875         * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
2876         PROT_READ|PROT_WRITE copy mapping.  Pass a proper vm_inherit_t to
2877         vm_map.
2878
2879         * elf/rtld.c (_dl_start): For --list, do output and exit before
2880         relocating.
2881
2882 Mon Nov 20 16:19:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2883
2884         * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
2885         get .c and .h files.
2886
2887         * malloc/malloc.c (align): Use abort instead of assert.
2888
2889 Sun Nov 19 18:23:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2890
2891         * Makeconfig (+includes): Add $($(stdio)-include).
2892         (libio-include): New variable.
2893
2894         * stdlib/strtod.c: Put weak_symbol after function defn.
2895         * stdlib/strtol.c: Likewise.
2896
2897         * configure.in (--enable-libio): If not present, set $stdio to
2898         "default".  Move stdio/libio check to end, so sysdeps fragments
2899         can affect it.  Reset $stdio to "stdio" if it's "default".
2900         * sysdeps/unix/sysv/linux/configure: New file.
2901
2902 Sat Nov 18 16:46:01 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2903
2904         * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
2905         libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
2906         libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
2907         libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
2908         libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
2909         libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
2910         libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
2911         libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
2912         libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
2913         libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
2914         libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
2915         libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
2916         libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
2917         libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
2918         libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
2919         New files.  Slightly modified version from Linux libc.
2920
2921         * libio/memstream.c, libio/vdprintf.c: New files for functions not
2922         (yet) part of GNU libio.
2923
2924         * libio/iofopncook.c: Implementation of `fopencookie', mainly written
2925         by Per Bothner.
2926
2927         * stdio-common/getline.c: Adapted to libio.
2928         * stdio-common/snprintf.c: Adapted to libio.
2929         * stdio-common/vfprintf.c: Adapted to libio.
2930         * stdio-common/vfscanf.c: Adapted to libio.
2931         * sysdeps/posix/tempname.c: Adapted to libio.
2932
2933 Fri Nov 17 17:57:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2934
2935         * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
2936
2937         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
2938         function.
2939
2940         * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
2941         (_hurdsig_fault_init): Remove #if 0 from setting exception port.
2942         Insert send right for SIGEXC before thread_set_special_port.
2943         * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
2944         (_hurdsig_init): Remove #if 0 from setting exception port.
2945
2946         * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
2947         HURD_MSGPORT_RPC macro.
2948
2949 Thu Nov 16 06:07:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2950
2951         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
2952         function.
2953         (_dl_sysdep_start): Move cleanup code there.
2954
2955         * Makeconfig (default-rpath): New variable.
2956         (link-libc): Use it.
2957         * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
2958         * elf/rtld.c (_dl_rpath): New variable.
2959         (_dl_start): Set it from rtld_map's DT_RPATH.
2960         Call _dl_setup_hash on rtld_map.
2961         (dl_main): Cache address of _exit in variable before relocating,
2962         and use that in later calls.  Call _dl_sysdep_start_cleanup before
2963         relocating.  Keep track of dependency order while loading; remove
2964         rtld_map from chain, and reinsert in proper order if there is a
2965         dependency on it.
2966
2967         * sysdeps/generic/Makefile (make_siglist): Pass
2968         -DSIGNUM_H=... with config's signum.h location.
2969         * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
2970         signal numbers.
2971         (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
2972         (main): Deansideclize output.
2973
2974         * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
2975         of DEFAULT_RPATH macro.
2976         * elf/Makefile: Undo last change.
2977
2978         * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
2979
2980 Wed Nov 15 19:22:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2981
2982         * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
2983         error if weak.
2984
2985         * elf/Makefile (default-rpath): New variable.
2986         (CPPFLAGS): Append -DDEFAULT_RPATH=....
2987         * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
2988         hard-coded "/lib:/usr/lib".
2989
2990         * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
2991         instead of stdio.
2992         (_dl_sysdep_start): If passed user entry is zero and
2993         EXEC_STACK_ARGS flag set, reset user entry to &_start.
2994
2995         * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
2996         DT_HASH element.
2997
2998         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
2999         repeat weak decl using weak_symbol macro, in case using broken GCC
3000         (<2.8).
3001
3002 Wed Nov 15 18:49:55 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3003
3004         * sysdeps/i386/isnanl.c: New file.
3005         * sysdeps/i386/isinfl.c: New file.
3006
3007 Tue Nov 14 18:44:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3008
3009         * malloc/free.c (free): Moved null and aligned_blocks checks
3010         inside _free_internal.
3011
3012 Mon Nov 13 15:23:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3013
3014         * malloc/malloc.c (morecore): Fix inverted test in allocating new
3015         info table.
3016
3017         * malloc/malloc.c (align): Fix assertion.
3018
3019         * malloc/malloc.c: Include assert.h.
3020
3021         * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
3022
3023         * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
3024         (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
3025
3026 Fri Nov 10 14:15:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3027
3028         * malloc/malloc.c (align): Assert that space for alignment
3029         adjustment is same original space.
3030
3031         * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
3032         arg to vm_address_t.
3033
3034         * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
3035         skip straight to pending check.  When UNTRACED, resume process
3036         from suspension first.
3037
3038         * intl/Makefile (headers): New variable, libintl.h.
3039         [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
3040         * configure.in: Check for --with-gettext arg.
3041
3042 Fri Nov 10 13:51:30 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
3043
3044         * malloc/malloc.c (get_contiguous_space): New function.
3045         (morecore): Rewrite allocating new malloc info table.
3046         (_malloc_internal): Use get_contiguous_space.
3047
3048 Fri Nov 10 13:03:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3049
3050         * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
3051         _hurd_msgport to be destroyed.
3052
3053         * Makerules (installed-libcs): Filter out %_pic.a.
3054
3055         * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
3056         to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
3057
3058         * hurd/Makefile (user-interfaces): Add hurd/process_request.
3059
3060 Wed Nov  8 16:31:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3061
3062         * termios/Makefile (headers): Add sys/ttychars.h.
3063         * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
3064         for compatibility.
3065
3066         * signal/signal.h [__USE_BSD] (sig_t): New typedef.
3067
3068 Wed Nov  8 15:12:47 1995  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
3069
3070         * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
3071         proc server that we are now traced.
3072
3073 Tue Nov  7 12:29:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3074
3075         * elf/Makefile (ldd): Make it executable.
3076
3077         * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
3078
3079         * Makeconfig (slibdir): New variable.
3080         * Makerules (install): Install libc.so in $(slibdir).
3081         * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
3082         in $(slibdir).
3083
3084         * elf/linux-compat.c: New file.
3085         * elf/Makefile (distribute): Add linux-compat.c.
3086         (generated): Add librtld.so.
3087         [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
3088         [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
3089         (librtld.so): New target.
3090         (ld.so, ld-linux.so.1): Make from librtld.so.
3091
3092         * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
3093         call our own DT_INIT if we have one (and then clear it).
3094         (__dgettext): New weak function.
3095
3096         * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
3097         by hand instead.
3098
3099         * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
3100         instead of snprintf.
3101
3102         * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
3103         BUF[BUFLEN].
3104
3105         * elf/rtld.c (rtld_map): New static variable.
3106         (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
3107         bootstrapping.  Then copy data into `rtld_map'.
3108         (dl_main): Finish filling in rtld_map and link it into the chain,
3109         instead of allocating a new structure.
3110         (dl_main): Call _dl_compat_init if it is defined (use weak ref).
3111
3112         * elf/dlsym.c: Fix last change: move REF out of `doit'.
3113
3114 Mon Nov  6 16:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3115
3116         * elf/dlsym.c: Return the proper value, not just the defining
3117         object's loadbase.
3118
3119 Sun Nov  5 16:09:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3120
3121         * stdio-common/vfprintf.c (%c): Count the character itself towards
3122         the field width in all cases.
3123
3124         * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
3125         __vm_deallocate arg to vm_address_t.
3126
3127 Fri Nov  3 17:27:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3128
3129         * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
3130         socket_create_address.
3131         * sysdeps/mach/hurd/connect.c: Likewise.
3132         * sysdeps/mach/hurd/bind.c: Likewise.
3133
3134         * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
3135         args to proc_getprocinfo.
3136         * sysdeps/mach/hurd/getpriority.c: Likewise.
3137
3138         * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
3139
3140 Thu Nov  2 19:24:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3141
3142         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
3143
3144 Tue Oct 31 00:07:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3145
3146         * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
3147         PI_FETCH_TASKINFO to proc_getprocinfo and through
3148         _hurd_priority_which_map.
3149
3150         * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
3151         _hurd_priority_which_map.
3152         * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
3153         passed through to proc_getprocinfo RPC.
3154         * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
3155
3156         * sysdeps/mach/hurd/group_member.c: New file.
3157         * sysdeps/generic/group_member.c: New file.
3158
3159         * Makerules (lib-noranlib): Don't depend on $(install-lib).
3160         (others): Do.
3161         * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
3162
3163 Mon Oct 30 12:33:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3164
3165         * Rules (others): Depend on $(extra-objs).
3166
3167         * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
3168         * posix/Makefile (routines): Add group_member.
3169
3170         * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
3171
3172         * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
3173         SIG operand in asm so it must be a register.
3174         Add dead return to quiet gcc warning.
3175
3176         * Makerules (sysd-rules): Write a defn for sysd-rules-done.
3177         [! sysd-rules-done]: Inhibit deps.
3178
3179 Thu Oct 26 23:11:11 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3180
3181         * sysdeps/unix/sysv/linux/poll.c: Don't define as stub.  Use
3182         simulation of system call using select.
3183
3184         * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
3185
3186         * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
3187
3188         * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
3189         name usage (new->act, old->oact).
3190         Correct asm statement because of gcc strangeness.
3191
3192         * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
3193
3194         * sunrpc/clnt_perr.c: Remove declaration of sys_errlist.  They
3195         conflict with the ones in stdio.h.
3196
3197         * string/tester.c: %Z is no complete format.  Change to %Zd.
3198
3199 Thu Oct 26 18:13:33 1995  Miles Bader  <miles@gnu.ai.mit.edu>
3200
3201         * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
3202         * sysdeps/mach/hurd/link.c (__link): Ditto.
3203         * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
3204         * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
3205         Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
3206
3207 Thu Oct 26 00:11:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3208
3209         * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
3210
3211         * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
3212         on syscall_error.  For PIC, it is a local label;
3213         for non-PIC, JUMPTARGET expands to the unadorned name anyway.
3214         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
3215         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3216         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3217         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
3218         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3219         * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
3220
3221 Thu Oct 26 03:01:22 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3222
3223         * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
3224         comment to the necessary ones.  Add _readv and _writev.
3225
3226         * sysdeps/unix/configure.in: Change syntax for system call test
3227         candidates and adapt sed script for this.  Now use : to separate
3228         syscall name and file name.
3229
3230         * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
3231         number is now set is DO_CALL.  So call with additional argument.
3232         (DO_CALL): Takes an additional argument.  Load system call
3233         number according to new argument.
3234         (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
3235         * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
3236         locally using SYSCALL_ERROR_HANDLER macro.
3237         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3238         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
3239         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3240         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
3241         * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
3242         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3243         Don't use DO_CALL macro; instead use lower level macros for better
3244         control.
3245
3246         * sysdeps/unix/sysv/linux/sigaction.h: New file.
3247         * sysdeps/unix/sysv/linux/sigaction.S: File removed.
3248         * sysdeps/unix/sysv/linux/signal.S: File removed.
3249
3250 Wed Oct 25 14:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3251
3252         * hurd/hurdstartup.c (_hurd_startup): Use new
3253         exec_startup_get_info RPC from exec_startup.defs
3254         in place of old exec_startup from exec.defs.  Remove kludge to
3255         guess user entry and phdr locations, since the new RPC gives us
3256         that info.
3257
3258         * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
3259         * sysdeps/generic/_strerror.c: Undo last change.
3260
3261         * sysdeps/unix/sysv/linux/stat.c: New file.
3262         * sysdeps/unix/sysv/linux/fstat.c: New file.
3263         * sysdeps/unix/sysv/linux/lstat.c: New file.
3264         * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
3265         * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
3266         * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
3267
3268 Tue Oct 24 15:22:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3269
3270         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3271         New macro.
3272         (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
3273
3274         * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
3275         only #ifndef PIC.
3276
3277         * Makeconfig (built-program-cmd): New variable.
3278         * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
3279         * time/Makefile (zic-cmd): Likewise.
3280
3281         * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
3282
3283         * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
3284         * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
3285         make `others' rather than `lib-noranlib' depend on the libraries.
3286
3287         * sysdeps/unix/configure.in: Check for fchdir syscall.
3288         Improve sed script to allow / on rhs without / on lhs.
3289
3290 Thu Oct 19 03:47:32 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3291
3292         * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
3293
3294         * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
3295
3296         * sysdeps/unix/sysv/linux/select.S: New file.
3297
3298 Wed Oct 18 03:33:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3299
3300         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
3301         SYSCALL_PIC_SETUP before jumping to syscall_error.
3302         * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
3303         (PSEUDO): Use it before jumping to syscall_error.
3304         * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
3305         expect it in %ebx on entry.  Pop old %ebx value off stack after
3306         using it.
3307
3308         * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
3309         them.
3310
3311         * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
3312
3313         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
3314         `fd/', pass the right pointer to strtol to parse the number.
3315
3316 Tue Oct 17 23:00:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3317
3318         * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
3319         of stdio/_itoa.h.
3320
3321 Tue Oct 17 19:51:17 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3322
3323         * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
3324         register %ebx before calling __xstat through PLT.
3325
3326         * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
3327
3328         * sysdeps/unix/sysv/linux/sigset.h: Remove file.
3329
3330 Tue Oct 17 01:21:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3331
3332         * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
3333         stdio/_itoa.h.
3334         * hurd/hurdlookup.c: Likewise.
3335
3336         * hurd/hurd/signal.h: Declare hurd_preempt_signals and
3337         hurd_unpreempt_signals.
3338
3339         * stdio/stdio.h: Declare __snprintf and __vsnprintf.
3340
3341         * stdio-common/psignal.c: Translate signal description strings.
3342         * string/strsignal.c: Likewise.
3343         * sysdeps/generic/_strerror.c (_strerror_internal): Translate
3344         error strings.
3345         * sysdeps/mach/_strerror.c: Likewise.
3346
3347         * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
3348         call __vsnprintf.
3349         (snprintf): Define as weak alias.
3350         * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
3351         (vsnprintf): Define as weak alias.
3352
3353 Mon Oct 16 03:22:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3354
3355         * Makerules (install-lib): Filter out %_pic.a; install only the
3356         linked shared objects.
3357
3358         * locale/Makefile (aux): Add SYS_libc.
3359         * locale/SYS_libc.c: New file.
3360         * libc-symbols.h [! ASSEMBLER] (_): New macro.
3361
3362         * configure.in (libc_cv_asm_set_directive): Link program into
3363         conftest instead of letting it default to a.out.
3364
3365         * elf/Makefile (install-others): Add missing slash.
3366
3367         * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
3368         won't search LD_LIBRARY_PATH.
3369
3370         * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
3371         * configure.in: Grok arg --enable-libio.
3372         ($stdio = libio): Define USE_IN_LIBIO.
3373         * config.h.in (USE_IN_LIBIO): Add #undef.
3374         * config.make.in (stdio): New variable, set by configure.
3375         * Makeconfig (stdio): New variable.
3376         * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
3377         stdio/stdio.h.
3378         * stdio-common/Makefile: New file.
3379         * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
3380         * stdio/_itoa.c: Moved to stdio-common.
3381         * stdio/_itoa.h: Moved to stdio-common.
3382         * stdio/asprintf.c: Moved to stdio-common.
3383         * stdio/bug1.c: Moved to stdio-common.
3384         * stdio/bug1.input: Moved to stdio-common.
3385         * stdio/bug2.c: Moved to stdio-common.
3386         * stdio/bug3.c: Moved to stdio-common.
3387         * stdio/bug4.c: Moved to stdio-common.
3388         * stdio/bug5.c: Moved to stdio-common.
3389         * stdio/bug6.c: Moved to stdio-common.
3390         * stdio/bug6.input: Moved to stdio-common.
3391         * stdio/bug7.c: Moved to stdio-common.
3392         * stdio/dprintf.c: Moved to stdio-common.
3393         * stdio/errnobug.c: Moved to stdio-common.
3394         * stdio/getline.c: Moved to stdio-common.
3395         * stdio/getw.c: Moved to stdio-common.
3396         * stdio/perror.c: Moved to stdio-common.
3397         * stdio/printf-parse.h: Moved to stdio-common.
3398         * stdio/printf-prs.c: Moved to stdio-common.
3399         * stdio/printf.c: Moved to stdio-common.
3400         * stdio/printf.h: Moved to stdio-common.
3401         * stdio/printf_fp.c: Moved to stdio-common.
3402         * stdio/psignal.c: Moved to stdio-common.
3403         * stdio/putw.c: Moved to stdio-common.
3404         * stdio/reg-printf.c: Moved to stdio-common.
3405         * stdio/scanf.c: Moved to stdio-common.
3406         * stdio/snprintf.c: Moved to stdio-common.
3407         * stdio/sprintf.c: Moved to stdio-common.
3408         * stdio/sscanf.c: Moved to stdio-common.
3409         * stdio/tempnam.c: Moved to stdio-common.
3410         * stdio/temptest.c: Moved to stdio-common.
3411         * stdio/test-fseek.c: Moved to stdio-common.
3412         * stdio/test-fwrite.c: Moved to stdio-common.
3413         * stdio/test-popen.c: Moved to stdio-common.
3414         * stdio/test_rdwr.c: Moved to stdio-common.
3415         * stdio/tmpfile.c: Moved to stdio-common.
3416         * stdio/tmpnam.c: Moved to stdio-common.
3417         * stdio/tst-fileno.c: Moved to stdio-common.
3418         * stdio/tst-printf.c: Moved to stdio-common.
3419         * stdio/tstgetln.c: Moved to stdio-common.
3420         * stdio/tstgetln.input: Moved to stdio-common.
3421         * stdio/tstscanf.c: Moved to stdio-common.
3422         * stdio/tstscanf.input: Moved to stdio-common.
3423         * stdio/vfprintf.c: Moved to stdio-common.
3424         * stdio/vfscanf.c: Moved to stdio-common.
3425         * stdio/vprintf.c: Moved to stdio-common.
3426         * stdio/xbug.c: Moved to stdio-common.
3427         * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
3428         stdio-common instead of stdio.
3429         * sysdeps/unix/Makefile (errlist.c rules): Likewise.
3430         * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
3431         function.
3432         * stdio-common/dprintf.c: Likewise.
3433         * stdio-common/printf.c: Likewise.
3434         * stdio-common/scanf.c: Likewise.
3435         * stdio-common/snprintf.c: Likewise.
3436         * stdio-common/sprintf.c: Likewise.
3437         * stdio-common/sscanf.c: Likewise.
3438         * stdio-common/vprintf.c: Likewise.
3439
3440         * Makerules: Include $(+depfiles) directly instead of generating
3441         depend-$(subdir).
3442         (depend-$(subdir)): Target removed.
3443         (common-clean): Don't remove depend-$(subdir).
3444
3445         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
3446         (config-LDFLAGS): Variable removed.
3447
3448         * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
3449         * sysdeps/mach/hurd/bind.c: Likewise.
3450         * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
3451         calling convention.
3452
3453         * hurd/hurdexec.c: Undo last change (10 Oct 95).
3454
3455 Sun Oct 15 21:04:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3456
3457         * hurd/hurd/lookup.h: New file.
3458         * hurd/hurdlookup.c (__file_name_lookup_under): New function.
3459         (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
3460         __hurd_file_name_split): Rewritten to take callback functions for
3461         using any needed init or dtable port, instead of passing in crdir
3462         and cwdir ports.
3463         (__file_name_lookup, __file_name_split): Use new calling
3464         convention; pass _hurd_ports_use and __getdport as the callback
3465         functions.
3466
3467         * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
3468         of __hurd_file_name_lookup.
3469         * sysdeps/mach/hurd/chdir.c: Likewise.
3470         * sysdeps/mach/hurd/fchdir.c: Likewise.
3471         * hurd/fchroot.c: Likewise.
3472
3473         * stdlib/Makefile (mpn-found): Don't omit %.s.
3474         (mpn-copy-sysdep): Omit files in nonexistent directories.
3475         (copy-mpn): Commit files to CVS.
3476         * stdlib/gen-mpn-copy (translations): Update translations for GMP
3477         1.906.7.
3478
3479         * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
3480
3481 Sat Oct 14 02:52:36 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3482
3483         * malloc/malloc.c (_malloc_internal): Performance fix.  Move
3484         if statement out of loop.
3485
3486         * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite.  Much faster
3487         implementation using GMP functions.  Contributed by
3488         Torbjorn Granlund and Ulrich Drepper.
3489
3490         * stdio/test_rdwr.c: Include <errno.h>.
3491
3492         * sysdeps/i386/i586/Implies: New file.
3493
3494         New highly optimized string functions for i[345]86.
3495         * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
3496         * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
3497         * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
3498         * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
3499         * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
3500         * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
3501         * sysdeps/i386/i586/strlen.S: New file.
3502         * sysdeps/i386/memchr.c: Removed.  There is now an assembler version.
3503
3504         * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
3505         not correspond to used values.
3506
3507         * sysdeps/unix/sysv/linux/nfs/nfs.h: New file.  Simply a wrapper
3508         around a kernel header file.
3509         * sysdeps/unix/sysv/linux/Dist: Add it.
3510         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
3511         Likewise.
3512
3513         * sysdeps/unix/sysv/linux/local_lim.h: Rewrite.  Instead of
3514         defining ourself we use a kernel header file.
3515
3516         * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
3517         call handler for i586.
3518
3519         * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
3520
3521 Thu Oct 12 15:45:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3522
3523         * hurd/hurd.h (file_name_lookup_under): Declare it.
3524         * hurd/Makefile (headers): Add hurd/lookup.h.
3525
3526         * hurd/hurdinit.c (_hurd_ports_use): New function.
3527         * hurd/hurd.h (_hurd_ports_use): Declare it.
3528         (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
3529         hurd_file_name_lookup_retry): Remove these decls.
3530         * hurd/Makefile (routines): Remove invoke-trans.
3531
3532 Wed Oct 11 00:00:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3533
3534         * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
3535         apply R_386_PC32 reloc.
3536
3537         * Makeconfig (config-LDFLAGS): Add missing slash.
3538
3539         * sysdeps/mach/hurd/profil.c (fork_profil): Only call
3540         update_waiter if profiling was enabled in the parent.
3541
3542         * csu/initfini.c: Don't pass -f flag to cp.
3543
3544 Tue Oct 10 23:08:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3545
3546         * Makerules (build-shlib): Pass -rpath and -rpath-link options.
3547         (LDFLAGS-c.so): Don't pass -dynamic-linker here.
3548         * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
3549         (link-libc): Pass -rpath and -rpath-link options.
3550
3551         * MakeTAGS (all-dirs): Omit CVS directories.
3552         Specify vpath directives to find source files in $(all-dirs).
3553         (sources, headers): Append sources and headers from $(all-dist) to
3554         these.
3555         (all-dist): Filter them out of this.
3556         (all-headers, all-sources): Use $(shell find ...) instead of
3557         $(wildcard ...).
3558
3559         * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
3560         -rpath-link.
3561
3562         * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
3563
3564         * elf/Makefile (install-others): Add missing $.
3565
3566 Mon Oct  9 02:54:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3567
3568         * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
3569
3570         * Makeconfig (config-LDFLAGS): Define to
3571         -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
3572         (rtld-installed-name): New variable.
3573         * elf/Makefile (install-lib): Variable removed.
3574         (install-others): Define this instead, to
3575         $(libdir)(rtld-installed-name).
3576         ($(libdir)(rtld-installed-name)): New target; install from ld.so.
3577
3578         * elf/ldd.sh.in: New file.
3579         * elf/Makefile (distribute): Add ldd.sh.in.
3580         (install-bin): Add ldd.
3581         ($(objpfx)ldd: ldd.sh.in): New rule.
3582
3583         * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
3584         * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
3585         Translate some Mach errors to Hurd errors.
3586
3587         * elf/rtld.c (dl_main): Under --list, print msg if executable is
3588         statically linked.
3589
3590         * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
3591         table processing.
3592
3593 Sat Oct  7 01:25:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3594
3595         * sysdeps/stub/machine-gmon.h: Add #error.
3596
3597 Fri Oct  6 01:49:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3598
3599         * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
3600         examine it.
3601
3602 Fri Sep 29 03:43:51 1995  Paul Eggert  <eggert@twinsun.com>
3603
3604         Rewrite mktime from scratch for performance, and for correctness
3605         in the presence of leap seconds.
3606
3607         * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
3608         New functions.
3609         (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
3610         TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
3611         <limits.h>, <stdlib.h>: New #includes.
3612         (main): Support tests with given broken-down value; support benchmarks.
3613         (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
3614         do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
3615         <ctype.h>): Remove.
3616
3617         * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
3618         * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
3619
3620         * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
3621         time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
3622
3623         * time/offtime.c (__offtime): Remove useless assignment
3624         `tp->tm_isdst = -1'.
3625
3626         * manual/maint.texi: Update credits.
3627
3628 Fri Oct  6 00:28:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3629
3630         * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
3631         * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
3632         * sysdeps/unix/sysv/linux/readv.c: File removed.
3633         * sysdeps/unix/sysv/linux/writev.c: File removed.
3634         * sysdeps/unix/configure.in: Check for readv and writev syscalls.
3635
3636         * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
3637         set it to $unix_syscall instead of $unix_function.
3638
3639 Thu Oct  5 00:59:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3640
3641         * elf/rtld.c (dl_main): Grok --list flag.
3642         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
3643
3644 Wed Oct  4 00:21:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3645
3646         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
3647         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
3648         * elf/link.h (_dl_sysdep_message): Declare it.
3649
3650         * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
3651         the list.
3652
3653         * time/northamerica: Corrections to Canada data from ADO 95i.
3654
3655         * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
3656         unconditionally.  In socket subdir, append sys/socketcall.h; in
3657         time subdir, append sys/timex.h.
3658         (config-LDFLAGS): New variable.
3659         * sysdeps/unix/sysv/linux/Dist: New file.
3660         * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
3661
3662         * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
3663
3664         * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
3665
3666 Sat Sep 30 11:47:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3667
3668         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
3669         kernel with args on stack, point _dl_hurd_data at zero data
3670         instead of garbage.  When ld.so run as program, grok args
3671         -LIB=MEMOBJ and pre-load shared object files found in memory
3672         objects loaded by the boot loader.
3673
3674         * elf/link.h (struct link_map): New member `l_entry'.
3675         (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
3676         * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
3677         last arg ENTRY_POINT.  Store the entry point location in the
3678         `l_entry' member of the new map.
3679         * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
3680         _dl_map_object.  When run as program, set *USER_ENTRY to L->l_entry.
3681         * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
3682         _dl_map_object.
3683
3684         * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
3685
3686         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
3687         restore %ebx by hand for personality syscall.
3688         GCC cannot deal with spilling the dedicated GOT register.
3689
3690         * misc/Makefile (routines): Add mntent, which was somehow omitted.
3691
3692 Fri Sep 29 15:07:10 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3693
3694         * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
3695         Change name of field `mode' in `struct timex' to `modes'.
3696         Linux-1.3.28 updates this name according to RFC 1489.
3697
3698 Thu Sep 28 13:05:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3699
3700         Merge new message handling code from GNU gettext, by Drepper.
3701         * intl: New directory.
3702         * Makefile (subdirs): Add intl.
3703
3704         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
3705         USER_ENTRY instead of storing it on our stack.
3706
3707         * elf/rtld.c (rtld_command): Variable removed.
3708         (_dl_skip_args): New variable.
3709         (dl_main): Increment _dl_skip_args instead of setting rtld_command.
3710         If the link_map for the executable itself is not first in the chain,
3711         make it so.
3712         * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
3713         count of args to skip.
3714
3715 Thu Sep 28 09:20:04 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
3716
3717         * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
3718         leading zeroes.
3719
3720 Wed Sep 27 00:27:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3721
3722         * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
3723         (getcwd): Define as weak alias.
3724         * sysdeps/posix/getcwd.c: Likewise.
3725         * sysdeps/stub/getcwd.c: Likewise.
3726         * posix/unistd.h: Declare __getcwd.
3727
3728         * string/string.h: Declare __strcasecmp.
3729         * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
3730         strcasecmp.
3731         (strcasecmp): Define as weak alias.
3732
3733         * string/string.h: Declare __stpcpy.
3734         * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
3735         (stpcpy): Define as weak alias.
3736
3737         * sysdeps/unix/sysv/linux/Implies: Add unix/common.
3738
3739         * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
3740         Don't use `type' for arg name, since we are using it as a keyword
3741         in the rhs.
3742
3743         * sysdeps/unix/configure.in: Check for syscalls getpriority,
3744         setpriority, getrlimit, setrlimit.
3745
3746         * sysdeps/posix/truncate.c: Include fcntl.h.
3747
3748         * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
3749
3750         * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
3751         use new stub_warning syntax.
3752         * sysdeps/stub/setpriority.c: Likewise.
3753         * sysdeps/stub/__longjmp.c: Likewise.
3754         * sysdeps/stub/_exit.c: Likewise.
3755         * sysdeps/stub/accept.c: Likewise.
3756         * sysdeps/stub/acos.c: Likewise.
3757         * sysdeps/stub/alarm.c: Likewise.
3758         * sysdeps/stub/asin.c: Likewise.
3759         * sysdeps/stub/atan2.c: Likewise.
3760         * sysdeps/stub/bind.c: Likewise.
3761         * sysdeps/stub/cbrt.c: Likewise.
3762         * sysdeps/stub/chroot.c: Likewise.
3763         * sysdeps/stub/closedir.c: Likewise.
3764         * sysdeps/stub/connect.c: Likewise.
3765         * sysdeps/stub/cos.c: Likewise.
3766         * sysdeps/stub/cosh.c: Likewise.
3767         * sysdeps/stub/ctermid.c: Likewise.
3768         * sysdeps/stub/cuserid.c: Likewise.
3769         * sysdeps/stub/defs.c: Likewise.
3770         * sysdeps/stub/exp.c: Likewise.
3771         * sysdeps/stub/fmod.c: Likewise.
3772         * sysdeps/stub/frexp.c: Likewise.
3773         * sysdeps/stub/fsync.c: Likewise.
3774         * sysdeps/stub/getcwd.c: Likewise.
3775         * sysdeps/stub/getenv.c: Likewise.
3776         * sysdeps/stub/gethostid.c: Likewise.
3777         * sysdeps/stub/getlogin.c: Likewise.
3778         * sysdeps/stub/getpeername.c: Likewise.
3779         * sysdeps/stub/getrlimit.c: Likewise.
3780         * sysdeps/stub/getsockname.c: Likewise.
3781         * sysdeps/stub/getsockopt.c: Likewise.
3782         * sysdeps/stub/listen.c: Likewise.
3783         * sysdeps/stub/log.c: Likewise.
3784         * sysdeps/stub/log10.c: Likewise.
3785         * sysdeps/stub/mkfifo.c: Likewise.
3786         * sysdeps/stub/morecore.c: Likewise.
3787         * sysdeps/stub/nice.c: Likewise.
3788         * sysdeps/stub/nlist.c: Likewise.
3789         * sysdeps/stub/opendir.c: Likewise.
3790         * sysdeps/stub/pipestream.c: Likewise.
3791         * sysdeps/stub/ptrace.c: Likewise.
3792         * sysdeps/stub/putenv.c: Likewise.
3793         * sysdeps/stub/readdir.c: Likewise.
3794         * sysdeps/stub/reboot.c: Likewise.
3795         * sysdeps/stub/recv.c: Likewise.
3796         * sysdeps/stub/recvfrom.c: Likewise.
3797         * sysdeps/stub/rename.c: Likewise.
3798         * sysdeps/stub/rewinddir.c: Likewise.
3799         * sysdeps/stub/seekdir.c: Likewise.
3800         * sysdeps/stub/send.c: Likewise.
3801         * sysdeps/stub/sendto.c: Likewise.
3802         * sysdeps/stub/setegid.c: Likewise.
3803         * sysdeps/stub/seteuid.c: Likewise.
3804         * sysdeps/stub/setgroups.c: Likewise.
3805         * sysdeps/stub/sethostid.c: Likewise.
3806         * sysdeps/stub/sethostname.c: Likewise.
3807         * sysdeps/stub/setjmp.c: Likewise.
3808         * sysdeps/stub/setrlimit.c: Likewise.
3809         * sysdeps/stub/setsockopt.c: Likewise.
3810         * sysdeps/stub/shutdown.c: Likewise.
3811         * sysdeps/stub/signal.c: Likewise.
3812         * sysdeps/stub/sigsuspend.c: Likewise.
3813         * sysdeps/stub/sin.c: Likewise.
3814         * sysdeps/stub/sinh.c: Likewise.
3815         * sysdeps/stub/socket.c: Likewise.
3816         * sysdeps/stub/socketpair.c: Likewise.
3817         * sysdeps/stub/sqrt.c: Likewise.
3818         * sysdeps/stub/sync.c: Likewise.
3819         * sysdeps/stub/system.c: Likewise.
3820         * sysdeps/stub/tan.c: Likewise.
3821         * sysdeps/stub/tanh.c: Likewise.
3822         * sysdeps/stub/tcdrain.c: Likewise.
3823         * sysdeps/stub/tcflow.c: Likewise.
3824         * sysdeps/stub/tcgetpgrp.c: Likewise.
3825         * sysdeps/stub/tcsendbrk.c: Likewise.
3826         * sysdeps/stub/tcsetattr.c: Likewise.
3827         * sysdeps/stub/tcsetpgrp.c: Likewise.
3828         * sysdeps/stub/telldir.c: Likewise.
3829         * sysdeps/stub/tempname.c: Likewise.
3830         * sysdeps/stub/ttyname.c: Likewise.
3831         * sysdeps/stub/ttyname_r.c: Likewise.
3832         * sysdeps/stub/utime.c: Likewise.
3833
3834         * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
3835
3836         * time/mktime.c (localtime_r): Use 0 instead of NULL.
3837
3838         * config.make.in (AS): New variable; set to `$(CC) -c'.
3839
3840         * posix/unistd.h [__USE_BSD]: Declare profil.
3841
3842         * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
3843         of _dl_map_object.
3844         (_dl_map_object): Call it.
3845         * elf/link.h (_dl_map_object_from_fd): Declare it.
3846
3847 Tue Sep 26 16:50:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3848
3849         * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
3850         gettext code.
3851
3852         * sysdeps/unix/sysv/linux/sys/param.h: New file.
3853         * sysdeps/unix/sysv/linux/Subdirs: File removed.
3854
3855         * libc-symbols.h (_LIBC): Define to 1, not just empty.
3856
3857         * gmon: New directory of profiling code, incorporated from
3858         4.4BSD-Lite and modified.
3859         * sysdeps/i386/machine-gmon.h: New file.
3860         * sysdeps/stub/machine-gmon.h: New file.
3861         * sysdeps/mach/hurd/profil.c: New file.
3862         * sysdeps/stub/profil.c: New file.
3863         * sysdeps/unix/bsd/profil.S: New file.
3864         * Makefile (subdirs): Add gmon.
3865         * csu/gmon-start.c: New file.
3866         * csu/Makefile (extra-objs): Add gmon-start.o,
3867         g$(start-installed-name).
3868         (install-lib, omit-deps): Add g$(start-installed-name).
3869         ($(objpfx)g$(start-installed-name)): New target.
3870
3871 Fri Sep 22 14:24:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3872
3873         * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
3874         time being.
3875
3876 Thu Sep 21 00:03:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3877
3878         * sysdeps/unix/configure.in: Check for `profil' syscall.
3879
3880         * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
3881         removed.
3882
3883         * time/africa, time/asia, time/europe, time/northamerica,
3884         time/yearistype: New data from ADO 95h.
3885
3886         * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
3887         $(notdir $*), so it wins for the explicit libc.so rule as well as the
3888         pattern rule.
3889
3890         * sysdeps/stub/sys/sem_buf.h (union semun): New type.
3891
3892         * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
3893         __libc_global_ctors.
3894         * sysdeps/i386/init-first.c: Rewritten.
3895         * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
3896         * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
3897
3898         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
3899         ___fpu_control.
3900
3901         * Makerules (build-shlib): New canned sequence, broken out of
3902         lib%.so rule.  Link in $^ instead of just $<.
3903         (lib%.so: lib%_pic.a): Use it.
3904         (libc.so): New target; use $(build-shlib) for cmds, but also depend
3905         on soinit.so first and sofini.so last.
3906
3907         * elf/soinit.c: New file.
3908         * elf/sofini.c: New file.
3909         * elf/Makefile (distribute): Add soinit.c and sofini.c.
3910         (extra-objs): Add soinit.so and sofini.so.
3911
3912         * sysvipc/sys/shm.h (shmat): Fix return type to char *.
3913         * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
3914
3915         * misc/syslog.c (vsyslog): Rewritten using open_memstream to
3916         dynamically allocate buffers.
3917
3918         * Makerules (install-lib-nosubdir): Make this, rather than
3919         install-no-libc.a, depend on the installed shared libraries.
3920
3921 Wed Sep 20 18:02:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3922
3923         * locale/locale.c: Include errno.h.
3924         * locale/localedef.c: Likewise.
3925
3926 Tue Sep 19 00:02:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3927
3928         * Makefile (distclean-1): Remove config.cache, config.log, config.h.
3929         (parent-mostlyclean): Remove all flavors of the parent library.
3930
3931         * misc/mntent.c (getmntent): Skip multiple whitespace chars
3932         between fields.
3933
3934         * hurd/hurdstartup.c (_hurd_startup): If RPC returns
3935         EXEC_STACK_ARGS flag, get args from stack.
3936         If args on stack but have info from RPC, relocate args on stack to make
3937         space for struct hurd_startup_data.
3938
3939 Mon Sep 18 15:06:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3940
3941         * elf/dl-object.c: Include errno.h.
3942         * posix/execvp.c: Likewise.
3943         * dirent/scandir.c: Likewise.
3944         * sysdeps/posix/system.c: Likewise.
3945         * sysdeps/generic/setenv.c: Likewise.
3946         * stdlib/msort.c: Likewise.
3947         * stdio/memstream.c: Likewise.
3948         * stdio/fclose.c: Likewise.
3949         * stdio/getdelim.c: Likewise.
3950         * stdio/setvbuf.c: Likewise.
3951         * sysdeps/ieee754/ldexp.c: Likewise.
3952         * locale/locfile-parse.c: Likewise.
3953
3954         * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
3955         * stdlib/seed48_r.c: Likewise.
3956         * stdlib/srand48_r.c: Likewise.
3957         * stdlib/jrand48_r.c: Likewise.
3958         * stdlib/nrand48_r.c: Likewise.
3959
3960         * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
3961         to be useless.
3962
3963 Mon Sep 18 12:39:22 1995  Paul Eggert  <eggert@twinsun.com>
3964
3965         * mktime.c (localtime_r): Add substitute if the system doesn't
3966         provide one.
3967
3968 Mon Sep 18 14:39:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3969
3970         * time/gmtime.c (gmtime_r): Define as weak alias.
3971         * time/localtime.c (localtime_r): Define as weak alias.
3972         * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
3973
3974         * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
3975         #undef __need_Emath after including errnos.h.
3976         [_ERRNO_H]: Protect decls with this.
3977
3978 Sun Sep 17 08:22:12 1995  Paul Eggert  <eggert@twinsun.com>
3979
3980         Fix mktime so that it does not write over localtime's returned value.
3981         * localtime.c (__localtime_r): New function, with extra arg
3982         specifying where to store result.
3983         (localtime): Use it.
3984         (_tmbuf): New var.
3985         * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
3986         * mktime.c (__mktime_internal): Conversion function is now
3987         __localtime_r style, not localtime style.
3988         (mktime): Pass __localtime_r, not localtime.
3989         * timegm.c (timegm): Pass __gmtime_r, not gmtime.
3990         * offtime.c (__offtime): New arg specifying where to store result.
3991         * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
3992         (__gmtime_r, __localtime_r): New decls.
3993
3994         * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
3995         <stdlib.h>, <string.h>: Remove includes.
3996         <errno.h>: Add include.
3997
3998         * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
3999         Renamed from _mktime_internal to avoid namespace pollution.
4000
4001         * time/gmtime.c: Clear tm_isdst.
4002
4003 Mon Sep 18 01:58:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4004
4005         * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
4006         * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
4007         size_t.
4008
4009         * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
4010         __file_pathconf.
4011         * sysdeps/mach/hurd/pathconf.c: Likewise.
4012
4013         * Makefile (subdirs): Add sysvipc.
4014
4015         * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
4016         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
4017
4018 Sun Sep 17 18:29:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4019
4020         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
4021          __file_set_size instead of __file_truncate.
4022
4023         * features.h (__USE_REENTRANT): New macro.
4024
4025         * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
4026         __file_truncate.
4027         * sysdeps/mach/hurd/ftruncate.c: Likewise.
4028
4029         * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
4030
4031 Sat Sep 16 17:47:19 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
4032
4033         * elf/elf.h (AT_GID): Fix typo: Read -> Real.
4034
4035         * misc/efgvt_r.c: New file.  Reentrant version of [efg]cvt functions.
4036         * misc/efgcvt.c: Rewrite to use reentrant functions.
4037         * misc/search.h: Many decls for hsearch functions.
4038         * misc/hsearch_r.c: New file.  Reentrant version of functions from
4039         hsearch family.
4040         * misc/hsearch.c, misc/tsearch.c: New files.
4041         * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
4042
4043         * posix/unistd.h (ttyname_r): Add prototype for new function.
4044
4045         * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
4046         stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
4047         stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
4048         stdlib/drand48-iter.c: New files implementing reentrant versions
4049         of functions from drand48 family.
4050         * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
4051         stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
4052         stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
4053         Rewrite to use reentrant versions.
4054         * stdlib/a64l.c, stdlib/l64a.c: New files.  Implement a64l()
4055         and l64a() functions from SysV library.
4056         * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
4057         nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
4058         drand48-iter, a64l, l64a.
4059         * stdlib/stdlib.h: Declare them.
4060
4061         * stdlib/random_r.c: New file.  Reentrant version of functions
4062         from random family.
4063         * stdlib/stdlib.h: Declare them.
4064         * stdlib/random.c: Rewrite to use reentrant functions.
4065
4066         * string/strerror_r.c: New file.  Reentrant version.
4067         * string/strerror.c: Change for new _strerror_internal form.
4068         * string/Makefile (routines): Add strerror_r.
4069
4070         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
4071         value of user_entry to `_start'.
4072         Close AT_ENTRY case with `break'.
4073
4074         * sysdeps/generic/strstr.c: New and much faster implementation
4075         by Stephen R. van den Berg.
4076
4077         * sysdeps/generic/_strerror.c: _strerror_internal now takes
4078         three argument and has and explicit buffer length.
4079         * sysdeps/mach/_strerror.c: Change for new interface with three
4080         arguments.
4081         * stdio/perror.c, stdio/vfprintf.c: Callers changed.
4082
4083         * sysdeps/mach/hurd/ttyname_r.c: New file.  Reentrant version.
4084         * sysdeps/posix/ttyname_r.c: New file.  Reentrant version.
4085         * sysdeps/stub/ttyname_r: New file.  Define as dummy function.
4086
4087         * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
4088         (utimes): First parameter to utime must be file, not path.
4089
4090         * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
4091         _SC_CLK_TCK and return it when available.
4092         Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
4093         available.
4094         Add case for _SC_2_LOCALEDEF which is now available.
4095
4096         * posix/sys/types.h [__USE_SVID] (key_t): New type.
4097         * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
4098         sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
4099         sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
4100         sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
4101         sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
4102         sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
4103         sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
4104         sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
4105         Add implementation of System V IPC.
4106
4107 Fri Sep 15 21:34:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4108
4109         * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
4110         (write_corefile): Call __crash_dump_task instead of __core_dump_task.
4111         Use envariable CRASHSERVER instead of CORESERVER.
4112         * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
4113
4114 Tue Sep 12 14:30:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4115
4116         * misc/mntent.c: New file.
4117         * misc/mntent.h: New file.
4118         * misc/Makefile (headers): Added mntent.h.
4119         (routines): Added mntent.
4120         * misc/fstab.c: Rewritten using mntent functions.
4121
4122 Mon Sep 11 14:00:14 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
4123
4124         * posix/glob.c (glob): Comment fix.
4125
4126 Fri Sep  8 16:25:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4127
4128         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
4129         symbols weak.
4130
4131         * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
4132         not empty.
4133
4134 Fri Sep  8 16:32:12 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4135
4136         * sysdeps/unix/sysv/linux/Implies,
4137         sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
4138         sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
4139         sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
4140         sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
4141         sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
4142         sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
4143         sysdeps/unix/sysv/linux/gethostname.C,
4144         sysdeps/unix/sysv/linux/getpeername.S,
4145         sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
4146         sysdeps/unix/sysv/linux/getsockname.S,
4147         sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
4148         sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
4149         sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
4150         sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
4151         sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
4152         sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
4153         sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
4154         sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
4155         sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
4156         sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
4157         sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
4158         sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
4159         sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
4160         sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
4161         sysdeps/unix/sysv/linux/settimeofday.S,
4162         sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
4163         sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
4164         sysdeps/unix/sysv/linux/shutdown.S,
4165         sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
4166         sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
4167         sysdeps/unix/sysv/linux/sockaddrcom.h,
4168         sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
4169         sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
4170         sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
4171         sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
4172         sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
4173         sysdeps/unix/sysv/linux/tcsetattr.c,
4174         sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
4175         sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
4176         sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
4177         sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
4178         sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
4179         New Linux/ELF specific, architecture independent files.
4180         * sysdeps/unix/sysv/linux/i386/Dist,
4181         sysdeps/unix/sysv/linux/i386/Makefile,
4182         sysdeps/unix/sysv/linux/i386/brk.S,
4183         sysdeps/unix/sysv/linux/i386/fcntlbits.h,
4184         sysdeps/unix/sysv/linux/i386/fpu_control.c,
4185         sysdeps/unix/sysv/linux/i386/fpu_control.h,
4186         sysdeps/unix/sysv/linux/i386/fstat.S,
4187         sysdeps/unix/sysv/linux/i386/fxstat.S,
4188         sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
4189         sysdeps/unix/sysv/linux/i386/init-first.S,
4190         sysdeps/unix/sysv/linux/i386/ipc.S,
4191         sysdeps/unix/sysv/linux/i386/lstat.S,
4192         sysdeps/unix/sysv/linux/i386/lxstat.S,
4193         sysdeps/unix/sysv/linux/i386/mknod.S,
4194         sysdeps/unix/sysv/linux/i386/mmap.S,
4195         sysdeps/unix/sysv/linux/i386/sbrk.S,
4196         sysdeps/unix/sysv/linux/i386/setfpucw.c,
4197         sysdeps/unix/sysv/linux/i386/signum.h,
4198         sysdeps/unix/sysv/linux/i386/socket.S,
4199         sysdeps/unix/sysv/linux/i386/stat.S,
4200         sysdeps/unix/sysv/linux/i386/syscall.S,
4201         sysdeps/unix/sysv/linux/i386/sysdep.S,
4202         sysdeps/unix/sysv/linux/i386/sysdep.h,
4203         sysdeps/unix/sysv/linux/i386/xmknod.S,
4204         sysdeps/unix/sysv/linux/i386/xstat.S:
4205         New Linux i386/ELF specific files.
4206         * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
4207         sysdeps/unix/sysv/linux/sys/mman.h,
4208         sysdeps/unix/sysv/linux/sys/msq_buf.h,
4209         sysdeps/unix/sysv/linux/sys/sem_buf.h,
4210         sysdeps/unix/sysv/linux/sys/shm_buf.h,
4211         sysdeps/unix/sysv/linux/sys/socketcall.h,
4212         sysdeps/unix/sysv/linux/sys/timex.h:
4213         New Linux/ELF specific, architecture independent header files.
4214         * sysdeps/unix/sysv/sysv4/linux: Tree removed.
4215
4216 Thu Sep  7 17:05:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4217
4218         * stdlib/msort.c (msort_with_tmp): Fixed alignment test.  B1 and
4219         B2 are always congruent; just test that B1 is aligned.
4220
4221 Wed Sep  6 19:41:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4222
4223         * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
4224         than WEAK_VALUE.a to see if a weak value has been set.  A valid
4225         weak value may set WEAK_VALUE.a to 0.
4226
4227 Fri Sep  1 16:16:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4228
4229         * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
4230         jmp_buf.
4231
4232         * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
4233         for a warning on references to that specific symbol, not the
4234         entire containing object file.
4235         (stub_warning): Pass symbol name to link_warning.
4236         * stdio/gets.c: Pass function name in link_warning invocation.
4237
4238         * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
4239         MACH_SEND_INTERRUPTED.  That indicates interrupt_operation was
4240         sent, but failed.
4241
4242         * stdlib/msort.c: Include memcopy.h.
4243         (msort_with_tmp): If operating on aligned op_t words, use direct word
4244         fetches and stores.
4245
4246         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
4247         missing backslash.
4248
4249 Thu Aug 31 13:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4250
4251         * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
4252
4253         Rewrote i386 setjmp code in assembly, so as to avoid fighting
4254         with the compiler for the register values.
4255         * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
4256         * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
4257         * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
4258         [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
4259         (_JMPBUF_UNWINDS): Use JB_SP.
4260
4261 Wed Aug 30 16:44:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4262
4263         * sysdeps/mach/hurd/select.c: Deal with out of order replies
4264         during io_select request loop.
4265         Handle MACH_RCV_TIMED_OUT error from requests.
4266         * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
4267         distinguish MACH_RCV_TIMED_OUT from EINTR.
4268
4269         * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
4270         slash.
4271         (glob_in_dir): Don't allocate extra byte here.
4272
4273         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
4274         Decrement the DT_RELSZ value for the skipped reloc.
4275
4276 Tue Aug 29 12:35:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4277
4278         * time/australasia: Updated data from ADO.
4279
4280 Mon Aug 28 17:47:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4281
4282         * dirent/dirent.h: Don't include <dirstream.h>.
4283         Instead, define DIR as typedef for (undefined) `struct __dirstream'.
4284
4285 Fri Aug 25 12:12:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4286
4287         * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
4288         instead of `DIR'.
4289         * sysdeps/unix/bsd/dirstream.h: Likewise.
4290         * sysdeps/stub/dirstream.h: Likewise.
4291         * sysdeps/unix/dirstream.h: Likewise.
4292         * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
4293         * sysdeps/mach/hurd/seekdir.c: Likewise.
4294         * sysdeps/mach/hurd/opendir.c: Likewise.
4295         * sysdeps/mach/hurd/closedir.c: Likewise.
4296         * sysdeps/mach/hurd/readdir.c: Likewise.
4297         * sysdeps/unix/telldir.c: Likewise.
4298         * sysdeps/unix/seekdir.c: Likewise.
4299         * sysdeps/unix/rewinddir.c: Likewise.
4300         * sysdeps/unix/readdir.c: Likewise.
4301         * sysdeps/unix/opendir.c: Likewise.
4302         * sysdeps/unix/closedir.c: Likewise.
4303         * sysdeps/unix/bsd/telldir.c: Likewise.
4304         * sysdeps/unix/bsd/readdir.c: Likewise.
4305         * dirent/Makefile (headers): Remove dirstream.h.
4306         (distribute): Put it here instead.
4307
4308         * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
4309
4310         * stdio/vfscanf.c (number): Allow field width to inhibit first
4311         digit after base detection.
4312
4313         * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
4314         specified by the precision.
4315
4316         * grp/grpread.c (__grpscan): New function.
4317         * grp/grp.h (__grpscan): Declare it.
4318         * grp/getgrgid.c: Use __grpscan.
4319         * grp/getgrnam.c: Likewise.
4320         * pwd/pwdread.c (__pwdscan): New function.
4321         * pwd/pwd.h (__pwdscan): Declare it.
4322         * pwd/getpwnam.c: Use __pwdscan.
4323         * pwd/getpwuid.c: Likewise.
4324
4325 Thu Aug 24 16:29:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4326
4327         * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
4328         MAP_FILE.
4329
4330         * hurd/thread-cancel.c: Return EINTR when called on self.
4331         * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
4332         __data_start.
4333
4334 Tue Aug 22 16:49:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4335
4336         * inet/netdb.h: Moved to resolv.
4337         * inet/Makefile (headers): Remove netdb.h.
4338         * resolv/Makefile (headers): Add netdb.h.
4339         * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
4340         resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
4341
4342         * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
4343         resuming the thread.
4344         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
4345
4346         * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
4347
4348 Mon Aug 21 16:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4349
4350         * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
4351         relocs, and do nothing.  Why the linker generates them we may
4352         never know.
4353
4354 Thu Aug 17 16:18:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4355
4356         * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
4357         `subdirs' variable.
4358
4359         * sysdeps/mach/hurd/i386/intr-msg.h: New file.
4360         * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
4361         "intr-msg.h" for special syscall code, instead of i386-specific asm.
4362         * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
4363         machine-dependent "intr-msg.h" before mutating thread state to
4364         skip RPC.
4365
4366         * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
4367         _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
4368         %ecx.
4369
4370         * Makeconfig (link-libc): New variable; use shared library if
4371         available.
4372         (+link): Use it.
4373
4374         * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
4375         Instead, declare with `symbol_set_declare'.
4376         (fork): Use symbol_set_* macros for _hurd_fork_locks.
4377         Use SS->thread instead of __mach_thread_self ().  Suspend all
4378         other threads during task_create and port copying.
4379
4380 Wed Aug 16 17:04:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4381
4382         * hurd/intr-msg.c: Fixed calculation of syscall %esp.
4383
4384 Tue Aug 15 12:26:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4385
4386         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
4387
4388         * hurd/Makefile (sig): Add intr-msg.
4389
4390 Mon Aug 14 16:51:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4391
4392         * hurd/thread-cancel.c: New file.
4393         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
4394         rpc_wait case, frob mach_msg args to set timeout on receive.
4395         (_hurdsig_rcv_interrupted_p): Function removed.
4396         * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
4397         * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
4398         * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
4399         * hurd/intr-msg.c: New file.
4400         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
4401         (_hurdsig_rcv_interrupted_p): Declaration removed.
4402         (HURD_EINTR_RPC): Macro removed.
4403         (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
4404         these.
4405         * hurd/intr-rpc.h: New file.
4406         * hurd/intr-rpc.defs: Just import intr-rpc.h.
4407         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
4408         (interrupted_reply_port_location): Take new flag arg; only catch
4409         faults if it's set.
4410         (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
4411         No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
4412         &_hurd_intr_rpc_msg_in_trap.  If before it, mutate state to simulate
4413         MACH_SEND_INTERRUPTED return; on it, interrupt the operation.  All
4414         callers changed.
4415         * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
4416         * hurd/Makefile (distribute): Remove intr-rpc.awk.
4417         (sig): Add thread-cancel.
4418         (transform-user-stub, transform-user-stub-output): Variables removed.
4419         * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
4420         `__hurd_intr_rpc_*' to `__*'.
4421         (_hurd_intr_rpc_mach_msg): New function.
4422         (_hurd_thread_sigstate): Function removed.
4423         * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
4424         instead of __mach_msg inside HURD_EINTR_RPC macro.
4425
4426         * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
4427         to take ptrdiff_t arg.
4428
4429         * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
4430
4431         * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
4432
4433         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
4434         weak_alias): Use `extern' storage class.
4435
4436 Wed Aug  9 14:25:35 1995  Miles Bader  <miles@geech.gnu.ai.mit.edu>
4437
4438         * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
4439         port-count parameters to __auth_makeauth.
4440         * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
4441
4442 Tue Aug  8 12:22:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4443
4444         * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
4445
4446         * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
4447
4448 Tue Aug  8 12:06:04 1995  Michael I. Bushnell, p/BSG  <mib@duality.gnu.ai.mit.edu>
4449
4450         * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
4451         IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
4452         layer socket options.
4453         (IPPROTO_GGP): Delete obsolote protocol.
4454         (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
4455         (struct ip_mreq): New type.
4456
4457 Mon Aug  7 14:04:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4458
4459         * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
4460
4461         * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
4462         (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
4463
4464         * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
4465         when __stdio_open fails with a code other than ENFILE or EMFILE.
4466
4467 Fri Aug  4 16:01:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4468
4469         * Makefile (headers): Added gnu-versions.h.
4470
4471 Thu Aug  3 14:41:11 1995  Michael I. Bushnell  <mib@duality.gnu.ai.mit.edu>
4472
4473         * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
4474         equality, not assignment, to test bitfields.
4475
4476 Sat Jul 29 10:41:06 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
4477
4478         * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
4479         resolve AF_LOCAL addresses.
4480
4481         * sysdeps/mach/hurd/accept.c (accept): If the protocol family
4482         can't tell us what an address means, just return a zero-length
4483         buffer instead.
4484         * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
4485
4486 Fri Jul 28 15:29:11 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
4487
4488         * sysdeps/mach/hurd/bind.c (bind): Don't use
4489         file_invoke_translator, as it doesn't work.  Instead just lookup
4490         the translated node again, and hope we're not hit by any race
4491         conditions.
4492
4493 Wed Jul 26 02:00:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4494
4495         * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
4496         [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
4497         [start-installed-name-rule]: If this is defined, elide rule for
4498         $(objpfx)$(start-installed-name).
4499         * csu/initfini.c (SECTION): New macro, different definitions for
4500         #ifdef HAVE_ELF and not.
4501         (_init, _fini): Use that macro.
4502         * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
4503         (start-installed-rule, start-installed-name-rule): New variables;
4504         specify crt1.o, created by our own rule.
4505         ($(objpfx)crt1.o): New rule.
4506         * configure.in: Require autoconf 2.4.2 or later.  Change all
4507         AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
4508         prettify some messages.
4509         [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
4510         sections.
4511         * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
4512         this case rather than #ifdef HAVE_ELF.
4513         * config.h.in (HAVE_INITFINI): New macro.
4514         * config.make.in (have-initfini): New variable, set by configure.
4515
4516         * stdio/vfscanf.c (conv_error): Simplify expression to avoid
4517         "value computed is not used" warning.
4518
4519         * Makeconfig (+gccwarn): Removed -Wconversion.
4520
4521         * csu/initfini.c (GLOBAL): Macro removed.
4522         (_init, _fini): Always define globally.
4523         * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
4524
4525         * asia, backward, europe, leapseconds, southamerica: New data from
4526         ADO's 95e.
4527
4528         * inet/Makefile (routines): Removed inet_addr.
4529         * inet/inet_addr.c: Moved to resolv/ subdirectory.
4530         * resolv/Makefile (routines): Added inet_addr.
4531         * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
4532         * resolv/gethnamaddr.c: Likewise.
4533         * resolv/getnetbyaddr.c: Likewise.
4534         * resolv/getnetbyname.c: Likewise.
4535         * resolv/getnetent.c: Likewise.
4536         * resolv/getnetnamadr.c: Likewise.
4537         * resolv/herror.c: Likewise.
4538         * resolv/nsap_addr.c: Likewise.
4539         * resolv/res_comp.c: Likewise.
4540         * resolv/res_debug.c: Likewise.
4541         * resolv/res_init.c: Likewise.
4542         * resolv/res_mkquery.c: Likewise.
4543         * resolv/res_query.c: Likewise.
4544         * resolv/res_send.c: Likewise.
4545         * resolv/resolv.h: Likewise.
4546         * resolv/sethostent.c: Likewise.
4547         * resolv/arpa/nameser.h: Likewise.
4548         * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
4549         [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
4550         its declarations (and doing so only #ifdef sun!).
4551         * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
4552
4553         * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
4554         [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
4555
4556         * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
4557         if possible.
4558
4559         * mach/shortcut.awk: Emit decls for RPC.
4560
4561         * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
4562         weak_alias, strong_alias): Define using GCC __attribute__ syntax.
4563
4564         * Makerules ($(installed-libcs)): Depend on `lib' (only).
4565
4566 Tue Jul 25 09:14:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4567
4568         * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
4569
4570         * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
4571
4572         * sysdeps/unix/sysv/ftime.S: New file.
4573
4574         * locale/locfile-parse.c (categories_write): Cast "" to char *.
4575
4576         * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
4577
4578         * time/strftime.c: Use year modulo 100 for %y.
4579
4580         * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
4581
4582         * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
4583         of one, to work around bug in sunos4.1.2 sed.
4584
4585         * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
4586         memchr instead of strlen to limit search for NUL by precision.
4587
4588 Mon Jul 24 03:13:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4589
4590         * sysdeps/posix/pathconf.c: New file.
4591
4592 Sat Jul 22 20:53:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4593
4594         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
4595         before @PLT.
4596         * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
4597         * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
4598         * sysdeps/i386/bsd-setjmp.S: Likewise.
4599
4600 Sat Jul 22 19:58:54 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
4601
4602         * inet/Makefile (routines): Added `ruserpass'.
4603         * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
4604         client.  Modified to remove the fourth arg AACCT.  Do nothing for
4605         the `account' and `macdef' keywords.  Other incidental changes
4606         because we are not in the FTP source tree.
4607
4608 Sat Jul 22 01:56:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4609
4610         * sysdeps/stub/init-posix.c: Removed stub warning.
4611
4612         * Makefile (autoconf-it): Make it executable and unwritable.
4613
4614         * configure.in (sysnames): Under --enable-debug-configure, spew
4615         potential sysnames.
4616
4617         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
4618         #ifdef PIC.
4619         (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
4620         * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
4621         jump insn.
4622
4623         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
4624         * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
4625         * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
4626         <sys/socketcall.h>.  Save %ebx in call-clobbered %edx instead of
4627         stack.  Use JUMPTARGET(syscall_error) in jump insn.
4628
4629         * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
4630
4631         * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
4632         ASM_TYPE_DIRECTIVE.
4633         (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
4634
4635         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
4636         Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
4637         * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
4638
4639         * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
4640         instead of unix/sysv.
4641         * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
4642         socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
4643         to new directory sysdeps/unix/sysv/sysv4/linux.
4644         * sysdeps/unix/sysv/linux: Directory removed.
4645         * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
4646         to new directory sysdeps/unix/sysv/sysv4/linux/i386.
4647         * sysdeps/unix/sysv/linux/i386: Directory removed.
4648
4649         Fixes to help Linux, inspired by drepper's work:
4650         * sysdeps/posix/utimes.c: New file.
4651         * sysdeps/generic/getdomain.c: New file.
4652         * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
4653         * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
4654         externals _dl_argc, _dl_argc, and _environ.
4655
4656 Fri Jul 21 12:57:29 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
4657
4658         * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
4659         EOPNOTSUPP as indications that the server has died.
4660         * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
4661         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
4662
4663 Mon Jul 17 08:45:40 1995  Jim Meyering  (meyering@comco.com)
4664
4665         * strtol.c: Portability changes from Uli Drepper.
4666         [!STDC_HEADERS && !defined(NULL)]: Define NULL.
4667
4668 Mon Jul 10 05:39:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4669
4670         * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
4671         DATA for the entry SP; DATA[-1] is always the return address
4672         location.  In both cthreads and non-cthreads cases, use asm to
4673         force parameters into %eax and %ecx before return, and mutate
4674         DATA[-1] to return to specific asm code to set up the user from
4675         %eax and %ecx.
4676         [PIC] (_init): Caller changed.
4677         (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
4678         with SP unwound to argument data ptr.
4679
4680 Thu Jul  6 14:28:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4681
4682         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
4683         when 0x08000000 and up are not mapped.
4684
4685         * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
4686         before touching it.
4687         (lib%.so): Use -Wl to get -soname to ld.
4688
4689         * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
4690
4691         * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
4692
4693 Tue Jun 20 02:18:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4694
4695         * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
4696         library's name including $(libprefix) and major version number.
4697
4698         * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
4699         in place of xcalloc.
4700
4701         * Makeconfig (prefix, exec_prefix, libprefix): Instead of
4702         `ifndef', use the $(origin) function to only set these if they are
4703         undefined, and not if they are defined to empty.
4704
4705         * gnu-versions.h: New file.
4706         * features.h (__GNU_LIBRARY__): Increase value to 5.
4707
4708 Wed Jun 14 03:45:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4709
4710         * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
4711         expression, to avoid gcc's "value computed is not used" warning.
4712
4713         * libc-symbols.h (_elf_set_element): Give the set-element variable
4714         an `unused' attribute.
4715
4716         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
4717         __attribute__ ((__const__)).
4718         * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
4719
4720         * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
4721         LINK->resource.next->resource.prevp when appropriate, not
4722         LINK->resource.next->thread.prevp!!!
4723
4724 Tue Jun 13 15:45:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4725
4726         * configure.in (libc_cv_asm_set_directive): Make sure that the
4727         `.set' directive really worked by linking against a reference to
4728         the alias.
4729
4730         * sysdeps/stub/init-first.c: Don't include <hurd.h>.
4731         [PIC] (soinit): Renamed to (global) _init.
4732
4733 Mon Jun 12 13:15:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4734
4735         * malloc/Makefile (gmalloc-routines): Remove valloc.
4736         (dist-routines): Add it here.
4737
4738         * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
4739         emacs_loser_valloc to inhibit valloc declaration below.
4740
4741         * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
4742         installation rules.
4743
4744         * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
4745         it uses the `.type' directive, which is necessary for shared
4746         libraries to work properly.
4747
4748 Thu Jun  8 02:50:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4749
4750         * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
4751         from zero fill.
4752
4753         * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
4754         if nonzero, don't let *REF satisfy the reference itself.
4755         * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
4756         * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
4757         _dl_lookup_symbol.
4758         * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
4759         R->r_offset to RESOLVE callback.
4760         * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
4761         satisfy the reference itself if its value equals the reloc's
4762         offset.
4763
4764         * elf/rtld.c (dl_main): Write a newline in fatal msg.
4765
4766         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
4767
4768         * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
4769
4770         * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
4771         and user entry point addresses.
4772
4773         * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
4774         (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
4775
4776         * Makerules (install-lib.so): Don't include libc.so.
4777         [$(build-shared)=yes] (install): Depend on the installed libc.so file.
4778         [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
4779         install, depend on the installed $(install-lib.so) files.
4780         [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
4781
4782         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
4783         allocate high addresses to avoid random mappings appearing there.
4784         (mmap): Comment out mask; always pass zero.
4785
4786 Tue Jun  6 13:34:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4787
4788         * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
4789         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
4790
4791         * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
4792         when successful.
4793
4794         * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
4795         (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
4796         variables, using the `threadvars' buffer.
4797
4798         * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
4799         * sysdeps/i386/dl-runtime.c: Likewise.
4800
4801         * elf/rtld.c (dl_main): Add missing NULL terminating argument in
4802         _dl_sysdep_fatal call.
4803         (__assert_fail): Likewise.
4804
4805         * locale/Makefile (localedef-modules): Renamed ctype to
4806         locale-ctype so as not to conflict with the object file for
4807         ctype/ctype.c in the build directory.
4808
4809 Mon Jun  5 04:02:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4810
4811         * elf/elf.h (ELFMAG): Use \177 instead of \x7f.  It seems GCC
4812         insists on seeing the following E as part of hex 7FE, and
4813         complaining that is wider than a byte.
4814
4815 Sun Jun  4 22:14:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4816
4817         * hurd/Makefile (sig): Added thread-self.
4818         * hurd/hurd.h: Declare hurd_thread_self.
4819         * hurd/thread-self.c: New file.
4820
4821 Thu Jun  1 12:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4822
4823         * elf/rtld.c: Initialize RTLD_MAP.l_type.
4824         * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
4825         the dynamic linker itself.
4826         * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
4827         lt_interpreter, first undo relocation done during bootstrapping.
4828
4829 Tue May 30 15:52:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4830
4831         * mach/Makefile (server-interfaces): Removed notify and
4832         device_reply.  For shlibs with eager binding, libmachuser.so must
4833         not refer to any functions not defined in libc.
4834
4835 Sat May 27 16:23:22 1995  Jim Meyering  (meyering@comco.com)
4836
4837         * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
4838         to avoid error from Irix-4.0.5's C compiler.  From Kaveh Ghazi.
4839
4840 Fri May 26 13:00:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4841
4842         * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
4843         pending signals if the thread is in a critical section.  It will
4844         send us a msg when it finishes.
4845
4846         * sysdeps/mach/hurd/pathconf.c: New file.
4847         * sysdeps/mach/hurd/fpathconf.c: New file.
4848
4849         * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
4850         SIGCHLD when the SA_NOCLDSTOP bit actually changes.
4851
4852 Sun May 21 05:05:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4853
4854         * elf/Makefile (ld.so): Use -nostartfiles in addition to
4855         -nostdlib.
4856
4857 Sun May 21 02:01:29 1995  Jim Meyering  (meyering@comco.com)
4858
4859         * sysdeps/generic/memchr.c: Don't include <string.h> at all.
4860         HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
4861         memchr unless one manually arranges for them to define __STDC__.
4862
4863 Fri May 19 17:16:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4864
4865         * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
4866         args on stack from kernel.
4867
4868         * posix/Makefile, sysdeps/alpha/Makefile,
4869         * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
4870         * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
4871         in the absence of CVS dirs.
4872
4873         * hurd/hurdstartup.c: Don't call __mach_init.  Grok args from the
4874         kernel on the stack properly.
4875
4876         * set-init.c: Never call _init/_fini; just run __libc_subinit.
4877
4878         * Makerules (LDFLAGS-c.so): Add -nostartfiles.
4879         * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
4880
4881         * configure.in: Move defaulting of --with-elf and --with-gnu-*
4882         based on host os outside the AC_CACHE_VAL for the sysdirs
4883         calculation.
4884
4885         * Makeconfig (localedir, nlsdir): New variables.
4886
4887         * values.h: New file.
4888         * Makefile (headers): Add values.h.
4889
4890         * locale/Makefile (distribute): Add error.h.
4891         * locale/localedef.c: Include "error.h".
4892         (main): Use error_message_count instead of warning_cntr.
4893
4894 Wed May 17 16:50:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4895
4896         Merged 1003.2 locale and localedef programs by Ulrich Drepper.
4897         * locale/charmap.c: New file.
4898         * locale/collate.c: New file.
4899         * locale/config.h: New file.
4900         * locale/ctype.c: New file.
4901         * locale/ctypedump.c: New file.
4902         * locale/hash.c: New file.
4903         * locale/hash.h: New file.
4904         * locale/iso-4217.def: New file.
4905         * locale/keyword.gperf: New file.
4906         * locale/keyword.h: New file.
4907         * locale/libintl.h: New file.
4908         * locale/locale.c: New file.
4909         * locale/localedef.c: New file.
4910         * locale/localedef.h: New file.
4911         * locale/locfile-lex.c: New file.
4912         * locale/locfile-parse.c: New file.
4913         * locale/messages.c: New file.
4914         * locale/monetary.c: New file.
4915         * locale/numeric.c: New file.
4916         * locale/token.h: New file.
4917
4918         * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
4919         * posix/Makefile (headers): Add regex.h.
4920         (routines): Add regex.
4921         (gpl2lgpl): Add regex.c and regex.h.
4922
4923 Tue May 16 17:35:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4924
4925         * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
4926         instead of hard-coding "/share/locale".
4927
4928 Sat May 13 02:16:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4929
4930         * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
4931
4932 Fri May 12 15:31:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4933
4934         * elf/elf.h (ELFMAG, SELFMAG): New macros.
4935
4936 Fri May 12 11:24:53 1995  Michael I Bushnell  <mib@duality.gnu.ai.mit.edu>
4937
4938         * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
4939         the case where it starts out less than _hurd_dtablesize.
4940
4941 Thu May 11 20:51:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4942
4943         * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
4944         make sure the new size exceeds FIRST_FD.
4945
4946 Wed May 10 21:00:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4947
4948         * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
4949
4950 Tue May  9 01:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4951
4952         * Makerules (install-lib.so): Add %.so for each %_pic.a.
4953
4954         * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
4955         the first thing in .data.
4956
4957         * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
4958
4959         * hurd/hurdstartup.h: New file.
4960
4961         * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
4962         are the same.  Use `jz' instead of `jeq'.
4963
4964         * Makeconfig (config.make): Depend on config.status, and run it to
4965         update.
4966         (config.status): New target; depend on configure.
4967         If target (config.status) exists, run it with --recheck to update;
4968         if not, give error msg saying to run confiugre by hand.
4969         * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
4970         (sysd-Makefile-force): Set this variable to FORCE in this case, to
4971         force a rebuild of sysd-Makefile.
4972         (sysd-Makefile): Depend on $(sysd-Makefile-force).
4973         Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
4974         [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
4975         variable to FORCE in this case, to force a rebuild of sysd-rules.
4976         (sysd-rules): Depend on $(sysd-rules-force).
4977         Write into the file sysd-rules-sysdirs:=$(sysdirs).
4978
4979         * Makerules (LDFLAGS-c.so): Change ld option -interp to
4980         -dynamic-linker.
4981
4982         * Makerules (do-install-program): New canned sequence.
4983         (install-bin, install-sbin): Use it.
4984         (install for lib*.so): Use it instead of $(do-install).
4985         Fix .so installation rules to handle lib*.so and *.so, deal with
4986         $(libprefix) right, and install *.so as *.so$($(*.so)-version);
4987         i.e. "libc.so-version = .1".
4988
4989 Mon May  8 05:10:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4990
4991         * elf/do-rel.h: New file, split out of dynamic-link.h.
4992         * elf/Makefile (distribute): Add do-rel.h.
4993
4994 Sat May  6 11:06:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4995
4996         * Makeconfig (+gccwarn): Add -Winline.
4997
4998         * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
4999         set, avoid abort_rpcs, and use reply and intr ports saved in
5000         SS->context.
5001         * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
5002         from SS->context.  Don't clear SS->context.
5003         * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
5004         setting SS->context.  If msg_sig_post returns, re-lock and clear
5005         SS->context.
5006
5007 Fri May  5 10:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5008
5009         * mach/Makefile (errsystems.c): Comment out generation rule.
5010
5011         * sysdeps/mach/_strerror.c: Consider a system unknown if its
5012         bad_sub member is null.
5013
5014         * mach/mig-alloc.c: Add weak alias to non-__ name.
5015
5016 Wed May  3 11:56:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5017
5018         * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
5019
5020 Tue May  2 01:52:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5021
5022         * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
5023         function.  Duh.
5024
5025         * hurd/Makefile (distribute): Added hurdstartup.h.
5026         * hurd/hurd.h: Remove _hurd_startup decl.
5027
5028         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
5029         ((__unused__)) instead of gratuitous self reference.
5030
5031         * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
5032         table if FD2 doesn't fit.
5033
5034         * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
5035         not the current table size.
5036
5037         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
5038
5039         Implemented runtime dynamic linker to support ELF shared libraries.
5040         * elf/Makefile: Added rules to make ld.so and libdl.
5041         * elf/dl-error.c: New file.
5042         * elf/dl-fini.c: New file.
5043         * elf/dl-init.c: New file.
5044         * elf/dl-load.c: New file.
5045         * elf/dl-lookup.c: New file.
5046         * elf/dl-object.c: New file.
5047         * elf/dl-reloc.c: New file.
5048         * elf/dlclose.c: New file.
5049         * elf/dlerror.c: New file.
5050         * elf/dlopen.c: New file.
5051         * elf/dlsym.c: New file.
5052         * elf/dynamic-link.h: New file.
5053         * elf/link.h: New file.
5054         * elf/rtld.c: New file.
5055         * sysdeps/i386/dl-machine.h: New file.
5056         * sysdeps/stub/dl-machine.h: New file.
5057         * sysdeps/i386/dl-runtime.c: New file.
5058         * sysdeps/stub/dl-runtime.c: New file.
5059         * sysdeps/i386/elf/start.S: New file.
5060         * sysdeps/generic/dl-sysdep.c: New file.
5061         * sysdeps/mach/hurd/dl-sysdep.c: New file.
5062         * sysdeps/mach/hurd/i386/init-first.c: New file.
5063         * sysdeps/i386/init-first.c: New file.
5064         * sysdeps/stub/init-first.c: New file.
5065
5066 Mon May  1 18:48:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5067
5068         * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
5069         libc.so runnable.
5070         * version.c (__libc_print_version): Add "et al" and missing NL to
5071         author credit.
5072
5073 Sat Apr 29 15:46:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5074
5075         * posix/glob.c (S_ISDIR): Define if undefined.
5076
5077 Thu Apr 27 01:24:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5078
5079         * configure.in: Unless --without-fp, prepend */fpu before each
5080         machine dir in $mach; don't prepend FPU dirs at end.  If
5081         --with-elf, prepend MACHINE/elf directories at end; don't insert
5082         them into $mach.
5083
5084         * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
5085
5086         * sysdeps/stub/clock.c: Added stub warning.
5087         * sysdeps/stub/dirfd.c: Likewise.
5088         * sysdeps/stub/exc2signal.c: Likewise.
5089         * sysdeps/stub/fdopen.c: Likewise.
5090         * sysdeps/stub/flock.c: Likewise.
5091         * sysdeps/stub/fpathconf.c: Likewise.
5092         * sysdeps/stub/ftruncate.c: Likewise.
5093         * sysdeps/stub/gtty.c: Likewise.
5094         * sysdeps/stub/isatty.c: Likewise.
5095         * sysdeps/stub/killpg.c: Likewise.
5096         * sysdeps/stub/madvise.c: Likewise.
5097         * sysdeps/stub/mkstemp.c: Likewise.
5098         * sysdeps/stub/mktemp.c: Likewise.
5099         * sysdeps/stub/mprotect.c: Likewise.
5100         * sysdeps/stub/msync.c: Likewise.
5101         * sysdeps/stub/pathconf.c: Likewise.
5102         * sysdeps/stub/poll.c: Likewise.
5103         * sysdeps/stub/raise.c: Likewise.
5104         * sysdeps/stub/readv.c: Likewise.
5105         * sysdeps/stub/setenv.c: Likewise.
5106         * sysdeps/stub/setlogin.c: Likewise.
5107         * sysdeps/stub/sigaltstack.c: Likewise.
5108         * sysdeps/stub/sigintr.c: Likewise.
5109         * sysdeps/stub/sigstack.c: Likewise.
5110         * sysdeps/stub/sleep.c: Likewise.
5111         * sysdeps/stub/sstk.c: Likewise.
5112         * sysdeps/stub/stime.c: Likewise.
5113         * sysdeps/stub/stty.c: Likewise.
5114         * sysdeps/stub/syscall.c: Likewise.
5115         * sysdeps/stub/sysconf.c: Likewise.
5116         * sysdeps/stub/truncate.c: Likewise.
5117         * sysdeps/stub/ualarm.c: Likewise.
5118         * sysdeps/stub/usleep.c: Likewise.
5119         * sysdeps/stub/utimes.c: Likewise.
5120         * sysdeps/stub/writev.c: Likewise.
5121
5122         * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
5123
5124 Wed Apr 26 16:06:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5125
5126         * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
5127
5128 Tue Apr 25 17:17:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5129
5130         * posix/glob.c (glob): If GLOB_MARK set, stat names to find
5131         directories and append slashes to them in final pass before
5132         sorting.
5133         (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
5134         slash; never append it here.
5135
5136 Sat Apr 22 14:48:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5137
5138         * mach/Machrules [interface-library]
5139         (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
5140         -nostdlib.
5141
5142         * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed.  Lock
5143         _hurd_siglock only around initial task creation in parent.  Use
5144         _hurd_critical_section_unlock at end.  Handle dead name rights
5145         properly, and deal with a send right dying while we try to copy
5146         it.  For the time being, use assert_perror for kernel and proc RPC
5147         failures.
5148
5149 Fri Apr 21 01:10:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5150
5151         * extra-lib.mk: Don't include $(o-iterator); construct it by hand
5152         using $(object-suffixes-$(lib)) instead.
5153
5154         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
5155
5156         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
5157         (LDFLAGS-c.so): New variable.
5158
5159         * resolv/res_init.c (res_init): Don't clobber _res.options with
5160         RES_DEFAULT.  If RES_INIT is clear, OR in RES_DEFAULT.
5161
5162         * hurd/hurd.h: Declare _hurd_startup.
5163         * hurd/hurdstartup.c: New file.
5164         * hurd/Makefile (routines): Add hurdstartup.
5165
5166 Thu Apr 20 22:23:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5167
5168         * hurd/hurdsig.c: Use assert_perror for many calls which should
5169         never fail and previously were not checked.
5170
5171         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5172         Point the return address for sigreturn's frame at a "hlt" insn so
5173         it will definitely crash if sigreturn returns.
5174
5175 Wed Apr 19 18:40:11 1995  Brendan Kehoe  (brendan@zen.org)
5176
5177         * time/tzset.c (__tzname, __daylight, __timezone): Don't check
5178         HAVE_WEAK_SYMBOLS for doing weak_alias.
5179
5180 Wed Apr 19 18:12:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5181
5182         * configure.in: Move $os tests to set $elf et al earlier, before
5183         construction of $sysnames.  Instead of prepending MACHINE/elf to
5184         $sysnames, append &/elf after each elt appended to $mach.
5185
5186 Tue Apr 18 14:00:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5187
5188         * configure.in (libc_cv_asm_global_directive): New check to define
5189         ASM_GLOBAL_DIRECTIVE.
5190         * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
5191         * libc-symbols.h (strong_alias_asm, strong_alias): Use
5192         ASM_GLOBAL_DIRECTIVE on the alias.
5193
5194         * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
5195         HAVE_WEAK_SYMBOLS" #defns.
5196
5197 Mon Apr 17 12:02:49 1995  Brendan Kehoe  (brendan@zen.org)
5198
5199         * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
5200         of the byte that was zero, so we return a valid number.
5201
5202 Sun Apr 16 03:23:09 1995  Brendan Kehoe  (brendan@zen.org)
5203
5204         * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
5205         NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
5206
5207 Fri Apr 14 18:49:03 1995  Brendan Kehoe  (brendan@zen.org)
5208
5209         * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
5210         [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
5211         * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
5212         [BITS_PER_MP_LIMB == 64]: Likewise.
5213
5214         * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
5215         * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
5216         * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
5217         * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
5218         * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
5219         * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
5220         * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
5221         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
5222         * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
5223         * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
5224         * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
5225
5226         * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
5227         * sysdeps/unix/mips/fork.S (fork): Likewise.
5228         * sysdeps/unix/mips/pipe.S (fork): Likewise.
5229         * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
5230         * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
5231         * sysdeps/unix/mips/wait.S (__handler): Likewise.
5232         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
5233         * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
5234         * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
5235         * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
5236         * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
5237         * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
5238         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
5239         * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
5240         * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
5241         * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise.  Use `$0'
5242         instead of `zero' for the li instruction.
5243
5244         * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
5245         preprocessor comments, not assembler comments.
5246         * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
5247         * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
5248
5249 Fri Apr 14 15:53:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5250
5251         * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
5252         in place of inline.
5253
5254 Thu Apr 13 09:45:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5255
5256         * Makefile (distribute): Add ChangeLog.[0-9].
5257
5258         * configure.in: Add check for .set directive.
5259         * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
5260         * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
5261         strong_alias_asm): Use `foo = bar' syntax instead.
5262
5263         * Makerules [! subdir] (O%-lib): Don't prepend ../.
5264
5265         * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
5266
5267         * configure.in: Fix AC_ARG_WITH uses; check for --with-fp.  Move
5268         $host_os checks to set gnu_ld/as and elf before sysdirs
5269         generation.  Fix $with_fp test.
5270         [$elf=yes]: Prepend MACHINE/elf directory.
5271
5272         * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
5273         being cleared are already known to be set.  Thanks Ulrich.
5274
5275 Wed Apr 12 23:27:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5276
5277         * posix/environ.c: Add weak alias `_environ'.
5278
5279 Tue Apr 11 20:38:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5280
5281         * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
5282         * sysdeps/i386/sub_n.S [PIC]: Likewise.
5283
5284 Mon Apr 10 14:53:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5285
5286         * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
5287         word `const'.
5288
5289         * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
5290         $(foo-$(suffix $@)).
5291
5292         * manual/Makefile (chapters-incl): Filter out summary.texi.
5293
5294         * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
5295         a weak symbol instead of literal "STRTOF".
5296
5297         * locale/setlocale.c: Work around ld bug: don't weakify refs to
5298         _nl_{current,C}_*.
5299
5300 Sun Apr  9 01:24:33 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5301
5302         * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
5303
5304         * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
5305         * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
5306
5307         * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
5308         #ifdef emacs, but only #ifndef memmove.
5309         * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
5310         safe_bcopy.
5311         (memmove): Define only if undefined.
5312
5313 Sat Apr  8 00:40:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5314
5315         * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
5316         sure these are simply-expanded variables.
5317
5318         * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
5319         mmap call.
5320
5321         * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
5322         for these too.
5323
5324         * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
5325         set c_oflag value.
5326
5327         * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
5328
5329         * locale/Makefile (categories): Uncomment collate.
5330         * locale/lc-collate.c: New file.
5331
5332         * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
5333         #ifdef emacs.
5334         * malloc/realloc.c: Likewise.
5335
5336         * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
5337         (_itoa): Use it in defn.
5338         * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
5339         "_itoa.h".
5340         (_itoa): Function removed.
5341
5342         * malloc/free.c: Remove use of `assert'.
5343
5344         * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
5345         __malloc_safe_bcopy; #define safe_bcopy.
5346         * malloc/free.c: Cope with systems lacking `memmove'.
5347         (_free_internal): Cast result of _malloc_internal.
5348
5349 Wed Apr  5 00:13:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5350
5351         * hurd/hurdinline.c: Include signal.h first, so we don't define
5352         its inlines too.
5353
5354         * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
5355         of -1 to avoid compiler warning.
5356
5357         * configure.in (host_os=linux*): Set elf=yes for this, not just
5358         linux*elf*.
5359
5360         * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
5361         and open.
5362
5363         * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
5364
5365 Tue Apr  4 00:48:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5366
5367         * sysdeps/unix/start.c: Remove spurious decl and #endif.
5368
5369         * misc/progname.c (program_invocation_name,
5370         program_invocation_short_name): Make these initialized data
5371         definitions.
5372
5373         * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
5374         so gcc doesn't optimize out the function entirely.
5375
5376 Sun Apr  2 13:13:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5377
5378         * posix/execvp.c: Don't use stat to search path; just try execv
5379         until it works.
5380
5381         * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
5382         SS->active_resources, so that _hurdsig_longjmp_from_handler will
5383         be called when a longjmp unwinds the signal frame.
5384         * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
5385         SS->active_resources chain added by _hurd_setup_sighandler.
5386         * hurd/sigunwind.c: New file.
5387         * hurd/Makefile (sig): Add sigunwind.
5388
5389         * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
5390
5391         * MakeTAGS (tags-sources): Include $(all-dist).
5392         [subdir] (all-dist): Define to $(distribute).
5393
5394 Sat Apr  1 00:08:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5395
5396         * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
5397         parent objdirs.
5398
5399         * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
5400         filtering out $($(lib)-inhibit-o); use that instead of
5401         $(object-suffixes) in all the other variables.
5402
5403         * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
5404         if undefined.
5405
5406         * string/strxfrm.c: Just copy the string (for now).
5407         * string/strcoll.c: Just call strcmp (for now).
5408
5409         * mach/Makefile (lock): Add mutex-init.
5410         * mach/mutex-solid.c (_cthread_mutex_lock_routine,
5411         _cthread_mutex_unlock_routine): Variables removed.
5412         (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
5413         (__mutex_init): Function moved to new file mutex-init.c.
5414         * mach/mutex-init.c: New file, broken out of mutex-solid.c.
5415
5416 Thu Mar 30 20:43:02 1995  Brendan Kehoe  <brendan@zen.org>
5417
5418         * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
5419         * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
5420
5421 Thu Mar 30 01:38:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5422
5423         * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
5424         both are zero).
5425
5426 Wed Mar 29 11:26:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5427
5428         * elf/dlfcn.h: New file.
5429
5430         * Make-dist (README): Commit it to CVS if there is a CVS directory.
5431
5432         More changes from Germano Caronni <caronni@tik.ethz.ch>:
5433         * malloc/free.c: Relocate _heapinfo when that allows us to return
5434         core to the system.
5435
5436         * malloc/malloc.c: Move #include <errno.h> outside #ifndef
5437         _MALLOC_INTERNAL.
5438
5439 Mon Mar 27 02:23:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5440
5441         * mach/Makefile (headers): Add mach/mach_traps.h.
5442
5443         * Makerules ($(installed-libcs) rule): Fix typos.
5444
5445         * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
5446         * sysdeps/stub/revoke.c: New file.
5447         * misc/Makefile (routines): Add revoke.
5448         * posix/unistd.h [__USE_BSD] (revoke): Declare it.
5449         * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
5450         (forkpty): Declare login_tty.
5451         * misc/logwtmp.c (logwtmp): Declare to return void.
5452         * misc/login_tty.c (login_tty): Include unistd.h.  Declare return type.
5453
5454         * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
5455
5456         * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
5457         unless L_SET already defined.
5458         * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
5459         already defined.
5460
5461         Incorporated -lutil library from 4.4-Lite.
5462         * misc/Makefile (extra-libs, libutil-routines): New variables.
5463         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
5464         sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
5465
5466         Support simple, light-weight unwind-protect mechanism for longjmp.
5467         * setjmp/longjmp.c: Call _longjmp_unwind first thing.
5468         * sysdeps/mach/hurd/jmp-unwind.c: New file.
5469         * sysdeps/stub/jmp-unwind.c: New file.
5470         * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
5471         * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
5472         * setjmp/Makefile (routines): Add jmp-unwind.
5473         * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
5474         `prevp' members into new substructure `resource'; add another such
5475         substructure `thread' and members `cleanup' (function ptr) and
5476         `cleanup_data' (generic ptr).
5477         (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
5478         into the `_hurd_self_sigstate ()->active_resources' list via the
5479         `thread' substructure.
5480         * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
5481         (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
5482         LINK->cleanup_data' to the port extracted.
5483         * hurd/hurd/signal.h (struct hurd_sigstate): New member
5484         `active_resources'.
5485         * hurd/port-cleanup.c: New file.
5486         * hurd/Makefile (routines): Add port-cleanup.
5487
5488         * malloc/malloc.c: Include errno.h.
5489
5490 Sat Mar 25 18:24:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5491
5492         * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
5493
5494 Fri Mar 24 02:35:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5495
5496         * misc/Makefile (headers): Add utmp.h.
5497         * misc/utmp.h: New file, incorporated from 4.4-Lite.
5498
5499         * stdio/printf-parse.h: New file, mostly written by drepper.
5500         * stdio/vfprintf.c: Rewritten, mostly by drepper.
5501         * stdio/printf-prs.c: Rewritten.
5502         * stdio/Makefile (distribute): Add printf-parse.h.
5503
5504 Thu Mar 23 22:03:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5505
5506         * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
5507         with asm name.  Just do a ".set start, __start".
5508
5509         * malloc/realloc.c: Call _free_internal instead of free.
5510
5511 Tue Mar 21 00:14:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5512
5513         * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
5514         directory, open LOCALE/LC_*/SYS_LC_* instead.
5515
5516 Mon Mar 20 03:19:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5517
5518         * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
5519         stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
5520         stdio/gen-mpn-copy: Files moved to stdlib.
5521         * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
5522         * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
5523         * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
5524         headers.
5525         * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
5526         headers.
5527
5528         * Makefile (parent-mostlyclean): Don't use $(libc.a).
5529         (parent-clean): Use $(objpfx) to find sysd-*.
5530         * Rules (generated): Append dummy.o dummy.c.
5531         * Makerules (lib): Depend on lib-noranlib.
5532         (lib-noranlib): Depend on $(install-lib) in objdir.
5533         (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
5534         from objdir.  Don't remove TAGS; it comes in the distribution.
5535
5536         * malloc/malloc.c (morecore): Save errno around call to
5537         _realloc_internal.  Don't account for the additional new blocks of
5538         the info table itself when choosing the new table size for the
5539         first crack; if it succeeds, the new blocks will have been found
5540         in existing free space already described by the existing info
5541         table.
5542
5543         * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
5544         read-ahead character.
5545
5546 Sat Mar 18 14:07:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5547
5548         * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
5549           hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
5550           hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
5551           hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
5552         Get anal with unsigned to pacify compiler.
5553
5554         * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
5555         means %d from 3rd arg).
5556
5557         * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
5558
5559         * stdlib/strtol.c: If !GROUP, set END to null.  In loop, test only
5560         END, not GROUP.
5561
5562 Fri Mar 17 12:58:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5563
5564         * Makefile (subdirs): Put elf last.
5565
5566         * sunrpc/Makefile (install-lib): Variable removed.
5567         (rpcsvc-objs): Variable removed.
5568         (extra-objs): Don't include $(rpcsvc-objs).
5569         (extra-libs): New variable, contains librpcsvc.
5570         (librpcsvc-routines): New variable.
5571         (librpcsvc-inhibit-o): New variable, contains .so.
5572         (omit-deps): Set this to $(librpcsvc-routines).
5573         ($(objpfx)rpcgen): Don't use $(libc.a).
5574         (lib, $(objpfx)librpcsvc.a): Targets removed.
5575
5576         * o-iterator.mk, extra-lib.mk: New files.
5577         * Makerules (o-iterator): New variable.
5578         [extra-libs]: Include extra-lib.mk to generate rules for each word
5579         of $(extra-libs).
5580         * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
5581
5582 Fri Mar 17 13:28:04 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5583
5584         * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
5585         Handle 80-bit denormalized numbers correctly.
5586
5587         * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
5588         (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
5589         * stdlib/strtod.c (RETURN): Add parentheses around return value.
5590         (round_and_return): Correct handling of denormalized numbers.
5591
5592         * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
5593         LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
5594         exponent.
5595
5596 Thu Mar 16 00:04:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5597
5598         * locale/C-ctype.c: New correct data generated by drepper.
5599
5600         * Rules: Don't use $(libc.a).
5601
5602         Parsing of grouped numbers contributed by Ulrich Drepper.
5603         * stdlib/strtol.c (__strtol_internal): Renamed from strtol.  Take
5604         new flag arg; if nonzero, parse locale-dependent thousands
5605         grouping and interpret only the prefix that is correctly grouped.
5606         (strtol): Define this to call _strtol_internal with zero for the flag.
5607         Use a weak symbol for the definition.
5608         * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
5609         Check for the exponent of the number overflowing the float format.
5610         * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
5611         (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
5612         [__OPTIMIZE__]: Define inline functions calling those.
5613         * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
5614         (strtold): Remove weak alias.
5615         * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
5616         (strtof): Remove weak alias.
5617         * stdlib/grouping.h: New file, written by drepper.
5618         * stdlib/Makefile (distribute): Add grouping.h.
5619         * stdio/vfscanf.c: Grok %' modifier to numeric conversions.  Call
5620         __strtoX_internal with the grouping flag set iff the modifier is
5621         present.
5622
5623 Wed Mar 15 00:40:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5624
5625         * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
5626
5627         * mach/Machrules: Produce static deps for all object flavors.
5628         [interface-library]: Remove all these variables and rules.
5629         ($(interface-library)-routines): Define this variable.
5630         (extra-libs): Append $(interface-library) to this.
5631         * mach/Makefile (interface-library): Omit .a suffix.
5632         * hurd/Makefile: Likewise.
5633
5634 Tue Mar 14 23:40:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5635
5636         * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
5637         early if no new data in buffer after priming.
5638
5639 Mon Mar 13 01:48:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5640
5641         * Makerules (object-suffixes, libtypes): Move all these variables
5642         to Makeconfig.
5643         * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
5644
5645         * Makerules (build-extra-lib): New canned sequence.
5646
5647         * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h.  Declare ERR;
5648         fix uses of FILE and PORT.  Remove bogus weak alias for `access'.
5649
5650         * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
5651         Add missing semicolon.
5652         * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h.  Use a `struct
5653         hurd_fd *' temp var, since DIRP->__fd is a `void *'.
5654         * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
5655
5656         * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
5657         locale data format is implemented.
5658
5659         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
5660         Pass &__sigreturn on the stack to the trampoline code, so it is
5661         not position-dependent.
5662
5663         * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
5664         Don't include <stdarg.h>.
5665         (__printf_fp): Last arg ARGS is now `const void **const';
5666         dereference ARGS[0] instead of using va_arg.
5667
5668         * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
5669         loop to install data.
5670
5671         * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
5672         to extract number from item code.
5673         (_nl_load_locale): Close the descriptor when finished.
5674
5675         * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
5676         place of malloc.
5677
5678         * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
5679
5680         * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
5681         to avoid warning.
5682         * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
5683         int to avoid warning.
5684
5685         Support building several flavors of objects and libraries.
5686         * Makerules (libtypes, object-suffixes): New variables.
5687         (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
5688         suffix.
5689         (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
5690         (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
5691         (close-check-inhibit-asm): Append a semicolon.
5692         (sysd-rules): Generate rules for each object suffix.
5693         (compile.S, compile.c): Always assume gcc.
5694         (OUTPUT_OPTION): Define unconditionally.
5695         (+make-deps): In generated rule, produce a dependent for each
5696         object suffix.
5697         (.SUFFIXES): Add $(object-suffixes) in place of .o.
5698         (.PRECIOUS): Make all suffix flavors precious.
5699         ($(libc.a)): Target removed.
5700         (lib): Depend on each enabled libtype.
5701         (libobjs, objects, objs): Depend on all the enabled object flavors.
5702         (lib%.a): New pattern rule.
5703         [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
5704         (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
5705         to make one for each flavor; library dep rule likewise rewritten.
5706         ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
5707         flavor.
5708         (symdef.%): New pattern rule; helper for __.SYMDEF targets.
5709         (installed-libcs): New variable.
5710         (install): Depend on that instead of
5711         $(libdir)/lib$(libprefix)$(libc-name).a;
5712         that file's rule rewritten to make each enabled libtype.
5713         (install-lib.so): New variable, filters lib%.so from $(install-lib).
5714         (install-lib): Filter out lib%.so after setting install-lib.so.
5715         [$(build-shared)=yes] (install): Install $(install-lib.so).
5716         (common-mostlyclean): Remove all flavors of objects.
5717         * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
5718         [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
5719
5720 Sun Mar 12 18:21:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5721
5722         * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
5723         * sysdeps/stub/pause.c: Likewise.
5724         * sysdeps/stub/time.c: Likewise.
5725
5726         * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
5727         locale data format is implemented.
5728         * stdlib/wctomb.c: Likewise.
5729
5730         * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
5731         gcc bug is fixed.
5732         * mach/errsystems.c: File removed.
5733
5734         * Makeconfig (libc.a): Variable removed.
5735         (+link): Don't use it.
5736
5737         * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
5738         assuming `yes'.
5739
5740         * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
5741         * malloc/realloc.c (_realloc_internal): Renamed from realloc;
5742         don't use __realloc_hook.
5743         (realloc): New function; call __realloc_hook ?: _realloc_internal.
5744         * malloc/malloc.c (_malloc_internal): Renamed from malloc;
5745         don't use __malloc_hook.
5746         (malloc): New function; call __malloc_hook ?: _malloc_internal.
5747         Changes from Germano Caronni <caronni@tik.ethz.ch>:
5748         (initialize): Set up _heaplimit to cover the _heapinfo table.
5749         (morecore_recursing): New static variable.
5750         (morecore): If that is set, return null immediately.
5751         When growing the info table, before getting new core from the
5752         system for it, set morecore_recursing and try moving _heapinfo
5753         with _realloc_internal.  When that fails and we get new core, set
5754         _heaplimit to cover the core for the new _heapinfo table.
5755         (register_heapinfo): New function.  Record the _heapinfo table's
5756         own blocks in that table and in the statistics variables.
5757         (initialize, _malloc_internal): Use it after allocating new table.
5758
5759 Fri Mar 10 22:26:28 1995  Jim Meyering  (meyering@comco.com)
5760
5761         * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
5762         by other packages.
5763         [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
5764
5765 Fri Mar 10 13:31:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5766
5767         * mach/errorlib.h (errors): Use const for decl.
5768
5769         * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
5770         (decode): New inline function; decode signed 32-bit integers, and
5771         sign-extend properly when long is longer than 32 bits.
5772         (__tzfile_read): Changed all uses of uc2ul to decode.
5773         Decode the transition times properly when sizeof (time_t) > 4.
5774
5775         * stdio/printf.h: Doc fixes.  Don't #include <stddef.h>.
5776         (printf_function): Make last arg ARGS a vector of pointers instead of a
5777         pointer to va_list.
5778
5779 Fri Mar 10 13:46:25 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5780
5781         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
5782         (buffered_vfprintf): Remove line buffer when flush failed.
5783
5784 Fri Mar 10 00:04:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5785
5786         * time/tzfile.c (struct ttinfo): New member `isgmt'.
5787         (__tzfile_read): Read isgmt flags for each type.
5788         (__tzfile_default): When using TZDEFRULES DST rules, adjust
5789         transition times according to the isstd and isgmt flags for the
5790         types of each transition, and adjust each transition to point to
5791         type index either 0 or 1.  Reset type indices 0 and 1 to describe
5792         the user's settings.
5793
5794 Thu Mar  9 22:29:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5795
5796         * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
5797         into just CLASS.  Add standard/optional flag to all items.
5798
5799         * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
5800
5801         * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
5802         Rearrange defn to satisfy compiler.
5803
5804         * locale/localeinfo.h: Declare _nl_current.
5805
5806         * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB.  Accept args
5807         --enable-shared, --enable-profile, --enable-omitfp; pass settings
5808         through to config.make.
5809         * config.make.in (build-shared, build-profile, build-omitfp): New
5810         config vars.
5811
5812         * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
5813         (DT_NUM): New macro.
5814
5815         * locale/nl_langinfo.c: Include errno.h and stddef.h.  Fix typos.
5816
5817         * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
5818
5819         * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
5820         MAP_COPY to MAP_PRIVATE.
5821
5822 Thu Mar  9 17:16:53 1995  Brendan Kehoe  (brendan@zen.org)
5823
5824         * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
5825         that's used inside the alpha sysdep.h.
5826
5827         * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
5828         keyword.
5829         * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
5830
5831         * configure.in: Match `osf*', not `osf1*'.
5832         * configure: Likewise.
5833         * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
5834
5835 Wed Mar  8 13:38:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5836
5837         * posix/glob/configure.bat: Fixes from DJ.
5838
5839         * time/backward, time/europe, time/northamerica, time/pacificnew,
5840         time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
5841         time/ialloc.c: Code and data updated from ADO's 95b.
5842         * time/emkdir.c: File removed.
5843         * time/Makefile (distribute, extra-objs, zic): Omit it.
5844
5845         * time/localtime.c: Deansideclized.  Never #define __tzname et al
5846         to non-__ names.
5847
5848         * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
5849         instead of short int *.
5850         * ctype/ctype-info.c: Likewise.
5851         * ctype/ctype.h: Likewise.
5852
5853         * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
5854         of EB and EL versions.
5855
5856 Mon Mar  6 12:34:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5857
5858         * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
5859         (_IS* enum): Use _ISbit to produce values.
5860
5861 Sun Mar  5 19:40:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5862
5863         * locale/localeinfo.h: Rewritten for new locale system, using
5864         locale data files and with <langinfo.h> interface.
5865         * locale/setlocale.c: Rewritten to use locale data files.
5866         * langinfo.h: New file.
5867         * locale/langinfo.h: New file.
5868         * locale/nl_langinfo.c: New file.
5869         * locale/loadlocale.c: New file.
5870         * locale/lc-ctype.c: New file.
5871         * locale/lc-messages.c: New file.
5872         * locale/lc-monetary.c: New file.
5873         * locale/lc-numeric.c: New file.
5874         * locale/lc-time.c: New file.
5875         * locale/categories.def: New file.
5876         * locale/Makefile (headers): Remove localeinfo.h.
5877         (distribute): New variable; put localeinfo.h here, and categories.def.
5878         (routines): Add loadlocale.
5879         (categories): New variable.
5880         (aux): Use that to get C-category and lc-category.
5881         * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
5882         * ctype/ctype-info.c: For initial tables, use
5883         _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
5884         locale/C-ctype.c.
5885         * locale/C-ctype.c, locale/C-messages.c: New files.
5886         * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
5887         Default "C" locale data updated for new locale system.
5888         * locale/C-collate.c: File removed.
5889         * locale/C-ctype_ct.c: File removed.
5890         * locale/C-ctype_mb.c: File removed.
5891         * locale/C-response.c: File removed.
5892         * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
5893         * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
5894           stdlib/strtod.c, time/asctime.c, time/strftime.c:
5895         Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
5896         locale data.
5897         * time/localtime.c: Don't include <localeinfo.h>.
5898         * time/tzset.c: Don't use locale items for default TZ value or
5899         "GMT" string (use "UTC").
5900
5901         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
5902         WIDTH>0; update DONE.
5903
5904         * malloc/malloc.c (morecore): Fix last change to calculate by
5905         blocks instead of bytes.
5906
5907 Fri Mar  3 12:24:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5908
5909         * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
5910         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
5911         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
5912         * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
5913         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
5914         * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
5915         alias munmap.
5916         * sysdeps/unix/mman/munmap.S: Likewise.
5917         * sysdeps/mach/munmap.c: Likewise.
5918         * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
5919         alias mmap.
5920         * sysdeps/unix/mman/mmap.S: Likewise.
5921         * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
5922         * sysdeps/stub/mmap.c: Likewise.
5923
5924         * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
5925
5926         * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
5927
5928 Thu Mar  2 12:15:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5929
5930         * misc/search.h: Add missing semicolon.
5931
5932         * sysdeps/unix/dirfd.c: Fix typo.
5933
5934         * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
5935         in decl.
5936
5937         * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
5938         WIDTH before test.
5939
5940 Wed Mar  1 00:57:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5941
5942         * stdlib/strtod.c: Fixes from drepper.
5943         [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
5944         * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
5945         * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
5946
5947         * stdio/vfprintf.c: Correctly notice Z modifier.
5948
5949         * misc/search.h: New file.
5950         * misc/Makefile (headers): Add search.h.
5951         * misc/insremque.c: Include search.h.
5952         (struct qelem): Type removed.
5953
5954 Mon Feb 27 07:00:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5955
5956         * elf/libelf.h: New file.
5957         * elf/elf_hash.c: New file.
5958
5959 Sun Feb 26 15:51:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5960
5961         Changes from Germano Caronni <caronni@tik.ethz.ch>:
5962         * malloc/malloc.c (morecore): Account in NEWSIZE for the
5963         malloc_info structures for each new block.
5964
5965 Sat Feb 25 02:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5966
5967         * sysdeps/mach/hurd/kill.c: When the process has no message port
5968         registered and we have its task port, translate a few signals to
5969         task_suspend/task_resume/task_terminate.
5970
5971 Fri Feb 24 14:40:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5972
5973         * io/Makefile (routines): Add euidaccess.
5974         * sysdeps/mach/hurd/euidaccess.c: New file.
5975         * sysdeps/stub/euidaccess.c: New file.
5976         * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
5977
5978         * dirent/Makefile (routines): Add dirfd.
5979         * sysdeps/stub/dirfd.c: New file.
5980         * sysdeps/unix/dirfd.c: New file.
5981         * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
5982         * dirent/dirent.h (dirfd): Declare new function.  Define as macro
5983         _DIR_dirfd if that is defined.
5984         * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
5985         with `void *__fd'.
5986         * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
5987         Open the file with `open'; set FD_CLOEXEC on the fd.
5988         * sysdeps/mach/hurd/closedir.c: Likewise.
5989         * sysdeps/mach/hurd/readdir.c: Likewise.
5990         * sysdeps/mach/hurd/dirfd.c: New file.
5991
5992         * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
5993         directory.
5994         (glob/ChangeLog): Likewise.
5995
5996         * locale/locale.h (LC_*): Use small integers instead of bit masks.
5997
5998         * stdio/bug4.c: Put temporary files in /tmp.
5999         * stdio/bug3.c: Likewise.
6000         * stdio/bug5.c: Likewise.
6001         * stdio/test-fseek.c: Likewise.
6002         * stdio/test-popen.c: Likewise.
6003
6004 Wed Feb 22 00:44:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6005
6006         * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
6007
6008         * libc-symbols.h (weak_symbol): New macro.
6009
6010         * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
6011         elts with null handlers.
6012
6013         * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
6014
6015 Tue Feb 21 21:53:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6016
6017         * stdlib/random.c (__srandom): Change algorithm used to populate
6018         the state array.
6019         (randtbl): Recomputed with new algorithm.
6020
6021         * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
6022         to original value of `crypt'.
6023         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
6024         (crypt): New variable, set to crypt.solar.
6025
6026 Tue Feb 21 11:50:37 1995  Brendan Kehoe  (brendan@zen.org)
6027
6028         * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
6029
6030         * config.h.in: Put comment around ^L to pacify Solaris as here too.
6031
6032 Tue Feb 21 00:10:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6033
6034         * string/Makefile (distribute): Add pagecopy.h.
6035         * sysdeps/mach/pagecopy.h: New file.
6036         * sysdeps/generic/pagecopy.h: New file.
6037         * sysdeps/generic/memcpy.c: Include pagecopy.h; call
6038         PAGE_COPY_FWD_MAYBE first when word aligned.
6039         * sysdeps/generic/memmove.c: Likewise.
6040
6041         * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
6042         (getpgrp): Call __getpgid instead of __getpgrp.
6043
6044         * Makefile (subdirs): Add elf first.
6045         * elf/Makefile: New file.
6046         * elf/elf.h: New file.
6047
6048         * sysdeps/unix/start.c (errno): Only define if it's not #define'd
6049         as a macro.
6050         [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
6051         indirection.
6052
6053         * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
6054         add crti_s, crtn_s.
6055         (install-lib, extra-objs, generated-, omit-deps): Use that.
6056         (initfini): New canned sequence, broken out of crt[in].s rule.
6057         (crt[in].s rule): Use it.
6058         (crt[in]_s.s): New rule.
6059         * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
6060         (_init, _fini): Use GLOBAL as storage class.
6061         Add self reference to avoid GCC optimizing out the functions.
6062
6063         * Makefile (headers): Remove $(stddef.h).
6064         * Makeconfig (stddef.h): Variable removed; now require gcc version
6065         >= 2.2.
6066         * stddef.h: File removed.
6067
6068 Mon Feb 20 19:42:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6069
6070         * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
6071         definition.
6072         * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
6073
6074         * stdlib/strtod.c: Allow the string to start with a decimal point
6075         without a leading zero.
6076
6077 Mon Feb 20 04:04:57 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
6078
6079         * Makefile (subdirs): Put csu first.
6080
6081         * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
6082
6083         * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
6084         to crt[in].o.
6085         (csu-objpfx): New variable.
6086         (+link): Use it to find start.o and $(+preinit), $(+postinit).
6087
6088         * Rules (subdir_lib, all): Depend on objs.
6089
6090         * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
6091
6092         * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
6093         access to float.h macros.
6094
6095         * misc/efgcvt.c: New file.
6096         * misc/Makefile (routines): Add efgcvt.
6097
6098 Sun Feb 19 20:10:43 1995  Brendan Kehoe  <brendan@zen.org>
6099
6100         * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
6101         * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
6102         to avoid a misreference that would override sysdeps/generic/mul.c.
6103         * sysdeps/sparc/Dist: Likewise.
6104
6105 Sun Feb 19 17:46:13 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
6106
6107         * posix/Makefile (aux): Add environ.
6108         * posix/environ.c: New file.
6109         * sysdeps/unix/sparc/start.c: Remove __environ definition.
6110         * sysdeps/unix/start.c: Likewise.
6111         * sysdeps/unix/sysv/irix4/start.c: Likewise.
6112         * sysdeps/mach/hurd/start.c: Likewise.
6113         * sysdeps/mach/start.c: Likewise.
6114         * sysdeps/stub/start.c: Likewise.
6115
6116         * sysdeps/unix/make_errlist.c: In produced program, test
6117         HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
6118         * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
6119         Remove extra weak alias.
6120
6121         * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
6122         in #include.
6123
6124         * libc-symbols.h: Put comment around ^L to pacify Solaris as.
6125
6126         * sysdeps/posix/Makefile (cded-objdir-includes): New variable
6127         replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
6128         $(CPPFLAGS).
6129         (mk-stdiolim): Use it instead.
6130
6131 Fri Feb 17 12:16:27 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
6132
6133         * mach/mach_init.c (__vm_page_size): Make it initialized.  It does
6134         not work to make a weak alias to a bss symbol.
6135
6136         * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
6137         (tests): Add test-fwrite.
6138         * stdio/test-fwrite.c: New file.
6139
6140         * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
6141         __strtold.
6142
6143         * Makefile (autoconf-it): New canned sequence.  Do cvs commit if
6144         there is a CVS directory.
6145         (configure, %/configure): Use $(autoconf-it) for cmds.
6146         * Make-dist: Likewise.
6147         * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
6148         if there is a CVS directory.
6149         * sysdeps/sparc/Makefile (divrem output): Likewise.
6150         * sysdeps/alpha/Makefile (divrem output): Likewise.
6151         * Makerules ($(gpl2lgpl)): Likewise.
6152
6153         * Makerules (rule to install lib%.a from $(install-lib)): Fix
6154         patsubst to elide ranlib for $(non-lib.a).
6155
6156         * stdio/tst-printf.c: Enable FP tests.  Add some new tests from rfg.
6157
6158 Thu Feb 16 04:06:06 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
6159
6160         * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
6161         * mach/mig-dealloc.c: Add weak alias mig_deallocate.
6162
6163 Wed Feb 15 13:34:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6164
6165         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
6166         DEALLOC_REFPORT; deallocate the refport after use only if it
6167         evaluates to nonzero.
6168         * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
6169         * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
6170
6171         * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
6172         *STATE_CHANGE to indicate whether or not we changed *STATE and it
6173         should be committed to the thread.
6174         (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
6175         state for a thread, do thread_set_state on that thread.  Don't use
6176         SS->intr_port for collecting reply ports, it is not safe to
6177         clobber that when suspending; instead, alloca a temporary array.
6178         (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
6179         zero when dying, one when suspending.  Pass new arg to abort_rpcs.
6180
6181         * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
6182         HURD_FD_PORT_USE will.  Don't use critical sections around
6183         HURD_FD_PORT_USE invocations.
6184
6185         * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
6186         * sysdeps/posix/stdio_init.c: Likewise.
6187
6188 Tue Feb 14 03:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6189
6190         * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
6191         locking; don't leave the descriptor locked on return.
6192         (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
6193         Use a critical section around locking the descriptor.
6194         Check for an empty descriptor and return EBADF.
6195         * sysdeps/mach/hurd/dup2.c: Likewise.
6196         * sysdeps/mach/hurd/fcntl.c: Likewise.
6197         Use HURD_FD_PORT_USE macro for RPCs.
6198         * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
6199         using HURD_FD_PORT_USE.
6200         * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
6201         to lock the descriptor.
6202         * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
6203         locking the descriptor.
6204         * sysdeps/mach/hurd/fdopen.c: Likewise.
6205         * hurd/fd-close.c: Likewise.
6206         Don't expect the descriptor to be locked on entry.
6207         Check for empty descriptor and return EBADF.
6208
6209         Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
6210         new functions _hurd_ctty_input and _hurd_ctty_output, each
6211         called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
6212         * hurd/ctty-input.c: New file.
6213         * hurd/ctty-output.c: New file.
6214         * hurd/Makefile (dtable): Add ctty-input and ctty-output.
6215         * hurd/fd-read.c: Use _hurd_ctty_input.
6216         * hurd/fd-write.c: Use _hurd_ctty_output.
6217         * sysdeps/mach/hurd/ioctl.c: Likewise.
6218         * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
6219
6220 Mon Feb 13 11:36:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6221
6222         * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
6223         as appropriate to the type.
6224
6225         * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
6226         repeating the union.
6227         (HUGE_VAL, __huge_val): Use it.
6228         [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
6229         analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
6230         * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
6231         (STRTOF): Set to __strtold; define strtold as weak alias.
6232         * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
6233         (STRTOF): Set to __strtof; define strtof as weak alias.
6234
6235         * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
6236         (IEEE754_FLOAT_BIAS): New macro.
6237
6238         * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
6239
6240         * stdlib/testmb.c: Add tests from rfg for using normal chars as
6241         multibyte chars.
6242
6243         * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
6244         only the `defined but not used' warning, but also to avoid GCC
6245         optimizing out the entire function (!).
6246
6247         * stdlib/wctomb.c: Include ctype.h.
6248
6249         * Makerules (install-lib-non.a): Don't include $(non-lib.a).
6250
6251         * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
6252
6253 Sat Feb 11 04:05:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6254
6255         * stdio/printf_fp.c: Include "fpioconst.h".
6256         (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
6257         (__printf_fp): All references changed.
6258         Don't bother computing THOUSANDS_SEP if GROUPING is empty.
6259         (group_number): Use memmove instead of memcpy, since operands overlap.
6260         * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
6261         * stdio/fpioconst.h: New file, header declaring the table data.
6262         * stdio/Makefile (aux): Add fpioconst.
6263         (distribute): Add fpioconst.h.
6264         * stdlib/strtod.c: Complete rewrite from drepper.
6265         * stdlib/strtof.c: New file.
6266         * stdlib/strtold.c: New file.
6267         * stdlib/Makefile (routines): Add strtof, strtold.
6268         * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
6269         * sysdeps/stub/mpn2flt.c: New file.
6270         * sysdeps/stub/mpn2dbl.c: New file.
6271         * sysdeps/stub/mpn2ldbl.c: New file.
6272         * sysdeps/ieee754/mpn2flt.c: New file.
6273         * sysdeps/ieee754/mpn2dbl.c: New file.
6274         * sysdeps/ieee754/mpn2ldbl.c: New file.
6275
6276         * Makerules (install-lib.a): Don't filter out $(non-lib.a).
6277         ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
6278         appears in $(non-lib.a).
6279
6280 Fri Feb 10 17:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6281
6282         * stdlib/wctomb.c: A normal ASCII character translates to itself.
6283         * stdlib/mbtowc.c: Likewise.
6284
6285 Thu Feb  9 03:55:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6286
6287         * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
6288         Remove `const' from prototypes.
6289         * sysdeps/m68k/__longjmp.c: Likewise.
6290         * setjmp/longjmp.c: Likewise.
6291         * sysdeps/i386/__longjmp.c: Likewise.
6292
6293         * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
6294         so when we return a name, it is incremented past the value that
6295         produces that same name.
6296
6297         * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype.  Sigh.
6298         * stdio/stdio.h (fgets): Likewise.
6299
6300         * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
6301
6302         * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
6303         when it's EBACKGROUND; we need to notice that it is EBACKGROUND
6304         and retry the RPC.
6305         * hurd/fd-read.c: Likewise.
6306
6307 Wed Feb  8 05:01:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6308
6309         * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
6310         <mach/mig_support.h>.
6311         * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
6312         * assert/assert.c: Likewise.
6313         * sysdeps/posix/libc_fatal.c: Likewise.
6314
6315 Tue Feb  7 12:17:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6316
6317         * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
6318         as macros, to satisfy ANSI pedants.
6319
6320         * stdio/internals.c (flushbuf): When there is no new data after
6321         priming the stream, return without writing out the buffer.
6322         * stdio/Makefile (tests): Add bug7.
6323         * stdio/bug7.c: New file.
6324
6325         * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
6326         S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
6327         is defined.
6328
6329         * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
6330
6331         * stdio/Makefile (tests): Add errnobug.
6332         * stdio/errnobug.c: New file.
6333
6334         * mach/mig_strncpy.c: Include string.h.
6335
6336         * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>.  Its
6337         inlines cause trouble for files defining global register variables.
6338
6339         * stdio/vfprintf.c: Use _strerror_internal for %m.
6340
6341         * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
6342
6343         * stdio/printf.h (struct printf_info): New member `group', for %' flag.
6344         * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
6345         * stdio/vfprintf.c (group_number): New function.
6346         (vfprintf): Support %' flag for integer formats, by calling
6347         group_number after formatting the number in WORK.
6348         * stdio/printf_fp.c (guess_grouping, group_number): New functions.
6349         (__printf_fp): Implement `group' flag using them.
6350
6351         * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
6352         (parent-clean): Remove sysd-rules, not sysdirs.
6353         (distclean): Pass avoid-generated=yes to submake.
6354         (distclean-1): Remove $(sysdep-$(distclean-1)).
6355
6356         * Makerules (objects, objs): Depend on $(extra-objs) too.
6357         (include sysd-Makefile): Protect with ifndef avoid-generated.
6358
6359         * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
6360         (CPPFLAGS): Use $(defines) in place of $(+defines).
6361         Replace -D_LIBC with -include $(..)libc-symbols.h.
6362
6363         * stdio/freopen.c: Set seen bit before calling fclose.
6364
6365 Mon Feb  6 18:34:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6366
6367         * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
6368         successes and each kind of failure.  Return EPERM or EACCES only
6369         if every task failed that way.
6370
6371         * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
6372         correctly.
6373
6374         * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
6375         or resume the process after frobbing.
6376
6377         * hurd/hurdsig.c: Use spin lock operations on sigstate locks
6378         throughout.
6379         (_hurd_thread_sigstate): Don't lock the sigstate lock.
6380         (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
6381         repeated sequences with calls to it.  Don't expect the sigstate
6382         lock to be held on entry; lock it just before examining sigaction.
6383         In handler case, check SS->critical_section after calling
6384         abort_rpcs; if set, mark the signal pending and resume the thread.
6385         * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
6386         (_hurd_self_sigstate): Don't lock the sigstate lock.
6387         (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
6388         _hurd_self_sigstate_unlocked.
6389         * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
6390         the sigstate lock.
6391         * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
6392         Don't expect _hurd_self_sigstate to lock it.  Fix critical section
6393         locking.
6394         * hurd/hurd-raise.c: Likewise.
6395         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
6396         * sysdeps/mach/hurd/sigpending.c: Likewise.
6397         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
6398         * sysdeps/mach/hurd/sigaction.c: Likewise.
6399         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
6400         * hurd/fd-write.c: Likewise.
6401         * hurd/fd-read.c: Likewise.
6402         * sysdeps/mach/hurd/ioctl.c: Likewise.
6403         * sysdeps/mach/hurd/fork.c: Likewise.
6404         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
6405         * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
6406         * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
6407         * hurd/hurdmsg.c (get_int): Likewise.
6408
6409         * stdio/vfprintf.c: Include stddef.h.  Fix typos in libio code.
6410
6411         * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
6412         global.
6413         (PAD): Caller changed.
6414         * stdio/printf_fp.c (__pad): Function removed.
6415         (PAD): Use __printf_pad instead.
6416
6417 Sun Feb  5 17:59:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6418
6419         Merged new FP printer by Ulrich Drepper.
6420         * stdio/printf_fp.c: Rewrite by drepper.
6421         * stdio/Makefile (routines): Add ldbl2mpn.
6422         * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
6423         member.
6424         (union ieee854_long_double): New type, from drepper.
6425         (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
6426         * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
6427         * sysdeps/stub/ldbl2mpn.c: New file.
6428         * math/Makefile (routines): Add isinfl and isnanl.
6429         * sysdeps/ieee754/isinfl.c: New file.
6430         * sysdeps/stub/isinfl.c: New file.
6431         * sysdeps/ieee754/isnanl.c: New file.
6432         * sysdeps/stub/isnanl.c: New file.
6433
6434         * malloc/malloc.c (__malloc_extra_blocks): New variable.
6435         (malloc): When getting more core, get __malloc_extra_blocks extra;
6436         put the new block at the end of the free list and let the next loop
6437         iteration use the initial portion of it.
6438         * malloc/free.c (_free_internal): Account for twice
6439         __malloc_extra_blocks in deciding if we have so much extra memory
6440         we should return it to the system.
6441         * malloc/malloc.h (__malloc_extra_blocks): Declare it.
6442         * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
6443         const in parameter decl.
6444
6445         * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
6446
6447 Fri Feb  3 18:15:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6448
6449         * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
6450
6451         * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
6452         * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
6453         * sysdeps/mips/bsd-setjmp.S: Likewise.
6454         * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
6455         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
6456         Use `long int' for sigcode.  Use explicit register numbers instead
6457         of names.
6458         (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
6459         * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
6460
6461 Thu Feb  2 20:06:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6462
6463         * hurd/hurdmalloc.c: Remove bogus bcopy decl.
6464
6465         * mach/mig_strncpy.c: Add missing `const' in prototype.  Rewritten
6466         using __stpncpy.
6467
6468         * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
6469
6470         * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
6471
6472 Tue Jan 31 13:49:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6473
6474         * mach/mig_strncpy.c: Include mach.h instead of string.h.  Use
6475         vm_size_t instead of size_t for arg and return types.
6476
6477         * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
6478         already does.
6479
6480 Mon Jan 30 00:33:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6481
6482         * set-hooks.h (RUN_HOOK): Dereference PTR properly.
6483
6484         * configure.in (friendly stddef.h check): Write override defn for
6485         `stddef.h' Make variable.
6486         (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
6487
6488         * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
6489
6490         * Rules ($(objpfx)dummy.o): Write an empty function, not just an
6491         empty file.
6492
6493         * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
6494
6495 Sat Jan 28 03:38:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6496
6497         * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
6498
6499         * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
6500         mach/machine/syscall_sw.h with this.
6501
6502 Fri Jan 27 18:33:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6503
6504         * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
6505         instead of <lock-intern.h>.
6506         (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
6507         (_hurd_critical_section_lock): Use spin lock operators.
6508         Don't hold the sigstate lock, unlock it after setting the flag.
6509         (_hurd_critical_section_unlock): Take the sigstate lock
6510         to clear the flag; while holding it, check pending signals.  After
6511         unlocking, sig_post ourselves if there were pending signals.
6512
6513         * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
6514         sigstate lock.  If it is locked, clear SS->critical_section and
6515         SS->context, and unlock it.
6516
6517         * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
6518
6519         * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
6520         * munch-tmpl.c: Likewise.
6521
6522         * mach/Makefile (routines): Don't filter out syscall_% from
6523         $(mach-syscalls).
6524
6525 Fri Jan 27 17:53:49 1995  Jim Meyering  (meyering@comco.com)
6526
6527         * posix/fnmatch.c: Declare errno if it's not defined.
6528         That's simpler than testing #if !defined(__GNU_LIBRARY__)
6529         && !defined(STDC_HEADERS).
6530
6531 Fri Jan 27 15:40:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6532
6533         * csu/Makefile: New file.
6534         * csu/initfini.c: New file.
6535         * Makefile (+other_dirs): Add csu.
6536         (+init): Variable renamed to libc-init.  All references changed.
6537         (aux): Remove start.
6538         (install-lib): Variable removed.
6539         (crt0.o, Mcrt1.o  crt1.o): Targets removed.
6540
6541         * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
6542         and $(objpfx)config.h.
6543         (static deps of RPC alias *.o): Removed.
6544
6545         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
6546         Protect macros with this.
6547         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
6548         * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
6549         * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
6550         * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
6551         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
6552         * sysdeps/unix/mips/sysdep.h: Likewise.
6553
6554 Thu Jan 26 00:02:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6555
6556         * Makerules (compile.[Sc]): Match gcc in $(CC) better.
6557         (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
6558
6559         * hurd/intr-rpc.awk: Emit weak alias.
6560
6561         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
6562         __getpgrp.
6563
6564         * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
6565         this.
6566         * sysdeps/unix/i386/sysdep.h: Likewise.
6567         * sysdeps/unix/sparc/sysdep.h: Likewise.
6568
6569         * io/ftw.c: Avoid `ret' as variable name.
6570         * posix/glob.c: Likewise.
6571
6572         * ctype/ctype.h (_ISalpha): Define as its own bit.
6573         * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
6574
6575         * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
6576         DEFINE_HOOK with this.
6577
6578 Wed Jan 25 00:45:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6579
6580         * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
6581         * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
6582         * mach/shortcut.awk: Emit weak alias.
6583         * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
6584         * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
6585         __ names.
6586         * mach/Makefile (lock): Remove spin-syms.
6587         (routines): Remove __ names, vm_page_size, msgserver_t.
6588         ($(mach-syscalls) rule): Generate files without __, add weak alias.
6589         Remove symbol alias file rule.
6590         ($(mach-shortcuts) rule): Likewise.
6591         [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
6592         * mach/Machrules (if-calls.c): Variable and rule removed.
6593         (interface-headers): Don't add $($(if)-calls).
6594         (transform-user-stub): Define to add weak alias.
6595         * set-hooks.h: Use new libc-symbols.h set access macros.
6596         * time/Makefile (routines): Remove __ names.
6597         (aux): Variable removed.
6598         * hurd/Makefile: Likewise.
6599         * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
6600         (data_start): Define as weak alias for __data_start.
6601         * sysdeps/mach/hurd/start.c: Likewise.
6602         * sysdeps/unix/sparc/start.c: Likewise.
6603         * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
6604         sys_errlist.
6605         * sysdeps/mach/hurd/errlist.awk: Likewise.
6606         * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
6607         alias for __environ.
6608         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
6609         * sysdeps/stub/setdomain.c: Use new stub_warning macro.
6610         * sysdeps/stub/getdomain.c: Likewise.
6611         * sysdeps/stub/vhangup.c: Likewise.
6612         * sysdeps/stub/swapon.c: Likewise.
6613         * sysdeps/stub/sendmsg.c: Likewise.
6614         * sysdeps/stub/recvmsg.c: Likewise.
6615         * sysdeps/stub/acct.c: Likewise.
6616         * sysdeps/stub/isinf.c: Likewise.  Add weak alias isinf for __isinf.
6617         * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
6618         * sysdeps/posix/libc_fatal.c: Likewise.
6619         * sysdeps/i386/abort.c: Likewise.
6620         * sysdeps/i386/__longjmp.c: Likewise.
6621         * sysdeps/generic/make_siglist.c: Emit defn always for
6622         _sys_siglist.  Emit weak alias to sys_siglist.
6623         * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
6624         * sysdeps/ieee754/log10.c: Likewise.
6625         * time/difftime.c: Likewise.
6626         * stdlib/random.c (srand): Define as weak alias for __srandom.
6627         * stdlib/exit.c: Remove obsolete __NORETURN keyword.  Use set-hooks
6628         macros for __libc_atexit.
6629         * stdlib/Makefile (routines): Remove __random, srand.
6630         * stdio/gets.c: Use new link_warning macro instead of old
6631         warn_references.
6632         * stdio/Makefile (routines): Remove __ names.
6633         (aux): Remove syms-stdio.
6634         * socket/Makefile (routines): Added e on getpeernam and getsocknam.
6635         * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
6636         * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
6637         * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
6638         * stdio/stdio.h: Likewise.
6639         * misc/Makefile (routines): Remove __ names.
6640         (aux): Remove data_start.
6641         * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
6642         * sysdeps/mach/hurd/brk.c: Likewise.
6643         * hurd/hurdid.c: Likewise.
6644         * hurd/hurdpid.c: Likewise.
6645         * hurd/openport.c: Likewise.
6646         * hurd/hurdsock.c: Likewise.
6647         * hurd/hurdsig.c: Likewise.
6648         * hurd/hurdrlimit.c: Likewise.
6649         * hurd/hurdmalloc.c: Likewise.
6650         * hurd/dtable.c: Likewise.
6651         * hurd/setauth.c: Likewise.
6652         * misc/progname.c: Likewise.
6653         * misc/init-misc.c: Likewise.
6654         * sysdeps/generic/vfork.c: Likewise.
6655         * sysdeps/unix/bsd/init-posix.c: Likewise.
6656         * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
6657         * time/time.h: Likewise.
6658         * math/Makefile (routines): Remove __ names.
6659         * io/Makefile: Likewise.
6660         * termios/Makefile: Likewise.
6661         * resource/Makefile: Likewise.
6662         * signal/Makefile: Likewise.
6663         * dirent/Makefile: Likewise.
6664         * assert/assert.h: Replace __NORETURN keyword with __attribute__
6665         uses.  Functions return void and macros deal with this.
6666         * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
6667         Return void.  Don't include gnu-stabs.h.
6668         * assert/assert.c: Likewise.
6669         * posix/Makefile (routines): Remove __ names, setpgrp.  Add
6670         getpgid.
6671         (aux): Remove environ.
6672         * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
6673         __attribute__ use.
6674         * posix/unistd.h (_exit): Likewise.
6675         (__getpgrp, __setpgrp): Declarations removed.
6676         (__getpgid, getpid): Declare these.
6677
6678         * configure.in (host_os=gnuelf|linuxelf): Set elf=yes.  Do AC_SUBST
6679         for gnu_ld, gnu_as, elf, and weak.  Call AC_LINK_FILEES on
6680         $libc_link_{sources,dests}.
6681         * sysdeps/unix/configure.in: Remove __ from file names.  Don't
6682         create files, just add to libc_link_{dests,sources}.
6683
6684         * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
6685
6686         * config.h.in: Add #undefs used by sysdeps configures.
6687
6688         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
6689         __setpgid, __getpgid.
6690         * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
6691         from setpgrp.c.
6692         * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
6693         from __getpgrp.c.
6694         * sysdeps/unix/bsd/getpgrp.c: File removed.
6695         * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
6696         Call __getpgid with zero.
6697         * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
6698         weak aliases setpgid and setpgrp.
6699         * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
6700         * sysdeps/unix/common/setpgid.S: Likewise.
6701         * sysdeps/mach/hurd/setpgid.c: Likewise.
6702         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
6703         Use subcall 5 to __pgrpsys.
6704         * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
6705         weak alias getpgid.
6706         * sysdeps/mach/hurd/getpgid.c: Likewise.
6707         * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
6708         * sysdeps/unix/common/getpgid.S: Likewise.
6709         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
6710         Use subcall 4 to __pgrpsys.
6711         * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
6712         * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
6713         * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
6714         * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
6715         * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
6716         * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
6717         * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
6718         * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
6719         * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
6720         * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
6721         * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
6722         * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
6723
6724         * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
6725         from __getdents.S.
6726
6727         * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
6728         * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
6729         warning.
6730         * sysdeps/stub/fexecve.c: Likewise.
6731         * sysdeps/stub/fchdir.c: Likewise.
6732         * sysdeps/stub/fchflags.c: Likewise.
6733         * sysdeps/stub/chflags.c: Likewise.
6734
6735         * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
6736         * sysdeps/generic/abort.c: Likewise.
6737         * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
6738
6739         * hurd/hurdioctl.c: Include hurd/ioctl.h.
6740         (_hurd_ioctl_handler_lists): Define this set.
6741         (_hurd_lookup_ioctl_handler): New function.
6742         * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
6743         * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
6744         (_hurd_lookup_ioctl_handler): Declare it.
6745         (ioctl_handler_t): New typedef.  Use it throughout.
6746         * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
6747         (_hurd_ioctl_handler_lists): Don't define.
6748         (__ioctl): Call _hurd_lookup_ioctl_handler.
6749
6750         * stdlib/strtol.c (maxquad): Make this const.
6751         [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
6752
6753         * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
6754         any compile tests.
6755
6756         * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
6757         __msg_sig_post_request, not __sig_post_request.
6758
6759         * misc/getusersh.c: Renamed to getusershell.c.
6760         * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
6761         * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
6762         * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
6763         * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
6764
6765 Tue Jan 24 00:14:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6766
6767         * sysdeps/stub/settod.c: Renamed to settimeofday.c.
6768         * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
6769         * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
6770         * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
6771         * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
6772         * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
6773         * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
6774         * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
6775         * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
6776         * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
6777         * sysdeps/stub/getprio.c: Renamed to getpriority.c.
6778         * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
6779         * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
6780         * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
6781         * sysdeps/stub/setprio.c: Renamed to setpriority.c.
6782         * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
6783         * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
6784         * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
6785         * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
6786         * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
6787         * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
6788         * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
6789         * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
6790         * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
6791         * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
6792         * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
6793         * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
6794         * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
6795         * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
6796         * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
6797
6798         * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
6799         of __sig_post.
6800         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
6801         * sysdeps/mach/hurd/kill.c: Likewise.
6802         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
6803
6804         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
6805         [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
6806
6807         * sysdeps/stub/remove.c: New file.
6808         * sysdeps/posix/remove.c: New file.
6809
6810 Mon Jan 23 03:26:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6811
6812         * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
6813         mktime.
6814         * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
6815         __mig_strncpy.
6816         * mach/msg-destroy.c: Renamed from __msg_dest.c.
6817         (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
6818         * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
6819         * time/tzset.c (tzname, daylight, timezone): Define as weak
6820         aliases for __ names.
6821         * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
6822         * hurd/hurdlookup.c: Add weak aliases for non-__ names.
6823         * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
6824         being defined.
6825
6826 Sun Jan 22 15:19:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6827
6828         * string/Makefile (routines): Remove __ names, index, rindex, and
6829         bcmp.
6830         * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
6831         alias for strchr.
6832         * sysdeps/generic/strchr.c: Likewise.
6833         * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
6834         alias for strrchr.
6835         * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
6836         alias for memcmp.
6837
6838         * malloc/free.c (cfree): Define this function, with weak_alias if
6839         available, otherwise a C function.
6840         * malloc/Makefile (gmalloc-routines): Remove cfree.
6841
6842 Sat Jan 21 08:08:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6843
6844         * stdio/fseek.c: Do move bufp by O when that puts it exactly at
6845         get_limit.  This has the effect of no-op'ing properly for zero.
6846
6847         * configure.in: Add AC_CONFIG_HEADER(config.h).
6848         (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
6849         * config.h.in: New file.
6850
6851         * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
6852         All code converted to use weak symbols, defined in the files which
6853         define the real code (with the __ names, the non-__ names are weak).
6854         All old symbol alias files removed.
6855         Many files renamed to remove __ prefix since there is now just
6856         the one file for both the __ and non-__ name for each function.
6857         * libc-symbols.h: New file.
6858         * set-hooks.h: Use libc-symbols.h macros for accessing symbol
6859         sets.
6860         * gnu-stabs.h: Prepend #error this file is obsolete.
6861         * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
6862         * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
6863         access.
6864         * sysdeps/unix/common/__access.S: Likewise.
6865         * sysdeps/mach/hurd/__access.c: Likewise.
6866         * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
6867         adjtime.
6868         * sysdeps/unix/common/__adjtime.S: Likewise.
6869         * sysdeps/mach/__adjtime.c: Likewise.
6870         * sysdeps/mach/hurd/__adjtime.c: Likewise.
6871         * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
6872         * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
6873         * sysdeps/unix/bsd/vax/__brk.S: Likewise.
6874         * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
6875         * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
6876         * sysdeps/unix/i386/__brk.S: Likewise.
6877         * sysdeps/unix/sparc/__brk.S: Likewise.
6878         * sysdeps/unix/mips/__brk.S: Likewise.
6879         * sysdeps/mach/hurd/__brk.c: Likewise.
6880         * sysdeps/standalone/__brk.c: Likewise.
6881         * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
6882         * sysdeps/unix/__chdir.S: Likewise.
6883         * sysdeps/mach/hurd/__chdir.c: Likewise.
6884         * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
6885         * sysdeps/unix/__chmod.S: Likewise.
6886         * sysdeps/mach/hurd/__chmod.c: Likewise.
6887         * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
6888         * sysdeps/unix/__chown.S: Likewise.
6889         * sysdeps/mach/hurd/__chown.c: Likewise.
6890         * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
6891         * sysdeps/unix/__close.S: Likewise.
6892         * sysdeps/mach/hurd/__close.c: Likewise.
6893         * sysdeps/standalone/__close.c: Likewise.
6894         * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
6895         alias copysign.
6896         * sysdeps/ieee754/__copysign.c: Likewise.
6897         * sysdeps/alpha/__copysign.c: Likewise.
6898         * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
6899         * sysdeps/m68k/fpu/__drem.c: Likewise.
6900         * sysdeps/stub/__drem.c: Likewise.
6901         * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
6902         * sysdeps/stub/__dup.c: Likewise.
6903         * sysdeps/unix/__dup.S: Likewise.
6904         * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
6905         * sysdeps/stub/__dup2.c: Likewise.
6906         * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
6907         * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
6908         * sysdeps/unix/common/__dup2.S: Likewise.
6909         * sysdeps/mach/hurd/__dup2.c: Likewise.
6910         * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
6911         execve.
6912         * sysdeps/unix/__execve.S: Likewise.
6913         * sysdeps/mach/hurd/__execve.c: Likewise.
6914         * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
6915         expm1.
6916         * sysdeps/m68k/fpu/__expm1.c: Likewise.
6917         * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
6918         fchmod.
6919         * sysdeps/unix/common/__fchmod.S: Likewise.
6920         * sysdeps/mach/hurd/__fchmod.c: Likewise.
6921         * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
6922         fchown.
6923         * sysdeps/unix/common/__fchown.S: Likewise.
6924         * sysdeps/mach/hurd/__fchown.c: Likewise.
6925         * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
6926         * sysdeps/unix/__fcntl.S: Likewise.
6927         * sysdeps/mach/hurd/__fcntl.c: Likewise.
6928         * math/__finite.c: Renamed to finite.c; added weak alias finite.
6929         * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
6930         * sysdeps/stub/__flock.c: Likewise.
6931         * sysdeps/unix/bsd/__flock.S: Likewise.
6932         * sysdeps/mach/hurd/__flock.c: Likewise.
6933         * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
6934         fopenport.
6935         * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
6936         * sysdeps/unix/__fork.S: Likewise.
6937         * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
6938         * sysdeps/unix/i386/__fork.S: Likewise.
6939         * sysdeps/unix/sparc/__fork.S: Likewise.
6940         * sysdeps/unix/mips/__fork.S: Likewise.
6941         * sysdeps/mach/hurd/__fork.c: Likewise.
6942         * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
6943         alias fpathconf.
6944         * sysdeps/stub/__fpathcon.c: Likewise.
6945         * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
6946         * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
6947         * sysdeps/unix/__fstat.S: Likewise.
6948         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
6949         * sysdeps/mach/hurd/__fstat.c: Likewise.
6950         * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
6951         getdelim.
6952         * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
6953         alias getdents.
6954         * sysdeps/unix/__getdents.c: Likewise.
6955         * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
6956         * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
6957         * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
6958         * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
6959         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
6960         * sysdeps/unix/sysv/__getdents.c: Likewise.
6961         * sysdeps/mach/hurd/__getdents.c: Likewise.
6962         * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
6963         * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
6964         alias getdtablesize.
6965         * sysdeps/stub/__getdtsz.c: Likewise.
6966         * sysdeps/unix/bsd/__getdtsz.S: Likewise.
6967         * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
6968         * sysdeps/mach/hurd/__getdtsz.c: Likewise.
6969         * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
6970         getegid.
6971         * sysdeps/unix/__getegid.S: Likewise.
6972         * sysdeps/mach/hurd/__getegid.c: Likewise.
6973         * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
6974         geteuid.
6975         * sysdeps/unix/__geteuid.S: Likewise.
6976         * sysdeps/mach/hurd/__geteuid.c: Likewise.
6977         * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
6978         getgid.
6979         * sysdeps/unix/__getgid.S: Likewise.
6980         * sysdeps/mach/hurd/__getgid.c: Likewise.
6981         * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
6982         alias getgroups.
6983         * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
6984         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
6985         * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
6986         * sysdeps/unix/common/__getgrps.S: Likewise.
6987         * sysdeps/mach/hurd/__getgrps.c: Likewise.
6988         * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
6989         alias gethostname.
6990         * sysdeps/unix/inet/__gethstnm.S: Likewise.
6991         * sysdeps/unix/sysv/__gethstnm.c: Likewise.
6992         * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
6993         * sysdeps/mach/hurd/__gethstnm.c: Likewise.
6994         * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
6995         alias getitimer.
6996         * sysdeps/unix/common/__getitmr.S: Likewise.
6997         * sysdeps/mach/hurd/__getitmr.c: Likewise.
6998         * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
6999         * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
7000         alias getpagesize.
7001         * sysdeps/stub/__getpgsz.c: Likewise.
7002         * sysdeps/unix/__getpgsz.c: Likewise.
7003         * sysdeps/unix/bsd/__getpgsz.S: Likewise.
7004         * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
7005         * sysdeps/mach/__getpgsz.c: Likewise.
7006         * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
7007         getpid.
7008         * sysdeps/unix/__getpid.S: Likewise.
7009         * sysdeps/mach/hurd/__getpid.c: Likewise.
7010         * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
7011         getppid.
7012         * sysdeps/unix/__getppid.S: Likewise.
7013         * sysdeps/mach/hurd/__getppid.c: Likewise.
7014         * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
7015         alias gettimeofday.
7016         * sysdeps/stub/__gettod.c: Likewise.
7017         * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
7018         * sysdeps/unix/common/__gettod.S: Likewise.
7019         * sysdeps/mach/__gettod.c: Likewise.
7020         * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
7021         getuid.
7022         * sysdeps/unix/__getuid.S: Likewise.
7023         * sysdeps/mach/hurd/__getuid.c: Likewise.
7024         * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
7025         alias infnan.
7026         * sysdeps/ieee754/__infnan.c: Likewise.
7027         * sysdeps/vax/__infnan.c: Likewise.
7028         * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
7029         * sysdeps/unix/__ioctl.S: Likewise.
7030         * sysdeps/mach/hurd/__ioctl.c: Likewise.
7031         * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
7032         isatty.
7033         * sysdeps/stub/__isatty.c: Likewise.
7034         * sysdeps/unix/bsd/__isatty.c: Likewise.
7035         * sysdeps/mach/hurd/__isatty.c: Likewise.
7036         * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
7037         isinf.
7038         * sysdeps/m68k/fpu/__isinf.c: Likewise.
7039         * sysdeps/stub/__isinf.c: Likewise.
7040         * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
7041         isnan.
7042         * sysdeps/ieee754/__isnan.c: Likewise.
7043         * sysdeps/m68k/fpu/__isnan.c: Likewise.
7044         * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
7045         * sysdeps/unix/__kill.S: Likewise.
7046         * sysdeps/mach/hurd/__kill.c: Likewise.
7047         * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
7048         * sysdeps/unix/__link.S: Likewise.
7049         * sysdeps/mach/hurd/__link.c: Likewise.
7050         * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
7051         * sysdeps/m68k/fpu/__logb.c: Likewise.
7052         * sysdeps/stub/__logb.c: Likewise.
7053         * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
7054         * sysdeps/unix/__lseek.S: Likewise.
7055         * sysdeps/mach/hurd/__lseek.c: Likewise.
7056         * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
7057         lstat.
7058         * sysdeps/stub/__lstat.c: Likewise.
7059         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
7060         * sysdeps/unix/common/__lstat.S: Likewise.
7061         * sysdeps/mach/hurd/__lstat.c: Likewise.
7062         * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
7063         alias memccpy.
7064         * sysdeps/vax/__memccpy.c: Likewise.
7065         * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
7066         * sysdeps/unix/sysv/__mkdir.c: Likewise.
7067         * sysdeps/unix/common/__mkdir.S: Likewise.
7068         * sysdeps/mach/hurd/__mkdir.c: Likewise.
7069         * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
7070         * sysdeps/unix/__mknod.S: Likewise.
7071         * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
7072         * sysdeps/mach/hurd/__mknod.c: Likewise.
7073         * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
7074         * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
7075         mach_msg_server.
7076         * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
7077         * sysdeps/unix/__open.S: Likewise.
7078         * sysdeps/mach/hurd/__open.c: Likewise.
7079         * sysdeps/standalone/__open.c: Likewise.
7080         * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
7081         alias pathconf.
7082         * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
7083         * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
7084         * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
7085         * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
7086         * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
7087         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
7088         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
7089         * sysdeps/unix/i386/__pipe.S: Likewise.
7090         * sysdeps/unix/sparc/__pipe.S: Likewise.
7091         * sysdeps/unix/mips/__pipe.S: Likewise.
7092         * sysdeps/mach/hurd/__pipe.c: Likewise.
7093         * stdlib/__random.c: Renamed to random.c; added weak alias random.
7094         * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
7095         * sysdeps/unix/__read.S: Likewise.
7096         * sysdeps/mach/hurd/__read.c: Likewise.
7097         * sysdeps/standalone/__read.c: Likewise.
7098         * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
7099         alias readlink.
7100         * sysdeps/unix/common/__readlink.S: Likewise.
7101         * sysdeps/mach/hurd/__readlink.c: Likewise.
7102         * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
7103         * sysdeps/m68k/fpu/__rint.c: Likewise.
7104         * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
7105         * sysdeps/unix/sysv/__rmdir.c: Likewise.
7106         * sysdeps/unix/common/__rmdir.S: Likewise.
7107         * sysdeps/mach/hurd/__rmdir.c: Likewise.
7108         * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
7109         * sysdeps/stub/__sbrk.c: Likewise.
7110         * sysdeps/mach/hurd/__sbrk.c: Likewise.
7111         * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
7112         * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
7113         select.
7114         * sysdeps/unix/common/__select.S: Likewise.
7115         * sysdeps/mach/hurd/__select.c: Likewise.
7116         * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
7117         * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
7118         setgid.
7119         * sysdeps/unix/__setgid.S: Likewise.
7120         * sysdeps/unix/bsd/__setgid.c: Likewise.
7121         * sysdeps/mach/hurd/__setgid.c: Likewise.
7122         * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
7123         setitmr
7124         * sysdeps/unix/common/__setitmr.S: Likewise.
7125         * sysdeps/mach/hurd/__setitmr.c: Likewise.
7126         * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
7127         setpgrp
7128         * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
7129         * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
7130         * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
7131         * sysdeps/unix/common/__setpgrp.S: Likewise.
7132         * sysdeps/mach/hurd/__setpgrp.c: Likewise.
7133         * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
7134         alias setregid.
7135         * sysdeps/unix/common/__setregid.S: Likewise.
7136         * sysdeps/mach/hurd/__setregid.c: Likewise.
7137         * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
7138         alias setreuid.
7139         * sysdeps/unix/common/__setreuid.S: Likewise.
7140         * sysdeps/mach/hurd/__setreuid.c: Likewise.
7141         * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
7142         setsid.
7143         * sysdeps/unix/bsd/__setsid.c: Likewise.
7144         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
7145         * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
7146         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
7147         * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
7148         * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
7149         * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
7150         * sysdeps/mach/hurd/__setsid.c: Likewise.
7151         * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
7152         settimeofday.
7153         * sysdeps/unix/bsd/__settod.S: Likewise.
7154         * sysdeps/unix/sysv/__settod.c: Likewise.
7155         * sysdeps/mach/hurd/__settod.c: Likewise.
7156         * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
7157         setuid.
7158         * sysdeps/unix/__setuid.S: Likewise.
7159         * sysdeps/unix/bsd/__setuid.c: Likewise.
7160         * sysdeps/mach/hurd/__setuid.c: Likewise.
7161         * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
7162         alias sigblock.
7163         * sysdeps/stub/__sigblock.c: Likewise.
7164         * sysdeps/unix/bsd/__sigblock.S: Likewise.
7165         * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
7166         * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
7167         * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
7168         alias sigpause.
7169         * sysdeps/stub/__sigpause.c: Likewise.
7170         * sysdeps/unix/bsd/__sigpause.S: Likewise.
7171         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
7172         * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
7173         alias sigprocmask.
7174         * sysdeps/unix/bsd/__sigproc.c: Likewise.
7175         * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
7176         * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
7177         * sysdeps/mach/hurd/__sigproc.c: Likewise.
7178         * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
7179         alias sigreturn.
7180         * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
7181         * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
7182         * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
7183         * sysdeps/unix/i386/__sigret.S: Likewise.
7184         * sysdeps/unix/mips/__sigret.S: Likewise.
7185         * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
7186         * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
7187         * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
7188         * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
7189         sigvec.
7190         * sysdeps/stub/__sigvec.c: Likewise.
7191         * sysdeps/unix/bsd/__sigvec.S: Likewise.
7192         * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
7193         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
7194         * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
7195         * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
7196         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
7197         * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
7198         * sysdeps/unix/__stat.S: Likewise.
7199         * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
7200         * sysdeps/mach/hurd/__stat.c: Likewise.
7201         * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
7202         alias stpncpy.
7203         * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
7204         symlink.
7205         * sysdeps/unix/common/__symlink.S: Likewise.
7206         * sysdeps/mach/hurd/__symlink.c: Likewise.
7207         * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
7208         alias sysconf.
7209         * sysdeps/stub/__sysconf.c: Likewise.
7210         * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
7211         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
7212         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
7213         * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
7214         * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
7215         * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
7216         * sysdeps/unix/bsd/__times.c: Likewise.
7217         * sysdeps/unix/sysv/__times.S: Likewise.
7218         * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
7219         * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
7220         * sysdeps/unix/__umask.S: Likewise.
7221         * sysdeps/mach/hurd/__umask.c: Likewise.
7222         * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
7223         unlink.
7224         * sysdeps/unix/__unlink.S: Likewise.
7225         * sysdeps/mach/hurd/__unlink.c: Likewise.
7226         * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
7227         utimes.
7228         * sysdeps/unix/bsd/__utimes.S: Likewise.
7229         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
7230         * sysdeps/mach/hurd/__utimes.c: Likewise.
7231         * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
7232         vfork.
7233         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
7234         * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
7235         * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
7236         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
7237         * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
7238         * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
7239         * sysdeps/unix/sparc/__vfork.S: Likewise.
7240         * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
7241         * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
7242         * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
7243         * sysdeps/stub/__wait.c: Likewise.
7244         * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
7245         * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
7246         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
7247         * sysdeps/unix/bsd/vax/__wait.S: Likewise.
7248         * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
7249         * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
7250         * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
7251         * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
7252         * sysdeps/unix/i386/__wait.S: Likewise.
7253         * sysdeps/unix/mips/__wait.S: Likewise.
7254         * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
7255         * sysdeps/stub/__wait3.c: Likewise.
7256         * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
7257         * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
7258         * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
7259         * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
7260         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
7261         * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
7262         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
7263         * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
7264         * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
7265         * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
7266         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
7267         * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
7268         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
7269         * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
7270         * sysdeps/mach/hurd/__wait4.c: Likewise.
7271         * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
7272         waitpid.
7273         * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
7274         * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
7275         * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
7276         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
7277         * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
7278         * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
7279         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
7280         * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
7281         * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
7282         * sysdeps/unix/__write.S: Likewise.
7283         * sysdeps/mach/hurd/__write.c: Likewise.
7284         * sysdeps/standalone/__write.c: Likewise.
7285         * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
7286         alias tcgetattr.
7287         * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
7288         * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
7289         * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
7290         * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
7291         * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
7292         alias sigaction.
7293         * sysdeps/unix/bsd/__sigact.c: Likewise.
7294         * sysdeps/unix/sysv/__sigact.c: Likewise.
7295         * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
7296         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
7297         * sysdeps/mach/hurd/__sigact.c: Likewise.
7298         * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
7299         alias sigsetmask.
7300         * sysdeps/stub/__sigstmsk.c: Likewise.
7301         * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
7302         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
7303         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
7304         * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
7305         alias getrusage.
7306         * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
7307         * sysdeps/unix/common/__getrusag.S: Likewise.
7308         * hurd/task2pid.c: File removed.
7309         * hurd/setauth.c: File removed.
7310         * hurd/pid2task.c: File removed.
7311         * hurd/hurdsyms.c: File removed.
7312         * hurd/getdport.c: File removed.
7313         * hurd/fopenport.c: File removed.
7314         * mach/thread-sym.c: File removed.
7315         * mach/spin-syms.c: File removed.
7316         * mach/msgserver_t.c: File removed.
7317         * mach/msgserver.c: File removed.
7318         * mach/msg.c: File removed.
7319         * mach/mig_syms.c: File removed.
7320         * malloc/mcheck-init.c: File removed.
7321         * malloc/cfree.c: File removed.
7322         * io/flock.c: File removed.
7323         * io/write.c: File removed.
7324         * io/unlink.c: File removed.
7325         * io/umask.c: File removed.
7326         * io/symlink.c: File removed.
7327         * io/rmdir.c: File removed.
7328         * io/readlink.c: File removed.
7329         * io/read.c: File removed.
7330         * io/pipe.c: File removed.
7331         * io/open.c: File removed.
7332         * io/mkdir.c: File removed.
7333         * io/lstat.c: File removed.
7334         * io/lseek.c: File removed.
7335         * io/link.c: File removed.
7336         * io/isatty.c: File removed.
7337         * io/stat.c: File removed.
7338         * io/fstat.c: File removed.
7339         * io/fchown.c: File removed.
7340         * io/fchmod.c: File removed.
7341         * io/dup2.c: File removed.
7342         * io/dup.c: File removed.
7343         * io/close.c: File removed.
7344         * io/fcntl.c: File removed.
7345         * io/chmod.c: File removed.
7346         * io/chdir.c: File removed.
7347         * io/access.c: File removed.
7348         * io/chown.c: File removed.
7349         * time/tzset.c: File removed.
7350         * time/timelocal.c: File removed.
7351         * time/syms-time.c: File removed.
7352         * time/settod.c: File removed.
7353         * time/setitmr.c: File removed.
7354         * time/gettod.c: File removed.
7355         * time/getitmr.c: File removed.
7356         * time/adjtime.c: File removed.
7357         * termios/tcgetattr.c: File removed.
7358         * string/stpncpy.c: File removed.
7359         * string/rindex.c: File removed.
7360         * string/memccpy.c: File removed.
7361         * string/index.c: File removed.
7362         * string/bcmp.c: File removed.
7363         * stdlib/srand.c: File removed.
7364         * stdlib/random.c: File removed.
7365         * stdio/vsscanf.c: File removed.
7366         * stdio/vfscanf.c: File removed.
7367         * stdio/syms-stdio.c: File removed.
7368         * stdio/remove.c: File removed.
7369         * stdio/getline.c: File removed.
7370         * stdio/getdelim.c: File removed.
7371         * signal/ssignal.c: File removed.
7372         * signal/sigvec.c: File removed.
7373         * signal/sigsetmask.c: File removed.
7374         * signal/sigret.c: File removed.
7375         * signal/sigproc.c: File removed.
7376         * signal/sigpause.c: File removed.
7377         * signal/sigblock.c: File removed.
7378         * signal/sigaction.c: File removed.
7379         * signal/kill.c: File removed.
7380         * signal/gsignal.c: File removed.
7381         * setjmp/siglongjmp.c: File removed.
7382         * setjmp/_longjmp.c: File removed.
7383         * resource/getrusage.c: File removed.
7384         * posix/waitpid.c: File removed.
7385         * posix/wait4.c: File removed.
7386         * posix/wait3.c: File removed.
7387         * posix/wait.c: File removed.
7388         * posix/times.c: File removed.
7389         * posix/sysconf.c: File removed.
7390         * posix/setuid.c: File removed.
7391         * posix/setsid.c: File removed.
7392         * posix/setpgrp.c: File removed.
7393         * posix/setpgid.c: File removed.
7394         * posix/setgid.c: File removed.
7395         * posix/pathconf.c: File removed.
7396         * posix/getuid.c: File removed.
7397         * posix/getppid.c: File removed.
7398         * posix/getpid.c: File removed.
7399         * posix/getgrps.c: File removed.
7400         * posix/getgid.c: File removed.
7401         * posix/geteuid.c: File removed.
7402         * posix/getegid.c: File removed.
7403         * posix/fpathcon.c: File removed.
7404         * posix/fork.c: File removed.
7405         * posix/execve.c: File removed.
7406         * posix/environ.c: File removed.
7407         * misc/utimes.c: File removed.
7408         * misc/setreuid.c: File removed.
7409         * misc/setregid.c: File removed.
7410         * misc/select.c: File removed.
7411         * misc/sbrk.c: File removed.
7412         * misc/mknod.c: File removed.
7413         * misc/ioctl.c: File removed.
7414         * misc/getpgsz.c: File removed.
7415         * misc/gethstnm.c: File removed.
7416         * misc/getdtsz.c: File removed.
7417         * misc/data_start.c: File removed.
7418         * misc/brk.c: File removed.
7419         * math/scalb.c: File removed.
7420         * math/rint.c: File removed.
7421         * math/logb.c: File removed.
7422         * math/isnan.c: File removed.
7423         * math/isinf.c: File removed.
7424         * math/infnan.c: File removed.
7425         * math/finite.c: File removed.
7426         * math/expm1.c: File removed.
7427         * math/drem.c: File removed.
7428         * math/copysign.c: File removed.
7429         * math/__scalb.c: File removed.
7430         * dirent/getdents.c: File removed.
7431
7432 Fri Jan 20 16:11:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7433
7434         * sysdeps/generic/morecore.c (__default_morecore): Use
7435         __malloc_ptrdiff_t; don't cast arg to int.
7436
7437         * resolv/getnetnamadr.c: Include "conf/portability.h".
7438
7439 Thu Jan 19 02:20:04 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7440
7441         * stdlib/strtol.c: Include errno.h.
7442         [QUAD] (ULONG_MAX): Define to a static variable initialized to
7443         ULONG_LONG_MAX. This is to work around a GCC bug in using the
7444         constant in arithmetic.
7445
7446         * posix/unistd.h (daemon): Declare it.
7447
7448         * malloc/mcheck-init.c: Remove GNU ld hacks.
7449         (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
7450         * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
7451         (initialize): Call the hook if set.
7452         * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
7453         (__malloc_initialize_hook): Declare new hook variable.
7454
7455 Wed Jan 18 01:43:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7456
7457         * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
7458         * hurd/hurdpid.c: Likewise.
7459         * hurd/hurdauth.c: Likewise.
7460
7461 Tue Jan 17 03:16:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7462
7463         * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
7464         if any are successful.
7465
7466         * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
7467         (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
7468         _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
7469         functions.
7470         (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
7471
7472         * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
7473         * hurd/hurd-raise.c: Likewise.
7474         * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
7475
7476         * sysdeps/mach/hurd/ptrace.c: New file.
7477
7478         * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
7479         interface, which has normal EINTR semantics.  Instead of waiting
7480         for io_select_done notification messages, send io_select messages
7481         with short reply timeout and then wait for io_select_reply
7482         messages.
7483
7484         * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
7485         EXEC_INHERITED) to file_exec.
7486
7487         * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
7488         use sig_post_untraced_reply.  All callers changed.
7489         (abort_thread, abort_rpcs): Take same new arg and pass it through.
7490         All callers changed.
7491         (_hurd_internal_post_signal): Take new arg UNTRACED.
7492         If zero and process is traced, stop with SIGNO as stop signal.  If
7493         nonzero, resume process before delivering signal (unless
7494         ACT==stop).  Expand local fn sigwakeup into block at end taken iff
7495         SIGNO!=0.
7496         (signal_allowed): New function, broken out of _S_sig_post.
7497         (_S_sig_post): Call it.  Pass UNTRACED arg of false to
7498         _hurd_internal_post_signal.
7499         (_S_sig_post_untraced): New function.  Just like _S_sig_post, but
7500         pass true for UNTRACED.
7501         * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
7502         UNTRACED.
7503         * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
7504         to _hurd_internal_post_signal (value zero).
7505
7506 Mon Jan 16 16:40:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7507
7508         * hurd/hurdinit.c (_hurd_exec_flags): New variable.
7509         (_hurd_init): Initialize it from FLAGS arg.
7510         (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
7511         raise a SIGTRAP signal (with a sigcode of zero).
7512         * hurd/hurd.h (_hurd_exec_flags): Declare it.
7513
7514         * Version 1.09.5.
7515
7516 Mon Jan 16 16:16:55 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
7517
7518         * malloc/malloc.c (malloc): Fix 1-off in previous change.
7519
7520 Mon Jan 16 15:49:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7521
7522         * posix/glob/Makefile.in: Remove config.h and config.log.
7523
7524 Sun Jan 15 06:56:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7525
7526         * posix/glob/configure.in: Add AC_CONST check.
7527
7528         * conf/portability.h: #undef sun.
7529         * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
7530         * resolv/getnetnamadr.c: Likewise.
7531
7532         * socket/Makefile (headers): Add sockaddrcom.h.
7533         * inet/netinet/in.h: Include <sockaddrcom.h>.
7534         (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
7535         * socket/sys/un.h (struct sockaddr_in): Likewise.
7536         * socket/sys/socket.h (struct sockaddr): Likewise.
7537         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
7538         * sysdeps/generic/sockaddrcom.h: New file.
7539
7540         * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
7541         * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
7542         F_FREESP): New macros.
7543         * sysdeps/posix/truncate.c: New file.
7544
7545         * malloc/malloc.c (malloc): Fix typos in RMS's change.
7546
7547         * malloc/Makefile (dist-routines): Add malloc-find.
7548         * malloc/malloc.h (malloc_find_object_address): Declare it.
7549         * malloc/malloc-find.c: New file.
7550
7551         * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
7552         __malloc_size_t.
7553         (malloc_info): Use that type for member `busy.info.size'.
7554
7555         * stdlib/strtol.c: Change uses of `long' keyword throughout to use
7556         `LONG' macro.
7557         [! QUAD] (LONG): Define as long.
7558         [QUAD] (LONG): Define as long long.
7559         [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
7560         versions.
7561         [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
7562         * stdlib/Makefile (routines): Add strtoq and strtouq.
7563         * stdlib/strtoq.c, stdlib/strtouq.c: New files.
7564         * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
7565         Declare them.
7566
7567         * stdio/vfprintf.c: If there was a precision specified, ignore the
7568         0 flag and always pad with spaces.
7569
7570         * stdio/vfprintf.c: Don't use strchr to skip text until next %.
7571         Use a loop and also stop on first !isascii char.
7572
7573 Wed Jan 11 00:07:10 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
7574
7575         * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
7576
7577         * malloc/malloc.c (malloc): For a multi-block object, store a
7578         negative number into the busy.info.size of all but the first block.
7579
7580 Tue Jan 10 13:45:20 1995  Brendan Kehoe  <brendan@zen.org>
7581
7582         * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
7583         instead of t0, t1, and t2.
7584
7585 Tue Jan 10 05:53:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7586
7587         * malloc/memalign.c (__memalign_hook): New variable.
7588         (memalign): Call it if set.
7589         * malloc/malloc.h (__memalign_hook): Declare new variable.
7590
7591 Wed Dec 28 03:27:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7592
7593         * conf/portability.h: Include string.h and stdlib.h.
7594         * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
7595         * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
7596         resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
7597         resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
7598         resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
7599
7600         * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro.  Replace
7601         all uses of `extern __inline' with `__m81_inline'.
7602
7603         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
7604         * sysdeps/unix/__fork.S: Swap args in subl.
7605
7606         * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
7607         compatibility.
7608
7609 Tue Dec 20 13:33:20 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
7610
7611         * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
7612         of swtch.
7613         * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
7614         * mach/spin-solid.c (__spin_lock_solid): Likewise.
7615
7616 Thu Dec 15 12:01:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7617
7618         * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
7619         for PBUF.
7620         (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
7621
7622         * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
7623
7624 Wed Dec 14 18:20:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7625
7626         * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
7627         in `bis' insn; immediate must be second.
7628
7629         * sysdeps/unix/__fork.S: Use subl instead of decl.
7630         * sysdeps/unix/i386/__fork.S: New file.
7631
7632         * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
7633         Remove A macro; just use `asm volatile' with proper quotes in each
7634         line.
7635         * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
7636         jmp target register.
7637
7638         * time/africa, time/asia, time/australasia, time/emkdir.c,
7639         time/europe, time/ialloc.c, time/northamerica, time/private.h,
7640         time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
7641         and data from ADO 94h distribution.
7642
7643         * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
7644         __sigjmp_save in %g1 and jmp there.  jmp cannot contain a complete
7645         absolute pointer.  Put second store in jmp delay slot.
7646
7647 Tue Dec 13 15:47:52 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7648
7649         * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
7650         __sigsetjmp in %g1 and jmp there.  jmp cannot contain a complete
7651         absolute pointer.
7652         * sysdeps/sparc/bsd-setjmp.S: Likewise.
7653
7654         * configure.in: Use ; before } in { ... } exprs.
7655
7656 \f
7657
7658 See ChangeLog.4 for earlier changes.