49459f370794a4794a479f9228bd3d59be5fb113
[platform/upstream/glibc.git] / ChangeLog
1 Mon Jan  8 17:43:23 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2
3         * locale/Makefile (lib-modules): Renamed hash to locfile-hash.
4         * locale/hash.c: Renamed to locale/locfile-hash.c.
5
6 Sat Jan  6 16:39:14 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7
8         * Makefile (subdirs): Added db.
9
10         * resolv/Makefile (routines): Add res_data.
11         * resolv/res_data.c, resolv/res_debug.c, resolv/resolv.h:
12         Updated from BIND 4.9.3 final release.
13
14         * elf/dynamic-link.h (elf_get_dynamic_info): Handle
15         processor-specific tags.
16         (ELF_DYNAMIC_DO_REL, ELF_DYNAMIC_DO_RELA): Handle absent DT_PLTREL tag.
17
18         * elf/elf.h (DT_MIPS_NUM, DT_PROCNUM): New macros.
19         * elf/link.h (struct link_map): Extend `l_info' by DT_PROCNUM.
20
21         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup): Take new
22         arg LAZY.  Only do our work if LAZY and there is a DT_JMPREL record.
23         * elf/dl-reloc.c (_dl_relocate_object): Call
24         elf_machine_runtime_setup unconditionally, and pass it LAZY flag.
25
26         * elf/dl-load.c: Fixed ELFMAG check to work for either byte order.
27         Align end of load segment only to page size, not to segment alignment.
28
29 Thu Jan  4 11:35:18 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
30
31         * sysdeps/mach/hurd/setitimer.c: Code rearranged a bit to use new
32         preemption interface.
33
34         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
35         Use _hurdsig_catch_memory_fault.
36
37         * hurd/Makefile (headers): Add hurd/sigpreempt.h.
38         (sig): Add catch-signal.
39
40         * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
41         Rewritten using a preempter in new interface.
42         * hurd/hurdfault.h (_hurdsig_catch_fault): Likewise.
43         (_hurdsig_catch_memory_fault): New macro.
44
45 Wed Jan  3 20:23:42 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
46
47         * hurd/catch-signal.c: New file.
48
49         * hurd/intr-msg.c: When restarting RPC, fetch a new reply port.
50
51         * hurd/hurdsig.c: Use new hurdfault.h interface.
52         (abort_all_rpcs): Mutate return value to EINTR in threads whose
53         replies we will wait for.
54
55         * hurd/hurdkill.c (_hurd_sig_post): When doing pgrp, make sure we
56         do ourselves last.
57
58 Wed Jan  3 19:17:10 1996  Miles Bader  <miles@gnu.ai.mit.edu>
59
60         * sysdeps/mach/hurd/access.c (__access): Put the uid/gid arguments
61         to auth_makeauth() in the right order.
62
63 Wed Jan  3 17:19:04 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
64
65         * sysdeps/generic/strsep.c: Rewritten.
66
67         * sysdeps/mach/hurd/fork.c: Use a different workaround for the
68         suspended page fault deadlock kernel bug: thread_abort our signal
69         thread first thing after proc_dostop.
70
71         * sysdeps/mach/hurd/setgid.c: Rewrote gid frobnication to
72         recognize rootness properly.
73
74 Tue Jan  2 00:50:10 1996  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
75
76         * hurd/hurd/signal.h (struct hurd_sigstate): New member `preempters'.
77         (hurd_preempt_signals, hurd_unpreempt_signals): Decls removed.
78         * hurd/hurd/sigpreempt.h: New file.
79         * hurd/preempt-sig.c: Rewritten with new interface.
80         * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Remove local signal
81         preempters being unwound past.
82         * hurd/hurdsig.c: Use new signal preemption interface.
83
84         * db: New directory, 4.4 BSD db package incorporated from BSD db-1.85
85         release.
86
87         * sysdeps/unix/sysv/linux/sys/param.h: Several new macros for BSD
88         compatibility.
89
90         * misc/queue.h: New file, incorporated from 4.4BSD.
91         * misc/Makefile (headers): Add queue.h.
92
93         * posix/sys/types.h [__USE_BSD]: Include endian.h.
94
95         * io/sys/stat.h (DEFFILEMODE, ALLPERMS, ACCESSPERMS, S_BLKSIZE):
96         New macros.
97
98 Thu Dec 28 10:21:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
99
100         * sysdeps/generic/confname.h: Define all names as self-referential
101         macros so #ifdef works.
102
103         * hurd/preempt-sig.c (hurd_unpreempt_signals): Remove bogus asgnmt
104         of _hurd_signal_preempters[SIGNO].
105
106 Mon Dec 25 20:56:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
107
108         * sysdeps/mach/hurd/bind.c: Translate EEXIST from dir_link into
109         EADDRINUSE.  If translated node doesn't grok ifsock protocol,
110         return EADDRINUSE.
111
112         * sysdeps/mach/hurd/connect.c: Make address arg
113         `const struct sockaddr_un *'.
114         The redecl is kosher and avoids another variable for AF_LOCAL case.
115         * sysdeps/mach/hurd/sendto.c: Likewise.
116         * sysdeps/mach/hurd/bind.c: Likewise.
117
118         * socket/sys/socket.h (__SOCKADDR_ARG): Enable transparent_union
119         code for GCC >= 2.7; use __transparent_union__ for name safety;
120         add several sockaddr flavors.
121         (__SOCKADDR_ALLTYPES, __SOCKADDR_ONETYPE): New macros used in
122         constructing the transparent union declarations.
123         (__CONST_SOCKADDR_ARG): New type (or macro if not GCC 2.7).
124         (bind, connect, sendto): Make the sockaddr argument use that.
125
126 Fri Dec 22 00:57:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
127
128         * sysdeps/mach/hurd/setgid.c: In root case, store into NEWAUX, not
129         old vector.
130         * sysdeps/mach/hurd/setuid.c: Likewise.
131
132         * sysdeps/mach/hurd/setuid.c: Rewrote ID frobnication to do the
133         right thing.
134         * sysdeps/mach/hurd/setgid.c: Likewise.
135         * sysdeps/mach/hurd/setreuid.c: Likewise.
136         * sysdeps/mach/hurd/setregid.c: Likewise.
137         * sysdeps/mach/hurd/setegid.c: Likewise.
138         * sysdeps/mach/hurd/seteuid.c: Likewise.
139
140         * sysdeps/mach/hurd/fork.c: Peek __mach_task_self_ value before
141         proc_dostop call to work around kernel paging bug.
142
143 Fri Dec 22 00:38:00 1995  H.J. Lu  <hjl@nynexst.com>
144
145         * stdio-common/vfscanf.c: Correctly handle white space skipping.
146         * stdio-common/Makefile (tests): Add bug11.
147         * stdio-common/bug11.c: New file.
148
149 Thu Dec 21 12:19:32 1995  Miles Bader  <miles@gnu.ai.mit.edu>
150
151         * sysdeps/mach/hurd/setuid.c (__setuid): Actually add the new uid
152         instead of putting it (and other uids) in the gids and leaving the
153         old uids as is.
154
155 Wed Dec 20 18:23:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
156
157         * stdio/internals.c (flushbuf): If the target is -1, always
158         discard the buffer of read data.
159         Only set TWIDDLED flag in !ALIGNED case.
160         Never increment target or offset when old value is -1.
161
162 Tue Dec 19 17:00:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
163
164         * hurd/hurdpid.c (_S_msg_proc_newids): Only run the hook when the
165         pgrp changes.
166
167 Mon Dec 18 13:40:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
168
169         * stdio/fread.c: Don't increment __offset when it's -1.
170
171         * elf/rtld.c (dl_main): Prepend tab to "statically linked".  Exit
172         0 in that case.
173
174         * misc/err.c (vwarnx, vwarn): Fix major brainos.
175
176         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Fix setting of
177         inheritance.
178
179 Sun Dec 17 15:56:35 1995  Miles Bader  <miles@gnu.ai.mit.edu>
180
181         * misc/getpass.c (getpass): Don't barf if getline returns a null BUF.
182
183 Sat Dec 16 10:33:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
184
185         * Makerules: Use $(do-install-so) for installing shared objects.
186         (do-install-so): New canned sequence.  Make a symlink LIB.so after
187         installing LIB.so.VERSION.
188
189         * inet/netinet/in.h: Fixed typo in IPPORT_WHOIS.
190
191 Fri Dec 15 04:41:22 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
192
193         * stdio-common/Makefile (tests): Add bug10.
194         * stdio-common/bug10.c: New file.  From HJ Lu.
195
196         * stdio-common/tstdiomisc.c: Make more test-suite like: exit
197         status tells about successful run.
198
199         * stdio-common/vfscanf.c [!USE_IN_LIBIO]: Use `flags' to check
200         format correctness.
201         Correct handling of trailing white spaces in format + EOF.
202
203 Fri Dec 15 01:31:56 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
204
205         * stdio-common/Makefile (tests): Add bug8 and bug9.
206         * stdio-common/bug8.c, stdio-common/bug9.c: New tests.
207
208         * stdio-common/vfscanf.c: Fix bug in dynamic buffer handling.
209
210         * stdlib/strtod.c: Correct spelling: nominator -> numerator.
211         Thanks to Jim Meyering.
212
213 Sat Nov 25 06:05:12 1995  H.J. Lu  <hjl@nynexst.com>
214
215         * stdio-common/vfscanf.c: Always check width !=0.
216         Correctly handle %%.
217 Thu Dec 14 02:28:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
218
219         * posix/glob.c (glob_in_dir): Cast result of opendir to __ptr_t,
220         and cast STREAM to DIR * before passing to readdir and closedir.
221
222 Wed Dec 13 22:06:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
223
224         * hurd/hurdsig.c (_hurd_internal_post_signal: suspend): Reply
225         after aborting RPCs but before calling proc_mark_stop.
226
227 Mon Dec 11 20:07:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
228
229         * posix/glob.c [! STDC_HEADERS]: Declare getenv.
230         (glob): Avoid using function as value.
231
232         * elf/rtld.c (dl_main): When mapping argument executable, set
233         l_name to "", not l_libname.
234         After loading DT_NEEDED library, set its l_type to lt_library.
235
236         * sysdeps/mach/hurd/mmap.c: Don't interpret MAP_INHERIT to mean
237         VM_INHERIT.  We can't handle MAP_INHERIT easily.
238         Handle non-page-aligned addresses if congruent to offset.
239
240         * elf/dl-init.c: Skip the initializer for l_type lt_executable
241         with l_name "". Start at _dl_loaded; don't skip the first element.
242
243         * elf/dl-load.c (MAP_FILE): Define to zero if undefined.
244         (MAP_COPY): Define to MAP_PRIVATE if undefined.
245         (_dl_map_object_from_fd): Don't use MAP_INHERIT in mmap calls.
246         If file it ET_EXEC, set its l_type to lt_executable.
247
248 Sun Dec 10 09:56:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
249
250         * elf/dl-minimal.c (malloc): Use MAP_PRIVATE in mmap call.
251
252 Fri Dec  8 13:04:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
253
254         * locale/error.c, locale/error.h: Files removed.
255         * locale/Makefile (distribute): Remove error.h.
256         (lib-modules): Remove error.
257
258         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For "tty"
259         magic, return ENXIO if no ctty.
260
261         * sysdeps/mach/hurd/mmap.c: For MAP_FIXED, deallocate a previous
262         mapping if vm_map fails for that reason.
263
264         * posix/glob.c: Implement new options GLOB_ALTDIRFUNC, GLOB_BRACE,
265         GLOB_TILDE, GLOB_NOMAGIC.
266         (glob): Use stat instead of lstat to determine directoriness.
267         * posix/glob.h (GLOB_ALTDIRFUNC, GLOB_BRACE, GLOB_NOMAGIC, GLOB_TILDE):
268         New flag bits.
269         (__GLOB_FLAGS): Include them.
270         (glob_t): New members gl_closedir, gl_readdir, gl_opendir, gl_lstat,
271         gl_stat.
272
273         * elf/elf.h (ET_NUM, SHT_NUM, STB_NUM, STT_NUM, PT_NUM): New macros.
274
275         * sysdeps/unix/sysv/linux/sys/mman.h: Include <linux/mman.h> to
276         define all the bit values.
277         (MAP_*, MCL_*): Macros removed.
278
279 Thu Dec  7 02:27:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
280
281         * resolv/res_comp.c, resolv/res_debug.c, resolv/res_send.c:
282         Updated from BIND 4.9.3-BETA27.
283
284 Wed Dec  6 18:44:01 1995  Miles Bader  <miles@gnu.ai.mit.edu>
285
286         * sysdeps/mach/hurd/select.c (__select): Swap size args to mach_msg.
287
288         * sysdeps/mach/hurd/select.c (__select): Frob TYPES correctly when
289         we get a delayed reply.
290         Only grab values out of entries in TYPES that have SELECT_RETURNED
291         turned on, and turn it on whenever an rpc returns.
292         Only clear bits in the user's fdsets -- those needing to be set
293         should be already.
294         Use SELECT_ALL in appropiate places.
295         (SELECT_RETURNED, SELECT_ALL): New macros.
296
297 Wed Dec  6 09:10:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
298
299         * sysdeps/mach/hurd/sys/param.h (NBBY): New macro.
300
301         * gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): New macro.
302
303 Tue Dec  5 14:00:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
304
305         * misc/Makefile (headers): Add error.h, err.h.
306         (routines): Add error, err.
307         (gpl2lgpl): New variable.
308         * misc/err.c: New file.
309         * misc/err.h: New file.
310         * misc/error.c, misc/error.h: New files.
311
312         * sysdeps/mach/hurd/ioctl.c: Fix typo in last change.
313
314         * Makeconfig (+link): Translate libc% from $^, not just libc.a.
315         (link-libc): Append $(libc.so-version) to libc.so.
316         (built-program-cmd): Fix comma usage.
317         * Makerules [libc.so-version] (libc.so$(libc.so-version)): Make a
318         symlink to libc.so in the build directory.
319         * Rules ($(others) $(tests)): Depend on the library that appears
320         in $(link-libc).
321         (%.out): Use $(built-program-cmd) in commands.
322
323         * posix/unistd.h [__USE_MISC]: Declare brk, sbrk.
324
325         * sysdeps/generic/setenv.c: Added canonical portability cruft.
326         (setenv): Use realloc on LAST_ENVIRON instead of always copying.
327         (unsetenv): New function.
328         * stdlib/stdlib.h [__USE_BSD]: Declare unsetenv.
329         * sysdeps/generic/putenv.c: Rewritten using setenv and unsetenv.
330
331 Tue Dec  5 02:27:32 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
332
333         * libio/Makefile (routines): Remove iofscanf, add iopopen, pclose.
334
335         * libio/iofscanf.c: Remove file.
336
337         * libio/iogetdelim.c (_IO_getdelim): Correct stupid bug at string
338         termination.
339
340         * libio/iopopen.c: New file from GNU libio.
341
342         * libio/memstream.c: Fixed bug in fclose handling.  Instead of
343         providing a close callback we need a finish callback.
344
345         * libio/pclose.c: New file.  Derived from popen.c in GNU libio.
346
347         * posix/gnu/types.h: Fixed typo.
348
349         * stdio-common/errnobug.c: fputs returns EOF in error case.  Do
350         not test for != 0.
351
352         * stdio-common/printf-parse.h (parse_one_spec): Do not force
353         padding with ' ' if precision is given.  Fix by HJ Lu.
354
355         * stdio-common/printf_fp.c: Fix comment.
356
357         * stdio-common/tfformat.c, stdio-common/tiformat.c,
358         stdio-common/tstdiomisc.c: New files from GNU libio test suite.
359
360         * stdio-common/tstgetln.c: Provide ssize_t type when testing
361         libio.
362
363         * stdio-common/vfprintf.c (outchar): Use PUTC instead of putc.
364         (vfprintf): Cleasr args_type array before using it.
365         When printing 0 as an integer with precision 0 nothing must be
366         written for the number.
367         Based on patch by HJ Lu.
368
369         * stdio-common/vfscanf.c: Remove fixed input buffer.  Now we
370         have a dynamically extended buffer.
371
372         * stdlib/strtod.c: Merge with version in Linux libc.  This fixes
373         some bugs with handling of very small numbers and has different
374         solution for formaer patches.
375
376         * sysdeps/i386/i586/add_n.S, sysdeps/i386/i586/sub_n.S: Rename
377         macros r1 and r2 to t1, and t2 resp.  This is necessary because
378         glibc headers also define r1.
379
380 Mon Dec  4 12:10:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
381
382         * stdlib/gen-mpn-copy (translations): Updated for new layout in
383         GMP 1.910.
384
385         * malloc/malloc.c (__malloc_initialize): Renamed from initialize;
386         made global.
387         (malloc): Caller changed.
388         * malloc/realloc.c (realloc): Call __malloc_initialize if
389         necessary, before checking hook.
390         * malloc/malloc.h: Declare __malloc_initialize.
391
392         * sysdeps/mach/hurd/ioctl.c: For IOC_VOID request, send ARG itself
393         as integer_t arg in RPC.
394
395 Sat Dec  2 03:47:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
396
397         * sysdeps/mach/hurd/brk.c (DATA_SIZE): Bump to 128MB.
398         (_hurd_set_brk): Try to allocate more space when we run out.
399
400         * sysdeps/generic/sbrk.c: If __curbrk is zero, call __brk with
401         zero and examine it again.
402         * sysdeps/unix/sysv/linux/i386/brk.c: New file.
403         * sysdeps/unix/sysv/linux/i386/brk.S: File removed.
404         * sysdeps/unix/sysv/linux/i386/sbrk.S: File removed.
405         * sysdeps/unix/sysv/linux/dl-sysdep.c: New file.
406         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [DL_SYSDEP_INIT]:
407         Invoke this macro before calling DL_MAIN.
408
409         * malloc/malloc.c (malloc): Do initialization here, before
410         checking the hook.
411         (_malloc_internal): Don't do it here.
412
413 Wed Nov 29 12:30:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
414
415         * libio/vsnprintf.c (__vsnprintf): Define as alias.
416         * libio/iovsscanf.c (__vsscanf): Define as alias.
417         * asprintf.c: Remove libio adaptation code added by drepper.
418         * dprintf.c: Likewise.
419         * printf.c: Likewise.
420         * scanf.c: Likewise.
421         * snprintf.c: Likewise.
422         * sprintf.c: Likewise.
423         * sscanf.c: Likewise.
424         * vprintf.c: Likewise.
425         * stdio-common/vfscanf.c [USE_IN_LIBIO] (__vfscanf): New wrapper
426         function.
427         (vfscanf): Define unconditionally.
428
429         * sysdeps/i386/dl-machine.h (elf_machine_rel): If SYM is null, use
430         zero for value.
431
432         * misc/getpass.c: Write a newline after reading the unechoed
433         password.
434
435 Mon Nov 27 19:24:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
436
437         * posix/Makefile (routines): Add getsid.
438         * sysdeps/unix/sysv/linux/getsid.S: New file.
439         * sysdeps/mach/hurd/getsid.c: New file.
440         * sysdeps/stub/getsid.c: New file.
441         * posix/unistd.h [__USE_GNU]: Declare getsid.
442
443 Sun Nov 26 12:44:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
444
445         * libc-symbols.h (N_): New macro.
446
447 Sat Nov 25 02:48:47 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
448
449         * assert/assert-perr.c, assert/assert.c, inet/rcmd.c,
450         malloc/mcheck.c, malloc/vm-limit.c, posix/getconf.c, posix/id.c,
451         resolv/herror.c, sunrpc/auth_unix.c, sunrpc/clnt_perr.c,
452         sunrpc/clnt_raw.c, sunrpc/get_myaddr.c, sunrpc/pmap_clnt.c,
453         sunrpc/pmap_rmt.c, sunrpc/portmap.c, sunrpc/rpc_main.c,
454         sunrpc/rpc_parse.c, sunrpc/rpc_scan.c, sunrpc/rpc_util.c,
455         sunrpc/rpcinfo.c, sunrpc/svc_simple.c, sunrpc/svc_tcp.c,
456         sunrpc/svc_udp.c, time/zdump.c, time/zic.c: Mark translatable
457         strings.
458
459 Sun Nov 26 02:00:02 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
460
461         * misc/syslog.c (vsyslog) [USE_IN_LIBIO]: Adapted for libio.
462
463 Thu Nov 23 02:21:55 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
464
465         * sysdeps/unix/sysv/linux/{mlock,munlock,mlockall,munlockall}.S:
466         New files.
467         * sysdeps/unix/sysv/linux/sys/mman.h: Add prototypes for new functions
468         mlock, munlock, mlockall, and munlockall.
469
470 Thu Nov 23 18:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
471
472         * configure.in (--enable-libio): Set $stdio based on $enableval,
473         not always to libio.
474
475 Thu Nov 23 18:06:48 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
476
477         * malloc/malloc.c (_malloc_internal): Can't use
478         get_contiguous_space when the heap info table
479         will be growing.  Account for new contiguous space in _heaplimit.
480
481 Wed Nov 22 12:37:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
482
483         * sysdeps/unix/sysv/linux/i386/sysdep.S (_errno): Define as alias
484         for errno.
485
486         * stdio-common/vfprintf.c [USE_IN_LIBIO] (vfprintf): Define as
487         alias for _IO_vfprintf.
488
489         * sysdeps/unix/sysv/linux/sockaddrcom.h: File removed.
490
491         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Use
492         __fpu_control instead of ___fpu_control.
493         * sysdeps/unix/sysv/linux/i386/ieee_fpu.c
494         (___fpu_control): Renamed to __fpu_control.
495         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Likewise.
496         * sysdeps/unix/sysv/linux/i386/fpu_control.c: Likewise.
497
498         * elf/dl-minimal.c: New file.
499         * elf/Makefile (rtld-routines): Add dl-minimal.
500         * elf/rtld.c (__dgettext, __assert_fail, __assert_perror_fail):
501         Functions moved to dl-minimal.c.
502         * sysdeps/mach/hurd/dl-sysdep.c (malloc, free, realloc,
503         sigjmp_save, longjmp): Likewise.
504
505         * sysdeps/unix/sysv/linux/i386/brk.S (__curbrk): Always initialize
506         to &_end, regardless of PIC.
507
508         * stdio-common/vfscanf.c (__vfscanf): Fix arg name in defn.
509
510 Tue Nov 21 14:12:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
511
512         * malloc/malloc.c (align): Don't check contiguity and call abort.
513
514         * hurd/hurdsig.c (post_reply): Function removed.
515         (abort_thread, abort_all_rpcs, _hurdsig_abort_rpcs): Don't call it.
516         Take single callback fn arg instead of reply port and type.
517         (_hurd_internal_post_signal): Callers changed.
518         Cache reply stub fn ptr in local var before UNTRACED might be changed.
519
520         * sysdeps/mach/hurd/mmap.c: Cope with a null write memobj for
521         PROT_READ|PROT_WRITE copy mapping.  Pass a proper vm_inherit_t to
522         vm_map.
523
524         * elf/rtld.c (_dl_start): For --list, do output and exit before
525         relocating.
526
527 Mon Nov 20 16:19:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
528
529         * intl/Makefile [gettext-srcdir]: Rewrote copying rules to only
530         get .c and .h files.
531
532         * malloc/malloc.c (align): Use abort instead of assert.
533
534 Sun Nov 19 18:23:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
535
536         * Makeconfig (+includes): Add $($(stdio)-include).
537         (libio-include): New variable.
538
539         * stdlib/strtod.c: Put weak_symbol after function defn.
540         * stdlib/strtol.c: Likewise.
541
542         * configure.in (--enable-libio): If not present, set $stdio to
543         "default".  Move stdio/libio check to end, so sysdeps fragments
544         can affect it.  Reset $stdio to "stdio" if it's "default".
545         * sysdeps/unix/sysv/linux/configure: New file.
546
547 Sat Nov 18 16:46:01 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
548
549         * libio/Makefile, libio/cleanup.c, libio/clearerr.c, libio/feof.c,
550         libio/ferror.c, libio/fgetc.c, libio/filedoalloc.c, libio/fileno.c,
551         libio/fileops.c, libio/fputc.c, libio/freopen.c, libio/fseek.c,
552         libio/genops.c, libio/getc.c, libio/getchar.c, libio/iofclose.c,
553         libio/iofdopen.c, libio/iofflush.c, libio/iofgetpos.c, libio/iofgets.c,
554         libio/iofopen.c, libio/iofprintf.c, libio/iofputs.c, libio/iofread.c,
555         libio/iofscanf.c, libio/iofsetpos.c, libio/ioftell.c, libio/iofwrite.c,
556         libio/iogetdelim.c, libio/iogetline.c, libio/iogets.c, libio/iolibio.h,
557         libio/iopadn.c, libio/ioprims.c, libio/ioputs.c, libio/ioseekoff.c,
558         libio/ioseekpos.c, libio/iosetbuffer.c, libio/iosetvbuf.c,
559         libio/iosprintf.c, libio/ioungetc.c, libio/iovsprintf.c,
560         libio/iovsscanf.c, libio/libio.h, libio/libioP.h, libio/putc.c,
561         libio/putchar.c, libio/rewind.c, libio/setbuf.c, libio/setlinebuf.c,
562         libio/stdfiles.c, libio/stdio.c, libio/stdio.h, libio/strfile.h,
563         libio/strops.c, libio/vasprintf.c, libio/vscanf.c, libio/vsnprintf.c:
564         New files.  Slightly modified version from Linux libc.
565
566         * libio/memstream.c, libio/vdprintf.c: New files for functions not
567         (yet) part of GNU libio.
568
569         * libio/iofopncook.c: Implementation of `fopencookie', mainly written
570         by Per Bothner.
571
572         * stdio-common/getline.c: Adapted to libio.
573         * stdio-common/snprintf.c: Adapted to libio.
574         * stdio-common/vfprintf.c: Adapted to libio.
575         * stdio-common/vfscanf.c: Adapted to libio.
576         * sysdeps/posix/tempname.c: Adapted to libio.
577
578 Fri Nov 17 17:57:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
579
580         * sysdeps/generic/Makefile (make_siglist): Add missing backslash.
581
582         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start_cleanup): New
583         function.
584
585         * hurd/hurdfault.c: Replace __libc_fatal calls with assert_perror.
586         (_hurdsig_fault_init): Remove #if 0 from setting exception port.
587         Insert send right for SIGEXC before thread_set_special_port.
588         * hurd/hurdsig.c: Replace __libc_fatal calls with assert_perror.
589         (_hurdsig_init): Remove #if 0 from setting exception port.
590
591         * sysdeps/mach/hurd/ptrace.c (ptrace: PTRACE_CONT): Use
592         HURD_MSGPORT_RPC macro.
593
594 Thu Nov 16 06:07:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
595
596         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start_cleanup): New
597         function.
598         (_dl_sysdep_start): Move cleanup code there.
599
600         * Makeconfig (default-rpath): New variable.
601         (link-libc): Use it.
602         * elf/Makefile (ld.so): Pass -rpath=$(default-rpath).
603         * elf/rtld.c (_dl_rpath): New variable.
604         (_dl_start): Set it from rtld_map's DT_RPATH.
605         Call _dl_setup_hash on rtld_map.
606         (dl_main): Cache address of _exit in variable before relocating,
607         and use that in later calls.  Call _dl_sysdep_start_cleanup before
608         relocating.  Keep track of dependency order while loading; remove
609         rtld_map from chain, and reinsert in proper order if there is a
610         dependency on it.
611
612         * sysdeps/generic/Makefile (make_siglist): Pass
613         -DSIGNUM_H=... with config's signum.h location.
614         * sysdeps/generic/make_siglist.c: Include SIGNUM_H to define
615         signal numbers.
616         (HAVE_STRSIGNAL, HAVE_PSIGNAL): Define these before including signame.c
617         (main): Deansideclize output.
618
619         * elf/dl-load.c (_dl_map_object): Use _dl_rpath variable in place
620         of DEFAULT_RPATH macro.
621         * elf/Makefile: Undo last change.
622
623         * sysdeps/mach/hurd/dl-sysdep.c (free): Don't abort, just nop.
624
625 Wed Nov 15 19:22:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
626
627         * elf/dl-lookup.c (_dl_lookup_symbol): Undefined symbol is no
628         error if weak.
629
630         * elf/Makefile (default-rpath): New variable.
631         (CPPFLAGS): Append -DDEFAULT_RPATH=....
632         * elf/dl-load.c (_dl_map_object): Use DEFAULT_RPATH instead of
633         hard-coded "/lib:/usr/lib".
634
635         * sysdeps/mach/hurd/dl-sysdep.c: Include _itoa.h from stdio-common
636         instead of stdio.
637         (_dl_sysdep_start): If passed user entry is zero and
638         EXEC_STACK_ARGS flag set, reset user entry to &_start.
639
640         * elf/rtld.c (dl_main): Only call _dl_setup_hash if there is a
641         DT_HASH element.
642
643         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Gratuitously
644         repeat weak decl using weak_symbol macro, in case using broken GCC
645         (<2.8).
646
647 Wed Nov 15 18:49:55 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
648
649         * sysdeps/i386/isnanl.c: New file.
650         * sysdeps/i386/isinfl.c: New file.
651
652 Tue Nov 14 18:44:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
653
654         * malloc/free.c (free): Moved null and aligned_blocks checks
655         inside _free_internal.
656
657 Mon Nov 13 15:23:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
658
659         * malloc/malloc.c (morecore): Fix inverted test in allocating new
660         info table.
661
662         * malloc/malloc.c (align): Fix assertion.
663
664         * malloc/malloc.c: Include assert.h.
665
666         * libc-symbols.h: Use __attribute__ for GCC 2.8, not 2.7.
667
668         * malloc/malloc.h [emacs] (emacs_loser_valloc): Macro removed.
669         (valloc): Protect decl with [! (_MALLOC_INTERNAL && emacs)].
670
671 Fri Nov 10 14:15:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
672
673         * malloc/malloc.c (align): Assert that space for alignment
674         adjustment is same original space.
675
676         * hurd/hurdprio.c (_hurd_priority_which_map): Cast vm_deallocate
677         arg to vm_address_t.
678
679         * hurd/hurdsig.c (_hurd_internal_post_signal): For SIGNO == 0,
680         skip straight to pending check.  When UNTRACED, resume process
681         from suspension first.
682
683         * intl/Makefile (headers): New variable, libintl.h.
684         [gettext-srcdir]: New rules to copy source from $(gettext-srcdir)/intl.
685         * configure.in: Check for --with-gettext arg.
686
687 Fri Nov 10 13:51:30 1995  Richard Stallman  <rms@gnu.ai.mit.edu>
688
689         * malloc/malloc.c (get_contiguous_space): New function.
690         (morecore): Rewrite allocating new malloc info table.
691         (_malloc_internal): Use get_contiguous_space.
692
693 Fri Nov 10 13:03:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
694
695         * hurd/hurdexec.c (_hurd_exec): If exec'ing self, pass
696         _hurd_msgport to be destroyed.
697
698         * Makerules (installed-libcs): Filter out %_pic.a.
699
700         * hurd/hurdinit.c (_hurd_proc_init): When traced, use msg_sig_post
701         to our msgport to take SIGTRAP, instead of _hurd_raise_signal.
702
703         * hurd/Makefile (user-interfaces): Add hurd/process_request.
704
705 Wed Nov  8 16:31:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
706
707         * termios/Makefile (headers): Add sys/ttychars.h.
708         * termios/sys/ttychars.h: New file, incorporated from 4.4BSD-Lite
709         for compatibility.
710
711         * signal/signal.h [__USE_BSD] (sig_t): New typedef.
712
713 Wed Nov  8 15:12:47 1995  Michael I. Bushnell, p/BSG  <mib@gnu.ai.mit.edu>
714
715         * sysdeps/mach/hurd/ptrace.c (ptrace) [PTRACE_TRACEME]: Notify the
716         proc server that we are now traced.
717
718 Tue Nov  7 12:29:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
719
720         * elf/Makefile (ldd): Make it executable.
721
722         * Makeconfig (config-LDFLAGS): Find dynamic linker in $(slibdir).
723
724         * Makeconfig (slibdir): New variable.
725         * Makerules (install): Install libc.so in $(slibdir).
726         * elf/Makefile (install-others): Install ld.so and ld-linux.so.1
727         in $(slibdir).
728
729         * elf/linux-compat.c: New file.
730         * elf/Makefile (distribute): Add linux-compat.c.
731         (generated): Add librtld.so.
732         [$(config-os)=linux*] (extra-objs): Add linux-compat.so.
733         [$(config-os)=linux*] (extra-objs): Add ld-linux.so.1.
734         (librtld.so): New target.
735         (ld.so, ld-linux.so.1): Make from librtld.so.
736
737         * elf/rtld.c (dl_main): Instead of weak call to _dl_compat_init,
738         call our own DT_INIT if we have one (and then clear it).
739         (__dgettext): New weak function.
740
741         * intl/localealias.c (read_alias_file): Avoid sprintf; use memcpy
742         by hand instead.
743
744         * sysdeps/generic/_strerror.c (_strerror_internal): Use _itoa
745         instead of snprintf.
746
747         * sysdeps/mach/_strerror.c (_strerror_internal): Don't write
748         BUF[BUFLEN].
749
750         * elf/rtld.c (rtld_map): New static variable.
751         (_dl_start): Use a differently named local BOOTSTRAP_MAP for the
752         bootstrapping.  Then copy data into `rtld_map'.
753         (dl_main): Finish filling in rtld_map and link it into the chain,
754         instead of allocating a new structure.
755         (dl_main): Call _dl_compat_init if it is defined (use weak ref).
756
757         * elf/dlsym.c: Fix last change: move REF out of `doit'.
758
759 Mon Nov  6 16:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
760
761         * elf/dlsym.c: Return the proper value, not just the defining
762         object's loadbase.
763
764 Sun Nov  5 16:09:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
765
766         * stdio-common/vfprintf.c (%c): Count the character itself towards
767         the field width in all cases.
768
769         * sysdeps/mach/hurd/getpriority.c (getpriority): Cast
770         __vm_deallocate arg to vm_address_t.
771
772 Fri Nov  3 17:27:49 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
773
774         * sysdeps/mach/hurd/sendto.c: Don't pass BINDING arg to
775         socket_create_address.
776         * sysdeps/mach/hurd/connect.c: Likewise.
777         * sysdeps/mach/hurd/bind.c: Likewise.
778
779         * hurd/hurdprio.c (_hurd_priority_which_map): Pass threadwaits
780         args to proc_getprocinfo.
781         * sysdeps/mach/hurd/getpriority.c: Likewise.
782
783         * hurd/hurdmsg.c (_S_msg_report_wait): New stub function.
784
785 Thu Nov  2 19:24:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
786
787         * sysdeps/unix/sysv/linux/i386/sysdep.S (errno): Define as common.
788
789 Tue Oct 31 00:07:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
790
791         * sysdeps/mach/hurd/getpriority.c (getpriority): Pass
792         PI_FETCH_TASKINFO to proc_getprocinfo and through
793         _hurd_priority_which_map.
794
795         * sysdeps/mach/hurd/setpriority.c (setpriority): Pass new arg to
796         _hurd_priority_which_map.
797         * hurd/hurdprio.c (_hurd_priority_which_map): New arg PI_FLAGS,
798         passed through to proc_getprocinfo RPC.
799         * hurd/hurd/resource.h: Add PI_FLAGS arg in decl.
800
801         * sysdeps/mach/hurd/group_member.c: New file.
802         * sysdeps/generic/group_member.c: New file.
803
804         * Makerules (lib-noranlib): Don't depend on $(install-lib).
805         (others): Do.
806         * extra-lib.mk: Fix test of $(lib)-no-lib-dep.
807
808 Mon Oct 30 12:33:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
809
810         * Rules (others): Depend on $(extra-objs).
811
812         * posix/unistd.h [__USE_GNU]: Declare group_member, __group_member.
813         * posix/Makefile (routines): Add group_member.
814
815         * sysdeps/posix/euidaccess.c: New file, adapted from fileutils.
816
817         * sysdeps/unix/sysv/linux/i386/sigaction.c: Tighten constraint for
818         SIG operand in asm so it must be a register.
819         Add dead return to quiet gcc warning.
820
821         * Makerules (sysd-rules): Write a defn for sysd-rules-done.
822         [! sysd-rules-done]: Inhibit deps.
823
824 Thu Oct 26 23:11:11 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
825
826         * sysdeps/unix/sysv/linux/poll.c: Don't define as stub.  Use
827         simulation of system call using select.
828
829         * sysdeps/unix/sysv/linux/signal.c: Use POSIX implementation.
830
831         * sysdeps/unix/sysv/linux/statbuf.h: Define _STAT_VER.
832
833         * sysdeps/unix/sysv/linux/i386/sigaction.c: Correct parameter
834         name usage (new->act, old->oact).
835         Correct asm statement because of gcc strangeness.
836
837         * sysdeps/i386/i586/strchr.S: Correct typos: cmp -> cmpb.
838
839         * sunrpc/clnt_perr.c: Remove declaration of sys_errlist.  They
840         conflict with the ones in stdio.h.
841
842         * string/tester.c: %Z is no complete format.  Change to %Zd.
843
844 Thu Oct 26 18:13:33 1995  Miles Bader  <miles@gnu.ai.mit.edu>
845
846         * sysdeps/mach/hurd/bind.c (bind): Swap args to dir_link.
847         * sysdeps/mach/hurd/link.c (__link): Ditto.
848         * sysdeps/mach/hurd/symlink.c (__symlink): Ditto.
849         * sysdeps/mach/hurd/mknod.c (__mknod): Ditto.
850         Include "stdio-common/_itoa.h" instead of "stdio/_itoa.h".
851
852 Thu Oct 26 00:11:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
853
854         * sysdeps/unix/sysv/linux/i386/sigaction.c: New file.
855
856         * sysdeps/unix/sysv/linux/i386/xstat.S: Don't use JUMPTARGET macro
857         on syscall_error.  For PIC, it is a local label;
858         for non-PIC, JUMPTARGET expands to the unadorned name anyway.
859         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
860         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
861         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
862         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
863         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
864         * sysdeps/unix/sysv/linux/i386/brk.S: Likewise.
865
866 Thu Oct 26 03:01:22 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
867
868         * sysdeps/unix/sysv/linux/syscall.h: Strip list of syscalls in
869         comment to the necessary ones.  Add _readv and _writev.
870
871         * sysdeps/unix/configure.in: Change syntax for system call test
872         candidates and adapt sed script for this.  Now use : to separate
873         syscall name and file name.
874
875         * sysdeps/unix/sysv/linux/i386/sysdep.h (ENTRY): System call
876         number is now set is DO_CALL.  So call with additional argument.
877         (DO_CALL): Takes an additional argument.  Load system call
878         number according to new argument.
879         (SYSCALL_ERROR_HANDLER): Add ; after last ret statement.
880         * sysdeps/unix/sysv/linux/i386/brk.S [PIC]: Define __syscall_error
881         locally using SYSCALL_ERROR_HANDLER macro.
882         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
883         * sysdeps/unix/sysv/linux/i386/sbrk.S: Likewise.
884         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
885         * sysdeps/unix/sysv/linux/i386/xmknod.S: Likewise.
886         * sysdeps/unix/sysv/linux/i386/xstat.S: Likewise.
887         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
888         Don't use DO_CALL macro; instead use lower level macros for better
889         control.
890
891         * sysdeps/unix/sysv/linux/sigaction.h: New file.
892         * sysdeps/unix/sysv/linux/sigaction.S: File removed.
893         * sysdeps/unix/sysv/linux/signal.S: File removed.
894
895 Wed Oct 25 14:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
896
897         * hurd/hurdstartup.c (_hurd_startup): Use new
898         exec_startup_get_info RPC from exec_startup.defs
899         in place of old exec_startup from exec.defs.  Remove kludge to
900         guess user entry and phdr locations, since the new RPC gives us
901         that info.
902
903         * stdio/stdio.h (sys_errlist, _sys_errlist): Declare const.
904         * sysdeps/generic/_strerror.c: Undo last change.
905
906         * sysdeps/unix/sysv/linux/stat.c: New file.
907         * sysdeps/unix/sysv/linux/fstat.c: New file.
908         * sysdeps/unix/sysv/linux/lstat.c: New file.
909         * sysdeps/unix/sysv/linux/i386/stat.S: File removed.
910         * sysdeps/unix/sysv/linux/i386/fstat.S: File removed.
911         * sysdeps/unix/sysv/linux/i386/lstat.S: File removed.
912
913 Tue Oct 24 15:22:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
914
915         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
916         New macro.
917         (PSEUDO): Use it instead of SYSCALL_PIC_SETUP and jmp syscall_error.
918
919         * sysdeps/unix/sysv/linux/i386/sysdep.S (__syscall_error): Define
920         only #ifndef PIC.
921
922         * Makeconfig (built-program-cmd): New variable.
923         * sunrpc/Makefile (rpcgen-cmd): Use $(built-program-cmd).
924         * time/Makefile (zic-cmd): Likewise.
925
926         * hurd/Makefile (user-interfaces): Add hurd/exec_startup.
927
928         * sunrpc/Makefile (librpcsvc-no-lib-dep): New variable.
929         * extra-lib.mk: If $(lib)-no-lib-dep is defined and MAKELEVEL>0,
930         make `others' rather than `lib-noranlib' depend on the libraries.
931
932         * sysdeps/unix/configure.in: Check for fchdir syscall.
933         Improve sed script to allow / on rhs without / on lhs.
934
935 Thu Oct 19 03:47:32 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
936
937         * sysdeps/unix/sysv/linux/termbits.h: Don't define speed constants.
938
939         * elf/rtld.c: Include _itoa.h from stdio-common instead of stdio.
940
941         * sysdeps/unix/sysv/linux/select.S: New file.
942
943 Wed Oct 18 03:33:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
944
945         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Use
946         SYSCALL_PIC_SETUP before jumping to syscall_error.
947         * sysdeps/unix/i386/sysdep.h (SYSCALL_PIC_SETUP): New macro.
948         (PSEUDO): Use it before jumping to syscall_error.
949         * sysdeps/unix/i386/sysdep.S [! PIC]: Don't find GOT address;
950         expect it in %ebx on entry.  Pop old %ebx value off stack after
951         using it.
952
953         * signal/signal.h [__USE_BSD] (_sys_siglist, sys_siglist): Declare
954         them.
955
956         * sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
957
958         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
959         `fd/', pass the right pointer to strtol to parse the number.
960
961 Tue Oct 17 23:00:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
962
963         * sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
964         of stdio/_itoa.h.
965
966 Tue Oct 17 19:51:17 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
967
968         * sysdeps/unix/sysv/linux/i386/stat.S [PIC] (__stat): Set GOT
969         register %ebx before calling __xstat through PLT.
970
971         * sysdeps/unix/sysv/linux/i386/sysdep.S: Fix typo in comment.
972
973         * sysdeps/unix/sysv/linux/sigset.h: Remove file.
974
975 Tue Oct 17 01:21:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
976
977         * hurd/hurdsock.c: Include stdio-common/_itoa.h instead of
978         stdio/_itoa.h.
979         * hurd/hurdlookup.c: Likewise.
980
981         * hurd/hurd/signal.h: Declare hurd_preempt_signals and
982         hurd_unpreempt_signals.
983
984         * stdio/stdio.h: Declare __snprintf and __vsnprintf.
985
986         * stdio-common/psignal.c: Translate signal description strings.
987         * string/strsignal.c: Likewise.
988         * sysdeps/generic/_strerror.c (_strerror_internal): Translate
989         error strings.
990         * sysdeps/mach/_strerror.c: Likewise.
991
992         * stdio-common/snprintf.c (__snprintf): Renamed from snprintf;
993         call __vsnprintf.
994         (snprintf): Define as weak alias.
995         * stdio/vsnprintf.c (__vsnprintf): Renamed from vsnprintf.
996         (vsnprintf): Define as weak alias.
997
998 Mon Oct 16 03:22:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
999
1000         * Makerules (install-lib): Filter out %_pic.a; install only the
1001         linked shared objects.
1002
1003         * locale/Makefile (aux): Add SYS_libc.
1004         * locale/SYS_libc.c: New file.
1005         * libc-symbols.h [! ASSEMBLER] (_): New macro.
1006
1007         * configure.in (libc_cv_asm_set_directive): Link program into
1008         conftest instead of letting it default to a.out.
1009
1010         * elf/Makefile (install-others): Add missing slash.
1011
1012         * elf/ldd.sh.in: Prepend `./' to relative file names so ld.so
1013         won't search LD_LIBRARY_PATH.
1014
1015         * Makefile (subdirs): Replace stdio with stdio-common and $(stdio).
1016         * configure.in: Grok arg --enable-libio.
1017         ($stdio = libio): Define USE_IN_LIBIO.
1018         * config.h.in (USE_IN_LIBIO): Add #undef.
1019         * config.make.in (stdio): New variable, set by configure.
1020         * Makeconfig (stdio): New variable.
1021         * stdio.h [USE_IN_LIBIO]: Include libio/stdio.h instead of
1022         stdio/stdio.h.
1023         * stdio-common/Makefile: New file.
1024         * stdio/Makefile: Half the contents moved to stdio-common/Makefile.
1025         * stdio/_itoa.c: Moved to stdio-common.
1026         * stdio/_itoa.h: Moved to stdio-common.
1027         * stdio/asprintf.c: Moved to stdio-common.
1028         * stdio/bug1.c: Moved to stdio-common.
1029         * stdio/bug1.input: Moved to stdio-common.
1030         * stdio/bug2.c: Moved to stdio-common.
1031         * stdio/bug3.c: Moved to stdio-common.
1032         * stdio/bug4.c: Moved to stdio-common.
1033         * stdio/bug5.c: Moved to stdio-common.
1034         * stdio/bug6.c: Moved to stdio-common.
1035         * stdio/bug6.input: Moved to stdio-common.
1036         * stdio/bug7.c: Moved to stdio-common.
1037         * stdio/dprintf.c: Moved to stdio-common.
1038         * stdio/errnobug.c: Moved to stdio-common.
1039         * stdio/getline.c: Moved to stdio-common.
1040         * stdio/getw.c: Moved to stdio-common.
1041         * stdio/perror.c: Moved to stdio-common.
1042         * stdio/printf-parse.h: Moved to stdio-common.
1043         * stdio/printf-prs.c: Moved to stdio-common.
1044         * stdio/printf.c: Moved to stdio-common.
1045         * stdio/printf.h: Moved to stdio-common.
1046         * stdio/printf_fp.c: Moved to stdio-common.
1047         * stdio/psignal.c: Moved to stdio-common.
1048         * stdio/putw.c: Moved to stdio-common.
1049         * stdio/reg-printf.c: Moved to stdio-common.
1050         * stdio/scanf.c: Moved to stdio-common.
1051         * stdio/snprintf.c: Moved to stdio-common.
1052         * stdio/sprintf.c: Moved to stdio-common.
1053         * stdio/sscanf.c: Moved to stdio-common.
1054         * stdio/tempnam.c: Moved to stdio-common.
1055         * stdio/temptest.c: Moved to stdio-common.
1056         * stdio/test-fseek.c: Moved to stdio-common.
1057         * stdio/test-fwrite.c: Moved to stdio-common.
1058         * stdio/test-popen.c: Moved to stdio-common.
1059         * stdio/test_rdwr.c: Moved to stdio-common.
1060         * stdio/tmpfile.c: Moved to stdio-common.
1061         * stdio/tmpnam.c: Moved to stdio-common.
1062         * stdio/tst-fileno.c: Moved to stdio-common.
1063         * stdio/tst-printf.c: Moved to stdio-common.
1064         * stdio/tstgetln.c: Moved to stdio-common.
1065         * stdio/tstgetln.input: Moved to stdio-common.
1066         * stdio/tstscanf.c: Moved to stdio-common.
1067         * stdio/tstscanf.input: Moved to stdio-common.
1068         * stdio/vfprintf.c: Moved to stdio-common.
1069         * stdio/vfscanf.c: Moved to stdio-common.
1070         * stdio/vprintf.c: Moved to stdio-common.
1071         * stdio/xbug.c: Moved to stdio-common.
1072         * sysdeps/generic/Makefile (siglist.c rules): Do this in subdir
1073         stdio-common instead of stdio.
1074         * sysdeps/unix/Makefile (errlist.c rules): Likewise.
1075         * stdio-common/asprintf.c [USE_IN_LIBIO]: Call libio primitive
1076         function.
1077         * stdio-common/dprintf.c: Likewise.
1078         * stdio-common/printf.c: Likewise.
1079         * stdio-common/scanf.c: Likewise.
1080         * stdio-common/snprintf.c: Likewise.
1081         * stdio-common/sprintf.c: Likewise.
1082         * stdio-common/sscanf.c: Likewise.
1083         * stdio-common/vprintf.c: Likewise.
1084
1085         * Makerules: Include $(+depfiles) directly instead of generating
1086         depend-$(subdir).
1087         (depend-$(subdir)): Target removed.
1088         (common-clean): Don't remove depend-$(subdir).
1089
1090         * sysdeps/unix/sysv/linux/Makefile (rtld-installed-name): New variable.
1091         (config-LDFLAGS): Variable removed.
1092
1093         * sysdeps/mach/hurd/getcwd.c: Use __file_name_lookup_under.
1094         * sysdeps/mach/hurd/bind.c: Likewise.
1095         * sysdeps/mach/hurd/access.c: Use new __hurd_file_name_lookup
1096         calling convention.
1097
1098         * hurd/hurdexec.c: Undo last change (10 Oct 95).
1099
1100 Sun Oct 15 21:04:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1101
1102         * hurd/hurd/lookup.h: New file.
1103         * hurd/hurdlookup.c (__file_name_lookup_under): New function.
1104         (__hurd_file_name_lookup, __hurd_file_name_lookup_retry,
1105         __hurd_file_name_split): Rewritten to take callback functions for
1106         using any needed init or dtable port, instead of passing in crdir
1107         and cwdir ports.
1108         (__file_name_lookup, __file_name_split): Use new calling
1109         convention; pass _hurd_ports_use and __getdport as the callback
1110         functions.
1111
1112         * sysdeps/mach/hurd/chroot.c: Use __file_name_lookup_under instead
1113         of __hurd_file_name_lookup.
1114         * sysdeps/mach/hurd/chdir.c: Likewise.
1115         * sysdeps/mach/hurd/fchdir.c: Likewise.
1116         * hurd/fchroot.c: Likewise.
1117
1118         * stdlib/Makefile (mpn-found): Don't omit %.s.
1119         (mpn-copy-sysdep): Omit files in nonexistent directories.
1120         (copy-mpn): Commit files to CVS.
1121         * stdlib/gen-mpn-copy (translations): Update translations for GMP
1122         1.906.7.
1123
1124         * configure.in (machine): Translate alpha* to alpha/&, hppa* to hppa/&.
1125
1126 Sat Oct 14 02:52:36 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
1127
1128         * malloc/malloc.c (_malloc_internal): Performance fix.  Move
1129         if statement out of loop.
1130
1131         * stdio/_itoa.c, stdio/_itoa.h: Complete rewrite.  Much faster
1132         implementation using GMP functions.  Contributed by
1133         Torbjorn Granlund and Ulrich Drepper.
1134
1135         * stdio/test_rdwr.c: Include <errno.h>.
1136
1137         * sysdeps/i386/i586/Implies: New file.
1138
1139         New highly optimized string functions for i[345]86.
1140         * sysdeps/i386/memchr.S, sysdeps/i386/memcmp.S: New files.
1141         * sysdeps/i386/stpcpy.S, sysdeps/i386/stpncpy.S: New files.
1142         * sysdeps/i386/strchr.S, sysdeps/i386/strcspn.S: New files.
1143         * sysdeps/i386/strpbrk.S, sysdeps/i386/strrchr.S: New files.
1144         * sysdeps/i386/strspn.S, sysdeps/i386/i486/strcat.S: New files.
1145         * sysdeps/i386/i486/strlen.S, sysdeps/i386/i586/strchr.S: New files.
1146         * sysdeps/i386/i586/strlen.S: New file.
1147         * sysdeps/i386/memchr.c: Removed.  There is now an assembler version.
1148
1149         * sysdeps/i386/i586/memcopy.h (WORD_COPY_BWD): Parameters did
1150         not correspond to used values.
1151
1152         * sysdeps/unix/sysv/linux/nfs/nfs.h: New file.  Simply a wrapper
1153         around a kernel header file.
1154         * sysdeps/unix/sysv/linux/Dist: Add it.
1155         * sysdeps/unix/sysv/linux/Makefile [$(subdir)=sunrpc] (headers):
1156         Likewise.
1157
1158         * sysdeps/unix/sysv/linux/local_lim.h: Rewrite.  Instead of
1159         defining ourself we use a kernel header file.
1160
1161         * sysdeps/unix/sysv/linux/i386/sysdep.h (DO_CALL): Optimize system
1162         call handler for i586.
1163
1164         * sysdeps/unix/sysv/linux/sys/param.h: Add copyright and clean up.
1165
1166 Thu Oct 12 15:45:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1167
1168         * hurd/hurd.h (file_name_lookup_under): Declare it.
1169         * hurd/Makefile (headers): Add hurd/lookup.h.
1170
1171         * hurd/hurdinit.c (_hurd_ports_use): New function.
1172         * hurd/hurd.h (_hurd_ports_use): Declare it.
1173         (hurd_invoke_translator, hurd_file_name_lookup, hurd_file_name_split,
1174         hurd_file_name_lookup_retry): Remove these decls.
1175         * hurd/Makefile (routines): Remove invoke-trans.
1176
1177 Wed Oct 11 00:00:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1178
1179         * sysdeps/i386/dl-machine.h (elf_machine_rel): Use +=, not =, to
1180         apply R_386_PC32 reloc.
1181
1182         * Makeconfig (config-LDFLAGS): Add missing slash.
1183
1184         * sysdeps/mach/hurd/profil.c (fork_profil): Only call
1185         update_waiter if profiling was enabled in the parent.
1186
1187         * csu/initfini.c: Don't pass -f flag to cp.
1188
1189 Tue Oct 10 23:08:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1190
1191         * Makerules (build-shlib): Pass -rpath and -rpath-link options.
1192         (LDFLAGS-c.so): Don't pass -dynamic-linker here.
1193         * Makeconfig (+link): Pass $(sysdep-LDFLAGS).
1194         (link-libc): Pass -rpath and -rpath-link options.
1195
1196         * MakeTAGS (all-dirs): Omit CVS directories.
1197         Specify vpath directives to find source files in $(all-dirs).
1198         (sources, headers): Append sources and headers from $(all-dist) to
1199         these.
1200         (all-dist): Filter them out of this.
1201         (all-headers, all-sources): Use $(shell find ...) instead of
1202         $(wildcard ...).
1203
1204         * sysdeps/mach/hurd/Makefile (sysdep-LDFLAGS): New variable; pass
1205         -rpath-link.
1206
1207         * hurd/hurdexec.c: Pass poly and dealloc args to __file_exec.
1208
1209         * elf/Makefile (install-others): Add missing $.
1210
1211 Mon Oct  9 02:54:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1212
1213         * mach/Makefile ($(objpfx)errsystems.c): Rule reenabled.
1214
1215         * Makeconfig (config-LDFLAGS): Define to
1216         -Wl-dynamic-linker=$(libdir)$(rtld-installed-name).
1217         (rtld-installed-name): New variable.
1218         * elf/Makefile (install-lib): Variable removed.
1219         (install-others): Define this instead, to
1220         $(libdir)(rtld-installed-name).
1221         ($(libdir)(rtld-installed-name)): New target; install from ld.so.
1222
1223         * elf/ldd.sh.in: New file.
1224         * elf/Makefile (distribute): Add ldd.sh.in.
1225         (install-bin): Add ldd.
1226         ($(objpfx)ldd: ldd.sh.in): New rule.
1227
1228         * sysdeps/mach/hurd/dl-sysdep.c: Use __hurd_fail throughout.
1229         * hurd/hurd.h (__hurd_fail): Replace macro with inline function.
1230         Translate some Mach errors to Hurd errors.
1231
1232         * elf/rtld.c (dl_main): Under --list, print msg if executable is
1233         statically linked.
1234
1235         * elf/dl-load.c (_dl_map_object_from_fd): Rewrote program header
1236         table processing.
1237
1238 Sat Oct  7 01:25:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1239
1240         * sysdeps/stub/machine-gmon.h: Add #error.
1241
1242 Fri Oct  6 01:49:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1243
1244         * elf/dynamic-link.h (elf_get_dynamic_info): If DYN is null, don't
1245         examine it.
1246
1247 Fri Sep 29 03:43:51 1995  Paul Eggert  <eggert@twinsun.com>
1248
1249         Rewrite mktime from scratch for performance, and for correctness
1250         in the presence of leap seconds.
1251
1252         * time/mktime.c (ydhms_tm_diff, not_equal_tm, print_tm, check_result):
1253         New functions.
1254         (LEAP_SECONDS_POSSIBLE, CHAR_BIT, INT_MIN, INT_MAX,
1255         TIME_T_MIN, TIME_T_MAX, TM_YEAR_BASE, EPOCH_YEAR): New macros.
1256         <limits.h>, <stdlib.h>: New #includes.
1257         (main): Support tests with given broken-down value; support benchmarks.
1258         (__mon_lengths, debugging_enabled, printtm, dist_tm, doit,
1259         do_normalization, normalize, BAD_STRUCT_TM, SKIP_VALUE,
1260         <ctype.h>): Remove.
1261
1262         * time/time.h, time/mktime.c (__mktime_internal): New offset arg.
1263         * time/mktime.c (mktime), time/timegm.c (timegm): Use it.
1264
1265         * time/mktime.c (__mon_yday): New variable; replaces `__mon_lengths'.
1266         time/offtime.c (__offtime), time/tzset.c (compute_change): Use it.
1267
1268         * time/offtime.c (__offtime): Remove useless assignment
1269         `tp->tm_isdst = -1'.
1270
1271         * manual/maint.texi: Update credits.
1272
1273 Fri Oct  6 00:28:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1274
1275         * sysdeps/unix/common/readv.S: Moved to sysdeps/unix/bsd.
1276         * sysdeps/unix/common/writev.S: Moved to sysdeps/unix/bsd.
1277         * sysdeps/unix/sysv/linux/readv.c: File removed.
1278         * sysdeps/unix/sysv/linux/writev.c: File removed.
1279         * sysdeps/unix/configure.in: Check for readv and writev syscalls.
1280
1281         * sysdeps/unix/configure.in: If eval doesn't set $unix_srcname,
1282         set it to $unix_syscall instead of $unix_function.
1283
1284 Thu Oct  5 00:59:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1285
1286         * elf/rtld.c (dl_main): Grok --list flag.
1287         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Ignore -- args.
1288
1289 Wed Oct  4 00:21:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1290
1291         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_message): New function.
1292         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_message): New function.
1293         * elf/link.h (_dl_sysdep_message): Declare it.
1294
1295         * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Remove NULL from
1296         the list.
1297
1298         * time/northamerica: Corrections to Canada data from ADO 95i.
1299
1300         * sysdeps/unix/sysv/linux/Makefile (headers): Don't append to this
1301         unconditionally.  In socket subdir, append sys/socketcall.h; in
1302         time subdir, append sys/timex.h.
1303         (config-LDFLAGS): New variable.
1304         * sysdeps/unix/sysv/linux/Dist: New file.
1305         * Makeconfig (+link): Pass $(config-LDFLAGS) before $(LDFLAGS).
1306
1307         * sysdeps/generic/stpncpy.c: Don't increment DEST when zero-filling.
1308
1309         * elf/dlopen.c (dlopen): Don't pass USER_ENTRY arg to _dl_map_object.
1310
1311 Sat Sep 30 11:47:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1312
1313         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): If started by
1314         kernel with args on stack, point _dl_hurd_data at zero data
1315         instead of garbage.  When ld.so run as program, grok args
1316         -LIB=MEMOBJ and pre-load shared object files found in memory
1317         objects loaded by the boot loader.
1318
1319         * elf/link.h (struct link_map): New member `l_entry'.
1320         (_dl_map_object, _dl_map_object_from_fd): Remove last arg ENTRY_POINT.
1321         * elf/dl-load.c (_dl_map_object, _dl_map_object_from_fd): Remove
1322         last arg ENTRY_POINT.  Store the entry point location in the
1323         `l_entry' member of the new map.
1324         * elf/rtld.c (dl_main): Don't pass USER_ENTRY arg to
1325         _dl_map_object.  When run as program, set *USER_ENTRY to L->l_entry.
1326         * elf/dl-init.c (_dl_init_next): Don't pass ENTRY_POINT arg to
1327         _dl_map_object.
1328
1329         * posix/tstgetopt.c, posix/tstgetopt.args: Test long options too.
1330
1331         * sysdeps/unix/sysv/linux/i386/init-first.c (init): Save, set, and
1332         restore %ebx by hand for personality syscall.
1333         GCC cannot deal with spilling the dedicated GOT register.
1334
1335         * misc/Makefile (routines): Add mntent, which was somehow omitted.
1336
1337 Fri Sep 29 15:07:10 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
1338
1339         * sysdeps/unix/sysv/linux/adjtime.c (__adjtime):
1340         Change name of field `mode' in `struct timex' to `modes'.
1341         Linux-1.3.28 updates this name according to RFC 1489.
1342
1343 Thu Sep 28 13:05:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1344
1345         Merge new message handling code from GNU gettext, by Drepper.
1346         * intl: New directory.
1347         * Makefile (subdirs): Add intl.
1348
1349         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Return
1350         USER_ENTRY instead of storing it on our stack.
1351
1352         * elf/rtld.c (rtld_command): Variable removed.
1353         (_dl_skip_args): New variable.
1354         (dl_main): Increment _dl_skip_args instead of setting rtld_command.
1355         If the link_map for the executable itself is not first in the chain,
1356         make it so.
1357         * sysdeps/i386/dl-machine.h (RTLD_START): Use _dl_skip_args as
1358         count of args to skip.
1359
1360 Thu Sep 28 09:20:04 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
1361
1362         * stdlib/strtod.c (STRTOF): Fix handling of numbers with lots of
1363         leading zeroes.
1364
1365 Wed Sep 27 00:27:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1366
1367         * sysdeps/mach/hurd/getcwd.c (__getcwd): Renamed from getcwd.
1368         (getcwd): Define as weak alias.
1369         * sysdeps/posix/getcwd.c: Likewise.
1370         * sysdeps/stub/getcwd.c: Likewise.
1371         * posix/unistd.h: Declare __getcwd.
1372
1373         * string/string.h: Declare __strcasecmp.
1374         * sysdeps/generic/strcasecmp.c (__strcasecmp): Renamed from
1375         strcasecmp.
1376         (strcasecmp): Define as weak alias.
1377
1378         * string/string.h: Declare __stpcpy.
1379         * sysdeps/generic/stpcpy.c (__stpcpy): Renamed from stpcpy.
1380         (stpcpy): Define as weak alias.
1381
1382         * sysdeps/unix/sysv/linux/Implies: Add unix/common.
1383
1384         * sysdeps/unix/i386/sysdep.h [HAVE_ELF] (ASM_TYPE_DIRECTIVE):
1385         Don't use `type' for arg name, since we are using it as a keyword
1386         in the rhs.
1387
1388         * sysdeps/unix/configure.in: Check for syscalls getpriority,
1389         setpriority, getrlimit, setrlimit.
1390
1391         * sysdeps/posix/truncate.c: Include fcntl.h.
1392
1393         * sysdeps/generic/getdomain.c: Include string.h for strncpy decl.
1394
1395         * sysdeps/stub/getpriority.c: Don't include obsolete gnu-stabs.h;
1396         use new stub_warning syntax.
1397         * sysdeps/stub/setpriority.c: Likewise.
1398         * sysdeps/stub/__longjmp.c: Likewise.
1399         * sysdeps/stub/_exit.c: Likewise.
1400         * sysdeps/stub/accept.c: Likewise.
1401         * sysdeps/stub/acos.c: Likewise.
1402         * sysdeps/stub/alarm.c: Likewise.
1403         * sysdeps/stub/asin.c: Likewise.
1404         * sysdeps/stub/atan2.c: Likewise.
1405         * sysdeps/stub/bind.c: Likewise.
1406         * sysdeps/stub/cbrt.c: Likewise.
1407         * sysdeps/stub/chroot.c: Likewise.
1408         * sysdeps/stub/closedir.c: Likewise.
1409         * sysdeps/stub/connect.c: Likewise.
1410         * sysdeps/stub/cos.c: Likewise.
1411         * sysdeps/stub/cosh.c: Likewise.
1412         * sysdeps/stub/ctermid.c: Likewise.
1413         * sysdeps/stub/cuserid.c: Likewise.
1414         * sysdeps/stub/defs.c: Likewise.
1415         * sysdeps/stub/exp.c: Likewise.
1416         * sysdeps/stub/fmod.c: Likewise.
1417         * sysdeps/stub/frexp.c: Likewise.
1418         * sysdeps/stub/fsync.c: Likewise.
1419         * sysdeps/stub/getcwd.c: Likewise.
1420         * sysdeps/stub/getenv.c: Likewise.
1421         * sysdeps/stub/gethostid.c: Likewise.
1422         * sysdeps/stub/getlogin.c: Likewise.
1423         * sysdeps/stub/getpeername.c: Likewise.
1424         * sysdeps/stub/getrlimit.c: Likewise.
1425         * sysdeps/stub/getsockname.c: Likewise.
1426         * sysdeps/stub/getsockopt.c: Likewise.
1427         * sysdeps/stub/listen.c: Likewise.
1428         * sysdeps/stub/log.c: Likewise.
1429         * sysdeps/stub/log10.c: Likewise.
1430         * sysdeps/stub/mkfifo.c: Likewise.
1431         * sysdeps/stub/morecore.c: Likewise.
1432         * sysdeps/stub/nice.c: Likewise.
1433         * sysdeps/stub/nlist.c: Likewise.
1434         * sysdeps/stub/opendir.c: Likewise.
1435         * sysdeps/stub/pipestream.c: Likewise.
1436         * sysdeps/stub/ptrace.c: Likewise.
1437         * sysdeps/stub/putenv.c: Likewise.
1438         * sysdeps/stub/readdir.c: Likewise.
1439         * sysdeps/stub/reboot.c: Likewise.
1440         * sysdeps/stub/recv.c: Likewise.
1441         * sysdeps/stub/recvfrom.c: Likewise.
1442         * sysdeps/stub/rename.c: Likewise.
1443         * sysdeps/stub/rewinddir.c: Likewise.
1444         * sysdeps/stub/seekdir.c: Likewise.
1445         * sysdeps/stub/send.c: Likewise.
1446         * sysdeps/stub/sendto.c: Likewise.
1447         * sysdeps/stub/setegid.c: Likewise.
1448         * sysdeps/stub/seteuid.c: Likewise.
1449         * sysdeps/stub/setgroups.c: Likewise.
1450         * sysdeps/stub/sethostid.c: Likewise.
1451         * sysdeps/stub/sethostname.c: Likewise.
1452         * sysdeps/stub/setjmp.c: Likewise.
1453         * sysdeps/stub/setrlimit.c: Likewise.
1454         * sysdeps/stub/setsockopt.c: Likewise.
1455         * sysdeps/stub/shutdown.c: Likewise.
1456         * sysdeps/stub/signal.c: Likewise.
1457         * sysdeps/stub/sigsuspend.c: Likewise.
1458         * sysdeps/stub/sin.c: Likewise.
1459         * sysdeps/stub/sinh.c: Likewise.
1460         * sysdeps/stub/socket.c: Likewise.
1461         * sysdeps/stub/socketpair.c: Likewise.
1462         * sysdeps/stub/sqrt.c: Likewise.
1463         * sysdeps/stub/sync.c: Likewise.
1464 M sysd-stdio.c
1465         * sysdeps/stub/system.c: Likewise.
1466         * sysdeps/stub/tan.c: Likewise.
1467         * sysdeps/stub/tanh.c: Likewise.
1468         * sysdeps/stub/tcdrain.c: Likewise.
1469         * sysdeps/stub/tcflow.c: Likewise.
1470         * sysdeps/stub/tcgetpgrp.c: Likewise.
1471         * sysdeps/stub/tcsendbrk.c: Likewise.
1472         * sysdeps/stub/tcsetattr.c: Likewise.
1473         * sysdeps/stub/tcsetpgrp.c: Likewise.
1474         * sysdeps/stub/telldir.c: Likewise.
1475         * sysdeps/stub/tempname.c: Likewise.
1476         * sysdeps/stub/ttyname.c: Likewise.
1477         * sysdeps/stub/ttyname_r.c: Likewise.
1478         * sysdeps/stub/utime.c: Likewise.
1479
1480         * gmon/gmon.c (moncontrol): Don't cast buffer arg to profil.
1481
1482         * time/mktime.c (localtime_r): Use 0 instead of NULL.
1483
1484         * config.make.in (AS): New variable; set to `$(CC) -c'.
1485
1486         * posix/unistd.h [__USE_BSD]: Declare profil.
1487
1488         * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out
1489         of _dl_map_object.
1490         (_dl_map_object): Call it.
1491         * elf/link.h (_dl_map_object_from_fd): Declare it.
1492
1493 Tue Sep 26 16:50:17 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1494
1495         * locale/libintl.h: Rewritten by Ulrich Drepper for use with GNU
1496         gettext code.
1497
1498         * sysdeps/unix/sysv/linux/sys/param.h: New file.
1499         * sysdeps/unix/sysv/linux/Subdirs: File removed.
1500
1501         * libc-symbols.h (_LIBC): Define to 1, not just empty.
1502
1503         * gmon: New directory of profiling code, incorporated from
1504         4.4BSD-Lite and modified.
1505         * sysdeps/i386/machine-gmon.h: New file.
1506         * sysdeps/stub/machine-gmon.h: New file.
1507         * sysdeps/mach/hurd/profil.c: New file.
1508         * sysdeps/stub/profil.c: New file.
1509         * sysdeps/unix/bsd/profil.S: New file.
1510         * Makefile (subdirs): Add gmon.
1511         * csu/gmon-start.c: New file.
1512         * csu/Makefile (extra-objs): Add gmon-start.o,
1513         g$(start-installed-name).
1514         (install-lib, omit-deps): Add g$(start-installed-name).
1515         ($(objpfx)g$(start-installed-name)): New target.
1516
1517 Fri Sep 22 14:24:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1518
1519         * sysdeps/mach/hurd/Makefile: Elide sunrpc from $(subdirs) for the
1520         time being.
1521
1522 Thu Sep 21 00:03:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1523
1524         * sysdeps/unix/configure.in: Check for `profil' syscall.
1525
1526         * manual/Makefile (infodir, prefix, INSTALL, INSTALL_DATA): Variables
1527         removed.
1528
1529         * time/africa, time/asia, time/europe, time/northamerica,
1530         time/yearistype: New data from ADO 95h.
1531
1532         * Makerules (build-shlib): Use $(@F:lib%.so=%) in place of
1533         $(notdir $*), so it wins for the explicit libc.so rule as well as the
1534         pattern rule.
1535
1536         * sysdeps/stub/sys/sem_buf.h (union semun): New type.
1537
1538         * sysdeps/mach/hurd/i386/init-first.c (init1) [PIC]: Call
1539         __libc_global_ctors.
1540         * sysdeps/i386/init-first.c: Rewritten.
1541         * sysdeps/unix/sysv/linux/i386/init-first.S: File removed.
1542         * sysdeps/unix/sysv/linux/i386/init-first.c: New file.
1543
1544         * sysdeps/unix/sysv/linux/i386/fpu_control.h: Fix name in decl of
1545         ___fpu_control.
1546
1547         * Makerules (build-shlib): New canned sequence, broken out of
1548         lib%.so rule.  Link in $^ instead of just $<.
1549         (lib%.so: lib%_pic.a): Use it.
1550         (libc.so): New target; use $(build-shlib) for cmds, but also depend
1551         on soinit.so first and sofini.so last.
1552
1553         * elf/soinit.c: New file.
1554         * elf/sofini.c: New file.
1555         * elf/Makefile (distribute): Add soinit.c and sofini.c.
1556         (extra-objs): Add soinit.so and sofini.so.
1557
1558         * sysvipc/sys/shm.h (shmat): Fix return type to char *.
1559         * sysdeps/stub/sys/ipc_buf.h (key_t): Type removed.
1560
1561         * misc/syslog.c (vsyslog): Rewritten using open_memstream to
1562         dynamically allocate buffers.
1563
1564         * Makerules (install-lib-nosubdir): Make this, rather than
1565         install-no-libc.a, depend on the installed shared libraries.
1566
1567 Wed Sep 20 18:02:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1568
1569         * locale/locale.c: Include errno.h.
1570         * locale/localedef.c: Likewise.
1571
1572 Tue Sep 19 00:02:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1573
1574         * Makefile (distclean-1): Remove config.cache, config.log, config.h.
1575         (parent-mostlyclean): Remove all flavors of the parent library.
1576
1577         * misc/mntent.c (getmntent): Skip multiple whitespace chars
1578         between fields.
1579
1580         * hurd/hurdstartup.c (_hurd_startup): If RPC returns
1581         EXEC_STACK_ARGS flag, get args from stack.
1582         If args on stack but have info from RPC, relocate args on stack to make
1583         space for struct hurd_startup_data.
1584
1585 Mon Sep 18 15:06:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1586
1587         * elf/dl-object.c: Include errno.h.
1588         * posix/execvp.c: Likewise.
1589         * dirent/scandir.c: Likewise.
1590         * sysdeps/posix/system.c: Likewise.
1591         * sysdeps/generic/setenv.c: Likewise.
1592         * stdlib/msort.c: Likewise.
1593         * stdio/memstream.c: Likewise.
1594         * stdio/fclose.c: Likewise.
1595         * stdio/getdelim.c: Likewise.
1596         * stdio/setvbuf.c: Likewise.
1597         * sysdeps/ieee754/ldexp.c: Likewise.
1598         * locale/locfile-parse.c: Likewise.
1599
1600         * stdlib/lcong48_r.c: Don't check for null argument; let it fault.
1601         * stdlib/seed48_r.c: Likewise.
1602         * stdlib/srand48_r.c: Likewise.
1603         * stdlib/jrand48_r.c: Likewise.
1604         * stdlib/nrand48_r.c: Likewise.
1605
1606         * Makeconfig (+gccwarn): Remove -Wbad-function-cast, which seems
1607         to be useless.
1608
1609 Mon Sep 18 12:39:22 1995  Paul Eggert  <eggert@twinsun.com>
1610
1611         * mktime.c (localtime_r): Add substitute if the system doesn't
1612         provide one.
1613
1614 Mon Sep 18 14:39:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1615
1616         * time/gmtime.c (gmtime_r): Define as weak alias.
1617         * time/localtime.c (localtime_r): Define as weak alias.
1618         * time/time.h [__USE_REENTRANT] (gmtime_r, localtime_r): Declare them.
1619
1620         * errno.h: Only define _ERRNO_H #ifndef __need_Emath.
1621         #undef __need_Emath after including errnos.h.
1622         [_ERRNO_H]: Protect decls with this.
1623
1624 Sun Sep 17 08:22:12 1995  Paul Eggert  <eggert@twinsun.com>
1625
1626         Fix mktime so that it does not write over localtime's returned value.
1627         * localtime.c (__localtime_r): New function, with extra arg
1628         specifying where to store result.
1629         (localtime): Use it.
1630         (_tmbuf): New var.
1631         * gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
1632         * mktime.c (__mktime_internal): Conversion function is now
1633         __localtime_r style, not localtime style.
1634         (mktime): Pass __localtime_r, not localtime.
1635         * timegm.c (timegm): Pass __gmtime_r, not gmtime.
1636         * offtime.c (__offtime): New arg specifying where to store result.
1637         * time.h (__mktime_internal, __offtime): Adjust decls accordingly.
1638         (__gmtime_r, __localtime_r): New decls.
1639
1640         * time/localtime.c: <stddef.h>, <ctype.h>, <stdio.h>,
1641         <stdlib.h>, <string.h>: Remove includes.
1642         <errno.h>: Add include.
1643
1644         * time/mktime.c, time/time.h, time/timegm.c (__mktime_internal):
1645         Renamed from _mktime_internal to avoid namespace pollution.
1646
1647         * time/gmtime.c: Clear tm_isdst.
1648
1649 Mon Sep 18 01:58:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1650
1651         * misc/efgcvt_r.c (ecvt_r, fcvt_r): Last arg is size_t, not int.
1652         * stdlib/stdlib.h (ecvt_r, fcvt_r): Fix type of last arg: make it
1653         size_t.
1654
1655         * sysdeps/mach/hurd/fpathconf.c: Call __io_pathconf instead of
1656         __file_pathconf.
1657         * sysdeps/mach/hurd/pathconf.c: Likewise.
1658
1659         * Makefile (subdirs): Add sysvipc.
1660
1661         * stdlib/srand48_r.c (srand48_r): Use UL suffix for huge constant.
1662         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
1663
1664 Sun Sep 17 18:29:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1665
1666         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Call
1667          __file_set_size instead of __file_truncate.
1668
1669         * features.h (__USE_REENTRANT): New macro.
1670
1671         * sysdeps/mach/hurd/truncate.c: Call __file_set_size instead of
1672         __file_truncate.
1673         * sysdeps/mach/hurd/ftruncate.c: Likewise.
1674
1675         * sysdeps/unix/sysv/linux/dl-machine.h: File removed.
1676
1677 Sat Sep 16 17:47:19 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
1678
1679         * elf/elf.h (AT_GID): Fix typo: Read -> Real.
1680
1681         * misc/efgvt_r.c: New file.  Reentrant version of [efg]cvt functions.
1682         * misc/efgcvt.c: Rewrite to use reentrant functions.
1683         * misc/search.h: Many decls for hsearch functions.
1684         * misc/hsearch_r.c: New file.  Reentrant version of functions from
1685         hsearch family.
1686         * misc/hsearch.c, misc/tsearch.c: New files.
1687         * misc/Makefile (routines): Add efgcvt_r, hsearch_r, hsearch, tsearch.
1688
1689         * posix/unistd.h (ttyname_r): Add prototype for new function.
1690
1691         * stdlib/drand48_r.c, stdlib/erand48_r.c, stdlib/jrand48_r.c,
1692         stdlib/lrand48_r.c, stdlib/mrand48_r.c, stdlib/nrand48_r.c,
1693         stdlib/seed48_r.c, stdlib/srand48_r.c, stdlib/lcong48_r.c,
1694         stdlib/drand48-iter.c: New files implementing reentrant versions
1695         of functions from drand48 family.
1696         * stdlib/seed48.c, stdlib/drand48.c, stdlib/erand48.c,
1697         stdlib/jrand48.c, stdlib/lrand48.c, stdlib/mrand48.c,
1698         stdlib/nrand48.c, stdlib/srand48.c, stdlib/lcong48.c:
1699         Rewrite to use reentrant versions.
1700         * stdlib/a64l.c, stdlib/l64a.c: New files.  Implement a64l()
1701         and l64a() functions from SysV library.
1702         * stdlib/Makefile (routines): Add drand48_r, erand48_r, lrand48_r,
1703         nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r,
1704         drand48-iter, a64l, l64a.
1705         * stdlib/stdlib.h: Declare them.
1706
1707         * stdlib/random_r.c: New file.  Reentrant version of functions
1708         from random family.
1709         * stdlib/stdlib.h: Declare them.
1710         * stdlib/random.c: Rewrite to use reentrant functions.
1711
1712         * string/strerror_r.c: New file.  Reentrant version.
1713         * string/strerror.c: Change for new _strerror_internal form.
1714         * string/Makefile (routines): Add strerror_r.
1715
1716         * sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Set default
1717         value of user_entry to `_start'.
1718         Close AT_ENTRY case with `break'.
1719
1720         * sysdeps/generic/strstr.c: New and much faster implementation
1721         by Stephen R. van den Berg.
1722
1723         * sysdeps/generic/_strerror.c: _strerror_internal now takes
1724         three argument and has and explicit buffer length.
1725         * sysdeps/mach/_strerror.c: Change for new interface with three
1726         arguments.
1727         * stdio/perror.c, stdio/vfprintf.c: Callers changed.
1728
1729         * sysdeps/mach/hurd/ttyname_r.c: New file.  Reentrant version.
1730         * sysdeps/posix/ttyname_r.c: New file.  Reentrant version.
1731         * sysdeps/stub/ttyname_r: New file.  Define as dummy function.
1732
1733         * sysdeps/posix/utimes.c: Include <utime.h> for prototype.
1734         (utimes): First parameter to utime must be file, not path.
1735
1736         * sysdeps/posix/sysconf.c (__sysconf): Test for CLK_TCK in case
1737         _SC_CLK_TCK and return it when available.
1738         Test for STREAM_MAX in case _SC_STREAM_MAX and return it when
1739         available.
1740         Add case for _SC_2_LOCALEDEF which is now available.
1741
1742         * posix/sys/types.h [__USE_SVID] (key_t): New type.
1743         * sysvipc/Makefile, sysvipc/ftok.c, sysvipc/sys/ipc.h,
1744         sysvipc/sys/msg.h, sysvipc/sys/sem.h, sysvipc/sys/shm.h,
1745         sysdeps/stub/sys/msq_buf.h, sysdeps/stub/sys/sem_buf.h,
1746         sysdeps/stub/sys/shm_buf.h, sysdeps/stub/sys/ipc_buf.h,
1747         sysdeps/stub/semctl.c, sysdeps/stub/semget.c, sysdeps/stub/semop.c,
1748         sysdeps/stub/shmat.c, sysdeps/stub/shmctl.c, sysdeps/stub/shmdt.c,
1749         sysdeps/stub/shmget.c, sysdeps/stub/msgctl.c, sysdeps/stub/msgget.c,
1750         sysdeps/stub/msgrcv.c, sysdeps/stub/msgsnd.c: New files.
1751         Add implementation of System V IPC.
1752
1753 Fri Sep 15 21:34:28 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1754
1755         * hurd/hurdsig.c: Include <hurd/crash.h> in place of <hurd/core.h>.
1756         (write_corefile): Call __crash_dump_task instead of __core_dump_task.
1757         Use envariable CRASHSERVER instead of CORESERVER.
1758         * hurd/Makefile (user-interfaces): Replace hurd/core with hurd/crash.
1759
1760 Tue Sep 12 14:30:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1761
1762         * misc/mntent.c: New file.
1763         * misc/mntent.h: New file.
1764         * misc/Makefile (headers): Added mntent.h.
1765         (routines): Added mntent.
1766         * misc/fstab.c: Rewritten using mntent functions.
1767
1768 Mon Sep 11 14:00:14 1995  Roland McGrath  <roland@whiz-bang.gnu.ai.mit.edu>
1769
1770         * posix/glob.c (glob): Comment fix.
1771
1772 Fri Sep  8 16:25:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1773
1774         * libc-symbols.h [HAVE_ELF] (symbol_set_declare): Declare the
1775         symbols weak.
1776
1777         * conf/portability.h (NEED_INETADDR, NEED_INETATON): Define to 1,
1778         not empty.
1779
1780 Fri Sep  8 16:32:12 1995  Ulrich Drepper  <drepper@gnu.ai.mit.edu>
1781
1782         * sysdeps/unix/sysv/linux/Implies,
1783         sysdeps/unix/sysv/linux/Makefile, sysdeps/unix/sysv/linux/Subdirs,
1784         sysdeps/unix/sysv/linux/accept.S, sysdeps/unix/sysv/linux/adjtime.c,
1785         sysdeps/unix/sysv/linux/adjtimex.S, sysdeps/unix/sysv/linux/bind.S,
1786         sysdeps/unix/sysv/linux/connect.S, sysdeps/unix/sysv/linux/direct.h,
1787         sysdeps/unix/sysv/linux/dl-machine.h, sysdeps/unix/sysv/linux/errnos.h,
1788         sysdeps/unix/sysv/linux/fork.S, sysdeps/unix/sysv/linux/gethostid.c,
1789         sysdeps/unix/sysv/linux/gethostname.C,
1790         sysdeps/unix/sysv/linux/getpeername.S,
1791         sysdeps/unix/sysv/linux/getpgid.S, sysdeps/unix/sysv/linux/getpgrp.S,
1792         sysdeps/unix/sysv/linux/getsockname.S,
1793         sysdeps/unix/sysv/linux/getsockopt.S, sysdeps/unix/sysv/linux/gtty.S,
1794         sysdeps/unix/sysv/linux/listen.S, sysdeps/unix/sysv/linux/local_lim.h,
1795         sysdeps/unix/sysv/linux/madvise.c, sysdeps/unix/sysv/linux/msgctl.c,
1796         sysdeps/unix/sysv/linux/msgget.c, sysdeps/unix/sysv/linux/msgrcv.c,
1797         sysdeps/unix/sysv/linux/msgsnd.c, sysdeps/unix/sysv/linux/pipe.S,
1798         sysdeps/unix/sysv/linux/poll.c, sysdeps/unix/sysv/linux/readv.c,
1799         sysdeps/unix/sysv/linux/recv.S, sysdeps/unix/sysv/linux/recvfrom.S,
1800         sysdeps/unix/sysv/linux/recvmsg.S, sysdeps/unix/sysv/linux/semctl.c,
1801         sysdeps/unix/sysv/linux/semget.c, sysdeps/unix/sysv/linux/semop.c,
1802         sysdeps/unix/sysv/linux/send.S, sysdeps/unix/sysv/linux/sendmsg.S,
1803         sysdeps/unix/sysv/linux/sendto.S, sysdeps/unix/sysv/linux/setegid.c,
1804         sysdeps/unix/sysv/linux/seteuid.c, sysdeps/unix/sysv/linux/sethostid.c,
1805         sysdeps/unix/sysv/linux/setpgid.c, sysdeps/unix/sysv/linux/setpgrp.c,
1806         sysdeps/unix/sysv/linux/setsid.S, sysdeps/unix/sysv/linux/setsockopt.S,
1807         sysdeps/unix/sysv/linux/settimeofday.S,
1808         sysdeps/unix/sysv/linux/shmat.c, sysdeps/unix/sysv/linux/shmctl.c,
1809         sysdeps/unix/sysv/linux/shmdt.c, sysdeps/unix/sysv/linux/shmget.c,
1810         sysdeps/unix/sysv/linux/shutdown.S,
1811         sysdeps/unix/sysv/linux/sigaction.S, sysdeps/unix/sysv/linux/signal.S,
1812         sysdeps/unix/sysv/linux/sigpending.S, sysdeps/unix/sysv/linux/sigset.h,
1813         sysdeps/unix/sysv/linux/sockaddrcom.h,
1814         sysdeps/unix/sysv/linux/socketpair.S, sysdeps/unix/sysv/linux/speed.c,
1815         sysdeps/unix/sysv/linux/statbuf.h, sysdeps/unix/sysv/linux/stty.S,
1816         sysdeps/unix/sysv/linux/syscall.h, sysdeps/unix/sysv/linux/sysconf.c,
1817         sysdeps/unix/sysv/linux/tcdrain.c, sysdeps/unix/sysv/linux/tcflow.c,
1818         sysdeps/unix/sysv/linux/tcflush.c, sysdeps/unix/sysv/linux/tcgetattr.c,
1819         sysdeps/unix/sysv/linux/tcsetattr.c,
1820         sysdeps/unix/sysv/linux/termbits.h, sysdeps/unix/sysv/linux/ualarm.c,
1821         sysdeps/unix/sysv/linux/ulimit.c, sysdeps/unix/sysv/linux/usleep.c,
1822         sysdeps/unix/sysv/linux/utsnamelen.h, sysdeps/unix/sysv/linux/vfork.c,
1823         sysdeps/unix/sysv/linux/wait.c, sysdeps/unix/sysv/linux/wait4.S,
1824         sysdeps/unix/sysv/linux/waitpid.c, sysdeps/unix/sysv/linux/writev.c:
1825         New Linux/ELF specific, architecture independent files.
1826         * sysdeps/unix/sysv/linux/i386/Dist,
1827         sysdeps/unix/sysv/linux/i386/Makefile,
1828         sysdeps/unix/sysv/linux/i386/brk.S,
1829         sysdeps/unix/sysv/linux/i386/fcntlbits.h,
1830         sysdeps/unix/sysv/linux/i386/fpu_control.c,
1831         sysdeps/unix/sysv/linux/i386/fpu_control.h,
1832         sysdeps/unix/sysv/linux/i386/fstat.S,
1833         sysdeps/unix/sysv/linux/i386/fxstat.S,
1834         sysdeps/unix/sysv/linux/i386/ieee_fpu.c,
1835         sysdeps/unix/sysv/linux/i386/init-first.S,
1836         sysdeps/unix/sysv/linux/i386/ipc.S,
1837         sysdeps/unix/sysv/linux/i386/lstat.S,
1838         sysdeps/unix/sysv/linux/i386/lxstat.S,
1839         sysdeps/unix/sysv/linux/i386/mknod.S,
1840         sysdeps/unix/sysv/linux/i386/mmap.S,
1841         sysdeps/unix/sysv/linux/i386/sbrk.S,
1842         sysdeps/unix/sysv/linux/i386/setfpucw.c,
1843         sysdeps/unix/sysv/linux/i386/signum.h,
1844         sysdeps/unix/sysv/linux/i386/socket.S,
1845         sysdeps/unix/sysv/linux/i386/stat.S,
1846         sysdeps/unix/sysv/linux/i386/syscall.S,
1847         sysdeps/unix/sysv/linux/i386/sysdep.S,
1848         sysdeps/unix/sysv/linux/i386/sysdep.h,
1849         sysdeps/unix/sysv/linux/i386/xmknod.S,
1850         sysdeps/unix/sysv/linux/i386/xstat.S:
1851         New Linux i386/ELF specific files.
1852         * sysdeps/unix/sysv/linux/sys/ipc_buf.h,
1853         sysdeps/unix/sysv/linux/sys/mman.h,
1854         sysdeps/unix/sysv/linux/sys/msq_buf.h,
1855         sysdeps/unix/sysv/linux/sys/sem_buf.h,
1856         sysdeps/unix/sysv/linux/sys/shm_buf.h,
1857         sysdeps/unix/sysv/linux/sys/socketcall.h,
1858         sysdeps/unix/sysv/linux/sys/timex.h:
1859         New Linux/ELF specific, architecture independent header files.
1860         * sysdeps/unix/sysv/sysv4/linux: Tree removed.
1861
1862 Thu Sep  7 17:05:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1863
1864         * stdlib/msort.c (msort_with_tmp): Fixed alignment test.  B1 and
1865         B2 are always congruent; just test that B1 is aligned.
1866
1867 Wed Sep  6 19:41:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1868
1869         * elf/dl-lookup.c (_dl_lookup_symbol): Test WEAK_VALUE.s rather
1870         than WEAK_VALUE.a to see if a weak value has been set.  A valid
1871         weak value may set WEAK_VALUE.a to 0.
1872
1873 Fri Sep  1 16:16:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1874
1875         * sysdeps/mach/hurd/i386/longjmp-ts.c: Use new array format for
1876         jmp_buf.
1877
1878         * libc-symbols.h (link_warning): Take new first arg SYMBOL; ask
1879         for a warning on references to that specific symbol, not the
1880         entire containing object file.
1881         (stub_warning): Pass symbol name to link_warning.
1882         * stdio/gets.c: Pass function name in link_warning invocation.
1883
1884         * hurd/intr-msg.c: Treat apparent EINTR return from msg trap like
1885         MACH_SEND_INTERRUPTED.  That indicates interrupt_operation was
1886         sent, but failed.
1887
1888         * stdlib/msort.c: Include memcopy.h.
1889         (msort_with_tmp): If operating on aligned op_t words, use direct word
1890         fetches and stores.
1891
1892         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC): Add
1893         missing backslash.
1894
1895 Thu Aug 31 13:23:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1896
1897         * sysdeps/unix/i386/brk.S [PIC]: Set __curbrk through the GOT.
1898
1899         Rewrote i386 setjmp code in assembly, so as to avoid fighting
1900         with the compiler for the register values.
1901         * sysdeps/i386/setjmp.S, sysdeps/i386/__longjmp.S: New files.
1902         * sysdeps/i386/setjmp.c, sysdeps/i386/__longjmp.c: Files removed.
1903         * sysdeps/i386/jmp_buf.h [! _ASM] (__jmp_buf): Define as array of ints.
1904         [__USE_MISC || _ASM] (JB_*): New macros, for indices therein.
1905         (_JMPBUF_UNWINDS): Use JB_SP.
1906
1907 Wed Aug 30 16:44:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1908
1909         * sysdeps/mach/hurd/select.c: Deal with out of order replies
1910         during io_select request loop.
1911         Handle MACH_RCV_TIMED_OUT error from requests.
1912         * hurd/intr-msg.c: If the user passed the MACH_RCV_TIMEOUT option,
1913         distinguish MACH_RCV_TIMED_OUT from EINTR.
1914
1915         * posix/glob.c (glob): Use realloc to extend strings for GLOB_MARK
1916         slash.
1917         (glob_in_dir): Don't allocate extra byte here.
1918
1919         * sysdeps/i386/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1920         Decrement the DT_RELSZ value for the skipped reloc.
1921
1922 Tue Aug 29 12:35:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1923
1924         * time/australasia: Updated data from ADO.
1925
1926 Mon Aug 28 17:47:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1927
1928         * dirent/dirent.h: Don't include <dirstream.h>.
1929         Instead, define DIR as typedef for (undefined) `struct __dirstream'.
1930
1931 Fri Aug 25 12:12:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1932
1933         * sysdeps/mach/hurd/dirstream.h: Define `struct __dirstream'
1934         instead of `DIR'.
1935         * sysdeps/unix/bsd/dirstream.h: Likewise.
1936         * sysdeps/stub/dirstream.h: Likewise.
1937         * sysdeps/unix/dirstream.h: Likewise.
1938         * sysdeps/mach/hurd/telldir.c: Include "dirstream.h".
1939         * sysdeps/mach/hurd/seekdir.c: Likewise.
1940         * sysdeps/mach/hurd/opendir.c: Likewise.
1941         * sysdeps/mach/hurd/closedir.c: Likewise.
1942         * sysdeps/mach/hurd/readdir.c: Likewise.
1943         * sysdeps/unix/telldir.c: Likewise.
1944         * sysdeps/unix/seekdir.c: Likewise.
1945         * sysdeps/unix/rewinddir.c: Likewise.
1946         * sysdeps/unix/readdir.c: Likewise.
1947         * sysdeps/unix/opendir.c: Likewise.
1948         * sysdeps/unix/closedir.c: Likewise.
1949         * sysdeps/unix/bsd/telldir.c: Likewise.
1950         * sysdeps/unix/bsd/readdir.c: Likewise.
1951         * dirent/Makefile (headers): Remove dirstream.h.
1952         (distribute): Put it here instead.
1953
1954         * sysdeps/mach/hurd/mmap.c: Fix inverted test of MAP_FIXED.
1955
1956         * stdio/vfscanf.c (number): Allow field width to inhibit first
1957         digit after base detection.
1958
1959         * stdio/vfprintf.c (vfprintf: %s): Never search past the limit
1960         specified by the precision.
1961
1962         * grp/grpread.c (__grpscan): New function.
1963         * grp/grp.h (__grpscan): Declare it.
1964         * grp/getgrgid.c: Use __grpscan.
1965         * grp/getgrnam.c: Likewise.
1966         * pwd/pwdread.c (__pwdscan): New function.
1967         * pwd/pwd.h (__pwdscan): Declare it.
1968         * pwd/getpwnam.c: Use __pwdscan.
1969         * pwd/getpwuid.c: Likewise.
1970
1971 Thu Aug 24 16:29:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1972
1973         * sysdeps/mach/hurd/mmap.c: Treat (FLAGS & MAP_TYPE) == 0 like
1974         MAP_FILE.
1975
1976         * hurd/thread-cancel.c: Return EINTR when called on self.
1977         * sysdeps/i386/elf/start.S (data_start): Define as weak alias for
1978         __data_start.
1979
1980 Tue Aug 22 16:49:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1981
1982         * inet/netdb.h: Moved to resolv.
1983         * inet/Makefile (headers): Remove netdb.h.
1984         * resolv/Makefile (headers): Add netdb.h.
1985         * resolv/gethnamaddr.c, resolv/inet_addr.c, resolv/netdb.h,
1986         resolv/res_send.c: Updated from BIND-4.9.3-BETA26.
1987
1988         * hurd/thread-cancel.c: If SS->cancel_hook is not null, call it before
1989         resuming the thread.
1990         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel_hook'.
1991
1992         * hurd/Makefile: Removed dep on hurd/signal.h for RPC stub objects.
1993
1994 Mon Aug 21 16:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1995
1996         * sysdeps/i386/dl-machine.h (elf_machine_rel): Grok R_386_NONE
1997         relocs, and do nothing.  Why the linker generates them we may
1998         never know.
1999
2000 Thu Aug 17 16:18:38 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2001
2002         * sysdeps/mach/hurd/Makefile: Don't elide sunrpc and manual from
2003         `subdirs' variable.
2004
2005         * sysdeps/mach/hurd/i386/intr-msg.h: New file.
2006         * hurd/intr-msg.c: Use INTR_MSG_TRAP macro from machine-dependent
2007         "intr-msg.h" for special syscall code, instead of i386-specific asm.
2008         * hurd/hurdsig.c: Use INTR_MSG_BACK_OUT macro from
2009         machine-dependent "intr-msg.h" before mutating thread state to
2010         skip RPC.
2011
2012         * sysdeps/mach/hurd/i386/trampoline.c: If PC is inside
2013         _hurd_intr_rpc_mach_msg special syscall code, use real SP saved in
2014         %ecx.
2015
2016         * Makeconfig (link-libc): New variable; use shared library if
2017         available.
2018         (+link): Use it.
2019
2020         * sysdeps/mach/hurd/fork.c (_hurd_fork_locks): Variable removed.
2021         Instead, declare with `symbol_set_declare'.
2022         (fork): Use symbol_set_* macros for _hurd_fork_locks.
2023         Use SS->thread instead of __mach_thread_self ().  Suspend all
2024         other threads during task_create and port copying.
2025
2026 Wed Aug 16 17:04:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2027
2028         * hurd/intr-msg.c: Fixed calculation of syscall %esp.
2029
2030 Tue Aug 15 12:26:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2031
2032         * hurd/hurdsig.c (_hurdsig_abort_rpcs): Remove `static'.
2033
2034         * hurd/Makefile (sig): Add intr-msg.
2035
2036 Mon Aug 14 16:51:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2037
2038         * hurd/thread-cancel.c: New file.
2039         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): In
2040         rpc_wait case, frob mach_msg args to set timeout on receive.
2041         (_hurdsig_rcv_interrupted_p): Function removed.
2042         * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
2043         * sysdeps/mach/hurd/hppa/trampoline.c: Likewise.
2044         * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
2045         * hurd/intr-msg.c: New file.
2046         * hurd/hurd/signal.h (struct hurd_sigstate): New member `cancel'.
2047         (_hurdsig_rcv_interrupted_p): Declaration removed.
2048         (HURD_EINTR_RPC): Macro removed.
2049         (_hurd_longjmp_thread_state, _hurd_interrupted_rpc_timeout): Declare
2050         these.
2051         * hurd/intr-rpc.h: New file.
2052         * hurd/intr-rpc.defs: Just import intr-rpc.h.
2053         * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): New variable.
2054         (interrupted_reply_port_location): Take new flag arg; only catch
2055         faults if it's set.
2056         (abort_rpcs): Rename to _hurdsig_abort_rpcs; take same new flag arg.
2057         No longer use _hurdsig_rcv_interrupted_p; instead compare PC to
2058         &_hurd_intr_rpc_msg_in_trap.  If before it, mutate state to simulate
2059         MACH_SEND_INTERRUPTED return; on it, interrupt the operation.  All
2060         callers changed.
2061         * hurd/hurd.h (hurd_thread_cancel, hurd_check_cancel): Declare these.
2062         * hurd/Makefile (distribute): Remove intr-rpc.awk.
2063         (sig): Add thread-cancel.
2064         (transform-user-stub, transform-user-stub-output): Variables removed.
2065         * sysdeps/mach/hurd/dl-sysdep.c: Change all RPCs from
2066         `__hurd_intr_rpc_*' to `__*'.
2067         (_hurd_intr_rpc_mach_msg): New function.
2068         (_hurd_thread_sigstate): Function removed.
2069         * sysdeps/mach/hurd/ioctl.c: Use _hurd_intr_rpc_mach_msg function,
2070         instead of __mach_msg inside HURD_EINTR_RPC macro.
2071
2072         * sysdeps/generic/morecore.c [__GNU_LIBRARY__]: Declare `__sbrk'
2073         to take ptrdiff_t arg.
2074
2075         * sysdeps/mach/hurd/fork.c: Remove _hurd_longjmp_thread_state decl.
2076
2077         * sysdeps/mach/hurd/kill.c (kill_pid): Don't make `inline'.
2078
2079         * libc-symbols.h [GCC >= 2.7] (strong_alias, weak_symbol,
2080         weak_alias): Use `extern' storage class.
2081
2082 Wed Aug  9 14:25:35 1995  Miles Bader  <miles@geech.gnu.ai.mit.edu>
2083
2084         * sysdeps/mach/hurd/setuid.c (__setuid): Switch the port-type and
2085         port-count parameters to __auth_makeauth.
2086         * sysdeps/mach/hurd/setgid.c (__setgid): Ditto.
2087
2088 Tue Aug  8 12:22:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2089
2090         * hurd/sigunwind.c: Remove _hurd_longjmp_thread_state decl.
2091
2092         * inet/netinet/tcp.h: New file, incorporated from 4.4BSD-Lite.
2093
2094 Tue Aug  8 12:06:04 1995  Michael I. Bushnell, p/BSG  <mib@duality.gnu.ai.mit.edu>
2095
2096         * inet/netinet/in.h (IP_MULTICAST_TTL, IP_MULTICAST_LOOP,
2097         IP_MULTICAST_IP, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP): New IP
2098         layer socket options.
2099         (IPPROTO_GGP): Delete obsolote protocol.
2100         (IPPROTO_IGMP): Add new protocol (with same value [2] as old GGP).
2101         (struct ip_mreq): New type.
2102
2103 Mon Aug  7 14:04:36 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2104
2105         * stdlib/strtol.c: Use #ifdef, not #if, for HAVE_LIMITS_H.
2106
2107         * posix/glob.c (glob_in_dir): Allocate GLOB_MARK byte in case when
2108         (NFOUND == 0 && (FLAGS & GLOB_NOCHECK)).
2109
2110         * sysdeps/generic/sysd-stdio.c (__stdio_reopen): Return failure
2111         when __stdio_open fails with a code other than ENFILE or EMFILE.
2112
2113 Fri Aug  4 16:01:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2114
2115         * Makefile (headers): Added gnu-versions.h.
2116
2117 Thu Aug  3 14:41:11 1995  Michael I. Bushnell  <mib@duality.gnu.ai.mit.edu>
2118
2119         * inet/netinet/in.h (IN_CLASSD, IN_EXPERIMENTAL, IN_BADCLASS): Use
2120         equality, not assignment, to test bitfields.
2121
2122 Sat Jul 29 10:41:06 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
2123
2124         * sysdeps/mach/hurd/sendto.c (sendto): Use the ifsock protocol to
2125         resolve AF_LOCAL addresses.
2126
2127         * sysdeps/mach/hurd/accept.c (accept): If the protocol family
2128         can't tell us what an address means, just return a zero-length
2129         buffer instead.
2130         * sysdeps/mach/hurd/recvfrom.c (recvfrom): Ditto.
2131
2132 Fri Jul 28 15:29:11 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
2133
2134         * sysdeps/mach/hurd/bind.c (bind): Don't use
2135         file_invoke_translator, as it doesn't work.  Instead just lookup
2136         the translated node again, and hope we're not hit by any race
2137         conditions.
2138
2139 Wed Jul 26 02:00:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2140
2141         * csu/Makefile [$(elf)=yes] (have-initfini): Set to yes.
2142         [$(have-initfini)=yes]: Test this rather than $(elf) for crtstuff.
2143         [start-installed-name-rule]: If this is defined, elide rule for
2144         $(objpfx)$(start-installed-name).
2145         * csu/initfini.c (SECTION): New macro, different definitions for
2146         #ifdef HAVE_ELF and not.
2147         (_init, _fini): Use that macro.
2148         * sysdeps/unix/sysv/sco3.2.4/Makefile [$(subdir)=csu]
2149         (start-installed-rule, start-installed-name-rule): New variables;
2150         specify crt1.o, created by our own rule.
2151         ($(objpfx)crt1.o): New rule.
2152         * configure.in: Require autoconf 2.4.2 or later.  Change all
2153         AC_CACHE_VAL uses to use new AC_CACHE_CHECK macro instead;
2154         prettify some messages.
2155         [$elf!=yes] (libc_cv_have_initfini): New test for `.init' and `.fini'
2156         sections.
2157         * munch-tmpl.c [HAVE_INITFINI]: Call _init and atexit (_fini) in
2158         this case rather than #ifdef HAVE_ELF.
2159         * config.h.in (HAVE_INITFINI): New macro.
2160         * config.make.in (have-initfini): New variable, set by configure.
2161
2162         * stdio/vfscanf.c (conv_error): Simplify expression to avoid
2163         "value computed is not used" warning.
2164
2165         * Makeconfig (+gccwarn): Removed -Wconversion.
2166
2167         * csu/initfini.c (GLOBAL): Macro removed.
2168         (_init, _fini): Always define globally.
2169         * csu/Makefile (crtstuff, initfini): Don't make crt[in]_s.o.
2170
2171         * asia, backward, europe, leapseconds, southamerica: New data from
2172         ADO's 95e.
2173
2174         * inet/Makefile (routines): Removed inet_addr.
2175         * inet/inet_addr.c: Moved to resolv/ subdirectory.
2176         * resolv/Makefile (routines): Added inet_addr.
2177         * resolv/inet_addr.c: Incorporated from BIND 4.9.3-BETA24 release.
2178         * resolv/gethnamaddr.c: Likewise.
2179         * resolv/getnetbyaddr.c: Likewise.
2180         * resolv/getnetbyname.c: Likewise.
2181         * resolv/getnetent.c: Likewise.
2182         * resolv/getnetnamadr.c: Likewise.
2183         * resolv/herror.c: Likewise.
2184         * resolv/nsap_addr.c: Likewise.
2185         * resolv/res_comp.c: Likewise.
2186         * resolv/res_debug.c: Likewise.
2187         * resolv/res_init.c: Likewise.
2188         * resolv/res_mkquery.c: Likewise.
2189         * resolv/res_query.c: Likewise.
2190         * resolv/res_send.c: Likewise.
2191         * resolv/resolv.h: Likewise.
2192         * resolv/sethostent.c: Likewise.
2193         * resolv/arpa/nameser.h: Likewise.
2194         * inet/netdb.h: Incorporated from BIND 4.9.3-BETA24 release.
2195         [__GNU_LIBRARY__]: Include <rpc/netdb.h> instead of repeating
2196         its declarations (and doing so only #ifdef sun!).
2197         * conf/portability.h (NEED_INETADDR, NEED_INETATON): New macros.
2198
2199         * posix/sys/types.h [__USE_BSD] (__BIT_TYPES_DEFINED__): New macro.
2200         [__USE_BSD] [__GNUC__] (int64_t, u_int64_t, register_t): New typedefs.
2201
2202         * malloc/memalign.c: Allocate (SIZE + ALIGNMENT - 1) and then trim
2203         if possible.
2204
2205         * mach/shortcut.awk: Emit decls for RPC.
2206
2207         * libc-symbols.h [GCC >= 2.7 && !ASSEMBLER] (weak_symbol,
2208         weak_alias, strong_alias): Define using GCC __attribute__ syntax.
2209
2210         * Makerules ($(installed-libcs)): Depend on `lib' (only).
2211
2212 Tue Jul 25 09:14:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2213
2214         * sysdeps/mach/hurd/pathconf.c: Declare VALUE as int, not long int.
2215
2216         * stdlib/strtol.c [_LIBC]: Define STDC_HEADERS.
2217
2218         * sysdeps/unix/sysv/ftime.S: New file.
2219
2220         * locale/locfile-parse.c (categories_write): Cast "" to char *.
2221
2222         * io/fcntl.h [__OPTIMIZE__] (creat): Macro removed.
2223
2224         * time/strftime.c: Use year modulo 100 for %y.
2225
2226         * time/sys/timeb.h: Add __BEGIN_DECLS and __END_DECLS.
2227
2228         * sysdeps/unix/snarf-ioctls (snarfexclude): Use two sed's instead
2229         of one, to work around bug in sunos4.1.2 sed.
2230
2231         * stdio/vfprintf.c (vfprintf): For %s with precision spec, use
2232         memchr instead of strlen to limit search for NUL by precision.
2233
2234 Mon Jul 24 03:13:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2235
2236         * sysdeps/posix/pathconf.c: New file.
2237
2238 Sat Jul 22 20:53:18 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2239
2240         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): Use ## to avoid space
2241         before @PLT.
2242         * sysdeps/mach/i386/sysdep.h (JUMPTARGET): New macro.
2243         * sysdeps/i386/bsd-_setjmp.S: Use JUMPTARGET macro in jmp insn.
2244         * sysdeps/i386/bsd-setjmp.S: Likewise.
2245
2246 Sat Jul 22 19:58:54 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
2247
2248         * inet/Makefile (routines): Added `ruserpass'.
2249         * inet/ruserpass.c: New file, from BSD Net-2 sources for the FTP
2250         client.  Modified to remove the fourth arg AACCT.  Do nothing for
2251         the `account' and `macdef' keywords.  Other incidental changes
2252         because we are not in the FTP source tree.
2253
2254 Sat Jul 22 01:56:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2255
2256         * sysdeps/stub/init-posix.c: Removed stub warning.
2257
2258         * Makefile (autoconf-it): Make it executable and unwritable.
2259
2260         * configure.in (sysnames): Under --enable-debug-configure, spew
2261         potential sysnames.
2262
2263         * sysdeps/unix/i386/sysdep.h (JUMPTARGET): New macro; use name@PLT
2264         #ifdef PIC.
2265         (PSEUDO): Use JUMPTARGET(syscall_error) in jump insn.
2266         * sysdeps/unix/i386/syscall.S: Use JUMPTARGET(syscall_error) in
2267         jump insn.
2268
2269         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.h: Rewritten.
2270         * sysdeps/unix/sysv/sysv4/linux/i386/syscall.S: New file.
2271         * sysdeps/unix/sysv/sysv4/linux/i386/socket.S: Include
2272         <sys/socketcall.h>.  Save %ebx in call-clobbered %edx instead of
2273         stack.  Use JUMPTARGET(syscall_error) in jump insn.
2274
2275         * Makeconfig (+gccwarn): Add -Wbad-function-cast -Wconversion.
2276
2277         * sysdeps/unix/i386/sysdep.h (ENTRY): Use ASM_GLOBAL_DIRECTIVE and
2278         ASM_TYPE_DIRECTIVE.
2279         (ASM_TYPE_DIRECTIVE): New macro; defined using `.type' #ifdef ELF.
2280
2281         * sysdeps/unix/sysv/sysv4/linux/i386/sysdep.S (__syscall_error):
2282         Rewritten, #include'ing unix/i386/sysdep.S for most of the code.
2283         * sysdeps/unix/i386/sysdep.S [PIC]: Store into `errno' through the GOT.
2284
2285         * configure.in (os=linux*): Use unix/sysv/sysv4 for $base_os,
2286         instead of unix/sysv.
2287         * sysdeps/unix/sysv/linux/{accept,connect,getsockname,rename,
2288         socketpair,waitpid,bind,getpeername,listen,setsid,wait4}.S: Moved
2289         to new directory sysdeps/unix/sysv/sysv4/linux.
2290         * sysdeps/unix/sysv/linux: Directory removed.
2291         * sysdeps/unix/sysv/i386/linux/{socket.S,sysdep.h,sysdep.S}: Moved
2292         to new directory sysdeps/unix/sysv/sysv4/linux/i386.
2293         * sysdeps/unix/sysv/linux/i386: Directory removed.
2294
2295         Fixes to help Linux, inspired by drepper's work:
2296         * sysdeps/posix/utimes.c: New file.
2297         * sysdeps/generic/getdomain.c: New file.
2298         * sysdeps/i386/init-first.c: Removed gratuitous #include <hurd.h>.
2299         * sysdeps/generic/dl-sysdep.c: Include <unistd.h> and declare
2300         externals _dl_argc, _dl_argc, and _environ.
2301
2302 Fri Jul 21 12:57:29 1995  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
2303
2304         * sysdeps/mach/hurd/socket.c (socket): Consider MIG_BAD_ID and
2305         EOPNOTSUPP as indications that the server has died.
2306         * sysdeps/mach/hurd/pipe.c (__pipe): Likewise.
2307         * sysdeps/mach/hurd/socketpair.c (socketpair): Likewise.
2308
2309 Mon Jul 17 08:45:40 1995  Jim Meyering  (meyering@comco.com)
2310
2311         * strtol.c: Portability changes from Uli Drepper.
2312         [!STDC_HEADERS && !defined(NULL)]: Define NULL.
2313
2314 Mon Jul 10 05:39:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2315
2316         * sysdeps/mach/hurd/i386/init-first.c (init): Take just one arg,
2317         DATA for the entry SP; DATA[-1] is always the return address
2318         location.  In both cthreads and non-cthreads cases, use asm to
2319         force parameters into %eax and %ecx before return, and mutate
2320         DATA[-1] to return to specific asm code to set up the user from
2321         %eax and %ecx.
2322         [PIC] (_init): Caller changed.
2323         (__libc_init_first) [! PIC] (doinit): Use asm to effect call to init
2324         with SP unwound to argument data ptr.
2325
2326 Thu Jul  6 14:28:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2327
2328         * sysdeps/mach/hurd/dl-sysdep.c (fmh): Fixed this kludge to work
2329         when 0x08000000 and up are not mapped.
2330
2331         * Makerules (stamp$o-$(subdir) rule): Remove the timestamp file
2332         before touching it.
2333         (lib%.so): Use -Wl to get -soname to ld.
2334
2335         * elf/dlsym.c: Pass final arg to _dl_lookup_symbol.
2336
2337         * elf/Makefile (libdl.so): Pass $(LDFLAGS.so).
2338
2339 Tue Jun 20 02:18:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2340
2341         * Makerules (lib%.so: lib%_pic.a): Pass -soname switch giving the
2342         library's name including $(libprefix) and major version number.
2343
2344         * locale/locale-ctype.c (allocate_arrays): Use xmalloc and bzero
2345         in place of xcalloc.
2346
2347         * Makeconfig (prefix, exec_prefix, libprefix): Instead of
2348         `ifndef', use the $(origin) function to only set these if they are
2349         undefined, and not if they are defined to empty.
2350
2351         * gnu-versions.h: New file.
2352         * features.h (__GNU_LIBRARY__): Increase value to 5.
2353
2354 Wed Jun 14 03:45:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2355
2356         * stdio/stdio.h (__validfp): Use ({...}) rather than a comma
2357         expression, to avoid gcc's "value computed is not used" warning.
2358
2359         * libc-symbols.h (_elf_set_element): Give the set-element variable
2360         an `unused' attribute.
2361
2362         * hurd/hurd/threadvar.h (__hurd_threadvar_location): Declare with
2363         __attribute__ ((__const__)).
2364         * hurd/hurd/signal.h (_hurd_self_sigstate): Likewise.
2365
2366         * hurd/hurd/userlink.h (_hurd_userlink_link): Properly set
2367         LINK->resource.next->resource.prevp when appropriate, not
2368         LINK->resource.next->thread.prevp!!!
2369
2370 Tue Jun 13 15:45:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2371
2372         * configure.in (libc_cv_asm_set_directive): Make sure that the
2373         `.set' directive really worked by linking against a reference to
2374         the alias.
2375
2376         * sysdeps/stub/init-first.c: Don't include <hurd.h>.
2377         [PIC] (soinit): Renamed to (global) _init.
2378
2379 Mon Jun 12 13:15:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2380
2381         * malloc/Makefile (gmalloc-routines): Remove valloc.
2382         (dist-routines): Add it here.
2383
2384         * malloc/malloc.h [_MALLOC_INTERNAL] [emacs] (valloc): #define to
2385         emacs_loser_valloc to inhibit valloc declaration below.
2386
2387         * Makerules (lib%.so: lib%_pic.a): Moved this rule to after
2388         installation rules.
2389
2390         * sysdeps/mach/sysdep.h [HAVE_ELF] (ENTRY): Redefine this macro so
2391         it uses the `.type' directive, which is necessary for shared
2392         libraries to work properly.
2393
2394 Thu Jun  8 02:50:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2395
2396         * elf/dl-load.c (_dl_map_object): Add MAP_INHERIT flag in mmap
2397         from zero fill.
2398
2399         * elf/dl-lookup.c (_dl_lookup_symbol): Take new flag arg NOSELF;
2400         if nonzero, don't let *REF satisfy the reference itself.
2401         * elf/link.h (_dl_lookup_symbol): Add new arg NOSELF in decl.
2402         * sysdeps/i386/dl-runtime.c (_dl_runtime_resolve): Pass new arg to
2403         _dl_lookup_symbol.
2404         * elf/do-rel.h (elf_dynamic_do_rel): Pass new second arg of
2405         R->r_offset to RESOLVE callback.
2406         * elf/dl-reloc.c (_dl_relocate_object: resolve): Don't let *REF
2407         satisfy the reference itself if its value equals the reloc's
2408         offset.
2409
2410         * elf/rtld.c (dl_main): Write a newline in fatal msg.
2411
2412         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS.so).
2413
2414         * elf/rtld.c [! NDEBUG] (__assert_perror_fail): New function.
2415
2416         * hurd/hurdstartup.c (_hurd_startup): Fancier kludge to guess phdr
2417         and user entry point addresses.
2418
2419         * elf/dl-load.c (open_path): Don't do strlen on DIRPATH if it's null.
2420         (_dl_map_object): DT_RPATH value is relative to DT_STRTAB value.
2421
2422         * Makerules (install-lib.so): Don't include libc.so.
2423         [$(build-shared)=yes] (install): Depend on the installed libc.so file.
2424         [$(build-shared)=yes] (install-no-libc.a): Make this, rather than
2425         install, depend on the installed $(install-lib.so) files.
2426         [$(build-shared)=yes] (install-lib.so): Append libc.so after that rule.
2427
2428         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Add kludge to
2429         allocate high addresses to avoid random mappings appearing there.
2430         (mmap): Comment out mask; always pass zero.
2431
2432 Tue Jun  6 13:34:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2433
2434         * sysdeps/i386/dl-machine.h (ELF_MACHINE_USER_ADDRESS_MASK): New macro.
2435         * sysdeps/mach/hurd/dl-sysdep.c (mmap): Use it as mask in vm_map call.
2436
2437         * elf/dl-error.c (_dl_catch_error): Clear *ERRSTRING and *OBJNAME
2438         when successful.
2439
2440         * sysdeps/mach/hurd/dl-sysdep.c (threadvars): New static variable.
2441         (__hurd_threadvar_max, __hurd_threadvar_stack_offset): Define these
2442         variables, using the `threadvars' buffer.
2443
2444         * elf/dl-reloc.c: Don't dereference L->l_prev when it's null.
2445         * sysdeps/i386/dl-runtime.c: Likewise.
2446
2447         * elf/rtld.c (dl_main): Add missing NULL terminating argument in
2448         _dl_sysdep_fatal call.
2449         (__assert_fail): Likewise.
2450
2451         * locale/Makefile (localedef-modules): Renamed ctype to
2452         locale-ctype so as not to conflict with the object file for
2453         ctype/ctype.c in the build directory.
2454
2455 Mon Jun  5 04:02:26 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2456
2457         * elf/elf.h (ELFMAG): Use \177 instead of \x7f.  It seems GCC
2458         insists on seeing the following E as part of hex 7FE, and
2459         complaining that is wider than a byte.
2460
2461 Sun Jun  4 22:14:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2462
2463         * hurd/Makefile (sig): Added thread-self.
2464         * hurd/hurd.h: Declare hurd_thread_self.
2465         * hurd/thread-self.c: New file.
2466
2467 Thu Jun  1 12:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2468
2469         * elf/rtld.c: Initialize RTLD_MAP.l_type.
2470         * elf/dl-reloc.c (_dl_relocate_object): Clear LAZY if relocating
2471         the dynamic linker itself.
2472         * sysdeps/i386/dl-machine.h (elf_machine_rel): If MAP->l_type is
2473         lt_interpreter, first undo relocation done during bootstrapping.
2474
2475 Tue May 30 15:52:32 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2476
2477         * mach/Makefile (server-interfaces): Removed notify and
2478         device_reply.  For shlibs with eager binding, libmachuser.so must
2479         not refer to any functions not defined in libc.
2480
2481 Sat May 27 16:23:22 1995  Jim Meyering  (meyering@comco.com)
2482
2483         * sysdeps/generic/memchr.c: Cast RHS to const unsigned char *
2484         to avoid error from Irix-4.0.5's C compiler.  From Kaveh Ghazi.
2485
2486 Fri May 26 13:00:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2487
2488         * hurd/hurdsig.c (_hurd_internal_post_signal): Don't loop to check
2489         pending signals if the thread is in a critical section.  It will
2490         send us a msg when it finishes.
2491
2492         * sysdeps/mach/hurd/pathconf.c: New file.
2493         * sysdeps/mach/hurd/fpathconf.c: New file.
2494
2495         * sysdeps/mach/hurd/sigaction.c: Only notify the proc server for
2496         SIGCHLD when the SA_NOCLDSTOP bit actually changes.
2497
2498 Sun May 21 05:05:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2499
2500         * elf/Makefile (ld.so): Use -nostartfiles in addition to
2501         -nostdlib.
2502
2503 Sun May 21 02:01:29 1995  Jim Meyering  (meyering@comco.com)
2504
2505         * sysdeps/generic/memchr.c: Don't include <string.h> at all.
2506         HPUX-9.01 and IRIX-4.0.5 vendor C compilers get conflicting dcls for
2507         memchr unless one manually arranges for them to define __STDC__.
2508
2509 Fri May 19 17:16:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2510
2511         * sysdeps/mach/hurd/i386/init-first.c: In cthreads case, handle
2512         args on stack from kernel.
2513
2514         * posix/Makefile, sysdeps/alpha/Makefile,
2515         * sysdeps/mach/hurd/Makefile, sysdeps/sparc/Makefile, Makefile,
2516         * Makerules, Make-dist: Fix "cvs commit" cmds in rules to not fail
2517         in the absence of CVS dirs.
2518
2519         * hurd/hurdstartup.c: Don't call __mach_init.  Grok args from the
2520         kernel on the stack properly.
2521
2522         * set-init.c: Never call _init/_fini; just run __libc_subinit.
2523
2524         * Makerules (LDFLAGS-c.so): Add -nostartfiles.
2525         * mach/Machrules (LDFLAGS-$(interface.so)): Likewise.
2526
2527         * configure.in: Move defaulting of --with-elf and --with-gnu-*
2528         based on host os outside the AC_CACHE_VAL for the sysdirs
2529         calculation.
2530
2531         * Makeconfig (localedir, nlsdir): New variables.
2532
2533         * values.h: New file.
2534         * Makefile (headers): Add values.h.
2535
2536         * locale/Makefile (distribute): Add error.h.
2537         * locale/localedef.c: Include "error.h".
2538         (main): Use error_message_count instead of warning_cntr.
2539
2540 Wed May 17 16:50:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2541
2542         Merged 1003.2 locale and localedef programs by Ulrich Drepper.
2543         * locale/charmap.c: New file.
2544         * locale/collate.c: New file.
2545         * locale/config.h: New file.
2546         * locale/ctype.c: New file.
2547         * locale/ctypedump.c: New file.
2548         * locale/hash.c: New file.
2549         * locale/hash.h: New file.
2550         * locale/iso-4217.def: New file.
2551         * locale/keyword.gperf: New file.
2552         * locale/keyword.h: New file.
2553         * locale/libintl.h: New file.
2554         * locale/locale.c: New file.
2555         * locale/localedef.c: New file.
2556         * locale/localedef.h: New file.
2557         * locale/locfile-lex.c: New file.
2558         * locale/locfile-parse.c: New file.
2559         * locale/messages.c: New file.
2560         * locale/monetary.c: New file.
2561         * locale/numeric.c: New file.
2562         * locale/token.h: New file.
2563
2564         * posix/regex.c, posix/regex.h: New files, incorporated from GNU regex.
2565         * posix/Makefile (headers): Add regex.h.
2566         (routines): Add regex.
2567         (gpl2lgpl): Add regex.c and regex.h.
2568
2569 Tue May 16 17:35:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2570
2571         * locale/loadlocale.c: Expect macro LOCALE_PATH to be defined,
2572         instead of hard-coding "/share/locale".
2573
2574 Sat May 13 02:16:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2575
2576         * configure.in (os=gnu*): Always set elf=yes, not just for os=gnu*elf*.
2577
2578 Fri May 12 15:31:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2579
2580         * elf/elf.h (ELFMAG, SELFMAG): New macros.
2581
2582 Fri May 12 11:24:53 1995  Michael I Bushnell  <mib@duality.gnu.ai.mit.edu>
2583
2584         * hurd/alloc-fd.c (_hurd_alloc_fd): Don't reduce FIRST_FD in
2585         the case where it starts out less than _hurd_dtablesize.
2586
2587 Thu May 11 20:51:05 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2588
2589         * hurd/alloc-fd.c (_hurd_alloc_fd): When expanding the dtable,
2590         make sure the new size exceeds FIRST_FD.
2591
2592 Wed May 10 21:00:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2593
2594         * sysdeps/mach/i386/sysdep.h (RETURN_TO): New macro.
2595
2596 Tue May  9 01:26:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2597
2598         * Makerules (install-lib.so): Add %.so for each %_pic.a.
2599
2600         * sysdeps/i386/elf/start.S (__data_start): Define this symbol as
2601         the first thing in .data.
2602
2603         * sysdeps/mach/_strerror.c (_strerror_internal): Eschew sprintf.
2604
2605         * hurd/hurdstartup.h: New file.
2606
2607         * sysdeps/i386/elf/start.S: Give two operands to `testl' when they
2608         are the same.  Use `jz' instead of `jeq'.
2609
2610         * Makeconfig (config.make): Depend on config.status, and run it to
2611         update.
2612         (config.status): New target; depend on configure.
2613         If target (config.status) exists, run it with --recheck to update;
2614         if not, give error msg saying to run confiugre by hand.
2615         * Makerules [$(sysd-Makefile-sysdirs) != $(sysdirs)]
2616         (sysd-Makefile-force): Set this variable to FORCE in this case, to
2617         force a rebuild of sysd-Makefile.
2618         (sysd-Makefile): Depend on $(sysd-Makefile-force).
2619         Write into the file sysd-Makefile-sysdirs:=$(sysdirs).
2620         [$(sysd-rules-sysdirs) != $(sysdirs)] (sysd-rules-force): Set this
2621         variable to FORCE in this case, to force a rebuild of sysd-rules.
2622         (sysd-rules): Depend on $(sysd-rules-force).
2623         Write into the file sysd-rules-sysdirs:=$(sysdirs).
2624
2625         * Makerules (LDFLAGS-c.so): Change ld option -interp to
2626         -dynamic-linker.
2627
2628         * Makerules (do-install-program): New canned sequence.
2629         (install-bin, install-sbin): Use it.
2630         (install for lib*.so): Use it instead of $(do-install).
2631         Fix .so installation rules to handle lib*.so and *.so, deal with
2632         $(libprefix) right, and install *.so as *.so$($(*.so)-version);
2633         i.e. "libc.so-version = .1".
2634
2635 Mon May  8 05:10:25 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2636
2637         * elf/do-rel.h: New file, split out of dynamic-link.h.
2638         * elf/Makefile (distribute): Add do-rel.h.
2639
2640 Sat May  6 11:06:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2641
2642         * Makeconfig (+gccwarn): Add -Winline.
2643
2644         * hurd/hurdsig.c (_hurd_internal_post_signal): If SS->context is
2645         set, avoid abort_rpcs, and use reply and intr ports saved in
2646         SS->context.
2647         * sysdeps/mach/hurd/i386/trampoline.c: Don't set SS->intr_port
2648         from SS->context.  Don't clear SS->context.
2649         * sysdeps/mach/hurd/i386/sigreturn.c: Don't set SS->intr_port when
2650         setting SS->context.  If msg_sig_post returns, re-lock and clear
2651         SS->context.
2652
2653 Fri May  5 10:37:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2654
2655         * mach/Makefile (errsystems.c): Comment out generation rule.
2656
2657         * sysdeps/mach/_strerror.c: Consider a system unknown if its
2658         bad_sub member is null.
2659
2660         * mach/mig-alloc.c: Add weak alias to non-__ name.
2661
2662 Wed May  3 11:56:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2663
2664         * sysdeps/mach/hurd/dup2.c: Fixed broken test in last change.
2665
2666 Tue May  2 01:52:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2667
2668         * elf/dl-error.c (_dl_catch_error): Actually call the OPERATE
2669         function.  Duh.
2670
2671         * hurd/Makefile (distribute): Added hurdstartup.h.
2672         * hurd/hurd.h: Remove _hurd_startup decl.
2673
2674         * hurd/hurd/ioctl.h (_HURD_HANDLE_IOCTLS): Use __attribute__
2675         ((__unused__)) instead of gratuitous self reference.
2676
2677         * sysdeps/mach/hurd/dup2.c: Call _hurd_alloc_fd to expand the
2678         table if FD2 doesn't fit.
2679
2680         * sysdeps/mach/hurd/getdtsz.c: Return the RLIM_NOFILE soft limit,
2681         not the current table size.
2682
2683         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS, CALL_WITH_SP): Rewritten.
2684
2685         Implemented runtime dynamic linker to support ELF shared libraries.
2686         * elf/Makefile: Added rules to make ld.so and libdl.
2687         * elf/dl-error.c: New file.
2688         * elf/dl-fini.c: New file.
2689         * elf/dl-init.c: New file.
2690         * elf/dl-load.c: New file.
2691         * elf/dl-lookup.c: New file.
2692         * elf/dl-object.c: New file.
2693         * elf/dl-reloc.c: New file.
2694         * elf/dlclose.c: New file.
2695         * elf/dlerror.c: New file.
2696         * elf/dlopen.c: New file.
2697         * elf/dlsym.c: New file.
2698         * elf/dynamic-link.h: New file.
2699         * elf/link.h: New file.
2700         * elf/rtld.c: New file.
2701         * sysdeps/i386/dl-machine.h: New file.
2702         * sysdeps/stub/dl-machine.h: New file.
2703         * sysdeps/i386/dl-runtime.c: New file.
2704         * sysdeps/stub/dl-runtime.c: New file.
2705         * sysdeps/i386/elf/start.S: New file.
2706         * sysdeps/generic/dl-sysdep.c: New file.
2707         * sysdeps/mach/hurd/dl-sysdep.c: New file.
2708         * sysdeps/mach/hurd/i386/init-first.c: New file.
2709         * sysdeps/i386/init-first.c: New file.
2710         * sysdeps/stub/init-first.c: New file.
2711
2712 Mon May  1 18:48:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2713
2714         * Makerules (LDFLAGS-c.so): Add -interp and -e switches to make
2715         libc.so runnable.
2716         * version.c (__libc_print_version): Add "et al" and missing NL to
2717         author credit.
2718
2719 Sat Apr 29 15:46:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2720
2721         * posix/glob.c (S_ISDIR): Define if undefined.
2722
2723 Thu Apr 27 01:24:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2724
2725         * configure.in: Unless --without-fp, prepend */fpu before each
2726         machine dir in $mach; don't prepend FPU dirs at end.  If
2727         --with-elf, prepend MACHINE/elf directories at end; don't insert
2728         them into $mach.
2729
2730         * Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
2731
2732         * sysdeps/stub/clock.c: Added stub warning.
2733         * sysdeps/stub/dirfd.c: Likewise.
2734         * sysdeps/stub/exc2signal.c: Likewise.
2735         * sysdeps/stub/fdopen.c: Likewise.
2736         * sysdeps/stub/flock.c: Likewise.
2737         * sysdeps/stub/fpathconf.c: Likewise.
2738         * sysdeps/stub/ftruncate.c: Likewise.
2739         * sysdeps/stub/gtty.c: Likewise.
2740         * sysdeps/stub/isatty.c: Likewise.
2741         * sysdeps/stub/killpg.c: Likewise.
2742         * sysdeps/stub/madvise.c: Likewise.
2743         * sysdeps/stub/mkstemp.c: Likewise.
2744         * sysdeps/stub/mktemp.c: Likewise.
2745         * sysdeps/stub/mprotect.c: Likewise.
2746         * sysdeps/stub/msync.c: Likewise.
2747         * sysdeps/stub/pathconf.c: Likewise.
2748         * sysdeps/stub/poll.c: Likewise.
2749         * sysdeps/stub/raise.c: Likewise.
2750         * sysdeps/stub/readv.c: Likewise.
2751         * sysdeps/stub/setenv.c: Likewise.
2752         * sysdeps/stub/setlogin.c: Likewise.
2753         * sysdeps/stub/sigaltstack.c: Likewise.
2754         * sysdeps/stub/sigintr.c: Likewise.
2755         * sysdeps/stub/sigstack.c: Likewise.
2756         * sysdeps/stub/sleep.c: Likewise.
2757         * sysdeps/stub/sstk.c: Likewise.
2758         * sysdeps/stub/stime.c: Likewise.
2759         * sysdeps/stub/stty.c: Likewise.
2760         * sysdeps/stub/syscall.c: Likewise.
2761         * sysdeps/stub/sysconf.c: Likewise.
2762         * sysdeps/stub/truncate.c: Likewise.
2763         * sysdeps/stub/ualarm.c: Likewise.
2764         * sysdeps/stub/usleep.c: Likewise.
2765         * sysdeps/stub/utimes.c: Likewise.
2766         * sysdeps/stub/writev.c: Likewise.
2767
2768         * sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
2769
2770 Wed Apr 26 16:06:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2771
2772         * locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
2773
2774 Tue Apr 25 17:17:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2775
2776         * posix/glob.c (glob): If GLOB_MARK set, stat names to find
2777         directories and append slashes to them in final pass before
2778         sorting.
2779         (glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
2780         slash; never append it here.
2781
2782 Sat Apr 22 14:48:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2783
2784         * mach/Machrules [interface-library]
2785         (LDFLAGS-$(interface-library:lib%=%.so)): New variable, set to
2786         -nostdlib.
2787
2788         * sysdeps/mach/hurd/fork.c: Subfunction `unlockss' removed.  Lock
2789         _hurd_siglock only around initial task creation in parent.  Use
2790         _hurd_critical_section_unlock at end.  Handle dead name rights
2791         properly, and deal with a send right dying while we try to copy
2792         it.  For the time being, use assert_perror for kernel and proc RPC
2793         failures.
2794
2795 Fri Apr 21 01:10:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2796
2797         * extra-lib.mk: Don't include $(o-iterator); construct it by hand
2798         using $(object-suffixes-$(lib)) instead.
2799
2800         * sysdeps/mach/hurd/Makefile (LDLIBS-c.so): New variable.
2801
2802         * Makerules (lib%.so: lib%_pic.a): Pass $(LDFLAGS-$(notdir $*).so).
2803         (LDFLAGS-c.so): New variable.
2804
2805         * resolv/res_init.c (res_init): Don't clobber _res.options with
2806         RES_DEFAULT.  If RES_INIT is clear, OR in RES_DEFAULT.
2807
2808         * hurd/hurd.h: Declare _hurd_startup.
2809         * hurd/hurdstartup.c: New file.
2810         * hurd/Makefile (routines): Add hurdstartup.
2811
2812 Thu Apr 20 22:23:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2813
2814         * hurd/hurdsig.c: Use assert_perror for many calls which should
2815         never fail and previously were not checked.
2816
2817         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2818         Point the return address for sigreturn's frame at a "hlt" insn so
2819         it will definitely crash if sigreturn returns.
2820
2821 Wed Apr 19 18:40:11 1995  Brendan Kehoe  (brendan@zen.org)
2822
2823         * time/tzset.c (__tzname, __daylight, __timezone): Don't check
2824         HAVE_WEAK_SYMBOLS for doing weak_alias.
2825
2826 Wed Apr 19 18:12:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2827
2828         * configure.in: Move $os tests to set $elf et al earlier, before
2829         construction of $sysnames.  Instead of prepending MACHINE/elf to
2830         $sysnames, append &/elf after each elt appended to $mach.
2831
2832 Tue Apr 18 14:00:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2833
2834         * configure.in (libc_cv_asm_global_directive): New check to define
2835         ASM_GLOBAL_DIRECTIVE.
2836         * config.h.in: Add #undef ASM_GLOBAL_DIRECTIVE.
2837         * libc-symbols.h (strong_alias_asm, strong_alias): Use
2838         ASM_GLOBAL_DIRECTIVE on the alias.
2839
2840         * sysdeps/unix/make_errlist.c (main): Don't generate "#ifdef
2841         HAVE_WEAK_SYMBOLS" #defns.
2842
2843 Mon Apr 17 12:02:49 1995  Brendan Kehoe  (brendan@zen.org)
2844
2845         * sysdeps/alpha/strlen.c (strlen): Fix cmpbge insn, and returning
2846         of the byte that was zero, so we return a valid number.
2847
2848 Sun Apr 16 03:23:09 1995  Brendan Kehoe  (brendan@zen.org)
2849
2850         * sysdeps/unix/bsd/ultrix4/mips/sysdep.h: New file defining
2851         NO_UNDERSCORES then using sysdeps/unix/mips/sysdep.h.
2852
2853 Fri Apr 14 18:49:03 1995  Brendan Kehoe  (brendan@zen.org)
2854
2855         * sysdeps/ieee754/mpn2dbl.c (__mpn_construct_double)
2856         [BITS_PER_MP_LIMB == 64]: Refer to `u', not to non-existent `i'.
2857         * sysdeps/ieee754/mpn2ldbl.c (__mpn_construct_long_double)
2858         [BITS_PER_MP_LIMB == 64]: Likewise.
2859
2860         * sysdeps/unix/bsd/osf/alpha/killpg.S (killpg): Add .end directive.
2861         * sysdeps/unix/bsd/osf/alpha/sigblock.S (__sigblock): Likewise.
2862         * sysdeps/unix/bsd/osf/alpha/sigsetmask.S (__sigsetmask): Likewise.
2863         * sysdeps/unix/bsd/osf/alpha/sigpause.S (__sigpause): Likewise.
2864         * sysdeps/unix/bsd/osf/alpha/sigvec.S (__sigvec): Likewise.
2865         * sysdeps/unix/bsd/osf/alpha/getdents.S (__getdirentries): Likewise.
2866         * sysdeps/unix/bsd/osf/alpha/fork.S (__fork): Likewise.
2867         * sysdeps/unix/bsd/osf/alpha/pipe.S (__pipe): Likewise.
2868         * sysdeps/unix/bsd/osf/alpha/recv.S (recv): Likewise.
2869         * sysdeps/unix/bsd/osf/alpha/send.S (send): Likewise.
2870         * sysdeps/unix/bsd/osf/alpha/vhangup.S (vhangup): Likewise.
2871
2872         * sysdeps/unix/mips/brk.S (__brk, __curbrk): Add .end directive.
2873         * sysdeps/unix/mips/fork.S (fork): Likewise.
2874         * sysdeps/unix/mips/pipe.S (fork): Likewise.
2875         * sysdeps/unix/mips/sigreturn.S (__sigreturn): Likewise.
2876         * sysdeps/unix/mips/sysdep.S (sysdep_error): Likewise.
2877         * sysdeps/unix/mips/wait.S (__handler): Likewise.
2878         * sysdeps/mips/setjmp.S (__sigsetjmp): Likewise.
2879         * sysdeps/mips/bsd-setjmp.S (setjmp): Likewise.
2880         * sysdeps/unix/bsd/ultrix4/getsysinfo.S (getsysinfo): Likewise.
2881         * sysdeps/unix/bsd/ultrix4/wait3.S (waitpid): Likewise.
2882         * sysdeps/unix/bsd/ultrix4/waitpid.S (waitpid): Likewise.
2883         * sysdeps/unix/bsd/ultrix4/mips/__handler.S (__handler): Likewise.
2884         * sysdeps/unix/bsd/ultrix4/mips/sigvec.S (__raw_sigvec): Likewise.
2885         * sysdeps/unix/bsd/ultrix4/mips/start.S (__start): Likewise.
2886         * sysdeps/unix/bsd/ultrix4/mips/vfork.S (vfork): Likewise.
2887         * sysdeps/mips/bsd-_setjmp.S (setjmp): Likewise.  Use `$0'
2888         instead of `zero' for the li instruction.
2889
2890         * sysdeps/unix/bsd/osf/alpha/start.S: Change comments to be
2891         preprocessor comments, not assembler comments.
2892         * sysdeps/unix/bsd/osf/alpha/brk.S: Likewise.
2893         * sysdeps/unix/bsd/osf/alpha/sysdep.h (NO_UNDERSCORES): Define.
2894
2895 Fri Apr 14 15:53:46 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2896
2897         * malloc/malloc.c (register_heapinfo) [__GNUC__]: Use __inline__
2898         in place of inline.
2899
2900 Thu Apr 13 09:45:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2901
2902         * Makefile (distribute): Add ChangeLog.[0-9].
2903
2904         * configure.in: Add check for .set directive.
2905         * config.h.in: Add #undef HAVE_ASM_SET_DIRECTIVE.
2906         * libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias,
2907         strong_alias_asm): Use `foo = bar' syntax instead.
2908
2909         * Makerules [! subdir] (O%-lib): Don't prepend ../.
2910
2911         * sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
2912
2913         * configure.in: Fix AC_ARG_WITH uses; check for --with-fp.  Move
2914         $host_os checks to set gnu_ld/as and elf before sysdirs
2915         generation.  Fix $with_fp test.
2916         [$elf=yes]: Prepend MACHINE/elf directory.
2917
2918         * elf/libelf.h (elf_hash): Use XOR instead of ANDN when the bits
2919         being cleared are already known to be set.  Thanks Ulrich.
2920
2921 Wed Apr 12 23:27:22 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2922
2923         * posix/environ.c: Add weak alias `_environ'.
2924
2925 Tue Apr 11 20:38:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2926
2927         * sysdeps/i386/add_n.S [PIC]: Use self-call to avoid generating reloc.
2928         * sysdeps/i386/sub_n.S [PIC]: Likewise.
2929
2930 Mon Apr 10 14:53:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2931
2932         * libc-symbols.h (_elf_set_element) [PIC]: Don't make the element
2933         word `const'.
2934
2935         * Makeconfig (CPPFLAGS, CFLAGS): Fix swapped references to
2936         $(foo-$(suffix $@)).
2937
2938         * manual/Makefile (chapters-incl): Filter out summary.texi.
2939
2940         * stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
2941         a weak symbol instead of literal "STRTOF".
2942
2943         * locale/setlocale.c: Work around ld bug: don't weakify refs to
2944         _nl_{current,C}_*.
2945
2946 Sun Apr  9 01:24:33 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2947
2948         * Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
2949
2950         * malloc/free.c [emacs] (__malloc_safe_bcopy): Define to safe_bcopy.
2951         * malloc/realloc.c (__malloc_safe_bcopy): Undefine before defining.
2952
2953         * malloc/free.c (memmove, __malloc_safe_bcopy): Do include these
2954         #ifdef emacs, but only #ifndef memmove.
2955         * malloc/realloc.c [emacs] (__malloc_safe_bcopy): Just #define to
2956         safe_bcopy.
2957         (memmove): Define only if undefined.
2958
2959 Sat Apr  8 00:40:59 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2960
2961         * extra-lib.mk (install-lib, extra-objs, alltypes-$(lib)): Make
2962         sure these are simply-expanded variables.
2963
2964         * locale/loadlocale.c (_nl_load_locale): Use MAP_INHERIT flag in
2965         mmap call.
2966
2967         * configure.in (os=freebsd*|bsdi*): Set base_os=unix/bsd/bsd4.4
2968         for these too.
2969
2970         * sysdeps/unix/sysv/tcsetattr.c: Use |= instead of = to properly
2971         set c_oflag value.
2972
2973         * Makeconfig [! objpfx] (csu-objpfx): Add trailing slash.
2974
2975         * locale/Makefile (categories): Uncomment collate.
2976         * locale/lc-collate.c: New file.
2977
2978         * malloc/free.c (__malloc_safe_bcopy, memmove): Don't define
2979         #ifdef emacs.
2980         * malloc/realloc.c: Likewise.
2981
2982         * stdio/_itoa.h (_EXTERN_INLINE): Define if undefined.
2983         (_itoa): Use it in defn.
2984         * stdio/_itoa.c (_EXTERN_INLINE): Define to empty before #include
2985         "_itoa.h".
2986         (_itoa): Function removed.
2987
2988         * malloc/free.c: Remove use of `assert'.
2989
2990         * malloc/realloc.c [! emacs] (safe_bcopy): Renamed to
2991         __malloc_safe_bcopy; #define safe_bcopy.
2992         * malloc/free.c: Cope with systems lacking `memmove'.
2993         (_free_internal): Cast result of _malloc_internal.
2994
2995 Wed Apr  5 00:13:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2996
2997         * hurd/hurdinline.c: Include signal.h first, so we don't define
2998         its inlines too.
2999
3000         * sysdeps/unix/sysv/sysv4/sigset.h (__sigfillset): Use ~0L instead
3001         of -1 to avoid compiler warning.
3002
3003         * configure.in (host_os=linux*): Set elf=yes for this, not just
3004         linux*elf*.
3005
3006         * misc/login_tty.c [! TIOCSCTTY]: Try an emulation using ttyname
3007         and open.
3008
3009         * sysdeps/i386/bsd-_setjmp.S: Fix typo in name: setjmp -> _setjmp.
3010
3011 Tue Apr  4 00:48:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3012
3013         * sysdeps/unix/start.c: Remove spurious decl and #endif.
3014
3015         * misc/progname.c (program_invocation_name,
3016         program_invocation_short_name): Make these initialized data
3017         definitions.
3018
3019         * sysdeps/mach/hurd/setitimer.c (fork_itimer): Add self reference
3020         so gcc doesn't optimize out the function entirely.
3021
3022 Sun Apr  2 13:13:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3023
3024         * posix/execvp.c: Don't use stat to search path; just try execv
3025         until it works.
3026
3027         * sysdeps/mach/hurd/i386/trampoline.c: Add a link to
3028         SS->active_resources, so that _hurdsig_longjmp_from_handler will
3029         be called when a longjmp unwinds the signal frame.
3030         * sysdeps/mach/hurd/i386/sigreturn.c: Remove the link on the
3031         SS->active_resources chain added by _hurd_setup_sighandler.
3032         * hurd/sigunwind.c: New file.
3033         * hurd/Makefile (sig): Add sigunwind.
3034
3035         * Makerules (lib%.so: lib%_pic.a): Remove dir name from $*.
3036
3037         * MakeTAGS (tags-sources): Include $(all-dist).
3038         [subdir] (all-dist): Define to $(distribute).
3039
3040 Sat Apr  1 00:08:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3041
3042         * Makerules (lib%.so: lib%_pic.a): Pass -L options for subdir and
3043         parent objdirs.
3044
3045         * extra-lib.mk (object-suffixes-$(lib)): New variable, produced by
3046         filtering out $($(lib)-inhibit-o); use that instead of
3047         $(object-suffixes) in all the other variables.
3048
3049         * locale/loadlocale.c (_nl_load_locale) [MAP_FILE]: Define it zero
3050         if undefined.
3051
3052         * string/strxfrm.c: Just copy the string (for now).
3053         * string/strcoll.c: Just call strcmp (for now).
3054
3055         * mach/Makefile (lock): Add mutex-init.
3056         * mach/mutex-solid.c (_cthread_mutex_lock_routine,
3057         _cthread_mutex_unlock_routine): Variables removed.
3058         (__mutex_lock_solid, __mutex_unlock_solid): Don't use them; just stub.
3059         (__mutex_init): Function moved to new file mutex-init.c.
3060         * mach/mutex-init.c: New file, broken out of mutex-solid.c.
3061
3062 Thu Mar 30 20:43:02 1995  Brendan Kehoe  <brendan@zen.org>
3063
3064         * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
3065         * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
3066
3067 Thu Mar 30 01:38:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3068
3069         * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
3070         both are zero).
3071
3072 Wed Mar 29 11:26:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3073
3074         * elf/dlfcn.h: New file.
3075
3076         * Make-dist (README): Commit it to CVS if there is a CVS directory.
3077
3078         More changes from Germano Caronni <caronni@tik.ethz.ch>:
3079         * malloc/free.c: Relocate _heapinfo when that allows us to return
3080         core to the system.
3081
3082         * malloc/malloc.c: Move #include <errno.h> outside #ifndef
3083         _MALLOC_INTERNAL.
3084
3085 Mon Mar 27 02:23:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3086
3087         * mach/Makefile (headers): Add mach/mach_traps.h.
3088
3089         * Makerules ($(installed-libcs) rule): Fix typos.
3090
3091         * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
3092         * sysdeps/stub/revoke.c: New file.
3093         * misc/Makefile (routines): Add revoke.
3094         * posix/unistd.h [__USE_BSD] (revoke): Declare it.
3095         * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
3096         (forkpty): Declare login_tty.
3097         * misc/logwtmp.c (logwtmp): Declare to return void.
3098         * misc/login_tty.c (login_tty): Include unistd.h.  Declare return type.
3099
3100         * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
3101
3102         * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
3103         unless L_SET already defined.
3104         * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
3105         already defined.
3106
3107         Incorporated -lutil library from 4.4-Lite.
3108         * misc/Makefile (extra-libs, libutil-routines): New variables.
3109         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
3110         sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
3111
3112         Support simple, light-weight unwind-protect mechanism for longjmp.
3113         * setjmp/longjmp.c: Call _longjmp_unwind first thing.
3114         * sysdeps/mach/hurd/jmp-unwind.c: New file.
3115         * sysdeps/stub/jmp-unwind.c: New file.
3116         * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
3117         * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
3118         * setjmp/Makefile (routines): Add jmp-unwind.
3119         * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
3120         `prevp' members into new substructure `resource'; add another such
3121         substructure `thread' and members `cleanup' (function ptr) and
3122         `cleanup_data' (generic ptr).
3123         (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
3124         into the `_hurd_self_sigstate ()->active_resources' list via the
3125         `thread' substructure.
3126         * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
3127         (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
3128         LINK->cleanup_data' to the port extracted.
3129         * hurd/hurd/signal.h (struct hurd_sigstate): New member
3130         `active_resources'.
3131         * hurd/port-cleanup.c: New file.
3132         * hurd/Makefile (routines): Add port-cleanup.
3133
3134         * malloc/malloc.c: Include errno.h.
3135
3136 Sat Mar 25 18:24:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3137
3138         * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
3139
3140 Fri Mar 24 02:35:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3141
3142         * misc/Makefile (headers): Add utmp.h.
3143         * misc/utmp.h: New file, incorporated from 4.4-Lite.
3144
3145         * stdio/printf-parse.h: New file, mostly written by drepper.
3146         * stdio/vfprintf.c: Rewritten, mostly by drepper.
3147         * stdio/printf-prs.c: Rewritten.
3148         * stdio/Makefile (distribute): Add printf-parse.h.
3149
3150 Thu Mar 23 22:03:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3151
3152         * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
3153         with asm name.  Just do a ".set start, __start".
3154
3155         * malloc/realloc.c: Call _free_internal instead of free.
3156
3157 Tue Mar 21 00:14:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3158
3159         * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
3160         directory, open LOCALE/LC_*/SYS_LC_* instead.
3161
3162 Mon Mar 20 03:19:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3163
3164         * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
3165         stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
3166         stdio/gen-mpn-copy: Files moved to stdlib.
3167         * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
3168         * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
3169         * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
3170         headers.
3171         * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
3172         headers.
3173
3174         * Makefile (parent-mostlyclean): Don't use $(libc.a).
3175         (parent-clean): Use $(objpfx) to find sysd-*.
3176         * Rules (generated): Append dummy.o dummy.c.
3177         * Makerules (lib): Depend on lib-noranlib.
3178         (lib-noranlib): Depend on $(install-lib) in objdir.
3179         (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
3180         from objdir.  Don't remove TAGS; it comes in the distribution.
3181
3182         * malloc/malloc.c (morecore): Save errno around call to
3183         _realloc_internal.  Don't account for the additional new blocks of
3184         the info table itself when choosing the new table size for the
3185         first crack; if it succeeds, the new blocks will have been found
3186         in existing free space already described by the existing info
3187         table.
3188
3189         * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
3190         read-ahead character.
3191
3192 Sat Mar 18 14:07:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3193
3194         * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
3195           hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
3196           hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
3197           hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
3198         Get anal with unsigned to pacify compiler.
3199
3200         * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
3201         means %d from 3rd arg).
3202
3203         * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
3204
3205         * stdlib/strtol.c: If !GROUP, set END to null.  In loop, test only
3206         END, not GROUP.
3207
3208 Fri Mar 17 12:58:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3209
3210         * Makefile (subdirs): Put elf last.
3211
3212         * sunrpc/Makefile (install-lib): Variable removed.
3213         (rpcsvc-objs): Variable removed.
3214         (extra-objs): Don't include $(rpcsvc-objs).
3215         (extra-libs): New variable, contains librpcsvc.
3216         (librpcsvc-routines): New variable.
3217         (librpcsvc-inhibit-o): New variable, contains .so.
3218         (omit-deps): Set this to $(librpcsvc-routines).
3219         ($(objpfx)rpcgen): Don't use $(libc.a).
3220         (lib, $(objpfx)librpcsvc.a): Targets removed.
3221
3222         * o-iterator.mk, extra-lib.mk: New files.
3223         * Makerules (o-iterator): New variable.
3224         [extra-libs]: Include extra-lib.mk to generate rules for each word
3225         of $(extra-libs).
3226         * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
3227
3228 Fri Mar 17 13:28:04 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3229
3230         * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
3231         Handle 80-bit denormalized numbers correctly.
3232
3233         * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
3234         (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
3235         * stdlib/strtod.c (RETURN): Add parentheses around return value.
3236         (round_and_return): Correct handling of denormalized numbers.
3237
3238         * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
3239         LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
3240         exponent.
3241
3242 Thu Mar 16 00:04:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3243
3244         * locale/C-ctype.c: New correct data generated by drepper.
3245
3246         * Rules: Don't use $(libc.a).
3247
3248         Parsing of grouped numbers contributed by Ulrich Drepper.
3249         * stdlib/strtol.c (__strtol_internal): Renamed from strtol.  Take
3250         new flag arg; if nonzero, parse locale-dependent thousands
3251         grouping and interpret only the prefix that is correctly grouped.
3252         (strtol): Define this to call _strtol_internal with zero for the flag.
3253         Use a weak symbol for the definition.
3254         * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
3255         Check for the exponent of the number overflowing the float format.
3256         * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
3257         (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
3258         [__OPTIMIZE__]: Define inline functions calling those.
3259         * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
3260         (strtold): Remove weak alias.
3261         * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
3262         (strtof): Remove weak alias.
3263         * stdlib/grouping.h: New file, written by drepper.
3264         * stdlib/Makefile (distribute): Add grouping.h.
3265         * stdio/vfscanf.c: Grok %' modifier to numeric conversions.  Call
3266         __strtoX_internal with the grouping flag set iff the modifier is
3267         present.
3268
3269 Wed Mar 15 00:40:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3270
3271         * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
3272
3273         * mach/Machrules: Produce static deps for all object flavors.
3274         [interface-library]: Remove all these variables and rules.
3275         ($(interface-library)-routines): Define this variable.
3276         (extra-libs): Append $(interface-library) to this.
3277         * mach/Makefile (interface-library): Omit .a suffix.
3278         * hurd/Makefile: Likewise.
3279
3280 Tue Mar 14 23:40:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3281
3282         * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
3283         early if no new data in buffer after priming.
3284
3285 Mon Mar 13 01:48:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3286
3287         * Makerules (object-suffixes, libtypes): Move all these variables
3288         to Makeconfig.
3289         * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
3290
3291         * Makerules (build-extra-lib): New canned sequence.
3292
3293         * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h.  Declare ERR;
3294         fix uses of FILE and PORT.  Remove bogus weak alias for `access'.
3295
3296         * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
3297         Add missing semicolon.
3298         * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h.  Use a `struct
3299         hurd_fd *' temp var, since DIRP->__fd is a `void *'.
3300         * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
3301
3302         * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
3303         locale data format is implemented.
3304
3305         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3306         Pass &__sigreturn on the stack to the trampoline code, so it is
3307         not position-dependent.
3308
3309         * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
3310         Don't include <stdarg.h>.
3311         (__printf_fp): Last arg ARGS is now `const void **const';
3312         dereference ARGS[0] instead of using va_arg.
3313
3314         * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
3315         loop to install data.
3316
3317         * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
3318         to extract number from item code.
3319         (_nl_load_locale): Close the descriptor when finished.
3320
3321         * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
3322         place of malloc.
3323
3324         * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
3325
3326         * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
3327         to avoid warning.
3328         * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
3329         int to avoid warning.
3330
3331         Support building several flavors of objects and libraries.
3332         * Makerules (libtypes, object-suffixes): New variables.
3333         (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
3334         suffix.
3335         (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
3336         (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
3337         (close-check-inhibit-asm): Append a semicolon.
3338         (sysd-rules): Generate rules for each object suffix.
3339         (compile.S, compile.c): Always assume gcc.
3340         (OUTPUT_OPTION): Define unconditionally.
3341         (+make-deps): In generated rule, produce a dependent for each
3342         object suffix.
3343         (.SUFFIXES): Add $(object-suffixes) in place of .o.
3344         (.PRECIOUS): Make all suffix flavors precious.
3345         ($(libc.a)): Target removed.
3346         (lib): Depend on each enabled libtype.
3347         (libobjs, objects, objs): Depend on all the enabled object flavors.
3348         (lib%.a): New pattern rule.
3349         [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
3350         (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
3351         to make one for each flavor; library dep rule likewise rewritten.
3352         ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
3353         flavor.
3354         (symdef.%): New pattern rule; helper for __.SYMDEF targets.
3355         (installed-libcs): New variable.
3356         (install): Depend on that instead of
3357         $(libdir)/lib$(libprefix)$(libc-name).a;
3358         that file's rule rewritten to make each enabled libtype.
3359         (install-lib.so): New variable, filters lib%.so from $(install-lib).
3360         (install-lib): Filter out lib%.so after setting install-lib.so.
3361         [$(build-shared)=yes] (install): Install $(install-lib.so).
3362         (common-mostlyclean): Remove all flavors of objects.
3363         * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
3364         [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
3365
3366 Sun Mar 12 18:21:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3367
3368         * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
3369         * sysdeps/stub/pause.c: Likewise.
3370         * sysdeps/stub/time.c: Likewise.
3371
3372         * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
3373         locale data format is implemented.
3374         * stdlib/wctomb.c: Likewise.
3375
3376         * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
3377         gcc bug is fixed.
3378         * mach/errsystems.c: File removed.
3379
3380         * Makeconfig (libc.a): Variable removed.
3381         (+link): Don't use it.
3382
3383         * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
3384         assuming `yes'.
3385
3386         * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
3387         * malloc/realloc.c (_realloc_internal): Renamed from realloc;
3388         don't use __realloc_hook.
3389         (realloc): New function; call __realloc_hook ?: _realloc_internal.
3390         * malloc/malloc.c (_malloc_internal): Renamed from malloc;
3391         don't use __malloc_hook.
3392         (malloc): New function; call __malloc_hook ?: _malloc_internal.
3393         Changes from Germano Caronni <caronni@tik.ethz.ch>:
3394         (initialize): Set up _heaplimit to cover the _heapinfo table.
3395         (morecore_recursing): New static variable.
3396         (morecore): If that is set, return null immediately.
3397         When growing the info table, before getting new core from the
3398         system for it, set morecore_recursing and try moving _heapinfo
3399         with _realloc_internal.  When that fails and we get new core, set
3400         _heaplimit to cover the core for the new _heapinfo table.
3401         (register_heapinfo): New function.  Record the _heapinfo table's
3402         own blocks in that table and in the statistics variables.
3403         (initialize, _malloc_internal): Use it after allocating new table.
3404
3405 Fri Mar 10 22:26:28 1995  Jim Meyering  (meyering@comco.com)
3406
3407         * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
3408         by other packages.
3409         [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
3410
3411 Fri Mar 10 13:31:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3412
3413         * mach/errorlib.h (errors): Use const for decl.
3414
3415         * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
3416         (decode): New inline function; decode signed 32-bit integers, and
3417         sign-extend properly when long is longer than 32 bits.
3418         (__tzfile_read): Changed all uses of uc2ul to decode.
3419         Decode the transition times properly when sizeof (time_t) > 4.
3420
3421         * stdio/printf.h: Doc fixes.  Don't #include <stddef.h>.
3422         (printf_function): Make last arg ARGS a vector of pointers instead of a
3423         pointer to va_list.
3424
3425 Fri Mar 10 13:46:25 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
3426
3427         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
3428         (buffered_vfprintf): Remove line buffer when flush failed.
3429
3430 Fri Mar 10 00:04:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3431
3432         * time/tzfile.c (struct ttinfo): New member `isgmt'.
3433         (__tzfile_read): Read isgmt flags for each type.
3434         (__tzfile_default): When using TZDEFRULES DST rules, adjust
3435         transition times according to the isstd and isgmt flags for the
3436         types of each transition, and adjust each transition to point to
3437         type index either 0 or 1.  Reset type indices 0 and 1 to describe
3438         the user's settings.
3439
3440 Thu Mar  9 22:29:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3441
3442         * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
3443         into just CLASS.  Add standard/optional flag to all items.
3444
3445         * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
3446
3447         * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
3448         Rearrange defn to satisfy compiler.
3449
3450         * locale/localeinfo.h: Declare _nl_current.
3451
3452         * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB.  Accept args
3453         --enable-shared, --enable-profile, --enable-omitfp; pass settings
3454         through to config.make.
3455         * config.make.in (build-shared, build-profile, build-omitfp): New
3456         config vars.
3457
3458         * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
3459         (DT_NUM): New macro.
3460
3461         * locale/nl_langinfo.c: Include errno.h and stddef.h.  Fix typos.
3462
3463         * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
3464
3465         * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
3466         MAP_COPY to MAP_PRIVATE.
3467
3468 Thu Mar  9 17:16:53 1995  Brendan Kehoe  (brendan@zen.org)
3469
3470         * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
3471         that's used inside the alpha sysdep.h.
3472
3473         * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
3474         keyword.
3475         * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
3476
3477         * configure.in: Match `osf*', not `osf1*'.
3478         * configure: Likewise.
3479         * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
3480
3481 Wed Mar  8 13:38:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3482
3483         * posix/glob/configure.bat: Fixes from DJ.
3484
3485         * time/backward, time/europe, time/northamerica, time/pacificnew,
3486         time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
3487         time/ialloc.c: Code and data updated from ADO's 95b.
3488         * time/emkdir.c: File removed.
3489         * time/Makefile (distribute, extra-objs, zic): Omit it.
3490
3491         * time/localtime.c: Deansideclized.  Never #define __tzname et al
3492         to non-__ names.
3493
3494         * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
3495         instead of short int *.
3496         * ctype/ctype-info.c: Likewise.
3497         * ctype/ctype.h: Likewise.
3498
3499         * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
3500         of EB and EL versions.
3501
3502 Mon Mar  6 12:34:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3503
3504         * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
3505         (_IS* enum): Use _ISbit to produce values.
3506
3507 Sun Mar  5 19:40:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3508
3509         * locale/localeinfo.h: Rewritten for new locale system, using
3510         locale data files and with <langinfo.h> interface.
3511         * locale/setlocale.c: Rewritten to use locale data files.
3512         * langinfo.h: New file.
3513         * locale/langinfo.h: New file.
3514         * locale/nl_langinfo.c: New file.
3515         * locale/loadlocale.c: New file.
3516         * locale/lc-ctype.c: New file.
3517         * locale/lc-messages.c: New file.
3518         * locale/lc-monetary.c: New file.
3519         * locale/lc-numeric.c: New file.
3520         * locale/lc-time.c: New file.
3521         * locale/categories.def: New file.
3522         * locale/Makefile (headers): Remove localeinfo.h.
3523         (distribute): New variable; put localeinfo.h here, and categories.def.
3524         (routines): Add loadlocale.
3525         (categories): New variable.
3526         (aux): Use that to get C-category and lc-category.
3527         * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
3528         * ctype/ctype-info.c: For initial tables, use
3529         _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
3530         locale/C-ctype.c.
3531         * locale/C-ctype.c, locale/C-messages.c: New files.
3532         * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
3533         Default "C" locale data updated for new locale system.
3534         * locale/C-collate.c: File removed.
3535         * locale/C-ctype_ct.c: File removed.
3536         * locale/C-ctype_mb.c: File removed.
3537         * locale/C-response.c: File removed.
3538         * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
3539         * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
3540           stdlib/strtod.c, time/asctime.c, time/strftime.c:
3541         Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
3542         locale data.
3543         * time/localtime.c: Don't include <localeinfo.h>.
3544         * time/tzset.c: Don't use locale items for default TZ value or
3545         "GMT" string (use "UTC").
3546
3547         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
3548         WIDTH>0; update DONE.
3549
3550         * malloc/malloc.c (morecore): Fix last change to calculate by
3551         blocks instead of bytes.
3552
3553 Fri Mar  3 12:24:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3554
3555         * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
3556         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
3557         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
3558         * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
3559         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
3560         * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
3561         alias munmap.
3562         * sysdeps/unix/mman/munmap.S: Likewise.
3563         * sysdeps/mach/munmap.c: Likewise.
3564         * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
3565         alias mmap.
3566         * sysdeps/unix/mman/mmap.S: Likewise.
3567         * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
3568         * sysdeps/stub/mmap.c: Likewise.
3569
3570         * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
3571
3572         * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
3573
3574 Thu Mar  2 12:15:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3575
3576         * misc/search.h: Add missing semicolon.
3577
3578         * sysdeps/unix/dirfd.c: Fix typo.
3579
3580         * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
3581         in decl.
3582
3583         * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
3584         WIDTH before test.
3585
3586 Wed Mar  1 00:57:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3587
3588         * stdlib/strtod.c: Fixes from drepper.
3589         [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
3590         * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
3591         * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
3592
3593         * stdio/vfprintf.c: Correctly notice Z modifier.
3594
3595         * misc/search.h: New file.
3596         * misc/Makefile (headers): Add search.h.
3597         * misc/insremque.c: Include search.h.
3598         (struct qelem): Type removed.
3599
3600 Mon Feb 27 07:00:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3601
3602         * elf/libelf.h: New file.
3603         * elf/elf_hash.c: New file.
3604
3605 Sun Feb 26 15:51:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3606
3607         Changes from Germano Caronni <caronni@tik.ethz.ch>:
3608         * malloc/malloc.c (morecore): Account in NEWSIZE for the
3609         malloc_info structures for each new block.
3610
3611 Sat Feb 25 02:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3612
3613         * sysdeps/mach/hurd/kill.c: When the process has no message port
3614         registered and we have its task port, translate a few signals to
3615         task_suspend/task_resume/task_terminate.
3616
3617 Fri Feb 24 14:40:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3618
3619         * io/Makefile (routines): Add euidaccess.
3620         * sysdeps/mach/hurd/euidaccess.c: New file.
3621         * sysdeps/stub/euidaccess.c: New file.
3622         * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
3623
3624         * dirent/Makefile (routines): Add dirfd.
3625         * sysdeps/stub/dirfd.c: New file.
3626         * sysdeps/unix/dirfd.c: New file.
3627         * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
3628         * dirent/dirent.h (dirfd): Declare new function.  Define as macro
3629         _DIR_dirfd if that is defined.
3630         * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
3631         with `void *__fd'.
3632         * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
3633         Open the file with `open'; set FD_CLOEXEC on the fd.
3634         * sysdeps/mach/hurd/closedir.c: Likewise.
3635         * sysdeps/mach/hurd/readdir.c: Likewise.
3636         * sysdeps/mach/hurd/dirfd.c: New file.
3637
3638         * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
3639         directory.
3640         (glob/ChangeLog): Likewise.
3641
3642         * locale/locale.h (LC_*): Use small integers instead of bit masks.
3643
3644         * stdio/bug4.c: Put temporary files in /tmp.
3645         * stdio/bug3.c: Likewise.
3646         * stdio/bug5.c: Likewise.
3647         * stdio/test-fseek.c: Likewise.
3648         * stdio/test-popen.c: Likewise.
3649
3650 Wed Feb 22 00:44:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3651
3652         * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
3653
3654         * libc-symbols.h (weak_symbol): New macro.
3655
3656         * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
3657         elts with null handlers.
3658
3659         * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
3660
3661 Tue Feb 21 21:53:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3662
3663         * stdlib/random.c (__srandom): Change algorithm used to populate
3664         the state array.
3665         (randtbl): Recomputed with new algorithm.
3666
3667         * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
3668         to original value of `crypt'.
3669         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
3670         (crypt): New variable, set to crypt.solar.
3671
3672 Tue Feb 21 11:50:37 1995  Brendan Kehoe  (brendan@zen.org)
3673
3674         * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
3675
3676         * config.h.in: Put comment around ^L to pacify Solaris as here too.
3677
3678 Tue Feb 21 00:10:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3679
3680         * string/Makefile (distribute): Add pagecopy.h.
3681         * sysdeps/mach/pagecopy.h: New file.
3682         * sysdeps/generic/pagecopy.h: New file.
3683         * sysdeps/generic/memcpy.c: Include pagecopy.h; call
3684         PAGE_COPY_FWD_MAYBE first when word aligned.
3685         * sysdeps/generic/memmove.c: Likewise.
3686
3687         * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
3688         (getpgrp): Call __getpgid instead of __getpgrp.
3689
3690         * Makefile (subdirs): Add elf first.
3691         * elf/Makefile: New file.
3692         * elf/elf.h: New file.
3693
3694         * sysdeps/unix/start.c (errno): Only define if it's not #define'd
3695         as a macro.
3696         [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
3697         indirection.
3698
3699         * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
3700         add crti_s, crtn_s.
3701         (install-lib, extra-objs, generated-, omit-deps): Use that.
3702         (initfini): New canned sequence, broken out of crt[in].s rule.
3703         (crt[in].s rule): Use it.
3704         (crt[in]_s.s): New rule.
3705         * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
3706         (_init, _fini): Use GLOBAL as storage class.
3707         Add self reference to avoid GCC optimizing out the functions.
3708
3709         * Makefile (headers): Remove $(stddef.h).
3710         * Makeconfig (stddef.h): Variable removed; now require gcc version
3711         >= 2.2.
3712         * stddef.h: File removed.
3713
3714 Mon Feb 20 19:42:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3715
3716         * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
3717         definition.
3718         * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
3719
3720         * stdlib/strtod.c: Allow the string to start with a decimal point
3721         without a leading zero.
3722
3723 Mon Feb 20 04:04:57 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
3724
3725         * Makefile (subdirs): Put csu first.
3726
3727         * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
3728
3729         * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
3730         to crt[in].o.
3731         (csu-objpfx): New variable.
3732         (+link): Use it to find start.o and $(+preinit), $(+postinit).
3733
3734         * Rules (subdir_lib, all): Depend on objs.
3735
3736         * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
3737
3738         * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
3739         access to float.h macros.
3740
3741         * misc/efgcvt.c: New file.
3742         * misc/Makefile (routines): Add efgcvt.
3743
3744 Sun Feb 19 20:10:43 1995  Brendan Kehoe  <brendan@zen.org>
3745
3746         * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
3747         * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
3748         to avoid a misreference that would override sysdeps/generic/mul.c.
3749         * sysdeps/sparc/Dist: Likewise.
3750
3751 Sun Feb 19 17:46:13 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
3752
3753         * posix/Makefile (aux): Add environ.
3754         * posix/environ.c: New file.
3755         * sysdeps/unix/sparc/start.c: Remove __environ definition.
3756         * sysdeps/unix/start.c: Likewise.
3757         * sysdeps/unix/sysv/irix4/start.c: Likewise.
3758         * sysdeps/mach/hurd/start.c: Likewise.
3759         * sysdeps/mach/start.c: Likewise.
3760         * sysdeps/stub/start.c: Likewise.
3761
3762         * sysdeps/unix/make_errlist.c: In produced program, test
3763         HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
3764         * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
3765         Remove extra weak alias.
3766
3767         * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
3768         in #include.
3769
3770         * libc-symbols.h: Put comment around ^L to pacify Solaris as.
3771
3772         * sysdeps/posix/Makefile (cded-objdir-includes): New variable
3773         replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
3774         $(CPPFLAGS).
3775         (mk-stdiolim): Use it instead.
3776
3777 Fri Feb 17 12:16:27 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
3778
3779         * mach/mach_init.c (__vm_page_size): Make it initialized.  It does
3780         not work to make a weak alias to a bss symbol.
3781
3782         * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
3783         (tests): Add test-fwrite.
3784         * stdio/test-fwrite.c: New file.
3785
3786         * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
3787         __strtold.
3788
3789         * Makefile (autoconf-it): New canned sequence.  Do cvs commit if
3790         there is a CVS directory.
3791         (configure, %/configure): Use $(autoconf-it) for cmds.
3792         * Make-dist: Likewise.
3793         * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
3794         if there is a CVS directory.
3795         * sysdeps/sparc/Makefile (divrem output): Likewise.
3796         * sysdeps/alpha/Makefile (divrem output): Likewise.
3797         * Makerules ($(gpl2lgpl)): Likewise.
3798
3799         * Makerules (rule to install lib%.a from $(install-lib)): Fix
3800         patsubst to elide ranlib for $(non-lib.a).
3801
3802         * stdio/tst-printf.c: Enable FP tests.  Add some new tests from rfg.
3803
3804 Thu Feb 16 04:06:06 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
3805
3806         * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
3807         * mach/mig-dealloc.c: Add weak alias mig_deallocate.
3808
3809 Wed Feb 15 13:34:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3810
3811         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
3812         DEALLOC_REFPORT; deallocate the refport after use only if it
3813         evaluates to nonzero.
3814         * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
3815         * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
3816
3817         * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
3818         *STATE_CHANGE to indicate whether or not we changed *STATE and it
3819         should be committed to the thread.
3820         (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
3821         state for a thread, do thread_set_state on that thread.  Don't use
3822         SS->intr_port for collecting reply ports, it is not safe to
3823         clobber that when suspending; instead, alloca a temporary array.
3824         (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
3825         zero when dying, one when suspending.  Pass new arg to abort_rpcs.
3826
3827         * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
3828         HURD_FD_PORT_USE will.  Don't use critical sections around
3829         HURD_FD_PORT_USE invocations.
3830
3831         * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
3832         * sysdeps/posix/stdio_init.c: Likewise.
3833
3834 Tue Feb 14 03:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3835
3836         * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
3837         locking; don't leave the descriptor locked on return.
3838         (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
3839         Use a critical section around locking the descriptor.
3840         Check for an empty descriptor and return EBADF.
3841         * sysdeps/mach/hurd/dup2.c: Likewise.
3842         * sysdeps/mach/hurd/fcntl.c: Likewise.
3843         Use HURD_FD_PORT_USE macro for RPCs.
3844         * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
3845         using HURD_FD_PORT_USE.
3846         * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
3847         to lock the descriptor.
3848         * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
3849         locking the descriptor.
3850         * sysdeps/mach/hurd/fdopen.c: Likewise.
3851         * hurd/fd-close.c: Likewise.
3852         Don't expect the descriptor to be locked on entry.
3853         Check for empty descriptor and return EBADF.
3854
3855         Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
3856         new functions _hurd_ctty_input and _hurd_ctty_output, each
3857         called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
3858         * hurd/ctty-input.c: New file.
3859         * hurd/ctty-output.c: New file.
3860         * hurd/Makefile (dtable): Add ctty-input and ctty-output.
3861         * hurd/fd-read.c: Use _hurd_ctty_input.
3862         * hurd/fd-write.c: Use _hurd_ctty_output.
3863         * sysdeps/mach/hurd/ioctl.c: Likewise.
3864         * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
3865
3866 Mon Feb 13 11:36:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3867
3868         * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
3869         as appropriate to the type.
3870
3871         * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
3872         repeating the union.
3873         (HUGE_VAL, __huge_val): Use it.
3874         [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
3875         analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
3876         * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
3877         (STRTOF): Set to __strtold; define strtold as weak alias.
3878         * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
3879         (STRTOF): Set to __strtof; define strtof as weak alias.
3880
3881         * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
3882         (IEEE754_FLOAT_BIAS): New macro.
3883
3884         * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
3885
3886         * stdlib/testmb.c: Add tests from rfg for using normal chars as
3887         multibyte chars.
3888
3889         * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
3890         only the `defined but not used' warning, but also to avoid GCC
3891         optimizing out the entire function (!).
3892
3893         * stdlib/wctomb.c: Include ctype.h.
3894
3895         * Makerules (install-lib-non.a): Don't include $(non-lib.a).
3896
3897         * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
3898
3899 Sat Feb 11 04:05:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3900
3901         * stdio/printf_fp.c: Include "fpioconst.h".
3902         (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
3903         (__printf_fp): All references changed.
3904         Don't bother computing THOUSANDS_SEP if GROUPING is empty.
3905         (group_number): Use memmove instead of memcpy, since operands overlap.
3906         * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
3907         * stdio/fpioconst.h: New file, header declaring the table data.
3908         * stdio/Makefile (aux): Add fpioconst.
3909         (distribute): Add fpioconst.h.
3910         * stdlib/strtod.c: Complete rewrite from drepper.
3911         * stdlib/strtof.c: New file.
3912         * stdlib/strtold.c: New file.
3913         * stdlib/Makefile (routines): Add strtof, strtold.
3914         * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
3915         * sysdeps/stub/mpn2flt.c: New file.
3916         * sysdeps/stub/mpn2dbl.c: New file.
3917         * sysdeps/stub/mpn2ldbl.c: New file.
3918         * sysdeps/ieee754/mpn2flt.c: New file.
3919         * sysdeps/ieee754/mpn2dbl.c: New file.
3920         * sysdeps/ieee754/mpn2ldbl.c: New file.
3921
3922         * Makerules (install-lib.a): Don't filter out $(non-lib.a).
3923         ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
3924         appears in $(non-lib.a).
3925
3926 Fri Feb 10 17:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3927
3928         * stdlib/wctomb.c: A normal ASCII character translates to itself.
3929         * stdlib/mbtowc.c: Likewise.
3930
3931 Thu Feb  9 03:55:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3932
3933         * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
3934         Remove `const' from prototypes.
3935         * sysdeps/m68k/__longjmp.c: Likewise.
3936         * setjmp/longjmp.c: Likewise.
3937         * sysdeps/i386/__longjmp.c: Likewise.
3938
3939         * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
3940         so when we return a name, it is incremented past the value that
3941         produces that same name.
3942
3943         * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype.  Sigh.
3944         * stdio/stdio.h (fgets): Likewise.
3945
3946         * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
3947
3948         * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
3949         when it's EBACKGROUND; we need to notice that it is EBACKGROUND
3950         and retry the RPC.
3951         * hurd/fd-read.c: Likewise.
3952
3953 Wed Feb  8 05:01:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3954
3955         * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
3956         <mach/mig_support.h>.
3957         * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
3958         * assert/assert.c: Likewise.
3959         * sysdeps/posix/libc_fatal.c: Likewise.
3960
3961 Tue Feb  7 12:17:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3962
3963         * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
3964         as macros, to satisfy ANSI pedants.
3965
3966         * stdio/internals.c (flushbuf): When there is no new data after
3967         priming the stream, return without writing out the buffer.
3968         * stdio/Makefile (tests): Add bug7.
3969         * stdio/bug7.c: New file.
3970
3971         * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
3972         S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
3973         is defined.
3974
3975         * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
3976
3977         * stdio/Makefile (tests): Add errnobug.
3978         * stdio/errnobug.c: New file.
3979
3980         * mach/mig_strncpy.c: Include string.h.
3981
3982         * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>.  Its
3983         inlines cause trouble for files defining global register variables.
3984
3985         * stdio/vfprintf.c: Use _strerror_internal for %m.
3986
3987         * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
3988
3989         * stdio/printf.h (struct printf_info): New member `group', for %' flag.
3990         * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
3991         * stdio/vfprintf.c (group_number): New function.
3992         (vfprintf): Support %' flag for integer formats, by calling
3993         group_number after formatting the number in WORK.
3994         * stdio/printf_fp.c (guess_grouping, group_number): New functions.
3995         (__printf_fp): Implement `group' flag using them.
3996
3997         * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
3998         (parent-clean): Remove sysd-rules, not sysdirs.
3999         (distclean): Pass avoid-generated=yes to submake.
4000         (distclean-1): Remove $(sysdep-$(distclean-1)).
4001
4002         * Makerules (objects, objs): Depend on $(extra-objs) too.
4003         (include sysd-Makefile): Protect with ifndef avoid-generated.
4004
4005         * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
4006         (CPPFLAGS): Use $(defines) in place of $(+defines).
4007         Replace -D_LIBC with -include $(..)libc-symbols.h.
4008
4009         * stdio/freopen.c: Set seen bit before calling fclose.
4010
4011 Mon Feb  6 18:34:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4012
4013         * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
4014         successes and each kind of failure.  Return EPERM or EACCES only
4015         if every task failed that way.
4016
4017         * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
4018         correctly.
4019
4020         * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
4021         or resume the process after frobbing.
4022
4023         * hurd/hurdsig.c: Use spin lock operations on sigstate locks
4024         throughout.
4025         (_hurd_thread_sigstate): Don't lock the sigstate lock.
4026         (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
4027         repeated sequences with calls to it.  Don't expect the sigstate
4028         lock to be held on entry; lock it just before examining sigaction.
4029         In handler case, check SS->critical_section after calling
4030         abort_rpcs; if set, mark the signal pending and resume the thread.
4031         * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
4032         (_hurd_self_sigstate): Don't lock the sigstate lock.
4033         (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
4034         _hurd_self_sigstate_unlocked.
4035         * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
4036         the sigstate lock.
4037         * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
4038         Don't expect _hurd_self_sigstate to lock it.  Fix critical section
4039         locking.
4040         * hurd/hurd-raise.c: Likewise.
4041         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
4042         * sysdeps/mach/hurd/sigpending.c: Likewise.
4043         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
4044         * sysdeps/mach/hurd/sigaction.c: Likewise.
4045         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
4046         * hurd/fd-write.c: Likewise.
4047         * hurd/fd-read.c: Likewise.
4048         * sysdeps/mach/hurd/ioctl.c: Likewise.
4049         * sysdeps/mach/hurd/fork.c: Likewise.
4050         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
4051         * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
4052         * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
4053         * hurd/hurdmsg.c (get_int): Likewise.
4054
4055         * stdio/vfprintf.c: Include stddef.h.  Fix typos in libio code.
4056
4057         * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
4058         global.
4059         (PAD): Caller changed.
4060         * stdio/printf_fp.c (__pad): Function removed.
4061         (PAD): Use __printf_pad instead.
4062
4063 Sun Feb  5 17:59:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4064
4065         Merged new FP printer by Ulrich Drepper.
4066         * stdio/printf_fp.c: Rewrite by drepper.
4067         * stdio/Makefile (routines): Add ldbl2mpn.
4068         * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
4069         member.
4070         (union ieee854_long_double): New type, from drepper.
4071         (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
4072         * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
4073         * sysdeps/stub/ldbl2mpn.c: New file.
4074         * math/Makefile (routines): Add isinfl and isnanl.
4075         * sysdeps/ieee754/isinfl.c: New file.
4076         * sysdeps/stub/isinfl.c: New file.
4077         * sysdeps/ieee754/isnanl.c: New file.
4078         * sysdeps/stub/isnanl.c: New file.
4079
4080         * malloc/malloc.c (__malloc_extra_blocks): New variable.
4081         (malloc): When getting more core, get __malloc_extra_blocks extra;
4082         put the new block at the end of the free list and let the next loop
4083         iteration use the initial portion of it.
4084         * malloc/free.c (_free_internal): Account for twice
4085         __malloc_extra_blocks in deciding if we have so much extra memory
4086         we should return it to the system.
4087         * malloc/malloc.h (__malloc_extra_blocks): Declare it.
4088         * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
4089         const in parameter decl.
4090
4091         * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
4092
4093 Fri Feb  3 18:15:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4094
4095         * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
4096
4097         * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
4098         * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
4099         * sysdeps/mips/bsd-setjmp.S: Likewise.
4100         * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
4101         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
4102         Use `long int' for sigcode.  Use explicit register numbers instead
4103         of names.
4104         (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
4105         * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
4106
4107 Thu Feb  2 20:06:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4108
4109         * hurd/hurdmalloc.c: Remove bogus bcopy decl.
4110
4111         * mach/mig_strncpy.c: Add missing `const' in prototype.  Rewritten
4112         using __stpncpy.
4113
4114         * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
4115
4116         * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
4117
4118 Tue Jan 31 13:49:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4119
4120         * mach/mig_strncpy.c: Include mach.h instead of string.h.  Use
4121         vm_size_t instead of size_t for arg and return types.
4122
4123         * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
4124         already does.
4125
4126 Mon Jan 30 00:33:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4127
4128         * set-hooks.h (RUN_HOOK): Dereference PTR properly.
4129
4130         * configure.in (friendly stddef.h check): Write override defn for
4131         `stddef.h' Make variable.
4132         (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
4133
4134         * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
4135
4136         * Rules ($(objpfx)dummy.o): Write an empty function, not just an
4137         empty file.
4138
4139         * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
4140
4141 Sat Jan 28 03:38:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4142
4143         * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
4144
4145         * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
4146         mach/machine/syscall_sw.h with this.
4147
4148 Fri Jan 27 18:33:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4149
4150         * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
4151         instead of <lock-intern.h>.
4152         (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
4153         (_hurd_critical_section_lock): Use spin lock operators.
4154         Don't hold the sigstate lock, unlock it after setting the flag.
4155         (_hurd_critical_section_unlock): Take the sigstate lock
4156         to clear the flag; while holding it, check pending signals.  After
4157         unlocking, sig_post ourselves if there were pending signals.
4158
4159         * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
4160         sigstate lock.  If it is locked, clear SS->critical_section and
4161         SS->context, and unlock it.
4162
4163         * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
4164
4165         * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
4166         * munch-tmpl.c: Likewise.
4167
4168         * mach/Makefile (routines): Don't filter out syscall_% from
4169         $(mach-syscalls).
4170
4171 Fri Jan 27 17:53:49 1995  Jim Meyering  (meyering@comco.com)
4172
4173         * posix/fnmatch.c: Declare errno if it's not defined.
4174         That's simpler than testing #if !defined(__GNU_LIBRARY__)
4175         && !defined(STDC_HEADERS).
4176
4177 Fri Jan 27 15:40:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4178
4179         * csu/Makefile: New file.
4180         * csu/initfini.c: New file.
4181         * Makefile (+other_dirs): Add csu.
4182         (+init): Variable renamed to libc-init.  All references changed.
4183         (aux): Remove start.
4184         (install-lib): Variable removed.
4185         (crt0.o, Mcrt1.o  crt1.o): Targets removed.
4186
4187         * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
4188         and $(objpfx)config.h.
4189         (static deps of RPC alias *.o): Removed.
4190
4191         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
4192         Protect macros with this.
4193         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
4194         * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
4195         * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
4196         * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
4197         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
4198         * sysdeps/unix/mips/sysdep.h: Likewise.
4199
4200 Thu Jan 26 00:02:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4201
4202         * Makerules (compile.[Sc]): Match gcc in $(CC) better.
4203         (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
4204
4205         * hurd/intr-rpc.awk: Emit weak alias.
4206
4207         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
4208         __getpgrp.
4209
4210         * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
4211         this.
4212         * sysdeps/unix/i386/sysdep.h: Likewise.
4213         * sysdeps/unix/sparc/sysdep.h: Likewise.
4214
4215         * io/ftw.c: Avoid `ret' as variable name.
4216         * posix/glob.c: Likewise.
4217
4218         * ctype/ctype.h (_ISalpha): Define as its own bit.
4219         * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
4220
4221         * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
4222         DEFINE_HOOK with this.
4223
4224 Wed Jan 25 00:45:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4225
4226         * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
4227         * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
4228         * mach/shortcut.awk: Emit weak alias.
4229         * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
4230         * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
4231         __ names.
4232         * mach/Makefile (lock): Remove spin-syms.
4233         (routines): Remove __ names, vm_page_size, msgserver_t.
4234         ($(mach-syscalls) rule): Generate files without __, add weak alias.
4235         Remove symbol alias file rule.
4236         ($(mach-shortcuts) rule): Likewise.
4237         [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
4238         * mach/Machrules (if-calls.c): Variable and rule removed.
4239         (interface-headers): Don't add $($(if)-calls).
4240         (transform-user-stub): Define to add weak alias.
4241         * set-hooks.h: Use new libc-symbols.h set access macros.
4242         * time/Makefile (routines): Remove __ names.
4243         (aux): Variable removed.
4244         * hurd/Makefile: Likewise.
4245         * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
4246         (data_start): Define as weak alias for __data_start.
4247         * sysdeps/mach/hurd/start.c: Likewise.
4248         * sysdeps/unix/sparc/start.c: Likewise.
4249         * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
4250         sys_errlist.
4251         * sysdeps/mach/hurd/errlist.awk: Likewise.
4252         * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
4253         alias for __environ.
4254         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
4255         * sysdeps/stub/setdomain.c: Use new stub_warning macro.
4256         * sysdeps/stub/getdomain.c: Likewise.
4257         * sysdeps/stub/vhangup.c: Likewise.
4258         * sysdeps/stub/swapon.c: Likewise.
4259         * sysdeps/stub/sendmsg.c: Likewise.
4260         * sysdeps/stub/recvmsg.c: Likewise.
4261         * sysdeps/stub/acct.c: Likewise.
4262         * sysdeps/stub/isinf.c: Likewise.  Add weak alias isinf for __isinf.
4263         * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
4264         * sysdeps/posix/libc_fatal.c: Likewise.
4265         * sysdeps/i386/abort.c: Likewise.
4266         * sysdeps/i386/__longjmp.c: Likewise.
4267         * sysdeps/generic/make_siglist.c: Emit defn always for
4268         _sys_siglist.  Emit weak alias to sys_siglist.
4269         * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
4270         * sysdeps/ieee754/log10.c: Likewise.
4271         * time/difftime.c: Likewise.
4272         * stdlib/random.c (srand): Define as weak alias for __srandom.
4273         * stdlib/exit.c: Remove obsolete __NORETURN keyword.  Use set-hooks
4274         macros for __libc_atexit.
4275         * stdlib/Makefile (routines): Remove __random, srand.
4276         * stdio/gets.c: Use new link_warning macro instead of old
4277         warn_references.
4278         * stdio/Makefile (routines): Remove __ names.
4279         (aux): Remove syms-stdio.
4280         * socket/Makefile (routines): Added e on getpeernam and getsocknam.
4281         * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
4282         * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
4283         * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
4284         * stdio/stdio.h: Likewise.
4285         * misc/Makefile (routines): Remove __ names.
4286         (aux): Remove data_start.
4287         * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
4288         * sysdeps/mach/hurd/brk.c: Likewise.
4289         * hurd/hurdid.c: Likewise.
4290         * hurd/hurdpid.c: Likewise.
4291         * hurd/openport.c: Likewise.
4292         * hurd/hurdsock.c: Likewise.
4293         * hurd/hurdsig.c: Likewise.
4294         * hurd/hurdrlimit.c: Likewise.
4295         * hurd/hurdmalloc.c: Likewise.
4296         * hurd/dtable.c: Likewise.
4297         * hurd/setauth.c: Likewise.
4298         * misc/progname.c: Likewise.
4299         * misc/init-misc.c: Likewise.
4300         * sysdeps/generic/vfork.c: Likewise.
4301         * sysdeps/unix/bsd/init-posix.c: Likewise.
4302         * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
4303         * time/time.h: Likewise.
4304         * math/Makefile (routines): Remove __ names.
4305         * io/Makefile: Likewise.
4306         * termios/Makefile: Likewise.
4307         * resource/Makefile: Likewise.
4308         * signal/Makefile: Likewise.
4309         * dirent/Makefile: Likewise.
4310         * assert/assert.h: Replace __NORETURN keyword with __attribute__
4311         uses.  Functions return void and macros deal with this.
4312         * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
4313         Return void.  Don't include gnu-stabs.h.
4314         * assert/assert.c: Likewise.
4315         * posix/Makefile (routines): Remove __ names, setpgrp.  Add
4316         getpgid.
4317         (aux): Remove environ.
4318         * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
4319         __attribute__ use.
4320         * posix/unistd.h (_exit): Likewise.
4321         (__getpgrp, __setpgrp): Declarations removed.
4322         (__getpgid, getpid): Declare these.
4323
4324         * configure.in (host_os=gnuelf|linuxelf): Set elf=yes.  Do AC_SUBST
4325         for gnu_ld, gnu_as, elf, and weak.  Call AC_LINK_FILEES on
4326         $libc_link_{sources,dests}.
4327         * sysdeps/unix/configure.in: Remove __ from file names.  Don't
4328         create files, just add to libc_link_{dests,sources}.
4329
4330         * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
4331
4332         * config.h.in: Add #undefs used by sysdeps configures.
4333
4334         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
4335         __setpgid, __getpgid.
4336         * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
4337         from setpgrp.c.
4338         * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
4339         from __getpgrp.c.
4340         * sysdeps/unix/bsd/getpgrp.c: File removed.
4341         * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
4342         Call __getpgid with zero.
4343         * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
4344         weak aliases setpgid and setpgrp.
4345         * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
4346         * sysdeps/unix/common/setpgid.S: Likewise.
4347         * sysdeps/mach/hurd/setpgid.c: Likewise.
4348         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
4349         Use subcall 5 to __pgrpsys.
4350         * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
4351         weak alias getpgid.
4352         * sysdeps/mach/hurd/getpgid.c: Likewise.
4353         * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
4354         * sysdeps/unix/common/getpgid.S: Likewise.
4355         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
4356         Use subcall 4 to __pgrpsys.
4357         * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
4358         * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
4359         * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
4360         * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
4361         * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
4362         * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
4363         * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
4364         * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
4365         * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
4366         * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
4367         * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
4368         * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
4369
4370         * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
4371         from __getdents.S.
4372
4373         * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
4374         * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
4375         warning.
4376         * sysdeps/stub/fexecve.c: Likewise.
4377         * sysdeps/stub/fchdir.c: Likewise.
4378         * sysdeps/stub/fchflags.c: Likewise.
4379         * sysdeps/stub/chflags.c: Likewise.
4380
4381         * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
4382         * sysdeps/generic/abort.c: Likewise.
4383         * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
4384
4385         * hurd/hurdioctl.c: Include hurd/ioctl.h.
4386         (_hurd_ioctl_handler_lists): Define this set.
4387         (_hurd_lookup_ioctl_handler): New function.
4388         * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
4389         * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
4390         (_hurd_lookup_ioctl_handler): Declare it.
4391         (ioctl_handler_t): New typedef.  Use it throughout.
4392         * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
4393         (_hurd_ioctl_handler_lists): Don't define.
4394         (__ioctl): Call _hurd_lookup_ioctl_handler.
4395
4396         * stdlib/strtol.c (maxquad): Make this const.
4397         [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
4398
4399         * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
4400         any compile tests.
4401
4402         * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
4403         __msg_sig_post_request, not __sig_post_request.
4404
4405         * misc/getusersh.c: Renamed to getusershell.c.
4406         * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
4407         * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
4408         * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
4409         * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
4410
4411 Tue Jan 24 00:14:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4412
4413         * sysdeps/stub/settod.c: Renamed to settimeofday.c.
4414         * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
4415         * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
4416         * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
4417         * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
4418         * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
4419         * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
4420         * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
4421         * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
4422         * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
4423         * sysdeps/stub/getprio.c: Renamed to getpriority.c.
4424         * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
4425         * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
4426         * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
4427         * sysdeps/stub/setprio.c: Renamed to setpriority.c.
4428         * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
4429         * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
4430         * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
4431         * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
4432         * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
4433         * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
4434         * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
4435         * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
4436         * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
4437         * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
4438         * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
4439         * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
4440         * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
4441         * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
4442         * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
4443
4444         * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
4445         of __sig_post.
4446         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
4447         * sysdeps/mach/hurd/kill.c: Likewise.
4448         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
4449
4450         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
4451         [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
4452
4453         * sysdeps/stub/remove.c: New file.
4454         * sysdeps/posix/remove.c: New file.
4455
4456 Mon Jan 23 03:26:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4457
4458         * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
4459         mktime.
4460         * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
4461         __mig_strncpy.
4462         * mach/msg-destroy.c: Renamed from __msg_dest.c.
4463         (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
4464         * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
4465         * time/tzset.c (tzname, daylight, timezone): Define as weak
4466         aliases for __ names.
4467         * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
4468         * hurd/hurdlookup.c: Add weak aliases for non-__ names.
4469         * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
4470         being defined.
4471
4472 Sun Jan 22 15:19:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4473
4474         * string/Makefile (routines): Remove __ names, index, rindex, and
4475         bcmp.
4476         * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
4477         alias for strchr.
4478         * sysdeps/generic/strchr.c: Likewise.
4479         * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
4480         alias for strrchr.
4481         * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
4482         alias for memcmp.
4483
4484         * malloc/free.c (cfree): Define this function, with weak_alias if
4485         available, otherwise a C function.
4486         * malloc/Makefile (gmalloc-routines): Remove cfree.
4487
4488 Sat Jan 21 08:08:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4489
4490         * stdio/fseek.c: Do move bufp by O when that puts it exactly at
4491         get_limit.  This has the effect of no-op'ing properly for zero.
4492
4493         * configure.in: Add AC_CONFIG_HEADER(config.h).
4494         (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
4495         * config.h.in: New file.
4496
4497         * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
4498         All code converted to use weak symbols, defined in the files which
4499         define the real code (with the __ names, the non-__ names are weak).
4500         All old symbol alias files removed.
4501         Many files renamed to remove __ prefix since there is now just
4502         the one file for both the __ and non-__ name for each function.
4503         * libc-symbols.h: New file.
4504         * set-hooks.h: Use libc-symbols.h macros for accessing symbol
4505         sets.
4506         * gnu-stabs.h: Prepend #error this file is obsolete.
4507         * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
4508         * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
4509         access.
4510         * sysdeps/unix/common/__access.S: Likewise.
4511         * sysdeps/mach/hurd/__access.c: Likewise.
4512         * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
4513         adjtime.
4514         * sysdeps/unix/common/__adjtime.S: Likewise.
4515         * sysdeps/mach/__adjtime.c: Likewise.
4516         * sysdeps/mach/hurd/__adjtime.c: Likewise.
4517         * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
4518         * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
4519         * sysdeps/unix/bsd/vax/__brk.S: Likewise.
4520         * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
4521         * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
4522         * sysdeps/unix/i386/__brk.S: Likewise.
4523         * sysdeps/unix/sparc/__brk.S: Likewise.
4524         * sysdeps/unix/mips/__brk.S: Likewise.
4525         * sysdeps/mach/hurd/__brk.c: Likewise.
4526         * sysdeps/standalone/__brk.c: Likewise.
4527         * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
4528         * sysdeps/unix/__chdir.S: Likewise.
4529         * sysdeps/mach/hurd/__chdir.c: Likewise.
4530         * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
4531         * sysdeps/unix/__chmod.S: Likewise.
4532         * sysdeps/mach/hurd/__chmod.c: Likewise.
4533         * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
4534         * sysdeps/unix/__chown.S: Likewise.
4535         * sysdeps/mach/hurd/__chown.c: Likewise.
4536         * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
4537         * sysdeps/unix/__close.S: Likewise.
4538         * sysdeps/mach/hurd/__close.c: Likewise.
4539         * sysdeps/standalone/__close.c: Likewise.
4540         * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
4541         alias copysign.
4542         * sysdeps/ieee754/__copysign.c: Likewise.
4543         * sysdeps/alpha/__copysign.c: Likewise.
4544         * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
4545         * sysdeps/m68k/fpu/__drem.c: Likewise.
4546         * sysdeps/stub/__drem.c: Likewise.
4547         * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
4548         * sysdeps/stub/__dup.c: Likewise.
4549         * sysdeps/unix/__dup.S: Likewise.
4550         * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
4551         * sysdeps/stub/__dup2.c: Likewise.
4552         * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
4553         * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
4554         * sysdeps/unix/common/__dup2.S: Likewise.
4555         * sysdeps/mach/hurd/__dup2.c: Likewise.
4556         * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
4557         execve.
4558         * sysdeps/unix/__execve.S: Likewise.
4559         * sysdeps/mach/hurd/__execve.c: Likewise.
4560         * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
4561         expm1.
4562         * sysdeps/m68k/fpu/__expm1.c: Likewise.
4563         * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
4564         fchmod.
4565         * sysdeps/unix/common/__fchmod.S: Likewise.
4566         * sysdeps/mach/hurd/__fchmod.c: Likewise.
4567         * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
4568         fchown.
4569         * sysdeps/unix/common/__fchown.S: Likewise.
4570         * sysdeps/mach/hurd/__fchown.c: Likewise.
4571         * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
4572         * sysdeps/unix/__fcntl.S: Likewise.
4573         * sysdeps/mach/hurd/__fcntl.c: Likewise.
4574         * math/__finite.c: Renamed to finite.c; added weak alias finite.
4575         * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
4576         * sysdeps/stub/__flock.c: Likewise.
4577         * sysdeps/unix/bsd/__flock.S: Likewise.
4578         * sysdeps/mach/hurd/__flock.c: Likewise.
4579         * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
4580         fopenport.
4581         * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
4582         * sysdeps/unix/__fork.S: Likewise.
4583         * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
4584         * sysdeps/unix/i386/__fork.S: Likewise.
4585         * sysdeps/unix/sparc/__fork.S: Likewise.
4586         * sysdeps/unix/mips/__fork.S: Likewise.
4587         * sysdeps/mach/hurd/__fork.c: Likewise.
4588         * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
4589         alias fpathconf.
4590         * sysdeps/stub/__fpathcon.c: Likewise.
4591         * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
4592         * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
4593         * sysdeps/unix/__fstat.S: Likewise.
4594         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
4595         * sysdeps/mach/hurd/__fstat.c: Likewise.
4596         * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
4597         getdelim.
4598         * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
4599         alias getdents.
4600         * sysdeps/unix/__getdents.c: Likewise.
4601         * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
4602         * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
4603         * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
4604         * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
4605         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
4606         * sysdeps/unix/sysv/__getdents.c: Likewise.
4607         * sysdeps/mach/hurd/__getdents.c: Likewise.
4608         * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
4609         * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
4610         alias getdtablesize.
4611         * sysdeps/stub/__getdtsz.c: Likewise.
4612         * sysdeps/unix/bsd/__getdtsz.S: Likewise.
4613         * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
4614         * sysdeps/mach/hurd/__getdtsz.c: Likewise.
4615         * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
4616         getegid.
4617         * sysdeps/unix/__getegid.S: Likewise.
4618         * sysdeps/mach/hurd/__getegid.c: Likewise.
4619         * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
4620         geteuid.
4621         * sysdeps/unix/__geteuid.S: Likewise.
4622         * sysdeps/mach/hurd/__geteuid.c: Likewise.
4623         * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
4624         getgid.
4625         * sysdeps/unix/__getgid.S: Likewise.
4626         * sysdeps/mach/hurd/__getgid.c: Likewise.
4627         * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
4628         alias getgroups.
4629         * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
4630         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
4631         * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
4632         * sysdeps/unix/common/__getgrps.S: Likewise.
4633         * sysdeps/mach/hurd/__getgrps.c: Likewise.
4634         * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
4635         alias gethostname.
4636         * sysdeps/unix/inet/__gethstnm.S: Likewise.
4637         * sysdeps/unix/sysv/__gethstnm.c: Likewise.
4638         * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
4639         * sysdeps/mach/hurd/__gethstnm.c: Likewise.
4640         * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
4641         alias getitimer.
4642         * sysdeps/unix/common/__getitmr.S: Likewise.
4643         * sysdeps/mach/hurd/__getitmr.c: Likewise.
4644         * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
4645         * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
4646         alias getpagesize.
4647         * sysdeps/stub/__getpgsz.c: Likewise.
4648         * sysdeps/unix/__getpgsz.c: Likewise.
4649         * sysdeps/unix/bsd/__getpgsz.S: Likewise.
4650         * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
4651         * sysdeps/mach/__getpgsz.c: Likewise.
4652         * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
4653         getpid.
4654         * sysdeps/unix/__getpid.S: Likewise.
4655         * sysdeps/mach/hurd/__getpid.c: Likewise.
4656         * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
4657         getppid.
4658         * sysdeps/unix/__getppid.S: Likewise.
4659         * sysdeps/mach/hurd/__getppid.c: Likewise.
4660         * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
4661         alias gettimeofday.
4662         * sysdeps/stub/__gettod.c: Likewise.
4663         * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
4664         * sysdeps/unix/common/__gettod.S: Likewise.
4665         * sysdeps/mach/__gettod.c: Likewise.
4666         * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
4667         getuid.
4668         * sysdeps/unix/__getuid.S: Likewise.
4669         * sysdeps/mach/hurd/__getuid.c: Likewise.
4670         * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
4671         alias infnan.
4672         * sysdeps/ieee754/__infnan.c: Likewise.
4673         * sysdeps/vax/__infnan.c: Likewise.
4674         * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
4675         * sysdeps/unix/__ioctl.S: Likewise.
4676         * sysdeps/mach/hurd/__ioctl.c: Likewise.
4677         * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
4678         isatty.
4679         * sysdeps/stub/__isatty.c: Likewise.
4680         * sysdeps/unix/bsd/__isatty.c: Likewise.
4681         * sysdeps/mach/hurd/__isatty.c: Likewise.
4682         * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
4683         isinf.
4684         * sysdeps/m68k/fpu/__isinf.c: Likewise.
4685         * sysdeps/stub/__isinf.c: Likewise.
4686         * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
4687         isnan.
4688         * sysdeps/ieee754/__isnan.c: Likewise.
4689         * sysdeps/m68k/fpu/__isnan.c: Likewise.
4690         * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
4691         * sysdeps/unix/__kill.S: Likewise.
4692         * sysdeps/mach/hurd/__kill.c: Likewise.
4693         * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
4694         * sysdeps/unix/__link.S: Likewise.
4695         * sysdeps/mach/hurd/__link.c: Likewise.
4696         * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
4697         * sysdeps/m68k/fpu/__logb.c: Likewise.
4698         * sysdeps/stub/__logb.c: Likewise.
4699         * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
4700         * sysdeps/unix/__lseek.S: Likewise.
4701         * sysdeps/mach/hurd/__lseek.c: Likewise.
4702         * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
4703         lstat.
4704         * sysdeps/stub/__lstat.c: Likewise.
4705         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
4706         * sysdeps/unix/common/__lstat.S: Likewise.
4707         * sysdeps/mach/hurd/__lstat.c: Likewise.
4708         * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
4709         alias memccpy.
4710         * sysdeps/vax/__memccpy.c: Likewise.
4711         * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
4712         * sysdeps/unix/sysv/__mkdir.c: Likewise.
4713         * sysdeps/unix/common/__mkdir.S: Likewise.
4714         * sysdeps/mach/hurd/__mkdir.c: Likewise.
4715         * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
4716         * sysdeps/unix/__mknod.S: Likewise.
4717         * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
4718         * sysdeps/mach/hurd/__mknod.c: Likewise.
4719         * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
4720         * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
4721         mach_msg_server.
4722         * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
4723         * sysdeps/unix/__open.S: Likewise.
4724         * sysdeps/mach/hurd/__open.c: Likewise.
4725         * sysdeps/standalone/__open.c: Likewise.
4726         * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
4727         alias pathconf.
4728         * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
4729         * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
4730         * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
4731         * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
4732         * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
4733         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
4734         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
4735         * sysdeps/unix/i386/__pipe.S: Likewise.
4736         * sysdeps/unix/sparc/__pipe.S: Likewise.
4737         * sysdeps/unix/mips/__pipe.S: Likewise.
4738         * sysdeps/mach/hurd/__pipe.c: Likewise.
4739         * stdlib/__random.c: Renamed to random.c; added weak alias random.
4740         * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
4741         * sysdeps/unix/__read.S: Likewise.
4742         * sysdeps/mach/hurd/__read.c: Likewise.
4743         * sysdeps/standalone/__read.c: Likewise.
4744         * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
4745         alias readlink.
4746         * sysdeps/unix/common/__readlink.S: Likewise.
4747         * sysdeps/mach/hurd/__readlink.c: Likewise.
4748         * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
4749         * sysdeps/m68k/fpu/__rint.c: Likewise.
4750         * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
4751         * sysdeps/unix/sysv/__rmdir.c: Likewise.
4752         * sysdeps/unix/common/__rmdir.S: Likewise.
4753         * sysdeps/mach/hurd/__rmdir.c: Likewise.
4754         * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
4755         * sysdeps/stub/__sbrk.c: Likewise.
4756         * sysdeps/mach/hurd/__sbrk.c: Likewise.
4757         * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
4758         * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
4759         select.
4760         * sysdeps/unix/common/__select.S: Likewise.
4761         * sysdeps/mach/hurd/__select.c: Likewise.
4762         * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
4763         * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
4764         setgid.
4765         * sysdeps/unix/__setgid.S: Likewise.
4766         * sysdeps/unix/bsd/__setgid.c: Likewise.
4767         * sysdeps/mach/hurd/__setgid.c: Likewise.
4768         * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
4769         setitmr
4770         * sysdeps/unix/common/__setitmr.S: Likewise.
4771         * sysdeps/mach/hurd/__setitmr.c: Likewise.
4772         * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
4773         setpgrp
4774         * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
4775         * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
4776         * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
4777         * sysdeps/unix/common/__setpgrp.S: Likewise.
4778         * sysdeps/mach/hurd/__setpgrp.c: Likewise.
4779         * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
4780         alias setregid.
4781         * sysdeps/unix/common/__setregid.S: Likewise.
4782         * sysdeps/mach/hurd/__setregid.c: Likewise.
4783         * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
4784         alias setreuid.
4785         * sysdeps/unix/common/__setreuid.S: Likewise.
4786         * sysdeps/mach/hurd/__setreuid.c: Likewise.
4787         * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
4788         setsid.
4789         * sysdeps/unix/bsd/__setsid.c: Likewise.
4790         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
4791         * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
4792         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
4793         * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
4794         * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
4795         * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
4796         * sysdeps/mach/hurd/__setsid.c: Likewise.
4797         * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
4798         settimeofday.
4799         * sysdeps/unix/bsd/__settod.S: Likewise.
4800         * sysdeps/unix/sysv/__settod.c: Likewise.
4801         * sysdeps/mach/hurd/__settod.c: Likewise.
4802         * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
4803         setuid.
4804         * sysdeps/unix/__setuid.S: Likewise.
4805         * sysdeps/unix/bsd/__setuid.c: Likewise.
4806         * sysdeps/mach/hurd/__setuid.c: Likewise.
4807         * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
4808         alias sigblock.
4809         * sysdeps/stub/__sigblock.c: Likewise.
4810         * sysdeps/unix/bsd/__sigblock.S: Likewise.
4811         * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
4812         * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
4813         * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
4814         alias sigpause.
4815         * sysdeps/stub/__sigpause.c: Likewise.
4816         * sysdeps/unix/bsd/__sigpause.S: Likewise.
4817         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
4818         * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
4819         alias sigprocmask.
4820         * sysdeps/unix/bsd/__sigproc.c: Likewise.
4821         * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
4822         * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
4823         * sysdeps/mach/hurd/__sigproc.c: Likewise.
4824         * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
4825         alias sigreturn.
4826         * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
4827         * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
4828         * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
4829         * sysdeps/unix/i386/__sigret.S: Likewise.
4830         * sysdeps/unix/mips/__sigret.S: Likewise.
4831         * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
4832         * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
4833         * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
4834         * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
4835         sigvec.
4836         * sysdeps/stub/__sigvec.c: Likewise.
4837         * sysdeps/unix/bsd/__sigvec.S: Likewise.
4838         * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
4839         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
4840         * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
4841         * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
4842         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
4843         * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
4844         * sysdeps/unix/__stat.S: Likewise.
4845         * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
4846         * sysdeps/mach/hurd/__stat.c: Likewise.
4847         * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
4848         alias stpncpy.
4849         * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
4850         symlink.
4851         * sysdeps/unix/common/__symlink.S: Likewise.
4852         * sysdeps/mach/hurd/__symlink.c: Likewise.
4853         * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
4854         alias sysconf.
4855         * sysdeps/stub/__sysconf.c: Likewise.
4856         * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
4857         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
4858         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
4859         * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
4860         * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
4861         * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
4862         * sysdeps/unix/bsd/__times.c: Likewise.
4863         * sysdeps/unix/sysv/__times.S: Likewise.
4864         * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
4865         * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
4866         * sysdeps/unix/__umask.S: Likewise.
4867         * sysdeps/mach/hurd/__umask.c: Likewise.
4868         * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
4869         unlink.
4870         * sysdeps/unix/__unlink.S: Likewise.
4871         * sysdeps/mach/hurd/__unlink.c: Likewise.
4872         * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
4873         utimes.
4874         * sysdeps/unix/bsd/__utimes.S: Likewise.
4875         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
4876         * sysdeps/mach/hurd/__utimes.c: Likewise.
4877         * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
4878         vfork.
4879         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
4880         * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
4881         * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
4882         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
4883         * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
4884         * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
4885         * sysdeps/unix/sparc/__vfork.S: Likewise.
4886         * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
4887         * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
4888         * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
4889         * sysdeps/stub/__wait.c: Likewise.
4890         * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
4891         * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
4892         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
4893         * sysdeps/unix/bsd/vax/__wait.S: Likewise.
4894         * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
4895         * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
4896         * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
4897         * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
4898         * sysdeps/unix/i386/__wait.S: Likewise.
4899         * sysdeps/unix/mips/__wait.S: Likewise.
4900         * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
4901         * sysdeps/stub/__wait3.c: Likewise.
4902         * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
4903         * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
4904         * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
4905         * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
4906         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
4907         * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
4908         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
4909         * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
4910         * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
4911         * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
4912         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
4913         * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
4914         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
4915         * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
4916         * sysdeps/mach/hurd/__wait4.c: Likewise.
4917         * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
4918         waitpid.
4919         * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
4920         * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
4921         * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
4922         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
4923         * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
4924         * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
4925         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
4926         * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
4927         * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
4928         * sysdeps/unix/__write.S: Likewise.
4929         * sysdeps/mach/hurd/__write.c: Likewise.
4930         * sysdeps/standalone/__write.c: Likewise.
4931         * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
4932         alias tcgetattr.
4933         * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
4934         * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
4935         * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
4936         * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
4937         * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
4938         alias sigaction.
4939         * sysdeps/unix/bsd/__sigact.c: Likewise.
4940         * sysdeps/unix/sysv/__sigact.c: Likewise.
4941         * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
4942         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
4943         * sysdeps/mach/hurd/__sigact.c: Likewise.
4944         * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
4945         alias sigsetmask.
4946         * sysdeps/stub/__sigstmsk.c: Likewise.
4947         * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
4948         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
4949         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
4950         * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
4951         alias getrusage.
4952         * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
4953         * sysdeps/unix/common/__getrusag.S: Likewise.
4954         * hurd/task2pid.c: File removed.
4955         * hurd/setauth.c: File removed.
4956         * hurd/pid2task.c: File removed.
4957         * hurd/hurdsyms.c: File removed.
4958         * hurd/getdport.c: File removed.
4959         * hurd/fopenport.c: File removed.
4960         * mach/thread-sym.c: File removed.
4961         * mach/spin-syms.c: File removed.
4962         * mach/msgserver_t.c: File removed.
4963         * mach/msgserver.c: File removed.
4964         * mach/msg.c: File removed.
4965         * mach/mig_syms.c: File removed.
4966         * malloc/mcheck-init.c: File removed.
4967         * malloc/cfree.c: File removed.
4968         * io/flock.c: File removed.
4969         * io/write.c: File removed.
4970         * io/unlink.c: File removed.
4971         * io/umask.c: File removed.
4972         * io/symlink.c: File removed.
4973         * io/rmdir.c: File removed.
4974         * io/readlink.c: File removed.
4975         * io/read.c: File removed.
4976         * io/pipe.c: File removed.
4977         * io/open.c: File removed.
4978         * io/mkdir.c: File removed.
4979         * io/lstat.c: File removed.
4980         * io/lseek.c: File removed.
4981         * io/link.c: File removed.
4982         * io/isatty.c: File removed.
4983         * io/stat.c: File removed.
4984         * io/fstat.c: File removed.
4985         * io/fchown.c: File removed.
4986         * io/fchmod.c: File removed.
4987         * io/dup2.c: File removed.
4988         * io/dup.c: File removed.
4989         * io/close.c: File removed.
4990         * io/fcntl.c: File removed.
4991         * io/chmod.c: File removed.
4992         * io/chdir.c: File removed.
4993         * io/access.c: File removed.
4994         * io/chown.c: File removed.
4995         * time/tzset.c: File removed.
4996         * time/timelocal.c: File removed.
4997         * time/syms-time.c: File removed.
4998         * time/settod.c: File removed.
4999         * time/setitmr.c: File removed.
5000         * time/gettod.c: File removed.
5001         * time/getitmr.c: File removed.
5002         * time/adjtime.c: File removed.
5003         * termios/tcgetattr.c: File removed.
5004         * string/stpncpy.c: File removed.
5005         * string/rindex.c: File removed.
5006         * string/memccpy.c: File removed.
5007         * string/index.c: File removed.
5008         * string/bcmp.c: File removed.
5009         * stdlib/srand.c: File removed.
5010         * stdlib/random.c: File removed.
5011         * stdio/vsscanf.c: File removed.
5012         * stdio/vfscanf.c: File removed.
5013         * stdio/syms-stdio.c: File removed.
5014         * stdio/remove.c: File removed.
5015         * stdio/getline.c: File removed.
5016         * stdio/getdelim.c: File removed.
5017         * signal/ssignal.c: File removed.
5018         * signal/sigvec.c: File removed.
5019         * signal/sigsetmask.c: File removed.
5020         * signal/sigret.c: File removed.
5021         * signal/sigproc.c: File removed.
5022         * signal/sigpause.c: File removed.
5023         * signal/sigblock.c: File removed.
5024         * signal/sigaction.c: File removed.
5025         * signal/kill.c: File removed.
5026         * signal/gsignal.c: File removed.
5027         * setjmp/siglongjmp.c: File removed.
5028         * setjmp/_longjmp.c: File removed.
5029         * resource/getrusage.c: File removed.
5030         * posix/waitpid.c: File removed.
5031         * posix/wait4.c: File removed.
5032         * posix/wait3.c: File removed.
5033         * posix/wait.c: File removed.
5034         * posix/times.c: File removed.
5035         * posix/sysconf.c: File removed.
5036         * posix/setuid.c: File removed.
5037         * posix/setsid.c: File removed.
5038         * posix/setpgrp.c: File removed.
5039         * posix/setpgid.c: File removed.
5040         * posix/setgid.c: File removed.
5041         * posix/pathconf.c: File removed.
5042         * posix/getuid.c: File removed.
5043         * posix/getppid.c: File removed.
5044         * posix/getpid.c: File removed.
5045         * posix/getgrps.c: File removed.
5046         * posix/getgid.c: File removed.
5047         * posix/geteuid.c: File removed.
5048         * posix/getegid.c: File removed.
5049         * posix/fpathcon.c: File removed.
5050         * posix/fork.c: File removed.
5051         * posix/execve.c: File removed.
5052         * posix/environ.c: File removed.
5053         * misc/utimes.c: File removed.
5054         * misc/setreuid.c: File removed.
5055         * misc/setregid.c: File removed.
5056         * misc/select.c: File removed.
5057         * misc/sbrk.c: File removed.
5058         * misc/mknod.c: File removed.
5059         * misc/ioctl.c: File removed.
5060         * misc/getpgsz.c: File removed.
5061         * misc/gethstnm.c: File removed.
5062         * misc/getdtsz.c: File removed.
5063         * misc/data_start.c: File removed.
5064         * misc/brk.c: File removed.
5065         * math/scalb.c: File removed.
5066         * math/rint.c: File removed.
5067         * math/logb.c: File removed.
5068         * math/isnan.c: File removed.
5069         * math/isinf.c: File removed.
5070         * math/infnan.c: File removed.
5071         * math/finite.c: File removed.
5072         * math/expm1.c: File removed.
5073         * math/drem.c: File removed.
5074         * math/copysign.c: File removed.
5075         * math/__scalb.c: File removed.
5076         * dirent/getdents.c: File removed.
5077
5078 Fri Jan 20 16:11:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5079
5080         * sysdeps/generic/morecore.c (__default_morecore): Use
5081         __malloc_ptrdiff_t; don't cast arg to int.
5082
5083         * resolv/getnetnamadr.c: Include "conf/portability.h".
5084
5085 Thu Jan 19 02:20:04 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5086
5087         * stdlib/strtol.c: Include errno.h.
5088         [QUAD] (ULONG_MAX): Define to a static variable initialized to
5089         ULONG_LONG_MAX. This is to work around a GCC bug in using the
5090         constant in arithmetic.
5091
5092         * posix/unistd.h (daemon): Declare it.
5093
5094         * malloc/mcheck-init.c: Remove GNU ld hacks.
5095         (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
5096         * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
5097         (initialize): Call the hook if set.
5098         * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
5099         (__malloc_initialize_hook): Declare new hook variable.
5100
5101 Wed Jan 18 01:43:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5102
5103         * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
5104         * hurd/hurdpid.c: Likewise.
5105         * hurd/hurdauth.c: Likewise.
5106
5107 Tue Jan 17 03:16:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5108
5109         * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
5110         if any are successful.
5111
5112         * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
5113         (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
5114         _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
5115         functions.
5116         (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
5117
5118         * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
5119         * hurd/hurd-raise.c: Likewise.
5120         * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
5121
5122         * sysdeps/mach/hurd/ptrace.c: New file.
5123
5124         * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
5125         interface, which has normal EINTR semantics.  Instead of waiting
5126         for io_select_done notification messages, send io_select messages
5127         with short reply timeout and then wait for io_select_reply
5128         messages.
5129
5130         * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
5131         EXEC_INHERITED) to file_exec.
5132
5133         * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
5134         use sig_post_untraced_reply.  All callers changed.
5135         (abort_thread, abort_rpcs): Take same new arg and pass it through.
5136         All callers changed.
5137         (_hurd_internal_post_signal): Take new arg UNTRACED.
5138         If zero and process is traced, stop with SIGNO as stop signal.  If
5139         nonzero, resume process before delivering signal (unless
5140         ACT==stop).  Expand local fn sigwakeup into block at end taken iff
5141         SIGNO!=0.
5142         (signal_allowed): New function, broken out of _S_sig_post.
5143         (_S_sig_post): Call it.  Pass UNTRACED arg of false to
5144         _hurd_internal_post_signal.
5145         (_S_sig_post_untraced): New function.  Just like _S_sig_post, but
5146         pass true for UNTRACED.
5147         * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
5148         UNTRACED.
5149         * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
5150         to _hurd_internal_post_signal (value zero).
5151
5152 Mon Jan 16 16:40:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5153
5154         * hurd/hurdinit.c (_hurd_exec_flags): New variable.
5155         (_hurd_init): Initialize it from FLAGS arg.
5156         (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
5157         raise a SIGTRAP signal (with a sigcode of zero).
5158         * hurd/hurd.h (_hurd_exec_flags): Declare it.
5159
5160         * Version 1.09.5.
5161
5162 Mon Jan 16 16:16:55 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
5163
5164         * malloc/malloc.c (malloc): Fix 1-off in previous change.
5165
5166 Mon Jan 16 15:49:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5167
5168         * posix/glob/Makefile.in: Remove config.h and config.log.
5169
5170 Sun Jan 15 06:56:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5171
5172         * posix/glob/configure.in: Add AC_CONST check.
5173
5174         * conf/portability.h: #undef sun.
5175         * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
5176         * resolv/getnetnamadr.c: Likewise.
5177
5178         * socket/Makefile (headers): Add sockaddrcom.h.
5179         * inet/netinet/in.h: Include <sockaddrcom.h>.
5180         (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
5181         * socket/sys/un.h (struct sockaddr_in): Likewise.
5182         * socket/sys/socket.h (struct sockaddr): Likewise.
5183         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
5184         * sysdeps/generic/sockaddrcom.h: New file.
5185
5186         * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
5187         * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
5188         F_FREESP): New macros.
5189         * sysdeps/posix/truncate.c: New file.
5190
5191         * malloc/malloc.c (malloc): Fix typos in RMS's change.
5192
5193         * malloc/Makefile (dist-routines): Add malloc-find.
5194         * malloc/malloc.h (malloc_find_object_address): Declare it.
5195         * malloc/malloc-find.c: New file.
5196
5197         * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
5198         __malloc_size_t.
5199         (malloc_info): Use that type for member `busy.info.size'.
5200
5201         * stdlib/strtol.c: Change uses of `long' keyword throughout to use
5202         `LONG' macro.
5203         [! QUAD] (LONG): Define as long.
5204         [QUAD] (LONG): Define as long long.
5205         [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
5206         versions.
5207         [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
5208         * stdlib/Makefile (routines): Add strtoq and strtouq.
5209         * stdlib/strtoq.c, stdlib/strtouq.c: New files.
5210         * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
5211         Declare them.
5212
5213         * stdio/vfprintf.c: If there was a precision specified, ignore the
5214         0 flag and always pad with spaces.
5215
5216         * stdio/vfprintf.c: Don't use strchr to skip text until next %.
5217         Use a loop and also stop on first !isascii char.
5218
5219 Wed Jan 11 00:07:10 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
5220
5221         * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
5222
5223         * malloc/malloc.c (malloc): For a multi-block object, store a
5224         negative number into the busy.info.size of all but the first block.
5225
5226 Tue Jan 10 13:45:20 1995  Brendan Kehoe  <brendan@zen.org>
5227
5228         * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
5229         instead of t0, t1, and t2.
5230
5231 Tue Jan 10 05:53:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5232
5233         * malloc/memalign.c (__memalign_hook): New variable.
5234         (memalign): Call it if set.
5235         * malloc/malloc.h (__memalign_hook): Declare new variable.
5236
5237 Wed Dec 28 03:27:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5238
5239         * conf/portability.h: Include string.h and stdlib.h.
5240         * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
5241         * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
5242         resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
5243         resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
5244         resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
5245
5246         * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro.  Replace
5247         all uses of `extern __inline' with `__m81_inline'.
5248
5249         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
5250         * sysdeps/unix/__fork.S: Swap args in subl.
5251
5252         * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
5253         compatibility.
5254
5255 Tue Dec 20 13:33:20 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
5256
5257         * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
5258         of swtch.
5259         * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
5260         * mach/spin-solid.c (__spin_lock_solid): Likewise.
5261
5262 Thu Dec 15 12:01:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5263
5264         * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
5265         for PBUF.
5266         (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
5267
5268         * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
5269
5270 Wed Dec 14 18:20:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5271
5272         * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
5273         in `bis' insn; immediate must be second.
5274
5275         * sysdeps/unix/__fork.S: Use subl instead of decl.
5276         * sysdeps/unix/i386/__fork.S: New file.
5277
5278         * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
5279         Remove A macro; just use `asm volatile' with proper quotes in each
5280         line.
5281         * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
5282         jmp target register.
5283
5284         * time/africa, time/asia, time/australasia, time/emkdir.c,
5285         time/europe, time/ialloc.c, time/northamerica, time/private.h,
5286         time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
5287         and data from ADO 94h distribution.
5288
5289         * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
5290         __sigjmp_save in %g1 and jmp there.  jmp cannot contain a complete
5291         absolute pointer.  Put second store in jmp delay slot.
5292
5293 Tue Dec 13 15:47:52 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
5294
5295         * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
5296         __sigsetjmp in %g1 and jmp there.  jmp cannot contain a complete
5297         absolute pointer.
5298         * sysdeps/sparc/bsd-setjmp.S: Likewise.
5299
5300         * configure.in: Use ; before } in { ... } exprs.
5301
5302 \f
5303
5304 See ChangeLog.4 for earlier changes.