Wed May 29 00:52:20 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[platform/upstream/glibc.git] / ChangeLog
1 Wed May 29 00:52:20 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
2
3         * extra-lib.mk (alltypes-$(lib)): Don't append $(objpfx)$(lib).so.
4         (others): Instead, make this depend on it.
5
6 Tue May 28 04:38:10 1996  Ulrich Drepper  <drepper@cygnus.com>
7
8         * limits.h: Change MB_LEN_MAX to 6.  A 31-bit ISO 10646
9         character in UTF-8 encoding has that many bytes.
10
11         * locale/langinfo.h: New element _NL_CTYPE_MB_CUR_MAX.
12         * locale/categories.def: Add description of field _NL_CTYPE_MB_CUR_MAX.
13         * locale/Makefile (routines): Add mb_cur_max.
14         * locale/mb_cur_max.c: New file.  This function gets called
15         when the macro MB_CUR_MAX is used.
16         * locale/C-ctype.c: Initialize new mb_cur_max field.
17         * locale/localeinfo.h: Change magic value because of incompatible
18         change.
19         * locale/programs/ld-ctype.c: Determine value of mb_cur_max
20         according to current character set and write it out with the rest.
21         * stdlib/stdlib.h (MB_CUR_MAX): Not constant anymore.  Get value
22         according to currently used locale for catefory LC_CTYPE by
23         calling the function __ctype_get_mb_cur_max.
24
25 Tue May 28 03:27:46 1996  Ulrich Drepper  <drepper@cygnus.com>
26
27         * FAQ:  Fix some typos.
28         Tell that for Linux the kernel header files are necessary.
29
30         * PROJECTS: New file.  List of open jobs for glibc.
31         * Makefile (distribute): Add PROJECTS.
32
33         * crypt/GNUmakefile (headers): New variable.  Mention crypt.h.
34         * crypt/crypt.h: Header for crypt functions.
35
36         * elf/elf.h: Add some new constants from recent Cygnus ELF
37         header files.
38
39         * login/getutid_r.c: Test for correct type.
40         Don't depend on ut_type and ut_id unless _HAVE_UT_TYPE and
41         _HAVE_UT_ID resp. are defined.
42         Make really compliant with specification.
43
44         * login/getutline_r.c, login/pututline_r.c: Don't depend on
45         ut_type and ut_id unless _HAVE_UT_TYPE and _HAVE_UT_ID resp. are
46         defined.
47         Make really compliant with specification.
48
49         * login/setutent_r.c: Don't depend on ut_type and ut_id unless
50         _HAVE_UT_TYPE and _HAVE_UT_ID resp. are defined.
51
52         * login/login.c, login/logout.c, login/logwtmp.c: Complete
53         rewrite.  Now based on getut*/setut* functions.
54
55         * stdlib/strtol.c: Undo changes of Wed May 22 01:48:54 1996.
56         This prevented using this file in other GNU packages.
57
58         * sysdeps/gnu/utmpbits.h: Define _HAVE_UT_TYPE, _HAVE_UT_ID,
59         and _HAVE_UT_TV because struct utmp has these members.
60
61         * sysdeps/libm-i387/e_exp.S: Correct exp(+-Inf) case.
62
63         * utmp.h: New file.  Wrapper around login/utmp.h.
64
65 Tue May 28 13:11:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
66
67         * elf/dl-error.c (struct catch): New type.
68         (catch): New static variable, struct catch *.
69         (catch_env, signalled_errstring, signalled_objname): Variables removed.
70         (_dl_signal_error): If CATCH is non-null, set its errstring and
71         objname members and jump to CATCH->env.  If it is null, call
72         _dl_sysdep_fatal with a standard message.
73         * elf/rtld.c (dl_main): Explode `doit' function into dl_main's body.
74         No longer use _dl_catch_error.
75
76         * Makerules (sed-remove-objpfx): Avoid extra space in regexp due to
77         continuation line.
78
79         * sysdeps/unix/sysv/linux/i386/socket.S: Fix off-by-one error in
80         setting %ecx to 2nd syscall arg: we have pushed nothing, so function
81         args are found at 4(%esp), not 8(%esp).
82
83 Mon May 27 10:10:00 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
84
85         * Makefile ($(includedir)/stubs.h): Add missing backslash.
86
87         * sysdeps/unix/sysv/linux/i386/brk.c (__curbrk): Initialize it so it
88         can be aliased.
89
90         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=termios] (headers):
91         Append termio.h.
92
93         * Makefile ($(includedir)/stubs.h): Print a msg if we do nothing.
94
95         * misc/sgtty.h: Add forward decl of struct sgttyb in case it is never
96         defined.
97
98         * sysdeps/unix/sysv/linux/termio.h: New file.
99         * sysdeps/unix/sysv/linux/Dist: Add it.
100
101         * sysdeps/unix/sysv/linux/ioctl-types.h: New file, wrapper around
102         kernel header <asm/termios.h>.
103
104         * misc/Makefile (headers): Add ioctl-types.h.
105         * sysdeps/generic/ioctl-types.h: New file.
106         * misc/sys/ioctl.h: Include <ioctl-types.h>.
107         (struct tchars, struct ltchars, struct sgttyb, struct winsize,
108         struct ttysize): Types moved there.
109
110         * Makefile ($(includedir)/stubs.h): Don't touch target if new one is
111         identical.
112
113         * time/Makefile (z.% rule): Generate generic zone%/ rule after
114         zone%/right/ and zone%/posix/ rules so they match first.
115
116 Sun May 26 15:15:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
117
118         * features.h [_GNU_SOURCE] (_BSD_SOURCE, _SVID_SOURCE,
119         _POSIX_SOURCE, _POSIX_C_SOURCE): Define these.
120
121         * time/Makefile (tzcompile): Add missing backslash.
122
123         * stdlib/ldiv.c: Deansideclized.
124
125         * wctype/wctype.h (__need_wint_t): Define this and include stddef.h.
126         [! _WINT_T] (wint_t): Conditionalize typedef on this in case pre-2.7.3
127         stddef.h doesn't define it.
128         * wcsmbs/wchar.h: Likewise.
129         * stdlib/strtod.c: Likewise.
130
131         * wcsmbs/wcstok.c: Fix argument name typo.
132
133 Sun May 26 19:39:53 1996  Ulrich Drepper  <drepper@cygnus.com>
134
135         * intl/loadmsgcat.c (_nl_load_domain): Test correct variable
136         after malloc.
137
138         * string/Makefile (tester-ENV): New variable to suppress message
139         translation in test.
140
141         * string/tester.c: Add tests for strtok_r and strsep.
142
143         * sysdeps/i386/i486/strcat.S: Correct some more 8bit operation
144         <-> 32 bit operand conflicts.
145
146         * sysdeps/i386/strsep.S: Wrapper around <sysdeps/i386/strtok.S>
147         to produce strsep function.
148         * sysdeps/i386/strtok.S: Optimized implementation of strtok
149         function.
150         * sysdeps/i386/strtok_r.S: Wrapper around <sysdeps/i386/strtok.S>
151         to produce strtok_r function.
152
153         * sysdeps/generic/strtok.c: Moved here from string/strtok.c.
154         Corrected example in comment.
155
156         * string/Makefile (routines): Add strtok_r.
157         * sysdeps/generic/strtok_r.c: New file.  Implement reentrant version
158         of strtok_r.
159         * string/string.h: Add prototype for strtok_r.
160         * wcsmbs/wcstok.c: Handle illegal SAVE_PTR argument the same
161         as in strtok_r.
162
163 Sun May 26 13:28:23 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
164
165         * time/tzset.c (__tzset): Ignore leading : in $TZ; always try tzfile
166         first and fall back to 1003.1 syntax only if it fails.
167
168         * time/Makefile (install-others): Also install posix/ZONE and
169         right/ZONE for each ZONE in $(zonenames).
170         (z.% rule): Generate rules for right/ZONE and posix/ZONE targets too,
171         the difference begin leapseconds vs /dev/null as 3rd dep.  For
172         original ZONE targets use $(leapseconds), to be set in Makeconfig.
173         (target-zone-flavor): New variable.
174         (tzcompile): Use it to get the right -d for posix/ and right/ flavors.
175         * Makeconfig (leapseconds): New variable.
176
177         * mach/Machrules (%.udeps rule): Depend on Machrules.
178         Emit deps for .uh and .__h files.
179         (%.uh, %.__h rules): Don't depend on %.defs; use #include <$*.defs>
180         instead.
181
182 Sun May 26 01:06:47 1996  Ulrich Drepper  <drepper@cygnus.com>
183
184         * stdlib/Makefile (routines): Add llabs, lldiv.
185         * stdlib/llabs.c: New file.  Implementation of return
186         absolute value of long long argument.
187         * stdlib/lldiv.c: New file.  Implementation of division with remainder
188         of long long argument.
189         * stdlib/stdlib.h [__USE_GNU] (lldiv_t): New type for lldiv
190         function.
191         Define prototypes for lldiv and llabs functions.
192
193         * locale/C-collate.c: Initialize _NL_COLLATE_NRULES element.
194
195         * stdlib/strtod.c: Replace wchar_t with wint_t.  The later is
196         really the type for a single wide character.
197
198         * string/strxfrm.c (print_val): Define separate version for
199         use as wcsxfrm.  Here we don't need UTF8 encoding.
200
201         * wcsmbs/wchar.h:  gcc-2.7.2-960517 finally introduces wint_t
202         in <stddef.h>.  Use this value and only for older gcc version
203         define in place.
204         (uwchar_t): Remove definition.
205
206         * wcsmbs/wcscmp.c, wcsmbs/wcscoll.c, wcsmbs/wcsncmp.c,
207         wcsmbs/wcsxfrm.c, wcsmbs/wmemcmp.c: : Don't use uwchar_t as unsigned
208         type.  wint_t is intended for this.
209
210 Sat May 25 14:10:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
211
212         * sysdeps/unix/bsd/direntry.h: Use [1] instead of [0] for d_name to
213         quiet -ansi -pedantic.
214         * sysdeps/unix/common/direntry.h: Likewise.
215
216         * login/Makefile (headers): Add lastlog.h.
217         * login/lastlog.h: New file.
218
219         * login/Makefile (CFLAGS): Don't append -D_THREAD_SAFE.
220         * login/utmp.h [_REENTRANT || _THREAD_SAFE]: Replace this conditional
221         with #ifdef __USE_REENTRANT.
222
223         * features.h (__GNU_LIBRARY__): Set to 6.
224         [_GNU_SOURCE] (_POSIX_SOURCE, _POSIX_C_SOURCE, _BSD_SOURCE,
225         _SVID_SOURCE): Make sure they are all defined.
226
227         * sysdeps/unix/sysv/linux/gnu/types.h: Instead of including
228         <linux/posix_types.h>, define _LINUX_TYPES_DONT_EXPORT and then
229         include <linux/types.h>.
230
231         * resource/sys/resource.h: Remove trailing commas from enums.
232
233 Fri May 24 17:30:50 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
234
235         * sysdeps/generic/netinet/in.h: Remove trailing commas from enums.
236         * sysdeps/unix/sysv/linux/netinet/in.h: Likewise.
237
238         * login/getutline_r.c: Include string.h.
239
240         * Rules (static-only-routines): Restore the rule to make these .so's
241         empty objects.
242
243         * login/pututline_r.c: Use struct assignment instead of memcpy.
244
245         * login/getutline_r.c: Use strncmp instead of comparing two pointers
246         that will only be equal if you are overwriting the data and screwing
247         yourself anyway.
248
249 Fri May 24 02:31:36 1996  Ulrich Drepper  <drepper@cygnus.com>
250
251         * sysdeps/unix/sysv/linux/speed.c: Add new speed value 460800.
252
253 Thu May 23 23:09:33 1996  Ulrich Drepper  <drepper@cygnus.com>
254
255         * FAQ: Add answer for 100% source code compatibility to Linux
256         libc by David Mosberger-Tang.
257
258         Update from bind-4.3.4-T3B.
259         * inet/arpa/inet.h: Add prototypes for inet_pton, inet_ntop,
260         inet_nsap_addr, and inet_nsap_ntoa.
261         * resolv/gethnamaddr.c: Correct compatibility problems (sprintf),
262         remove fourth argument to inet_pton and correct handling of
263         host_addr passing.
264         * resolv/inet_ntop.c: Correct compatibility problems (sprintf).
265         * resolv/inet_pton.c: Remove fourth argument.
266         * resolv/resolv.h: Remove prototypes for inet_nsap_addr and
267         inet_nsap_ntoa.  Now on <arpa/inet.h>.
268
269         * stdlib/gmp-impl.h: Add prototypes for internal functions.
270
271 Thu May 23 22:49:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
272
273         * Rules (subdir_install): Remove dep on sor-$(subdir).
274         (static-only-routines): Removed variable and associated rules.
275
276 Wed May 22 00:40:50 1996  David Mosberger-Tang  <davidm@azstarnet.com>
277
278         * sysdeps/unix/sysv/linux/alpha/speed.c (speeds): Add entry for
279         460800 baud.
280
281         * sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
282
283         * sysdeps/unix/sysv/linux/alpha/Makefile (headers): Add
284         alpha/ptrace.h.
285         * sysdeps/unix/sysv/linux/alpha/alpha/ptrace.h: New file.
286
287         * sysdeps/libm-ieee754/s_scalbnf.c: Call __scalbnf instead of
288         scalbnf.
289
290         * sysdeps/generic/sigset.h (__sigismember, __sigaddset,
291         __sigdelset): Add declaration to keep ANSI compilers quiet.
292
293         * sysdeps/alpha/__math.h (cabs): Remove underscores from struct
294         __cabs_complex member names in call to __hypot().
295
296         * sysdeps/alpha/copysign.S, sysdeps/alpha/fabs.S: New files.
297
298         * sysdeps/alpha/divrem.h: Renamed from sysdeps/alpha/divrem.S to avoid
299         name collision with math library.
300
301         * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
302         sysdeps/alpha/divqu.S, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
303         sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Include divrem.h instead
304         of divrem.S.
305
306         * sysdeps/unix/alpha/sysdep.h: Include regdef.h.  Define LEAF macro
307         to simplify declaration of leaf functions.
308
309         * sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
310         sysdeps/alpha/bsd-_setjmp.S, sysdeps/alpha/ffs.S,
311         sysdeps/alpha/htonl.S, sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
312         sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
313         sysdeps/alpha/udiv_qrnnd.S, sysdeps/unix/sysv/linux/alpha/brk.S,
314         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
315         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
316         sysdeps/unix/sysv/linux/alpha/pipe.S,
317         sysdeps/unix/sysv/linux/alpha/sigsuspend.S,
318         sysdeps/unix/sysv/linux/alpha/syscall.S,
319         sysdeps/unix/sysv/linux/alpha/start.S,
320         sysdeps/unix/sysv/linux/alpha/sysdep.S: Remove include of regdef.h.
321         sysdep.h includes it now. Replace ENTRY by LEAF with appropriate
322         framesize declaration.  Replace "lda pv,sym/jsr pv" by "jsr sym".
323
324         * sysdeps/unix/sysv/linux/alpha/sysdep.h (NO_UNDERSCORES): Don't
325         define.
326
327         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Added getsockopt,
328         ptrace, and sysctl.
329
330         * sysdeps/unix/sysv/linux/alpha/profil-counter.h: File removed.
331
332         * sysdeps/unix/sysv/linux/alpha/ioperm.c: Modify to support
333         dynamic recognition of platform type.
334         (_bus_base): New function.
335
336         * sysdeps/unix/sysv/linux/alpha/llseek.S: New file.
337
338         * sunrpc/rpc/rpc.h, sunrpc/rpc/svc.h: Avoid nested comments since
339         they produce ugly warnings by gcc.
340
341         * posix/sys/types.h [__USE_MISC]: Add typedef for ulong.
342
343 Wed Mar 27 10:26:21 1996  David Mosberger-Tang  <davidm@azstarnet.com>
344
345         * sysdeps/alpha/setjmp.S: Must establish global pointer before
346         address of __sigsetjmp_aux can be loaded.
347
348 Wed May 22 22:10:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
349
350         * stdlib/canonicalize.c: New file.
351         * stdlib/stdlib.h: Declare canonicalize_file_name, realpath.
352         * stdlib/Makefile (routines): Add canonicalize.
353
354         * posix/unistd.h: Declare __canonicalize_directory_name_internal.
355
356 Thu May 23 00:01:10 1996  Ulrich Drepper  <drepper@cygnus.com>
357
358         * db/recno/rec_seq.c: Prevent `sccsid' definition by using the
359         same #if condition as in the other db files.
360
361         * intl/Makefile: Add -Wno-unused CFLAGS for compilation of
362         bindtextdom.c, finddomain.c, and localealias.c.
363
364         * intl/dcgettext.c: Don't define prototype for getcwd() when
365         compiling in glibc.
366
367         * libio/cleanup.c: Add prototype for _IO_register_cleanup.
368
369         * libio/filedoalloc.c, libio/fileops.c, libio/iopopen.c: Don't
370         define _POSIX_SOURCE unconditionally.
371
372         * libio/filedoalloc.c, libio/iopopen.c: Include <unistd.h> if
373         compiling in glibc.
374
375         * libio/fileops.c (_IO_file_close_it): Don't sync file, call
376         flush instead.  This relaxes the rules from POSIX.1 about
377         changing the active handle a bit.
378
379         * libio/iofopncook.c (struct _IO_cookie_file): Move definition
380         into <libio.h>.
381         Add prototypes for local functions to prevent warnings.
382
383         * libio/iopopen.c: Change prototypes for _IO_fork, _IO_pipe, and
384         _IO_DUP2 to contain complete parameter list.
385
386         * libio/libio.h: Add definition of struct _IO_cookie_file.
387
388         * libio/libioP.h: Add prototypes for _IO_vasprintf, _IO_vdprintf,
389         and _IO_vsnprintf.
390
391         * libio/memstream.c: Include <stdio.h>.
392
393         * libio/stdio.h: Add prototypes for fopencookie,
394         __stdio_gen_tempname, __vfscanf, __vsscanf, and __vsnprintf.
395
396         * libio/strops.c: Avoid useless expression in `for' initializer.
397
398         * locale/findlocale.c: Add some casts to prevent warnings.
399
400         * locale/programs/locfile.c (write_locale_data): Don't use
401         double `/' in locale binary file.
402
403         * posix/unistd.h: Remove prototype for `reboot'.
404
405         Update from bind-4.9.4-T1A.
406         * resolv/Makefile (routines): Add inet_ntop and inet_pton.
407         * resolv/arpa/nameser.h: Add definition of IN6ADDRSZ.
408         * resolv/gethnamaddr.c, resolv/getnetnamadr.c, resolv/res_comp.c,
409         resolv/res_debug.c, resolv/res_init.c
410
411         * resolv/inet_ntop.c, resolv/inet_pton.c: New files.
412
413         * resolv/resolv.h: Add RES_USE_INET6 flag.
414         (__dn_isvalid): Renamed to __res_dnok.
415         Add prototypes for __res_ownok and __res_mailok.
416
417         * stdio-common/Makefile: Add -Wno-unused to CFLAGS for _itoa.c.
418
419         * stdio-common/getline.c, stdio-common/vfscanf.c,
420         sysdeps/posix/tempname.c: Don't use <ansidecl.h> anymore.
421
422         * sysdeps/unix/sysv/linux/Makefile [$subdir == misc]
423         (sysdep_routines): Add s_reboot.
424         (install-others): Add $(includedir)/sys/syscall.h.
425         New rule for $(includedir)/sys/syscall.h to produce from
426         <asm/unistd.h>.
427
428         * sysdeps/unix/sysv/linux/reboot.c: New file.  Make single
429         argument function call 3 argument system call.
430
431         * sysdeps/unix/sysv/linux/sys/reboot.h: New file.  Linux specific
432         definition for reboot function.
433
434         * sysdeps/unix/sysv/linux/syscall.h: Remove old and obsolete
435         comment.
436
437         * sysdeps/unix/sysv/linux/syscalls.list: Rename function for
438         reboot syscall to __syscall_reboot.
439
440         * wcsmbs/wchar.h: Protect prototypes for wcstof and wcstold by
441         __USE_GNU, not USE_GNU.
442
443 Tue May 21 21:55:49 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
444
445         * locale/programs/charset.c, locale/programs/ld-collate.c:
446         Add casts to prevent warnings on 64-bit machines.
447
448         * locale/programs/ld-monetary.c: Don't do unnecessary tests for
449         int_frac_digits and frac_digits which only produce warnings.
450
451 Mon May 13 23:45:29 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
452
453         * inet/arpa/inet.h: Backup return type of inet_addr to u_long.
454         * resolv/inet_addr.c: Likewise.
455
456         * resolv/Makefile (distribute): Add res_hconf.h
457         (routines): Add res_hconf.
458
459         * resolv/gethnamaddr.c: Add support for /etc/host.conf.
460
461         * resolv/res_init.c: Initialize /etc/host.conf reader.
462
463         * resolv/res_hconf.c, resolv/res_hconf.h: New files.
464         Implementation of reading /etc/host.conf.
465
466 Wed May 22 21:21:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
467
468         * Rules (%.out rules): Prepend $($*-ENV) to the command.
469
470         * sysdeps/unix/sysv/linux/i386/brk.c (___brk_addr): Define as weak
471         alias for __curbrk.
472
473 Wed May 22 19:37:27 1996  Miles Bader  <miles@gnu.ai.mit.edu>
474
475         * hurd/hurdexec.c (_hurd_exec): Pass INIT_TRACEMASK.
476         * hurd/hurdmsg.c (set_int): Support INIT_TRACEMASK.
477
478 Wed May 22 18:47:31 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
479
480         * sysdeps/mach/hurd/getcwd.c
481         (_hurd_canonicalize_directory_name_internal): New function, broken out
482         of __getcwd.
483         (__getcwd): Use it.
484         (__canonicalize_directory_name_internal): New function using it.
485
486         * sysdeps/posix/getcwd.c (__canonicalize_directory_name_internal): New
487         function, broken out of __getcwd.
488         (__getcwd): Use it.
489
490 Wed May 22 18:14:05 1996  Miles Bader  <miles@gnu.ai.mit.edu>
491
492         * string/argz-create.c (__argz_create): Correctly calculate length.
493
494         * string/argz-extract.c (__argz_extract): Add terminating 0 entry.
495         * hurd/hurdstartup.c (_hurd_startup): ... and don't so here.
496
497 Wed May 22 17:22:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
498
499         * posix/glob.c [VMS]: Don't include <pwd.h>.
500         [HAVE_VMSDIR_H]: Include "vmsdir.h".
501         (glob) [VMS]: Don't grok ~.
502
503 Wed May 22 14:46:53 1996  Miles Bader  <miles@gnu.ai.mit.edu>
504
505         * hurd/hurdstartup.c (_hurd_startup): Terminate the vectors we get
506         back from argz_extract.
507
508 Wed May 22 13:56:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
509
510         * configure.in: Remove checks for objdump, objcopy, and awk.
511         * config.make.in (OBJDUMP, OBJCOPY, AWK): Variables removed.
512         * Makefile (distribute): Remove extract-dynsym.
513         * extract-dynsym: File removed.
514
515 Tue May 21 22:17:45 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
516
517         * termios/cfmakeraw.c: Set MIN to 1 and TIME to 0.
518
519 Wed May 22 01:48:54 1996  Ulrich Drepper  <drepper@cygnus.com>
520
521         * stdlib/strtol.c [!QUAD] (ULONG_MAX, LONG_MAX): Define these
522         macros if they are not available.
523         (WEAKNAME): New macro to declare argument as weak.
524         Define function with __ prefix and add normal name as weak alias.
525
526         * sysdeps/posix/euidaccess.c (S_IROTH, S_IWOTH, S_IXOTH): Defines
527         these macros if not already available based on R_OK, W_OK, and
528         X_OK.
529
530 Tue May 21 18:48:46 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
531
532         * misc/sys/syslog.h (__need___va_list): Define this instead of
533         __need_va_list before including <stdarg.h>.
534
535         * Makerules (o-iterator): Use $(object-suffixes-left) instead
536         of $(object-suffixes) to produce repetitions; this is used for other
537         lists than just that one.
538         [versioned]: Use $(o-iterator) properly.
539
540         * sysdeps/unix/sysv/linux/Implies: Include `gnu'.
541         * sysdeps/mach/hurd/Implies: Likewise.
542
543 Sat May 18 02:57:46 1996  Ulrich Drepper  <drepper@cygnus.com>
544
545         * login/Makefile: New file.  This directory contains functions
546         for user administration.
547         * Makefile (subdirs): Add login.
548
549         * misc/Makefile (headers): Remove utmp.h.  Now in login/utmp.h.
550         (extra-libs, libutil-routines): Ditto.
551         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
552         misc/utmp.h: Moved to misc/.
553         * login/login.c, login/login_tty.c, login/logout.c,
554         login/logwtmp.c, login/utmp.h: Moved to here from misc/.
555
556         * login/utmp.h: Split file.  Definitions of data structures
557         and constants are now in the system dependent utmpbits.h file.
558
559         * login/setutent_r.c, login/setutent.c, login/endutent_r.c,
560         login/endutent.c, login/getutent_r.c, login/getutent.c,
561         login/getutid_r.c, login/getutid.c, login/getutline_r.c,
562         login/getutline.c, login/pututline_r.c, login/pututline.c:
563         New files.  Routines to handle utmp-style files.
564
565         * sysdeps/gnu/utmpbits.h: New file.  Contains GNU/Linux
566         specific definitions of utmp data structures and constants.
567
568         * sysdeps/unix/sysv/utmpbits.h: Renamed from sysdeps/unix/sysv/utmp.h.
569
570         * sysdeps/generic/utmpbits.h: New file.  Generic (BSDish) version of
571         definitions of utmp data structures and constants.
572
573 Fri May 17 00:01:31 1996  Ulrich Drepper  <drepper@cygnus.com>
574
575         * locale/C-monetary.c: Default value for mon_decimal_point should be
576         '.'.
577
578         * stdio-common/printf.h: Remove Linux libc compatibility stuff.
579         Add `extra' flag.  Currently used in __printf_fp.
580
581         * stdio-common/printf_fp.c (__guess_grouping): Renamed from
582         `guess_grouping' and extend visibility to extern.  This function
583         is now used in `strfmon'.
584         (__printf_fp): Recognize new bit flag in info struct.  This
585         triggers to use the grouping information and decimal point from
586         the LC_MONETARY category instead of the LC_NUMERIC category.
587
588         * stdio-common/vfprintf.c (process_arg): Correct major bug.  In
589         `complicated' loop we must not use the varargs because the args
590         are already available in the ARGS_VALUE array.
591
592         * stdlib/Makefile (headers): Add monetary.h.
593         (routines): Add strfmon.
594         * stdlib/monetary.h: New file.  Header for strfmon function.
595         * stdlib/strfmon.c: New file.  Implement strfmon function to print
596         monetary amounts according to current locale's rules.
597
598         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: The kernel header is
599         now (>= Linux-1.3.100) called <asm/vm86.h>.
600
601 Thu May 16 00:31:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
602
603         * Makerules [versioned]: Make symlinks in the build directory, because
604         the versioned names might be referenced by a DT_NEEDED in another
605         library.
606
607 Wed May 15 18:59:38 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
608
609         * manual/examples/longopt.c: Include stdlib.h and getopt.h.
610
611 Tue May 14 03:36:21 1996  Ulrich Drepper  <drepper@cygnus.com>
612
613         * sysdeps/unix/sysv/linux/Makefile [$subdir == misc] (headers):
614         Add sys/acct.h and sys/sysctl.h.
615
616 Tue May 14 19:42:04 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
617
618         * sysdeps/generic/strrchr.c: Deansideclized.
619
620         * elf/Makefile (ldd): Depend on Makefile.
621         Find ld.so in $(slibdir) instead of $(libdir).
622
623         * sysdeps/i386/strrchr.S: Use `testl $3, %esi' instead of `testb $3,
624         %esi'; gas misassembles the latter into `testb $3, %dh'.
625
626         * mach/Machrules (%.udeps rule): Do $(make-target-directory) first.
627
628 Tue May 14 16:38:44 1996  David Mosberger-Tang <davidm@AZStarNet.com>
629
630         * sunrpc/getrpcent.c (interpret): Declare args.  Rewrite parsing using
631         strpbrk.
632
633 Tue May 14 20:18:38 1996  Ulrich Drepper  <drepper@cygnus.com>
634
635         * time/Makefile (routines): Add strptime.
636         * time/time.h: Add prototype for strptime.
637         * time/strptime.c: New file.  Implementation according to XPG4.
638
639 Tue May 14 14:07:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
640
641         * libc-symbols.h (lint): Macro removed.  The sunrpc code does some
642         really stupid things #ifdef lint.
643
644         * sysdeps/unix/sysv/linux/i386/profil-counter.h (profil_counter): Fix
645         struct member name: sc_eip -> eip.
646
647 Mon May 13 19:52:33 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
648
649         * Makerules (stub-$(subdir)): Put cmds including cd inside (...) with
650         output redirect outside it.
651
652         * elf/Makefile (subdir_lib): Depend on ld.so.
653
654 Sun May 12 22:52:22 1996  Bruce Elliott  <belliott@accessone.com>
655
656         * stdio-common/vfprintf.c: Correct handling of unsigned short
657         values.
658
659 Mon May 13 12:03:03 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
660
661         * extra-lib.mk (alltype-$(lib)): Put libs in $(objpfx) instead of
662         $(common-objpfx).
663         * Makerules [install-lib.a]: Find them there.
664
665         * sysdeps/unix/sysv/linux/i386/profil-counter.h: New file.
666
667         * extra-lib.mk: Skip the hair if $(object-suffixes-$(lib)) is empty.
668
669         * posix/glob.h [_AMIGA]: Remove `struct stat;' forward decl.
670
671         * configure.in (--with-fp): Note in help string that it's the default.
672
673         * locale/programs/ld-ctype.c (struct locale_ctype_t): Use u_int32_t
674         instead of unsigned int for map_collection_max and map_collection_act.
675
676         * stdio-common/vfprintf.c [USE_IN_LIBIO] (flockfile, funlockfile):
677         Macros removed; they are in <stdio.h>.
678         * stdio-common/vfscanf.c: Likewise.
679
680         * posix/glob.c [_AMIGA]: Don't include <pwd.h>.
681         (glob): Remove bogus & in call to globfree.
682         [_AMIGA]: Use AmigaDOS file name conventions.
683
684         * time/Makefile (zonenames): Target removed.
685         (extra-objs): Remove it from here.
686         Include the z.* files directly instead of including zonenames; use
687         `-include' to not complain before they exist.
688
689         * sysdeps/unix/Makefile: Find sysd-syscalls and s-proto.d with
690         $(common-objpfx) instead of $(objpfx).
691
692         * sysdeps/unix/bsd/telldir.c (seekdir, telldir): Use new struct member
693         names without __.
694
695         * Makerules [install-lib-non.a]: Find these things with $(objpfx)
696         instead of $(common-objpfx).
697
698         * Makeconfig (sysdep-configures): New variable.
699         (config.status): Depend on $(sysdep-configures).
700
701 Fri May 10 20:07:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
702
703         * sysdeps/unix/sysv/linux/profil.c: New file.
704
705 Fri May 10 19:59:50 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
706
707         * sysdeps/m68k/Makefile (CFLAGS-setjmp.c): New variable.
708
709 Fri May 10 19:55:42 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
710
711         * shlib-versions: Use libm=6 and libc=6 for m68k-linux.
712
713 Sun May 12 11:16:58 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
714
715         * string/envz.c: Fix uses of unsigned to size_t.
716
717         * Makerules ($(libdir)/libc.so): Make the file an ld script.
718
719         * sysdeps/mach/hurd/configure.in: Don't grok --with-hurd option.
720
721         * sysdeps/mach/configure.in: File removed.
722         * sysdeps/mach/configure: File removed.
723
724         * mach/Machrules (%.udeps rule): Write deps for %_server.[ch] too.
725         (%_server.[ch] rule): Don't depend on %.defs; use #include to get
726         installed .defs file.
727
728         * stdio-common/vfprintf.c (flockfile, funlockfile): Define to
729         nothing for stdio.  Fix fUNlockfile -> funlockfile for libio.
730         * stdio-common/vfscanf.c: Likewise.
731
732 Sat May 11 13:43:41 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
733
734         * hurd/hurdfault.c: Include faultexc_server.h instead of faultexc.h.
735
736         * mach/Machrules (%.ir rule): Don't produce deps for imports.
737
738         * elf/dl-fini.c (_dl_fini): Clear L->l_init_called after calling fn.
739
740         * Makerules (install): Depend on $(slibdir)/libc.so$(libc.so-version).
741         [!subdir] ($(libdir)/libc.so, $(common-objpfx)/libc-syms.so): Protect
742         these targets and install dep on $(libdir)/libc.so with this.
743
744         * hurd/Makefile: Removed all rules and defns for using code from Hurd
745         sources and installing headers from there.
746
747         * sysdeps/mach/hurd/errnos.awk: Set in_mach_errors to FILENAME when we
748         set it.  In Mach error matching clause, only match if FILENAME is
749         still the same value.
750
751         * sysdeps/mach/hurd/Makefile: Don't include sysdeps/mach/Makefile;
752         $(mach-srcdir) no longer exists.
753         (hurd-srcdir): Variable removed.
754         (includes): Don't append -I$(hurd-srcdir).
755         (last-includes): Variable removed.
756         Remove vpath specs using $(hurd-srcdir).
757         (mach-errno-h): New canned sequence.
758         ($(common-objpfx)errnos.d): New target, generated included makefile
759         to determine absolute file names of Mach headers to search for error
760         codes and set variable mach-errnos-deps.
761         ($(common-objpfx)stamp-errnos): Depend on $(mach-errnos-deps) instead
762         of prior explicit list.
763         (generated): Add errnos.d, stamp-errnos.
764
765         * mach/Machrules (some-if-rtn): New variable and target; compute deps
766         of some if routine and make all if routines depend on that .d file
767         instead of static list of .h files.
768
769         * mach/Makefile (mach/mach_interface.defs,
770         mach/memory_object_user.defs): Targets removed.
771         ($(objpfx)mach-syscalls.mk): Tweak this kludge so it doesn't depend
772         directly on Mach sources.
773
774         * sysdeps/mach/Makefile (mach-srcdir): Variable removed.
775         (includes): Don't append -I$(mach-srcdir).
776         Remove vpath specs using $(mach-srcdir).
777
778         * hurd/Makefile (server-interfaces): Add faultexc.
779         (sig): Remove it from here.
780         (fault%.[ch]): Rule removed.
781         (MIGFLAGS-faultexc): New variable.
782
783         * hurd/faultexc.defs: New file.
784
785         * mach/Machrules (%.ustamp rule): Pass $(MIGFLAGS-$*) to mig.
786         (%_server.[ch] rule): Likewise.
787
788         * mach/Makefile: Removed all rules and defns for using code from Mach
789         sources and installing headers from there.
790
791         * Makeconfig [$(build-shared)=yes] (link-libc): Append
792         $(libc.so-version) to libc.so.
793
794 Fri May 10 18:36:14 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
795
796         * mach/Machrules (%.ustamp rule): Don't depend on %.defs.
797         (%.udeps): New rule parallel to that one, generating included
798         makefiles with -M output from `#include <%.defs>'.
799
800         * Makerules (sed-remove-objpfx): Remove space before \ at eol.
801
802         * Makefile (distribute): Add FAQ.
803         * FAQ: New file contributed by drepper.
804
805         * time/Makefile (headers): Add timebits.h.
806         * sysdeps/unix/sysv/linux/timebits.h: New file.
807         * sysdeps/stub/timebits.h: New file.
808         * time/time.h (CLK_TCK): Define to CLOCKS_PER_SEC.
809         (CLOCKS_PER_SEC): Remove this macro.  Instead #include <timebits.h>.
810
811 Fri May 10 16:22:44 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
812
813         * string/argz-create.c (__argz_create): Restore const keyword to
814         ARGV parm.
815         * string/argz.h (__argz_create, argz_create): Restore const
816         keyword.
817         * string/envz.c (envz_get): Don't declare ENTRY const.
818
819 Fri May 10 11:48:03 1996  Miles Bader  <miles@gnu.ai.mit.edu>
820
821         * string/argz.h (argz_create): Fix param type.
822         * string/argz-create.c (__argz_create): Remove const from param type.
823         * string/envz.c (envz_get): Remove const from return type.
824
825 Fri May 10 09:41:54 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
826
827         * string/argz.h (__argz_create, argz_create): Omit const keyword
828         from declaration of ARGV.
829         * string/envz.h (envz_get): Omit const from declaration of return
830         type.
831
832 Thu May  9 09:17:46 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
833
834         * aclocal.m4 (AC_FD_MSG, AC_FD_CC): Fix these for autoconf weirdness.
835
836         Cleanups in sunrpc code from NIIBE Yutaka <gniibe@mri.co.jp>.
837         * sunrpc/clnt_tcp.c (clnttcp_create): Don't close *SOCKP if it's -1.
838         * sunrpc/clnt_simp.c (callrpc): Don't close CRP->socket if it's
839         RPC_ANYSOCK.
840         * sunrpc/pmap_clnt.c (pmap_set): Don't close SOCKET, since
841         CLNT_DESTROY already has.
842         (pmap_unset): Likewise.
843         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
844         * sunrpc/pm_getport.c (pmap_getport): Likewise.
845         * sunrpc/pmap_rmt.c (pmap_rmtcall): Likewise.
846         * sunrpc/portmap.c (callit): Likewise.
847
848         * Makerules (versioned): Strip whitespace.
849
850         * Rules (static-only-routines rule): Remove spurious space in dep.
851
852         * misc/getusershell.c: Undo changes of 7 May 96 (rev 1.6).
853         Cast string constants to char *.
854
855         * posix/glob/SMakefile, posix/glob/SCOPTIONS, posix/glob/Makefile.ami:
856         New files, AmigaDOS support from Aaron Digulla.
857         * posix/Makefile (glob.tar): Add AmigaDOS support files.
858
859         * sysdeps/unix/sysv/linux/net/if.h: New file.
860         * sysdeps/unix/sysv/linux/Dist: Add it.
861         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=socket] (headers): Add
862         net/if.h.
863
864         * Makeconfig (link-libc): Add libc.a after libc.so in link.
865
866         * Rules (static-only-routines rule): Use empty.o instead of dummy.o.
867         (empty.o): New target.
868         (generated): Add empty.c, empty.o.
869
870         * resolv: Code updated from BIND-4.9.3P2C3.
871
872         * Rules (static-only-routines rule): Use dummy.o, not dummy.so.
873
874 Wed May  8 20:04:29 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
875
876         * extract-dynsym: New file.
877         * Makefile (distribute): Add it.
878         * Rules (subdir_install): Depend on $(common-objpfx)sor-$(subdir).
879         [! libc.so-version]: Clear static-only-routines.
880         ($(common-objpfx)sor-$(subdir)): New target.
881         [static-only-routines]: New static pattern rule for these .so's.
882         * Makerules [libc.so-version] ($(slibdir)/libc.so): Target removed.
883         [libc.so-version] ($(libdir)/libc.so, $(common-objpfx)libc-syms.so):
884         New targets replace it.
885         (install) [libc.so-version]: Depend on $(libdir)/libc.so instead of
886         $(slibdir)/libc.so.
887         * io/Makefile (static-only-routines): New variable.
888         * configure.in: Check for tools objdump and objcopy, and for awk.
889         * config.make.in (OBJDUMP, OBJCOPY, AWK): New variables.
890
891 Thu May  9 01:24:00 1996  Ulrich Drepper  <drepper@cygnus.com>
892
893         * locale/programs/config.h: Remove definition of wint_t.
894
895         * locale/programs/ld-collate.c: Include <wchar.h> instead of
896         <wcstr.h>.
897
898         * manual/time.texi: Add some more description for %U and %W
899         format of strftime.  Describe new format %V of strftime.
900
901         * resolv/gethnamaddr.c: Prevent warning by preventing variable
902         definition.
903         * stdio-common/_itoa.c: Ditto.
904
905 Tue May  7 23:43:07 1996  Ulrich Drepper  <drepper@cygnus.com>
906
907         * libio/clearerr.c, libio/feof.c, libio/ferror.c, libio/fgetc.c,
908         libio/fileno.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
909         libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
910         libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
911         libio/iofputs.c, libio/iofread.c, libio/iofsetpos.c,
912         libio/ioftell.c, libio/iofwrite.c, libio/iogetdelim.c,
913         libio/iogets.c, libio/ioputs.c, libio/iosetbuffer.c,
914         libio/iosetvbuf.c, libio/ioungetc.c, libio/iovsprintf.c,
915         libio/libio.h, libio/putc.c, libio/putchar.c, libio/rewind.c,
916         libio/stdio.h, stdio-common/printf_fp.c, stdio-common/vfprintf.c,
917         stdio-common/vfscanf.c: Prepare for reentrent libio.
918
919         * libio/clearerr_u.c, libio/feof_u.c, libio/ferror_u.c,
920         libio/fputc_u.c, libio/getc_u.c, libio/getchar_u.c,
921         libio/iofflush_u.c, libio/putc_u.c, libio/putchar_u.c: New files.
922         Used in reentrent libio.
923
924         * misc/getusershell.c: Prevent warnings.
925
926 Wed May  8 12:08:35 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
927
928         * Makerules (install-lib.so rules): Undouble $s in target and dep
929         parts of o-iterator-doit defns.
930         (unversioned libraries install rule): Fix pattern.
931
932         * mach/Makefile (mach-src-headers): Use $(base-machine) instead of
933         $(config-machine).
934         ($(includedir)/machine): Likewise.
935
936         * config.make.in (base-machine): New variable.
937         * configure.in (machine): Move case stmt to set $machine out of sysdep
938         dirs AC_CACHE_CHECK.
939         (base_machine): New variable, set in that switch and AC_SUBST'd.
940
941         * Makerules (stub-$(subdir)): Use file name in directory as output,
942         since cmd is cd'd.
943
944         * configure.in (MSGFMT): Use : if none found.
945
946         * po/Makefile: Include ../Rules instead of ../Makerules.
947
948 Tue May  7 23:18:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
949
950         * po/Makefile: New file.
951         * Makefile (subdirs): Add po.
952
953         * configure.in: Check for msgfmt.
954         * config.make.in (MSGFMT): New variable.
955
956 Sun May  5 23:49:10 1996  Ulrich Drepper  <drepper@cygnus.com>
957
958         * misc/Makefile (routines): Add swapoff.
959
960         * sysdeps/unix/sysv/linux/Dist: Add sys/quota.h.
961
962         * sysdeps/unix/sysv/linux/sys/quota.h: New file.  Wrapper around
963         kernel header file.
964
965 Tue May  7 19:00:01 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
966
967         * string/argz-extract.c: Remove const from decl.
968         * string/argz.h: Here too.
969
970         * Makeconfig (version.mk): Fix regexp in sed cmd.
971         Depend on $(..)Makeconfig.
972
973         * GMP code updated from gmp-2.0 release.
974         * stdlib/Makefile (mpn-routines): Removed add_1, added inlines.
975         * sysdeps/generic/add_1.c: File removed.
976         * stdlib/strtod.c: mp_limb is now mp_limb_t.
977         * stdlib/fpioconst.c, stdlib/fpioconst.h: Likewise.
978         * stdio-common/_itoa.c: Likewise.
979         * stdio-common/printf_fp.c: Likewise.
980         Don't include ansidecl.h.
981
982         * sysdeps/mach/hurd/getcwd.c: Use io_identity instead of io_stat.
983
984         * shlib-versions: New file.
985         * Makerules (soversions.mk): New target, include file generated from
986         shlib-versions.  Moved shared library rules before installation rules.
987         Rewrote shared library installation rules for versioned libraries.
988         * math/Makefile (libm.so-version): Variable removed.
989
990         * sysdeps/mach/hurd/i386/exc2signal.c: Use struct hurd_signal_detail.
991
992         * hurd/report-wait.c (_S_msg_describe_ports): New function.
993
994         * configure.in: Add AC_PROG_LN_S check.
995         * config.make.in (LN_S): New variable.
996
997 Sun May  5 03:10:44 1996  Ulrich Drepper  <drepper@cygnus.com>
998
999         * misc/efgcvt_r.c (ecvt_r): Work aroung gcc bug.  gcc does
1000         not know about weak aliases now and optimizes necessary `if'
1001         statement away.
1002
1003         * posix/unistd.h: Add swapoff prototype.
1004
1005         * sysdeps/generic/confname.h: Add even more POSIX.4 symbols.
1006
1007         * sysdeps/posix/fpathconf.c (__fpathconf): Get information
1008         for _PC_PATH_MAX from fstatfs function if available.
1009
1010         * sysdeps/posix/sysconf.c: Add code to handle _SC_AIO_LISTIO_MAX,
1011         _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX,
1012         _SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_RTSIG_MAX,
1013         _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, and
1014         _SC_TIMER_MAX.
1015         * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
1016
1017         * sysdeps/stub/swapoff.c: New file.  Stub version for swapoff
1018         function.
1019
1020         * sysdeps/unix/syscalls.list:  Add swapoff.
1021
1022         * sysdeps/unix/sysv/linux/Dist: Add sys/acct.h.
1023
1024         * sysdeps/unix/sysv/linux/Makefile [$(subdir) == misc]
1025         (sysdep_routines): Add mount, umount, llseek, setfsgid, setfsuid,
1026         sysinfo, and uselib.
1027         (headers): Add sys/sysinfo.h.
1028
1029         * sysdeps/unix/sysv/linux/gethostid.c: Prevent warning.
1030
1031         * sysdeps/unix/sysv/linux/i386/Makefile [$(subdir) == misc]
1032         (sysdep_routines): Add ioperm, iopl, and vm86.
1033         (headers): Add sys/perm.h and sys/vm86.h.
1034
1035         * sysdeps/unix/sysv/linux/i386/sys/perm.h: New file.  Contains
1036         prototypes for iopl and ioperm.
1037
1038         * sysdeps/unix/sysv/linux/i386/sys/vm86.h:  New file.  Contains
1039         prototype for vm86.
1040
1041         * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.  Add
1042         vm86 system call.
1043
1044         * sysdeps/unix/sysv/linux/sys/acct.h: New file.  Contains
1045         prototypes for acct function.
1046
1047         * sysdeps/unix/sysv/linux/sys/socket.h: Provide real header
1048         file with prototypes.
1049
1050         * sysdeps/unix/sysv/linux/sys/sysinfo.h: New file.  Contains
1051         prototype for sysinfo function.
1052
1053         * sysdeps/unix/sysv/linux/syscalls.list: Add flock, ioperm, iopl,
1054         llseek, setfsgid, setfsuid, sysinfo, and uselib.
1055
1056         * sysdeps/unix/sysv/linux/sysconf.c: Instead of duplicating
1057         posix/sysconf.c now only handle cases different to that
1058         implementation.
1059
1060 Tue May  7 15:08:19 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1061
1062         * stdio/linewrap.c (__line_wrap_output): Renamed from lwoutput
1063         (all references changed).  Now exported.
1064
1065         * stdio/linewrap.c (struct data): Type deleted (moved to linewrap.h).
1066         (wrap_stream, unwrap_stream, lwclose, lwfileno, lwoutput,
1067         line_wrap_stream, line_unwrap_stream): Use struct line_wrap_data
1068         instead of struct data.
1069         (lwoutput, line_wrap_stream, line_unwrap_stream): Rename various
1070         occurences of `wrap' and `wrapmargin' to `wmargin'.
1071         (line_wrapped, line_wrap_lmargin, line_wrap_set_lmargin,
1072         line_wrap_rmargin, line_wrap_set_rmargin, line_wrap_wmargin,
1073         line_wrap_set_wmargin, line_wrap_point): New functions.
1074         * stdio/linewrap.h: New file.
1075         * stdio/Makefile (headers): Add linewrap.h.
1076
1077 Tue May  7 14:19:12 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1078
1079         * sysdeps/unix/sysv/linux/i386/Makefile: File removed.
1080
1081         * stdio/stdio.h: Remove line_wrap_stream, line_unwap_stream decls.
1082
1083         * sysdeps/unix/sysv/linux/schedbits.h: New file.
1084
1085 Tue May  7 13:47:02 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1086
1087         * stdio/linewrap.c (struct data): Make margin fields not-pointers.
1088         (lwoutput): Adjust uses acordingly.
1089
1090 Tue May  7 10:51:52 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1091
1092         * sysdeps/mach/hurd/fdatasync.c: New file.
1093         * sysdeps/mach/hurd/fsync.c: Pass new flag to file_sync.
1094
1095         * sysdeps/mach/hurd/xmknod.c: Pass new flag to dir_link.
1096         * sysdeps/mach/hurd/symlink.c: Likewise.
1097         * sysdeps/mach/hurd/link.c: Likewise.
1098         * sysdeps/mach/hurd/bind.c: Likewise.
1099         * hurd/hurdsig.c (write_corefile): Likewise.
1100
1101         * hurd/hurdsig.c (write_corefile): Pass cttyid port to crash server.
1102
1103         * sysdeps/mach/hurd/fpathconf.c: RPC takes int pointer, not long int.
1104
1105         * sysdeps/mach/hurd/_exit.c (_hurd_exit): Pass sigcode arg to
1106         proc_mark_exit.
1107         * sysdeps/mach/hurd/dl-sysdep.c (_exit): Likewise.
1108
1109         * sysdeps/mach/hurd/wait4.c: Pass sigcode arg to proc_wait.
1110
1111         * sysdeps/mach/hurd/rename.c: Pass new flag to dir_rename.
1112
1113         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise): Use struct
1114         hurd_signal_detail.
1115         * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
1116         * hurd/hurd-raise.c (_hurd_raise_signal): Likewise.
1117         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
1118         Likewise.
1119         * sysdeps/mach/hurd/setitimer.c (restart_itimer): Likewise.
1120
1121         * hurd/hurd/signal.h: Fix _hurd_exception2signal prototype.
1122
1123         * hurd/hurdsig.c (write_corefile): Take const struct
1124         hurd_signal_detail * arg.  Pass all details to crash_dump_task.
1125         (_hurd_internal_post_signal): Pass DETAIL to write_corefile.
1126         (_hurd_internal_post_signal: suspend): Pass code and error to
1127         proc_mark_stop.
1128
1129         * hurd/hurdprio.c (_hurd_priority_which_map): Pass flags arg to
1130         proc_getprocinfo by reference.
1131
1132         * wcsmbs/wcwidth.c, wcsmbs/wcswidth.c: Fixed typos.
1133
1134         * sysdeps/unix/sysv/linux/sys/mman.h: Fixed typo.
1135
1136         * sysdeps/stub/sched_getp.c: Add missing #include <sys/types.h>.
1137         * sysdeps/stub/sched_sets.c: Likewise.
1138         * sysdeps/stub/sched_setp.c: Likewise.
1139         * sysdeps/stub/sched_rr_gi.c: Likewise.
1140         * sysdeps/stub/sched_gets.c: Likewise.
1141
1142         * hurd/hurdsig.c: Use struct hurd_signal_detail.
1143         * hurd/hurd/fd.h (_hurd_fd_error): Likewise.
1144         * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Likewise.
1145
1146 Mon May  6 09:51:05 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1147
1148         * stdio/linewrap.c: New file.
1149         * stdio/Makefile (routines): Add linewrap.
1150         * stdio/stdio.h [__USE_GNU]: Declare line_wrap_stream,
1151         line_unwrap_stream.
1152
1153 Mon May  6 14:53:26 1996  Ulrich Drepper  <drepper@cygnus.com>
1154
1155         * time/strftime.c (week): Add third parameter telling how
1156         many days must be in new year so that it is called week 1.
1157         (Following ISO 8601).
1158         Correct computation for %U and %V formats when day was first
1159         day of the week.
1160         (strftime): Implement %V format according to Spec1170.
1161
1162 Mon May  6 17:01:09 1996  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
1163
1164         * hurd/hurd/signal.h (_hurd_intr_rpc_mach_msg): New declaration.
1165
1166 Sat May  4 05:44:25 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1167
1168         * hurd/hurd/sigpreempt.h (struct hurd_signal_preempter): Change
1169         prototype of `preempter' elt to use struct hurd_signal_detail.
1170
1171         * hurd/hurd/signal.h (struct hurd_signal_detail): New type.
1172         (struct hurd_sigstate): Make `pending_data' member an array of that.
1173         Use the new type in several decls.
1174
1175         * locale/setlocale.c (_nl_C_name): Variable removed.
1176         * locale/C_name.c: New file.
1177         (_nl_C_name): Put it here instead.
1178         * locale/Makefile (aux): Add C_name.
1179
1180         * sysdeps/mach/hurd/dl-sysdep.c (open): Don't pass io port in
1181         auth_user_authenticate rpc.
1182         (open): Avoid using strtol in digit conversion for "fd/N" magic.
1183         (_dl_sysdep_start): Likewise for memobj name in magic switches.
1184
1185         * elf/Makefile (reloc-link): New variable.
1186         (dl-allobjs.so): New target, link together $(rtld-routines).
1187         (librtld.so): Depend on that instead of the rtld components.
1188         (generated): Add dl-allobjs.so.
1189
1190         * hurd/hurd-raise.c (_hurd_raise_signal): Pass sigcode in msg_sig_post
1191         rpc.
1192
1193         * hurd/hurdmsg.c (_S_msg_set_environment): Use argz.h functions
1194         instead of _hurd_split_args.
1195         (_S_msg_*_exec_flags): Functions removed.
1196         (_S_msg_startup_dosync): Stub removed.
1197
1198 Sat May  4 02:11:55 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1199
1200         * sysdeps/mach/hurd/ptrace.c: Set _hurdsig_traced instead of
1201         EXEC_TRACED bit in _hurd_exec_flags.
1202         Pass sigcode arg in msg_sig_post_untraced rpc.
1203
1204         * sysdeps/mach/hurd/access.c: Don't pass io port in
1205         auth_user_authenticate rpc.
1206
1207         * posix/sched.h: Fix typos.
1208
1209         * sysdeps/mach/hurd/fork.c: Use new critical section lock.
1210         Clear _hurdsig_traced instead of EXEC_TRACED.
1211
1212         * sysdeps/stub/nanosleep.c (nanosleep): Fix typo.
1213
1214         * wcsmbs/wcstol.c: Find strtol.c in ../stdlib.
1215         * wcsmbs/wcstof.c: Find strtod.c in ../stdlib.
1216         * wcsmbs/wcstod.c: Likewise.
1217         * wcsmbs/wcstold.c: Likewise.
1218
1219         * wcsmbs/wcwidth.h: Find cname-lookup.h in ../wctype.
1220
1221         * string/envz.c (envz_entry): Use const.
1222         (envz_get, envz_remove): Likewise.
1223         (envz_entry): Return char *, not const char *.
1224
1225         * string/envz.h: Fix decl.
1226
1227         * string/argz-create.c: Use const in prototype.
1228         * string/argz-next.c: Likewise.
1229
1230 Fri May  3 13:32:08 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1231
1232         * sysdeps/mach/hurd/sigprocmask.c: Pass sigcode arg to msg_sig_post.
1233         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
1234         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
1235         * sysdeps/mach/hurd/kill.c: Likewise.
1236
1237         * hurd/hurdexec.c (_hurd_exec): Use new critical section lock.
1238         * hurd/catch-exc.c (_S_catch_exception_raise): Likewise.
1239         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Likewise.
1240         * hurd/thread-cancel.c (hurd_thread_cancel, hurd_check_cancel):
1241         Likewise.
1242         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
1243         * sysdeps/mach/hurd/sigaction.c: Likewise.
1244
1245         * sysdeps/mach/hurd/errnos.awk: Don't use ARGV in comment; it can
1246         change meaninglessly.
1247
1248         * hurd/hurd/signal.h (struct hurd_sigstate): Replace critical section
1249         flag with a spin lock.
1250         (_hurd_critical_section_lock): Use spin_try_lock on that to see if we
1251         get it.  No need to take SS->lock at all.
1252         (_hurd_critical_section_unlock): Unlock SS->critical_section_lock
1253         instead of clearing the old flag member.
1254         * hurd/hurdsig.c (_hurd_internal_post_signal): Use spin_lock_locked to
1255         test the critical section state.
1256
1257         * hurd/hurdinit.c (_hurd_init): Set _hurdsig_traced from the intarray.
1258
1259         * hurd/hurdkill.c (_hurd_sig_post): Pass 0 sigcode in msg_sig_post.
1260
1261         * hurd/hurdsig.c (_hurd_internal_post_signal): Test _hurdsig_traced
1262         instead of testing (_hurd_exec_flags & EXEC_TRACED).
1263         (_S_msg_sig_post): Take sigcode arg and pass it through.
1264         (_S_msg_sig_post_untraced): Likewise.
1265         (reauth_proc): Don't pass proc port in auth_user_authenticate.
1266
1267         * hurd/setauth.c (_hurd_setauth): Don't pass object ports in
1268         auth_user_authenticate RPCs, just the one-off rendezvous port.
1269         * hurd/dtable.c (reauth_dtable): Likewise.
1270         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
1271
1272         * hurd/hurdexec.c (_hurd_exec): Pass 0 flags to file_exec.
1273         Pass sigcode arg to msg_sig_post.
1274
1275         * string/argz.h (argz_create): Use const in prototype.
1276
1277         * hurd/hurdinit.c (_hurd_proc_init): Test _hurdsig_traced instead of
1278         testing (_hurd_exec_flags & EXEC_TRACED).
1279         Pass sigcode arg to msg_sig_post.
1280
1281         * hurd/hurd.h: Declare _hurdsig_traced.
1282
1283         * string/argz.h (__argz_next): Cast ENTRY before returning it.
1284
1285         * hurd/hurd/signal.h (_hurd_critical_section_unlock): Pass sigcode arg
1286         to msg_sig_post.
1287
1288         * hurd/path-lookup.c: New file.
1289         * hurd/Makefile (routines): Add path-lookup.
1290         * hurd/hurd/lookup.h: Declare file_name_path_scan,
1291         hurd_file_name_path_lookup.
1292         * hurd/hurd.h: Declare file_name_path_lookup.
1293
1294         * sysdeps/mach/hurd/select.c: The io_select rpc no longer has a TAG_ID
1295         argument.  Instead, use a separate reply port for each RPC and put them
1296         all in a port set to wait for slow replies.
1297
1298         * intl/Makefile (CPPFLAGS): Change $(nlsdir) to $(i18ndir) in
1299         LOCALE_ALIAS_PATH.
1300
1301 Fri May  3 03:14:02 1996  Ulrich Drepper  <drepper@cygnus.com>
1302
1303         * intl/Makefile (routines): Add l10nflist and explodename.
1304         (distribute): Add loadinfo.h and locale.alias.
1305         (install-others): New variable to install locale.alias.
1306
1307         * intl/dcgettext.c, intl/finddomain.c, intl/gettextP.h,
1308         intl/loadmsgcat.c: Adapt for upcoming gettext-0.10.13.  Some code
1309         is now shared with the locale implementation.
1310
1311         * intl/explodename.c, intl/l10nflist.c, intl/loadinfo.h: New file.
1312         Extracted from finddomain.c.  This is also used in the locale
1313         implementation.
1314
1315         * intl/locale.alias: New file.  Locale alias database compatible
1316         with X Window System's locale alias file.  Can now be used in
1317         locale and gettext code.
1318
1319         * libio/stdio.h: Add prototypes for asprint and vasprintf.
1320
1321         * locale/C-collate.c, locale/C-ctype.c, locale/C-messages.c,
1322         locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c: Add new
1323         field in structure with name of locale ("C" in this case).
1324
1325         * locale/Makefile (routines): Add findlocale.
1326
1327         * locale/findlocale.c: New file.  Instead of trying to load the
1328         directly described file we now try to be much smarter when this
1329         fails.  Use the same code as gettext does.
1330
1331         * locale/loadlocale.c, locale/setlocale.c: Rewrite to know about
1332         new loading scheme.
1333
1334         * locale/localeinfo.h: Adapt prototypes and declarations for new
1335         setlocale implementation.  Remove definition of u32_t type.  We
1336         now use u_int32_t from <sys/types.h>.
1337
1338         * locale/programs/charset.h (ILLEGAL_CHAR_VALUE): Provide type
1339         with constant.
1340
1341         * locale/programs/config.h, locale/lc-collate.c,
1342         locale/localeinfo.h, locale/programs/ld-collate.c,
1343         locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
1344         locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
1345         locale/programs/ld-time.c, locale/weight.h, string/strcoll.c:
1346         Change to use u_int32_t and u_int16_t.
1347
1348         * locale/programs/localedef.c (construct_output_path): Change name
1349         of output locale to contain normalized form of the character set
1350         portion.
1351
1352         * string/Makefile (routines): Add agrz-ctsep and argz-next.
1353         (tests): Add tst-strlen.
1354
1355         * string/argz-ctsep.c: New file.  Implement reverse operation
1356         from argz-stringify.
1357
1358         * string/argz-next.c: Non-inline version of function from argz.h.
1359
1360         * string/argz.h, string/envz.h: Make usable as global header file.
1361
1362         * string/envz.c: Fix declarations to use size_t where prototypes
1363         say so.
1364
1365         * string/tst-strlen.c: New file.  Another test for critical
1366         situation in strlen implementations.
1367
1368         * sysdeps/i386/i586/strlen.S: Fix bug with highest byte in word
1369         being zero.
1370
1371         * wctype/test_wctype.c: Fix controlling comparison after change to
1372         32 bit character class array.
1373
1374 Fri May  3 12:53:12 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1375
1376         * sysdeps/unix/sysv/linux/sys/socket.h: Remove spurious doubled line.
1377
1378 Thu May  2 22:50:52 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1379
1380         * sysdeps/unix/sysv/linux/getpriority.c: New file.
1381         * sysdeps/unix/sysv/linux/syscalls.list: Add s_getpriority.
1382
1383 Thu May  2 22:41:31 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1384
1385         * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_DEFAULT):
1386         Disable all exceptions.
1387
1388 Thu May  2 22:33:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1389
1390         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
1391         sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
1392         sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
1393         sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
1394         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
1395         sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
1396         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
1397         sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
1398         sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c: Don't
1399         define __NO_MATH_INLINES, which is already defined on command
1400         line.
1401
1402 Thu May  2 22:18:28 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1403
1404         * sysdeps/libm-ieee754/e_j0f.c (__ieee754_j0f, __ieee754_y0f):
1405         Replace 0x80000000 by 0x48000000.
1406         * sysdeps/libm-ieee754/e_j1f.c (__ieee754_j1f): Likewise.
1407
1408 Thu May  2 21:30:33 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1409
1410         * sunrpc/svc_simple.c: Make global variable pl local to
1411         registerrpc.
1412
1413 Thu May  2 00:24:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1414
1415         * time/Makefile (tz-cflags): New variable.
1416         (CFLAGS-tzfile.c): New variable.
1417         (CFLAGS-zic.c): Add $(tz-cflags).
1418         (tz-cc): Remove variable.
1419         ($(objpfx)tzfile.o, $(objpfx)zic.o): Remove targets.
1420
1421 Wed May  1 09:10:04 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1422
1423         * sysdeps/mach/hurd/getcwd.c: Jump out of both loops when we find a
1424         name, instead of checking for reaching end of buffer, which happens
1425         when the match is the last entry in the buffer.
1426
1427         * time/strftime.c: Use canonical autoconf nugget for time.h+sys/time.h
1428         include.
1429
1430 Mon Apr 29 02:48:26 1996  Ulrich Drepper  <drepper@cygnus.com>
1431
1432         * ctype/ctype-info.c: (__ctype_width): New variable.
1433         (__ctype_names): Initialize correctly without offset.
1434
1435         * locale/C-collate.c, locale/C-ctype.c,
1436         locale/C-messages.c, locale/C-monetary.c,
1437         locale/C-numeric.c, locale/C-time.c: Change copyright.
1438
1439         * locale/C-ctype.c (_nl_C_LC_CTYPE_class32): Correct
1440         endianess for initialization value.
1441
1442         * locale/lc-ctype.c (current): Add parameter for offset.
1443         (__ctype32_b, __ctype_width): Add initialization for these
1444         variables.
1445
1446         * locale/programs/charmap.c: Finish support for WIDTH information.
1447         (new_width): New function.
1448
1449         * locale/programs/charset.h (width_rule): new data structure.
1450         (charset_t): Add elements for width information.
1451
1452         * locale/programs/ld-ctype.c (locale_ctype_t): Add element
1453         for width information.
1454         (allocate_arrays): Add new argument for charset.
1455         (ctype_finish): Make sure all characters named in charset
1456         width table are known to name table.
1457         (ctype_output): Correct handling of class and map name
1458         information and write out width information.
1459         (find_idx): Prepare for being called with NULL pointer as
1460         TABLE argument.  This means only allocate name entry.
1461         (allocate_arrays): Correct handling of array element -1.
1462         Because EOF == -1 the value of element 127 must *not* be
1463         mirrored here.
1464         Fill width information from charset tables.
1465
1466         * locale/programs/localedef.c (main): Correct loop over all
1467         categories after change of order from Thu Mar 28 14:22:51 1996.
1468         Add new charset argument to call of `write_all_categories'.
1469
1470         * locale/programs/locales.h (ctype_finish, ctype_output): New
1471         charset argument.
1472
1473         * locale/programs/locfile.c (write_all_categories): Call
1474         `ctype_output' with additional argument charset.
1475
1476         * posix/getconf.c (vars): Add _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
1477         and _POSIX_PRIO_IO definitions.
1478
1479         * posix/posix2_lim.h: Add definition of _POSIX2_CHARCLASS_NAME_MAX
1480         and CHARCLASS_NAME_MAX.
1481
1482         * posix/unistd.h: Document _POSIX_SYNC_IO, _POSIX_ASYNC_IO,
1483         and _POSIX_PRIO_IO.
1484
1485         * stdlib/grouping.h: Prepare for use in wide string functions.
1486
1487         * stdlib/stdlib.h: Correct prototypes for __strto*_internal
1488         functions.
1489
1490         * stdlib/strtod.c: Extend for use as `wcsto{f,d,ld}'.
1491
1492         * stdlib/strtol.c: Extend for use as `wcsto{l,ul,q,uq}'.
1493
1494         * string/strcoll.c: Extend for use as `wcscoll'.
1495
1496         * string/strxfrm.c: Extend for use as `wcsxfrm'.
1497
1498         * sysdeps/generic/confname.h: Add definition of _PC_SYNC_IO,
1499         _PC_ASYNC_IO, _PC_PRIO_IO and _SC_CHARCLASS_NAME_MAX.
1500
1501         * sysdeps/generic/stpncpy.c: Correct return value.
1502
1503         * sysdeps/posix/fpathconf.c: Add handling of _PC_SYNC_IO,
1504         _PC_ASYNC_IO, and _PC_PRIO_IO.
1505
1506         * sysdeps/posix/sysconf.c: Add handling of _SC_REALTIME_SIGNALS,
1507         _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO,
1508         _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC,
1509         _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
1510         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_SEMAPHORES,
1511         _SC_SHARED_MEMORY_OBJECTS, and _SC_CHARCLASS_NAME_MAX.
1512         * sysdeps/stub/sysconf.c: Ditto.
1513         * sysdeps/unix/sysv/sysv4/sysconf.c: Ditto.
1514
1515         * sysdeps/unix/sysv/linux/Dist: Add sys/sysctl.h.
1516
1517         * sysdeps/unix/sysv/linux/Makefile [subdir == misc]
1518         (sysdep_routines): Add s_sysctl and sysctl.
1519
1520         * sysdeps/unix/sysv/linux/sys/mman.h: Add declaration of mremap.
1521
1522         * sysdeps/unix/sysv/linux/sys/socket.h: New file.  Wrapper
1523         around kernel header.
1524
1525         * sysdeps/unix/sysv/linux/sys/sysctl.h: New file.  Define
1526         interface to `sysctl' function.
1527
1528         * sysdeps/unix/sysv/linux/syscalls.list: Add mremap and _sysctl.
1529
1530         * sysdeps/unix/sysv/linux/sysconf.c: Add handling of
1531         _SC_CHARCLASS_NAME_MAX.
1532
1533         * sysdeps/unix/sysv/linux/sysctl.c: new file.  Implement caller
1534         of _sysctl system call.
1535
1536         * sysvipc/Makefile (routines): Add ftok.
1537
1538         * sysvipc/ftok.c: use variable `proj_id' not `id'.  Patch by
1539         David Mosberger-Tang.
1540
1541         * wcsmbs/Makefile (routines): Add wcpcpy, wcpncpy, wcstol,
1542         wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
1543         wcsxfrm, wcwidth, and wcswidth.
1544
1545         * wcsmbs/wchar.h: Add declarations for wcpcpy, wcpncpy, wcstol,
1546         wcstoul, wcstoq, wcstouq, wcstod, wcstold, wcstof, wcscoll,
1547         wcsxfrm, wcwidth, and wcswidth.
1548         Declare internal interfaces for wcsto* functions.
1549         [OPTIMIZE]: Define inline functions for wcsto* functions to
1550         call internal interface functions.
1551
1552         * wcsmbs/wcpcpy.c, wcsmbs/wcpncpy.c: New files.  Implement non-
1553         standard function equivalent to stpcpy/stpncpy.
1554
1555         * wcsmbs/wcscoll.c: Implement `wcscoll' function by using
1556         `strcoll' implementation.
1557
1558         * wcsmbs/wcscpy.c, wcsmbs/wcsncpy.c: Use wint_t instead of
1559         wchar_t.
1560
1561         * wcsmbs/wcstod.c: Implement `wcstod' function by using `strtod'
1562         implementation.
1563         * wcsmbs/wcstof.c: Same for `wcstof'.
1564         * wcsmbs/wcstold.c: Same for `strtold'.
1565
1566         * wcsmbs/wcstol.c: Implement `wcstol' function by using `strtol'
1567         implementation.
1568         * wcsmbs/wcstoq.c: Same for `wcstoq'.
1569         * wcsmbs/wcstoul.c: Same for `wcstoul'.
1570         * wcsmbs/wcstouq.c: Same for `wcstouq'.
1571
1572         * wcsmbs/wcswidth.c: Implement `wcswidth' function from X/Open
1573         CAE.
1574         * wcsmbs/wcwidth.c: Ditto for `wcwidth'.
1575         * wcsmbs/wcwidth.h: Common function for definitions of above two
1576         functions.
1577
1578         * wcsmbs/wcsxfrm.c: Implement `wcsxfrm function by using
1579         `strxfrm implementation.
1580
1581         * wctype/wctype.c: Remove case for `wctype_t' being 16 bit type.
1582
1583         * wctype/wctype.h (wint_t): Protect against multiple definition.
1584         (wctype_t): Always define as `unsigned long int'.
1585
1586         * wctype.h: New file.  Wrapper around wctype/wctype.h.
1587
1588 Tue Apr 30 17:30:46 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1589
1590         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Add timeout argument to
1591         interrupt_operation call.
1592         (_hurdsig_interrupt_timeout): New variable.
1593
1594         * hurd/report-wait.c (describe_number): Correctly allocate space
1595         in DESCRIPTION for the digits in I.
1596
1597 Mon Apr 29 00:11:59 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1598
1599         * hurd/hurdstartup.c (_hurd_split_args): Function removed.
1600         (_hurd_startup): Use argz functions.
1601
1602         * hurd/hurdexec.c: Use argz functions.
1603
1604         * errno.h [!__error_t_defined] (error_t): New type.
1605         * sysdeps/mach/hurd/errnos.awk: #define __error_t_defined after the
1606         typedef in errnos.h.
1607
1608         * string/envz.c, string/envz.h: New files.
1609         * string/argz.h, string/argz-append.c, string/argz-count.c,
1610         string/argz-create.c, string/argz-delete.c, string/argz-extract.c,
1611         string/argz-insert.c, string/argz-stringify.c: New files.
1612         * string/Makefile (routines): Add envz, argz-*.
1613         (headers): Add argz.h, envz.h.
1614
1615 Sun Apr 28 14:14:35 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1616
1617         * sysdeps/unix/sysv/linux/i386/Makefile: New file.
1618
1619 Wed Apr 24 17:35:30  Ulrich Drepper  <drepper@cygnus.com>
1620
1621         * inet/netinet/in.h, socket/sys/socket.h: Move to
1622         sysdeps/generic/netinet/in.h, sysdeps/generic/sys/socket.h.
1623         * netinet/in.h, sys/socket.h: Remove file.
1624
1625         * misc/Makefile (routines): Add fdatasync.
1626
1627         * posix/Makefile (headers): Add sched.h.
1628         (routines): Add nanosleep, sched_setp, sched_getp, sched_sets,
1629         sched_gets, sched_yield, sched_primax, sched_primin, sched_rr_gi.
1630
1631         * posix/getconf.c (vars): Add entries for _POSIX_REALTIME_SIGNALS,
1632         _POSIX_PRIORITY_SCHEDULING, _POSIX_TIMERS, _POSIX_ASYNCHRONOUS_IO,
1633         _POSIX_PRIORITIZED_IO, _POSIX_SYNCHRONIZED_IO, _POSIX_FSYNC,
1634         _POSIX_MAPPED_FILES, _POSIX_MEMLOCK, _POSIX_MEMLOCK_RANGE,
1635         _POSIX_MEMORY_PROTECTION, _POSIX_MESSAGE_PASSING,
1636         _POSIX_SEMAPHORES, _POSIX_SHARED_MEMORY_OBJECTS.
1637
1638         * posix/sched.h: New file.  Header for POSIX scheduling interface.
1639
1640         * posix/unistd.h: Describe options from POSIX.4.
1641         Add declaration of fdatasync.
1642
1643         * sysdeps/generic/confname.h: Add definition for
1644          _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS,
1645         _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO,
1646         _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE,
1647         _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING,
1648         _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS.
1649
1650         * sysdeps/generic/fdatasync.c: New file.  Default implementation
1651         simply uses fsync.
1652
1653         * sysdeps/generic/netinit/in.h: Moved to here from inet/netinet/in.h.
1654
1655         * sysdeps/generic/schedbits.h: New file.  System dependent
1656         defintion for POSIX.4 scheduling interface.
1657
1658         * sysdeps/generic/sys/socket.h: Moved to here from socket/sys/socket.h.
1659
1660         * sysdeps/stub/nanosleep.c, sysdeps/stub/sched_getp.c,
1661         sysdeps/stub/sched_gets.c, sysdeps/stub/sched_primax.c,
1662         sysdeps/stub/sched_primin.c, sysdeps/stub/sched_rr_gi.c,
1663         sysdeps/stub/sched_setp.c, sysdeps/stub/sched_sets.c,
1664         sysdeps/stub/sched_yield.c: New file:  Stub implementation
1665         for systems missing these POSIX.4 system calls.
1666
1667         * sysdeps/unix/sysv/linux/gnu/types.h,
1668         sysdeps/unix/sysv/linux/ioctls.h: Use kernel header for
1669         data type definitions.
1670
1671         * sysdeps/unix/sysv/linux/netinet/in.h: New file.  Linux
1672         specific version.
1673
1674         * sysdeps/unix/sysv/linux/posix_opt.h: New file.  Define POSIX
1675         options applicable for Linux.
1676
1677         * sysdeps/unix/sysv/linux/syscalls.list: Add definitions for
1678         fdatasync, nanosleep, sched_setparam, sched_getparam,
1679         sched_setscheduler, sched_getscheduler, sched_yield,
1680         sched_get_priority_max, sched_get_priority_min, and
1681         sched_rr_get_interval.
1682
1683         * sysdeps/unix/sysv/linux/sysconf.c: Add handling of POSIX.4
1684         options.
1685
1686         * sysdeps/unix/sysv/linux/termbits.h: Use kernel headers.
1687
1688         * time/sys/time.h: Remove definition of `struct timespec'.
1689
1690         * time/time.h (struct timespec): Move definition to here.
1691
1692 Fri Apr 26 01:55:07 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1693
1694         * malloc/mcheck.c (mabort): Use __libc_fatal only #ifdef _LIBC.
1695
1696 Thu Apr 25 15:49:57 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1697
1698         * sysdeps/mach/hurd/getcwd.c (__getcwd): When we find a match in
1699         the scan for a name, avoid doing another readdir (which overwrites
1700         NENTRIES, and was resulting in a bogus ENOENT).
1701
1702         * sysdeps/mach/hurd/fcntl.c (__fcntl): Add missing break after F_SETFL.
1703
1704 Wed Apr 24 00:22:42 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1705
1706         * stdio/internals.c (seek_to_target): Set errno if seek function
1707         returns the wrong offset.
1708
1709         * wcsmbs/wcsrtombs.c [! EILSEQ] (EILSEQ): Define to EINVAL.
1710         * wcsmbs/wcrtomb.c: Likewise.
1711
1712         * stdio-common/vfprintf.c: Include errno.h.
1713
1714 Tue Apr 23 21:09:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1715
1716         * hurd/hurdsig.c (signal_allowed): For SIGIO/SIGURG, add a new
1717         variable, LUCKY, to use instead of setting D to -1 (which fouls
1718         things up).
1719
1720 Tue Apr 23 15:56:56 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1721
1722         * config.h.in (HAVE_REGEX): New macro.
1723
1724         * sysdeps/unix/syscalls.list: Add statfs, fstatfs.
1725         * io/Makefile (headers): Add sys/statfs.h, statfsbuf.h.
1726         (routines): Add statfs, fstatfs.
1727         * sysdeps/mach/hurd/statfs.c: New file.
1728         * sysdeps/mach/hurd/fstatfs.c: New file.
1729         * sysdeps/stub/fstatfs.c: New file.
1730         * sysdeps/stub/statfs.c: New file.
1731         * io/sys/statfs.h: New file.
1732         * sysdeps/generic/statfsbuf.h: New file.
1733         * sysdeps/unix/sysv/linux/statfsbuf.h: New file.
1734
1735 Tue Apr 23 00:06:47 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1736
1737         * malloc/Makefile (gmalloc-routines): Add valloc back here.
1738         (dist-routines): Remove it here.
1739         * malloc/valloc.c [_MALLOC_INTERNAL && GMALLOC_INHIBIT_VALLOC]
1740         (ELIDE_VALLOC): Define it.
1741         [! ELIDE_VALLOC]: Make whole file conditional on this.
1742         * malloc/malloc.h (valloc): Make decl conditional on
1743         [!GMALLOC_INHIBIT_VALLOC] instead of [!emacs].
1744
1745 Mon Apr 22 00:02:19 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1746
1747         * MakeTAGS: Include version.mk.
1748         (po/SYS_libc.pot): Add missing / in sed s cmd.
1749
1750 Sat Apr 20 18:13:00 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1751
1752         * Makerules (no-whole-archive): Test $(have-no-whole-archive), not
1753         $(libc_cv_ld_no_whole_archive).
1754
1755 Sat Apr 20 17:07:17 1996  Ulrich Drepper  <drepper@cygnus.com>
1756
1757         * assert/assert.h, ctype/ctype.h, dirent/dirent.h, errno.h,
1758         grp/grp.h, io/fcntl.h, io/sys/stat.h, io/utime.h, locale/locale.h,
1759         math/math.h, misc/nlist.h, misc/sgtty.h, misc/sys/file.h,
1760         misc/sys/ioctl.h, misc/sys/uio.h, posix/sys/times.h,
1761         posix/sys/types.h, posix/sys/utsname.h, posix/sys/wait.h,
1762         posix/tar.h, posix/wordexp.h, pwd/pwd.h, resource/sys/vlimit.h,
1763         resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
1764         stdio-common/printf.h, stdlib/alloca.h, stdlib/stdlib.h,
1765         string/string.h, sysdeps/generic/sigaction.h,
1766         sysdeps/generic/sigset.h, sysdeps/generic/sys/ptrace.h,
1767         sysdeps/generic/sys/ptrace.h, sysdeps/unix/bsd/osf/sigaction.h,
1768         sysdeps/unix/sysv/linux/sys/ptrace.h,
1769         sysdeps/unix/sysv/minix/sigaction.h,
1770         sysdeps/unix/sysv/sco3.2.4/sigaction.h,
1771         sysdeps/unix/sysv/sysv4/sigaction.h,
1772         sysdeps/unix/sysv/sysv4/sigset.h, termios/termios.h,
1773         time/sys/time.h, time/time.h: Fix copyright comment.
1774
1775 Fri Apr 19 00:49:44 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1776
1777         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): If uids and gids are
1778         not given in stack aux vector, fetch them with syscalls.
1779
1780         * stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value
1781         for nonmatching nonerror (instead of !MATCH).
1782         (rpmatch): Use it, so we return -1 when NOEXPR doesn't match either.
1783
1784         * resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of
1785         unsigned long for variable NET2.
1786
1787         * time/etcetera, time/europe, time/solar89: Updated from ADO's 96e.
1788
1789 Tue Apr  9 14:37:31 1996  Ulrich Drepper  <drepper@cygnus.com>
1790
1791         * catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h,
1792         catgets/config.h, catgets/gencat.c, catgets/nl_types.h,
1793         catgets/open_catalog.c: New files.  Implementation of XPG4
1794         compliant catgets() function and needed tools.
1795         * Makefile (subdirs): Add catgets.
1796
1797 Thu Apr 18 23:36:11 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1798
1799         * math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES.
1800
1801 Wed Apr 10 20:48:43 1996  Ulrich Drepper  <drepper@cygnus.com>
1802
1803         * stdio-common/vfprintf.c: Correct some typos.
1804
1805         * sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c,
1806         sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of
1807         __signgam.
1808
1809 Thu Apr 18 21:07:27 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
1810
1811         * Makerules (no-whole-archive): New variable.
1812         (build-shlib): Use it.
1813         * elf/Makefile (libdl.so): Use it.
1814         * configure.in (libc_cv_ld_no_whole_archive): New check for
1815         --no-whole-archive.
1816         * config.make.in (have-no-whole-archive): New variable.
1817
1818         * stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc
1819         from 3 to 4.
1820
1821         * Make-dist: Include version.mk.
1822         (version, release): Variables removed.
1823         * Makeconfig (version.mk): New target.
1824
1825 Fri Apr 19 01:42:18 1996  Ulrich Drepper  <drepper@cygnus.com>
1826
1827         * locale/Makefile (headers): Add langinfo.h.
1828         (CPPFLAGS): Remove -Iliblib.
1829
1830 Mon Apr 15 16:49:04 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1831
1832         * malloc/memalign.c, malloc/malloc.h [__DJGPP__ == 1]: Elide memalign
1833         function and its declaration.
1834
1835 Wed Apr 10 14:13:45 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1836
1837         * hurd/sigunwind.c (_hurdsig_longjmp_from_handler): Store
1838         MACH_PORT_DEAD in the thread reply-port variable before destroying
1839         the signal handler's reply port, to avoid infinite recursion.
1840
1841 Mon Apr  8 18:27:17 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1842
1843         * sysdeps/mach/gettimeofday.c (__gettimeofday): Don't fail if the
1844         user passes in TZ, just zero it (emacs passes in a dummy variable,
1845         and rms says the hurd should be the one to change).
1846
1847 Sun Apr  7 10:37:30 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1848
1849         * sysdeps/mach/hurd/fork.c: Don't leak send rights to the child's proc
1850         port in the parent.
1851
1852 Fri Apr  5 17:43:41 1996  Miles Bader  <miles@gnu.ai.mit.edu>
1853
1854         * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Store
1855         MACH_PORT_DEAD in the thread reply-port variable before destroying
1856         the signal handler's reply port to avoid infinite recursion.
1857         * sysdeps/mach/hurd/mig-reply.c (__mig_dealloc_reply_port): Only
1858         attempt to destroy PORT if it's a valid port name.
1859
1860 Wed Apr  3 17:10:44 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1861
1862         * extra-lib.mk: Put libs in $(common-objpfx) instead of $(objpfx).
1863         * Makerules ($(install-lib) rules): Find libs with $(common-objpfx)
1864         instead of $(objpfx).
1865
1866 Tue Apr  2 21:27:01 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1867
1868         * posix/glob.c (glob_pattern_p): Avoid scanning past eos if
1869         the pattern ends with a backslash and quoting is enabled.
1870         * posix/fnmatch.c (fnmatch): Likewise; return FNM_NOMATCH for such
1871         patterns.
1872
1873 Mon Apr  1 13:34:55 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1874
1875         * stdio-common/tst-printf.c (main): Add new test case.
1876
1877         * sysdeps/generic/setenv.c (unsetenv): Use old-style definition.
1878
1879 Mon Apr  1 11:39:10  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
1880
1881         * stdlib/strtod.c (STRTOD): Fix handling of American style FP
1882         numbers.
1883
1884         * stdio-common/vfprintf.c (vfprintf): Don't increment format
1885         string pointer twice after seeing `*'.
1886
1887 Sun Mar 31 17:31:54 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1888
1889         * MakeTAGS (po/SYS_libc.pot): Prepend header processed from
1890         po/header.pot.
1891
1892 Sun Mar 31 18:07:32 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
1893
1894         * locale/Makefile (others, install-bin): Compiling locale works
1895         again.
1896         (locale-modules): locale has no --dump option anymore.  Remove
1897         ctypedump.
1898
1899         * locale/programs/config.h: Don't declare euidaccess.
1900         Use #include_next to get libc's config.h.
1901
1902         * locale/programs/ctypedump.c: Not needed anymore.  Dump option
1903         of locale is removed.
1904
1905         * locale/programs/locale.c: Adapt for new locale implementation.
1906
1907         * stdio-common/_itoa.h (_itoa_word): Define as inline function.
1908         * stdio-common/_itoa.c (_itoa_lower_digits, _itoa_upper_digits):
1909         Don't declare static because used in _itoa_word inline function.
1910
1911         * stdio-common/printf-parse.h: Prepare for use in wide-char
1912         stdio implementation.
1913         (find_spec): Take additional argument to work with mbrlen instead
1914         of mblen.
1915         (parse_one_spec): Ditto.
1916
1917         * stdio-common/printf-prs.c: Prepare for use in wide-char
1918         stdio implementation.
1919
1920         * stdio-common/printf.h: Mark change for wide-char handling.
1921         Changing it now would result in incompatibilities.
1922
1923         * stdio-common/vfprintf.c: New and fast implementation.
1924
1925         * wcsmbs/Makefile (routines): Remove pre-ISO C multibyte functions
1926         mbsadvance, mbscat, mbschr, mbscmp, mbscpy, mbsdup, mbslen,
1927         mbsncat, mbsncmp, mbsncpy, mbsrchr, mbstomb.
1928         Change wcswcs to wcsstr.
1929         Add wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset, btowc, wctob,
1930         mbsinit, mbrlen, mbrtowc, wcrtomb, mbsrtowcs, wcsrtombs.
1931
1932         * wcsmbs/btowc.c, wcsmbs/mbrlen.c, wcsmbs/mbrtowc.c,
1933         wcsmbs/mbsinit.c, wcsmbs/mbsrtowcs.c, wcsmbs/wchar.h,
1934         wcsmbs/wcrtomb.c, wcsmbs/wcsrtombs.c, wcsmbs/wcsstr.c,
1935         wcsmbs/wctob.c, wcsmbs/wmemchr.c, wcsmbs/wmemcmp.c,
1936         wcsmbs/wmemcpy.c, wcsmbs/wmemmove.c, wcsmbs/wmemset.c: New
1937         function according to ISO C amendment 1.
1938         * wchar.h: Wrapper around "wcsmbs/wchar.h".
1939
1940         * wcsmbs/wcscat.c, wcsmbs/wcschr.c, wcsmbs/wcscmp.c,
1941         wcsmbs/wcscpy.c, wcsmbs/wcscspn.c, wcsmbs/wcsdup.c,
1942         wcsmbs/wcslen.c, wcsmbs/wcsncat.c, wcsmbs/wcsncmp.c,
1943         wcsmbs/wcsncpy.c, wcsmbs/wcspbrk.c, wcsmbs/wcsrchr.c,
1944         wcsmbs/wcsspn.c, wcsmbs/wcstok.c: Changed to conform with ISO C
1945         amendment 1.
1946
1947         * wcsmbs/mbsadvance.c, wcsmbs/mbscat.c, wcsmbs/mbschr.c,
1948         wcsmbs/mbscmp.c, wcsmbs/mbscpy.c, wcsmbs/mbsdup.c,
1949         wcsmbs/mbslen.c, wcsmbs/mbsncat.c, wcsmbs/mbsncmp.c,
1950         wcsmbs/mbsncpy.c, wcsmbs/mbsrchr.c, wcsmbs/mbstomb.c,
1951         wcsmbs/mbstr.h, wcsmbs/wcstr.h, wcsmbs/wcswcs.c: Removed.
1952         Implement functions from early drafts, not part of final standard.
1953
1954 Sun Mar 31 16:50:41 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1955
1956         * setjmp/setjmp.h (jmp_buf): Change gratuitous struct tag name to
1957         __jmp_bug_tag so its C++ implicit typedef does not conflict with the
1958         __jmp_buf typedef.
1959
1960         * Makerules (BUILD_CFLAGS) [! objdir]: Use $(..)config.h when
1961         compiling in the source directories.
1962
1963 Fri Mar 29 16:26:35 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1964
1965         * sysdeps/libm-ieee754/w_gamma.c: Use signgam instead of __signgam.
1966         * sysdeps/libm-ieee754/s_signgam.c: Undo last change.
1967
1968 Fri Mar 29 11:29:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1969
1970         * sysdeps/libm-ieee754/s_signgam.c (signgam): Renamed to __signgam,
1971         with weak alias signgam.
1972
1973 Thu Mar 28 18:32:34 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1974
1975         * Makeconfig (+cflags, +gcc-nowarn): Use gcc flags unconditionally.
1976
1977 Thu Mar 28 14:22:51 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
1978
1979         * sunrpc/rpc_main.c (main): Call textdomain.
1980
1981         * MakeTAGS (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): Add
1982         --no-location.
1983         (all-pot): Replace $(subdirs) files with $P/subdirs.pot.
1984         ($P/subdirs.pot): New target.
1985         ($P/SYS_libc.pot): Add -n switch.
1986
1987         * locale/locale.h (LC_*): Values reordered to match Linux libc.
1988
1989         * sysdeps/mach/hurd/kill.c: If proc_pid2task gives us MACH_PORT_NULL
1990         the process is a zombie; send no messages and return success.
1991
1992 Thu Mar 28 11:53:26 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1993
1994         * wctype/cname-lookup.h: Find localeinfo.h in ../locale.
1995         * wctype/wctype.c: Likewise.
1996         * wctype/wctrans.c: Likewise.
1997
1998 Thu Mar 28 03:00:43 1996  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1999
2000         * locale/nl_langinfo.c (nl_langinfo): Use DATA->values instead of
2001         DATA->strings.
2002
2003         * Makerules (BUILD_CFLAGS): Remove $(common-objpfx) from config.h.
2004
2005         * configure.in (.weakext check): Fix asm code to use .weakext instead
2006         of .weak!  Fix bogus test calls.
2007         * configure: Regenerated.
2008
2009 Thu Mar 28 03:25:10 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2010
2011         * locale/programs/xmalloc.c: Test _LIBC as well as STDC_HEADERS.
2012
2013         * locale/programs/ld-collate.c (collate_finish): Use error_at_line
2014         instead of error_with_loc.
2015
2016         * locale/weight.h: Use u_int32_t instead of u32_t.
2017         * string/strxfrm.c: Likewise.
2018
2019         * string/strxfrm.c: Find weight.h in ../locale; don't #include
2020         "localeinfo.h".
2021         * string/strcoll.c: Likewise.
2022
2023         * intl/Makefile (copysrc): Add missing > in sed cmd.
2024
2025 Sat Mar 23 17:52:49 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2026
2027         * Makeconfig: Rename Makefile variable nlsdir to i18ndir and
2028         change value to $(datadir)/i18n.  `nls' is not an appropriate
2029         name.
2030
2031         * Makefile (subdirs): Add new subdir wctype.
2032
2033         * ctype/ctype-info.c: Add new global variable __ctype_names
2034         and initialize from _nl_C_LC_CTYPE.
2035
2036         * ctype/ctype.h: In P1003.3b/D11 `alnum' is a separate character
2037         class.  Use bit 11.
2038         [_ISbit]: Protect definition of bitmasks because they are also
2039         used in wctype.h.
2040
2041         * libio/genops.c (_IO_sputbackc, _IO_sungetc): Clear EOF flag
2042         after successfully pushing back a character.
2043
2044         Fundamental changes in locale implementation.  Almost nothing
2045         from the old code is used anymore.
2046         * locale/charmap.c, locale/collate.c, locale/config.h,
2047         locale/ctypedump.c, locale/hash.h, locale/keyword.gperf,
2048         locale/keyword.h, locale/loadlocale.c, locale/locale-ctype.c,
2049         locale/locale.c locale/localeconv.c, locale/localedef.c,
2050         locale/localedef.h, locale/locfile-hash.c, locale/locfile-lex.c,
2051         locale/locfile-parse.c, locale/messages.c, locale/monetary.c,
2052         locale/numeric.c, locale/setlocale.c, locale/token.h,
2053         locale/xmalloc.c: Removed.
2054
2055         * locale/Makefile: Update for new locale implementation with
2056         program source code distributed in subdir.
2057
2058         * locale/categories.def, locale/iso-4217.def: Updated file
2059         for new locale implementation.
2060
2061         * locale/langinfo.h: Updated for new locale implementation.
2062         (ERA_D_T_FMT, ERA_T_FMT): New official values according to
2063         P1003.2b/D11.
2064         (_NL_COLLATE_NRULES, _NL_COLLATE_RULES, _NL_COLLATE_HASH_SIZE,
2065         _NL_COLLATE_HASH_LAYERS, _NL_COLLATE_TABLE_EB,
2066         _NL_COLLATE_TABLE_EL, _NL_COLLATE_UNDEFINED, _NL_COLLATE_EXTRA_EB,
2067         _NL_COLLATE_EXTRA_EL, _NL_CTYPE_NAMES_EB, _NL_CTYPE_NAMES_EL,
2068         _NL_CTYPE_HASH_SIZE, _NL_CTYPE_HASH_LAYERS, _NL_CTYPE_CLASS_NAMES,
2069         _NL_CTYPE_MAP_NAMES, _NL_CTYPE_WIDTH): New internal values for
2070         extended LC_CTYPE and LC_COLLATE implementation.
2071
2072         * locale/programs/simple-hash.c, locale/programs/simple-hash.h,
2073         locale/programs/xmalloc.c, locale/programs/xstrdup.c: Helper functions
2074         for locale related programs.
2075
2076         * locale/C-collate.c, locale/C-ctype.c,
2077         locale/C-messages.c, locale/C-monetary.c,
2078         locale/C-numeric.c, locale/C-time.c,
2079         locale/lc-collate.c, locale/lc-ctype.c,
2080         locale/lc-messages.c, locale/lc-monetary.c,
2081         locale/lc-numeric.c, locale/lc-time.c: New implementation of locale
2082         functions, and new generated "C" locale data.
2083
2084         * locale/loadlocale.c: Now handles word fields in locale binary
2085         automatically by changing the endianess if necessary.
2086
2087         * locale/localeinfo.h (LIMAGIC): Changed magic number because
2088         of incompatible changes.
2089         (locale_data): Changed definition to allow word as a value type.
2090         (coll_sort_rule): Values for collation sorting mode.
2091         (_NL_CURRENT_WORD): New macro to access word value of locale entry.
2092         (__collate_table, __collate_extra): Declare new global variables
2093         for collation tables.
2094
2095         * locale/programs/charmap-kw.gperf, locale/programs/charmap-kw.h,
2096         locale/programs/charmap.c, locale/programs/charset.c,
2097         locale/programs/charset.h, locale/programs/config.h,
2098         locale/programs/ctypedump.c, locale/programs/ld-collate.c,
2099         locale/programs/ld-ctype.c, locale/programs/ld-messages.c,
2100         locale/programs/ld-monetary.c, locale/programs/ld-numeric.c,
2101         locale/programs/ld-time.c, locale/programs/linereader.c,
2102         locale/programs/linereader.h, locale/programs/locale.c,
2103         locale/programs/localedef.c, locale/programs/locales.h,
2104         locale/programs/locfile-kw.gperf, locale/programs/locfile-kw.h,
2105         locale/programs/locfile-token.h, locale/programs/locfile.c,
2106         locale/programs/locfile.h, locale/programs/stringtrans.c,
2107         locale/programs/stringtrans.h: Implementation of locale related
2108         programs.
2109
2110         * locale/weight.h: Functions to access collation tables.
2111
2112         * posix/unistd.h: Define _POSIX2_LOCALEDEF.
2113
2114         * stdio-common/printf_fp.c: Fix bug with printing certain numbers
2115         < 10^-1.  Reported by Bill Metzenthen.
2116
2117         * stdio-common/tfformat.c: Add new test for above bug.
2118
2119         * string/strcoll.c, string/strxfrm.c: Real implementation of
2120         string collation according to ISO C.
2121
2122         * wctype/Makefile, wctype/cname-lookup.h, wctype/iswctype.c,
2123         wctype/test_wctype.c, wctype/towctrans.c, wctype/wcfuncs.c,
2124         wctype/wctrans.c, wctype/wctype.c, wctype/wctype.h: New files.
2125         Implementation of wide character classes and mapping.
2126
2127 Wed Mar 27 14:52:11 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2128
2129         * elf/rtld.c (dl_main): Call _dl_sysdep_start_cleanup after
2130         _dl_relocate_object loop.  Avoid relocating RTLD_MAP in that loop, and
2131         do it individually if necessary after _dl_sysdep_start_cleanup call.
2132
2133         * stdlib/Makefile (mpn-routines): Add divrem.
2134
2135 Tue Mar 26 22:54:14  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2136
2137         * stdio-common/printf_fp.c (__printf_fp): Use mpn_divmod
2138         instead of __mpn_divmod.
2139
2140 Wed Mar 27 10:26:21 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2141
2142         * sysdeps/alpha/setjmp.S: Must establish global pointer before
2143         address of __sigsetjmp_aux can be loaded.
2144
2145 Wed Mar 27 02:23:19 1996 Ulrich Drepper <drepper@gnu.ai.mit.edu>
2146
2147         * sysdeps/i386/i586/memset.S: New file.  Highly optimized
2148         version for i586 contributed by Torbjorn Granlund.
2149         Adapted for use as bzero.
2150         * sysdeps/i386/i586/bzero.S: Use sysdeps/i386/i586/memset.S
2151         code to implement bzero().
2152
2153 Tue Mar 26 20:01:17 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2154
2155         * stdlib/Makefile (mpn-routines): Remove divmod.
2156
2157 Tue Mar 26 15:40:14 1996  Brendan Kehoe  <brendan@zen.org>
2158
2159         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (NO_UNDERSCORES): Use
2160         wrapped with #ifndef, to avoid config.h defining it.
2161
2162 Mon Mar 25 13:10:04 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2163
2164         * malloc/realloc.c (_realloc_internal): In case of growing large
2165         block, leave _heaplimit zero across _malloc_internal call.
2166
2167         * intl/Makefile [gettext-srcdir]: Use gpl2lgpl.sed on copied sources.
2168
2169 Mon Mar 25 03:35:16 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2170
2171         * malloc/malloc.c (morecore): Don't attempt recursive realloc of info
2172         table when _heaplimit==0 during realloc growing large block.
2173
2174         * MakeTAGS (extract): Remove /dev/null from xgettext command line.
2175         (text-srcs): New variable: extract only C sources from $(tags_sources).
2176         (po/$(domain).pot): Depend on that.
2177         If it's empty, cp /dev/null $@ instead of $(extract).
2178
2179         * misc/Makefile (headers): Add iovec.h.
2180         * sysdeps/unix/sysv/linux/iovec.h: New file.
2181         * sysdeps/generic/iovec.h: New file.
2182         * misc/sys/uio.h (struct iovec): Type replaced with #include <iovec.h>.
2183
2184         * configure.in (NO_UNDERSCORES check): Use AC_TRY_LINK instead of
2185         AC_TRY_COMPILE.
2186
2187         * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): Move these
2188         macros inside [! __STDC__].
2189
2190         * stdlib/rpmatch.c: New file.
2191         * stdlib/Makefile (routines): Add rpmatch.
2192         * stdlib/stdlib.h [__USE_SVID]: Declare rpmatch.
2193
2194         * MakeTAGS (MSGJOIN): Variable removed.
2195         (po/SYS_libc.pot): Use $(XGETTEXT) instead of $(MSGJOIN).
2196
2197 Wed Mar 20 20:08:46 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2198
2199         * sysdeps/unix/sysdep.h: Don't define C_SYMBOL_NAME.
2200
2201         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Don't define
2202         NO_UNDERSCORES.
2203
2204 Thu Mar 21 11:19:15 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2205
2206         * mach/devstream.c (input): Translate \r to \n on input.
2207
2208 Wed Mar 20 11:28:49 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2209
2210         * stdio-common/printf.h, stdio-common/printf_fp.c,
2211         stdio-common/vfprintf.c: Place const in parameter list at
2212         correct place.
2213
2214 Wed Mar 20 23:58.12 1996  Ulrich Drepper <drepper@gnu.ai.mit.edu>
2215
2216         * sysdeps/i386/ldbl2mpn.c: Copy of former version of
2217         sysdeps/ieee754/ldbl2mpn.c.
2218         * sysdeps/ieee754/ldbl2mpn.c: Remove i386 specific unification.
2219         Reported by Andreas Schwab.
2220
2221 Wed Mar 20 19:58:43 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2222
2223         * version.c: Include version.h to define RELEASE and VERSION macros.
2224         (__libc_release, __libc_version): Use them.
2225         * locale/SYS_libc.c (_libc_intl_domainname): Include ../version.h and
2226         use VERSION to define domainname as `SYS_GNU_libc-VERSION'.
2227         * Make-dist (rel+vers): Snarf the macro values from version.h.
2228
2229         * MakeTAGS (extract): Pass $(XGETTEXTFLAGS-$(@F)).
2230         (XGETTEXTFLAGS-siglist.pot, XGETTEXTFLAGS-errlist.pot): New variables;
2231         pass -a for these files.
2232
2233         * Makerules (po/%.pot): Depend on FORCE target so recursive make is
2234         always run.
2235
2236 Mon Mar 18 22:54:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2237
2238         * sysdeps/unix/sysv/linux/wait3.c: New file.
2239         * sysdeps/unix/sysv/linux/wait.c: Use the bsd4.4 wait, not the
2240         one from sysdeps/posix.
2241
2242 Wed Mar 20 09:42:11 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2243
2244         * sysdeps/unix/bsd/waitflags.h (WNOREAP): New macro.
2245
2246         * elf/dl-load.c (_dl_map_object_from_fd): Always set L->l_type; if not
2247         lt_executable, then lt_library.
2248         * elf/rtld.c (dl_main): Don't set NEW->l_type after _dl_map_object.
2249
2250 Wed Mar 20 00:08:23 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2251
2252         * sysdeps/unix/sysv/linux/syscalls.list: Remove gtty and stty.
2253
2254 Tue Mar 19 16:31:06 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2255
2256         * sysdeps/unix/sysv/linux/termbits.h (CRTSCTS, CBAUDEX, VEOL,
2257         VEOL2, VMIN, VTIME): Corrected.
2258         (PAGEOUT, WRAP, VDSUSP): Deleted.
2259
2260 Tue Mar 19 14:18:42 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2261
2262         * sysdeps/unix/readdir.c: Test [! _DIRENT_HAVE_D_RECLEN] instead of
2263         (sizeof (DP->d_name) > 1) to detect fixed-size dir entries.
2264
2265         * sysdeps/i386/fpu/__math.h (asinh): Call log1p instead of __log1p.
2266
2267         * math/math.h: Move M_* constants before __math.h include.
2268         [__NO_MATH_INLINES || __OPTIMIZE__]: Include __math.h only #if this.
2269
2270         * misc/efgcvt_r.c (ecvt_r): Declare floor, log10, fabs as weak extern.
2271         If log10 is not defined (i.e. no -lm), use stupid loop instead.
2272
2273         * features.h (__FAVOR_BSD): Define only if _BSD_SOURCE is defined
2274         and no other _*_SOURCE macro is.
2275         (_GNU_SOURCE): Don't define by default.
2276         * libc-symbols.h (_GNU_SOURCE): Define it.
2277
2278         * configure.in (alpha*-*-linux*): Unset $gnu_ld and $elf.
2279
2280         * config.make.in (weak-symbols): Variable removed.
2281         * configure.in (--with-weak-symbols): Option removed.
2282         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
2283         New tests.
2284
2285         * config.h.in (HAVE_WEAK_SYMBOLS): #undef removed.
2286         (NO_UNDERSCORES, HAVE_ASM_WEAK_DIRECTIVE, HAVE_ASM_WEAKEXT_DIRECTIVE):
2287         New #undefs.
2288         * libc-symbols.h: Use them instead of HAVE_WEAK_SYMBOLS.
2289
2290         * sysdeps/unix/bsd/pause.c: Moved to sysdeps/unix/common/pause.c.
2291
2292 Mon Mar  4 20:17:28 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2293
2294         * inet/inet_lnaof.c: Use u_int32_t instead of u_long.
2295         * inet/inet_mkadr.c: Likewise.
2296         * inet/inet_net.c: Likewise.
2297         * inet/inet_netof.c: Likewise.
2298         * inet/rcmd.c: Likewise.
2299         * inet/arpa/inet.h: Likewise.
2300         * inet/netinet/in.h: Likewise.
2301         * inet/netinet/tcp.h: Likewise.
2302         * inet/protocols/rwhod.h: Likewise.
2303         * inet/protocols/talkd.h: Likewise.
2304         * resolv/inet_addr.c: Likewise.
2305
2306         * sysdeps/unix/sysv/linux/adjtime.c: Use INT_MAX instead of LONG_MAX.
2307
2308         * sysdeps/unix/sysv/Makefile (sysdep_routines): Don't add s_getdents.
2309
2310         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add mount,
2311         umount.
2312
2313         * sysdeps/alpha/__math.h (atan, cabs): New functions.
2314
2315         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S: new file (syscall
2316         expects set-value, not pointer to it).
2317
2318 Sun Feb 25 22:36:10 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2319
2320         * sysdeps/unix/sysv/linux/alpha/profil-counter.h: New file.
2321
2322         * gmon/gmon.c (__bb_head): new variable.
2323         (write_hist, write_call_graph, write_bb_counts): new functions.
2324         (_mcleanup): modified to call above functions instead of directly
2325         writing out gmon.out.
2326         * gmon/sys/gmon.h (struct __bb): New type.
2327         (struct gmonhdr): Type removed.
2328         (struct gmonparam): New member `log_hashfraction'.
2329         (GMONVERSION): Macro removed.
2330
2331         * gmon/sys/gmon_out.h, gmon/bb_exit_func.c,
2332         sysdeps/generic/bb_init_func.c, sysdeps/alpha/bb_init_func.S: new
2333         files.
2334         * gmon/Makefile (headers): Add sys/gmon_out.h.
2335         (routines): Add bb_init_func, bb_exit_func.
2336
2337         * gmon/mcount.c: Avoid integer division.
2338
2339 Wed Feb 21 23:56:41 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2340
2341         * sysdeps/alpha/setjmp.S: switched order in which sp and fp are
2342         passed to match what __sigsetjmp_aux() expects.
2343
2344 Tue Feb 20 11:33:46 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2345
2346         * sysdeps/unix/sysv/linux/alpha/syscalls.list (select, bind,
2347         connect, getpeername, getsockname, listen, recv, recvfrom,
2348         recvmsg, send, sendmsg, sendto, setsockopt, shutdown, socketpair):
2349         added to override same-name assembly file in the parent directory.
2350
2351         * stdlib/stdlib.h: add include of sys/types.h in front of random
2352         etc declarations to ensure int32_t is declared.
2353
2354         * stdlib/random.c, stdlib/random_r.c: replaced "long int" by int32_t
2355         where 32 bit integers are required.  Also change LONG_MAX into
2356         0x7fffffff since the intent is to turn off the sign bit in a
2357         32 bit integer.
2358
2359         * time/offtime.c (__offtime): Use Paul Eggert's code to deal
2360         with very large values for "days" (e.g., 64 bit values).
2361
2362 Mon Feb 19 22:22:12 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2363
2364         * stdlib/stdlib.h (__random, __random_r, random_r, struct
2365         random_data): use int32_t instead of `long int'.
2366
2367 Sat Feb 17 11:29:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2368
2369         * sysdeps/unix/sysv/linux/alpha/ioperm.c: new file.
2370
2371         * sysdeps/alpha/ffs.S: new file.
2372
2373         * sysdeps/alpha/fabs.c: File removed.
2374
2375         * time/tzfile.c (__tzfile_read): counter variable is i, *not*
2376         num_transitions!
2377
2378         * time/offtime.c: make capable of dealing with very large (64 bit)
2379         time_t values.  Use old algorithm until a year is reached that
2380         is an integer multiple of 400, then use DAYS_PER_400_YEARS to
2381         do the remainder in a single division.
2382
2383         * sysdeps/generic/ffs.c (ffs): fix variable declarations to
2384         be unsigned int, not unsigned long.
2385
2386         * string/test-ffs.c (main): add test case with all upper bits
2387         set.
2388
2389         * stdlib/tst-strtol.c: add tests cases for machines where
2390         sizeof(long)==8.
2391
2392         * stdlib/testrand.c (main): disallow rand() to return negative
2393         integers.
2394
2395         * stdlib/testmb.c (main): fix format to use %lx instead of %x.
2396
2397         * stdlib/stdlib.h: on 64 bit machines, declare
2398         struct random_data, __random(),  __random_r, and random_r to
2399         return "int" instead of "long int".
2400
2401         * stdlib/random_r.c: 64 bit machines use "int" instead of "long
2402         int".  Similarly, use INT_MAX instead of LONG_MAX.
2403
2404         * stdlib/random.c: on 64 bit machines, randtbl[] and __random[]
2405         need to operate on "int" instead of "long int".
2406
2407         * locale/locfile-hash.c (compute_hashval): make shifted constant
2408         a long to avoid loosing bits on 64 bit machines.
2409
2410         * dirent/tst-seekdir.c (main): fix confusing comment; print
2411         a line to mark point where directory is rewound.
2412
2413 Fri Feb 16 15:01:49 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2414
2415         * time/strftime.c (strftime): any hour > 11 is PM (not > 12!).
2416
2417 Wed Feb 14 00:21:17 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2418
2419         * sysdeps/unix/sysv/linux/alpha/Makefile,
2420         sysdeps/unix/sysv/linux/alpha/brk.S,
2421         sysdeps/unix/sysv/linux/alpha/fpu_control.c,
2422         sysdeps/unix/sysv/linux/alpha/fpu_control.h,
2423         sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
2424         sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
2425         sysdeps/unix/sysv/linux/alpha/pipe.S,
2426         sysdeps/unix/sysv/linux/alpha/setfpucw.c,
2427         sysdeps/unix/sysv/linux/alpha/sigprocmask.c,
2428         sysdeps/unix/sysv/linux/alpha/speed.c,
2429         sysdeps/unix/sysv/linux/alpha/start.S,
2430         sysdeps/unix/sysv/linux/alpha/syscall.S,
2431         sysdeps/unix/sysv/linux/alpha/syscalls.list,
2432         sysdeps/unix/sysv/linux/alpha/alpha/regdef.h,
2433         sysdeps/unix/sysv/linux/alpha/sysdep.S,
2434         sysdeps/unix/sysv/linux/alpha/sysdep.h: New files.
2435
2436         * sysdeps/alpha/setjmp_aux.c (__sigsetjmp_aux): restore return
2437         address register before returning (gcc 2.7.1 doesn't do it,
2438         presumably because $26 is declared as a global variable).
2439
2440         * sysdeps/unix/sysv/linux/sys/mman.h: msync was missing "flags"
2441         argument.
2442
2443         * sysdeps/unix/alarm.c (alarm): do roundup using test & increment
2444         instead of multiplication.
2445
2446         * sysdeps/posix/sleep.c (sleep): initialize sa_mask to mask of
2447         currently blocked signals instead of the empty mask to ensure
2448         that execution of alarm handler occurs with none of the currently
2449         blocked signals enabled.
2450
2451         * sysdeps/unix/alpha/sysdep.h: new file (adapted from OSF/1 version).
2452
2453         * sysdeps/unix/bsd/osf/alpha/sysdep.h: include
2454         sysdeps/unix/alpha/sysdep.h and removed definitions now in that file.
2455
2456         * sysdeps/alpha/divrem.S, sysdeps/alpha/htonl.S,
2457         sysdeps/alpha/htons.S, sysdeps/alpha/machine-gmon.h,
2458         sysdeps/alpha/_mcount.S, sysdeps/alpha/ntohl.s, sysdeps/alpha/ntohs.s,
2459         sysdeps/alpha/strlen.S: New files.
2460
2461         * sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
2462         sysdeps/alpha/divqu.S, sysdeps/alpha/divrem.m4,
2463         sysdeps/alpha/macros.m4, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
2464         sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S, sysdeps/alpha/strlen.c:
2465         Removed.
2466
2467         * sysdeps/generic/sbrk.c (__sbrk): argument is of type ptrdiff_t, not
2468         int.
2469
2470         * sysdeps/alpha/__longjmp.c (__longjmp): moved dummy while loop
2471         to end of function to avoid a jump across NOPs.
2472
2473         * sysdeps/alpha/Makefile (sysdep_routines): Removed all rules
2474         pertaining to integer division/remainder routines since new code
2475         doesn't require them.
2476
2477         * sunrpc/xdr_mem.c, sunrpc/xdr_stdio.c: Use 4 instead of sizeof(long)
2478         where 32 bit quantities are consumed/stored.  Various other minor
2479         64-bit cleanups (casting).
2480
2481         * sunrpc/xdr.c (xdr_int): test for sizeof(int)==4 to determine
2482         whether xdr_long or xdr_short should be used to encode an int.
2483         Notice that an xdr_long is 4 bytes independent of the architecture
2484         (otherwise no Alpha could interoperate with existing NFS servers,
2485         for example).  Ditto for enums.
2486
2487         * sunrpc/svc_udp.c (svcudp_recv): changed test from 4*sizeof(u_long)
2488         to 16 since it really wants 16 bytes.
2489
2490         * sunrpc/svc.c (maskp): changed from u_long* to u_int32*.
2491
2492         * sunrpc/rpc/xdr.h (IXDR_GET_LONG, IXDR_PUT_LONG): change casts to
2493         u_int32_t (instead of u_long).
2494
2495         * sunrpc/rpc_cmsg.c (xdr_callmsg), sunrpc/svc_authux.c: increment
2496         "buf" pointer by casting it to a char* first since a long* may be 8
2497         bytes or more and oa->oa_length may be any multiple of 4.
2498
2499         * sunrpc/clnt_udp.c (clntudp_call): replaced sizeof(u_long) by 4
2500         since it really is testing for 32 bits.  Fixed casts to use
2501         u_int32 instead of u_long.
2502         * sunrpc/xdr_rec.c: Likewise.
2503
2504         * sunrpc/clnt_tcp.c (clnttcp_call): replaced u_long by u_int32.
2505         * sunrpc/rpc/auth.h: Likewise.
2506
2507         * limits.h (LONG_MAX, LONG_MIN, ULONG_MAX): use 64 bit values
2508         for Alpha.
2509
2510 Tue Mar 19 13:27:49 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2511
2512         * sysdeps/i386/fpu/__math.h: New file.
2513         Contributed by John C. Bowman <bowman@hagar.ph.utexas.edu>.
2514
2515 Sun Mar 17 00:28:16 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2516
2517         * sysdeps/posix/clock.c: Don't multiply the return value by
2518         CLOCKS_PER_SEC or CLK_TCK.
2519
2520 Mon Mar 18 13:20:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2521
2522         * sysdeps/mach/hurd/getcwd.c: Fail with ENOENT if a parent directory
2523         scan finds no match.
2524
2525         * posix/unistd.h (setpgrp): Declare no-arg version unless __FAVOR_BSD.
2526         * misc/bsd-compat.c (setpgrp): New function, two arg version.
2527         * sysdeps/stub/setpgid.c: Remove setpgrp alias.
2528         * sysdeps/mach/hurd/setpgid.c: Likewise.
2529         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
2530         * sysdeps/unix/common/syscalls.list (setpgid): Remove setpgrp alias.
2531         * sysdeps/unix/sysv/irix4/syscalls.list: Likewise.
2532         * sysdeps/unix/sysv/linux/setpgrp.c: Obsolete file removed.
2533         * posix/setpgrp.c (setpgrp): New file.
2534         * posix/Makefile (routines): Add setpgrp.
2535
2536         * elf/Makefile (rtld-link): New canned sequence.
2537         (ld.so, ld-linux.so.1): Use it.  Pass -soname option.
2538
2539         * sysdeps/i386/setjmp.S (__setjmp): Define compatibility entry point.
2540
2541 Sun Mar 17 23:15:32 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2542
2543         * sysdeps/unix/sysv/linux/tcgetpgrp.c,
2544         sysdeps/unix/sysv/linux/tcsetpgrp.c: New files.
2545
2546 Sun Mar 17 07:19:33 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2547
2548         * db/Makefile (CFLAGS-hash_func.c): New variable; pass -Wno-unused.
2549         (CFLAGS): Append -Wno-unitialized.
2550
2551 Sat Mar 16 20:58:43 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2552
2553         * stdlib/erand48_r.c: Use FP division by powers of two to distribute
2554         short bits into double.
2555
2556 Sat Mar 16 20:08:22 1996  David Mosberger-Tang  <davidm@azstarnet.com>
2557
2558         * sysdeps/alpha/memchr.S: New file.
2559         * sysdeps/alpha/memchr.c: Obsolete file removed.
2560         * string/tester.c: Soup up memchr tests.
2561
2562 Sat Mar 16 16:26:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2563
2564         * misc/Makefile (headers): Add sysexits.h.
2565         * misc/sysexits.h: New file.
2566
2567 Thu Mar 14 15:20:45 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2568
2569         * sysdeps/libm-ieee754/e_atan2.c (__ieee754_atan2): Change atan
2570         call to __atan.
2571         * sysdeps/libm-ieee754/e_atan2f.c (__ieee754_atan2f): Change atanf
2572         call to __atanf.
2573
2574         * sysdeps/m68k/fpu/e_acos.c, sysdeps/m68k/fpu/e_acosf.c,
2575         sysdeps/m68k/fpu/e_asin.c, sysdeps/m68k/fpu/e_asinf.c,
2576         sysdeps/m68k/fpu/e_atanh.c, sysdeps/m68k/fpu/e_atanhf.c,
2577         sysdeps/m68k/fpu/e_cosh.c, sysdeps/m68k/fpu/e_coshf.c,
2578         sysdeps/m68k/fpu/e_exp.c, sysdeps/m68k/fpu/e_expf.c,
2579         sysdeps/m68k/fpu/e_fmod.c, sysdeps/m68k/fpu/e_fmodf.c,
2580         sysdeps/m68k/fpu/e_log.c, sysdeps/m68k/fpu/e_log10.c,
2581         sysdeps/m68k/fpu/e_log10f.c, sysdeps/m68k/fpu/e_logf.c,
2582         sysdeps/m68k/fpu/e_pow.c, sysdeps/m68k/fpu/e_powf.c,
2583         sysdeps/m68k/fpu/e_remainder.c, sysdeps/m68k/fpu/e_remainderf.c,
2584         sysdeps/m68k/fpu/e_scalb.c, sysdeps/m68k/fpu/e_scalbf.c,
2585         sysdeps/m68k/fpu/e_sinh.c, sysdeps/m68k/fpu/e_sinhf.c,
2586         sysdeps/m68k/fpu/e_sqrt.c, sysdeps/m68k/fpu/e_sqrtf.c,
2587         sysdeps/m68k/fpu/k_cos.c, sysdeps/m68k/fpu/k_cosf.c,
2588         sysdeps/m68k/fpu/k_sin.c, sysdeps/m68k/fpu/k_sinf.c,
2589         sysdeps/m68k/fpu/k_tan.c, sysdeps/m68k/fpu/k_tanf.c,
2590         sysdeps/m68k/fpu/s_atan.c, sysdeps/m68k/fpu/s_atanf.c,
2591         sysdeps/m68k/fpu/s_ceil.c, sysdeps/m68k/fpu/s_ceilf.c,
2592         sysdeps/m68k/fpu/s_cos.c, sysdeps/m68k/fpu/s_cosf.c,
2593         sysdeps/m68k/fpu/s_expm1.c, sysdeps/m68k/fpu/s_expm1f.c,
2594         sysdeps/m68k/fpu/s_fabs.c, sysdeps/m68k/fpu/s_fabsf.c,
2595         sysdeps/m68k/fpu/s_finite.c, sysdeps/m68k/fpu/s_finitef.c,
2596         sysdeps/m68k/fpu/s_floor.c, sysdeps/m68k/fpu/s_floorf.c,
2597         sysdeps/m68k/fpu/s_frexp.c, sysdeps/m68k/fpu/s_frexpf.c,
2598         sysdeps/m68k/fpu/s_ilogb.c, sysdeps/m68k/fpu/s_ilogbf.c,
2599         sysdeps/m68k/fpu/s_isinf.c, sysdeps/m68k/fpu/s_isinff.c,
2600         sysdeps/m68k/fpu/s_isnan.c, sysdeps/m68k/fpu/s_isnanf.c,
2601         sysdeps/m68k/fpu/s_ldexp.c, sysdeps/m68k/fpu/s_ldexpf.c,
2602         sysdeps/m68k/fpu/s_log1p.c, sysdeps/m68k/fpu/s_log1pf.c,
2603         sysdeps/m68k/fpu/s_logb.c, sysdeps/m68k/fpu/s_logbf.c,
2604         sysdeps/m68k/fpu/s_modf.c, sysdeps/m68k/fpu/s_modff.c,
2605         sysdeps/m68k/fpu/s_rint.c, sysdeps/m68k/fpu/s_rintf.c,
2606         sysdeps/m68k/fpu/s_scalbn.c, sysdeps/m68k/fpu/s_scalbnf.c,
2607         sysdeps/m68k/fpu/s_significand.c,
2608         sysdeps/m68k/fpu/s_significandf.c, sysdeps/m68k/fpu/s_sin.c,
2609         sysdeps/m68k/fpu/s_sinf.c, sysdeps/m68k/fpu/s_tan.c,
2610         sysdeps/m68k/fpu/s_tanf.c, sysdeps/m68k/fpu/s_tanh.c,
2611         sysdeps/m68k/fpu/s_tanhf.c: New files, for m68881 port of fdlibm.
2612
2613         * sysdeps/m68k/fpu/__math.h: Rewritten for fdlibm.
2614
2615         * sysdeps/m68k/fpu/isinfl.c: Rewritten to get argument type right.
2616         * sysdeps/m68k/fpu/isnanl.c: Likewise.
2617
2618 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2619
2620         * posix/glob.c (glob): In GLOB_BRACE brace expansion, fix buffer size
2621         calculation to include trailing invariant portion.  Don't use alloca;
2622         instead use a dynamic auto array for GCC, malloc for non-GCC.
2623         Handle nested braces properly.
2624
2625         * elf/elf.h (Elf32_auxv_t): Specify prototype (void) for `a_un.a_fcn'.
2626
2627         * libc-symbols.h (lint): New macro.
2628
2629 Fri Mar 15 01:18:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2630
2631         * libio/iosetvbuf.c: Add weak alias setvbuf.
2632
2633 Thu Mar 14 06:01:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2634
2635         * string/strnlen.c: New file.
2636         * string/Makefile (routines): Add strnlen.
2637         * string/string.h [__USE_GNU] (strnlen): Declare new function.
2638         [__OPTIMIZE__]: Define extern inline implementation of it.
2639
2640         * stdlib/erand48_r.c: Use __mpn_construct_double instead of ldexp and
2641         addition, to avoid using anything from -lm.
2642
2643 Mon Mar  4 21:57:14 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2644
2645         * sysdeps/unix/sysv/linux/m68k/Makefile: New file.
2646
2647         * sysdeps/unix/sysv/linux/m68k/sysdep.h (SYS_ify): Redefine.
2648         (CALL_MCOUNT): New macro, empty unless [PROF].
2649         (ENTRY): Do CALL_MCOUNT just after the label.
2650         (JUMPTARGET): New macro.
2651         (SYSCALL_ERROR_HANDLER): Fix syntax.
2652
2653 Thu Mar 14 04:20:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2654
2655         * sysdeps/unix/sysv/linux/init-first.c (init): Call `__personality'
2656         function instead of using inline asm i386 syscall.
2657         * sysdeps/unix/sysv/linux/syscalls.list: Add personality syscall.
2658
2659         * posix/unistd.h [__USE_BSD]: Declare usleep.
2660
2661 Tue Mar 12 04:57:57 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2662
2663         * misc/efgcvt.c (MAXDIG): New macro computed from <floats.h> constants.
2664         (fcvt, ecvt): Use it for buffer size.
2665
2666         * stdlib/drand48-iter.c (__drand48_iterate): Use u_int64_t instead of
2667         conditionalizing long vs long long.
2668
2669         * stdlib/drand48-iter.c (__drand48_iterate): Don't check for null
2670         pointers; never return EFAULT.
2671         * stdlib/drand48_r.c (drand48_r): Likewise.
2672         * stdlib/erand48_r.c (erand48_r): Likewise.
2673
2674         * setjmp/Makefile (tests): Add jmpbug.
2675         * setjmp/jmpbug.c: New file.
2676
2677 Tue Mar 12 04:42:01 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2678
2679         * sysdeps/sparc/jmp_buf.h: Rewritten; use array of ints, not struct.
2680         * sysdeps/sparc/setjmp.S: Rewritten; store %fp value as well.
2681         * sysdeps/sparc/__longjmp.S: Rewritten; unwind frames one by one with
2682         `restore' until the target frame is hit.
2683
2684 Sun Mar 10 20:29:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2685
2686         * sysdeps/unix/sysv/linux/sigsuspend.c: New file.
2687         * sysdeps/unix/sysv/linux/syscalls.list: Remove sigsuspend, add
2688         s_sigsuspend.
2689
2690 Thu Mar  7 21:30:58 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2691
2692         * Makerules (+make-deps, sed-remove-objpfx): Quote periods on the
2693         left side of sed substitutions.
2694
2695 Sun Mar 10 16:58:10 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2696
2697         * stdio-common/printf_fp.c (hack_digit): __mpn_normal_size
2698         is not available anymore.  Do it ourselves.
2699
2700         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_SETCW):
2701         Correct GCC `asm' syntax.
2702
2703 Tue Mar 12 03:15:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2704
2705         * stdio-common/Makefile (tests): Add tst-ungetc.
2706         * stdio-common/tst-ungetc.c: New test from drepper.
2707         * stdio-common/tstscanf.c (main): New %[ test case from drepper.
2708
2709         * sysdeps/libm-ieee754/s_scalbn.c (scalbn): Rename to __scalbn;
2710         somehow this was missed, though the weak alias is already there.
2711
2712         * sysdeps/unix/sysv/linux/i386/fpu_control.h (_FPU_DEFAULT): Change
2713         default to double precision, all interrupts masked; fdlibm requires.
2714
2715 Sat Mar  9 18:44:27 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2716
2717         * sysdeps/unix/sysv/linux/i386/setfpucw.c: Obsolete file removed.
2718
2719 Fri Mar  8 22:16:48 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2720
2721         * stdio-common/printf_fp.c (HAVE_ALLOCA): New macro.
2722
2723 Tue Mar  5 18:45:14 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2724
2725         * sysdeps/mach/hurd/select.c (__select): Include LASTFD in the
2726         final loop.
2727
2728 Mon Mar  4 20:54:40 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2729
2730         * Makeconfig ($(common-objpfx)config.make): Depend on config.h.in.
2731
2732 Tue Mar  5 12:14:57 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2733
2734         * sysdeps/mach/hurd/select.c (__select): Also don't fault just
2735         because some fdmask is 0.
2736
2737 Mon Mar  4 17:35:35 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2738
2739         * sysdeps/mach/hurd/select.c (__select):
2740         Don't increment GOT only because READ/WRITE/EXCEPTFDS is 0!
2741         Don't return without frobbing the bitmasks after a timeout.
2742         When clearing the bitmasks, only loop from FIRSTFD to LASTFD.
2743
2744 Mon Mar  4 17:35:09 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2745
2746         * hurd/catch-signal.c (hurd_safe_memmove): New function.
2747         (hurd_safe_copyin, hurd_safe_copyout): New functions.
2748         * hurd/hurd/sigpreempt.h: Declare them.
2749
2750 Sun Mar  3 08:43:44 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2751
2752         Replace math code with fdlibm from Sun as modified for netbsd by
2753         JT Conklin and Ian Taylor, including x86 FPU support.
2754         * sysdeps/libm-ieee754, sysdeps/libm-i387: New directories.
2755         * math/math_private.h: New file.
2756         * sysdeps/i386/fpu/Implies: New file.
2757         * sysdeps/ieee754/Implies: New file.
2758         * math/machine/asm.h, math/machine/endian.h: New files.
2759         * math/Makefile, math/math.h: Rewritten.
2760         * mathcalls.h, math/mathcalls.h: New file, broken out of math.h.
2761         * math/finite.c: File removed.
2762         * sysdeps/generic/Makefile [$(subdir)=math]: Frobnication removed.
2763
2764         * math/test-math.c: Include errno.h and string.h.
2765
2766         * sysdeps/unix/bsd/dirstream.h: File removed.
2767         * sysdeps/unix/bsd/readdir.c: File removed.
2768
2769 Sat Mar  2 16:35:40 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2770
2771         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: File removed.
2772         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: File
2773         removed.
2774         * sysdeps/generic/profil-counter.h: New file.
2775
2776 Fri Mar  1 17:11:59 1996  Brendan Kehoe  <brendan@zen.org>
2777
2778         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sigcontext.h: New file,
2779         including <sysdeps/unix/bsd/sun/sparc/sigcontext.h>.
2780         * sysdeps/unix/sysv/sysv4/solaris2/sparc/profil-counter.h: New file,
2781         same as linux/m68k/profil-counter.h except the comment.
2782
2783 Fri Mar  1 10:09:46 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2784
2785         * stdlib/Makefile (mpn-stuff): New target.
2786         (copy-mpn): Use it.
2787
2788         * Code copied from GMP updated to 1.937 version.
2789         * stdlib/strtod.c (HAVE_ALLOCA): Define this for gmp headers.
2790
2791         * posix/glob.c: Use canonical code from autoconf manual for dirent
2792         include.
2793         [_D_NAMLEN]: Redefine NAMLEN using this.
2794         (glob_in_dir): Use NAMLEN macro.
2795
2796         * sysdeps/posix/profil.c: New file.
2797
2798 Thu Feb 29 20:55:57 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2799
2800         * sysdeps/unix/sysv/linux/m68k/profil-counter.h: New file.
2801
2802 Tue Feb 27 12:14:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2803
2804         * libc-symbols.h [GCC >= 2.8] (strong_alias, weak_alias): Remove
2805         `extern' keyword.
2806
2807         * time/strftime.c: Support - and _ flags to affect number padding.
2808
2809         * sysdeps/unix/common/tcsendbrk.c: New file.
2810
2811 Mon Feb 26 10:22:30 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2812
2813         * sysdeps/unix/dirstream.h: Rewritten.
2814         * sysdeps/unix/readdir.c: Rewritten.
2815         * sysdeps/unix/telldir.c: Rewritten.
2816         * sysdeps/unix/closedir.c: Use <...> instead of "..." for dirstream.h.
2817         Remove __ from DIR struct member names.
2818         * sysdeps/unix/dirfd.c: Likewise.
2819         * sysdeps/unix/seekdir.c: Likewise.
2820         * sysdeps/unix/rewinddir.c: Likewise.
2821         * sysdeps/unix/opendir.c: Likewise.  Don't allocate extra space after
2822         DIR structure.
2823         * sysdeps/stub/direct.h: File removed.
2824         * sysdeps/unix/bsd/bsd4.4/direct.h: File removed.
2825         * sysdeps/unix/bsd/direct.h: File removed.
2826         * sysdeps/unix/common/direct.h: File removed.
2827         * sysdeps/unix/sysv/irix4/direct.h: File removed.
2828         * sysdeps/unix/sysv/isc3/direct.h: File removed.
2829         * sysdeps/unix/sysv/sco3.2.4/direct.h: File removed.
2830         * sysdeps/unix/sysv/sysv4/solaris2/direct.h: File removed.
2831         * sysdeps/unix/common/direntry.h: New file.
2832         * sysdeps/unix/bsd/direntry.h: New file.
2833         * sysdeps/unix/bsd/bsd4.4/direntry.h: New file.
2834         * sysdeps/unix/sysv/direntry.h: New file.
2835         * sysdeps/stub/direntry.h: New file.
2836         * dirent/dirent.h (struct dirent): Type removed.  Include <direntry.h>
2837         to define it.
2838         (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New macros.
2839         * dirent/Makefile (headers): Add direntry.h.
2840         (distribute): Remove direct.h.
2841         * sysdeps/posix/getcwd.c: Use new macros instead of d_namlen.
2842         * dirent/scandir.c: Likewise.
2843         * io/fts.c (fts_build): Likewise.
2844         * io/ftw.c (ftw_dir): Likewise.
2845         * sysdeps/posix/ttyname.c: Likewise.
2846
2847         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
2848
2849         * sysdeps/mach/hurd/profil.c (MAX_PC_SAMPLES): New macro.
2850         (collector_timeout): New static variable.
2851         (update_waiter): Actually call __task_enable_pc_sampling.
2852         Set collector_timeout based on the `tick' count returned.
2853         (profile_waiter): Use MAX_PC_SAMPLES.  Set nsamples before RPC.
2854         Use collector_timeout in __mach_msg call.
2855
2856         * gmon/Makefile (noprof): New variable containing mcount.
2857         Append profil unless it is in $(unix-syscalls).
2858         (mcount.po): Use $(noprof) for list of targets in this rule.
2859
2860         * libc-symbols.h: Define _LIBC before #include <config.h>.
2861
2862 Sun Feb 25 12:29:23 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2863
2864         * config.h.in [_LIBC] (HAVE_STRERROR): Define it.
2865         Protect 2nd page of #undef's for generator programs with #ifndef _LIBC.
2866
2867         * time/zic.c, time/zdump.c, time/private.h: Updated from ADO 96e.
2868
2869 Fri Feb  9 12:40:19 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
2870
2871         * libio/cleanup.c (_IO_cleanup_registration_needed)
2872         [!_G_HAVE_ATEXIT]: Init to NULL.
2873         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Remove decl.
2874
2875 Thu Feb  8 08:12:50 1996  Brendan Kehoe  <brendan@cygnus.com>
2876
2877         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Revert
2878         previous change, since cleanup.c only defines it if _G_HAVE_ATEXIT.
2879
2880 Wed Feb  7 15:10:17 1996  Brendan Kehoe  <brendan@lisa.cygnus.com>
2881
2882         * libio/filedoalloc.c (_IO_cleanup_registration_needed): Declare as
2883         extern.
2884
2885 Sat Feb 24 11:34:13 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2886
2887         * sysdeps/i386/memcmp.S: Fix argument %esp offsets.
2888
2889         * time/sys/time.h (timeradd, timersub): New macros; BSD has these.
2890
2891 Wed Feb 21 02:25:07 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2892
2893         * Rules (others): Depend on $(extra-objs), $(install-lib),
2894         $(install-bin), $(install-sbin), in object directory.
2895
2896         * Makeconfig (link-libc): Don't pass -rpath option with default
2897         path, since ld.so should use the same default.
2898         * Makerules (build-shlib): Likewise.
2899
2900         * Makerules (make-target-directory): Use mkinstalldirs.
2901
2902         * sysdeps/mach/i386/sysdep.h: Include unix/i386/sysdep.h to
2903         redefine ENTRY et al.
2904
2905         * sysdeps/unix/sysv/linux/i386/sysdep.h (NO_UNDERSCORES, ENTRY):
2906         Macros removed.  The code in unix/i386/sysdep.h should now suffice.
2907
2908         * sysdeps/unix/i386/sysdep.h (ALIGNARG): New macro, defns for
2909         [HAVE_ELF] and not.
2910         (ENTRY): Use it in .align directive.
2911         (CALL_MCOUNT): New macro, empty unless [PROF].
2912         (ENTRY): Do CALL_MCOUNT just after the label.
2913
2914         * Makeconfig (CPPFLAGS-.po): New variable, use -DPROF so assembly
2915         code can call mcount.
2916
2917 Tue Feb 20 23:05:16 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2918
2919         * time/private.h, time/zdump.c, time/zic.c: Updated verbatim from ADO;
2920         translation markings are now integrated in his distribution.
2921
2922         * stdlib/strtod.c (round_and_return): Add missing (mp_limb) 1 cast.
2923
2924 Mon Feb 19 18:31:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2925
2926         * po: New directory where `LANG.po' files for message translations
2927         will reside.
2928         * po/SYS_libc.pot: New file, template of message strings as in source.
2929         * MakeTAGS: New rules to build po/SYS_libc.pot automatically from
2930         the source using xgettext.
2931         * Makerules ($(..)po/%.pot): New rule.
2932         * manual/Makefile (../po/manual.pot): New target, make it empty.
2933
2934         * sysdeps/unix/bsd/alarm.c: Moved to sysdeps/unix/alarm.c.
2935         * sysdeps/unix/bsd/nice.c: Moved to sysdeps/unix/nice.c.
2936         * sysdeps/unix/bsd/stime.c: Moved to sysdeps/unix/stime.c.
2937         * sysdeps/unix/bsd/time.c: Moved to sysdeps/unix/time.c.
2938         * sysdeps/unix/bsd/utime.c: Moved to sysdeps/unix/utime.c.
2939
2940         * time/zic.c, time/scheck.c, time/private.h, time/tzfile.h:
2941         Updated from ADO 96d.
2942
2943 Sun Feb 18 14:08:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2944
2945         * csu/initfini.c (_init): Remove bogus volatile declarations and
2946         extra variable, take the address of __gmon_start__ only implicitly
2947         to avoid the test being optimized out.
2948
2949 Sun Feb 18 15:08:10 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2950
2951         * sysdeps/posix/utimes.c (__utimes): There are 1000000 usecs in a
2952         sec.
2953
2954 Sun Feb 18 13:56:00 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2955
2956         * elf/Makefile, time/Makefile: Make `all' the default target.
2957
2958 Mon Feb 19 18:09:04 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2959
2960         * misc/sys/ptrace.h: Moved to ...
2961         * sysdeps/generic/sys/ptrace.h: ... here.
2962         * sys/ptrace.h: File removed.
2963
2964 Sun Feb 18 12:13:07 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2965
2966         * sysdeps/unix/sysv/linux/Makefile (headers): Add fpu_control.h.
2967
2968         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Put it into .bss
2969         so that the symbol alias works.
2970
2971         * sysdeps/unix/sysv/linux/m68k/fpu_control.h (_FPU_SETCW): Corrected.
2972
2973         * sysdeps/unix/sysv/linux/resourcebits.h: New file.
2974
2975         * sysdeps/unix/sysv/linux/sys/ptrace.h: New file.
2976
2977         * sysdeps/unix/sysv/linux/syscalls.list: Add getegid, geteuid,
2978         getppid and reboot.
2979
2980         * sysdeps/unix/sysv/linux/sysconf.c: Special version that does not
2981         use getdtablesize.
2982
2983 Sat Feb 17 10:30:21 1996  David Mosberger-Tang  <davidm@AZStarNet.com>
2984
2985         * stdio-common/printf_fp.c, stdlib/strtod.c, sysdeps/ieee754/dbl2mpn.c,
2986         sysdeps/ieee754/ldbl2mpn.c, sysdeps/ieee754/mpn2dbl.c,
2987         sysdeps/ieee754/mpn2ldbl.c: Cast left operands of shift instructions
2988         to `long' where necessary.
2989
2990 Thu Feb 15 20:04:50 1996  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
2991
2992         * stdlib/fpioconst.h: Introduce new constant _FPIO_CONST_OFFSET.
2993         * stdio-common/printf_fp.c, stdlib/strtod.c: Use _FPIO_CONST_OFFSET
2994         to correctly access MPN array depending on architecture.
2995
2996 Mon Feb 19 15:30:26 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
2997
2998         * stdio-common/tstscanf.c (main): Add check for "0" as %d.
2999
3000         * sysdeps/stub/msync.c: Undo change of Jan 29; just two args.
3001         Only some systems have three args; let them define their own stub.
3002
3003         * sysdeps/generic/dl-sysdep.c: Declare _dl_secure.
3004
3005         * sysdeps/generic/machine-gmon.h: New file.
3006         * gmon/Makefile (distribute): Add machine-gmon.h.
3007         * gmon/mcount.c: Undo changes of Feb 13.
3008         Include "machine-gmon.h".
3009
3010 Sun Feb 18 13:24:06 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3011
3012         * sysdeps/unix/sysv/linux/direct.h: File removed, since it is
3013         identical to unix/common/direct.h.
3014
3015         * sysdeps/unix/Makefile [no_deps]: Don't include s-proto.d.
3016
3017         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Don't add ipc.
3018
3019         * stdio-common/Makefile (tests): Remove scanf6.
3020
3021         * sysdeps/unix/sysv/linux/Makefile (non-lib.a): Append libieee.a.
3022
3023         * time/mktime.c (mktime): Move static variable localtime_offset to
3024         file scope.
3025
3026         * stdio-common/vfscanf.c: Put '0' in buffer before scanning for %i
3027         base indicator.
3028
3029 Thu Feb 15 16:56:17 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3030
3031         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Corrected.
3032         (ELF_MACHINE_BEFORE_RTLD_RELOC): Define.
3033         (_dl_runtime_resolve): Save %a1 as well.
3034         (ELF_MACHINE_RUNTIME_FIXUP_ARGS): Add second dummy arg.
3035         (elf_machine_relplt): Define.
3036
3037         * elf/dl-runtime.c: Include possible extra args in declaration of
3038         fixup.
3039
3040 Fri Feb 16 11:01:59 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3041
3042         * time/tzset.c: Limit hours to 23, not 12.  From jaffer.
3043
3044 Fri Feb 16 10:14:05 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3045
3046         * Makeconfig (CFLAGS-.po): Use -pg instead of -p.
3047
3048 Thu Feb 15 13:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3049
3050         * mach/Machrules: Use -include for $(*.ir).
3051
3052         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Mask off type bits in
3053         request values.
3054         * sysdeps/mach/hurd/ioctls.h (_IOC_NOTYPE): New macro.
3055         (_IOT_COUNT2): Field is 3 bits, not 2.
3056         * sysdeps/mach/hurd/ioctl.c: Ignore handler if it fails with ENOTTY.
3057         * hurd/hurdioctl.c (_hurd_lookup_ioctl_handler): Mask off type
3058         bits before looking up handler.
3059         (fioctl): Use __hurd_dfail.
3060         (fioctl, fioclex): Use ENOTTY for bogus request instead of EGRATUITOUS.
3061
3062 Thu Feb 15 11:49:45 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3063
3064         * sysdeps/unix/sysv/sysv4/Makefile [$(subdir)-signal]
3065         (sysdep_routines): Don't add sys-sig.
3066
3067         * sysdeps/unix/sysv/sysv4/solaris2/syscalls.list: New file.
3068
3069 Wed Feb 14 00:21:17 1996 David Mosberger-Tang  <davidm@azstarnet.com>
3070
3071         * sysdeps/alpha/memchr.c (memchr): loop searching for matching
3072         character bailed out one too early; changed constant 6 to
3073         7 to fix this.
3074
3075 Wed Feb 14 01:08:58 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3076
3077         * posix/execvp.c: When executing shell on script, first arg is
3078         full file name, not argv[0].
3079
3080         * mach/Makefile [no_deps]: Inhibit inclusion of mach-syscalls.mk.
3081         * mach/Machrules [no_deps]: Inhibit interface rules.
3082
3083         * malloc/Makefile (distribute): Removed TODO.
3084
3085 Tue Feb 13 05:12:02 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3086
3087         * sysdeps/unix/sysv/linux/syscalls.list (ipc): Specify msgget in
3088         caller column.
3089
3090         * sysdeps/unix/common/syscalls.list: Add sigaction syscall.
3091
3092         * sysdeps/unix/sysv/linux/gnu/types.h: Moved from linux/i386.
3093
3094         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=math]
3095         (sysdep_routines): Append setfpucw.
3096         (extra-objs): Append ieee-fpucw.o.
3097         (install-lib): Append libieee.a.
3098         (libieee.a): New target.
3099         * sysdeps/unix/sysv/linux/ieee-fpucw.c: New file.
3100         * sysdeps/unix/sysv/linux/i386/fpu_control.h
3101         (_FPU_GETCW, _FPU_SETCW): New macros.
3102         (fpu_control_t): New typedef.
3103         (__setfpucw): Use fpu_control_t for argument type.
3104         * sysdeps/unix/sysv/linux/fpu_control.c: Moved from linux/i386.
3105
3106         * sysdeps/unix/sysv/linux/init-first.c: Moved from linux/i386.
3107
3108         * sysdeps/unix/sysv/linux/syscalls.list: Add ipc syscall.
3109         * sysdeps/unix/sysv/linux/i386/syscalls.list: File removed.
3110
3111 Sat Feb 10 13:09:03 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3112
3113         * sysdeps/unix/sysv/linux/m68k/brk.c,
3114         sysdeps/unix/sysv/linux/m68k/mmap.S,
3115         sysdeps/unix/sysv/linux/m68k/select.S,
3116         sysdeps/unix/sysv/linux/m68k/sigcontext.h,
3117         sysdeps/unix/sysv/linux/m68k/sigreturn.S,
3118         sysdeps/unix/sysv/linux/m68k/socket.S,
3119         sysdeps/unix/sysv/linux/m68k/syscall.S,
3120         sysdeps/unix/sysv/linux/m68k/sysdep.S,
3121         sysdeps/unix/sysv/linux/m68k/sysdep.h: New files.
3122
3123         * sysdeps/unix/sysv/linux/m68k/fpu_control.h: New file.
3124
3125         * sysdeps/m68k/fpu/isinfl.c, sysdeps/m68k/fpu/isnanl.c,
3126         sysdeps/m68k/isinfl.c, sysdeps/m68k/isnanl.c: New files.
3127
3128         * sysdeps/unix/sysv/linux/sys/mman.h: Define MAP_ANON and
3129         MAP_FILE if not already defined.
3130
3131         * elf/elf.h: Add m68k reloc definitions.
3132         * sysdeps/m68k/dl-machine.h, sysdeps/m68k/elf/start.S: New files.
3133
3134 Tue Feb 13 00:12:12 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3135
3136         * elf/dl-runtime.c (fixup) [ELF_MACHINE_RUNTIME_FIXUP_ARGS]: Let
3137         this macro declare extra leading args.
3138
3139         * Makerules [$(elf)=yes] (ar-symtab-name): Define to empty.
3140
3141         * sysdeps/i386/dl-machine.h (ELF_MACHINE_RUNTIME_TRAMPOLINE,
3142         elf_machine_relplt): New macros.
3143         * elf/dl-runtime.c: New file.
3144         * sysdeps/i386/dl-runtime.c, sysdeps/stub/dl-runtime.c: Files removed.
3145
3146         * gmon/Makefile (headers): Remove machine-gmon.h.
3147         * sysdeps/stub/machine-gmon.h, sysdeps/i386/machine-gmon.h: Removed.
3148         * gmon/mcount.c [! NO_UNDERSCORES] (_mcount): Specify "mcount" as
3149         the asm name.
3150         (_mcount): Define normally, taking no args.
3151         Use __builtin_return_address to fetch PC values of caller and caller's
3152         caller.
3153
3154         * Makerules: Rewrote rules to update libc archives of all flavors.
3155         Define separate specific rules for each flavor using o-iterator.
3156
3157         * sysdeps/unix/Makefile: Include s-proto.d only ifdef subdir.
3158
3159 Sat Feb 10 11:35:16 1996 Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3160
3161         * Makerules (ar-symtab-name): New macro.  Replace all occurences
3162         of __.SYMDEF by $(ar-symtab-name).
3163         * sysdeps/unix/sysv/Makefile (ar-symtab-name): Define as empty.
3164
3165 Mon Feb 12 03:10:41 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3166
3167         * Makefile (configure, %/configure): Depend on aclocal.m4.
3168         * Make-dist (configure, %/configure): Likewise.
3169
3170         * sysdeps/unix/Makefile: Include s-proto.d for its deps.
3171
3172         * gmon/sys/gmon.h: Don't include machine-gmon.h; those defns are
3173         only needed in the implementation, not for any users.
3174
3175         * time/northamerica: Updated from ADO 96c, new rules for Mexico in
3176         1996.
3177
3178         * sunrpc/pm_getport.c: #if 0 out gratuitous inclusion of <net/if.h>.
3179         * sunrpc/pm_getmaps.c: Likewise.
3180
3181         * sysdeps/unix/sysv/syscalls.list: Add setrlimit and settimeofday,
3182         so real syscalls override unix/sysv/*.c on sysv-derived systems
3183         that have them.
3184         * sysdeps/unix/common/syscalls.list: Add settimeofday here, to
3185         override unix/sysv/settimeofday.c since that overrides
3186         unix/syscalls.list.
3187
3188         * Makeconfig (+link): Put $(link-libc) after deps from $^,
3189         regardless of where libc.a appears in the deps.
3190
3191         * sysdeps/unix/sysv/sysv4/syscalls.list: Remove redundancies.
3192         Add __waitid.
3193         * sysdeps/unix/sysv/linux/syscalls.list: Remove redundancies.
3194         Define __ name for sigprocmask.
3195         * sysdeps/unix/bsd/ultrix4/syscalls.list: Remove redundancies.
3196         Add getsysinfo.
3197         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: Remove redundancies.
3198         * sysdeps/unix/bsd/sun/syscalls.list: Remove redundancies.
3199         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove redundancies.
3200         * sysdeps/unix/bsd/syscalls.list: Remove settimeofday, utimes.
3201         Add getdents, wait3, waitpid.
3202         * sysdeps/unix/syscalls.list: Add seteuid, setegid, setsid,
3203         settimeofday, sigsuspend, sstk, utimes.
3204         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
3205         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
3206         * sysdeps/unix/bsd/ultrix4/mips/Makefile (sysdep_routines):
3207         Removed sigtramp.
3208         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: Renamed from sigtramp.c.
3209         * sysdeps/unix/bsd/bsd4.4/sstk.S: File removed.
3210         * sysdeps/unix/bsd/hp/m68k/syscalls.list: File removed.
3211         * sysdeps/unix/bsd/osf/alpha/getdents.S: File removed.
3212         * sysdeps/unix/bsd/ultrix4/getsysinfo.S: File removed.
3213         * sysdeps/unix/bsd/ultrix4/waitpid.S: File removed.
3214         * sysdeps/unix/bsd/ultrix4/mips/sigtramp.c: File removed.
3215         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S: File removed.
3216         * sysdeps/unix/bsd/ultrix4/mips/sigvec.c: New file.
3217         * sysdeps/unix/bsd/ultrix4/mips/syscalls.list: New file.
3218         * sysdeps/unix/sysv/irix4/wait3.S: File removed.
3219         * sysdeps/unix/sysv/sysv4/__waitid.S: File removed.
3220         * sysdeps/unix/sysv/sysv4/fchdir.S: File removed.
3221         * sysdeps/unix/sysv/sysv4/setegid.S: File removed.
3222         * sysdeps/unix/sysv/sysv4/seteuid.S: File removed.
3223         * sysdeps/unix/sysv/sysv4/sigaltstack.S: File removed.
3224         * sysdeps/unix/sysv/sysv4/solaris2/utimes.S: File removed.
3225
3226         * hurd/hurdfault.c (_hurdsig_fault_init): Set qlimit on
3227         FORWARD_SIGEXC to one.  Uncomment setting of thread exc port, and
3228         move it to last thing.
3229
3230 Sat Feb 10 05:57:08 1996  Roland McGrath  <roland@charlie-brown.gnu.ai.mit.edu>
3231
3232         * sysdeps/generic/make_siglist.c: #undef _SIGNAL_H before defining it.
3233
3234         * sysdeps/unix/sysv/linux/syscalls.list: Add sigprocmask, sigsuspend.
3235
3236 Sat Feb 10 04:18:48 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3237
3238         * posix/execvp.c: If execv fails with ENOEXEC, run the shell on
3239         the file.
3240
3241 Fri Feb  9 11:46:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3242
3243         * time/Makefile (CFLAGS-zdump.c, CFLAGS-zic.c, CFLAGS-ialloc.c,
3244         CFLAGS-scheck.c): Use -DNOID instead of -Wno-unused.
3245
3246         * hurd/Makefile (user-interfaces): Added hurd/tioctl.
3247
3248 Thu Feb  8 18:55:27 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3249
3250         * hurd/hurdioctl.c (tiocsctty): Set the terminal's pgrp to our own.
3251
3252 Wed Feb  7 18:48:30 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3253
3254         * Makefile (subdirs): Added wcsmbs.
3255         * wcsmbs: New directory of wide char/multibyte char functions from
3256         drepper.
3257
3258         * hurd/hurdmsg.c (_S_msg_report_wait): Function removed.
3259         * hurd/report-wait.c: New file.
3260         * hurd/Makefile (routines): Added report-wait.
3261
3262         * sysdeps/mach/hurd/Makefile (inhibit-unix-syscalls): New variable.
3263
3264         * sysdeps/mach/hurd/i386/intr-msg.h (struct mach_msg_trap_args):
3265         New type.
3266         (SYSCALL_EXAMINE, MSG_EXAMINE): New inline functions.
3267         * sysdeps/mach/hurd/i386/trampoline.c (struct mach_msg_trap_args):
3268         Structure moved to intr-msg.h; include that.
3269
3270         * time/Makefile (CFLAGS-ialloc.c): Add -Wno-unused.
3271         (CFLAGS-scheck.c): New variable.
3272
3273         * sysdeps/mach/hurd/dl-sysdep.c (__hurd_sigthread_stack_base,
3274         __hurd_sigthread_stack_end, __hurd_sigthread_variables,
3275         __hurd_threadvar_stack_mask): New variables.
3276
3277         * sysdeps/mach/hurd/fork.c: Set the new task's exception port to
3278         its new message port.
3279
3280         * misc/init-misc.c: Put __init_misc in the __libc_subinit set.
3281
3282         * configure.in (uname): Add quoting.
3283
3284         * sysdeps/mach/hurd/fchdir.c: Don't consult errno unless lookup fails.
3285         * hurd/fchroot.c: Likewise.
3286
3287         * posix/sys/types.h [GCC >= 2.7]: Define intN_t/u_intN_t using
3288         __attribute__ ((__mode__ (__XX__))).
3289
3290 Wed Feb 7 03:24:05 1996 Torbjorn Granlund  <tege@tmg.se>
3291
3292         * sysdeps/i386/i586/memcopy.h (WORD_COPY_FWD): Manually allocate
3293         destination cache lines.
3294         (WORD_COPY_BWD): Likewise.
3295
3296 Wed Feb  7 14:16:36 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3297
3298         * sysdeps/generic/Makefile (make_siglist): Get signum.h absolute
3299         file name first thing, before $(native-compile) changes directories.
3300
3301         From Gord Matzigkeit <gord@enci.ucalgary.ca>:
3302         * sysdeps/unix/make_errlist.c: Use strerror if available.
3303         * sysdeps/unix/configure.in: New file
3304
3305         * sysdeps/unix/bsd/sun/syscalls.list: Added sigvec.
3306         * sysdeps/unix/bsd/sun/sigvec.S: File removed.
3307
3308         * sysdeps/stub/sendto.c: Make sockaddr arg pointer to const.
3309         * sysdeps/stub/connect.c: Likewise.
3310         * sysdeps/stub/bind.c: Likewise.
3311
3312         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): RETRYNAME of
3313         "" is only special for FS_RETRY_NORMAL; for FS_RETRY_REAUTH, do
3314         another dir_lookup of "".
3315
3316 Tue Feb  6 12:46:29 1996  David Mosberger-Tang  <davidm@azstarnet.com>
3317
3318         * libc-symbols.h (weak_alias, weak_symbol): added definitions
3319         for ECOFF (HAVE_ECOFF).
3320
3321 Fri Feb  2 13:09:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3322
3323         * sysdeps/mach/hurd/fork.c: Clear trace flag in child.
3324
3325 Wed Jan 31 20:08:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3326
3327         * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Clear SS->intr_port
3328         when cancelled before RPC.
3329
3330 Tue Jan 30 13:32:05 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3331
3332         * dirent/scandir.c: Allocate dirents with correct size for name, and
3333         copy with correct size.
3334
3335         * hurd/hurdinit.c [! PIC] (map0): New function, on _hurd_preinit_hook.
3336
3337         * stdio-common/vfscanf.c (TYPEMOD): New macro of all type modifier
3338         flag bits.
3339         (__vfscanf): Fix checking of extra type modifiers.
3340
3341         * time/asia, time/australasia, time/backward: Updated from ADO 96b.
3342
3343 Tue Jan 30 12:17:26 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3344
3345         * stdlib/strtod.c: Only negate exponent when there really is one.
3346
3347         * stdio-common/vfscanf.c: Accept type modifiers on %n.
3348         Fix FP number parsing.
3349
3350 Mon Jan 29 21:53:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3351
3352         * sysdeps/stub/msync.c (msync): Declare third arg FLAGS.
3353
3354         * resolv/Makefile (+cflags): Append to this instead of CFLAGS.
3355
3356 Mon Jan 29 16:29:16 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3357
3358         * sysdeps/mach/hurd/select.c (__select): Recalculate GOT to
3359         include an increment for each operation allowed on each fd.
3360
3361 Mon Jan 29 11:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3362
3363         * sysdeps/unix/sysv/linux/configure: Set $inhibit_glue.
3364
3365         * Makefile: Use -include for sysd-dirs.
3366
3367         * configure.in (uname): Check for uname in syscalls.list files.
3368         * sysdeps/unix/sysv/syscalls.list: Remove uname.
3369         * sysdeps/unix/syscalls.list: Add uname.
3370
3371         * stdlib/strtol.c (weak1): New macro, to get the right name declared
3372         weak.
3373
3374         * sysdeps/posix/getcwd.c (size_t): Don't define #ifdef __GNU_LIBRARY__.
3375
3376         * db/hash/ndbm.c: Change all uses of `errno' struct member to `errnum'.
3377         (dbm_open): Use dynamic allocation for file name buffer, instead of
3378         limitting its size to MAXPATHLEN.
3379
3380         * db/btree/bt_open.c (tmp): Use dynamic allocation for file name
3381         buffer, instead of limitting its size to MAXPATHLEN.
3382
3383         * db/hash/hash.h (HTAB): Rename member `errno' to `errnum'.
3384         * db/hash/hash.c: Change all uses of `errno' struct member to `errnum'.
3385
3386 Sun Jan 28 19:42:04 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3387
3388         * time/Makefile: Fix check for cross compiling.
3389
3390 Thu Jan 25 21:10:39 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3391
3392         * db/Makefile (subdir-dirs): Renamed from dbdirs.
3393
3394         * Makerules (distinfo-vars): Add subdir-dirs.
3395
3396         * MakeTAGS: Remove vpath directives.
3397         (all-dirs): Prepend $(subdir-dirs).
3398         (all-sources, all-headers): Use wildcard to find sources.
3399
3400 Mon Jan 29 10:44:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3401
3402         * malloc/Makefile (CFLAGS-vm-limit.c, CFLAGS-ralloc.c): New
3403         variables.
3404
3405         * mach/msgserver.c: Declare DEMUX arg with prototype.
3406
3407 Sun Jan 28 17:25:38 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3408
3409         * setjmp/setjmp.h (jmp_buf): Give a tag in the struct defn, to
3410         make C++ happy.
3411         * alpha/jmp_buf.h: Likewise.
3412         * m68k/jmp_buf.h: Likewise.
3413         * mips/jmp_buf.h: Likewise.
3414         * sparc/jmp_buf.h: Likewise.
3415         * vax/jmp_buf.h: Likewise.
3416
3417         * sysdeps/generic/memmem.c: Fix return value in case where
3418         NEEDLE_LEN==0.
3419
3420         * hurd/hurdlookup.c (__file_name_lookup_under,
3421         __file_name_lookup): Restrict mode with umask.
3422         * sysdeps/mach/hurd/xmknod.c: Restrict mode with umask.
3423         * sysdeps/mach/hurd/mkdir.c: Restrict mode with umask.
3424
3425 Fri Jan 26 12:20:45 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3426
3427         * stdlib/strtol.c: Undo last change.  ANSI C changed since the
3428         draft I checked yesterday.  Sigh.
3429
3430 Thu Jan 25 18:58:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3431
3432         * stdlib/strtol.c [UNSIGNED]: Don't recognize + or - as sign.
3433
3434 Wed Jan 24 03:22:07 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3435
3436         * malloc/mcheck.c (mabort): Declare prototype.
3437
3438         * sysdeps/unix/sysv/linux/fcntlbits.h: Moved from linux/i386.
3439
3440         * Makerules: Use -include for generated makefiles.
3441
3442         * errno.h: Don't declare errno if it's defined as a macro.
3443
3444         * stdio-common/vfscanf.c: Disallow l flag after ll or L.
3445
3446         * stdio-common/Makefile (tests): Add scanf[1-9].
3447         * stdio-common/scanf[1-9].c: New files.  Bug tests from hjl.
3448
3449 Wed Jan 24 04:18:36 1996  Paul Eggert  <eggert@twinsun.com>
3450
3451         * strftime.c (strftime):
3452         When invoking self, check whether the subsidiary invocation failed.
3453         Use "???" (not "") to denote unknown time zone information.
3454
3455         Make this source file portable to standalone contexts (e.g. GNU Emacs).
3456         <config.h>: Include if HAVE_CONFIG_H is defined.
3457         (HAVE_LIMITS_H, HAVE_MBLEN, HAVE_TM_ZONE, STDC_HEADERS): New symbols,
3458         defined if _LIBC or if <config.h> defines them.
3459         <ansidecl.h>, "../locale/localeinfo.h": Include only if _LIBC.
3460         <sys/types.h>: New include; some hosts require it for `time_t'.
3461         <ctype.h>: Include only if HAVE_MBLEN (since it's only needed then).
3462         <limits.h>: Include only if HAVE_LIMITS_H.
3463         <stddef.h, stdlib.h, string.h>: Include only if STDC_HEADERS.
3464         (memcpy): Define in terms of bcopy if !STDC_HEADERS.
3465         (__P, PTR): Define if not already defined.
3466         (__tzname, __daylight, __timezone): Remove macros; no longer needed.
3467         (add, strftime): Don't use NULL, for portability to some weird hosts.
3468         (fmt): If !_LIBC, don't assume sprintf returns a count.
3469         (week, strftime): Use old-style function declarations.
3470         (weekday_name, month_name): New constants.
3471         (strftime): Use traditional C values if locale support isn't available.
3472         Use `const' instead of CONST.  For time zones, use tm_zone if
3473         possible, then fall back on tzname.  Don't check for multibyte
3474         characters unless mblen is supported.  Use formats like %02d instead
3475         of %.2d, for portability to older hosts.
3476
3477 Wed Jan 24 00:07:52 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3478
3479         * stdio-common/vfscanf.c (GROUP, MALLOC): New flag macros.
3480         (__vfscanf): Eliminate flag vars that were redundant with FLAGS bits.
3481         Fix bug in recognition of %ll flag for long long.
3482         Fix overeager checks for conflicting type modifiers.
3483         With ' flag, match thousands separators for decimal numbers.
3484
3485 Tue Jan 23 22:02:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3486
3487         * locale/Makefile (CFLAGS-locfile-lex.c): New variable.
3488
3489         * resolv/Makefile (CFLAGS): Disable some warnings.
3490
3491         * sysdeps/generic/Makefile (elided-routines): Removed hypot.
3492         (+gccwarn): Set with override.
3493
3494         * stdio-common/Makefile (CFLAGS-tst-printf.c): New variable.
3495
3496         * posix/Makefile (CFLAGS-regex.c): New variable.
3497
3498         * malloc/Makefile (CFLAGS-obstack.c): New variable.
3499
3500         * io/Makefile (CFLAGS-fts.c): New variable.
3501         * io/fts.c (fts_open): Use prototypes for COMPAR decl.
3502
3503 Tue Jan 23 21:35:32 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3504
3505         * sysdeps/mach/hurd/bind.c (bind): Ensure NAME for the AF_LOCAL
3506         case is '\0'-terminated.
3507
3508 Tue Jan 23 19:49:54 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3509
3510         * elf/rtld.c (dl_main): Support additional args in --list mode for
3511         debugging: look them up as symbol names and print values.
3512
3513         * misc/getttyent.c (skip, value): Declare with prototypes in file
3514         scope.
3515
3516         * csu/initfini.c (_init): Explicitly set a variable that is
3517         pointer to volatile with the address of __gmon_start__, to avoid
3518         the test being optimized out.
3519
3520 Mon Jan 22 10:40:40 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3521
3522         * sysdeps/posix/getcwd.c [__GNU_LIBRARY__]: Include unistd.h.
3523
3524         * io/fts.h (FTSENT): Define fts_compar member with prototype.
3525
3526         * hurd/hurd.h: Use prototype in getcttyid decl.
3527
3528         * stdlib/l64a.c: Fix typo in last change.
3529
3530         * stdlib/drand48-iter.c: Test limits.h macros instead of sizeof
3531         for determining size of types.
3532         * stdlib/srand48_r.c: Likewise.
3533
3534         * misc/utmp.h: Declare login, logout, logwtmp.
3535         * misc/logout.c: Declare argument as pointer to const.
3536         * misc/login.c: Likewise.
3537         * misc/logwtmp.c: Likewise.
3538         Include time.h, string.h.
3539
3540         * misc/efgcvt_r.c: Include stdlib.h.
3541
3542         * io/mknod.c: Include sys/types.h.
3543
3544         * gmon/sys/gmon.h: Declare monstartup, _mcleanup.
3545
3546         * csu/gmon-start.c (_start, etext): Declare with prototypes.
3547
3548         * stdio-common/vfscanf.c (%[): Fix range handling.
3549
3550 Sun Jan 21 00:55:25 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3551
3552         * misc/Makefile (headers): Rename queue.h to sys/queue.h.
3553         * misc/queue.h: Moved to misc/sys/queue.h.
3554
3555         * sysdeps/unix/sysv/linux/shmat.c: Include sys/shm.h instead of
3556         sys/sem.h.
3557
3558         * stdlib/stdlib.h [__USE_SVID]: Declare a64l, l64a.
3559
3560         * stdlib/l64a.c: Use 6-bit numbers as indices in CONV_TABLE, not
3561         literal byte values.
3562
3563         * misc/bsd-compat.c (getpgrp): Define with prototype.
3564
3565         * misc/init-misc.c (__progname_full): New variable.
3566         (program_invocation_name, program_invocation_short_name): New aliases.
3567         (__init_misc): Define with prototype.  Set __progname_full.
3568         * misc/progname.c: File removed.
3569         * misc/Makefile (aux): Remove progname.
3570
3571         * misc/hsearch_r.c (isprime): Define with prototype.
3572
3573         * sysdeps/unix/sysv/linux/seteuid.c: Just include unix/bsd version.
3574         * sysdeps/unix/bsd/seteuid.c: Disallow arg of -1.
3575         * sysdeps/unix/bsd/setegid.c: Likewise.
3576
3577 Fri Jan 19 13:28:59 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3578
3579         * sysdeps/unix/sysv/linux/tcdrain.c: Define tcdrain, not
3580         __tcdrain.
3581
3582         * posix/glob.c (glob): Use prototype in getlogin decl.
3583
3584         * db/ndbm.h: Declare dbm_error, dbm_clearerr.
3585         * db/db/db.c (__dberr): Define with prototype.
3586         (__dbpanic): Use prototypes in casts.
3587         * db/hash/hash_log2.c: Add prototype decl.
3588
3589         * sysdeps/generic/_strerror.c (_strerror_internal): Define with
3590         prototype.
3591
3592         * sysdeps/unix/mkdir.c, syspdep/unix/rmdir.c: Moved from unix/sysv.
3593         They will be overridden with syscalls if extant by unix/syscalls.list.
3594
3595         * Makeconfig (+gccwarn): Add -Wstrict-prototypes.
3596
3597         * stdio-common/printf_fp.c (__printf_fp): Define with prototype.
3598         * stdio-common/vfprintf.c (_IO_helper_overflow): Likewise.
3599
3600 Thu Jan 18 00:32:43 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3601
3602         * io/Makefile (routines): Add mknod, xstat fxstat lxstat xmknod.
3603
3604         * sysdeps/unix/sysv/linux/ptrace.c: Use ... decl, and stdarg.h to
3605         get args.
3606
3607         * posix/glob.c (_GNU_SOURCE): Define if undefined, so glob.h
3608         defines GNU extensions.
3609         * posix/fnmatch.c: Likewise.
3610
3611         Replaced all simple system call files *.S throughout sysdeps/unix
3612         with syscalls.list files to be processed by make-syscalls.sh.
3613         * sysdeps/unix/s-proto.S: New file.
3614         * sysdeps/unix/syscalls.list: New file.
3615         * sysdeps/unix/bsd/syscalls.list: New file.
3616         * sysdeps/unix/bsd/bsd4.4/syscalls.list: New file.
3617         * sysdeps/unix/bsd/hp/m68k/syscalls.list: New file.
3618         * sysdeps/unix/bsd/osf/syscalls.list: New file.
3619         * sysdeps/unix/bsd/osf/alpha/syscalls.list: New file.
3620         * sysdeps/unix/bsd/sony/newsos4/syscalls.list: New file.
3621         * sysdeps/unix/bsd/sun/syscalls.list: New file.
3622         * sysdeps/unix/bsd/sun/sunos4/syscalls.list: New file.
3623         * sysdeps/unix/bsd/ultrix4/syscalls.list: New file.
3624         * sysdeps/unix/common/syscalls.list: New file.
3625         * sysdeps/unix/inet/syscalls.list: New file.
3626         * sysdeps/unix/mman/syscalls.list: New file.
3627         * sysdeps/unix/sysv/syscalls.list: New file.
3628         * sysdeps/unix/sysv/irix4/syscalls.list: New file.
3629         * sysdeps/unix/sysv/isc2.2/syscalls.list: New file.
3630         * sysdeps/unix/sysv/linux/syscalls.list: New file.
3631         * sysdeps/unix/sysv/linux/i386/syscalls.list: New file.
3632         * sysdeps/unix/sysv/sco3.2.4/syscalls.list: New file.
3633         * sysdeps/unix/sysv/sysv4/syscalls.list: New file.
3634         * sysdeps/unix/sysv/sysv4/i386/syscalls.list: New file.
3635         * sysdeps/unix/sysv/sysv4/solaris2/sparc/syscalls.list: New file.
3636         * sysdeps/unix/acct.S: File removed.
3637         * sysdeps/unix/chdir.S: File removed.
3638         * sysdeps/unix/chmod.S: File removed.
3639         * sysdeps/unix/chown.S: File removed.
3640         * sysdeps/unix/chroot.S: File removed.
3641         * sysdeps/unix/close.S: File removed.
3642         * sysdeps/unix/configure: File removed.
3643         * sysdeps/unix/configure.in: File removed.
3644         * sysdeps/unix/dup.S: File removed.
3645         * sysdeps/unix/fcntl.S: File removed.
3646         * sysdeps/unix/fsync.S: File removed.
3647         * sysdeps/unix/getgid.S: File removed.
3648         * sysdeps/unix/getpid.S: File removed.
3649         * sysdeps/unix/getuid.S: File removed.
3650         * sysdeps/unix/ioctl.S: File removed.
3651         * sysdeps/unix/kill.S: File removed.
3652         * sysdeps/unix/link.S: File removed.
3653         * sysdeps/unix/lseek.S: File removed.
3654         * sysdeps/unix/open.S: File removed.
3655         * sysdeps/unix/ptrace.S: File removed.
3656         * sysdeps/unix/read.S: File removed.
3657         * sysdeps/unix/reboot.S: File removed.
3658         * sysdeps/unix/setgid.S: File removed.
3659         * sysdeps/unix/setuid.S: File removed.
3660         * sysdeps/unix/sync.S: File removed.
3661         * sysdeps/unix/umask.S: File removed.
3662         * sysdeps/unix/unlink.S: File removed.
3663         * sysdeps/unix/write.S: File removed.
3664         * sysdeps/unix/bsd/flock.S: File removed.
3665         * sysdeps/unix/bsd/getdtsz.S: File removed.
3666         * sysdeps/unix/bsd/getpagesize.S: File removed.
3667         * sysdeps/unix/bsd/killpg.S: File removed.
3668         * sysdeps/unix/bsd/profil.S: File removed.
3669         * sysdeps/unix/bsd/readv.S: File removed.
3670         * sysdeps/unix/bsd/settimeofday.S: File removed.
3671         * sysdeps/unix/bsd/sigblock.S: File removed.
3672         * sysdeps/unix/bsd/sigpause.S: File removed.
3673         * sysdeps/unix/bsd/sigsetmask.S: File removed.
3674         * sysdeps/unix/bsd/sigstack.S: File removed.
3675         * sysdeps/unix/bsd/sigvec.S: File removed.
3676         * sysdeps/unix/bsd/utimes.S: File removed.
3677         * sysdeps/unix/bsd/writev.S: File removed.
3678         * sysdeps/unix/bsd/bsd4.4/chflags.S: File removed.
3679         * sysdeps/unix/bsd/bsd4.4/fchdir.S: File removed.
3680         * sysdeps/unix/bsd/bsd4.4/fchflags.S: File removed.
3681         * sysdeps/unix/bsd/bsd4.4/getdents.S: File removed.
3682         * sysdeps/unix/bsd/bsd4.4/getdomain.S: File removed.
3683         * sysdeps/unix/bsd/bsd4.4/revoke.S: File removed.
3684         * sysdeps/unix/bsd/bsd4.4/setdomain.S: File removed.
3685         * sysdeps/unix/bsd/bsd4.4/setegid.S: File removed.
3686         * sysdeps/unix/bsd/bsd4.4/seteuid.S: File removed.
3687         * sysdeps/unix/bsd/bsd4.4/setlogin.S: File removed.
3688         * sysdeps/unix/bsd/bsd4.4/setsid.S: File removed.
3689         * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: File removed.
3690         * sysdeps/unix/bsd/bsd4.4/wait4.S: File removed.
3691         * sysdeps/unix/bsd/hp/m68k/getdents.S: File removed.
3692         * sysdeps/unix/bsd/osf/msync.S: File removed.
3693         * sysdeps/unix/bsd/osf/alpha/wait4.S: File removed.
3694         * sysdeps/unix/bsd/sony/newsos4/fchdir.S: File removed.
3695         * sysdeps/unix/bsd/sony/newsos4/sys_wait4.S: File removed.
3696         * sysdeps/unix/bsd/sun/getdents.S: File removed.
3697         * sysdeps/unix/bsd/sun/sunos3/m68k/wait.S: File removed.
3698         * sysdeps/unix/bsd/sun/sunos4/msync.S: File removed.
3699         * sysdeps/unix/bsd/sun/sunos4/poll.S: File removed.
3700         * sysdeps/unix/bsd/sun/sunos4/setsid.S: File removed.
3701         * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: File removed.
3702         * sysdeps/unix/bsd/sun/sunos4/sys_wait4.S: File removed.
3703         * sysdeps/unix/bsd/sun/sunos4/uname.S: File removed.
3704         * sysdeps/unix/bsd/ultrix4/getdents.S: File removed.
3705         * sysdeps/unix/bsd/ultrix4/setsid.S: File removed.
3706         * sysdeps/unix/bsd/ultrix4/uname.S: File removed.
3707         * sysdeps/unix/common/access.S: File removed.
3708         * sysdeps/unix/common/adjtime.S: File removed.
3709         * sysdeps/unix/common/dup2.S: File removed.
3710         * sysdeps/unix/common/fchmod.S: File removed.
3711         * sysdeps/unix/common/fchown.S: File removed.
3712         * sysdeps/unix/common/ftruncate.S: File removed.
3713         * sysdeps/unix/common/getgroups.S: File removed.
3714         * sysdeps/unix/common/getitimer.S: File removed.
3715         * sysdeps/unix/common/getpgid.S: File removed.
3716         * sysdeps/unix/common/getpriority.S: File removed.
3717         * sysdeps/unix/common/getrlimit.S: File removed.
3718         * sysdeps/unix/common/getrusage.S: File removed.
3719         * sysdeps/unix/common/gettimeofday.S: File removed.
3720         * sysdeps/unix/common/mkdir.S: File removed.
3721         * sysdeps/unix/common/readlink.S: File removed.
3722         * sysdeps/unix/common/rename.S: File removed.
3723         * sysdeps/unix/common/rmdir.S: File removed.
3724         * sysdeps/unix/common/select.S: File removed.
3725         * sysdeps/unix/common/setgroups.S: File removed.
3726         * sysdeps/unix/common/setitimer.S: File removed.
3727         * sysdeps/unix/common/setpgid.S: File removed.
3728         * sysdeps/unix/common/setpriority.S: File removed.
3729         * sysdeps/unix/common/setregid.S: File removed.
3730         * sysdeps/unix/common/setreuid.S: File removed.
3731         * sysdeps/unix/common/setrlimit.S: File removed.
3732         * sysdeps/unix/common/swapon.S: File removed.
3733         * sysdeps/unix/common/symlink.S: File removed.
3734         * sysdeps/unix/common/truncate.S: File removed.
3735         * sysdeps/unix/common/vhangup.S: File removed.
3736         * sysdeps/unix/inet/accept.S: File removed.
3737         * sysdeps/unix/inet/bind.S: File removed.
3738         * sysdeps/unix/inet/connect.S: File removed.
3739         * sysdeps/unix/inet/gethostid.S: File removed.
3740         * sysdeps/unix/inet/gethostname.S: File removed.
3741         * sysdeps/unix/inet/getpeername.S: File removed.
3742         * sysdeps/unix/inet/getsockname.S: File removed.
3743         * sysdeps/unix/inet/getsockopt.S: File removed.
3744         * sysdeps/unix/inet/listen.S: File removed.
3745         * sysdeps/unix/inet/recv.S: File removed.
3746         * sysdeps/unix/inet/recvfrom.S: File removed.
3747         * sysdeps/unix/inet/recvmsg.S: File removed.
3748         * sysdeps/unix/inet/send.S: File removed.
3749         * sysdeps/unix/inet/sendmsg.S: File removed.
3750         * sysdeps/unix/inet/sendto.S: File removed.
3751         * sysdeps/unix/inet/sethostid.S: File removed.
3752         * sysdeps/unix/inet/sethostname.S: File removed.
3753         * sysdeps/unix/inet/setsockopt.S: File removed.
3754         * sysdeps/unix/inet/shutdown.S: File removed.
3755         * sysdeps/unix/inet/socket.S: File removed.
3756         * sysdeps/unix/inet/socketpair.S: File removed.
3757         * sysdeps/unix/mman/madvise.S: File removed.
3758         * sysdeps/unix/mman/mmap.S: File removed.
3759         * sysdeps/unix/mman/mprotect.S: File removed.
3760         * sysdeps/unix/mman/msync.S: File removed.
3761         * sysdeps/unix/mman/munmap.S: File removed.
3762         * sysdeps/unix/sysv/alarm.S: File removed.
3763         * sysdeps/unix/sysv/ftime.S: File removed.
3764         * sysdeps/unix/sysv/nice.S: File removed.
3765         * sysdeps/unix/sysv/pause.S: File removed.
3766         * sysdeps/unix/sysv/poll.S: File removed.
3767         * sysdeps/unix/sysv/s_getdents.S: File removed.
3768         * sysdeps/unix/sysv/signal.S: File removed.
3769         * sysdeps/unix/sysv/stime.S: File removed.
3770         * sysdeps/unix/sysv/time.S: File removed.
3771         * sysdeps/unix/sysv/times.S: File removed.
3772         * sysdeps/unix/sysv/ulimit.S: File removed.
3773         * sysdeps/unix/sysv/uname.S: File removed.
3774         * sysdeps/unix/sysv/utime.S: File removed.
3775         * sysdeps/unix/sysv/irix4/getpgid.S: File removed.
3776         * sysdeps/unix/sysv/irix4/msync.S: File removed.
3777         * sysdeps/unix/sysv/irix4/setpgid.S: File removed.
3778         * sysdeps/unix/sysv/irix4/signal.S: File removed.
3779         * sysdeps/unix/sysv/irix4/sysmp.S: File removed.
3780         * sysdeps/unix/sysv/irix4/syssgi.S: File removed.
3781         * sysdeps/unix/sysv/isc2.2/rename.S: File removed.
3782         * sysdeps/unix/sysv/linux/adjtimex.S: File removed.
3783         * sysdeps/unix/sysv/linux/fork.S: File removed.
3784         * sysdeps/unix/sysv/linux/getpgid.S: File removed.
3785         * sysdeps/unix/sysv/linux/getpgrp.S: File removed.
3786         * sysdeps/unix/sysv/linux/getsid.S: File removed.
3787         * sysdeps/unix/sysv/linux/gtty.S: File removed.
3788         * sysdeps/unix/sysv/linux/mlock.S: File removed.
3789         * sysdeps/unix/sysv/linux/mlockall.S: File removed.
3790         * sysdeps/unix/sysv/linux/mount.S: File removed.
3791         * sysdeps/unix/sysv/linux/munlock.S: File removed.
3792         * sysdeps/unix/sysv/linux/munlockall.S: File removed.
3793         * sysdeps/unix/sysv/linux/pipe.S: File removed.
3794         * sysdeps/unix/sysv/linux/s_ptrace.S: File removed.
3795         * sysdeps/unix/sysv/linux/setpgid.S: File removed.
3796         * sysdeps/unix/sysv/linux/setsid.S: File removed.
3797         * sysdeps/unix/sysv/linux/settimeofday.S: File removed.
3798         * sysdeps/unix/sysv/linux/sigpending.S: File removed.
3799         * sysdeps/unix/sysv/linux/stty.S: File removed.
3800         * sysdeps/unix/sysv/linux/umount.S: File removed.
3801         * sysdeps/unix/sysv/linux/wait4.S: File removed.
3802         * sysdeps/unix/sysv/linux/i386/ipc.S: File removed.
3803         * sysdeps/unix/sysv/sco3.2.4/pathconf.S: File removed.
3804         * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: File removed.
3805         * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: File removed.
3806         * sysdeps/unix/sysv/sco3.2.4/sigpending.S: File removed.
3807         * sysdeps/unix/sysv/sco3.2.4/sigprocmask.S: File removed.
3808         * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: File removed.
3809         * sysdeps/unix/sysv/sysv4/pgrpsys.S: File removed.
3810         * sysdeps/unix/sysv/sysv4/sigprocmask.S: File removed.
3811         * sysdeps/unix/sysv/sysv4/sigsuspend.S: File removed.
3812         * sysdeps/unix/sysv/sysv4/sysconfig.S: File removed.
3813         * sysdeps/unix/sysv/sysv4/sysinfo.S: File removed.
3814         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: File removed.
3815
3816         * io/mknod.c: New file.
3817
3818         * Makerules (COMPILE.s): New variable.
3819
3820         * sysdeps/unix/Makefile (sysd-syscalls): New target; generate with
3821         make-syscalls.sh and include it.
3822         [$(subdir)=misc] (sysdep_routines): Append extra syscalls from
3823         sysd-syscalls.
3824         * sysdeps/unix/make-syscalls.sh: New file.
3825
3826         * Makerules (COMPILE.S): New variable.
3827
3828 Wed Jan 17 11:04:58 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3829
3830         * sysdeps/unix/sysv/linux/statbuf.h (_STAT_VER_LINUX,
3831         _STAT_VER_SVR4, _STAT_VER): New macros.
3832         (_MKNOD_VER_LINUX, _MKNOD_VER_SVR4, _MKNOD_VER): New macros.
3833
3834         * sysdeps/unix/sysv/sysv4/i386/statbuf.h (_STAT_VER, _MKNOD_VER):
3835         New macros.
3836
3837         * io/sys/stat.h (_STAT_VER, _MKNOD_VER): New macros.
3838         (__xstat, __fxstat, __lxstat, __xmknod): Declare new functions.
3839         [__GNUC__] (stat, fstat, lstat, mknod): Define these (and __ names)
3840         as `extern inline's calling the `x' functions.
3841         * io/fstat.c: New file.
3842         * io/lstat.c: New file.
3843         * io/stat.c: New file.
3844         * sysdeps/generic/lstat.c: File removed.
3845         * sysdeps/generic/lxstat.c: New file.
3846         * sysdeps/mach/hurd/fstat.c: File removed.
3847         * sysdeps/mach/hurd/fxstat.c: New file.
3848         * sysdeps/mach/hurd/lstat.c: File removed.
3849         * sysdeps/mach/hurd/lxstat.c: New file.
3850         * sysdeps/mach/hurd/mknod.c: File removed.
3851         * sysdeps/mach/hurd/stat.c: File removed.
3852         * sysdeps/mach/hurd/xmknod.c: New file.
3853         * sysdeps/mach/hurd/xstat.c: New file.
3854         * sysdeps/stub/fstat.c: File removed.
3855         * sysdeps/stub/fxstat.c: New file.
3856         * sysdeps/stub/lstat.c: File removed.
3857         * sysdeps/stub/lxstat.c: New file.
3858         * sysdeps/stub/mknod.c: File removed.
3859         * sysdeps/stub/stat.c: File removed.
3860         * sysdeps/stub/xmknod.c: New file.
3861         * sysdeps/stub/xstat.c: New file.
3862         * sysdeps/unix/common/lstat.S: File removed.
3863         * sysdeps/unix/common/lxstat.c: New file.
3864         * sysdeps/unix/fstat.S: File removed.
3865         * sysdeps/unix/fxstat.c: New file.
3866         * sysdeps/unix/mknod.S: File removed.
3867         * sysdeps/unix/stat.S: File removed.
3868         * sysdeps/unix/sysv/linux/fstat.c: File removed.
3869         * sysdeps/unix/sysv/linux/i386/fxstat.S: File removed.
3870         * sysdeps/unix/sysv/linux/i386/lxstat.S: File removed.
3871         * sysdeps/unix/sysv/linux/i386/xmknod.S: File removed.
3872         * sysdeps/unix/sysv/linux/i386/xstat.S: File removed.
3873         * sysdeps/unix/sysv/linux/lstat.c: File removed.
3874         * sysdeps/unix/sysv/linux/mknod.c: File removed.
3875         * sysdeps/unix/sysv/linux/stat.c: File removed.
3876         * sysdeps/unix/sysv/sysv4/i386/fstat.S: File removed.
3877         * sysdeps/unix/sysv/sysv4/i386/lstat.S: File removed.
3878         * sysdeps/unix/sysv/sysv4/i386/mknod.S: File removed.
3879         * sysdeps/unix/sysv/sysv4/i386/stat.S: File removed.
3880         * sysdeps/unix/xmknod.c: New file.
3881         * sysdeps/unix/xstat.c: New file.
3882         * sysdeps/unix/mkfifo.c: Use __xmknod instead of __mknod.
3883         * misc/Makefile (routines): Remove mknod.
3884
3885         * sysdeps/ieee754/ieee754.h (union ieee854_long_double.ieee_nan):
3886         Add missing ; in little-endian case.
3887
3888         * elf/dynamic-link.h [ELF_MACHINE_NO_REL] (ELF_DYNAMIC_DO_REL):
3889         Define this instead of ELF_DYNAMIC_DO_RELA.
3890
3891         * sysdeps/unix/sysv/time.S: Moved from sysv4.
3892         * sysdeps/unix/sysv/irix4/time.S: File removed.
3893
3894         * sysdeps/unix/sysv/linux/signum.h: Moved from
3895         sysdeps/unix/sysv/linux/i386.
3896         (_NSIG): Move inside #ifdef _SIGNAL_H.
3897
3898 Tue Jan 16 17:37:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3899
3900         * sysdeps/unix/seekdir.c: Don't modify POS before seeking.
3901         * sysdeps/unix/telldir.c: Fix position calculation to account for
3902         buffered data properly.
3903
3904         * sysdeps/m68k/Makefile (crypt): Don't define if building a shared
3905         library.
3906
3907         * csu/initfini.c (_init): Call __gmon_start__ if defined (weak ref).
3908         * csu/gmon-start.c (__gmon_start__): Renamed from gmon_start, made
3909         global.
3910         [! HAVE_INITFINI]: Only make it a constructor in this case.
3911
3912         * gmon/Makefile (CFLAGS-mcount.c): New variable.
3913         (mcount.po): New target.
3914
3915         * Makeconfig (CFLAGS): Append $(CFLAGS-$(<F)).
3916
3917         * csu/Makefile [have-initfini=yes] (CPPFLAGS): Append -DHAVE_INITFINI.
3918         (initfini): Compile initfini.c with -fPIC.
3919
3920 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3921
3922         * sysdeps/mips/bytesex.h: Add default byte sex.  By Ralf Baechle.
3923
3924         * sysdeps/unix/sysv/linux/adjtime.c [! MOD_OFFSET]: Use `mode'
3925         member of `struct timex' instead of `modes'.  From Andreas Schwab.
3926
3927         * sysdeps/unix/sysv/linux/mknod.c: New file.  Generic C version.
3928         * sysdeps/unix/sysv/linux/i386/mknod.S: Remove assembler version.
3929
3930         * sysdeps/unix/sysv/linux/Makefile (inhibit-glue): New variable.
3931         [$(subdir) = misc] (sysdep_routines): Add mount, umount, and s_ptrace.
3932         [$(subdir) = misc] (headers): Append sys/mount.h.
3933
3934         * sysdeps/unix/sysv/linux/mount.S, sysdeps/unix/sysv/linux/umount.S:
3935         New files.  Implement system calls.
3936         * sysdeps/unix/sysv/linux/sys/mount.h: New header file.
3937
3938         * sysdeps/unix/sysv/linux/ptrace.c: New file.  Wrapper around
3939         ptrace system call.
3940         * sysdeps/unix/sysv/linux/s_ptrace.S: New file: ptrace system call.
3941
3942         * sysdeps/unix/sysv/linux/i386/gnu/types.h: New file with correct
3943         types for i386/Linux.
3944
3945 Sun Jan 14 17:51:09 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3946
3947         * MakeTAGS (all-sources, all-headers): Always search the
3948         current directory first.
3949
3950         * db/btree/bt_seq.c (__bt_first): Return RET_SPECIAL when key not
3951         found.
3952
3953         * stdio-common/vfscanf.c (inchar, conv_error, input_error,
3954         memory_error): Add cast to void to avoid gcc warning.
3955         (vfscanf): Rewrite character class parsing to make it more efficient.
3956
3957         * misc/efgcvt_r.c (ecvt_r): Handle negative values.
3958
3959         * stdlib/stdlib.h: Replace __CONSTVALUE by attribute.
3960         * stdlib/abs.c, stdlib/div.c, stdlib/labs.c, stdlib/ldiv.c,
3961         sysdeps/generic/hypot.c: Remove obsolete __CONSTVALUE.
3962
3963         * stdio-common/printf_fp.c (__printf_fp): Fix parameter
3964         declaration.
3965
3966         * sysdeps/generic/putenv.c (putenv): Fix second argument of
3967         setenv.
3968
3969         * sysdeps/ieee754/hypot.c: New file, extracted out of cabs.c.
3970         * sysdeps/ieee754/cabs.c: Don't define hypot here.
3971
3972         * sysdeps/ieee754/ieee754.h (union ieee854_long_double): Fix
3973         definition of ieee_nan alternative.
3974
3975         * sysdeps/m68k/__longjmp.c, sysdeps/m68k/setjmp.c: Add register
3976         prefix spec.
3977
3978         * sysdeps/m68k/ffs.c (ffs): Fix register constraint.
3979
3980         * sysdeps/m68k/fpu/__math.h: Include <errno.h>.  Replace obsolete
3981         __CONSTVALUE by attribute.
3982         (floor): Round to negative infinity.
3983         (rint, expm1) [__NO_MATH_INLINES]: Don't define, to avoid type
3984         clash when compiling source.
3985         (pow): Handle x == 0 and x < 0.
3986         (ceil, __isinf, __isnan): Fix register constraints.
3987         (__isinfl, __isnanl): Added.
3988         * sysdeps/m68k/fpu/acos.c, sysdeps/m68k/fpu/atan2.c,
3989         sysdeps/m68k/fpu/fmod.c, sysdeps/m68k/fpu/ldexp.c,
3990         sysdeps/m68k/fpu/pow.c: Remove obsolete __CONSTVALUE.
3991
3992         * sysdeps/m68k/bsd-_setjmp.S, sysdeps/m68k/bsd-setjmp.S: Fix
3993         assembler syntax.
3994
3995         * sysdeps/unix/bsd/bsd4.4/fchdir.S (fchdir): Take only one
3996         argument.
3997
3998         * sysdeps/unix/bsd/clock.c (timeval_to_clock_t): Fix timeval to
3999         clock_t conversion.
4000         (clock): Don't multiply by CLOCKS_PER_SEC.
4001
4002         * sysdeps/unix/bsd/poll.c (poll): Fix msec to timeval conversion.
4003
4004         * sysdeps/unix/bsd/sun/m68k/brk.S (brk): Compare with address of
4005         __end.
4006
4007         * sysdeps/unix/bsd/sun/m68k/vfork.S: Fix assembler syntax.
4008
4009         * sysdeps/unix/bsd/ualarm.c (ualarm): Fix timeval calculation.
4010
4011         * sysdeps/unix/bsd/vax/vfork.S: Remove duplicate label.
4012
4013 Sun Jan 14 01:01:10 1996  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
4014
4015         * stdlib/strtol.c: Return correct pointer for strings
4016         like "0xyz" and base 0 or 16.
4017
4018         * string/strxfrm.c: Handle case for LENGTH == 0 correct.
4019
4020         * sunrpc/etc.rpc: Add some more known protocols.
4021
4022 Fri Jan 12 13:40:01 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4023
4024         * posix/gnu/types.h: Moved to sysdeps/generic/gnu/types.h.
4025
4026         * posix/glob.c (glob): Add parens in glob call flags arg for
4027         GLOB_BRACE case.
4028
4029         * string/string.h (strdupa): New macro.
4030
4031         * stdio-common/vfscanf.c (%[): Grok ] as first char in set, not
4032         terminator on empty set.  From drepper.
4033
4034 Thu Jan 11 13:09:20 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4035
4036         * elf/do-rel.h (elf_dynamic_do_rel): Use referring symbol as
4037         referent for STB_LOCAL.
4038
4039 Wed Jan 10 10:11:39 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4040
4041         * time/africa, time/antarctica, time/asia, time/australasia,
4042         time/europe, time/northamerica, time/pacificnew, time/solar87,
4043         time/solar88, time/solar89, time/southamerica: Updated from ADO 96a.
4044
4045 Tue Jan  9 16:10:26 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4046
4047         * elf/dl-load.c (_dl_map_object_from_fd): After mapping first
4048         segment to find location, mprotect excess region to no access,
4049         don't munmap it.
4050
4051         * sysdeps/mach/hurd/dl-sysdep.c (mmap): If vm_map returns
4052         KERN_NO_SPACE for fixed location, deallocate it and try again.
4053
4054 Mon Jan  8 17:43:23 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4055
4056         * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
4057         * locale/hash.c: Renamed to locale/locfile-hash.c.
4058
4059 Sat Jan  6 16:39:14 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4060
4061         * Makefile (subdirs): Added db.
4062
4063         * resolv/Makefile (routines): Add res_data.
4064         * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
4065         Updated from BIND 4.9.3 final release.
4066
4067         * elf/dynamic-link.h (elf_get_dynamic_info): Handle
4068         processor-specific tags.
4069         (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
4070
4071         * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
4072         * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
4073
4074         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
4075         arg LAZY.  Only do our work if LAZY and there is a DT_JMPREL record.
4076         * elf/dl-reloc.c (_dl_relocate_object): Call
4077         elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
4078
4079         * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
4080         Align end of load segment only to page size, not to segment alignment.
4081
4082 Thu Jan  4 11:35:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4083
4084         * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
4085         preemption interface.
4086
4087         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4088         Use _hurdsig_catch_memory_fault.
4089
4090         * hurd/Makefile (headers): Add hurd/sigpreempt.h.
4091         (sig): Add catch-signal.
4092
4093         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
4094         Rewritten using a preempter in new interface.
4095         * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
4096         (_hurdsig_catch_memory_fault): New macro.
4097
4098 Wed Jan  3 20:23:42 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4099
4100         * hurd/catch-signal.c: New file.
4101
4102         * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
4103
4104         * hurd/hurdsig.c: Use new hurdfault.h interface.
4105         (abort_all_rpcs): Mutate return value to EINTR in threads whose
4106         replies we will wait for.
4107
4108         * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
4109         do ourselves last.
4110
4111 Wed Jan  3 19:17:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
4112
4113         * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
4114         to auth_makeauth() in the right order.
4115
4116 Wed Jan  3 17:19:04 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4117
4118         * sysdeps/generic/strsep.c: Rewritten.
4119
4120         * sysdeps/mach/hurd/fork.c: Use a different workaround for the
4121         suspended page fault deadlock kernel bug: thread_abort our signal
4122         thread first thing after proc_dostop.
4123
4124         * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
4125         recognize rootness properly.
4126
4127 Tue Jan  2 00:50:10 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4128
4129         * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
4130         (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
4131         * hurd/hurd/sigpreempt.h: New file.
4132         * hurd/preempt-sig.c: Rewritten with new interface.
4133         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
4134         preempters being unwound past.
4135         * hurd/hurdsig.c: Use new signal preemption interface.
4136
4137         * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
4138         release.
4139
4140         * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
4141         compatibility.
4142
4143         * misc/queue.h: New file, incorporated from 4.4BSD.
4144         * misc/Makefile (headers): Add queue.h.
4145
4146         * posix/sys/types.h [__USE_BSD]: Include endian.h.
4147
4148         * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
4149         New macros.
4150
4151 Thu Dec 28 10:21:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4152
4153         * sysdeps/generic/confname.h: Define all names as self-referential
4154         macros so #ifdef works.
4155
4156         * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
4157         of _hurd_signal_preempters[SIGNO].
4158
4159 Mon Dec 25 20:56:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4160
4161         * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
4162         EADDRINUSE.  If translated node doesn't grok ifsock protocol,
4163         return EADDRINUSE.
4164
4165         * sysdeps/mach/hurd/connect.c: Make address arg
4166         `const struct sockaddr_un *'.
4167         The redecl is kosher and avoids another variable for AF_LOCAL case.
4168         * sysdeps/mach/hurd/sendto.c: Likewise.
4169         * sysdeps/mach/hurd/bind.c: Likewise.
4170
4171         * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
4172         code for GCC >= 2.7; use __transparent_union__ for name safety;
4173         add several sockaddr flavors.
4174         (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
4175         constructing the transparent union declarations.
4176         (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
4177         (bind, connect, sendto): Make the sockaddr argument use that.
4178
4179 Fri Dec 22 00:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4180
4181         * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
4182         old vector.
4183         * sysdeps/mach/hurd/setuid.c: Likewise.
4184
4185         * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
4186         right thing.
4187         * sysdeps/mach/hurd/setgid.c: Likewise.
4188         * sysdeps/mach/hurd/setreuid.c: Likewise.
4189         * sysdeps/mach/hurd/setregid.c: Likewise.
4190         * sysdeps/mach/hurd/setegid.c: Likewise.
4191         * sysdeps/mach/hurd/seteuid.c: Likewise.
4192
4193         * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
4194         proc_dostop call to work around kernel paging bug.
4195
4196 Fri Dec 22 00:38:00 1995  H.J. Lu  <hjl@nynexst.com>
4197
4198         * stdio-common/vfscanf.c: Correctly handle white space skipping.
4199         * stdio-common/Makefile (tests): Add bug11.
4200         * stdio-common/bug11.c: New file.
4201
4202 Thu Dec 21 12:19:32 1995  Miles Bader  <miles@gnu.ai.mit.edu>
4203
4204         * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
4205         instead of putting it (and other uids) in the gids and leaving the
4206         old uids as is.
4207
4208 Wed Dec 20 18:23:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4209
4210         * stdio/internals.c (flushbuf): If the target is -1, always
4211         discard the buffer of read data.
4212         Only set TWIDDLED flag in !ALIGNED case.
4213         Never increment target or offset when old value is -1.
4214
4215 Tue Dec 19 17:00:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4216
4217         * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
4218         pgrp changes.
4219
4220 Mon Dec 18 13:40:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4221
4222         * stdio/fread.c: Don't increment __offset when it's -1.
4223
4224         * elf/rtld.c (dl_main): Prepend tab to "statically linked".  Exit
4225         0 in that case.
4226
4227         * misc/err.c (vwarnx, vwarn): Fix major brainos.
4228
4229         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
4230         inheritance.
4231
4232 Sun Dec 17 15:56:35 1995  Miles Bader  <miles@gnu.ai.mit.edu>
4233
4234         * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
4235
4236 Sat Dec 16 10:33:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4237
4238         * Makerules: Use $(do-install-so) for installing shared objects.
4239         (do-install-so): New canned sequence.  Make a symlink LIB.so after
4240         installing LIB.so.VERSION.
4241
4242         * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
4243
4244 Fri Dec 15 04:41:22 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4245
4246         * stdio-common/Makefile (tests): Add bug10.
4247         * stdio-common/bug10.c: New file.  From HJ Lu.
4248
4249         * stdio-common/tstdiomisc.c: Make more test-suite like: exit
4250         status tells about successful run.
4251
4252         * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
4253         format correctness.
4254         Correct handling of trailing white spaces in format + EOF.
4255
4256 Fri Dec 15 01:31:56 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4257
4258         * stdio-common/Makefile (tests): Add bug8 and bug9.
4259         * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
4260
4261         * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
4262
4263         * stdlib/strtod.c: Correct spelling: nominator -> numerator.
4264         Thanks to Jim Meyering.
4265
4266 Sat Nov 25 06:05:12 1995  H.J. Lu  <hjl@nynexst.com>
4267
4268         * stdio-common/vfscanf.c: Always check width !=0.
4269         Correctly handle %%.
4270
4271 Thu Dec 14 02:28:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4272
4273         * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
4274         and cast STREAM to DIR * before passing to readdir and closedir.
4275
4276 Wed Dec 13 22:06:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4277
4278         * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
4279         after aborting RPCs but before calling proc_mark_stop.
4280
4281 Mon Dec 11 20:07:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4282
4283         * posix/glob.c [! STDC_HEADERS]: Declare getenv.
4284         (glob): Avoid using function as value.
4285
4286         * elf/rtld.c (dl_main): When mapping argument executable, set
4287         l_name to "", not l_libname.
4288         After loading DT_NEEDED library, set its l_type to lt_library.
4289
4290         * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
4291         VM_INHERIT.  We can't handle MAP_INHERIT easily.
4292         Handle non-page-aligned addresses if congruent to offset.
4293
4294         * elf/dl-init.c: Skip the initializer for l_type lt_executable
4295         with l_name "". Start at _dl_loaded; don't skip the first element.
4296
4297         * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
4298         (MAP_COPY): Define to MAP_PRIVATE if undefined.
4299         (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
4300         If file it ET_EXEC, set its l_type to lt_executable.
4301
4302 Sun Dec 10 09:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4303
4304         * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
4305
4306 Fri Dec  8 13:04:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4307
4308         * locale/error.c, locale/error.h: Files removed.
4309         * locale/Makefile (distribute): Remove error.h.
4310         (lib-modules): Remove error.
4311
4312         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
4313         magic, return ENXIO if no ctty.
4314
4315         * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
4316         mapping if vm_map fails for that reason.
4317
4318         * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
4319         GLOB_TILDE, GLOB_NOMAGIC.
4320         (glob): Use stat instead of lstat to determine directoriness.
4321         * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
4322         New flag bits.
4323         (__GLOB_FLAGS): Include them.
4324         (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
4325         gl_stat.
4326
4327         * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
4328
4329         * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
4330         define all the bit values.
4331         (MAP_*, MCL_*): Macros removed.
4332
4333 Thu Dec  7 02:27:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4334
4335         * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
4336         Updated from BIND 4.9.3-BETA27.
4337
4338 Wed Dec  6 18:44:01 1995  Miles Bader  <miles@gnu.ai.mit.edu>
4339
4340         * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
4341
4342         * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
4343         we get a delayed reply.
4344         Only grab values out of entries in TYPES that have SELECT_RETURNED
4345         turned on, and turn it on whenever an rpc returns.
4346         Only clear bits in the user's fdsets -- those needing to be set
4347         should be already.
4348         Use SELECT_ALL in appropiate places.
4349         (SELECT_RETURNED, SELECT_ALL): New macros.
4350
4351 Wed Dec  6 09:10:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4352
4353         * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
4354
4355         * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
4356
4357 Tue Dec  5 14:00:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4358
4359         * misc/Makefile (headers): Add error.h, err.h.
4360         (routines): Add error, err.
4361         (gpl2lgpl): New variable.
4362         * misc/err.c: New file.
4363         * misc/err.h: New file.
4364         * misc/error.c, misc/error.h: New files.
4365
4366         * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
4367
4368         * Makeconfig (+link): Translate libc% from $^, not just libc.a.
4369         (link-libc): Append $(libc.so-version) to libc.so.
4370         (built-program-cmd): Fix comma usage.
4371         * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
4372         symlink to libc.so in the build directory.
4373         * Rules ($(others) $(tests)): Depend on the library that appears
4374         in $(link-libc).
4375         (%.out): Use $(built-program-cmd) in commands.
4376
4377         * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
4378
4379         * sysdeps/generic/setenv.c: Added canonical portability cruft.
4380         (setenv): Use realloc on LAST_ENVIRON instead of always copying.
4381         (unsetenv): New function.
4382         * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
4383         * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
4384
4385 Tue Dec  5 02:27:32 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4386
4387         * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
4388
4389         * libio/iofscanf.c: Remove file.
4390
4391         * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
4392         termination.
4393
4394         * libio/iopopen.c: New file from GNU libio.
4395
4396         * libio/memstream.c: Fixed bug in fclose handling.  Instead of
4397         providing a close callback we need a finish callback.
4398
4399         * libio/pclose.c: New file.  Derived from popen.c in GNU libio.
4400
4401         * posix/gnu/types.h: Fixed typo.
4402
4403         * stdio-common/errnobug.c: fputs returns EOF in error case.  Do
4404         not test for != 0.
4405
4406         * stdio-common/printf-parse.h (parse_one_spec): Do not force
4407         padding with ' ' if precision is given.  Fix by HJ Lu.
4408
4409         * stdio-common/printf_fp.c: Fix comment.
4410
4411         * stdio-common/tfformat.c, stdio-common/tiformat.c,
4412         stdio-common/tstdiomisc.c: New files from GNU libio test suite.
4413
4414         * stdio-common/tstgetln.c: Provide ssize_t type when testing
4415         libio.
4416
4417         * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
4418         (vfprintf): Cleasr args_type array before using it.
4419         When printing 0 as an integer with precision 0 nothing must be
4420         written for the number.
4421         Based on patch by HJ Lu.
4422
4423         * stdio-common/vfscanf.c: Remove fixed input buffer.  Now we
4424         have a dynamically extended buffer.
4425
4426         * stdlib/strtod.c: Merge with version in Linux libc.  This fixes
4427         some bugs with handling of very small numbers and has different
4428         solution for formaer patches.
4429
4430         * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
4431         macros r1 and r2 to t1, and t2 resp.  This is necessary because
4432         glibc headers also define r1.
4433
4434 Mon Dec  4 12:10:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4435
4436         * stdlib/gen-mpn-copy (translations): Updated for new layout in
4437         GMP 1.910.
4438
4439         * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
4440         made global.
4441         (malloc): Caller changed.
4442         * malloc/realloc.c (realloc): Call __malloc_initialize if
4443         necessary, before checking hook.
4444         * malloc/malloc.h: Declare __malloc_initialize.
4445
4446         * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
4447         as integer_t arg in RPC.
4448
4449 Sat Dec  2 03:47:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4450
4451         * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
4452         (_hurd_set_brk): Try to allocate more space when we run out.
4453
4454         * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
4455         zero and examine it again.
4456         * sysdeps/unix/sysv/linux/i386/brk.c: New file.
4457         * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
4458         * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
4459         * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
4460         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
4461         Invoke this macro before calling DL_MAIN.
4462
4463         * malloc/malloc.c (malloc): Do initialization here, before
4464         checking the hook.
4465         (_malloc_internal): Don't do it here.
4466
4467 Wed Nov 29 12:30:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4468
4469         * libio/vsnprintf.c (__vsnprintf): Define as alias.
4470         * libio/iovsscanf.c (__vsscanf): Define as alias.
4471         * asprintf.c: Remove libio adaptation code added by drepper.
4472         * dprintf.c: Likewise.
4473         * printf.c: Likewise.
4474         * scanf.c: Likewise.
4475         * snprintf.c: Likewise.
4476         * sprintf.c: Likewise.
4477         * sscanf.c: Likewise.
4478         * vprintf.c: Likewise.
4479         * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
4480         function.
4481         (vfscanf): Define unconditionally.
4482
4483         * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
4484         zero for value.
4485
4486         * misc/getpass.c: Write a newline after reading the unechoed
4487         password.
4488
4489 Mon Nov 27 19:24:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4490
4491         * posix/Makefile (routines): Add getsid.
4492         * sysdeps/unix/sysv/linux/getsid.S: New file.
4493         * sysdeps/mach/hurd/getsid.c: New file.
4494         * sysdeps/stub/getsid.c: New file.
4495         * posix/unistd.h [__USE_GNU]: Declare getsid.
4496
4497 Sun Nov 26 12:44:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4498
4499         * libc-symbols.h (N_): New macro.
4500
4501 Sat Nov 25 02:48:47 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4502
4503         * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
4504         malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
4505         resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
4506         sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
4507         sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
4508         sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
4509         sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
4510         sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
4511         strings.
4512
4513 Sun Nov 26 02:00:02 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4514
4515         * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
4516
4517 Thu Nov 23 02:21:55 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4518
4519         * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
4520         New files.
4521         * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
4522         mlock, munlock, mlockall, and munlockall.
4523
4524 Thu Nov 23 18:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4525
4526         * configure.in (--enable-libio): Set $stdio based on $enableval,
4527         not always to libio.
4528
4529 Thu Nov 23 18:06:48 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
4530
4531         * malloc/malloc.c (_malloc_internal): Can't use
4532         get_contiguous_space when the heap info table
4533         will be growing.  Account for new contiguous space in _heaplimit.
4534
4535 Wed Nov 22 12:37:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4536
4537         * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
4538         for errno.
4539
4540         * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
4541         alias for _IO_vfprintf.
4542
4543         * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
4544
4545         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
4546         __fpu_control instead of ___fpu_control.
4547         * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
4548         (___fpu_control): Renamed to __fpu_control.
4549         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
4550         * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
4551
4552         * elf/dl-minimal.c: New file.
4553         * elf/Makefile (rtld-routines): Add dl-minimal.
4554         * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
4555         Functions moved to dl-minimal.c.
4556         * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
4557         sigjmp_save, longjmp): Likewise.
4558
4559         * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
4560         to &_end, regardless of PIC.
4561
4562         * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
4563
4564 Tue Nov 21 14:12:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4565
4566         * malloc/malloc.c (align): Don't check contiguity and call abort.
4567
4568         * hurd/hurdsig.c (post_reply): Function removed.
4569         (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
4570         Take single callback fn arg instead of reply port and type.
4571         (_hurd_internal_post_signal): Callers changed.
4572         Cache reply stub fn ptr in local var before UNTRACED might be changed.
4573
4574         * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
4575         PROT_READ|PROT_WRITE copy mapping.  Pass a proper vm_inherit_t to
4576         vm_map.
4577
4578         * elf/rtld.c (_dl_start): For --list, do output and exit before
4579         relocating.
4580
4581 Mon Nov 20 16:19:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4582
4583         * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
4584         get .c and .h files.
4585
4586         * malloc/malloc.c (align): Use abort instead of assert.
4587
4588 Sun Nov 19 18:23:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4589
4590         * Makeconfig (+includes): Add $($(stdio)-include).
4591         (libio-include): New variable.
4592
4593         * stdlib/strtod.c: Put weak_symbol after function defn.
4594         * stdlib/strtol.c: Likewise.
4595
4596         * configure.in (--enable-libio): If not present, set $stdio to
4597         "default".  Move stdio/libio check to end, so sysdeps fragments
4598         can affect it.  Reset $stdio to "stdio" if it's "default".
4599         * sysdeps/unix/sysv/linux/configure: New file.
4600
4601 Sat Nov 18 16:46:01 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
4602
4603         * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
4604         libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
4605         libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
4606         libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
4607         libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
4608         libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
4609         libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
4610         libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
4611         libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
4612         libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
4613         libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
4614         libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
4615         libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
4616         libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
4617         libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
4618         New files.  Slightly modified version from Linux libc.
4619
4620         * libio/memstream.c, libio/vdprintf.c: New files for functions not
4621         (yet) part of GNU libio.
4622
4623         * libio/iofopncook.c: Implementation of `fopencookie', mainly written
4624         by Per Bothner.
4625
4626         * stdio-common/getline.c: Adapted to libio.
4627         * stdio-common/snprintf.c: Adapted to libio.
4628         * stdio-common/vfprintf.c: Adapted to libio.
4629         * stdio-common/vfscanf.c: Adapted to libio.
4630         * sysdeps/posix/tempname.c: Adapted to libio.
4631
4632 Fri Nov 17 17:57:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4633
4634         * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
4635
4636         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
4637         function.
4638
4639         * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
4640         (_hurdsig_fault_init): Remove #if 0 from setting exception port.
4641         Insert send right for SIGEXC before thread_set_special_port.
4642         * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
4643         (_hurdsig_init): Remove #if 0 from setting exception port.
4644
4645         * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
4646         HURD_MSGPORT_RPC macro.
4647
4648 Thu Nov 16 06:07:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4649
4650         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
4651         function.
4652         (_dl_sysdep_start): Move cleanup code there.
4653
4654         * Makeconfig (default-rpath): New variable.
4655         (link-libc): Use it.
4656         * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
4657         * elf/rtld.c (_dl_rpath): New variable.
4658         (_dl_start): Set it from rtld_map's DT_RPATH.
4659         Call _dl_setup_hash on rtld_map.
4660         (dl_main): Cache address of _exit in variable before relocating,
4661         and use that in later calls.  Call _dl_sysdep_start_cleanup before
4662         relocating.  Keep track of dependency order while loading; remove
4663         rtld_map from chain, and reinsert in proper order if there is a
4664         dependency on it.
4665
4666         * sysdeps/generic/Makefile (make_siglist): Pass
4667         -DSIGNUM_H=... with config's signum.h location.
4668         * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
4669         signal numbers.
4670         (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
4671         (main): Deansideclize output.
4672
4673         * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
4674         of DEFAULT_RPATH macro.
4675         * elf/Makefile: Undo last change.
4676
4677         * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
4678
4679 Wed Nov 15 19:22:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4680
4681         * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
4682         error if weak.
4683
4684         * elf/Makefile (default-rpath): New variable.
4685         (CPPFLAGS): Append -DDEFAULT_RPATH=....
4686         * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
4687         hard-coded "/lib:/usr/lib".
4688
4689         * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
4690         instead of stdio.
4691         (_dl_sysdep_start): If passed user entry is zero and
4692         EXEC_STACK_ARGS flag set, reset user entry to &_start.
4693
4694         * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
4695         DT_HASH element.
4696
4697         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
4698         repeat weak decl using weak_symbol macro, in case using broken GCC
4699         (<2.8).
4700
4701 Wed Nov 15 18:49:55 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
4702
4703         * sysdeps/i386/isnanl.c: New file.
4704         * sysdeps/i386/isinfl.c: New file.
4705
4706 Tue Nov 14 18:44:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4707
4708         * malloc/free.c (free): Moved null and aligned_blocks checks
4709         inside _free_internal.
4710
4711 Mon Nov 13 15:23:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4712
4713         * malloc/malloc.c (morecore): Fix inverted test in allocating new
4714         info table.
4715
4716         * malloc/malloc.c (align): Fix assertion.
4717
4718         * malloc/malloc.c: Include assert.h.
4719
4720         * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
4721
4722         * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
4723         (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
4724
4725 Fri Nov 10 14:15:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4726
4727         * malloc/malloc.c (align): Assert that space for alignment
4728         adjustment is same original space.
4729
4730         * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
4731         arg to vm_address_t.
4732
4733         * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
4734         skip straight to pending check.  When UNTRACED, resume process
4735         from suspension first.
4736
4737         * intl/Makefile (headers): New variable, libintl.h.
4738         [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
4739         * configure.in: Check for --with-gettext arg.
4740
4741 Fri Nov 10 13:51:30 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
4742
4743         * malloc/malloc.c (get_contiguous_space): New function.
4744         (morecore): Rewrite allocating new malloc info table.
4745         (_malloc_internal): Use get_contiguous_space.
4746
4747 Fri Nov 10 13:03:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4748
4749         * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
4750         _hurd_msgport to be destroyed.
4751
4752         * Makerules (installed-libcs): Filter out %_pic.a.
4753
4754         * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
4755         to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
4756
4757         * hurd/Makefile (user-interfaces): Add hurd/process_request.
4758
4759 Wed Nov  8 16:31:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4760
4761         * termios/Makefile (headers): Add sys/ttychars.h.
4762         * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
4763         for compatibility.
4764
4765         * signal/signal.h [__USE_BSD] (sig_t): New typedef.
4766
4767 Wed Nov  8 15:12:47 1995  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
4768
4769         * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
4770         proc server that we are now traced.
4771
4772 Tue Nov  7 12:29:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4773
4774         * elf/Makefile (ldd): Make it executable.
4775
4776         * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
4777
4778         * Makeconfig (slibdir): New variable.
4779         * Makerules (install): Install libc.so in $(slibdir).
4780         * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
4781         in $(slibdir).
4782
4783         * elf/linux-compat.c: New file.
4784         * elf/Makefile (distribute): Add linux-compat.c.
4785         (generated): Add librtld.so.
4786         [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
4787         [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
4788         (librtld.so): New target.
4789         (ld.so, ld-linux.so.1): Make from librtld.so.
4790
4791         * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
4792         call our own DT_INIT if we have one (and then clear it).
4793         (__dgettext): New weak function.
4794
4795         * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
4796         by hand instead.
4797
4798         * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
4799         instead of snprintf.
4800
4801         * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
4802         BUF[BUFLEN].
4803
4804         * elf/rtld.c (rtld_map): New static variable.
4805         (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
4806         bootstrapping.  Then copy data into `rtld_map'.
4807         (dl_main): Finish filling in rtld_map and link it into the chain,
4808         instead of allocating a new structure.
4809         (dl_main): Call _dl_compat_init if it is defined (use weak ref).
4810
4811         * elf/dlsym.c: Fix last change: move REF out of `doit'.
4812
4813 Mon Nov  6 16:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4814
4815         * elf/dlsym.c: Return the proper value, not just the defining
4816         object's loadbase.
4817
4818 Sun Nov  5 16:09:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4819
4820         * stdio-common/vfprintf.c (%c): Count the character itself towards
4821         the field width in all cases.
4822
4823         * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
4824         __vm_deallocate arg to vm_address_t.
4825
4826 Fri Nov  3 17:27:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4827
4828         * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
4829         socket_create_address.
4830         * sysdeps/mach/hurd/connect.c: Likewise.
4831         * sysdeps/mach/hurd/bind.c: Likewise.
4832
4833         * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
4834         args to proc_getprocinfo.
4835         * sysdeps/mach/hurd/getpriority.c: Likewise.
4836
4837         * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
4838
4839 Thu Nov  2 19:24:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4840
4841         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
4842
4843 Tue Oct 31 00:07:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4844
4845         * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
4846         PI_FETCH_TASKINFO to proc_getprocinfo and through
4847         _hurd_priority_which_map.
4848
4849         * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
4850         _hurd_priority_which_map.
4851         * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
4852         passed through to proc_getprocinfo RPC.
4853         * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
4854
4855         * sysdeps/mach/hurd/group_member.c: New file.
4856         * sysdeps/generic/group_member.c: New file.
4857
4858         * Makerules (lib-noranlib): Don't depend on $(install-lib).
4859         (others): Do.
4860         * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
4861
4862 Mon Oct 30 12:33:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4863
4864         * Rules (others): Depend on $(extra-objs).
4865
4866         * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
4867         * posix/Makefile (routines): Add group_member.
4868
4869         * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
4870
4871         * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
4872         SIG operand in asm so it must be a register.
4873         Add dead return to quiet gcc warning.
4874
4875         * Makerules (sysd-rules): Write a defn for sysd-rules-done.
4876         [! sysd-rules-done]: Inhibit deps.
4877
4878 Thu Oct 26 23:11:11 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
4879
4880         * sysdeps/unix/sysv/linux/poll.c: Don't define as stub.  Use
4881         simulation of system call using select.
4882
4883         * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
4884
4885         * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
4886
4887         * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
4888         name usage (new->act, old->oact).
4889         Correct asm statement because of gcc strangeness.
4890
4891         * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
4892
4893         * sunrpc/clnt_perr.c: Remove declaration of sys_errlist.  They
4894         conflict with the ones in stdio.h.
4895
4896         * string/tester.c: %Z is no complete format.  Change to %Zd.
4897
4898 Thu Oct 26 18:13:33 1995  Miles Bader  <miles@gnu.ai.mit.edu>
4899
4900         * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
4901         * sysdeps/mach/hurd/link.c (__link): Ditto.
4902         * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
4903         * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
4904         Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
4905
4906 Thu Oct 26 00:11:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4907
4908         * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
4909
4910         * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
4911         on syscall_error.  For PIC, it is a local label;
4912         for non-PIC, JUMPTARGET expands to the unadorned name anyway.
4913         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
4914         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4915         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4916         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
4917         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4918         * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
4919
4920 Thu Oct 26 03:01:22 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
4921
4922         * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
4923         comment to the necessary ones.  Add _readv and _writev.
4924
4925         * sysdeps/unix/configure.in: Change syntax for system call test
4926         candidates and adapt sed script for this.  Now use : to separate
4927         syscall name and file name.
4928
4929         * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
4930         number is now set is DO_CALL.  So call with additional argument.
4931         (DO_CALL): Takes an additional argument.  Load system call
4932         number according to new argument.
4933         (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
4934         * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
4935         locally using SYSCALL_ERROR_HANDLER macro.
4936         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
4937         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
4938         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
4939         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
4940         * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
4941         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
4942         Don't use DO_CALL macro; instead use lower level macros for better
4943         control.
4944
4945         * sysdeps/unix/sysv/linux/sigaction.h: New file.
4946         * sysdeps/unix/sysv/linux/sigaction.S: File removed.
4947         * sysdeps/unix/sysv/linux/signal.S: File removed.
4948
4949 Wed Oct 25 14:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4950
4951         * hurd/hurdstartup.c (_hurd_startup): Use new
4952         exec_startup_get_info RPC from exec_startup.defs
4953         in place of old exec_startup from exec.defs.  Remove kludge to
4954         guess user entry and phdr locations, since the new RPC gives us
4955         that info.
4956
4957         * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
4958         * sysdeps/generic/_strerror.c: Undo last change.
4959
4960         * sysdeps/unix/sysv/linux/stat.c: New file.
4961         * sysdeps/unix/sysv/linux/fstat.c: New file.
4962         * sysdeps/unix/sysv/linux/lstat.c: New file.
4963         * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
4964         * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
4965         * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
4966
4967 Tue Oct 24 15:22:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4968
4969         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4970         New macro.
4971         (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
4972
4973         * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
4974         only #ifndef PIC.
4975
4976         * Makeconfig (built-program-cmd): New variable.
4977         * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
4978         * time/Makefile (zic-cmd): Likewise.
4979
4980         * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
4981
4982         * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
4983         * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
4984         make `others' rather than `lib-noranlib' depend on the libraries.
4985
4986         * sysdeps/unix/configure.in: Check for fchdir syscall.
4987         Improve sed script to allow / on rhs without / on lhs.
4988
4989 Thu Oct 19 03:47:32 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
4990
4991         * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
4992
4993         * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
4994
4995         * sysdeps/unix/sysv/linux/select.S: New file.
4996
4997 Wed Oct 18 03:33:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4998
4999         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
5000         SYSCALL_PIC_SETUP before jumping to syscall_error.
5001         * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
5002         (PSEUDO): Use it before jumping to syscall_error.
5003         * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
5004         expect it in %ebx on entry.  Pop old %ebx value off stack after
5005         using it.
5006
5007         * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
5008         them.
5009
5010         * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
5011
5012         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
5013         `fd/', pass the right pointer to strtol to parse the number.
5014
5015 Tue Oct 17 23:00:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5016
5017         * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
5018         of stdio/_itoa.h.
5019
5020 Tue Oct 17 19:51:17 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5021
5022         * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
5023         register %ebx before calling __xstat through PLT.
5024
5025         * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
5026
5027         * sysdeps/unix/sysv/linux/sigset.h: Remove file.
5028
5029 Tue Oct 17 01:21:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5030
5031         * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
5032         stdio/_itoa.h.
5033         * hurd/hurdlookup.c: Likewise.
5034
5035         * hurd/hurd/signal.h: Declare hurd_preempt_signals and
5036         hurd_unpreempt_signals.
5037
5038         * stdio/stdio.h: Declare __snprintf and __vsnprintf.
5039
5040         * stdio-common/psignal.c: Translate signal description strings.
5041         * string/strsignal.c: Likewise.
5042         * sysdeps/generic/_strerror.c (_strerror_internal): Translate
5043         error strings.
5044         * sysdeps/mach/_strerror.c: Likewise.
5045
5046         * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
5047         call __vsnprintf.
5048         (snprintf): Define as weak alias.
5049         * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
5050         (vsnprintf): Define as weak alias.
5051
5052 Mon Oct 16 03:22:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5053
5054         * Makerules (install-lib): Filter out %_pic.a; install only the
5055         linked shared objects.
5056
5057         * locale/Makefile (aux): Add SYS_libc.
5058         * locale/SYS_libc.c: New file.
5059         * libc-symbols.h [! ASSEMBLER] (_): New macro.
5060
5061         * configure.in (libc_cv_asm_set_directive): Link program into
5062         conftest instead of letting it default to a.out.
5063
5064         * elf/Makefile (install-others): Add missing slash.
5065
5066         * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
5067         won't search LD_LIBRARY_PATH.
5068
5069         * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
5070         * configure.in: Grok arg --enable-libio.
5071         ($stdio = libio): Define USE_IN_LIBIO.
5072         * config.h.in (USE_IN_LIBIO): Add #undef.
5073         * config.make.in (stdio): New variable, set by configure.
5074         * Makeconfig (stdio): New variable.
5075         * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
5076         stdio/stdio.h.
5077         * stdio-common/Makefile: New file.
5078         * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
5079         * stdio/_itoa.c: Moved to stdio-common.
5080         * stdio/_itoa.h: Moved to stdio-common.
5081         * stdio/asprintf.c: Moved to stdio-common.
5082         * stdio/bug1.c: Moved to stdio-common.
5083         * stdio/bug1.input: Moved to stdio-common.
5084         * stdio/bug2.c: Moved to stdio-common.
5085         * stdio/bug3.c: Moved to stdio-common.
5086         * stdio/bug4.c: Moved to stdio-common.
5087         * stdio/bug5.c: Moved to stdio-common.
5088         * stdio/bug6.c: Moved to stdio-common.
5089         * stdio/bug6.input: Moved to stdio-common.
5090         * stdio/bug7.c: Moved to stdio-common.
5091         * stdio/dprintf.c: Moved to stdio-common.
5092         * stdio/errnobug.c: Moved to stdio-common.
5093         * stdio/getline.c: Moved to stdio-common.
5094         * stdio/getw.c: Moved to stdio-common.
5095         * stdio/perror.c: Moved to stdio-common.
5096         * stdio/printf-parse.h: Moved to stdio-common.
5097         * stdio/printf-prs.c: Moved to stdio-common.
5098         * stdio/printf.c: Moved to stdio-common.
5099         * stdio/printf.h: Moved to stdio-common.
5100         * stdio/printf_fp.c: Moved to stdio-common.
5101         * stdio/psignal.c: Moved to stdio-common.
5102         * stdio/putw.c: Moved to stdio-common.
5103         * stdio/reg-printf.c: Moved to stdio-common.
5104         * stdio/scanf.c: Moved to stdio-common.
5105         * stdio/snprintf.c: Moved to stdio-common.
5106         * stdio/sprintf.c: Moved to stdio-common.
5107         * stdio/sscanf.c: Moved to stdio-common.
5108         * stdio/tempnam.c: Moved to stdio-common.
5109         * stdio/temptest.c: Moved to stdio-common.
5110         * stdio/test-fseek.c: Moved to stdio-common.
5111         * stdio/test-fwrite.c: Moved to stdio-common.
5112         * stdio/test-popen.c: Moved to stdio-common.
5113         * stdio/test_rdwr.c: Moved to stdio-common.
5114         * stdio/tmpfile.c: Moved to stdio-common.
5115         * stdio/tmpnam.c: Moved to stdio-common.
5116         * stdio/tst-fileno.c: Moved to stdio-common.
5117         * stdio/tst-printf.c: Moved to stdio-common.
5118         * stdio/tstgetln.c: Moved to stdio-common.
5119         * stdio/tstgetln.input: Moved to stdio-common.
5120         * stdio/tstscanf.c: Moved to stdio-common.
5121         * stdio/tstscanf.input: Moved to stdio-common.
5122         * stdio/vfprintf.c: Moved to stdio-common.
5123         * stdio/vfscanf.c: Moved to stdio-common.
5124         * stdio/vprintf.c: Moved to stdio-common.
5125         * stdio/xbug.c: Moved to stdio-common.
5126         * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
5127         stdio-common instead of stdio.
5128         * sysdeps/unix/Makefile (errlist.c rules): Likewise.
5129         * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
5130         function.
5131         * stdio-common/dprintf.c: Likewise.
5132         * stdio-common/printf.c: Likewise.
5133         * stdio-common/scanf.c: Likewise.
5134         * stdio-common/snprintf.c: Likewise.
5135         * stdio-common/sprintf.c: Likewise.
5136         * stdio-common/sscanf.c: Likewise.
5137         * stdio-common/vprintf.c: Likewise.
5138
5139         * Makerules: Include $(+depfiles) directly instead of generating
5140         depend-$(subdir).
5141         (depend-$(subdir)): Target removed.
5142         (common-clean): Don't remove depend-$(subdir).
5143
5144         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
5145         (config-LDFLAGS): Variable removed.
5146
5147         * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
5148         * sysdeps/mach/hurd/bind.c: Likewise.
5149         * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
5150         calling convention.
5151
5152         * hurd/hurdexec.c: Undo last change (10 Oct 95).
5153
5154 Sun Oct 15 21:04:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5155
5156         * hurd/hurd/lookup.h: New file.
5157         * hurd/hurdlookup.c (__file_name_lookup_under): New function.
5158         (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
5159         __hurd_file_name_split): Rewritten to take callback functions for
5160         using any needed init or dtable port, instead of passing in crdir
5161         and cwdir ports.
5162         (__file_name_lookup, __file_name_split): Use new calling
5163         convention; pass _hurd_ports_use and __getdport as the callback
5164         functions.
5165
5166         * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
5167         of __hurd_file_name_lookup.
5168         * sysdeps/mach/hurd/chdir.c: Likewise.
5169         * sysdeps/mach/hurd/fchdir.c: Likewise.
5170         * hurd/fchroot.c: Likewise.
5171
5172         * stdlib/Makefile (mpn-found): Don't omit %.s.
5173         (mpn-copy-sysdep): Omit files in nonexistent directories.
5174         (copy-mpn): Commit files to CVS.
5175         * stdlib/gen-mpn-copy (translations): Update translations for GMP
5176         1.906.7.
5177
5178         * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
5179
5180 Sat Oct 14 02:52:36 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5181
5182         * malloc/malloc.c (_malloc_internal): Performance fix.  Move
5183         if statement out of loop.
5184
5185         * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite.  Much faster
5186         implementation using GMP functions.  Contributed by
5187         Torbjorn Granlund and Ulrich Drepper.
5188
5189         * stdio/test_rdwr.c: Include <errno.h>.
5190
5191         * sysdeps/i386/i586/Implies: New file.
5192
5193         New highly optimized string functions for i[345]86.
5194         * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
5195         * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
5196         * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
5197         * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
5198         * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
5199         * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
5200         * sysdeps/i386/i586/strlen.S: New file.
5201         * sysdeps/i386/memchr.c: Removed.  There is now an assembler version.
5202
5203         * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
5204         not correspond to used values.
5205
5206         * sysdeps/unix/sysv/linux/nfs/nfs.h: New file.  Simply a wrapper
5207         around a kernel header file.
5208         * sysdeps/unix/sysv/linux/Dist: Add it.
5209         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
5210         Likewise.
5211
5212         * sysdeps/unix/sysv/linux/local_lim.h: Rewrite.  Instead of
5213         defining ourself we use a kernel header file.
5214
5215         * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
5216         call handler for i586.
5217
5218         * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
5219
5220 Thu Oct 12 15:45:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5221
5222         * hurd/hurd.h (file_name_lookup_under): Declare it.
5223         * hurd/Makefile (headers): Add hurd/lookup.h.
5224
5225         * hurd/hurdinit.c (_hurd_ports_use): New function.
5226         * hurd/hurd.h (_hurd_ports_use): Declare it.
5227         (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
5228         hurd_file_name_lookup_retry): Remove these decls.
5229         * hurd/Makefile (routines): Remove invoke-trans.
5230
5231 Wed Oct 11 00:00:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5232
5233         * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
5234         apply R_386_PC32 reloc.
5235
5236         * Makeconfig (config-LDFLAGS): Add missing slash.
5237
5238         * sysdeps/mach/hurd/profil.c (fork_profil): Only call
5239         update_waiter if profiling was enabled in the parent.
5240
5241         * csu/initfini.c: Don't pass -f flag to cp.
5242
5243 Tue Oct 10 23:08:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5244
5245         * Makerules (build-shlib): Pass -rpath and -rpath-link options.
5246         (LDFLAGS-c.so): Don't pass -dynamic-linker here.
5247         * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
5248         (link-libc): Pass -rpath and -rpath-link options.
5249
5250         * MakeTAGS (all-dirs): Omit CVS directories.
5251         Specify vpath directives to find source files in $(all-dirs).
5252         (sources, headers): Append sources and headers from $(all-dist) to
5253         these.
5254         (all-dist): Filter them out of this.
5255         (all-headers, all-sources): Use $(shell find ...) instead of
5256         $(wildcard ...).
5257
5258         * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
5259         -rpath-link.
5260
5261         * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
5262
5263         * elf/Makefile (install-others): Add missing $.
5264
5265 Mon Oct  9 02:54:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5266
5267         * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
5268
5269         * Makeconfig (config-LDFLAGS): Define to
5270         -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
5271         (rtld-installed-name): New variable.
5272         * elf/Makefile (install-lib): Variable removed.
5273         (install-others): Define this instead, to
5274         $(libdir)(rtld-installed-name).
5275         ($(libdir)(rtld-installed-name)): New target; install from ld.so.
5276
5277         * elf/ldd.sh.in: New file.
5278         * elf/Makefile (distribute): Add ldd.sh.in.
5279         (install-bin): Add ldd.
5280         ($(objpfx)ldd: ldd.sh.in): New rule.
5281
5282         * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
5283         * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
5284         Translate some Mach errors to Hurd errors.
5285
5286         * elf/rtld.c (dl_main): Under --list, print msg if executable is
5287         statically linked.
5288
5289         * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
5290         table processing.
5291
5292 Sat Oct  7 01:25:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5293
5294         * sysdeps/stub/machine-gmon.h: Add #error.
5295
5296 Fri Oct  6 01:49:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5297
5298         * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
5299         examine it.
5300
5301 Fri Sep 29 03:43:51 1995  Paul Eggert  <eggert@twinsun.com>
5302
5303         Rewrite mktime from scratch for performance, and for correctness
5304         in the presence of leap seconds.
5305
5306         * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
5307         New functions.
5308         (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
5309         TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
5310         <limits.h>, <stdlib.h>: New #includes.
5311         (main): Support tests with given broken-down value; support benchmarks.
5312         (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
5313         do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
5314         <ctype.h>): Remove.
5315
5316         * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
5317         * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
5318
5319         * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
5320         time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
5321
5322         * time/offtime.c (__offtime): Remove useless assignment
5323         `tp->tm_isdst = -1'.
5324
5325         * manual/maint.texi: Update credits.
5326
5327 Fri Oct  6 00:28:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5328
5329         * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
5330         * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
5331         * sysdeps/unix/sysv/linux/readv.c: File removed.
5332         * sysdeps/unix/sysv/linux/writev.c: File removed.
5333         * sysdeps/unix/configure.in: Check for readv and writev syscalls.
5334
5335         * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
5336         set it to $unix_syscall instead of $unix_function.
5337
5338 Thu Oct  5 00:59:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5339
5340         * elf/rtld.c (dl_main): Grok --list flag.
5341         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
5342
5343 Wed Oct  4 00:21:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5344
5345         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
5346         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
5347         * elf/link.h (_dl_sysdep_message): Declare it.
5348
5349         * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
5350         the list.
5351
5352         * time/northamerica: Corrections to Canada data from ADO 95i.
5353
5354         * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
5355         unconditionally.  In socket subdir, append sys/socketcall.h; in
5356         time subdir, append sys/timex.h.
5357         (config-LDFLAGS): New variable.
5358         * sysdeps/unix/sysv/linux/Dist: New file.
5359         * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
5360
5361         * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
5362
5363         * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
5364
5365 Sat Sep 30 11:47:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5366
5367         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
5368         kernel with args on stack, point _dl_hurd_data at zero data
5369         instead of garbage.  When ld.so run as program, grok args
5370         -LIB=MEMOBJ and pre-load shared object files found in memory
5371         objects loaded by the boot loader.
5372
5373         * elf/link.h (struct link_map): New member `l_entry'.
5374         (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
5375         * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
5376         last arg ENTRY_POINT.  Store the entry point location in the
5377         `l_entry' member of the new map.
5378         * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
5379         _dl_map_object.  When run as program, set *USER_ENTRY to L->l_entry.
5380         * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
5381         _dl_map_object.
5382
5383         * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
5384
5385         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
5386         restore %ebx by hand for personality syscall.
5387         GCC cannot deal with spilling the dedicated GOT register.
5388
5389         * misc/Makefile (routines): Add mntent, which was somehow omitted.
5390
5391 Fri Sep 29 15:07:10 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5392
5393         * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
5394         Change name of field `mode' in `struct timex' to `modes'.
5395         Linux-1.3.28 updates this name according to RFC 1489.
5396
5397 Thu Sep 28 13:05:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5398
5399         Merge new message handling code from GNU gettext, by Drepper.
5400         * intl: New directory.
5401         * Makefile (subdirs): Add intl.
5402
5403         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
5404         USER_ENTRY instead of storing it on our stack.
5405
5406         * elf/rtld.c (rtld_command): Variable removed.
5407         (_dl_skip_args): New variable.
5408         (dl_main): Increment _dl_skip_args instead of setting rtld_command.
5409         If the link_map for the executable itself is not first in the chain,
5410         make it so.
5411         * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
5412         count of args to skip.
5413
5414 Thu Sep 28 09:20:04 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5415
5416         * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
5417         leading zeroes.
5418
5419 Wed Sep 27 00:27:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5420
5421         * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
5422         (getcwd): Define as weak alias.
5423         * sysdeps/posix/getcwd.c: Likewise.
5424         * sysdeps/stub/getcwd.c: Likewise.
5425         * posix/unistd.h: Declare __getcwd.
5426
5427         * string/string.h: Declare __strcasecmp.
5428         * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
5429         strcasecmp.
5430         (strcasecmp): Define as weak alias.
5431
5432         * string/string.h: Declare __stpcpy.
5433         * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
5434         (stpcpy): Define as weak alias.
5435
5436         * sysdeps/unix/sysv/linux/Implies: Add unix/common.
5437
5438         * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
5439         Don't use `type' for arg name, since we are using it as a keyword
5440         in the rhs.
5441
5442         * sysdeps/unix/configure.in: Check for syscalls getpriority,
5443         setpriority, getrlimit, setrlimit.
5444
5445         * sysdeps/posix/truncate.c: Include fcntl.h.
5446
5447         * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
5448
5449         * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
5450         use new stub_warning syntax.
5451         * sysdeps/stub/setpriority.c: Likewise.
5452         * sysdeps/stub/__longjmp.c: Likewise.
5453         * sysdeps/stub/_exit.c: Likewise.
5454         * sysdeps/stub/accept.c: Likewise.
5455         * sysdeps/stub/acos.c: Likewise.
5456         * sysdeps/stub/alarm.c: Likewise.
5457         * sysdeps/stub/asin.c: Likewise.
5458         * sysdeps/stub/atan2.c: Likewise.
5459         * sysdeps/stub/bind.c: Likewise.
5460         * sysdeps/stub/cbrt.c: Likewise.
5461         * sysdeps/stub/chroot.c: Likewise.
5462         * sysdeps/stub/closedir.c: Likewise.
5463         * sysdeps/stub/connect.c: Likewise.
5464         * sysdeps/stub/cos.c: Likewise.
5465         * sysdeps/stub/cosh.c: Likewise.
5466         * sysdeps/stub/ctermid.c: Likewise.
5467         * sysdeps/stub/cuserid.c: Likewise.
5468         * sysdeps/stub/defs.c: Likewise.
5469         * sysdeps/stub/exp.c: Likewise.
5470         * sysdeps/stub/fmod.c: Likewise.
5471         * sysdeps/stub/frexp.c: Likewise.
5472         * sysdeps/stub/fsync.c: Likewise.
5473         * sysdeps/stub/getcwd.c: Likewise.
5474         * sysdeps/stub/getenv.c: Likewise.
5475         * sysdeps/stub/gethostid.c: Likewise.
5476         * sysdeps/stub/getlogin.c: Likewise.
5477         * sysdeps/stub/getpeername.c: Likewise.
5478         * sysdeps/stub/getrlimit.c: Likewise.
5479         * sysdeps/stub/getsockname.c: Likewise.
5480         * sysdeps/stub/getsockopt.c: Likewise.
5481         * sysdeps/stub/listen.c: Likewise.
5482         * sysdeps/stub/log.c: Likewise.
5483         * sysdeps/stub/log10.c: Likewise.
5484         * sysdeps/stub/mkfifo.c: Likewise.
5485         * sysdeps/stub/morecore.c: Likewise.
5486         * sysdeps/stub/nice.c: Likewise.
5487         * sysdeps/stub/nlist.c: Likewise.
5488         * sysdeps/stub/opendir.c: Likewise.
5489         * sysdeps/stub/pipestream.c: Likewise.
5490         * sysdeps/stub/ptrace.c: Likewise.
5491         * sysdeps/stub/putenv.c: Likewise.
5492         * sysdeps/stub/readdir.c: Likewise.
5493         * sysdeps/stub/reboot.c: Likewise.
5494         * sysdeps/stub/recv.c: Likewise.
5495         * sysdeps/stub/recvfrom.c: Likewise.
5496         * sysdeps/stub/rename.c: Likewise.
5497         * sysdeps/stub/rewinddir.c: Likewise.
5498         * sysdeps/stub/seekdir.c: Likewise.
5499         * sysdeps/stub/send.c: Likewise.
5500         * sysdeps/stub/sendto.c: Likewise.
5501         * sysdeps/stub/setegid.c: Likewise.
5502         * sysdeps/stub/seteuid.c: Likewise.
5503         * sysdeps/stub/setgroups.c: Likewise.
5504         * sysdeps/stub/sethostid.c: Likewise.
5505         * sysdeps/stub/sethostname.c: Likewise.
5506         * sysdeps/stub/setjmp.c: Likewise.
5507         * sysdeps/stub/setrlimit.c: Likewise.
5508         * sysdeps/stub/setsockopt.c: Likewise.
5509         * sysdeps/stub/shutdown.c: Likewise.
5510         * sysdeps/stub/signal.c: Likewise.
5511         * sysdeps/stub/sigsuspend.c: Likewise.
5512         * sysdeps/stub/sin.c: Likewise.
5513         * sysdeps/stub/sinh.c: Likewise.
5514         * sysdeps/stub/socket.c: Likewise.
5515         * sysdeps/stub/socketpair.c: Likewise.
5516         * sysdeps/stub/sqrt.c: Likewise.
5517         * sysdeps/stub/sync.c: Likewise.
5518         * sysdeps/stub/system.c: Likewise.
5519         * sysdeps/stub/tan.c: Likewise.
5520         * sysdeps/stub/tanh.c: Likewise.
5521         * sysdeps/stub/tcdrain.c: Likewise.
5522         * sysdeps/stub/tcflow.c: Likewise.
5523         * sysdeps/stub/tcgetpgrp.c: Likewise.
5524         * sysdeps/stub/tcsendbrk.c: Likewise.
5525         * sysdeps/stub/tcsetattr.c: Likewise.
5526         * sysdeps/stub/tcsetpgrp.c: Likewise.
5527         * sysdeps/stub/telldir.c: Likewise.
5528         * sysdeps/stub/tempname.c: Likewise.
5529         * sysdeps/stub/ttyname.c: Likewise.
5530         * sysdeps/stub/ttyname_r.c: Likewise.
5531         * sysdeps/stub/utime.c: Likewise.
5532
5533         * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
5534
5535         * time/mktime.c (localtime_r): Use 0 instead of NULL.
5536
5537         * config.make.in (AS): New variable; set to `$(CC) -c'.
5538
5539         * posix/unistd.h [__USE_BSD]: Declare profil.
5540
5541         * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
5542         of _dl_map_object.
5543         (_dl_map_object): Call it.
5544         * elf/link.h (_dl_map_object_from_fd): Declare it.
5545
5546 Tue Sep 26 16:50:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5547
5548         * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
5549         gettext code.
5550
5551         * sysdeps/unix/sysv/linux/sys/param.h: New file.
5552         * sysdeps/unix/sysv/linux/Subdirs: File removed.
5553
5554         * libc-symbols.h (_LIBC): Define to 1, not just empty.
5555
5556         * gmon: New directory of profiling code, incorporated from
5557         4.4BSD-Lite and modified.
5558         * sysdeps/i386/machine-gmon.h: New file.
5559         * sysdeps/stub/machine-gmon.h: New file.
5560         * sysdeps/mach/hurd/profil.c: New file.
5561         * sysdeps/stub/profil.c: New file.
5562         * sysdeps/unix/bsd/profil.S: New file.
5563         * Makefile (subdirs): Add gmon.
5564         * csu/gmon-start.c: New file.
5565         * csu/Makefile (extra-objs): Add gmon-start.o,
5566         g$(start-installed-name).
5567         (install-lib, omit-deps): Add g$(start-installed-name).
5568         ($(objpfx)g$(start-installed-name)): New target.
5569
5570 Fri Sep 22 14:24:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5571
5572         * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
5573         time being.
5574
5575 Thu Sep 21 00:03:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5576
5577         * sysdeps/unix/configure.in: Check for `profil' syscall.
5578
5579         * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
5580         removed.
5581
5582         * time/africa, time/asia, time/europe, time/northamerica,
5583         time/yearistype: New data from ADO 95h.
5584
5585         * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
5586         $(notdir $*), so it wins for the explicit libc.so rule as well as the
5587         pattern rule.
5588
5589         * sysdeps/stub/sys/sem_buf.h (union semun): New type.
5590
5591         * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
5592         __libc_global_ctors.
5593         * sysdeps/i386/init-first.c: Rewritten.
5594         * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
5595         * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
5596
5597         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
5598         ___fpu_control.
5599
5600         * Makerules (build-shlib): New canned sequence, broken out of
5601         lib%.so rule.  Link in $^ instead of just $<.
5602         (lib%.so: lib%_pic.a): Use it.
5603         (libc.so): New target; use $(build-shlib) for cmds, but also depend
5604         on soinit.so first and sofini.so last.
5605
5606         * elf/soinit.c: New file.
5607         * elf/sofini.c: New file.
5608         * elf/Makefile (distribute): Add soinit.c and sofini.c.
5609         (extra-objs): Add soinit.so and sofini.so.
5610
5611         * sysvipc/sys/shm.h (shmat): Fix return type to char *.
5612         * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
5613
5614         * misc/syslog.c (vsyslog): Rewritten using open_memstream to
5615         dynamically allocate buffers.
5616
5617         * Makerules (install-lib-nosubdir): Make this, rather than
5618         install-no-libc.a, depend on the installed shared libraries.
5619
5620 Wed Sep 20 18:02:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5621
5622         * locale/locale.c: Include errno.h.
5623         * locale/localedef.c: Likewise.
5624
5625 Tue Sep 19 00:02:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5626
5627         * Makefile (distclean-1): Remove config.cache, config.log, config.h.
5628         (parent-mostlyclean): Remove all flavors of the parent library.
5629
5630         * misc/mntent.c (getmntent): Skip multiple whitespace chars
5631         between fields.
5632
5633         * hurd/hurdstartup.c (_hurd_startup): If RPC returns
5634         EXEC_STACK_ARGS flag, get args from stack.
5635         If args on stack but have info from RPC, relocate args on stack to make
5636         space for struct hurd_startup_data.
5637
5638 Mon Sep 18 15:06:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5639
5640         * elf/dl-object.c: Include errno.h.
5641         * posix/execvp.c: Likewise.
5642         * dirent/scandir.c: Likewise.
5643         * sysdeps/posix/system.c: Likewise.
5644         * sysdeps/generic/setenv.c: Likewise.
5645         * stdlib/msort.c: Likewise.
5646         * stdio/memstream.c: Likewise.
5647         * stdio/fclose.c: Likewise.
5648         * stdio/getdelim.c: Likewise.
5649         * stdio/setvbuf.c: Likewise.
5650         * sysdeps/ieee754/ldexp.c: Likewise.
5651         * locale/locfile-parse.c: Likewise.
5652
5653         * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
5654         * stdlib/seed48_r.c: Likewise.
5655         * stdlib/srand48_r.c: Likewise.
5656         * stdlib/jrand48_r.c: Likewise.
5657         * stdlib/nrand48_r.c: Likewise.
5658
5659         * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
5660         to be useless.
5661
5662 Mon Sep 18 12:39:22 1995  Paul Eggert  <eggert@twinsun.com>
5663
5664         * mktime.c (localtime_r): Add substitute if the system doesn't
5665         provide one.
5666
5667 Mon Sep 18 14:39:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5668
5669         * time/gmtime.c (gmtime_r): Define as weak alias.
5670         * time/localtime.c (localtime_r): Define as weak alias.
5671         * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
5672
5673         * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
5674         #undef __need_Emath after including errnos.h.
5675         [_ERRNO_H]: Protect decls with this.
5676
5677 Sun Sep 17 08:22:12 1995  Paul Eggert  <eggert@twinsun.com>
5678
5679         Fix mktime so that it does not write over localtime's returned value.
5680         * localtime.c (__localtime_r): New function, with extra arg
5681         specifying where to store result.
5682         (localtime): Use it.
5683         (_tmbuf): New var.
5684         * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
5685         * mktime.c (__mktime_internal): Conversion function is now
5686         __localtime_r style, not localtime style.
5687         (mktime): Pass __localtime_r, not localtime.
5688         * timegm.c (timegm): Pass __gmtime_r, not gmtime.
5689         * offtime.c (__offtime): New arg specifying where to store result.
5690         * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
5691         (__gmtime_r, __localtime_r): New decls.
5692
5693         * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
5694         <stdlib.h>, <string.h>: Remove includes.
5695         <errno.h>: Add include.
5696
5697         * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
5698         Renamed from _mktime_internal to avoid namespace pollution.
5699
5700         * time/gmtime.c: Clear tm_isdst.
5701
5702 Mon Sep 18 01:58:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5703
5704         * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
5705         * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
5706         size_t.
5707
5708         * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
5709         __file_pathconf.
5710         * sysdeps/mach/hurd/pathconf.c: Likewise.
5711
5712         * Makefile (subdirs): Add sysvipc.
5713
5714         * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
5715         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
5716
5717 Sun Sep 17 18:29:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5718
5719         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
5720          __file_set_size instead of __file_truncate.
5721
5722         * features.h (__USE_REENTRANT): New macro.
5723
5724         * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
5725         __file_truncate.
5726         * sysdeps/mach/hurd/ftruncate.c: Likewise.
5727
5728         * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
5729
5730 Sat Sep 16 17:47:19 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
5731
5732         * elf/elf.h (AT_GID): Fix typo: Read -> Real.
5733
5734         * misc/efgvt_r.c: New file.  Reentrant version of [efg]cvt functions.
5735         * misc/efgcvt.c: Rewrite to use reentrant functions.
5736         * misc/search.h: Many decls for hsearch functions.
5737         * misc/hsearch_r.c: New file.  Reentrant version of functions from
5738         hsearch family.
5739         * misc/hsearch.c, misc/tsearch.c: New files.
5740         * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
5741
5742         * posix/unistd.h (ttyname_r): Add prototype for new function.
5743
5744         * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
5745         stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
5746         stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
5747         stdlib/drand48-iter.c: New files implementing reentrant versions
5748         of functions from drand48 family.
5749         * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
5750         stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
5751         stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
5752         Rewrite to use reentrant versions.
5753         * stdlib/a64l.c, stdlib/l64a.c: New files.  Implement a64l()
5754         and l64a() functions from SysV library.
5755         * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
5756         nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
5757         drand48-iter, a64l, l64a.
5758         * stdlib/stdlib.h: Declare them.
5759
5760         * stdlib/random_r.c: New file.  Reentrant version of functions
5761         from random family.
5762         * stdlib/stdlib.h: Declare them.
5763         * stdlib/random.c: Rewrite to use reentrant functions.
5764
5765         * string/strerror_r.c: New file.  Reentrant version.
5766         * string/strerror.c: Change for new _strerror_internal form.
5767         * string/Makefile (routines): Add strerror_r.
5768
5769         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
5770         value of user_entry to `_start'.
5771         Close AT_ENTRY case with `break'.
5772
5773         * sysdeps/generic/strstr.c: New and much faster implementation
5774         by Stephen R. van den Berg.
5775
5776         * sysdeps/generic/_strerror.c: _strerror_internal now takes
5777         three argument and has and explicit buffer length.
5778         * sysdeps/mach/_strerror.c: Change for new interface with three
5779         arguments.
5780         * stdio/perror.c, stdio/vfprintf.c: Callers changed.
5781
5782         * sysdeps/mach/hurd/ttyname_r.c: New file.  Reentrant version.
5783         * sysdeps/posix/ttyname_r.c: New file.  Reentrant version.
5784         * sysdeps/stub/ttyname_r: New file.  Define as dummy function.
5785
5786         * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
5787         (utimes): First parameter to utime must be file, not path.
5788
5789         * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
5790         _SC_CLK_TCK and return it when available.
5791         Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
5792         available.
5793         Add case for _SC_2_LOCALEDEF which is now available.
5794
5795         * posix/sys/types.h [__USE_SVID] (key_t): New type.
5796         * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
5797         sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
5798         sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
5799         sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
5800         sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
5801         sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
5802         sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
5803         sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
5804         Add implementation of System V IPC.
5805
5806 Fri Sep 15 21:34:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5807
5808         * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
5809         (write_corefile): Call __crash_dump_task instead of __core_dump_task.
5810         Use envariable CRASHSERVER instead of CORESERVER.
5811         * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
5812
5813 Tue Sep 12 14:30:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5814
5815         * misc/mntent.c: New file.
5816         * misc/mntent.h: New file.
5817         * misc/Makefile (headers): Added mntent.h.
5818         (routines): Added mntent.
5819         * misc/fstab.c: Rewritten using mntent functions.
5820
5821 Mon Sep 11 14:00:14 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
5822
5823         * posix/glob.c (glob): Comment fix.
5824
5825 Fri Sep  8 16:25:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5826
5827         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
5828         symbols weak.
5829
5830         * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
5831         not empty.
5832
5833 Fri Sep  8 16:32:12 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
5834
5835         * sysdeps/unix/sysv/linux/Implies,
5836         sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
5837         sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
5838         sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
5839         sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
5840         sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
5841         sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
5842         sysdeps/unix/sysv/linux/gethostname.C,
5843         sysdeps/unix/sysv/linux/getpeername.S,
5844         sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
5845         sysdeps/unix/sysv/linux/getsockname.S,
5846         sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
5847         sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
5848         sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
5849         sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
5850         sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
5851         sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
5852         sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
5853         sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
5854         sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
5855         sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
5856         sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
5857         sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
5858         sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
5859         sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
5860         sysdeps/unix/sysv/linux/settimeofday.S,
5861         sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
5862         sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
5863         sysdeps/unix/sysv/linux/shutdown.S,
5864         sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
5865         sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
5866         sysdeps/unix/sysv/linux/sockaddrcom.h,
5867         sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
5868         sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
5869         sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
5870         sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
5871         sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
5872         sysdeps/unix/sysv/linux/tcsetattr.c,
5873         sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
5874         sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
5875         sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
5876         sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
5877         sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
5878         New Linux/ELF specific, architecture independent files.
5879         * sysdeps/unix/sysv/linux/i386/Dist,
5880         sysdeps/unix/sysv/linux/i386/Makefile,
5881         sysdeps/unix/sysv/linux/i386/brk.S,
5882         sysdeps/unix/sysv/linux/i386/fcntlbits.h,
5883         sysdeps/unix/sysv/linux/i386/fpu_control.c,
5884         sysdeps/unix/sysv/linux/i386/fpu_control.h,
5885         sysdeps/unix/sysv/linux/i386/fstat.S,
5886         sysdeps/unix/sysv/linux/i386/fxstat.S,
5887         sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
5888         sysdeps/unix/sysv/linux/i386/init-first.S,
5889         sysdeps/unix/sysv/linux/i386/ipc.S,
5890         sysdeps/unix/sysv/linux/i386/lstat.S,
5891         sysdeps/unix/sysv/linux/i386/lxstat.S,
5892         sysdeps/unix/sysv/linux/i386/mknod.S,
5893         sysdeps/unix/sysv/linux/i386/mmap.S,
5894         sysdeps/unix/sysv/linux/i386/sbrk.S,
5895         sysdeps/unix/sysv/linux/i386/setfpucw.c,
5896         sysdeps/unix/sysv/linux/i386/signum.h,
5897         sysdeps/unix/sysv/linux/i386/socket.S,
5898         sysdeps/unix/sysv/linux/i386/stat.S,
5899         sysdeps/unix/sysv/linux/i386/syscall.S,
5900         sysdeps/unix/sysv/linux/i386/sysdep.S,
5901         sysdeps/unix/sysv/linux/i386/sysdep.h,
5902         sysdeps/unix/sysv/linux/i386/xmknod.S,
5903         sysdeps/unix/sysv/linux/i386/xstat.S:
5904         New Linux i386/ELF specific files.
5905         * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
5906         sysdeps/unix/sysv/linux/sys/mman.h,
5907         sysdeps/unix/sysv/linux/sys/msq_buf.h,
5908         sysdeps/unix/sysv/linux/sys/sem_buf.h,
5909         sysdeps/unix/sysv/linux/sys/shm_buf.h,
5910         sysdeps/unix/sysv/linux/sys/socketcall.h,
5911         sysdeps/unix/sysv/linux/sys/timex.h:
5912         New Linux/ELF specific, architecture independent header files.
5913         * sysdeps/unix/sysv/sysv4/linux: Tree removed.
5914
5915 Thu Sep  7 17:05:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5916
5917         * stdlib/msort.c (msort_with_tmp): Fixed alignment test.  B1 and
5918         B2 are always congruent; just test that B1 is aligned.
5919
5920 Wed Sep  6 19:41:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5921
5922         * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
5923         than WEAK_VALUE.a to see if a weak value has been set.  A valid
5924         weak value may set WEAK_VALUE.a to 0.
5925
5926 Fri Sep  1 16:16:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5927
5928         * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
5929         jmp_buf.
5930
5931         * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
5932         for a warning on references to that specific symbol, not the
5933         entire containing object file.
5934         (stub_warning): Pass symbol name to link_warning.
5935         * stdio/gets.c: Pass function name in link_warning invocation.
5936
5937         * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
5938         MACH_SEND_INTERRUPTED.  That indicates interrupt_operation was
5939         sent, but failed.
5940
5941         * stdlib/msort.c: Include memcopy.h.
5942         (msort_with_tmp): If operating on aligned op_t words, use direct word
5943         fetches and stores.
5944
5945         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
5946         missing backslash.
5947
5948 Thu Aug 31 13:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5949
5950         * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
5951
5952         Rewrote i386 setjmp code in assembly, so as to avoid fighting
5953         with the compiler for the register values.
5954         * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
5955         * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
5956         * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
5957         [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
5958         (_JMPBUF_UNWINDS): Use JB_SP.
5959
5960 Wed Aug 30 16:44:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5961
5962         * sysdeps/mach/hurd/select.c: Deal with out of order replies
5963         during io_select request loop.
5964         Handle MACH_RCV_TIMED_OUT error from requests.
5965         * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
5966         distinguish MACH_RCV_TIMED_OUT from EINTR.
5967
5968         * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
5969         slash.
5970         (glob_in_dir): Don't allocate extra byte here.
5971
5972         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
5973         Decrement the DT_RELSZ value for the skipped reloc.
5974
5975 Tue Aug 29 12:35:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5976
5977         * time/australasia: Updated data from ADO.
5978
5979 Mon Aug 28 17:47:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5980
5981         * dirent/dirent.h: Don't include <dirstream.h>.
5982         Instead, define DIR as typedef for (undefined) `struct __dirstream'.
5983
5984 Fri Aug 25 12:12:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5985
5986         * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
5987         instead of `DIR'.
5988         * sysdeps/unix/bsd/dirstream.h: Likewise.
5989         * sysdeps/stub/dirstream.h: Likewise.
5990         * sysdeps/unix/dirstream.h: Likewise.
5991         * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
5992         * sysdeps/mach/hurd/seekdir.c: Likewise.
5993         * sysdeps/mach/hurd/opendir.c: Likewise.
5994         * sysdeps/mach/hurd/closedir.c: Likewise.
5995         * sysdeps/mach/hurd/readdir.c: Likewise.
5996         * sysdeps/unix/telldir.c: Likewise.
5997         * sysdeps/unix/seekdir.c: Likewise.
5998         * sysdeps/unix/rewinddir.c: Likewise.
5999         * sysdeps/unix/readdir.c: Likewise.
6000         * sysdeps/unix/opendir.c: Likewise.
6001         * sysdeps/unix/closedir.c: Likewise.
6002         * sysdeps/unix/bsd/telldir.c: Likewise.
6003         * sysdeps/unix/bsd/readdir.c: Likewise.
6004         * dirent/Makefile (headers): Remove dirstream.h.
6005         (distribute): Put it here instead.
6006
6007         * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
6008
6009         * stdio/vfscanf.c (number): Allow field width to inhibit first
6010         digit after base detection.
6011
6012         * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
6013         specified by the precision.
6014
6015         * grp/grpread.c (__grpscan): New function.
6016         * grp/grp.h (__grpscan): Declare it.
6017         * grp/getgrgid.c: Use __grpscan.
6018         * grp/getgrnam.c: Likewise.
6019         * pwd/pwdread.c (__pwdscan): New function.
6020         * pwd/pwd.h (__pwdscan): Declare it.
6021         * pwd/getpwnam.c: Use __pwdscan.
6022         * pwd/getpwuid.c: Likewise.
6023
6024 Thu Aug 24 16:29:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6025
6026         * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
6027         MAP_FILE.
6028
6029         * hurd/thread-cancel.c: Return EINTR when called on self.
6030         * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
6031         __data_start.
6032
6033 Tue Aug 22 16:49:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6034
6035         * inet/netdb.h: Moved to resolv.
6036         * inet/Makefile (headers): Remove netdb.h.
6037         * resolv/Makefile (headers): Add netdb.h.
6038         * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
6039         resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
6040
6041         * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
6042         resuming the thread.
6043         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
6044
6045         * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
6046
6047 Mon Aug 21 16:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6048
6049         * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
6050         relocs, and do nothing.  Why the linker generates them we may
6051         never know.
6052
6053 Thu Aug 17 16:18:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6054
6055         * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
6056         `subdirs' variable.
6057
6058         * sysdeps/mach/hurd/i386/intr-msg.h: New file.
6059         * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
6060         "intr-msg.h" for special syscall code, instead of i386-specific asm.
6061         * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
6062         machine-dependent "intr-msg.h" before mutating thread state to
6063         skip RPC.
6064
6065         * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
6066         _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
6067         %ecx.
6068
6069         * Makeconfig (link-libc): New variable; use shared library if
6070         available.
6071         (+link): Use it.
6072
6073         * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
6074         Instead, declare with `symbol_set_declare'.
6075         (fork): Use symbol_set_* macros for _hurd_fork_locks.
6076         Use SS->thread instead of __mach_thread_self ().  Suspend all
6077         other threads during task_create and port copying.
6078
6079 Wed Aug 16 17:04:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6080
6081         * hurd/intr-msg.c: Fixed calculation of syscall %esp.
6082
6083 Tue Aug 15 12:26:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6084
6085         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
6086
6087         * hurd/Makefile (sig): Add intr-msg.
6088
6089 Mon Aug 14 16:51:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6090
6091         * hurd/thread-cancel.c: New file.
6092         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
6093         rpc_wait case, frob mach_msg args to set timeout on receive.
6094         (_hurdsig_rcv_interrupted_p): Function removed.
6095         * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
6096         * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
6097         * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
6098         * hurd/intr-msg.c: New file.
6099         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
6100         (_hurdsig_rcv_interrupted_p): Declaration removed.
6101         (HURD_EINTR_RPC): Macro removed.
6102         (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
6103         these.
6104         * hurd/intr-rpc.h: New file.
6105         * hurd/intr-rpc.defs: Just import intr-rpc.h.
6106         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
6107         (interrupted_reply_port_location): Take new flag arg; only catch
6108         faults if it's set.
6109         (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
6110         No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
6111         &_hurd_intr_rpc_msg_in_trap.  If before it, mutate state to simulate
6112         MACH_SEND_INTERRUPTED return; on it, interrupt the operation.  All
6113         callers changed.
6114         * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
6115         * hurd/Makefile (distribute): Remove intr-rpc.awk.
6116         (sig): Add thread-cancel.
6117         (transform-user-stub, transform-user-stub-output): Variables removed.
6118         * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
6119         `__hurd_intr_rpc_*' to `__*'.
6120         (_hurd_intr_rpc_mach_msg): New function.
6121         (_hurd_thread_sigstate): Function removed.
6122         * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
6123         instead of __mach_msg inside HURD_EINTR_RPC macro.
6124
6125         * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
6126         to take ptrdiff_t arg.
6127
6128         * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
6129
6130         * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
6131
6132         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
6133         weak_alias): Use `extern' storage class.
6134
6135 Wed Aug  9 14:25:35 1995  Miles Bader  <miles@geech.gnu.ai.mit.edu>
6136
6137         * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
6138         port-count parameters to __auth_makeauth.
6139         * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
6140
6141 Tue Aug  8 12:22:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6142
6143         * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
6144
6145         * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
6146
6147 Tue Aug  8 12:06:04 1995  Michael I. Bushnell, p/BSG  <mib@duality.gnu.ai.mit.edu>
6148
6149         * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
6150         IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
6151         layer socket options.
6152         (IPPROTO_GGP): Delete obsolote protocol.
6153         (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
6154         (struct ip_mreq): New type.
6155
6156 Mon Aug  7 14:04:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6157
6158         * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
6159
6160         * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
6161         (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
6162
6163         * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
6164         when __stdio_open fails with a code other than ENFILE or EMFILE.
6165
6166 Fri Aug  4 16:01:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6167
6168         * Makefile (headers): Added gnu-versions.h.
6169
6170 Thu Aug  3 14:41:11 1995  Michael I. Bushnell  <mib@duality.gnu.ai.mit.edu>
6171
6172         * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
6173         equality, not assignment, to test bitfields.
6174
6175 Sat Jul 29 10:41:06 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
6176
6177         * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
6178         resolve AF_LOCAL addresses.
6179
6180         * sysdeps/mach/hurd/accept.c (accept): If the protocol family
6181         can't tell us what an address means, just return a zero-length
6182         buffer instead.
6183         * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
6184
6185 Fri Jul 28 15:29:11 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
6186
6187         * sysdeps/mach/hurd/bind.c (bind): Don't use
6188         file_invoke_translator, as it doesn't work.  Instead just lookup
6189         the translated node again, and hope we're not hit by any race
6190         conditions.
6191
6192 Wed Jul 26 02:00:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6193
6194         * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
6195         [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
6196         [start-installed-name-rule]: If this is defined, elide rule for
6197         $(objpfx)$(start-installed-name).
6198         * csu/initfini.c (SECTION): New macro, different definitions for
6199         #ifdef HAVE_ELF and not.
6200         (_init, _fini): Use that macro.
6201         * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
6202         (start-installed-rule, start-installed-name-rule): New variables;
6203         specify crt1.o, created by our own rule.
6204         ($(objpfx)crt1.o): New rule.
6205         * configure.in: Require autoconf 2.4.2 or later.  Change all
6206         AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
6207         prettify some messages.
6208         [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
6209         sections.
6210         * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
6211         this case rather than #ifdef HAVE_ELF.
6212         * config.h.in (HAVE_INITFINI): New macro.
6213         * config.make.in (have-initfini): New variable, set by configure.
6214
6215         * stdio/vfscanf.c (conv_error): Simplify expression to avoid
6216         "value computed is not used" warning.
6217
6218         * Makeconfig (+gccwarn): Removed -Wconversion.
6219
6220         * csu/initfini.c (GLOBAL): Macro removed.
6221         (_init, _fini): Always define globally.
6222         * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
6223
6224         * asia, backward, europe, leapseconds, southamerica: New data from
6225         ADO's 95e.
6226
6227         * inet/Makefile (routines): Removed inet_addr.
6228         * inet/inet_addr.c: Moved to resolv/ subdirectory.
6229         * resolv/Makefile (routines): Added inet_addr.
6230         * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
6231         * resolv/gethnamaddr.c: Likewise.
6232         * resolv/getnetbyaddr.c: Likewise.
6233         * resolv/getnetbyname.c: Likewise.
6234         * resolv/getnetent.c: Likewise.
6235         * resolv/getnetnamadr.c: Likewise.
6236         * resolv/herror.c: Likewise.
6237         * resolv/nsap_addr.c: Likewise.
6238         * resolv/res_comp.c: Likewise.
6239         * resolv/res_debug.c: Likewise.
6240         * resolv/res_init.c: Likewise.
6241         * resolv/res_mkquery.c: Likewise.
6242         * resolv/res_query.c: Likewise.
6243         * resolv/res_send.c: Likewise.
6244         * resolv/resolv.h: Likewise.
6245         * resolv/sethostent.c: Likewise.
6246         * resolv/arpa/nameser.h: Likewise.
6247         * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
6248         [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
6249         its declarations (and doing so only #ifdef sun!).
6250         * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
6251
6252         * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
6253         [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
6254
6255         * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
6256         if possible.
6257
6258         * mach/shortcut.awk: Emit decls for RPC.
6259
6260         * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
6261         weak_alias, strong_alias): Define using GCC __attribute__ syntax.
6262
6263         * Makerules ($(installed-libcs)): Depend on `lib' (only).
6264
6265 Tue Jul 25 09:14:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6266
6267         * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
6268
6269         * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
6270
6271         * sysdeps/unix/sysv/ftime.S: New file.
6272
6273         * locale/locfile-parse.c (categories_write): Cast "" to char *.
6274
6275         * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
6276
6277         * time/strftime.c: Use year modulo 100 for %y.
6278
6279         * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
6280
6281         * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
6282         of one, to work around bug in sunos4.1.2 sed.
6283
6284         * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
6285         memchr instead of strlen to limit search for NUL by precision.
6286
6287 Mon Jul 24 03:13:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6288
6289         * sysdeps/posix/pathconf.c: New file.
6290
6291 Sat Jul 22 20:53:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6292
6293         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
6294         before @PLT.
6295         * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
6296         * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
6297         * sysdeps/i386/bsd-setjmp.S: Likewise.
6298
6299 Sat Jul 22 19:58:54 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
6300
6301         * inet/Makefile (routines): Added `ruserpass'.
6302         * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
6303         client.  Modified to remove the fourth arg AACCT.  Do nothing for
6304         the `account' and `macdef' keywords.  Other incidental changes
6305         because we are not in the FTP source tree.
6306
6307 Sat Jul 22 01:56:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6308
6309         * sysdeps/stub/init-posix.c: Removed stub warning.
6310
6311         * Makefile (autoconf-it): Make it executable and unwritable.
6312
6313         * configure.in (sysnames): Under --enable-debug-configure, spew
6314         potential sysnames.
6315
6316         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
6317         #ifdef PIC.
6318         (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
6319         * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
6320         jump insn.
6321
6322         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
6323         * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
6324         * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
6325         <sys/socketcall.h>.  Save %ebx in call-clobbered %edx instead of
6326         stack.  Use JUMPTARGET(syscall_error) in jump insn.
6327
6328         * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
6329
6330         * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
6331         ASM_TYPE_DIRECTIVE.
6332         (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
6333
6334         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
6335         Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
6336         * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
6337
6338         * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
6339         instead of unix/sysv.
6340         * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
6341         socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
6342         to new directory sysdeps/unix/sysv/sysv4/linux.
6343         * sysdeps/unix/sysv/linux: Directory removed.
6344         * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
6345         to new directory sysdeps/unix/sysv/sysv4/linux/i386.
6346         * sysdeps/unix/sysv/linux/i386: Directory removed.
6347
6348         Fixes to help Linux, inspired by drepper's work:
6349         * sysdeps/posix/utimes.c: New file.
6350         * sysdeps/generic/getdomain.c: New file.
6351         * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
6352         * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
6353         externals _dl_argc, _dl_argc, and _environ.
6354
6355 Fri Jul 21 12:57:29 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
6356
6357         * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
6358         EOPNOTSUPP as indications that the server has died.
6359         * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
6360         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
6361
6362 Mon Jul 17 08:45:40 1995  Jim Meyering  (meyering@comco.com)
6363
6364         * strtol.c: Portability changes from Uli Drepper.
6365         [!STDC_HEADERS && !defined(NULL)]: Define NULL.
6366
6367 Mon Jul 10 05:39:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6368
6369         * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
6370         DATA for the entry SP; DATA[-1] is always the return address
6371         location.  In both cthreads and non-cthreads cases, use asm to
6372         force parameters into %eax and %ecx before return, and mutate
6373         DATA[-1] to return to specific asm code to set up the user from
6374         %eax and %ecx.
6375         [PIC] (_init): Caller changed.
6376         (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
6377         with SP unwound to argument data ptr.
6378
6379 Thu Jul  6 14:28:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6380
6381         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
6382         when 0x08000000 and up are not mapped.
6383
6384         * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
6385         before touching it.
6386         (lib%.so): Use -Wl to get -soname to ld.
6387
6388         * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
6389
6390         * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
6391
6392 Tue Jun 20 02:18:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6393
6394         * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
6395         library's name including $(libprefix) and major version number.
6396
6397         * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
6398         in place of xcalloc.
6399
6400         * Makeconfig (prefix, exec_prefix, libprefix): Instead of
6401         `ifndef', use the $(origin) function to only set these if they are
6402         undefined, and not if they are defined to empty.
6403
6404         * gnu-versions.h: New file.
6405         * features.h (__GNU_LIBRARY__): Increase value to 5.
6406
6407 Wed Jun 14 03:45:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6408
6409         * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
6410         expression, to avoid gcc's "value computed is not used" warning.
6411
6412         * libc-symbols.h (_elf_set_element): Give the set-element variable
6413         an `unused' attribute.
6414
6415         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
6416         __attribute__ ((__const__)).
6417         * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
6418
6419         * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
6420         LINK->resource.next->resource.prevp when appropriate, not
6421         LINK->resource.next->thread.prevp!!!
6422
6423 Tue Jun 13 15:45:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6424
6425         * configure.in (libc_cv_asm_set_directive): Make sure that the
6426         `.set' directive really worked by linking against a reference to
6427         the alias.
6428
6429         * sysdeps/stub/init-first.c: Don't include <hurd.h>.
6430         [PIC] (soinit): Renamed to (global) _init.
6431
6432 Mon Jun 12 13:15:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6433
6434         * malloc/Makefile (gmalloc-routines): Remove valloc.
6435         (dist-routines): Add it here.
6436
6437         * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
6438         emacs_loser_valloc to inhibit valloc declaration below.
6439
6440         * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
6441         installation rules.
6442
6443         * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
6444         it uses the `.type' directive, which is necessary for shared
6445         libraries to work properly.
6446
6447 Thu Jun  8 02:50:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6448
6449         * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
6450         from zero fill.
6451
6452         * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
6453         if nonzero, don't let *REF satisfy the reference itself.
6454         * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
6455         * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
6456         _dl_lookup_symbol.
6457         * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
6458         R->r_offset to RESOLVE callback.
6459         * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
6460         satisfy the reference itself if its value equals the reloc's
6461         offset.
6462
6463         * elf/rtld.c (dl_main): Write a newline in fatal msg.
6464
6465         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
6466
6467         * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
6468
6469         * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
6470         and user entry point addresses.
6471
6472         * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
6473         (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
6474
6475         * Makerules (install-lib.so): Don't include libc.so.
6476         [$(build-shared)=yes] (install): Depend on the installed libc.so file.
6477         [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
6478         install, depend on the installed $(install-lib.so) files.
6479         [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
6480
6481         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
6482         allocate high addresses to avoid random mappings appearing there.
6483         (mmap): Comment out mask; always pass zero.
6484
6485 Tue Jun  6 13:34:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6486
6487         * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
6488         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
6489
6490         * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
6491         when successful.
6492
6493         * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
6494         (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
6495         variables, using the `threadvars' buffer.
6496
6497         * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
6498         * sysdeps/i386/dl-runtime.c: Likewise.
6499
6500         * elf/rtld.c (dl_main): Add missing NULL terminating argument in
6501         _dl_sysdep_fatal call.
6502         (__assert_fail): Likewise.
6503
6504         * locale/Makefile (localedef-modules): Renamed ctype to
6505         locale-ctype so as not to conflict with the object file for
6506         ctype/ctype.c in the build directory.
6507
6508 Mon Jun  5 04:02:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6509
6510         * elf/elf.h (ELFMAG): Use \177 instead of \x7f.  It seems GCC
6511         insists on seeing the following E as part of hex 7FE, and
6512         complaining that is wider than a byte.
6513
6514 Sun Jun  4 22:14:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6515
6516         * hurd/Makefile (sig): Added thread-self.
6517         * hurd/hurd.h: Declare hurd_thread_self.
6518         * hurd/thread-self.c: New file.
6519
6520 Thu Jun  1 12:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6521
6522         * elf/rtld.c: Initialize RTLD_MAP.l_type.
6523         * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
6524         the dynamic linker itself.
6525         * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
6526         lt_interpreter, first undo relocation done during bootstrapping.
6527
6528 Tue May 30 15:52:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6529
6530         * mach/Makefile (server-interfaces): Removed notify and
6531         device_reply.  For shlibs with eager binding, libmachuser.so must
6532         not refer to any functions not defined in libc.
6533
6534 Sat May 27 16:23:22 1995  Jim Meyering  (meyering@comco.com)
6535
6536         * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
6537         to avoid error from Irix-4.0.5's C compiler.  From Kaveh Ghazi.
6538
6539 Fri May 26 13:00:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6540
6541         * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
6542         pending signals if the thread is in a critical section.  It will
6543         send us a msg when it finishes.
6544
6545         * sysdeps/mach/hurd/pathconf.c: New file.
6546         * sysdeps/mach/hurd/fpathconf.c: New file.
6547
6548         * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
6549         SIGCHLD when the SA_NOCLDSTOP bit actually changes.
6550
6551 Sun May 21 05:05:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6552
6553         * elf/Makefile (ld.so): Use -nostartfiles in addition to
6554         -nostdlib.
6555
6556 Sun May 21 02:01:29 1995  Jim Meyering  (meyering@comco.com)
6557
6558         * sysdeps/generic/memchr.c: Don't include <string.h> at all.
6559         HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
6560         memchr unless one manually arranges for them to define __STDC__.
6561
6562 Fri May 19 17:16:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6563
6564         * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
6565         args on stack from kernel.
6566
6567         * posix/Makefile, sysdeps/alpha/Makefile,
6568         * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
6569         * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
6570         in the absence of CVS dirs.
6571
6572         * hurd/hurdstartup.c: Don't call __mach_init.  Grok args from the
6573         kernel on the stack properly.
6574
6575         * set-init.c: Never call _init/_fini; just run __libc_subinit.
6576
6577         * Makerules (LDFLAGS-c.so): Add -nostartfiles.
6578         * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
6579
6580         * configure.in: Move defaulting of --with-elf and --with-gnu-*
6581         based on host os outside the AC_CACHE_VAL for the sysdirs
6582         calculation.
6583
6584         * Makeconfig (localedir, nlsdir): New variables.
6585
6586         * values.h: New file.
6587         * Makefile (headers): Add values.h.
6588
6589         * locale/Makefile (distribute): Add error.h.
6590         * locale/localedef.c: Include "error.h".
6591         (main): Use error_message_count instead of warning_cntr.
6592
6593 Wed May 17 16:50:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6594
6595         Merged 1003.2 locale and localedef programs by Ulrich Drepper.
6596         * locale/charmap.c: New file.
6597         * locale/collate.c: New file.
6598         * locale/config.h: New file.
6599         * locale/ctype.c: New file.
6600         * locale/ctypedump.c: New file.
6601         * locale/hash.c: New file.
6602         * locale/hash.h: New file.
6603         * locale/iso-4217.def: New file.
6604         * locale/keyword.gperf: New file.
6605         * locale/keyword.h: New file.
6606         * locale/libintl.h: New file.
6607         * locale/locale.c: New file.
6608         * locale/localedef.c: New file.
6609         * locale/localedef.h: New file.
6610         * locale/locfile-lex.c: New file.
6611         * locale/locfile-parse.c: New file.
6612         * locale/messages.c: New file.
6613         * locale/monetary.c: New file.
6614         * locale/numeric.c: New file.
6615         * locale/token.h: New file.
6616
6617         * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
6618         * posix/Makefile (headers): Add regex.h.
6619         (routines): Add regex.
6620         (gpl2lgpl): Add regex.c and regex.h.
6621
6622 Tue May 16 17:35:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6623
6624         * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
6625         instead of hard-coding "/share/locale".
6626
6627 Sat May 13 02:16:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6628
6629         * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
6630
6631 Fri May 12 15:31:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6632
6633         * elf/elf.h (ELFMAG, SELFMAG): New macros.
6634
6635 Fri May 12 11:24:53 1995  Michael I Bushnell  <mib@duality.gnu.ai.mit.edu>
6636
6637         * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
6638         the case where it starts out less than _hurd_dtablesize.
6639
6640 Thu May 11 20:51:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6641
6642         * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
6643         make sure the new size exceeds FIRST_FD.
6644
6645 Wed May 10 21:00:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6646
6647         * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
6648
6649 Tue May  9 01:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6650
6651         * Makerules (install-lib.so): Add %.so for each %_pic.a.
6652
6653         * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
6654         the first thing in .data.
6655
6656         * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
6657
6658         * hurd/hurdstartup.h: New file.
6659
6660         * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
6661         are the same.  Use `jz' instead of `jeq'.
6662
6663         * Makeconfig (config.make): Depend on config.status, and run it to
6664         update.
6665         (config.status): New target; depend on configure.
6666         If target (config.status) exists, run it with --recheck to update;
6667         if not, give error msg saying to run confiugre by hand.
6668         * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
6669         (sysd-Makefile-force): Set this variable to FORCE in this case, to
6670         force a rebuild of sysd-Makefile.
6671         (sysd-Makefile): Depend on $(sysd-Makefile-force).
6672         Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
6673         [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
6674         variable to FORCE in this case, to force a rebuild of sysd-rules.
6675         (sysd-rules): Depend on $(sysd-rules-force).
6676         Write into the file sysd-rules-sysdirs:=$(sysdirs).
6677
6678         * Makerules (LDFLAGS-c.so): Change ld option -interp to
6679         -dynamic-linker.
6680
6681         * Makerules (do-install-program): New canned sequence.
6682         (install-bin, install-sbin): Use it.
6683         (install for lib*.so): Use it instead of $(do-install).
6684         Fix .so installation rules to handle lib*.so and *.so, deal with
6685         $(libprefix) right, and install *.so as *.so$($(*.so)-version);
6686         i.e. "libc.so-version = .1".
6687
6688 Mon May  8 05:10:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6689
6690         * elf/do-rel.h: New file, split out of dynamic-link.h.
6691         * elf/Makefile (distribute): Add do-rel.h.
6692
6693 Sat May  6 11:06:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6694
6695         * Makeconfig (+gccwarn): Add -Winline.
6696
6697         * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
6698         set, avoid abort_rpcs, and use reply and intr ports saved in
6699         SS->context.
6700         * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
6701         from SS->context.  Don't clear SS->context.
6702         * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
6703         setting SS->context.  If msg_sig_post returns, re-lock and clear
6704         SS->context.
6705
6706 Fri May  5 10:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6707
6708         * mach/Makefile (errsystems.c): Comment out generation rule.
6709
6710         * sysdeps/mach/_strerror.c: Consider a system unknown if its
6711         bad_sub member is null.
6712
6713         * mach/mig-alloc.c: Add weak alias to non-__ name.
6714
6715 Wed May  3 11:56:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6716
6717         * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
6718
6719 Tue May  2 01:52:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6720
6721         * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
6722         function.  Duh.
6723
6724         * hurd/Makefile (distribute): Added hurdstartup.h.
6725         * hurd/hurd.h: Remove _hurd_startup decl.
6726
6727         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
6728         ((__unused__)) instead of gratuitous self reference.
6729
6730         * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
6731         table if FD2 doesn't fit.
6732
6733         * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
6734         not the current table size.
6735
6736         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
6737
6738         Implemented runtime dynamic linker to support ELF shared libraries.
6739         * elf/Makefile: Added rules to make ld.so and libdl.
6740         * elf/dl-error.c: New file.
6741         * elf/dl-fini.c: New file.
6742         * elf/dl-init.c: New file.
6743         * elf/dl-load.c: New file.
6744         * elf/dl-lookup.c: New file.
6745         * elf/dl-object.c: New file.
6746         * elf/dl-reloc.c: New file.
6747         * elf/dlclose.c: New file.
6748         * elf/dlerror.c: New file.
6749         * elf/dlopen.c: New file.
6750         * elf/dlsym.c: New file.
6751         * elf/dynamic-link.h: New file.
6752         * elf/link.h: New file.
6753         * elf/rtld.c: New file.
6754         * sysdeps/i386/dl-machine.h: New file.
6755         * sysdeps/stub/dl-machine.h: New file.
6756         * sysdeps/i386/dl-runtime.c: New file.
6757         * sysdeps/stub/dl-runtime.c: New file.
6758         * sysdeps/i386/elf/start.S: New file.
6759         * sysdeps/generic/dl-sysdep.c: New file.
6760         * sysdeps/mach/hurd/dl-sysdep.c: New file.
6761         * sysdeps/mach/hurd/i386/init-first.c: New file.
6762         * sysdeps/i386/init-first.c: New file.
6763         * sysdeps/stub/init-first.c: New file.
6764
6765 Mon May  1 18:48:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6766
6767         * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
6768         libc.so runnable.
6769         * version.c (__libc_print_version): Add "et al" and missing NL to
6770         author credit.
6771
6772 Sat Apr 29 15:46:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6773
6774         * posix/glob.c (S_ISDIR): Define if undefined.
6775
6776 Thu Apr 27 01:24:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6777
6778         * configure.in: Unless --without-fp, prepend */fpu before each
6779         machine dir in $mach; don't prepend FPU dirs at end.  If
6780         --with-elf, prepend MACHINE/elf directories at end; don't insert
6781         them into $mach.
6782
6783         * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
6784
6785         * sysdeps/stub/clock.c: Added stub warning.
6786         * sysdeps/stub/dirfd.c: Likewise.
6787         * sysdeps/stub/exc2signal.c: Likewise.
6788         * sysdeps/stub/fdopen.c: Likewise.
6789         * sysdeps/stub/flock.c: Likewise.
6790         * sysdeps/stub/fpathconf.c: Likewise.
6791         * sysdeps/stub/ftruncate.c: Likewise.
6792         * sysdeps/stub/gtty.c: Likewise.
6793         * sysdeps/stub/isatty.c: Likewise.
6794         * sysdeps/stub/killpg.c: Likewise.
6795         * sysdeps/stub/madvise.c: Likewise.
6796         * sysdeps/stub/mkstemp.c: Likewise.
6797         * sysdeps/stub/mktemp.c: Likewise.
6798         * sysdeps/stub/mprotect.c: Likewise.
6799         * sysdeps/stub/msync.c: Likewise.
6800         * sysdeps/stub/pathconf.c: Likewise.
6801         * sysdeps/stub/poll.c: Likewise.
6802         * sysdeps/stub/raise.c: Likewise.
6803         * sysdeps/stub/readv.c: Likewise.
6804         * sysdeps/stub/setenv.c: Likewise.
6805         * sysdeps/stub/setlogin.c: Likewise.
6806         * sysdeps/stub/sigaltstack.c: Likewise.
6807         * sysdeps/stub/sigintr.c: Likewise.
6808         * sysdeps/stub/sigstack.c: Likewise.
6809         * sysdeps/stub/sleep.c: Likewise.
6810         * sysdeps/stub/sstk.c: Likewise.
6811         * sysdeps/stub/stime.c: Likewise.
6812         * sysdeps/stub/stty.c: Likewise.
6813         * sysdeps/stub/syscall.c: Likewise.
6814         * sysdeps/stub/sysconf.c: Likewise.
6815         * sysdeps/stub/truncate.c: Likewise.
6816         * sysdeps/stub/ualarm.c: Likewise.
6817         * sysdeps/stub/usleep.c: Likewise.
6818         * sysdeps/stub/utimes.c: Likewise.
6819         * sysdeps/stub/writev.c: Likewise.
6820
6821         * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
6822
6823 Wed Apr 26 16:06:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6824
6825         * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
6826
6827 Tue Apr 25 17:17:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6828
6829         * posix/glob.c (glob): If GLOB_MARK set, stat names to find
6830         directories and append slashes to them in final pass before
6831         sorting.
6832         (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
6833         slash; never append it here.
6834
6835 Sat Apr 22 14:48:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6836
6837         * mach/Machrules [interface-library]
6838         (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
6839         -nostdlib.
6840
6841         * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed.  Lock
6842         _hurd_siglock only around initial task creation in parent.  Use
6843         _hurd_critical_section_unlock at end.  Handle dead name rights
6844         properly, and deal with a send right dying while we try to copy
6845         it.  For the time being, use assert_perror for kernel and proc RPC
6846         failures.
6847
6848 Fri Apr 21 01:10:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6849
6850         * extra-lib.mk: Don't include $(o-iterator); construct it by hand
6851         using $(object-suffixes-$(lib)) instead.
6852
6853         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
6854
6855         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
6856         (LDFLAGS-c.so): New variable.
6857
6858         * resolv/res_init.c (res_init): Don't clobber _res.options with
6859         RES_DEFAULT.  If RES_INIT is clear, OR in RES_DEFAULT.
6860
6861         * hurd/hurd.h: Declare _hurd_startup.
6862         * hurd/hurdstartup.c: New file.
6863         * hurd/Makefile (routines): Add hurdstartup.
6864
6865 Thu Apr 20 22:23:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6866
6867         * hurd/hurdsig.c: Use assert_perror for many calls which should
6868         never fail and previously were not checked.
6869
6870         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6871         Point the return address for sigreturn's frame at a "hlt" insn so
6872         it will definitely crash if sigreturn returns.
6873
6874 Wed Apr 19 18:40:11 1995  Brendan Kehoe  (brendan@zen.org)
6875
6876         * time/tzset.c (__tzname, __daylight, __timezone): Don't check
6877         HAVE_WEAK_SYMBOLS for doing weak_alias.
6878
6879 Wed Apr 19 18:12:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6880
6881         * configure.in: Move $os tests to set $elf et al earlier, before
6882         construction of $sysnames.  Instead of prepending MACHINE/elf to
6883         $sysnames, append &/elf after each elt appended to $mach.
6884
6885 Tue Apr 18 14:00:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6886
6887         * configure.in (libc_cv_asm_global_directive): New check to define
6888         ASM_GLOBAL_DIRECTIVE.
6889         * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
6890         * libc-symbols.h (strong_alias_asm, strong_alias): Use
6891         ASM_GLOBAL_DIRECTIVE on the alias.
6892
6893         * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
6894         HAVE_WEAK_SYMBOLS" #defns.
6895
6896 Mon Apr 17 12:02:49 1995  Brendan Kehoe  (brendan@zen.org)
6897
6898         * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
6899         of the byte that was zero, so we return a valid number.
6900
6901 Sun Apr 16 03:23:09 1995  Brendan Kehoe  (brendan@zen.org)
6902
6903         * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
6904         NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
6905
6906 Fri Apr 14 18:49:03 1995  Brendan Kehoe  (brendan@zen.org)
6907
6908         * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
6909         [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
6910         * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
6911         [BITS_PER_MP_LIMB == 64]: Likewise.
6912
6913         * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
6914         * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
6915         * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
6916         * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
6917         * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
6918         * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
6919         * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
6920         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
6921         * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
6922         * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
6923         * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
6924
6925         * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
6926         * sysdeps/unix/mips/fork.S (fork): Likewise.
6927         * sysdeps/unix/mips/pipe.S (fork): Likewise.
6928         * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
6929         * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
6930         * sysdeps/unix/mips/wait.S (__handler): Likewise.
6931         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
6932         * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
6933         * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
6934         * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
6935         * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
6936         * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
6937         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
6938         * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
6939         * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
6940         * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise.  Use `$0'
6941         instead of `zero' for the li instruction.
6942
6943         * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
6944         preprocessor comments, not assembler comments.
6945         * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
6946         * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
6947
6948 Fri Apr 14 15:53:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6949
6950         * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
6951         in place of inline.
6952
6953 Thu Apr 13 09:45:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6954
6955         * Makefile (distribute): Add ChangeLog.[0-9].
6956
6957         * configure.in: Add check for .set directive.
6958         * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
6959         * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
6960         strong_alias_asm): Use `foo = bar' syntax instead.
6961
6962         * Makerules [! subdir] (O%-lib): Don't prepend ../.
6963
6964         * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
6965
6966         * configure.in: Fix AC_ARG_WITH uses; check for --with-fp.  Move
6967         $host_os checks to set gnu_ld/as and elf before sysdirs
6968         generation.  Fix $with_fp test.
6969         [$elf=yes]: Prepend MACHINE/elf directory.
6970
6971         * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
6972         being cleared are already known to be set.  Thanks Ulrich.
6973
6974 Wed Apr 12 23:27:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6975
6976         * posix/environ.c: Add weak alias `_environ'.
6977
6978 Tue Apr 11 20:38:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6979
6980         * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
6981         * sysdeps/i386/sub_n.S [PIC]: Likewise.
6982
6983 Mon Apr 10 14:53:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
6984
6985         * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
6986         word `const'.
6987
6988         * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
6989         $(foo-$(suffix $@)).
6990
6991         * manual/Makefile (chapters-incl): Filter out summary.texi.
6992
6993         * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
6994         a weak symbol instead of literal "STRTOF".
6995
6996         * locale/setlocale.c: Work around ld bug: don't weakify refs to
6997         _nl_{current,C}_*.
6998
6999 Sun Apr  9 01:24:33 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7000
7001         * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
7002
7003         * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
7004         * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
7005
7006         * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
7007         #ifdef emacs, but only #ifndef memmove.
7008         * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
7009         safe_bcopy.
7010         (memmove): Define only if undefined.
7011
7012 Sat Apr  8 00:40:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7013
7014         * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
7015         sure these are simply-expanded variables.
7016
7017         * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
7018         mmap call.
7019
7020         * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
7021         for these too.
7022
7023         * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
7024         set c_oflag value.
7025
7026         * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
7027
7028         * locale/Makefile (categories): Uncomment collate.
7029         * locale/lc-collate.c: New file.
7030
7031         * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
7032         #ifdef emacs.
7033         * malloc/realloc.c: Likewise.
7034
7035         * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
7036         (_itoa): Use it in defn.
7037         * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
7038         "_itoa.h".
7039         (_itoa): Function removed.
7040
7041         * malloc/free.c: Remove use of `assert'.
7042
7043         * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
7044         __malloc_safe_bcopy; #define safe_bcopy.
7045         * malloc/free.c: Cope with systems lacking `memmove'.
7046         (_free_internal): Cast result of _malloc_internal.
7047
7048 Wed Apr  5 00:13:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7049
7050         * hurd/hurdinline.c: Include signal.h first, so we don't define
7051         its inlines too.
7052
7053         * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
7054         of -1 to avoid compiler warning.
7055
7056         * configure.in (host_os=linux*): Set elf=yes for this, not just
7057         linux*elf*.
7058
7059         * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
7060         and open.
7061
7062         * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
7063
7064 Tue Apr  4 00:48:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7065
7066         * sysdeps/unix/start.c: Remove spurious decl and #endif.
7067
7068         * misc/progname.c (program_invocation_name,
7069         program_invocation_short_name): Make these initialized data
7070         definitions.
7071
7072         * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
7073         so gcc doesn't optimize out the function entirely.
7074
7075 Sun Apr  2 13:13:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7076
7077         * posix/execvp.c: Don't use stat to search path; just try execv
7078         until it works.
7079
7080         * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
7081         SS->active_resources, so that _hurdsig_longjmp_from_handler will
7082         be called when a longjmp unwinds the signal frame.
7083         * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
7084         SS->active_resources chain added by _hurd_setup_sighandler.
7085         * hurd/sigunwind.c: New file.
7086         * hurd/Makefile (sig): Add sigunwind.
7087
7088         * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
7089
7090         * MakeTAGS (tags-sources): Include $(all-dist).
7091         [subdir] (all-dist): Define to $(distribute).
7092
7093 Sat Apr  1 00:08:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7094
7095         * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
7096         parent objdirs.
7097
7098         * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
7099         filtering out $($(lib)-inhibit-o); use that instead of
7100         $(object-suffixes) in all the other variables.
7101
7102         * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
7103         if undefined.
7104
7105         * string/strxfrm.c: Just copy the string (for now).
7106         * string/strcoll.c: Just call strcmp (for now).
7107
7108         * mach/Makefile (lock): Add mutex-init.
7109         * mach/mutex-solid.c (_cthread_mutex_lock_routine,
7110         _cthread_mutex_unlock_routine): Variables removed.
7111         (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
7112         (__mutex_init): Function moved to new file mutex-init.c.
7113         * mach/mutex-init.c: New file, broken out of mutex-solid.c.
7114
7115 Thu Mar 30 20:43:02 1995  Brendan Kehoe  <brendan@zen.org>
7116
7117         * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
7118         * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
7119
7120 Thu Mar 30 01:38:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7121
7122         * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
7123         both are zero).
7124
7125 Wed Mar 29 11:26:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7126
7127         * elf/dlfcn.h: New file.
7128
7129         * Make-dist (README): Commit it to CVS if there is a CVS directory.
7130
7131         More changes from Germano Caronni <caronni@tik.ethz.ch>:
7132         * malloc/free.c: Relocate _heapinfo when that allows us to return
7133         core to the system.
7134
7135         * malloc/malloc.c: Move #include <errno.h> outside #ifndef
7136         _MALLOC_INTERNAL.
7137
7138 Mon Mar 27 02:23:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7139
7140         * mach/Makefile (headers): Add mach/mach_traps.h.
7141
7142         * Makerules ($(installed-libcs) rule): Fix typos.
7143
7144         * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
7145         * sysdeps/stub/revoke.c: New file.
7146         * misc/Makefile (routines): Add revoke.
7147         * posix/unistd.h [__USE_BSD] (revoke): Declare it.
7148         * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
7149         (forkpty): Declare login_tty.
7150         * misc/logwtmp.c (logwtmp): Declare to return void.
7151         * misc/login_tty.c (login_tty): Include unistd.h.  Declare return type.
7152
7153         * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
7154
7155         * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
7156         unless L_SET already defined.
7157         * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
7158         already defined.
7159
7160         Incorporated -lutil library from 4.4-Lite.
7161         * misc/Makefile (extra-libs, libutil-routines): New variables.
7162         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
7163         sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
7164
7165         Support simple, light-weight unwind-protect mechanism for longjmp.
7166         * setjmp/longjmp.c: Call _longjmp_unwind first thing.
7167         * sysdeps/mach/hurd/jmp-unwind.c: New file.
7168         * sysdeps/stub/jmp-unwind.c: New file.
7169         * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
7170         * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
7171         * setjmp/Makefile (routines): Add jmp-unwind.
7172         * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
7173         `prevp' members into new substructure `resource'; add another such
7174         substructure `thread' and members `cleanup' (function ptr) and
7175         `cleanup_data' (generic ptr).
7176         (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
7177         into the `_hurd_self_sigstate ()->active_resources' list via the
7178         `thread' substructure.
7179         * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
7180         (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
7181         LINK->cleanup_data' to the port extracted.
7182         * hurd/hurd/signal.h (struct hurd_sigstate): New member
7183         `active_resources'.
7184         * hurd/port-cleanup.c: New file.
7185         * hurd/Makefile (routines): Add port-cleanup.
7186
7187         * malloc/malloc.c: Include errno.h.
7188
7189 Sat Mar 25 18:24:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7190
7191         * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
7192
7193 Fri Mar 24 02:35:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7194
7195         * misc/Makefile (headers): Add utmp.h.
7196         * misc/utmp.h: New file, incorporated from 4.4-Lite.
7197
7198         * stdio/printf-parse.h: New file, mostly written by drepper.
7199         * stdio/vfprintf.c: Rewritten, mostly by drepper.
7200         * stdio/printf-prs.c: Rewritten.
7201         * stdio/Makefile (distribute): Add printf-parse.h.
7202
7203 Thu Mar 23 22:03:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7204
7205         * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
7206         with asm name.  Just do a ".set start, __start".
7207
7208         * malloc/realloc.c: Call _free_internal instead of free.
7209
7210 Tue Mar 21 00:14:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7211
7212         * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
7213         directory, open LOCALE/LC_*/SYS_LC_* instead.
7214
7215 Mon Mar 20 03:19:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7216
7217         * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
7218         stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
7219         stdio/gen-mpn-copy: Files moved to stdlib.
7220         * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
7221         * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
7222         * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
7223         headers.
7224         * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
7225         headers.
7226
7227         * Makefile (parent-mostlyclean): Don't use $(libc.a).
7228         (parent-clean): Use $(objpfx) to find sysd-*.
7229         * Rules (generated): Append dummy.o dummy.c.
7230         * Makerules (lib): Depend on lib-noranlib.
7231         (lib-noranlib): Depend on $(install-lib) in objdir.
7232         (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
7233         from objdir.  Don't remove TAGS; it comes in the distribution.
7234
7235         * malloc/malloc.c (morecore): Save errno around call to
7236         _realloc_internal.  Don't account for the additional new blocks of
7237         the info table itself when choosing the new table size for the
7238         first crack; if it succeeds, the new blocks will have been found
7239         in existing free space already described by the existing info
7240         table.
7241
7242         * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
7243         read-ahead character.
7244
7245 Sat Mar 18 14:07:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7246
7247         * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
7248           hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
7249           hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
7250           hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
7251         Get anal with unsigned to pacify compiler.
7252
7253         * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
7254         means %d from 3rd arg).
7255
7256         * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
7257
7258         * stdlib/strtol.c: If !GROUP, set END to null.  In loop, test only
7259         END, not GROUP.
7260
7261 Fri Mar 17 12:58:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7262
7263         * Makefile (subdirs): Put elf last.
7264
7265         * sunrpc/Makefile (install-lib): Variable removed.
7266         (rpcsvc-objs): Variable removed.
7267         (extra-objs): Don't include $(rpcsvc-objs).
7268         (extra-libs): New variable, contains librpcsvc.
7269         (librpcsvc-routines): New variable.
7270         (librpcsvc-inhibit-o): New variable, contains .so.
7271         (omit-deps): Set this to $(librpcsvc-routines).
7272         ($(objpfx)rpcgen): Don't use $(libc.a).
7273         (lib, $(objpfx)librpcsvc.a): Targets removed.
7274
7275         * o-iterator.mk, extra-lib.mk: New files.
7276         * Makerules (o-iterator): New variable.
7277         [extra-libs]: Include extra-lib.mk to generate rules for each word
7278         of $(extra-libs).
7279         * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
7280
7281 Fri Mar 17 13:28:04 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7282
7283         * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
7284         Handle 80-bit denormalized numbers correctly.
7285
7286         * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
7287         (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
7288         * stdlib/strtod.c (RETURN): Add parentheses around return value.
7289         (round_and_return): Correct handling of denormalized numbers.
7290
7291         * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
7292         LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
7293         exponent.
7294
7295 Thu Mar 16 00:04:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7296
7297         * locale/C-ctype.c: New correct data generated by drepper.
7298
7299         * Rules: Don't use $(libc.a).
7300
7301         Parsing of grouped numbers contributed by Ulrich Drepper.
7302         * stdlib/strtol.c (__strtol_internal): Renamed from strtol.  Take
7303         new flag arg; if nonzero, parse locale-dependent thousands
7304         grouping and interpret only the prefix that is correctly grouped.
7305         (strtol): Define this to call _strtol_internal with zero for the flag.
7306         Use a weak symbol for the definition.
7307         * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
7308         Check for the exponent of the number overflowing the float format.
7309         * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
7310         (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
7311         [__OPTIMIZE__]: Define inline functions calling those.
7312         * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
7313         (strtold): Remove weak alias.
7314         * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
7315         (strtof): Remove weak alias.
7316         * stdlib/grouping.h: New file, written by drepper.
7317         * stdlib/Makefile (distribute): Add grouping.h.
7318         * stdio/vfscanf.c: Grok %' modifier to numeric conversions.  Call
7319         __strtoX_internal with the grouping flag set iff the modifier is
7320         present.
7321
7322 Wed Mar 15 00:40:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7323
7324         * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
7325
7326         * mach/Machrules: Produce static deps for all object flavors.
7327         [interface-library]: Remove all these variables and rules.
7328         ($(interface-library)-routines): Define this variable.
7329         (extra-libs): Append $(interface-library) to this.
7330         * mach/Makefile (interface-library): Omit .a suffix.
7331         * hurd/Makefile: Likewise.
7332
7333 Tue Mar 14 23:40:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7334
7335         * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
7336         early if no new data in buffer after priming.
7337
7338 Mon Mar 13 01:48:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7339
7340         * Makerules (object-suffixes, libtypes): Move all these variables
7341         to Makeconfig.
7342         * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
7343
7344         * Makerules (build-extra-lib): New canned sequence.
7345
7346         * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h.  Declare ERR;
7347         fix uses of FILE and PORT.  Remove bogus weak alias for `access'.
7348
7349         * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
7350         Add missing semicolon.
7351         * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h.  Use a `struct
7352         hurd_fd *' temp var, since DIRP->__fd is a `void *'.
7353         * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
7354
7355         * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
7356         locale data format is implemented.
7357
7358         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
7359         Pass &__sigreturn on the stack to the trampoline code, so it is
7360         not position-dependent.
7361
7362         * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
7363         Don't include <stdarg.h>.
7364         (__printf_fp): Last arg ARGS is now `const void **const';
7365         dereference ARGS[0] instead of using va_arg.
7366
7367         * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
7368         loop to install data.
7369
7370         * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
7371         to extract number from item code.
7372         (_nl_load_locale): Close the descriptor when finished.
7373
7374         * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
7375         place of malloc.
7376
7377         * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
7378
7379         * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
7380         to avoid warning.
7381         * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
7382         int to avoid warning.
7383
7384         Support building several flavors of objects and libraries.
7385         * Makerules (libtypes, object-suffixes): New variables.
7386         (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
7387         suffix.
7388         (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
7389         (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
7390         (close-check-inhibit-asm): Append a semicolon.
7391         (sysd-rules): Generate rules for each object suffix.
7392         (compile.S, compile.c): Always assume gcc.
7393         (OUTPUT_OPTION): Define unconditionally.
7394         (+make-deps): In generated rule, produce a dependent for each
7395         object suffix.
7396         (.SUFFIXES): Add $(object-suffixes) in place of .o.
7397         (.PRECIOUS): Make all suffix flavors precious.
7398         ($(libc.a)): Target removed.
7399         (lib): Depend on each enabled libtype.
7400         (libobjs, objects, objs): Depend on all the enabled object flavors.
7401         (lib%.a): New pattern rule.
7402         [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
7403         (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
7404         to make one for each flavor; library dep rule likewise rewritten.
7405         ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
7406         flavor.
7407         (symdef.%): New pattern rule; helper for __.SYMDEF targets.
7408         (installed-libcs): New variable.
7409         (install): Depend on that instead of
7410         $(libdir)/lib$(libprefix)$(libc-name).a;
7411         that file's rule rewritten to make each enabled libtype.
7412         (install-lib.so): New variable, filters lib%.so from $(install-lib).
7413         (install-lib): Filter out lib%.so after setting install-lib.so.
7414         [$(build-shared)=yes] (install): Install $(install-lib.so).
7415         (common-mostlyclean): Remove all flavors of objects.
7416         * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
7417         [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
7418
7419 Sun Mar 12 18:21:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7420
7421         * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
7422         * sysdeps/stub/pause.c: Likewise.
7423         * sysdeps/stub/time.c: Likewise.
7424
7425         * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
7426         locale data format is implemented.
7427         * stdlib/wctomb.c: Likewise.
7428
7429         * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
7430         gcc bug is fixed.
7431         * mach/errsystems.c: File removed.
7432
7433         * Makeconfig (libc.a): Variable removed.
7434         (+link): Don't use it.
7435
7436         * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
7437         assuming `yes'.
7438
7439         * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
7440         * malloc/realloc.c (_realloc_internal): Renamed from realloc;
7441         don't use __realloc_hook.
7442         (realloc): New function; call __realloc_hook ?: _realloc_internal.
7443         * malloc/malloc.c (_malloc_internal): Renamed from malloc;
7444         don't use __malloc_hook.
7445         (malloc): New function; call __malloc_hook ?: _malloc_internal.
7446         Changes from Germano Caronni <caronni@tik.ethz.ch>:
7447         (initialize): Set up _heaplimit to cover the _heapinfo table.
7448         (morecore_recursing): New static variable.
7449         (morecore): If that is set, return null immediately.
7450         When growing the info table, before getting new core from the
7451         system for it, set morecore_recursing and try moving _heapinfo
7452         with _realloc_internal.  When that fails and we get new core, set
7453         _heaplimit to cover the core for the new _heapinfo table.
7454         (register_heapinfo): New function.  Record the _heapinfo table's
7455         own blocks in that table and in the statistics variables.
7456         (initialize, _malloc_internal): Use it after allocating new table.
7457
7458 Fri Mar 10 22:26:28 1995  Jim Meyering  (meyering@comco.com)
7459
7460         * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
7461         by other packages.
7462         [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
7463
7464 Fri Mar 10 13:31:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7465
7466         * mach/errorlib.h (errors): Use const for decl.
7467
7468         * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
7469         (decode): New inline function; decode signed 32-bit integers, and
7470         sign-extend properly when long is longer than 32 bits.
7471         (__tzfile_read): Changed all uses of uc2ul to decode.
7472         Decode the transition times properly when sizeof (time_t) > 4.
7473
7474         * stdio/printf.h: Doc fixes.  Don't #include <stddef.h>.
7475         (printf_function): Make last arg ARGS a vector of pointers instead of a
7476         pointer to va_list.
7477
7478 Fri Mar 10 13:46:25 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
7479
7480         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
7481         (buffered_vfprintf): Remove line buffer when flush failed.
7482
7483 Fri Mar 10 00:04:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7484
7485         * time/tzfile.c (struct ttinfo): New member `isgmt'.
7486         (__tzfile_read): Read isgmt flags for each type.
7487         (__tzfile_default): When using TZDEFRULES DST rules, adjust
7488         transition times according to the isstd and isgmt flags for the
7489         types of each transition, and adjust each transition to point to
7490         type index either 0 or 1.  Reset type indices 0 and 1 to describe
7491         the user's settings.
7492
7493 Thu Mar  9 22:29:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7494
7495         * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
7496         into just CLASS.  Add standard/optional flag to all items.
7497
7498         * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
7499
7500         * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
7501         Rearrange defn to satisfy compiler.
7502
7503         * locale/localeinfo.h: Declare _nl_current.
7504
7505         * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB.  Accept args
7506         --enable-shared, --enable-profile, --enable-omitfp; pass settings
7507         through to config.make.
7508         * config.make.in (build-shared, build-profile, build-omitfp): New
7509         config vars.
7510
7511         * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
7512         (DT_NUM): New macro.
7513
7514         * locale/nl_langinfo.c: Include errno.h and stddef.h.  Fix typos.
7515
7516         * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
7517
7518         * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
7519         MAP_COPY to MAP_PRIVATE.
7520
7521 Thu Mar  9 17:16:53 1995  Brendan Kehoe  (brendan@zen.org)
7522
7523         * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
7524         that's used inside the alpha sysdep.h.
7525
7526         * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
7527         keyword.
7528         * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
7529
7530         * configure.in: Match `osf*', not `osf1*'.
7531         * configure: Likewise.
7532         * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
7533
7534 Wed Mar  8 13:38:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7535
7536         * posix/glob/configure.bat: Fixes from DJ.
7537
7538         * time/backward, time/europe, time/northamerica, time/pacificnew,
7539         time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
7540         time/ialloc.c: Code and data updated from ADO's 95b.
7541         * time/emkdir.c: File removed.
7542         * time/Makefile (distribute, extra-objs, zic): Omit it.
7543
7544         * time/localtime.c: Deansideclized.  Never #define __tzname et al
7545         to non-__ names.
7546
7547         * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
7548         instead of short int *.
7549         * ctype/ctype-info.c: Likewise.
7550         * ctype/ctype.h: Likewise.
7551
7552         * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
7553         of EB and EL versions.
7554
7555 Mon Mar  6 12:34:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7556
7557         * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
7558         (_IS* enum): Use _ISbit to produce values.
7559
7560 Sun Mar  5 19:40:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7561
7562         * locale/localeinfo.h: Rewritten for new locale system, using
7563         locale data files and with <langinfo.h> interface.
7564         * locale/setlocale.c: Rewritten to use locale data files.
7565         * langinfo.h: New file.
7566         * locale/langinfo.h: New file.
7567         * locale/nl_langinfo.c: New file.
7568         * locale/loadlocale.c: New file.
7569         * locale/lc-ctype.c: New file.
7570         * locale/lc-messages.c: New file.
7571         * locale/lc-monetary.c: New file.
7572         * locale/lc-numeric.c: New file.
7573         * locale/lc-time.c: New file.
7574         * locale/categories.def: New file.
7575         * locale/Makefile (headers): Remove localeinfo.h.
7576         (distribute): New variable; put localeinfo.h here, and categories.def.
7577         (routines): Add loadlocale.
7578         (categories): New variable.
7579         (aux): Use that to get C-category and lc-category.
7580         * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
7581         * ctype/ctype-info.c: For initial tables, use
7582         _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
7583         locale/C-ctype.c.
7584         * locale/C-ctype.c, locale/C-messages.c: New files.
7585         * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
7586         Default "C" locale data updated for new locale system.
7587         * locale/C-collate.c: File removed.
7588         * locale/C-ctype_ct.c: File removed.
7589         * locale/C-ctype_mb.c: File removed.
7590         * locale/C-response.c: File removed.
7591         * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
7592         * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
7593           stdlib/strtod.c, time/asctime.c, time/strftime.c:
7594         Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
7595         locale data.
7596         * time/localtime.c: Don't include <localeinfo.h>.
7597         * time/tzset.c: Don't use locale items for default TZ value or
7598         "GMT" string (use "UTC").
7599
7600         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
7601         WIDTH>0; update DONE.
7602
7603         * malloc/malloc.c (morecore): Fix last change to calculate by
7604         blocks instead of bytes.
7605
7606 Fri Mar  3 12:24:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7607
7608         * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
7609         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
7610         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
7611         * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
7612         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
7613         * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
7614         alias munmap.
7615         * sysdeps/unix/mman/munmap.S: Likewise.
7616         * sysdeps/mach/munmap.c: Likewise.
7617         * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
7618         alias mmap.
7619         * sysdeps/unix/mman/mmap.S: Likewise.
7620         * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
7621         * sysdeps/stub/mmap.c: Likewise.
7622
7623         * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
7624
7625         * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
7626
7627 Thu Mar  2 12:15:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7628
7629         * misc/search.h: Add missing semicolon.
7630
7631         * sysdeps/unix/dirfd.c: Fix typo.
7632
7633         * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
7634         in decl.
7635
7636         * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
7637         WIDTH before test.
7638
7639 Wed Mar  1 00:57:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7640
7641         * stdlib/strtod.c: Fixes from drepper.
7642         [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
7643         * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
7644         * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
7645
7646         * stdio/vfprintf.c: Correctly notice Z modifier.
7647
7648         * misc/search.h: New file.
7649         * misc/Makefile (headers): Add search.h.
7650         * misc/insremque.c: Include search.h.
7651         (struct qelem): Type removed.
7652
7653 Mon Feb 27 07:00:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7654
7655         * elf/libelf.h: New file.
7656         * elf/elf_hash.c: New file.
7657
7658 Sun Feb 26 15:51:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7659
7660         Changes from Germano Caronni <caronni@tik.ethz.ch>:
7661         * malloc/malloc.c (morecore): Account in NEWSIZE for the
7662         malloc_info structures for each new block.
7663
7664 Sat Feb 25 02:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7665
7666         * sysdeps/mach/hurd/kill.c: When the process has no message port
7667         registered and we have its task port, translate a few signals to
7668         task_suspend/task_resume/task_terminate.
7669
7670 Fri Feb 24 14:40:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7671
7672         * io/Makefile (routines): Add euidaccess.
7673         * sysdeps/mach/hurd/euidaccess.c: New file.
7674         * sysdeps/stub/euidaccess.c: New file.
7675         * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
7676
7677         * dirent/Makefile (routines): Add dirfd.
7678         * sysdeps/stub/dirfd.c: New file.
7679         * sysdeps/unix/dirfd.c: New file.
7680         * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
7681         * dirent/dirent.h (dirfd): Declare new function.  Define as macro
7682         _DIR_dirfd if that is defined.
7683         * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
7684         with `void *__fd'.
7685         * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
7686         Open the file with `open'; set FD_CLOEXEC on the fd.
7687         * sysdeps/mach/hurd/closedir.c: Likewise.
7688         * sysdeps/mach/hurd/readdir.c: Likewise.
7689         * sysdeps/mach/hurd/dirfd.c: New file.
7690
7691         * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
7692         directory.
7693         (glob/ChangeLog): Likewise.
7694
7695         * locale/locale.h (LC_*): Use small integers instead of bit masks.
7696
7697         * stdio/bug4.c: Put temporary files in /tmp.
7698         * stdio/bug3.c: Likewise.
7699         * stdio/bug5.c: Likewise.
7700         * stdio/test-fseek.c: Likewise.
7701         * stdio/test-popen.c: Likewise.
7702
7703 Wed Feb 22 00:44:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7704
7705         * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
7706
7707         * libc-symbols.h (weak_symbol): New macro.
7708
7709         * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
7710         elts with null handlers.
7711
7712         * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
7713
7714 Tue Feb 21 21:53:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7715
7716         * stdlib/random.c (__srandom): Change algorithm used to populate
7717         the state array.
7718         (randtbl): Recomputed with new algorithm.
7719
7720         * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
7721         to original value of `crypt'.
7722         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
7723         (crypt): New variable, set to crypt.solar.
7724
7725 Tue Feb 21 11:50:37 1995  Brendan Kehoe  (brendan@zen.org)
7726
7727         * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
7728
7729         * config.h.in: Put comment around ^L to pacify Solaris as here too.
7730
7731 Tue Feb 21 00:10:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7732
7733         * string/Makefile (distribute): Add pagecopy.h.
7734         * sysdeps/mach/pagecopy.h: New file.
7735         * sysdeps/generic/pagecopy.h: New file.
7736         * sysdeps/generic/memcpy.c: Include pagecopy.h; call
7737         PAGE_COPY_FWD_MAYBE first when word aligned.
7738         * sysdeps/generic/memmove.c: Likewise.
7739
7740         * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
7741         (getpgrp): Call __getpgid instead of __getpgrp.
7742
7743         * Makefile (subdirs): Add elf first.
7744         * elf/Makefile: New file.
7745         * elf/elf.h: New file.
7746
7747         * sysdeps/unix/start.c (errno): Only define if it's not #define'd
7748         as a macro.
7749         [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
7750         indirection.
7751
7752         * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
7753         add crti_s, crtn_s.
7754         (install-lib, extra-objs, generated-, omit-deps): Use that.
7755         (initfini): New canned sequence, broken out of crt[in].s rule.
7756         (crt[in].s rule): Use it.
7757         (crt[in]_s.s): New rule.
7758         * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
7759         (_init, _fini): Use GLOBAL as storage class.
7760         Add self reference to avoid GCC optimizing out the functions.
7761
7762         * Makefile (headers): Remove $(stddef.h).
7763         * Makeconfig (stddef.h): Variable removed; now require gcc version
7764         >= 2.2.
7765         * stddef.h: File removed.
7766
7767 Mon Feb 20 19:42:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7768
7769         * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
7770         definition.
7771         * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
7772
7773         * stdlib/strtod.c: Allow the string to start with a decimal point
7774         without a leading zero.
7775
7776 Mon Feb 20 04:04:57 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
7777
7778         * Makefile (subdirs): Put csu first.
7779
7780         * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
7781
7782         * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
7783         to crt[in].o.
7784         (csu-objpfx): New variable.
7785         (+link): Use it to find start.o and $(+preinit), $(+postinit).
7786
7787         * Rules (subdir_lib, all): Depend on objs.
7788
7789         * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
7790
7791         * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
7792         access to float.h macros.
7793
7794         * misc/efgcvt.c: New file.
7795         * misc/Makefile (routines): Add efgcvt.
7796
7797 Sun Feb 19 20:10:43 1995  Brendan Kehoe  <brendan@zen.org>
7798
7799         * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
7800         * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
7801         to avoid a misreference that would override sysdeps/generic/mul.c.
7802         * sysdeps/sparc/Dist: Likewise.
7803
7804 Sun Feb 19 17:46:13 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
7805
7806         * posix/Makefile (aux): Add environ.
7807         * posix/environ.c: New file.
7808         * sysdeps/unix/sparc/start.c: Remove __environ definition.
7809         * sysdeps/unix/start.c: Likewise.
7810         * sysdeps/unix/sysv/irix4/start.c: Likewise.
7811         * sysdeps/mach/hurd/start.c: Likewise.
7812         * sysdeps/mach/start.c: Likewise.
7813         * sysdeps/stub/start.c: Likewise.
7814
7815         * sysdeps/unix/make_errlist.c: In produced program, test
7816         HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
7817         * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
7818         Remove extra weak alias.
7819
7820         * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
7821         in #include.
7822
7823         * libc-symbols.h: Put comment around ^L to pacify Solaris as.
7824
7825         * sysdeps/posix/Makefile (cded-objdir-includes): New variable
7826         replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
7827         $(CPPFLAGS).
7828         (mk-stdiolim): Use it instead.
7829
7830 Fri Feb 17 12:16:27 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
7831
7832         * mach/mach_init.c (__vm_page_size): Make it initialized.  It does
7833         not work to make a weak alias to a bss symbol.
7834
7835         * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
7836         (tests): Add test-fwrite.
7837         * stdio/test-fwrite.c: New file.
7838
7839         * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
7840         __strtold.
7841
7842         * Makefile (autoconf-it): New canned sequence.  Do cvs commit if
7843         there is a CVS directory.
7844         (configure, %/configure): Use $(autoconf-it) for cmds.
7845         * Make-dist: Likewise.
7846         * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
7847         if there is a CVS directory.
7848         * sysdeps/sparc/Makefile (divrem output): Likewise.
7849         * sysdeps/alpha/Makefile (divrem output): Likewise.
7850         * Makerules ($(gpl2lgpl)): Likewise.
7851
7852         * Makerules (rule to install lib%.a from $(install-lib)): Fix
7853         patsubst to elide ranlib for $(non-lib.a).
7854
7855         * stdio/tst-printf.c: Enable FP tests.  Add some new tests from rfg.
7856
7857 Thu Feb 16 04:06:06 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
7858
7859         * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
7860         * mach/mig-dealloc.c: Add weak alias mig_deallocate.
7861
7862 Wed Feb 15 13:34:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7863
7864         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
7865         DEALLOC_REFPORT; deallocate the refport after use only if it
7866         evaluates to nonzero.
7867         * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
7868         * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
7869
7870         * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
7871         *STATE_CHANGE to indicate whether or not we changed *STATE and it
7872         should be committed to the thread.
7873         (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
7874         state for a thread, do thread_set_state on that thread.  Don't use
7875         SS->intr_port for collecting reply ports, it is not safe to
7876         clobber that when suspending; instead, alloca a temporary array.
7877         (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
7878         zero when dying, one when suspending.  Pass new arg to abort_rpcs.
7879
7880         * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
7881         HURD_FD_PORT_USE will.  Don't use critical sections around
7882         HURD_FD_PORT_USE invocations.
7883
7884         * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
7885         * sysdeps/posix/stdio_init.c: Likewise.
7886
7887 Tue Feb 14 03:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7888
7889         * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
7890         locking; don't leave the descriptor locked on return.
7891         (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
7892         Use a critical section around locking the descriptor.
7893         Check for an empty descriptor and return EBADF.
7894         * sysdeps/mach/hurd/dup2.c: Likewise.
7895         * sysdeps/mach/hurd/fcntl.c: Likewise.
7896         Use HURD_FD_PORT_USE macro for RPCs.
7897         * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
7898         using HURD_FD_PORT_USE.
7899         * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
7900         to lock the descriptor.
7901         * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
7902         locking the descriptor.
7903         * sysdeps/mach/hurd/fdopen.c: Likewise.
7904         * hurd/fd-close.c: Likewise.
7905         Don't expect the descriptor to be locked on entry.
7906         Check for empty descriptor and return EBADF.
7907
7908         Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
7909         new functions _hurd_ctty_input and _hurd_ctty_output, each
7910         called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
7911         * hurd/ctty-input.c: New file.
7912         * hurd/ctty-output.c: New file.
7913         * hurd/Makefile (dtable): Add ctty-input and ctty-output.
7914         * hurd/fd-read.c: Use _hurd_ctty_input.
7915         * hurd/fd-write.c: Use _hurd_ctty_output.
7916         * sysdeps/mach/hurd/ioctl.c: Likewise.
7917         * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
7918
7919 Mon Feb 13 11:36:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7920
7921         * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
7922         as appropriate to the type.
7923
7924         * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
7925         repeating the union.
7926         (HUGE_VAL, __huge_val): Use it.
7927         [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
7928         analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
7929         * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
7930         (STRTOF): Set to __strtold; define strtold as weak alias.
7931         * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
7932         (STRTOF): Set to __strtof; define strtof as weak alias.
7933
7934         * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
7935         (IEEE754_FLOAT_BIAS): New macro.
7936
7937         * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
7938
7939         * stdlib/testmb.c: Add tests from rfg for using normal chars as
7940         multibyte chars.
7941
7942         * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
7943         only the `defined but not used' warning, but also to avoid GCC
7944         optimizing out the entire function (!).
7945
7946         * stdlib/wctomb.c: Include ctype.h.
7947
7948         * Makerules (install-lib-non.a): Don't include $(non-lib.a).
7949
7950         * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
7951
7952 Sat Feb 11 04:05:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7953
7954         * stdio/printf_fp.c: Include "fpioconst.h".
7955         (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
7956         (__printf_fp): All references changed.
7957         Don't bother computing THOUSANDS_SEP if GROUPING is empty.
7958         (group_number): Use memmove instead of memcpy, since operands overlap.
7959         * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
7960         * stdio/fpioconst.h: New file, header declaring the table data.
7961         * stdio/Makefile (aux): Add fpioconst.
7962         (distribute): Add fpioconst.h.
7963         * stdlib/strtod.c: Complete rewrite from drepper.
7964         * stdlib/strtof.c: New file.
7965         * stdlib/strtold.c: New file.
7966         * stdlib/Makefile (routines): Add strtof, strtold.
7967         * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
7968         * sysdeps/stub/mpn2flt.c: New file.
7969         * sysdeps/stub/mpn2dbl.c: New file.
7970         * sysdeps/stub/mpn2ldbl.c: New file.
7971         * sysdeps/ieee754/mpn2flt.c: New file.
7972         * sysdeps/ieee754/mpn2dbl.c: New file.
7973         * sysdeps/ieee754/mpn2ldbl.c: New file.
7974
7975         * Makerules (install-lib.a): Don't filter out $(non-lib.a).
7976         ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
7977         appears in $(non-lib.a).
7978
7979 Fri Feb 10 17:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7980
7981         * stdlib/wctomb.c: A normal ASCII character translates to itself.
7982         * stdlib/mbtowc.c: Likewise.
7983
7984 Thu Feb  9 03:55:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7985
7986         * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
7987         Remove `const' from prototypes.
7988         * sysdeps/m68k/__longjmp.c: Likewise.
7989         * setjmp/longjmp.c: Likewise.
7990         * sysdeps/i386/__longjmp.c: Likewise.
7991
7992         * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
7993         so when we return a name, it is incremented past the value that
7994         produces that same name.
7995
7996         * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype.  Sigh.
7997         * stdio/stdio.h (fgets): Likewise.
7998
7999         * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
8000
8001         * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
8002         when it's EBACKGROUND; we need to notice that it is EBACKGROUND
8003         and retry the RPC.
8004         * hurd/fd-read.c: Likewise.
8005
8006 Wed Feb  8 05:01:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8007
8008         * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
8009         <mach/mig_support.h>.
8010         * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
8011         * assert/assert.c: Likewise.
8012         * sysdeps/posix/libc_fatal.c: Likewise.
8013
8014 Tue Feb  7 12:17:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8015
8016         * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
8017         as macros, to satisfy ANSI pedants.
8018
8019         * stdio/internals.c (flushbuf): When there is no new data after
8020         priming the stream, return without writing out the buffer.
8021         * stdio/Makefile (tests): Add bug7.
8022         * stdio/bug7.c: New file.
8023
8024         * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
8025         S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
8026         is defined.
8027
8028         * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
8029
8030         * stdio/Makefile (tests): Add errnobug.
8031         * stdio/errnobug.c: New file.
8032
8033         * mach/mig_strncpy.c: Include string.h.
8034
8035         * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>.  Its
8036         inlines cause trouble for files defining global register variables.
8037
8038         * stdio/vfprintf.c: Use _strerror_internal for %m.
8039
8040         * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
8041
8042         * stdio/printf.h (struct printf_info): New member `group', for %' flag.
8043         * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
8044         * stdio/vfprintf.c (group_number): New function.
8045         (vfprintf): Support %' flag for integer formats, by calling
8046         group_number after formatting the number in WORK.
8047         * stdio/printf_fp.c (guess_grouping, group_number): New functions.
8048         (__printf_fp): Implement `group' flag using them.
8049
8050         * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
8051         (parent-clean): Remove sysd-rules, not sysdirs.
8052         (distclean): Pass avoid-generated=yes to submake.
8053         (distclean-1): Remove $(sysdep-$(distclean-1)).
8054
8055         * Makerules (objects, objs): Depend on $(extra-objs) too.
8056         (include sysd-Makefile): Protect with ifndef avoid-generated.
8057
8058         * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
8059         (CPPFLAGS): Use $(defines) in place of $(+defines).
8060         Replace -D_LIBC with -include $(..)libc-symbols.h.
8061
8062         * stdio/freopen.c: Set seen bit before calling fclose.
8063
8064 Mon Feb  6 18:34:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8065
8066         * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
8067         successes and each kind of failure.  Return EPERM or EACCES only
8068         if every task failed that way.
8069
8070         * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
8071         correctly.
8072
8073         * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
8074         or resume the process after frobbing.
8075
8076         * hurd/hurdsig.c: Use spin lock operations on sigstate locks
8077         throughout.
8078         (_hurd_thread_sigstate): Don't lock the sigstate lock.
8079         (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
8080         repeated sequences with calls to it.  Don't expect the sigstate
8081         lock to be held on entry; lock it just before examining sigaction.
8082         In handler case, check SS->critical_section after calling
8083         abort_rpcs; if set, mark the signal pending and resume the thread.
8084         * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
8085         (_hurd_self_sigstate): Don't lock the sigstate lock.
8086         (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
8087         _hurd_self_sigstate_unlocked.
8088         * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
8089         the sigstate lock.
8090         * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
8091         Don't expect _hurd_self_sigstate to lock it.  Fix critical section
8092         locking.
8093         * hurd/hurd-raise.c: Likewise.
8094         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
8095         * sysdeps/mach/hurd/sigpending.c: Likewise.
8096         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
8097         * sysdeps/mach/hurd/sigaction.c: Likewise.
8098         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
8099         * hurd/fd-write.c: Likewise.
8100         * hurd/fd-read.c: Likewise.
8101         * sysdeps/mach/hurd/ioctl.c: Likewise.
8102         * sysdeps/mach/hurd/fork.c: Likewise.
8103         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
8104         * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
8105         * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
8106         * hurd/hurdmsg.c (get_int): Likewise.
8107
8108         * stdio/vfprintf.c: Include stddef.h.  Fix typos in libio code.
8109
8110         * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
8111         global.
8112         (PAD): Caller changed.
8113         * stdio/printf_fp.c (__pad): Function removed.
8114         (PAD): Use __printf_pad instead.
8115
8116 Sun Feb  5 17:59:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8117
8118         Merged new FP printer by Ulrich Drepper.
8119         * stdio/printf_fp.c: Rewrite by drepper.
8120         * stdio/Makefile (routines): Add ldbl2mpn.
8121         * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
8122         member.
8123         (union ieee854_long_double): New type, from drepper.
8124         (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
8125         * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
8126         * sysdeps/stub/ldbl2mpn.c: New file.
8127         * math/Makefile (routines): Add isinfl and isnanl.
8128         * sysdeps/ieee754/isinfl.c: New file.
8129         * sysdeps/stub/isinfl.c: New file.
8130         * sysdeps/ieee754/isnanl.c: New file.
8131         * sysdeps/stub/isnanl.c: New file.
8132
8133         * malloc/malloc.c (__malloc_extra_blocks): New variable.
8134         (malloc): When getting more core, get __malloc_extra_blocks extra;
8135         put the new block at the end of the free list and let the next loop
8136         iteration use the initial portion of it.
8137         * malloc/free.c (_free_internal): Account for twice
8138         __malloc_extra_blocks in deciding if we have so much extra memory
8139         we should return it to the system.
8140         * malloc/malloc.h (__malloc_extra_blocks): Declare it.
8141         * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
8142         const in parameter decl.
8143
8144         * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
8145
8146 Fri Feb  3 18:15:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8147
8148         * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
8149
8150         * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
8151         * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
8152         * sysdeps/mips/bsd-setjmp.S: Likewise.
8153         * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
8154         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
8155         Use `long int' for sigcode.  Use explicit register numbers instead
8156         of names.
8157         (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
8158         * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
8159
8160 Thu Feb  2 20:06:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8161
8162         * hurd/hurdmalloc.c: Remove bogus bcopy decl.
8163
8164         * mach/mig_strncpy.c: Add missing `const' in prototype.  Rewritten
8165         using __stpncpy.
8166
8167         * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
8168
8169         * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
8170
8171 Tue Jan 31 13:49:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8172
8173         * mach/mig_strncpy.c: Include mach.h instead of string.h.  Use
8174         vm_size_t instead of size_t for arg and return types.
8175
8176         * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
8177         already does.
8178
8179 Mon Jan 30 00:33:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8180
8181         * set-hooks.h (RUN_HOOK): Dereference PTR properly.
8182
8183         * configure.in (friendly stddef.h check): Write override defn for
8184         `stddef.h' Make variable.
8185         (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
8186
8187         * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
8188
8189         * Rules ($(objpfx)dummy.o): Write an empty function, not just an
8190         empty file.
8191
8192         * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
8193
8194 Sat Jan 28 03:38:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8195
8196         * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
8197
8198         * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
8199         mach/machine/syscall_sw.h with this.
8200
8201 Fri Jan 27 18:33:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8202
8203         * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
8204         instead of <lock-intern.h>.
8205         (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
8206         (_hurd_critical_section_lock): Use spin lock operators.
8207         Don't hold the sigstate lock, unlock it after setting the flag.
8208         (_hurd_critical_section_unlock): Take the sigstate lock
8209         to clear the flag; while holding it, check pending signals.  After
8210         unlocking, sig_post ourselves if there were pending signals.
8211
8212         * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
8213         sigstate lock.  If it is locked, clear SS->critical_section and
8214         SS->context, and unlock it.
8215
8216         * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
8217
8218         * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
8219         * munch-tmpl.c: Likewise.
8220
8221         * mach/Makefile (routines): Don't filter out syscall_% from
8222         $(mach-syscalls).
8223
8224 Fri Jan 27 17:53:49 1995  Jim Meyering  (meyering@comco.com)
8225
8226         * posix/fnmatch.c: Declare errno if it's not defined.
8227         That's simpler than testing #if !defined(__GNU_LIBRARY__)
8228         && !defined(STDC_HEADERS).
8229
8230 Fri Jan 27 15:40:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8231
8232         * csu/Makefile: New file.
8233         * csu/initfini.c: New file.
8234         * Makefile (+other_dirs): Add csu.
8235         (+init): Variable renamed to libc-init.  All references changed.
8236         (aux): Remove start.
8237         (install-lib): Variable removed.
8238         (crt0.o, Mcrt1.o  crt1.o): Targets removed.
8239
8240         * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
8241         and $(objpfx)config.h.
8242         (static deps of RPC alias *.o): Removed.
8243
8244         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
8245         Protect macros with this.
8246         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
8247         * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
8248         * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
8249         * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
8250         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
8251         * sysdeps/unix/mips/sysdep.h: Likewise.
8252
8253 Thu Jan 26 00:02:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8254
8255         * Makerules (compile.[Sc]): Match gcc in $(CC) better.
8256         (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
8257
8258         * hurd/intr-rpc.awk: Emit weak alias.
8259
8260         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
8261         __getpgrp.
8262
8263         * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
8264         this.
8265         * sysdeps/unix/i386/sysdep.h: Likewise.
8266         * sysdeps/unix/sparc/sysdep.h: Likewise.
8267
8268         * io/ftw.c: Avoid `ret' as variable name.
8269         * posix/glob.c: Likewise.
8270
8271         * ctype/ctype.h (_ISalpha): Define as its own bit.
8272         * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
8273
8274         * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
8275         DEFINE_HOOK with this.
8276
8277 Wed Jan 25 00:45:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8278
8279         * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
8280         * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
8281         * mach/shortcut.awk: Emit weak alias.
8282         * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
8283         * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
8284         __ names.
8285         * mach/Makefile (lock): Remove spin-syms.
8286         (routines): Remove __ names, vm_page_size, msgserver_t.
8287         ($(mach-syscalls) rule): Generate files without __, add weak alias.
8288         Remove symbol alias file rule.
8289         ($(mach-shortcuts) rule): Likewise.
8290         [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
8291         * mach/Machrules (if-calls.c): Variable and rule removed.
8292         (interface-headers): Don't add $($(if)-calls).
8293         (transform-user-stub): Define to add weak alias.
8294         * set-hooks.h: Use new libc-symbols.h set access macros.
8295         * time/Makefile (routines): Remove __ names.
8296         (aux): Variable removed.
8297         * hurd/Makefile: Likewise.
8298         * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
8299         (data_start): Define as weak alias for __data_start.
8300         * sysdeps/mach/hurd/start.c: Likewise.
8301         * sysdeps/unix/sparc/start.c: Likewise.
8302         * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
8303         sys_errlist.
8304         * sysdeps/mach/hurd/errlist.awk: Likewise.
8305         * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
8306         alias for __environ.
8307         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
8308         * sysdeps/stub/setdomain.c: Use new stub_warning macro.
8309         * sysdeps/stub/getdomain.c: Likewise.
8310         * sysdeps/stub/vhangup.c: Likewise.
8311         * sysdeps/stub/swapon.c: Likewise.
8312         * sysdeps/stub/sendmsg.c: Likewise.
8313         * sysdeps/stub/recvmsg.c: Likewise.
8314         * sysdeps/stub/acct.c: Likewise.
8315         * sysdeps/stub/isinf.c: Likewise.  Add weak alias isinf for __isinf.
8316         * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
8317         * sysdeps/posix/libc_fatal.c: Likewise.
8318         * sysdeps/i386/abort.c: Likewise.
8319         * sysdeps/i386/__longjmp.c: Likewise.
8320         * sysdeps/generic/make_siglist.c: Emit defn always for
8321         _sys_siglist.  Emit weak alias to sys_siglist.
8322         * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
8323         * sysdeps/ieee754/log10.c: Likewise.
8324         * time/difftime.c: Likewise.
8325         * stdlib/random.c (srand): Define as weak alias for __srandom.
8326         * stdlib/exit.c: Remove obsolete __NORETURN keyword.  Use set-hooks
8327         macros for __libc_atexit.
8328         * stdlib/Makefile (routines): Remove __random, srand.
8329         * stdio/gets.c: Use new link_warning macro instead of old
8330         warn_references.
8331         * stdio/Makefile (routines): Remove __ names.
8332         (aux): Remove syms-stdio.
8333         * socket/Makefile (routines): Added e on getpeernam and getsocknam.
8334         * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
8335         * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
8336         * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
8337         * stdio/stdio.h: Likewise.
8338         * misc/Makefile (routines): Remove __ names.
8339         (aux): Remove data_start.
8340         * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
8341         * sysdeps/mach/hurd/brk.c: Likewise.
8342         * hurd/hurdid.c: Likewise.
8343         * hurd/hurdpid.c: Likewise.
8344         * hurd/openport.c: Likewise.
8345         * hurd/hurdsock.c: Likewise.
8346         * hurd/hurdsig.c: Likewise.
8347         * hurd/hurdrlimit.c: Likewise.
8348         * hurd/hurdmalloc.c: Likewise.
8349         * hurd/dtable.c: Likewise.
8350         * hurd/setauth.c: Likewise.
8351         * misc/progname.c: Likewise.
8352         * misc/init-misc.c: Likewise.
8353         * sysdeps/generic/vfork.c: Likewise.
8354         * sysdeps/unix/bsd/init-posix.c: Likewise.
8355         * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
8356         * time/time.h: Likewise.
8357         * math/Makefile (routines): Remove __ names.
8358         * io/Makefile: Likewise.
8359         * termios/Makefile: Likewise.
8360         * resource/Makefile: Likewise.
8361         * signal/Makefile: Likewise.
8362         * dirent/Makefile: Likewise.
8363         * assert/assert.h: Replace __NORETURN keyword with __attribute__
8364         uses.  Functions return void and macros deal with this.
8365         * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
8366         Return void.  Don't include gnu-stabs.h.
8367         * assert/assert.c: Likewise.
8368         * posix/Makefile (routines): Remove __ names, setpgrp.  Add
8369         getpgid.
8370         (aux): Remove environ.
8371         * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
8372         __attribute__ use.
8373         * posix/unistd.h (_exit): Likewise.
8374         (__getpgrp, __setpgrp): Declarations removed.
8375         (__getpgid, getpid): Declare these.
8376
8377         * configure.in (host_os=gnuelf|linuxelf): Set elf=yes.  Do AC_SUBST
8378         for gnu_ld, gnu_as, elf, and weak.  Call AC_LINK_FILEES on
8379         $libc_link_{sources,dests}.
8380         * sysdeps/unix/configure.in: Remove __ from file names.  Don't
8381         create files, just add to libc_link_{dests,sources}.
8382
8383         * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
8384
8385         * config.h.in: Add #undefs used by sysdeps configures.
8386
8387         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
8388         __setpgid, __getpgid.
8389         * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
8390         from setpgrp.c.
8391         * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
8392         from __getpgrp.c.
8393         * sysdeps/unix/bsd/getpgrp.c: File removed.
8394         * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
8395         Call __getpgid with zero.
8396         * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
8397         weak aliases setpgid and setpgrp.
8398         * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
8399         * sysdeps/unix/common/setpgid.S: Likewise.
8400         * sysdeps/mach/hurd/setpgid.c: Likewise.
8401         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
8402         Use subcall 5 to __pgrpsys.
8403         * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
8404         weak alias getpgid.
8405         * sysdeps/mach/hurd/getpgid.c: Likewise.
8406         * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
8407         * sysdeps/unix/common/getpgid.S: Likewise.
8408         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
8409         Use subcall 4 to __pgrpsys.
8410         * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
8411         * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
8412         * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
8413         * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
8414         * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
8415         * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
8416         * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
8417         * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
8418         * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
8419         * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
8420         * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
8421         * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
8422
8423         * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
8424         from __getdents.S.
8425
8426         * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
8427         * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
8428         warning.
8429         * sysdeps/stub/fexecve.c: Likewise.
8430         * sysdeps/stub/fchdir.c: Likewise.
8431         * sysdeps/stub/fchflags.c: Likewise.
8432         * sysdeps/stub/chflags.c: Likewise.
8433
8434         * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
8435         * sysdeps/generic/abort.c: Likewise.
8436         * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
8437
8438         * hurd/hurdioctl.c: Include hurd/ioctl.h.
8439         (_hurd_ioctl_handler_lists): Define this set.
8440         (_hurd_lookup_ioctl_handler): New function.
8441         * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
8442         * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
8443         (_hurd_lookup_ioctl_handler): Declare it.
8444         (ioctl_handler_t): New typedef.  Use it throughout.
8445         * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
8446         (_hurd_ioctl_handler_lists): Don't define.
8447         (__ioctl): Call _hurd_lookup_ioctl_handler.
8448
8449         * stdlib/strtol.c (maxquad): Make this const.
8450         [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
8451
8452         * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
8453         any compile tests.
8454
8455         * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
8456         __msg_sig_post_request, not __sig_post_request.
8457
8458         * misc/getusersh.c: Renamed to getusershell.c.
8459         * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
8460         * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
8461         * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
8462         * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
8463
8464 Tue Jan 24 00:14:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8465
8466         * sysdeps/stub/settod.c: Renamed to settimeofday.c.
8467         * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
8468         * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
8469         * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
8470         * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
8471         * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
8472         * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
8473         * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
8474         * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
8475         * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
8476         * sysdeps/stub/getprio.c: Renamed to getpriority.c.
8477         * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
8478         * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
8479         * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
8480         * sysdeps/stub/setprio.c: Renamed to setpriority.c.
8481         * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
8482         * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
8483         * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
8484         * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
8485         * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
8486         * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
8487         * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
8488         * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
8489         * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
8490         * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
8491         * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
8492         * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
8493         * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
8494         * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
8495         * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
8496
8497         * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
8498         of __sig_post.
8499         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
8500         * sysdeps/mach/hurd/kill.c: Likewise.
8501         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
8502
8503         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
8504         [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
8505
8506         * sysdeps/stub/remove.c: New file.
8507         * sysdeps/posix/remove.c: New file.
8508
8509 Mon Jan 23 03:26:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8510
8511         * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
8512         mktime.
8513         * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
8514         __mig_strncpy.
8515         * mach/msg-destroy.c: Renamed from __msg_dest.c.
8516         (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
8517         * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
8518         * time/tzset.c (tzname, daylight, timezone): Define as weak
8519         aliases for __ names.
8520         * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
8521         * hurd/hurdlookup.c: Add weak aliases for non-__ names.
8522         * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
8523         being defined.
8524
8525 Sun Jan 22 15:19:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8526
8527         * string/Makefile (routines): Remove __ names, index, rindex, and
8528         bcmp.
8529         * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
8530         alias for strchr.
8531         * sysdeps/generic/strchr.c: Likewise.
8532         * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
8533         alias for strrchr.
8534         * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
8535         alias for memcmp.
8536
8537         * malloc/free.c (cfree): Define this function, with weak_alias if
8538         available, otherwise a C function.
8539         * malloc/Makefile (gmalloc-routines): Remove cfree.
8540
8541 Sat Jan 21 08:08:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8542
8543         * stdio/fseek.c: Do move bufp by O when that puts it exactly at
8544         get_limit.  This has the effect of no-op'ing properly for zero.
8545
8546         * configure.in: Add AC_CONFIG_HEADER(config.h).
8547         (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
8548         * config.h.in: New file.
8549
8550         * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
8551         All code converted to use weak symbols, defined in the files which
8552         define the real code (with the __ names, the non-__ names are weak).
8553         All old symbol alias files removed.
8554         Many files renamed to remove __ prefix since there is now just
8555         the one file for both the __ and non-__ name for each function.
8556         * libc-symbols.h: New file.
8557         * set-hooks.h: Use libc-symbols.h macros for accessing symbol
8558         sets.
8559         * gnu-stabs.h: Prepend #error this file is obsolete.
8560         * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
8561         * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
8562         access.
8563         * sysdeps/unix/common/__access.S: Likewise.
8564         * sysdeps/mach/hurd/__access.c: Likewise.
8565         * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
8566         adjtime.
8567         * sysdeps/unix/common/__adjtime.S: Likewise.
8568         * sysdeps/mach/__adjtime.c: Likewise.
8569         * sysdeps/mach/hurd/__adjtime.c: Likewise.
8570         * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
8571         * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
8572         * sysdeps/unix/bsd/vax/__brk.S: Likewise.
8573         * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
8574         * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
8575         * sysdeps/unix/i386/__brk.S: Likewise.
8576         * sysdeps/unix/sparc/__brk.S: Likewise.
8577         * sysdeps/unix/mips/__brk.S: Likewise.
8578         * sysdeps/mach/hurd/__brk.c: Likewise.
8579         * sysdeps/standalone/__brk.c: Likewise.
8580         * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
8581         * sysdeps/unix/__chdir.S: Likewise.
8582         * sysdeps/mach/hurd/__chdir.c: Likewise.
8583         * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
8584         * sysdeps/unix/__chmod.S: Likewise.
8585         * sysdeps/mach/hurd/__chmod.c: Likewise.
8586         * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
8587         * sysdeps/unix/__chown.S: Likewise.
8588         * sysdeps/mach/hurd/__chown.c: Likewise.
8589         * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
8590         * sysdeps/unix/__close.S: Likewise.
8591         * sysdeps/mach/hurd/__close.c: Likewise.
8592         * sysdeps/standalone/__close.c: Likewise.
8593         * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
8594         alias copysign.
8595         * sysdeps/ieee754/__copysign.c: Likewise.
8596         * sysdeps/alpha/__copysign.c: Likewise.
8597         * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
8598         * sysdeps/m68k/fpu/__drem.c: Likewise.
8599         * sysdeps/stub/__drem.c: Likewise.
8600         * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
8601         * sysdeps/stub/__dup.c: Likewise.
8602         * sysdeps/unix/__dup.S: Likewise.
8603         * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
8604         * sysdeps/stub/__dup2.c: Likewise.
8605         * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
8606         * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
8607         * sysdeps/unix/common/__dup2.S: Likewise.
8608         * sysdeps/mach/hurd/__dup2.c: Likewise.
8609         * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
8610         execve.
8611         * sysdeps/unix/__execve.S: Likewise.
8612         * sysdeps/mach/hurd/__execve.c: Likewise.
8613         * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
8614         expm1.
8615         * sysdeps/m68k/fpu/__expm1.c: Likewise.
8616         * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
8617         fchmod.
8618         * sysdeps/unix/common/__fchmod.S: Likewise.
8619         * sysdeps/mach/hurd/__fchmod.c: Likewise.
8620         * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
8621         fchown.
8622         * sysdeps/unix/common/__fchown.S: Likewise.
8623         * sysdeps/mach/hurd/__fchown.c: Likewise.
8624         * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
8625         * sysdeps/unix/__fcntl.S: Likewise.
8626         * sysdeps/mach/hurd/__fcntl.c: Likewise.
8627         * math/__finite.c: Renamed to finite.c; added weak alias finite.
8628         * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
8629         * sysdeps/stub/__flock.c: Likewise.
8630         * sysdeps/unix/bsd/__flock.S: Likewise.
8631         * sysdeps/mach/hurd/__flock.c: Likewise.
8632         * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
8633         fopenport.
8634         * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
8635         * sysdeps/unix/__fork.S: Likewise.
8636         * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
8637         * sysdeps/unix/i386/__fork.S: Likewise.
8638         * sysdeps/unix/sparc/__fork.S: Likewise.
8639         * sysdeps/unix/mips/__fork.S: Likewise.
8640         * sysdeps/mach/hurd/__fork.c: Likewise.
8641         * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
8642         alias fpathconf.
8643         * sysdeps/stub/__fpathcon.c: Likewise.
8644         * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
8645         * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
8646         * sysdeps/unix/__fstat.S: Likewise.
8647         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
8648         * sysdeps/mach/hurd/__fstat.c: Likewise.
8649         * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
8650         getdelim.
8651         * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
8652         alias getdents.
8653         * sysdeps/unix/__getdents.c: Likewise.
8654         * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
8655         * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
8656         * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
8657         * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
8658         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
8659         * sysdeps/unix/sysv/__getdents.c: Likewise.
8660         * sysdeps/mach/hurd/__getdents.c: Likewise.
8661         * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
8662         * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
8663         alias getdtablesize.
8664         * sysdeps/stub/__getdtsz.c: Likewise.
8665         * sysdeps/unix/bsd/__getdtsz.S: Likewise.
8666         * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
8667         * sysdeps/mach/hurd/__getdtsz.c: Likewise.
8668         * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
8669         getegid.
8670         * sysdeps/unix/__getegid.S: Likewise.
8671         * sysdeps/mach/hurd/__getegid.c: Likewise.
8672         * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
8673         geteuid.
8674         * sysdeps/unix/__geteuid.S: Likewise.
8675         * sysdeps/mach/hurd/__geteuid.c: Likewise.
8676         * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
8677         getgid.
8678         * sysdeps/unix/__getgid.S: Likewise.
8679         * sysdeps/mach/hurd/__getgid.c: Likewise.
8680         * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
8681         alias getgroups.
8682         * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
8683         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
8684         * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
8685         * sysdeps/unix/common/__getgrps.S: Likewise.
8686         * sysdeps/mach/hurd/__getgrps.c: Likewise.
8687         * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
8688         alias gethostname.
8689         * sysdeps/unix/inet/__gethstnm.S: Likewise.
8690         * sysdeps/unix/sysv/__gethstnm.c: Likewise.
8691         * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
8692         * sysdeps/mach/hurd/__gethstnm.c: Likewise.
8693         * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
8694         alias getitimer.
8695         * sysdeps/unix/common/__getitmr.S: Likewise.
8696         * sysdeps/mach/hurd/__getitmr.c: Likewise.
8697         * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
8698         * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
8699         alias getpagesize.
8700         * sysdeps/stub/__getpgsz.c: Likewise.
8701         * sysdeps/unix/__getpgsz.c: Likewise.
8702         * sysdeps/unix/bsd/__getpgsz.S: Likewise.
8703         * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
8704         * sysdeps/mach/__getpgsz.c: Likewise.
8705         * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
8706         getpid.
8707         * sysdeps/unix/__getpid.S: Likewise.
8708         * sysdeps/mach/hurd/__getpid.c: Likewise.
8709         * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
8710         getppid.
8711         * sysdeps/unix/__getppid.S: Likewise.
8712         * sysdeps/mach/hurd/__getppid.c: Likewise.
8713         * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
8714         alias gettimeofday.
8715         * sysdeps/stub/__gettod.c: Likewise.
8716         * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
8717         * sysdeps/unix/common/__gettod.S: Likewise.
8718         * sysdeps/mach/__gettod.c: Likewise.
8719         * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
8720         getuid.
8721         * sysdeps/unix/__getuid.S: Likewise.
8722         * sysdeps/mach/hurd/__getuid.c: Likewise.
8723         * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
8724         alias infnan.
8725         * sysdeps/ieee754/__infnan.c: Likewise.
8726         * sysdeps/vax/__infnan.c: Likewise.
8727         * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
8728         * sysdeps/unix/__ioctl.S: Likewise.
8729         * sysdeps/mach/hurd/__ioctl.c: Likewise.
8730         * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
8731         isatty.
8732         * sysdeps/stub/__isatty.c: Likewise.
8733         * sysdeps/unix/bsd/__isatty.c: Likewise.
8734         * sysdeps/mach/hurd/__isatty.c: Likewise.
8735         * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
8736         isinf.
8737         * sysdeps/m68k/fpu/__isinf.c: Likewise.
8738         * sysdeps/stub/__isinf.c: Likewise.
8739         * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
8740         isnan.
8741         * sysdeps/ieee754/__isnan.c: Likewise.
8742         * sysdeps/m68k/fpu/__isnan.c: Likewise.
8743         * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
8744         * sysdeps/unix/__kill.S: Likewise.
8745         * sysdeps/mach/hurd/__kill.c: Likewise.
8746         * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
8747         * sysdeps/unix/__link.S: Likewise.
8748         * sysdeps/mach/hurd/__link.c: Likewise.
8749         * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
8750         * sysdeps/m68k/fpu/__logb.c: Likewise.
8751         * sysdeps/stub/__logb.c: Likewise.
8752         * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
8753         * sysdeps/unix/__lseek.S: Likewise.
8754         * sysdeps/mach/hurd/__lseek.c: Likewise.
8755         * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
8756         lstat.
8757         * sysdeps/stub/__lstat.c: Likewise.
8758         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
8759         * sysdeps/unix/common/__lstat.S: Likewise.
8760         * sysdeps/mach/hurd/__lstat.c: Likewise.
8761         * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
8762         alias memccpy.
8763         * sysdeps/vax/__memccpy.c: Likewise.
8764         * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
8765         * sysdeps/unix/sysv/__mkdir.c: Likewise.
8766         * sysdeps/unix/common/__mkdir.S: Likewise.
8767         * sysdeps/mach/hurd/__mkdir.c: Likewise.
8768         * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
8769         * sysdeps/unix/__mknod.S: Likewise.
8770         * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
8771         * sysdeps/mach/hurd/__mknod.c: Likewise.
8772         * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
8773         * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
8774         mach_msg_server.
8775         * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
8776         * sysdeps/unix/__open.S: Likewise.
8777         * sysdeps/mach/hurd/__open.c: Likewise.
8778         * sysdeps/standalone/__open.c: Likewise.
8779         * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
8780         alias pathconf.
8781         * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
8782         * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
8783         * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
8784         * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
8785         * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
8786         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
8787         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
8788         * sysdeps/unix/i386/__pipe.S: Likewise.
8789         * sysdeps/unix/sparc/__pipe.S: Likewise.
8790         * sysdeps/unix/mips/__pipe.S: Likewise.
8791         * sysdeps/mach/hurd/__pipe.c: Likewise.
8792         * stdlib/__random.c: Renamed to random.c; added weak alias random.
8793         * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
8794         * sysdeps/unix/__read.S: Likewise.
8795         * sysdeps/mach/hurd/__read.c: Likewise.
8796         * sysdeps/standalone/__read.c: Likewise.
8797         * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
8798         alias readlink.
8799         * sysdeps/unix/common/__readlink.S: Likewise.
8800         * sysdeps/mach/hurd/__readlink.c: Likewise.
8801         * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
8802         * sysdeps/m68k/fpu/__rint.c: Likewise.
8803         * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
8804         * sysdeps/unix/sysv/__rmdir.c: Likewise.
8805         * sysdeps/unix/common/__rmdir.S: Likewise.
8806         * sysdeps/mach/hurd/__rmdir.c: Likewise.
8807         * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
8808         * sysdeps/stub/__sbrk.c: Likewise.
8809         * sysdeps/mach/hurd/__sbrk.c: Likewise.
8810         * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
8811         * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
8812         select.
8813         * sysdeps/unix/common/__select.S: Likewise.
8814         * sysdeps/mach/hurd/__select.c: Likewise.
8815         * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
8816         * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
8817         setgid.
8818         * sysdeps/unix/__setgid.S: Likewise.
8819         * sysdeps/unix/bsd/__setgid.c: Likewise.
8820         * sysdeps/mach/hurd/__setgid.c: Likewise.
8821         * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
8822         setitmr
8823         * sysdeps/unix/common/__setitmr.S: Likewise.
8824         * sysdeps/mach/hurd/__setitmr.c: Likewise.
8825         * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
8826         setpgrp
8827         * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
8828         * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
8829         * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
8830         * sysdeps/unix/common/__setpgrp.S: Likewise.
8831         * sysdeps/mach/hurd/__setpgrp.c: Likewise.
8832         * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
8833         alias setregid.
8834         * sysdeps/unix/common/__setregid.S: Likewise.
8835         * sysdeps/mach/hurd/__setregid.c: Likewise.
8836         * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
8837         alias setreuid.
8838         * sysdeps/unix/common/__setreuid.S: Likewise.
8839         * sysdeps/mach/hurd/__setreuid.c: Likewise.
8840         * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
8841         setsid.
8842         * sysdeps/unix/bsd/__setsid.c: Likewise.
8843         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
8844         * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
8845         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
8846         * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
8847         * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
8848         * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
8849         * sysdeps/mach/hurd/__setsid.c: Likewise.
8850         * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
8851         settimeofday.
8852         * sysdeps/unix/bsd/__settod.S: Likewise.
8853         * sysdeps/unix/sysv/__settod.c: Likewise.
8854         * sysdeps/mach/hurd/__settod.c: Likewise.
8855         * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
8856         setuid.
8857         * sysdeps/unix/__setuid.S: Likewise.
8858         * sysdeps/unix/bsd/__setuid.c: Likewise.
8859         * sysdeps/mach/hurd/__setuid.c: Likewise.
8860         * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
8861         alias sigblock.
8862         * sysdeps/stub/__sigblock.c: Likewise.
8863         * sysdeps/unix/bsd/__sigblock.S: Likewise.
8864         * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
8865         * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
8866         * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
8867         alias sigpause.
8868         * sysdeps/stub/__sigpause.c: Likewise.
8869         * sysdeps/unix/bsd/__sigpause.S: Likewise.
8870         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
8871         * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
8872         alias sigprocmask.
8873         * sysdeps/unix/bsd/__sigproc.c: Likewise.
8874         * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
8875         * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
8876         * sysdeps/mach/hurd/__sigproc.c: Likewise.
8877         * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
8878         alias sigreturn.
8879         * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
8880         * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
8881         * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
8882         * sysdeps/unix/i386/__sigret.S: Likewise.
8883         * sysdeps/unix/mips/__sigret.S: Likewise.
8884         * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
8885         * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
8886         * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
8887         * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
8888         sigvec.
8889         * sysdeps/stub/__sigvec.c: Likewise.
8890         * sysdeps/unix/bsd/__sigvec.S: Likewise.
8891         * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
8892         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
8893         * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
8894         * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
8895         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
8896         * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
8897         * sysdeps/unix/__stat.S: Likewise.
8898         * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
8899         * sysdeps/mach/hurd/__stat.c: Likewise.
8900         * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
8901         alias stpncpy.
8902         * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
8903         symlink.
8904         * sysdeps/unix/common/__symlink.S: Likewise.
8905         * sysdeps/mach/hurd/__symlink.c: Likewise.
8906         * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
8907         alias sysconf.
8908         * sysdeps/stub/__sysconf.c: Likewise.
8909         * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
8910         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
8911         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
8912         * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
8913         * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
8914         * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
8915         * sysdeps/unix/bsd/__times.c: Likewise.
8916         * sysdeps/unix/sysv/__times.S: Likewise.
8917         * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
8918         * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
8919         * sysdeps/unix/__umask.S: Likewise.
8920         * sysdeps/mach/hurd/__umask.c: Likewise.
8921         * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
8922         unlink.
8923         * sysdeps/unix/__unlink.S: Likewise.
8924         * sysdeps/mach/hurd/__unlink.c: Likewise.
8925         * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
8926         utimes.
8927         * sysdeps/unix/bsd/__utimes.S: Likewise.
8928         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
8929         * sysdeps/mach/hurd/__utimes.c: Likewise.
8930         * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
8931         vfork.
8932         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
8933         * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
8934         * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
8935         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
8936         * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
8937         * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
8938         * sysdeps/unix/sparc/__vfork.S: Likewise.
8939         * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
8940         * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
8941         * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
8942         * sysdeps/stub/__wait.c: Likewise.
8943         * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
8944         * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
8945         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
8946         * sysdeps/unix/bsd/vax/__wait.S: Likewise.
8947         * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
8948         * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
8949         * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
8950         * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
8951         * sysdeps/unix/i386/__wait.S: Likewise.
8952         * sysdeps/unix/mips/__wait.S: Likewise.
8953         * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
8954         * sysdeps/stub/__wait3.c: Likewise.
8955         * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
8956         * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
8957         * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
8958         * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
8959         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
8960         * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
8961         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
8962         * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
8963         * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
8964         * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
8965         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
8966         * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
8967         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
8968         * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
8969         * sysdeps/mach/hurd/__wait4.c: Likewise.
8970         * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
8971         waitpid.
8972         * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
8973         * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
8974         * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
8975         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
8976         * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
8977         * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
8978         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
8979         * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
8980         * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
8981         * sysdeps/unix/__write.S: Likewise.
8982         * sysdeps/mach/hurd/__write.c: Likewise.
8983         * sysdeps/standalone/__write.c: Likewise.
8984         * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
8985         alias tcgetattr.
8986         * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
8987         * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
8988         * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
8989         * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
8990         * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
8991         alias sigaction.
8992         * sysdeps/unix/bsd/__sigact.c: Likewise.
8993         * sysdeps/unix/sysv/__sigact.c: Likewise.
8994         * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
8995         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
8996         * sysdeps/mach/hurd/__sigact.c: Likewise.
8997         * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
8998         alias sigsetmask.
8999         * sysdeps/stub/__sigstmsk.c: Likewise.
9000         * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
9001         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
9002         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
9003         * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
9004         alias getrusage.
9005         * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
9006         * sysdeps/unix/common/__getrusag.S: Likewise.
9007         * hurd/task2pid.c: File removed.
9008         * hurd/setauth.c: File removed.
9009         * hurd/pid2task.c: File removed.
9010         * hurd/hurdsyms.c: File removed.
9011         * hurd/getdport.c: File removed.
9012         * hurd/fopenport.c: File removed.
9013         * mach/thread-sym.c: File removed.
9014         * mach/spin-syms.c: File removed.
9015         * mach/msgserver_t.c: File removed.
9016         * mach/msgserver.c: File removed.
9017         * mach/msg.c: File removed.
9018         * mach/mig_syms.c: File removed.
9019         * malloc/mcheck-init.c: File removed.
9020         * malloc/cfree.c: File removed.
9021         * io/flock.c: File removed.
9022         * io/write.c: File removed.
9023         * io/unlink.c: File removed.
9024         * io/umask.c: File removed.
9025         * io/symlink.c: File removed.
9026         * io/rmdir.c: File removed.
9027         * io/readlink.c: File removed.
9028         * io/read.c: File removed.
9029         * io/pipe.c: File removed.
9030         * io/open.c: File removed.
9031         * io/mkdir.c: File removed.
9032         * io/lstat.c: File removed.
9033         * io/lseek.c: File removed.
9034         * io/link.c: File removed.
9035         * io/isatty.c: File removed.
9036         * io/stat.c: File removed.
9037         * io/fstat.c: File removed.
9038         * io/fchown.c: File removed.
9039         * io/fchmod.c: File removed.
9040         * io/dup2.c: File removed.
9041         * io/dup.c: File removed.
9042         * io/close.c: File removed.
9043         * io/fcntl.c: File removed.
9044         * io/chmod.c: File removed.
9045         * io/chdir.c: File removed.
9046         * io/access.c: File removed.
9047         * io/chown.c: File removed.
9048         * time/tzset.c: File removed.
9049         * time/timelocal.c: File removed.
9050         * time/syms-time.c: File removed.
9051         * time/settod.c: File removed.
9052         * time/setitmr.c: File removed.
9053         * time/gettod.c: File removed.
9054         * time/getitmr.c: File removed.
9055         * time/adjtime.c: File removed.
9056         * termios/tcgetattr.c: File removed.
9057         * string/stpncpy.c: File removed.
9058         * string/rindex.c: File removed.
9059         * string/memccpy.c: File removed.
9060         * string/index.c: File removed.
9061         * string/bcmp.c: File removed.
9062         * stdlib/srand.c: File removed.
9063         * stdlib/random.c: File removed.
9064         * stdio/vsscanf.c: File removed.
9065         * stdio/vfscanf.c: File removed.
9066         * stdio/syms-stdio.c: File removed.
9067         * stdio/remove.c: File removed.
9068         * stdio/getline.c: File removed.
9069         * stdio/getdelim.c: File removed.
9070         * signal/ssignal.c: File removed.
9071         * signal/sigvec.c: File removed.
9072         * signal/sigsetmask.c: File removed.
9073         * signal/sigret.c: File removed.
9074         * signal/sigproc.c: File removed.
9075         * signal/sigpause.c: File removed.
9076         * signal/sigblock.c: File removed.
9077         * signal/sigaction.c: File removed.
9078         * signal/kill.c: File removed.
9079         * signal/gsignal.c: File removed.
9080         * setjmp/siglongjmp.c: File removed.
9081         * setjmp/_longjmp.c: File removed.
9082         * resource/getrusage.c: File removed.
9083         * posix/waitpid.c: File removed.
9084         * posix/wait4.c: File removed.
9085         * posix/wait3.c: File removed.
9086         * posix/wait.c: File removed.
9087         * posix/times.c: File removed.
9088         * posix/sysconf.c: File removed.
9089         * posix/setuid.c: File removed.
9090         * posix/setsid.c: File removed.
9091         * posix/setpgrp.c: File removed.
9092         * posix/setpgid.c: File removed.
9093         * posix/setgid.c: File removed.
9094         * posix/pathconf.c: File removed.
9095         * posix/getuid.c: File removed.
9096         * posix/getppid.c: File removed.
9097         * posix/getpid.c: File removed.
9098         * posix/getgrps.c: File removed.
9099         * posix/getgid.c: File removed.
9100         * posix/geteuid.c: File removed.
9101         * posix/getegid.c: File removed.
9102         * posix/fpathcon.c: File removed.
9103         * posix/fork.c: File removed.
9104         * posix/execve.c: File removed.
9105         * posix/environ.c: File removed.
9106         * misc/utimes.c: File removed.
9107         * misc/setreuid.c: File removed.
9108         * misc/setregid.c: File removed.
9109         * misc/select.c: File removed.
9110         * misc/sbrk.c: File removed.
9111         * misc/mknod.c: File removed.
9112         * misc/ioctl.c: File removed.
9113         * misc/getpgsz.c: File removed.
9114         * misc/gethstnm.c: File removed.
9115         * misc/getdtsz.c: File removed.
9116         * misc/data_start.c: File removed.
9117         * misc/brk.c: File removed.
9118         * math/scalb.c: File removed.
9119         * math/rint.c: File removed.
9120         * math/logb.c: File removed.
9121         * math/isnan.c: File removed.
9122         * math/isinf.c: File removed.
9123         * math/infnan.c: File removed.
9124         * math/finite.c: File removed.
9125         * math/expm1.c: File removed.
9126         * math/drem.c: File removed.
9127         * math/copysign.c: File removed.
9128         * math/__scalb.c: File removed.
9129         * dirent/getdents.c: File removed.
9130
9131 Fri Jan 20 16:11:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9132
9133         * sysdeps/generic/morecore.c (__default_morecore): Use
9134         __malloc_ptrdiff_t; don't cast arg to int.
9135
9136         * resolv/getnetnamadr.c: Include "conf/portability.h".
9137
9138 Thu Jan 19 02:20:04 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9139
9140         * stdlib/strtol.c: Include errno.h.
9141         [QUAD] (ULONG_MAX): Define to a static variable initialized to
9142         ULONG_LONG_MAX. This is to work around a GCC bug in using the
9143         constant in arithmetic.
9144
9145         * posix/unistd.h (daemon): Declare it.
9146
9147         * malloc/mcheck-init.c: Remove GNU ld hacks.
9148         (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
9149         * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
9150         (initialize): Call the hook if set.
9151         * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
9152         (__malloc_initialize_hook): Declare new hook variable.
9153
9154 Wed Jan 18 01:43:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9155
9156         * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
9157         * hurd/hurdpid.c: Likewise.
9158         * hurd/hurdauth.c: Likewise.
9159
9160 Tue Jan 17 03:16:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9161
9162         * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
9163         if any are successful.
9164
9165         * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
9166         (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
9167         _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
9168         functions.
9169         (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
9170
9171         * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
9172         * hurd/hurd-raise.c: Likewise.
9173         * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
9174
9175         * sysdeps/mach/hurd/ptrace.c: New file.
9176
9177         * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
9178         interface, which has normal EINTR semantics.  Instead of waiting
9179         for io_select_done notification messages, send io_select messages
9180         with short reply timeout and then wait for io_select_reply
9181         messages.
9182
9183         * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
9184         EXEC_INHERITED) to file_exec.
9185
9186         * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
9187         use sig_post_untraced_reply.  All callers changed.
9188         (abort_thread, abort_rpcs): Take same new arg and pass it through.
9189         All callers changed.
9190         (_hurd_internal_post_signal): Take new arg UNTRACED.
9191         If zero and process is traced, stop with SIGNO as stop signal.  If
9192         nonzero, resume process before delivering signal (unless
9193         ACT==stop).  Expand local fn sigwakeup into block at end taken iff
9194         SIGNO!=0.
9195         (signal_allowed): New function, broken out of _S_sig_post.
9196         (_S_sig_post): Call it.  Pass UNTRACED arg of false to
9197         _hurd_internal_post_signal.
9198         (_S_sig_post_untraced): New function.  Just like _S_sig_post, but
9199         pass true for UNTRACED.
9200         * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
9201         UNTRACED.
9202         * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
9203         to _hurd_internal_post_signal (value zero).
9204
9205 Mon Jan 16 16:40:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9206
9207         * hurd/hurdinit.c (_hurd_exec_flags): New variable.
9208         (_hurd_init): Initialize it from FLAGS arg.
9209         (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
9210         raise a SIGTRAP signal (with a sigcode of zero).
9211         * hurd/hurd.h (_hurd_exec_flags): Declare it.
9212
9213         * Version 1.09.5.
9214
9215 Mon Jan 16 16:16:55 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
9216
9217         * malloc/malloc.c (malloc): Fix 1-off in previous change.
9218
9219 Mon Jan 16 15:49:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9220
9221         * posix/glob/Makefile.in: Remove config.h and config.log.
9222
9223 Sun Jan 15 06:56:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9224
9225         * posix/glob/configure.in: Add AC_CONST check.
9226
9227         * conf/portability.h: #undef sun.
9228         * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
9229         * resolv/getnetnamadr.c: Likewise.
9230
9231         * socket/Makefile (headers): Add sockaddrcom.h.
9232         * inet/netinet/in.h: Include <sockaddrcom.h>.
9233         (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
9234         * socket/sys/un.h (struct sockaddr_in): Likewise.
9235         * socket/sys/socket.h (struct sockaddr): Likewise.
9236         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
9237         * sysdeps/generic/sockaddrcom.h: New file.
9238
9239         * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
9240         * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
9241         F_FREESP): New macros.
9242         * sysdeps/posix/truncate.c: New file.
9243
9244         * malloc/malloc.c (malloc): Fix typos in RMS's change.
9245
9246         * malloc/Makefile (dist-routines): Add malloc-find.
9247         * malloc/malloc.h (malloc_find_object_address): Declare it.
9248         * malloc/malloc-find.c: New file.
9249
9250         * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
9251         __malloc_size_t.
9252         (malloc_info): Use that type for member `busy.info.size'.
9253
9254         * stdlib/strtol.c: Change uses of `long' keyword throughout to use
9255         `LONG' macro.
9256         [! QUAD] (LONG): Define as long.
9257         [QUAD] (LONG): Define as long long.
9258         [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
9259         versions.
9260         [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
9261         * stdlib/Makefile (routines): Add strtoq and strtouq.
9262         * stdlib/strtoq.c, stdlib/strtouq.c: New files.
9263         * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
9264         Declare them.
9265
9266         * stdio/vfprintf.c: If there was a precision specified, ignore the
9267         0 flag and always pad with spaces.
9268
9269         * stdio/vfprintf.c: Don't use strchr to skip text until next %.
9270         Use a loop and also stop on first !isascii char.
9271
9272 Wed Jan 11 00:07:10 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
9273
9274         * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
9275
9276         * malloc/malloc.c (malloc): For a multi-block object, store a
9277         negative number into the busy.info.size of all but the first block.
9278
9279 Tue Jan 10 13:45:20 1995  Brendan Kehoe  <brendan@zen.org>
9280
9281         * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
9282         instead of t0, t1, and t2.
9283
9284 Tue Jan 10 05:53:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9285
9286         * malloc/memalign.c (__memalign_hook): New variable.
9287         (memalign): Call it if set.
9288         * malloc/malloc.h (__memalign_hook): Declare new variable.
9289
9290 Wed Dec 28 03:27:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9291
9292         * conf/portability.h: Include string.h and stdlib.h.
9293         * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
9294         * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
9295         resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
9296         resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
9297         resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
9298
9299         * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro.  Replace
9300         all uses of `extern __inline' with `__m81_inline'.
9301
9302         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
9303         * sysdeps/unix/__fork.S: Swap args in subl.
9304
9305         * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
9306         compatibility.
9307
9308 Tue Dec 20 13:33:20 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
9309
9310         * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
9311         of swtch.
9312         * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
9313         * mach/spin-solid.c (__spin_lock_solid): Likewise.
9314
9315 Thu Dec 15 12:01:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9316
9317         * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
9318         for PBUF.
9319         (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
9320
9321         * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
9322
9323 Wed Dec 14 18:20:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9324
9325         * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
9326         in `bis' insn; immediate must be second.
9327
9328         * sysdeps/unix/__fork.S: Use subl instead of decl.
9329         * sysdeps/unix/i386/__fork.S: New file.
9330
9331         * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
9332         Remove A macro; just use `asm volatile' with proper quotes in each
9333         line.
9334         * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
9335         jmp target register.
9336
9337         * time/africa, time/asia, time/australasia, time/emkdir.c,
9338         time/europe, time/ialloc.c, time/northamerica, time/private.h,
9339         time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
9340         and data from ADO 94h distribution.
9341
9342         * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
9343         __sigjmp_save in %g1 and jmp there.  jmp cannot contain a complete
9344         absolute pointer.  Put second store in jmp delay slot.
9345
9346 Tue Dec 13 15:47:52 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
9347
9348         * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
9349         __sigsetjmp in %g1 and jmp there.  jmp cannot contain a complete
9350         absolute pointer.
9351         * sysdeps/sparc/bsd-setjmp.S: Likewise.
9352
9353         * configure.in: Use ; before } in { ... } exprs.
9354
9355 \f
9356
9357 See ChangeLog.4 for earlier changes.