Mon Feb 27 07:00:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
[platform/upstream/glibc.git] / ChangeLog
1 Mon Feb 27 07:00:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2
3         * elf/libelf.h: New file.
4         * elf/elf_hash.c: New file.
5
6 Sun Feb 26 15:51:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
7
8         * malloc/malloc.c (morecore): Account in NEWSIZE for the
9         malloc_info structures for each new block.
10
11 Sat Feb 25 02:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
12
13         * sysdeps/mach/hurd/kill.c: When the process has no message port
14         registered and we have its task port, translate a few signals to
15         task_suspend/task_resume/task_terminate.
16
17 Fri Feb 24 14:40:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
18
19         * io/Makefile (routines): Add euidaccess.
20         * sysdeps/mach/hurd/euidaccess.c: New file.
21         * sysdeps/stub/euidaccess.c: New file.
22         * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
23
24         * dirent/Makefile (routines): Add dirfd.
25         * sysdeps/stub/dirfd.c: New file.
26         * sysdeps/unix/dirfd.c: New file.
27         * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
28         * dirent/dirent.h (dirfd): Declare new function.  Define as macro
29         _DIR_dirfd if that is defined.
30         * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
31         with `void *__fd'.
32         * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
33         Open the file with `open'; set FD_CLOEXEC on the fd.
34         * sysdeps/mach/hurd/closedir.c: Likewise.
35         * sysdeps/mach/hurd/readdir.c: Likewise.
36         * sysdeps/mach/hurd/dirfd.c: New file.
37
38         * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
39         directory.
40         (glob/ChangeLog): Likewise.
41
42         * locale/locale.h (LC_*): Use small integers instead of bit masks.
43
44         * stdio/bug4.c: Put temporary files in /tmp.
45         * stdio/bug3.c: Likewise.
46         * stdio/bug5.c: Likewise.
47         * stdio/test-fseek.c: Likewise.
48         * stdio/test-popen.c: Likewise.
49
50 Wed Feb 22 00:44:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
51
52         * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
53
54         * libc-symbols.h (weak_symbol): New macro.
55
56         * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
57         elts with null handlers.
58
59         * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
60
61 Tue Feb 21 21:53:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
62
63         * stdlib/random.c (__srandom): Change algorithm used to populate
64         the state array.
65         (randtbl): Recomputed with new algorithm.
66
67         * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
68         to original value of `crypt'.
69         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
70         (crypt): New variable, set to crypt.solar.
71
72 Tue Feb 21 11:50:37 1995  Brendan Kehoe  (brendan@zen.org)
73
74         * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
75
76         * config.h.in: Put comment around ^L to pacify Solaris as here too.
77
78 Tue Feb 21 00:10:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
79
80         * string/Makefile (distribute): Add pagecopy.h.
81         * sysdeps/mach/pagecopy.h: New file.
82         * sysdeps/generic/pagecopy.h: New file.
83         * sysdeps/generic/memcpy.c: Include pagecopy.h; call
84         PAGE_COPY_FWD_MAYBE first when word aligned.
85         * sysdeps/generic/memmove.c: Likewise.
86
87         * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
88         (getpgrp): Call __getpgid instead of __getpgrp.
89
90         * Makefile (subdirs): Add elf first.
91         * elf/Makefile: New file.
92         * elf/elf.h: New file.
93
94         * sysdeps/unix/start.c (errno): Only define if it's not #define'd
95         as a macro.
96         [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
97         indirection.
98
99         * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
100         add crti_s, crtn_s.
101         (install-lib, extra-objs, generated-, omit-deps): Use that.
102         (initfini): New canned sequence, broken out of crt[in].s rule.
103         (crt[in].s rule): Use it.
104         (crt[in]_s.s): New rule.
105         * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
106         (_init, _fini): Use GLOBAL as storage class.
107         Add self reference to avoid GCC optimizing out the functions.
108
109         * Makefile (headers): Remove $(stddef.h).
110         * Makeconfig (stddef.h): Variable removed; now require gcc version
111         >= 2.2.
112         * stddef.h: File removed.
113
114 Mon Feb 20 19:42:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
115
116         * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
117         definition.
118         * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
119
120         * stdlib/strtod.c: Allow the string to start with a decimal point
121         without a leading zero.
122
123 Mon Feb 20 04:04:57 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
124
125         * Makefile (subdirs): Put csu first.
126
127         * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
128
129         * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
130         to crt[in].o.
131         (csu-objpfx): New variable.
132         (+link): Use it to find start.o and $(+preinit), $(+postinit).
133
134         * Rules (subdir_lib, all): Depend on objs.
135
136         * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
137
138         * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
139         access to float.h macros.
140
141         * misc/efgcvt.c: New file.
142         * misc/Makefile (routines): Add efgcvt.
143
144 Sun Feb 19 20:10:43 1995  Brendan Kehoe  <brendan@zen.org>
145
146         * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
147         * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
148         to avoid a misreference that would override sysdeps/generic/mul.c.
149         * sysdeps/sparc/Dist: Likewise.
150
151 Sun Feb 19 17:46:13 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
152
153         * posix/Makefile (aux): Add environ.
154         * posix/environ.c: New file.
155         * sysdeps/unix/sparc/start.c: Remove __environ definition.
156         * sysdeps/unix/start.c: Likewise.
157         * sysdeps/unix/sysv/irix4/start.c: Likewise.
158         * sysdeps/mach/hurd/start.c: Likewise.
159         * sysdeps/mach/start.c: Likewise.
160         * sysdeps/stub/start.c: Likewise.
161
162         * sysdeps/unix/make_errlist.c: In produced program, test
163         HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
164         * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
165         Remove extra weak alias.
166
167         * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
168         in #include.
169
170         * libc-symbols.h: Put comment around ^L to pacify Solaris as.
171
172         * sysdeps/posix/Makefile (cded-objdir-includes): New variable
173         replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
174         $(CPPFLAGS).
175         (mk-stdiolim): Use it instead.
176
177 Fri Feb 17 12:16:27 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
178
179         * mach/mach_init.c (__vm_page_size): Make it initialized.  It does
180         not work to make a weak alias to a bss symbol.
181
182         * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
183         (tests): Add test-fwrite.
184         * stdio/test-fwrite.c: New file.
185
186         * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
187         __strtold.
188
189         * Makefile (autoconf-it): New canned sequence.  Do cvs commit if
190         there is a CVS directory.
191         (configure, %/configure): Use $(autoconf-it) for cmds.
192         * Make-dist: Likewise.
193         * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
194         if there is a CVS directory.
195         * sysdeps/sparc/Makefile (divrem output): Likewise.
196         * sysdeps/alpha/Makefile (divrem output): Likewise.
197         * Makerules ($(gpl2lgpl)): Likewise.
198
199         * Makerules (rule to install lib%.a from $(install-lib)): Fix
200         patsubst to elide ranlib for $(non-lib.a).
201
202         * stdio/tst-printf.c: Enable FP tests.  Add some new tests from rfg.
203
204 Thu Feb 16 04:06:06 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
205
206         * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
207         * mach/mig-dealloc.c: Add weak alias mig_deallocate.
208
209 Wed Feb 15 13:34:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
210
211         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
212         DEALLOC_REFPORT; deallocate the refport after use only if it
213         evaluates to nonzero.
214         * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
215         * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
216
217         * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
218         *STATE_CHANGE to indicate whether or not we changed *STATE and it
219         should be committed to the thread.
220         (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
221         state for a thread, do thread_set_state on that thread.  Don't use
222         SS->intr_port for collecting reply ports, it is not safe to
223         clobber that when suspending; instead, alloca a temporary array.
224         (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
225         zero when dying, one when suspending.  Pass new arg to abort_rpcs.
226
227         * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
228         HURD_FD_PORT_USE will.  Don't use critical sections around
229         HURD_FD_PORT_USE invocations.
230
231         * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
232         * sysdeps/posix/stdio_init.c: Likewise.
233
234 Tue Feb 14 03:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
235
236         * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
237         locking; don't leave the descriptor locked on return.
238         (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
239         Use a critical section around locking the descriptor.
240         Check for an empty descriptor and return EBADF.
241         * sysdeps/mach/hurd/dup2.c: Likewise.
242         * sysdeps/mach/hurd/fcntl.c: Likewise.
243         Use HURD_FD_PORT_USE macro for RPCs.
244         * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
245         using HURD_FD_PORT_USE.
246         * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
247         to lock the descriptor.
248         * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
249         locking the descriptor.
250         * sysdeps/mach/hurd/fdopen.c: Likewise.
251         * hurd/fd-close.c: Likewise.
252         Don't expect the descriptor to be locked on entry.
253         Check for empty descriptor and return EBADF.
254
255         Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
256         new functions _hurd_ctty_input and _hurd_ctty_output, each
257         called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
258         * hurd/ctty-input.c: New file.
259         * hurd/ctty-output.c: New file.
260         * hurd/Makefile (dtable): Add ctty-input and ctty-output.
261         * hurd/fd-read.c: Use _hurd_ctty_input.
262         * hurd/fd-write.c: Use _hurd_ctty_output.
263         * sysdeps/mach/hurd/ioctl.c: Likewise.
264         * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
265
266 Mon Feb 13 11:36:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
267
268         * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
269         as appropriate to the type.
270
271         * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
272         repeating the union.
273         (HUGE_VAL, __huge_val): Use it.
274         [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
275         analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
276         * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
277         (STRTOF): Set to __strtold; define strtold as weak alias.
278         * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
279         (STRTOF): Set to __strtof; define strtof as weak alias.
280
281         * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
282         (IEEE754_FLOAT_BIAS): New macro.
283
284         * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
285
286         * stdlib/testmb.c: Add tests from rfg for using normal chars as
287         multibyte chars.
288
289         * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
290         only the `defined but not used' warning, but also to avoid GCC
291         optimizing out the entire function (!).
292
293         * stdlib/wctomb.c: Include ctype.h.
294
295         * Makerules (install-lib-non.a): Don't include $(non-lib.a).
296
297         * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
298
299 Sat Feb 11 04:05:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
300
301         * stdio/printf_fp.c: Include "fpioconst.h".
302         (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
303         (__printf_fp): All references changed.
304         Don't bother computing THOUSANDS_SEP if GROUPING is empty.
305         (group_number): Use memmove instead of memcpy, since operands overlap.
306         * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
307         * stdio/fpioconst.h: New file, header declaring the table data.
308         * stdio/Makefile (aux): Add fpioconst.
309         (distribute): Add fpioconst.h.
310         * stdlib/strtod.c: Complete rewrite from drepper.
311         * stdlib/strtof.c: New file.
312         * stdlib/strtold.c: New file.
313         * stdlib/Makefile (routines): Add strtof, strtold.
314         * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
315         * sysdeps/stub/mpn2flt.c: New file.
316         * sysdeps/stub/mpn2dbl.c: New file.
317         * sysdeps/stub/mpn2ldbl.c: New file.
318         * sysdeps/ieee754/mpn2flt.c: New file.
319         * sysdeps/ieee754/mpn2dbl.c: New file.
320         * sysdeps/ieee754/mpn2ldbl.c: New file.
321
322         * Makerules (install-lib.a): Don't filter out $(non-lib.a).
323         ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
324         appears in $(non-lib.a).
325
326 Fri Feb 10 17:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
327
328         * stdlib/wctomb.c: A normal ASCII character translates to itself.
329         * stdlib/mbtowc.c: Likewise.
330
331 Thu Feb  9 03:55:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
332
333         * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
334         Remove `const' from prototypes.
335         * sysdeps/m68k/__longjmp.c: Likewise.
336         * setjmp/longjmp.c: Likewise.
337         * sysdeps/i386/__longjmp.c: Likewise.
338
339         * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
340         so when we return a name, it is incremented past the value that
341         produces that same name.
342
343         * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype.  Sigh.
344         * stdio/stdio.h (fgets): Likewise.
345
346         * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
347
348         * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
349         when it's EBACKGROUND; we need to notice that it is EBACKGROUND
350         and retry the RPC.
351         * hurd/fd-read.c: Likewise.
352
353 Wed Feb  8 05:01:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
354
355         * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
356         <mach/mig_support.h>.
357         * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
358         * assert/assert.c: Likewise.
359         * sysdeps/posix/libc_fatal.c: Likewise.
360
361 Tue Feb  7 12:17:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
362
363         * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
364         as macros, to satisfy ANSI pedants.
365
366         * stdio/internals.c (flushbuf): When there is no new data after
367         priming the stream, return without writing out the buffer.
368         * stdio/Makefile (tests): Add bug7.
369         * stdio/bug7.c: New file.
370
371         * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
372         S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
373         is defined.
374
375         * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
376
377         * stdio/Makefile (tests): Add errnobug.
378         * stdio/errnobug.c: New file.
379
380         * mach/mig_strncpy.c: Include string.h.
381
382         * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>.  Its
383         inlines cause trouble for files defining global register variables.
384
385         * stdio/vfprintf.c: Use _strerror_internal for %m.
386
387         * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
388
389         * stdio/printf.h (struct printf_info): New member `group', for %' flag.
390         * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
391         * stdio/vfprintf.c (group_number): New function.
392         (vfprintf): Support %' flag for integer formats, by calling
393         group_number after formatting the number in WORK.
394         * stdio/printf_fp.c (guess_grouping, group_number): New functions.
395         (__printf_fp): Implement `group' flag using them.
396
397         * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
398         (parent-clean): Remove sysd-rules, not sysdirs.
399         (distclean): Pass avoid-generated=yes to submake.
400         (distclean-1): Remove $(sysdep-$(distclean-1)).
401
402         * Makerules (objects, objs): Depend on $(extra-objs) too.
403         (include sysd-Makefile): Protect with ifndef avoid-generated.
404
405         * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
406         (CPPFLAGS): Use $(defines) in place of $(+defines).
407         Replace -D_LIBC with -include $(..)libc-symbols.h.
408
409         * stdio/freopen.c: Set seen bit before calling fclose.
410
411 Mon Feb  6 18:34:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
412
413         * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
414         successes and each kind of failure.  Return EPERM or EACCES only
415         if every task failed that way.
416
417         * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
418         correctly.
419
420         * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
421         or resume the process after frobbing.
422
423         * hurd/hurdsig.c: Use spin lock operations on sigstate locks
424         throughout.
425         (_hurd_thread_sigstate): Don't lock the sigstate lock.
426         (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
427         repeated sequences with calls to it.  Don't expect the sigstate
428         lock to be held on entry; lock it just before examining sigaction.
429         In handler case, check SS->critical_section after calling
430         abort_rpcs; if set, mark the signal pending and resume the thread.
431         * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
432         (_hurd_self_sigstate): Don't lock the sigstate lock.
433         (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
434         _hurd_self_sigstate_unlocked.
435         * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
436         the sigstate lock.
437         * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
438         Don't expect _hurd_self_sigstate to lock it.  Fix critical section
439         locking.
440         * hurd/hurd-raise.c: Likewise.
441         * sysdeps/mach/hurd/sigsuspend.c: Likewise. 
442         * sysdeps/mach/hurd/sigpending.c: Likewise.
443         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
444         * sysdeps/mach/hurd/sigaction.c: Likewise.
445         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
446         * hurd/fd-write.c: Likewise.
447         * hurd/fd-read.c: Likewise.
448         * sysdeps/mach/hurd/ioctl.c: Likewise.
449         * sysdeps/mach/hurd/fork.c: Likewise.
450         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
451         * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.  
452         * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
453         * hurd/hurdmsg.c (get_int): Likewise.
454
455         * stdio/vfprintf.c: Include stddef.h.  Fix typos in libio code.
456
457         * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
458         global.
459         (PAD): Caller changed.
460         * stdio/printf_fp.c (__pad): Function removed.
461         (PAD): Use __printf_pad instead.
462
463 Sun Feb  5 17:59:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
464
465         Merged new FP printer by Ulrich Drepper.
466         * stdio/printf_fp.c: Rewrite by drepper.
467         * stdio/Makefile (routines): Add ldbl2mpn.
468         * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
469         member.
470         (union ieee854_long_double): New type, from drepper.
471         (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
472         * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
473         * sysdeps/stub/ldbl2mpn.c: New file.
474         * math/Makefile (routines): Add isinfl and isnanl.
475         * sysdeps/ieee754/isinfl.c: New file.
476         * sysdeps/stub/isinfl.c: New file.
477         * sysdeps/ieee754/isnanl.c: New file.
478         * sysdeps/stub/isnanl.c: New file.
479
480         * malloc/malloc.c (__malloc_extra_blocks): New variable.
481         (malloc): When getting more core, get __malloc_extra_blocks extra;
482         put the new block at the end of the free list and let the next loop
483         iteration use the initial portion of it.
484         * malloc/free.c (_free_internal): Account for twice
485         __malloc_extra_blocks in deciding if we have so much extra memory
486         we should return it to the system.
487         * malloc/malloc.h (__malloc_extra_blocks): Declare it.
488         * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
489         const in parameter decl.
490
491         * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
492
493 Fri Feb  3 18:15:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
494
495         * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
496
497         * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
498         * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
499         * sysdeps/mips/bsd-setjmp.S: Likewise.
500         * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
501         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
502         Use `long int' for sigcode.  Use explicit register numbers instead
503         of names.
504         (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
505         * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
506
507 Thu Feb  2 20:06:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
508
509         * hurd/hurdmalloc.c: Remove bogus bcopy decl.
510
511         * mach/mig_strncpy.c: Add missing `const' in prototype.  Rewritten
512         using __stpncpy.
513
514         * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
515
516         * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
517
518 Tue Jan 31 13:49:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
519
520         * mach/mig_strncpy.c: Include mach.h instead of string.h.  Use
521         vm_size_t instead of size_t for arg and return types.
522
523         * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
524         already does.
525
526 Mon Jan 30 00:33:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
527
528         * set-hooks.h (RUN_HOOK): Dereference PTR properly.
529
530         * configure.in (friendly stddef.h check): Write override defn for
531         `stddef.h' Make variable.
532         (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
533
534         * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
535
536         * Rules ($(objpfx)dummy.o): Write an empty function, not just an
537         empty file.
538
539         * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
540
541 Sat Jan 28 03:38:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
542
543         * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
544
545         * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
546         mach/machine/syscall_sw.h with this.
547
548 Fri Jan 27 18:33:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
549
550         * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
551         instead of <lock-intern.h>.
552         (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
553         (_hurd_critical_section_lock): Use spin lock operators.
554         Don't hold the sigstate lock, unlock it after setting the flag.
555         (_hurd_critical_section_unlock): Take the sigstate lock
556         to clear the flag; while holding it, check pending signals.  After
557         unlocking, sig_post ourselves if there were pending signals.
558
559         * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
560         sigstate lock.  If it is locked, clear SS->critical_section and
561         SS->context, and unlock it.
562
563         * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
564
565         * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
566         * munch-tmpl.c: Likewise.
567
568         * mach/Makefile (routines): Don't filter out syscall_% from
569         $(mach-syscalls).
570
571 Fri Jan 27 17:53:49 1995  Jim Meyering  (meyering@comco.com)
572
573         * posix/fnmatch.c: Declare errno if it's not defined.
574         That's simpler than testing #if !defined(__GNU_LIBRARY__)
575         && !defined(STDC_HEADERS).
576
577 Fri Jan 27 15:40:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
578
579         * csu/Makefile: New file.
580         * csu/initfini.c: New file.
581         * Makefile (+other_dirs): Add csu.
582         (+init): Variable renamed to libc-init.  All references changed.
583         (aux): Remove start.
584         (install-lib): Variable removed.
585         (crt0.o, Mcrt1.o  crt1.o): Targets removed.
586
587         * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
588         and $(objpfx)config.h.
589         (static deps of RPC alias *.o): Removed.
590
591         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
592         Protect macros with this.
593         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
594         * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
595         * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
596         * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
597         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
598         * sysdeps/unix/mips/sysdep.h: Likewise.
599
600 Thu Jan 26 00:02:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
601
602         * Makerules (compile.[Sc]): Match gcc in $(CC) better.
603         (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
604
605         * hurd/intr-rpc.awk: Emit weak alias.
606
607         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
608         __getpgrp.
609
610         * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
611         this.
612         * sysdeps/unix/i386/sysdep.h: Likewise.
613         * sysdeps/unix/sparc/sysdep.h: Likewise.
614
615         * io/ftw.c: Avoid `ret' as variable name.
616         * posix/glob.c: Likewise.
617
618         * ctype/ctype.h (_ISalpha): Define as its own bit.
619         * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
620
621         * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
622         DEFINE_HOOK with this.
623
624 Wed Jan 25 00:45:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
625
626         * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
627         * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
628         * mach/shortcut.awk: Emit weak alias.
629         * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
630         * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
631         __ names.
632         * mach/Makefile (lock): Remove spin-syms.
633         (routines): Remove __ names, vm_page_size, msgserver_t.
634         ($(mach-syscalls) rule): Generate files without __, add weak alias.
635         Remove symbol alias file rule.
636         ($(mach-shortcuts) rule): Likewise.
637         [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
638         * mach/Machrules (if-calls.c): Variable and rule removed.
639         (interface-headers): Don't add $($(if)-calls).
640         (transform-user-stub): Define to add weak alias.
641         * set-hooks.h: Use new libc-symbols.h set access macros.
642         * time/Makefile (routines): Remove __ names.
643         (aux): Variable removed.
644         * hurd/Makefile: Likewise.
645         * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
646         (data_start): Define as weak alias for __data_start.
647         * sysdeps/mach/hurd/start.c: Likewise.
648         * sysdeps/unix/sparc/start.c: Likewise.
649         * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
650         sys_errlist.
651         * sysdeps/mach/hurd/errlist.awk: Likewise.
652         * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
653         alias for __environ.
654         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
655         * sysdeps/stub/setdomain.c: Use new stub_warning macro.
656         * sysdeps/stub/getdomain.c: Likewise.
657         * sysdeps/stub/vhangup.c: Likewise.
658         * sysdeps/stub/swapon.c: Likewise.
659         * sysdeps/stub/sendmsg.c: Likewise.
660         * sysdeps/stub/recvmsg.c: Likewise.
661         * sysdeps/stub/acct.c: Likewise.
662         * sysdeps/stub/isinf.c: Likewise.  Add weak alias isinf for __isinf.
663         * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
664         * sysdeps/posix/libc_fatal.c: Likewise.
665         * sysdeps/i386/abort.c: Likewise.
666         * sysdeps/i386/__longjmp.c: Likewise.
667         * sysdeps/generic/make_siglist.c: Emit defn always for
668         _sys_siglist.  Emit weak alias to sys_siglist.
669         * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
670         * sysdeps/ieee754/log10.c: Likewise.
671         * time/difftime.c: Likewise.
672         * stdlib/random.c (srand): Define as weak alias for __srandom.
673         * stdlib/exit.c: Remove obsolete __NORETURN keyword.  Use set-hooks
674         macros for __libc_atexit.
675         * stdlib/Makefile (routines): Remove __random, srand.
676         * stdio/gets.c: Use new link_warning macro instead of old
677         warn_references.
678         * stdio/Makefile (routines): Remove __ names.
679         (aux): Remove syms-stdio.
680         * socket/Makefile (routines): Added e on getpeernam and getsocknam.
681         * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
682         * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
683         * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
684         * stdio/stdio.h: Likewise.
685         * misc/Makefile (routines): Remove __ names.
686         (aux): Remove data_start.
687         * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
688         * sysdeps/mach/hurd/brk.c: Likewise.
689         * hurd/hurdid.c: Likewise.
690         * hurd/hurdpid.c: Likewise.
691         * hurd/openport.c: Likewise.
692         * hurd/hurdsock.c: Likewise.
693         * hurd/hurdsig.c: Likewise.
694         * hurd/hurdrlimit.c: Likewise.
695         * hurd/hurdmalloc.c: Likewise.
696         * hurd/dtable.c: Likewise.
697         * hurd/setauth.c: Likewise.
698         * misc/progname.c: Likewise.
699         * misc/init-misc.c: Likewise.
700         * sysdeps/generic/vfork.c: Likewise.
701         * sysdeps/unix/bsd/init-posix.c: Likewise.
702         * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
703         * time/time.h: Likewise.
704         * math/Makefile (routines): Remove __ names.
705         * io/Makefile: Likewise.
706         * termios/Makefile: Likewise.
707         * resource/Makefile: Likewise.
708         * signal/Makefile: Likewise.
709         * dirent/Makefile: Likewise.
710         * assert/assert.h: Replace __NORETURN keyword with __attribute__
711         uses.  Functions return void and macros deal with this.
712         * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
713         Return void.  Don't include gnu-stabs.h.
714         * assert/assert.c: Likewise.
715         * posix/Makefile (routines): Remove __ names, setpgrp.  Add
716         getpgid.
717         (aux): Remove environ.
718         * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
719         __attribute__ use.
720         * posix/unistd.h (_exit): Likewise.
721         (__getpgrp, __setpgrp): Declarations removed.
722         (__getpgid, getpid): Declare these.
723
724         * configure.in (host_os=gnuelf|linuxelf): Set elf=yes.  Do AC_SUBST
725         for gnu_ld, gnu_as, elf, and weak.  Call AC_LINK_FILEES on
726         $libc_link_{sources,dests}.
727         * sysdeps/unix/configure.in: Remove __ from file names.  Don't
728         create files, just add to libc_link_{dests,sources}.
729
730         * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
731
732         * config.h.in: Add #undefs used by sysdeps configures.
733
734         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
735         __setpgid, __getpgid.
736         * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
737         from setpgrp.c.
738         * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
739         from __getpgrp.c.
740         * sysdeps/unix/bsd/getpgrp.c: File removed.
741         * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
742         Call __getpgid with zero.
743         * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
744         weak aliases setpgid and setpgrp.
745         * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
746         * sysdeps/unix/common/setpgid.S: Likewise.
747         * sysdeps/mach/hurd/setpgid.c: Likewise.
748         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
749         Use subcall 5 to __pgrpsys.
750         * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
751         weak alias getpgid.
752         * sysdeps/mach/hurd/getpgid.c: Likewise.
753         * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
754         * sysdeps/unix/common/getpgid.S: Likewise.
755         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
756         Use subcall 4 to __pgrpsys.
757         * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
758         * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
759         * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
760         * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
761         * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
762         * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
763         * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
764         * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
765         * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
766         * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
767         * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
768         * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
769
770         * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
771         from __getdents.S.
772
773         * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
774         * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
775         warning.
776         * sysdeps/stub/fexecve.c: Likewise.
777         * sysdeps/stub/fchdir.c: Likewise.
778         * sysdeps/stub/fchflags.c: Likewise.
779         * sysdeps/stub/chflags.c: Likewise.
780
781         * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
782         * sysdeps/generic/abort.c: Likewise.
783         * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
784
785         * hurd/hurdioctl.c: Include hurd/ioctl.h.
786         (_hurd_ioctl_handler_lists): Define this set.
787         (_hurd_lookup_ioctl_handler): New function.
788         * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
789         * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
790         (_hurd_lookup_ioctl_handler): Declare it.
791         (ioctl_handler_t): New typedef.  Use it throughout.
792         * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
793         (_hurd_ioctl_handler_lists): Don't define.
794         (__ioctl): Call _hurd_lookup_ioctl_handler.
795
796         * stdlib/strtol.c (maxquad): Make this const.
797         [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
798
799         * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
800         any compile tests.
801
802         * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
803         __msg_sig_post_request, not __sig_post_request.
804
805         * misc/getusersh.c: Renamed to getusershell.c.
806         * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
807         * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
808         * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
809         * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
810
811 Tue Jan 24 00:14:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
812
813         * sysdeps/stub/settod.c: Renamed to settimeofday.c.
814         * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
815         * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
816         * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
817         * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
818         * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
819         * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
820         * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
821         * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
822         * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
823         * sysdeps/stub/getprio.c: Renamed to getpriority.c.
824         * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
825         * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
826         * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
827         * sysdeps/stub/setprio.c: Renamed to setpriority.c.
828         * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
829         * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
830         * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
831         * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
832         * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
833         * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
834         * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
835         * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
836         * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
837         * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
838         * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
839         * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
840         * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
841         * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
842         * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
843
844         * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
845         of __sig_post.
846         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
847         * sysdeps/mach/hurd/kill.c: Likewise.
848         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
849
850         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
851         [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
852
853         * sysdeps/stub/remove.c: New file.
854         * sysdeps/posix/remove.c: New file.
855
856 Mon Jan 23 03:26:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
857
858         * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
859         mktime.
860         * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
861         __mig_strncpy.
862         * mach/msg-destroy.c: Renamed from __msg_dest.c.
863         (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
864         * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
865         * time/tzset.c (tzname, daylight, timezone): Define as weak
866         aliases for __ names.
867         * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
868         * hurd/hurdlookup.c: Add weak aliases for non-__ names.
869         * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
870         being defined.
871
872 Sun Jan 22 15:19:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
873
874         * string/Makefile (routines): Remove __ names, index, rindex, and
875         bcmp.
876         * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
877         alias for strchr.
878         * sysdeps/generic/strchr.c: Likewise.
879         * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
880         alias for strrchr.
881         * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
882         alias for memcmp.
883
884         * malloc/free.c (cfree): Define this function, with weak_alias if
885         available, otherwise a C function.
886         * malloc/Makefile (gmalloc-routines): Remove cfree.
887
888 Sat Jan 21 08:08:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
889
890         * stdio/fseek.c: Do move bufp by O when that puts it exactly at
891         get_limit.  This has the effect of no-op'ing properly for zero.
892
893         * configure.in: Add AC_CONFIG_HEADER(config.h).
894         (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
895         * config.h.in: New file.
896
897         * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
898         All code converted to use weak symbols, defined in the files which
899         define the real code (with the __ names, the non-__ names are weak).
900         All old symbol alias files removed.
901         Many files renamed to remove __ prefix since there is now just
902         the one file for both the __ and non-__ name for each function.
903         * libc-symbols.h: New file.
904         * set-hooks.h: Use libc-symbols.h macros for accessing symbol
905         sets.
906         * gnu-stabs.h: Prepend #error this file is obsolete.
907         * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
908         * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
909         access.
910         * sysdeps/unix/common/__access.S: Likewise.
911         * sysdeps/mach/hurd/__access.c: Likewise.
912         * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
913         adjtime.
914         * sysdeps/unix/common/__adjtime.S: Likewise.
915         * sysdeps/mach/__adjtime.c: Likewise.
916         * sysdeps/mach/hurd/__adjtime.c: Likewise.
917         * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
918         * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
919         * sysdeps/unix/bsd/vax/__brk.S: Likewise.
920         * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
921         * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
922         * sysdeps/unix/i386/__brk.S: Likewise.
923         * sysdeps/unix/sparc/__brk.S: Likewise.
924         * sysdeps/unix/mips/__brk.S: Likewise.
925         * sysdeps/mach/hurd/__brk.c: Likewise.
926         * sysdeps/standalone/__brk.c: Likewise.
927         * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
928         * sysdeps/unix/__chdir.S: Likewise.
929         * sysdeps/mach/hurd/__chdir.c: Likewise.
930         * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
931         * sysdeps/unix/__chmod.S: Likewise.
932         * sysdeps/mach/hurd/__chmod.c: Likewise.
933         * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
934         * sysdeps/unix/__chown.S: Likewise.
935         * sysdeps/mach/hurd/__chown.c: Likewise.
936         * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
937         * sysdeps/unix/__close.S: Likewise.
938         * sysdeps/mach/hurd/__close.c: Likewise.
939         * sysdeps/standalone/__close.c: Likewise.
940         * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
941         alias copysign.
942         * sysdeps/ieee754/__copysign.c: Likewise.
943         * sysdeps/alpha/__copysign.c: Likewise.
944         * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
945         * sysdeps/m68k/fpu/__drem.c: Likewise.
946         * sysdeps/stub/__drem.c: Likewise.
947         * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
948         * sysdeps/stub/__dup.c: Likewise.
949         * sysdeps/unix/__dup.S: Likewise.
950         * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
951         * sysdeps/stub/__dup2.c: Likewise.
952         * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
953         * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
954         * sysdeps/unix/common/__dup2.S: Likewise.
955         * sysdeps/mach/hurd/__dup2.c: Likewise.
956         * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
957         execve.
958         * sysdeps/unix/__execve.S: Likewise.
959         * sysdeps/mach/hurd/__execve.c: Likewise.
960         * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
961         expm1.
962         * sysdeps/m68k/fpu/__expm1.c: Likewise.
963         * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
964         fchmod.
965         * sysdeps/unix/common/__fchmod.S: Likewise.
966         * sysdeps/mach/hurd/__fchmod.c: Likewise.
967         * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
968         fchown.
969         * sysdeps/unix/common/__fchown.S: Likewise.
970         * sysdeps/mach/hurd/__fchown.c: Likewise.
971         * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
972         * sysdeps/unix/__fcntl.S: Likewise.
973         * sysdeps/mach/hurd/__fcntl.c: Likewise.
974         * math/__finite.c: Renamed to finite.c; added weak alias finite.
975         * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
976         * sysdeps/stub/__flock.c: Likewise.
977         * sysdeps/unix/bsd/__flock.S: Likewise.
978         * sysdeps/mach/hurd/__flock.c: Likewise.
979         * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
980         fopenport.
981         * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
982         * sysdeps/unix/__fork.S: Likewise.
983         * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
984         * sysdeps/unix/i386/__fork.S: Likewise.
985         * sysdeps/unix/sparc/__fork.S: Likewise.
986         * sysdeps/unix/mips/__fork.S: Likewise.
987         * sysdeps/mach/hurd/__fork.c: Likewise.
988         * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
989         alias fpathconf.
990         * sysdeps/stub/__fpathcon.c: Likewise.
991         * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
992         * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
993         * sysdeps/unix/__fstat.S: Likewise.
994         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
995         * sysdeps/mach/hurd/__fstat.c: Likewise.
996         * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
997         getdelim.
998         * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
999         alias getdents.
1000         * sysdeps/unix/__getdents.c: Likewise.
1001         * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
1002         * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
1003         * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
1004         * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
1005         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
1006         * sysdeps/unix/sysv/__getdents.c: Likewise.
1007         * sysdeps/mach/hurd/__getdents.c: Likewise.
1008         * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
1009         * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
1010         alias getdtablesize.
1011         * sysdeps/stub/__getdtsz.c: Likewise.
1012         * sysdeps/unix/bsd/__getdtsz.S: Likewise.
1013         * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
1014         * sysdeps/mach/hurd/__getdtsz.c: Likewise.
1015         * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
1016         getegid.
1017         * sysdeps/unix/__getegid.S: Likewise.
1018         * sysdeps/mach/hurd/__getegid.c: Likewise.
1019         * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
1020         geteuid.
1021         * sysdeps/unix/__geteuid.S: Likewise.
1022         * sysdeps/mach/hurd/__geteuid.c: Likewise.
1023         * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
1024         getgid.
1025         * sysdeps/unix/__getgid.S: Likewise.
1026         * sysdeps/mach/hurd/__getgid.c: Likewise.
1027         * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
1028         alias getgroups.
1029         * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
1030         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
1031         * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
1032         * sysdeps/unix/common/__getgrps.S: Likewise.
1033         * sysdeps/mach/hurd/__getgrps.c: Likewise.
1034         * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
1035         alias gethostname. 
1036         * sysdeps/unix/inet/__gethstnm.S: Likewise.
1037         * sysdeps/unix/sysv/__gethstnm.c: Likewise.
1038         * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
1039         * sysdeps/mach/hurd/__gethstnm.c: Likewise.
1040         * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
1041         alias getitimer.
1042         * sysdeps/unix/common/__getitmr.S: Likewise.
1043         * sysdeps/mach/hurd/__getitmr.c: Likewise.
1044         * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
1045         * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
1046         alias getpagesize.
1047         * sysdeps/stub/__getpgsz.c: Likewise.
1048         * sysdeps/unix/__getpgsz.c: Likewise.
1049         * sysdeps/unix/bsd/__getpgsz.S: Likewise.
1050         * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
1051         * sysdeps/mach/__getpgsz.c: Likewise.
1052         * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
1053         getpid.
1054         * sysdeps/unix/__getpid.S: Likewise.
1055         * sysdeps/mach/hurd/__getpid.c: Likewise.
1056         * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
1057         getppid.
1058         * sysdeps/unix/__getppid.S: Likewise.
1059         * sysdeps/mach/hurd/__getppid.c: Likewise.
1060         * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
1061         alias gettimeofday.
1062         * sysdeps/stub/__gettod.c: Likewise.
1063         * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
1064         * sysdeps/unix/common/__gettod.S: Likewise.
1065         * sysdeps/mach/__gettod.c: Likewise.
1066         * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
1067         getuid.
1068         * sysdeps/unix/__getuid.S: Likewise.
1069         * sysdeps/mach/hurd/__getuid.c: Likewise.
1070         * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
1071         alias infnan.
1072         * sysdeps/ieee754/__infnan.c: Likewise.
1073         * sysdeps/vax/__infnan.c: Likewise.
1074         * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
1075         * sysdeps/unix/__ioctl.S: Likewise.
1076         * sysdeps/mach/hurd/__ioctl.c: Likewise.
1077         * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
1078         isatty.
1079         * sysdeps/stub/__isatty.c: Likewise.
1080         * sysdeps/unix/bsd/__isatty.c: Likewise.
1081         * sysdeps/mach/hurd/__isatty.c: Likewise.
1082         * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
1083         isinf.
1084         * sysdeps/m68k/fpu/__isinf.c: Likewise.
1085         * sysdeps/stub/__isinf.c: Likewise.
1086         * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
1087         isnan.
1088         * sysdeps/ieee754/__isnan.c: Likewise.
1089         * sysdeps/m68k/fpu/__isnan.c: Likewise.
1090         * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
1091         * sysdeps/unix/__kill.S: Likewise.
1092         * sysdeps/mach/hurd/__kill.c: Likewise.
1093         * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
1094         * sysdeps/unix/__link.S: Likewise.
1095         * sysdeps/mach/hurd/__link.c: Likewise.
1096         * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
1097         * sysdeps/m68k/fpu/__logb.c: Likewise.
1098         * sysdeps/stub/__logb.c: Likewise.
1099         * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
1100         * sysdeps/unix/__lseek.S: Likewise.
1101         * sysdeps/mach/hurd/__lseek.c: Likewise.
1102         * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
1103         lstat.
1104         * sysdeps/stub/__lstat.c: Likewise.
1105         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
1106         * sysdeps/unix/common/__lstat.S: Likewise.
1107         * sysdeps/mach/hurd/__lstat.c: Likewise.
1108         * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
1109         alias memccpy.
1110         * sysdeps/vax/__memccpy.c: Likewise.
1111         * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
1112         * sysdeps/unix/sysv/__mkdir.c: Likewise.
1113         * sysdeps/unix/common/__mkdir.S: Likewise.
1114         * sysdeps/mach/hurd/__mkdir.c: Likewise.
1115         * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
1116         * sysdeps/unix/__mknod.S: Likewise.
1117         * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
1118         * sysdeps/mach/hurd/__mknod.c: Likewise.
1119         * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
1120         * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
1121         mach_msg_server.
1122         * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
1123         * sysdeps/unix/__open.S: Likewise.
1124         * sysdeps/mach/hurd/__open.c: Likewise.
1125         * sysdeps/standalone/__open.c: Likewise.
1126         * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
1127         alias pathconf.
1128         * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
1129         * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
1130         * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
1131         * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
1132         * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
1133         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
1134         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
1135         * sysdeps/unix/i386/__pipe.S: Likewise.
1136         * sysdeps/unix/sparc/__pipe.S: Likewise.
1137         * sysdeps/unix/mips/__pipe.S: Likewise.
1138         * sysdeps/mach/hurd/__pipe.c: Likewise.
1139         * stdlib/__random.c: Renamed to random.c; added weak alias random.
1140         * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
1141         * sysdeps/unix/__read.S: Likewise.
1142         * sysdeps/mach/hurd/__read.c: Likewise.
1143         * sysdeps/standalone/__read.c: Likewise.
1144         * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
1145         alias readlink.
1146         * sysdeps/unix/common/__readlink.S: Likewise.
1147         * sysdeps/mach/hurd/__readlink.c: Likewise.
1148         * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
1149         * sysdeps/m68k/fpu/__rint.c: Likewise.
1150         * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
1151         * sysdeps/unix/sysv/__rmdir.c: Likewise.
1152         * sysdeps/unix/common/__rmdir.S: Likewise.
1153         * sysdeps/mach/hurd/__rmdir.c: Likewise.
1154         * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
1155         * sysdeps/stub/__sbrk.c: Likewise.
1156         * sysdeps/mach/hurd/__sbrk.c: Likewise.
1157         * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
1158         * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
1159         select.
1160         * sysdeps/unix/common/__select.S: Likewise.
1161         * sysdeps/mach/hurd/__select.c: Likewise.
1162         * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
1163         * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
1164         setgid.
1165         * sysdeps/unix/__setgid.S: Likewise.
1166         * sysdeps/unix/bsd/__setgid.c: Likewise.
1167         * sysdeps/mach/hurd/__setgid.c: Likewise.
1168         * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
1169         setitmr 
1170         * sysdeps/unix/common/__setitmr.S: Likewise.
1171         * sysdeps/mach/hurd/__setitmr.c: Likewise.
1172         * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
1173         setpgrp 
1174         * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
1175         * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
1176         * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
1177         * sysdeps/unix/common/__setpgrp.S: Likewise.
1178         * sysdeps/mach/hurd/__setpgrp.c: Likewise.
1179         * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
1180         alias setregid.
1181         * sysdeps/unix/common/__setregid.S: Likewise.
1182         * sysdeps/mach/hurd/__setregid.c: Likewise.
1183         * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
1184         alias setreuid.
1185         * sysdeps/unix/common/__setreuid.S: Likewise.
1186         * sysdeps/mach/hurd/__setreuid.c: Likewise.
1187         * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
1188         setsid.
1189         * sysdeps/unix/bsd/__setsid.c: Likewise.
1190         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
1191         * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
1192         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
1193         * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
1194         * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
1195         * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
1196         * sysdeps/mach/hurd/__setsid.c: Likewise.
1197         * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
1198         settimeofday.
1199         * sysdeps/unix/bsd/__settod.S: Likewise.
1200         * sysdeps/unix/sysv/__settod.c: Likewise.
1201         * sysdeps/mach/hurd/__settod.c: Likewise.
1202         * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
1203         setuid.
1204         * sysdeps/unix/__setuid.S: Likewise.
1205         * sysdeps/unix/bsd/__setuid.c: Likewise.
1206         * sysdeps/mach/hurd/__setuid.c: Likewise.
1207         * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
1208         alias sigblock.
1209         * sysdeps/stub/__sigblock.c: Likewise.
1210         * sysdeps/unix/bsd/__sigblock.S: Likewise.
1211         * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
1212         * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
1213         * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
1214         alias sigpause.
1215         * sysdeps/stub/__sigpause.c: Likewise.
1216         * sysdeps/unix/bsd/__sigpause.S: Likewise.
1217         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
1218         * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
1219         alias sigprocmask.
1220         * sysdeps/unix/bsd/__sigproc.c: Likewise.
1221         * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
1222         * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
1223         * sysdeps/mach/hurd/__sigproc.c: Likewise.
1224         * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
1225         alias sigreturn.
1226         * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
1227         * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
1228         * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
1229         * sysdeps/unix/i386/__sigret.S: Likewise.
1230         * sysdeps/unix/mips/__sigret.S: Likewise.
1231         * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
1232         * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
1233         * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
1234         * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
1235         sigvec.
1236         * sysdeps/stub/__sigvec.c: Likewise.
1237         * sysdeps/unix/bsd/__sigvec.S: Likewise.
1238         * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
1239         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
1240         * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
1241         * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
1242         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
1243         * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
1244         * sysdeps/unix/__stat.S: Likewise.
1245         * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
1246         * sysdeps/mach/hurd/__stat.c: Likewise.
1247         * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
1248         alias stpncpy.
1249         * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
1250         symlink.
1251         * sysdeps/unix/common/__symlink.S: Likewise.
1252         * sysdeps/mach/hurd/__symlink.c: Likewise.
1253         * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
1254         alias sysconf.
1255         * sysdeps/stub/__sysconf.c: Likewise.
1256         * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
1257         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
1258         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
1259         * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
1260         * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
1261         * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
1262         * sysdeps/unix/bsd/__times.c: Likewise.
1263         * sysdeps/unix/sysv/__times.S: Likewise.
1264         * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
1265         * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
1266         * sysdeps/unix/__umask.S: Likewise.
1267         * sysdeps/mach/hurd/__umask.c: Likewise.
1268         * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
1269         unlink.
1270         * sysdeps/unix/__unlink.S: Likewise.
1271         * sysdeps/mach/hurd/__unlink.c: Likewise.
1272         * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
1273         utimes.
1274         * sysdeps/unix/bsd/__utimes.S: Likewise.
1275         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
1276         * sysdeps/mach/hurd/__utimes.c: Likewise.
1277         * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
1278         vfork.
1279         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
1280         * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
1281         * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
1282         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
1283         * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
1284         * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
1285         * sysdeps/unix/sparc/__vfork.S: Likewise.
1286         * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
1287         * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
1288         * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
1289         * sysdeps/stub/__wait.c: Likewise.
1290         * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
1291         * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
1292         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
1293         * sysdeps/unix/bsd/vax/__wait.S: Likewise.
1294         * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
1295         * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
1296         * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
1297         * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
1298         * sysdeps/unix/i386/__wait.S: Likewise.
1299         * sysdeps/unix/mips/__wait.S: Likewise.
1300         * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
1301         * sysdeps/stub/__wait3.c: Likewise.
1302         * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
1303         * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
1304         * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
1305         * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
1306         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
1307         * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
1308         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
1309         * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
1310         * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
1311         * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
1312         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
1313         * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
1314         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
1315         * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
1316         * sysdeps/mach/hurd/__wait4.c: Likewise.
1317         * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
1318         waitpid.
1319         * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
1320         * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
1321         * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
1322         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
1323         * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
1324         * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
1325         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
1326         * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
1327         * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
1328         * sysdeps/unix/__write.S: Likewise.
1329         * sysdeps/mach/hurd/__write.c: Likewise.
1330         * sysdeps/standalone/__write.c: Likewise.
1331         * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
1332         alias tcgetattr.
1333         * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
1334         * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
1335         * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
1336         * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
1337         * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
1338         alias sigaction.
1339         * sysdeps/unix/bsd/__sigact.c: Likewise.
1340         * sysdeps/unix/sysv/__sigact.c: Likewise.
1341         * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
1342         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
1343         * sysdeps/mach/hurd/__sigact.c: Likewise.
1344         * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
1345         alias sigsetmask.
1346         * sysdeps/stub/__sigstmsk.c: Likewise.
1347         * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
1348         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
1349         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
1350         * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
1351         alias getrusage.
1352         * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
1353         * sysdeps/unix/common/__getrusag.S: Likewise.
1354         * hurd/task2pid.c: File removed.
1355         * hurd/setauth.c: File removed.
1356         * hurd/pid2task.c: File removed.
1357         * hurd/hurdsyms.c: File removed.
1358         * hurd/getdport.c: File removed.
1359         * hurd/fopenport.c: File removed.
1360         * mach/thread-sym.c: File removed.
1361         * mach/spin-syms.c: File removed.
1362         * mach/msgserver_t.c: File removed.
1363         * mach/msgserver.c: File removed.
1364         * mach/msg.c: File removed.
1365         * mach/mig_syms.c: File removed.
1366         * malloc/mcheck-init.c: File removed.
1367         * malloc/cfree.c: File removed.
1368         * io/flock.c: File removed.
1369         * io/write.c: File removed.
1370         * io/unlink.c: File removed.
1371         * io/umask.c: File removed.
1372         * io/symlink.c: File removed.
1373         * io/rmdir.c: File removed.
1374         * io/readlink.c: File removed.
1375         * io/read.c: File removed.
1376         * io/pipe.c: File removed.
1377         * io/open.c: File removed.
1378         * io/mkdir.c: File removed.
1379         * io/lstat.c: File removed.
1380         * io/lseek.c: File removed.
1381         * io/link.c: File removed.
1382         * io/isatty.c: File removed.
1383         * io/stat.c: File removed.
1384         * io/fstat.c: File removed.
1385         * io/fchown.c: File removed.
1386         * io/fchmod.c: File removed.
1387         * io/dup2.c: File removed.
1388         * io/dup.c: File removed.
1389         * io/close.c: File removed.
1390         * io/fcntl.c: File removed.
1391         * io/chmod.c: File removed.
1392         * io/chdir.c: File removed.
1393         * io/access.c: File removed.
1394         * io/chown.c: File removed.
1395         * time/tzset.c: File removed.
1396         * time/timelocal.c: File removed.
1397         * time/syms-time.c: File removed.
1398         * time/settod.c: File removed.
1399         * time/setitmr.c: File removed.
1400         * time/gettod.c: File removed.
1401         * time/getitmr.c: File removed.
1402         * time/adjtime.c: File removed.
1403         * termios/tcgetattr.c: File removed.
1404         * string/stpncpy.c: File removed.
1405         * string/rindex.c: File removed.
1406         * string/memccpy.c: File removed.
1407         * string/index.c: File removed.
1408         * string/bcmp.c: File removed.
1409         * stdlib/srand.c: File removed.
1410         * stdlib/random.c: File removed.
1411         * stdio/vsscanf.c: File removed.
1412         * stdio/vfscanf.c: File removed.
1413         * stdio/syms-stdio.c: File removed.
1414         * stdio/remove.c: File removed.
1415         * stdio/getline.c: File removed.
1416         * stdio/getdelim.c: File removed.
1417         * signal/ssignal.c: File removed.
1418         * signal/sigvec.c: File removed.
1419         * signal/sigsetmask.c: File removed.
1420         * signal/sigret.c: File removed.
1421         * signal/sigproc.c: File removed.
1422         * signal/sigpause.c: File removed.
1423         * signal/sigblock.c: File removed.
1424         * signal/sigaction.c: File removed.
1425         * signal/kill.c: File removed.
1426         * signal/gsignal.c: File removed.
1427         * setjmp/siglongjmp.c: File removed.
1428         * setjmp/_longjmp.c: File removed.
1429         * resource/getrusage.c: File removed.
1430         * posix/waitpid.c: File removed.
1431         * posix/wait4.c: File removed.
1432         * posix/wait3.c: File removed.
1433         * posix/wait.c: File removed.
1434         * posix/times.c: File removed.
1435         * posix/sysconf.c: File removed.
1436         * posix/setuid.c: File removed.
1437         * posix/setsid.c: File removed.
1438         * posix/setpgrp.c: File removed.
1439         * posix/setpgid.c: File removed.
1440         * posix/setgid.c: File removed.
1441         * posix/pathconf.c: File removed.
1442         * posix/getuid.c: File removed.
1443         * posix/getppid.c: File removed.
1444         * posix/getpid.c: File removed.
1445         * posix/getgrps.c: File removed.
1446         * posix/getgid.c: File removed.
1447         * posix/geteuid.c: File removed.
1448         * posix/getegid.c: File removed.
1449         * posix/fpathcon.c: File removed.
1450         * posix/fork.c: File removed.
1451         * posix/execve.c: File removed.
1452         * posix/environ.c: File removed.
1453         * misc/utimes.c: File removed.
1454         * misc/setreuid.c: File removed.
1455         * misc/setregid.c: File removed.
1456         * misc/select.c: File removed.
1457         * misc/sbrk.c: File removed.
1458         * misc/mknod.c: File removed.
1459         * misc/ioctl.c: File removed.
1460         * misc/getpgsz.c: File removed.
1461         * misc/gethstnm.c: File removed.
1462         * misc/getdtsz.c: File removed.
1463         * misc/data_start.c: File removed.
1464         * misc/brk.c: File removed.
1465         * math/scalb.c: File removed.
1466         * math/rint.c: File removed.
1467         * math/logb.c: File removed.
1468         * math/isnan.c: File removed.
1469         * math/isinf.c: File removed.
1470         * math/infnan.c: File removed.
1471         * math/finite.c: File removed.
1472         * math/expm1.c: File removed.
1473         * math/drem.c: File removed.
1474         * math/copysign.c: File removed.
1475         * math/__scalb.c: File removed.
1476         * dirent/getdents.c: File removed.
1477
1478 Fri Jan 20 16:11:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1479
1480         * sysdeps/generic/morecore.c (__default_morecore): Use
1481         __malloc_ptrdiff_t; don't cast arg to int.
1482
1483         * resolv/getnetnamadr.c: Include "conf/portability.h".
1484
1485 Thu Jan 19 02:20:04 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1486
1487         * stdlib/strtol.c: Include errno.h.
1488         [QUAD] (ULONG_MAX): Define to a static variable initialized to
1489         ULONG_LONG_MAX. This is to work around a GCC bug in using the
1490         constant in arithmetic.
1491
1492         * posix/unistd.h (daemon): Declare it.
1493
1494         * malloc/mcheck-init.c: Remove GNU ld hacks.
1495         (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
1496         * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
1497         (initialize): Call the hook if set.
1498         * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
1499         (__malloc_initialize_hook): Declare new hook variable.
1500
1501 Wed Jan 18 01:43:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1502
1503         * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
1504         * hurd/hurdpid.c: Likewise.
1505         * hurd/hurdauth.c: Likewise.
1506
1507 Tue Jan 17 03:16:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1508
1509         * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
1510         if any are successful.
1511
1512         * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
1513         (_S_msg_get_exec_flags, _S_msg_set_exec_flags, 
1514         _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
1515         functions.
1516         (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
1517
1518         * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
1519         * hurd/hurd-raise.c: Likewise.
1520         * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
1521
1522         * sysdeps/mach/hurd/ptrace.c: New file.
1523
1524         * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
1525         interface, which has normal EINTR semantics.  Instead of waiting
1526         for io_select_done notification messages, send io_select messages
1527         with short reply timeout and then wait for io_select_reply
1528         messages.
1529
1530         * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
1531         EXEC_INHERITED) to file_exec.
1532
1533         * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
1534         use sig_post_untraced_reply.  All callers changed.
1535         (abort_thread, abort_rpcs): Take same new arg and pass it through.  
1536         All callers changed.
1537         (_hurd_internal_post_signal): Take new arg UNTRACED.
1538         If zero and process is traced, stop with SIGNO as stop signal.  If
1539         nonzero, resume process before delivering signal (unless
1540         ACT==stop).  Expand local fn sigwakeup into block at end taken iff
1541         SIGNO!=0.
1542         (signal_allowed): New function, broken out of _S_sig_post.
1543         (_S_sig_post): Call it.  Pass UNTRACED arg of false to
1544         _hurd_internal_post_signal.
1545         (_S_sig_post_untraced): New function.  Just like _S_sig_post, but
1546         pass true for UNTRACED.
1547         * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
1548         UNTRACED.
1549         * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
1550         to _hurd_internal_post_signal (value zero).
1551
1552 Mon Jan 16 16:40:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1553
1554         * hurd/hurdinit.c (_hurd_exec_flags): New variable.
1555         (_hurd_init): Initialize it from FLAGS arg.
1556         (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
1557         raise a SIGTRAP signal (with a sigcode of zero).
1558         * hurd/hurd.h (_hurd_exec_flags): Declare it.
1559
1560         * Version 1.09.5.
1561
1562 Mon Jan 16 16:16:55 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
1563
1564         * malloc/malloc.c (malloc): Fix 1-off in previous change.
1565
1566 Mon Jan 16 15:49:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1567
1568         * posix/glob/Makefile.in: Remove config.h and config.log.
1569
1570 Sun Jan 15 06:56:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1571
1572         * posix/glob/configure.in: Add AC_CONST check.
1573
1574         * conf/portability.h: #undef sun.
1575         * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
1576         * resolv/getnetnamadr.c: Likewise.
1577
1578         * socket/Makefile (headers): Add sockaddrcom.h.
1579         * inet/netinet/in.h: Include <sockaddrcom.h>.
1580         (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
1581         * socket/sys/un.h (struct sockaddr_in): Likewise.
1582         * socket/sys/socket.h (struct sockaddr): Likewise.
1583         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
1584         * sysdeps/generic/sockaddrcom.h: New file.
1585
1586         * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
1587         * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
1588         F_FREESP): New macros.
1589         * sysdeps/posix/truncate.c: New file.
1590
1591         * malloc/malloc.c (malloc): Fix typos in RMS's change.
1592
1593         * malloc/Makefile (dist-routines): Add malloc-find.
1594         * malloc/malloc.h (malloc_find_object_address): Declare it.
1595         * malloc/malloc-find.c: New file.
1596
1597         * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
1598         __malloc_size_t.
1599         (malloc_info): Use that type for member `busy.info.size'.
1600
1601         * stdlib/strtol.c: Change uses of `long' keyword throughout to use
1602         `LONG' macro.
1603         [! QUAD] (LONG): Define as long.
1604         [QUAD] (LONG): Define as long long.
1605         [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
1606         versions.
1607         [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
1608         * stdlib/Makefile (routines): Add strtoq and strtouq.
1609         * stdlib/strtoq.c, stdlib/strtouq.c: New files.
1610         * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
1611         Declare them.
1612
1613         * stdio/vfprintf.c: If there was a precision specified, ignore the
1614         0 flag and always pad with spaces.
1615
1616         * stdio/vfprintf.c: Don't use strchr to skip text until next %.
1617         Use a loop and also stop on first !isascii char.
1618
1619 Wed Jan 11 00:07:10 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
1620
1621         * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
1622
1623         * malloc/malloc.c (malloc): For a multi-block object, store a
1624         negative number into the busy.info.size of all but the first block.
1625
1626 Tue Jan 10 13:45:20 1995  Brendan Kehoe  <brendan@zen.org>
1627
1628         * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
1629         instead of t0, t1, and t2.
1630
1631 Tue Jan 10 05:53:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1632
1633         * malloc/memalign.c (__memalign_hook): New variable.
1634         (memalign): Call it if set.
1635         * malloc/malloc.h (__memalign_hook): Declare new variable.
1636
1637 Wed Dec 28 03:27:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1638
1639         * conf/portability.h: Include string.h and stdlib.h.
1640         * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
1641         * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
1642         resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
1643         resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
1644         resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
1645
1646         * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro.  Replace
1647         all uses of `extern __inline' with `__m81_inline'.
1648
1649         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
1650         * sysdeps/unix/__fork.S: Swap args in subl.
1651
1652         * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
1653         compatibility.
1654
1655 Tue Dec 20 13:33:20 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
1656
1657         * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
1658         of swtch.
1659         * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
1660         * mach/spin-solid.c (__spin_lock_solid): Likewise.
1661
1662 Thu Dec 15 12:01:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1663
1664         * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
1665         for PBUF.
1666         (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
1667
1668         * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
1669
1670 Wed Dec 14 18:20:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1671
1672         * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
1673         in `bis' insn; immediate must be second.
1674
1675         * sysdeps/unix/__fork.S: Use subl instead of decl.
1676         * sysdeps/unix/i386/__fork.S: New file.
1677
1678         * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
1679         Remove A macro; just use `asm volatile' with proper quotes in each
1680         line.
1681         * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
1682         jmp target register.
1683
1684         * time/africa, time/asia, time/australasia, time/emkdir.c,
1685         time/europe, time/ialloc.c, time/northamerica, time/private.h,
1686         time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
1687         and data from ADO 94h distribution.
1688
1689         * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
1690         __sigjmp_save in %g1 and jmp there.  jmp cannot contain a complete
1691         absolute pointer.  Put second store in jmp delay slot.
1692
1693 Tue Dec 13 15:47:52 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1694
1695         * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
1696         __sigsetjmp in %g1 and jmp there.  jmp cannot contain a complete
1697         absolute pointer.
1698         * sysdeps/sparc/bsd-setjmp.S: Likewise.
1699
1700         * configure.in: Use ; before } in { ... } exprs.
1701
1702 Mon Dec 12 01:41:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1703
1704         * Version 1.09.3.
1705
1706         * sysdeps/mach/hurd/alpha/trampoline.c: Use `long int' for sigcode
1707         values.  Use _hurdsig_catch_fault.  Pass address of __sigreturn in
1708         $27, SCP value in $25.  In trampoline code, use those regs.
1709
1710         * sysdeps/mach/hurd/alpha/__sigret.c: Use asms instead of global
1711         register vars to restore FP regs.  Fix typo in REI invocation.
1712
1713 Sun Dec 11 14:10:11 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1714
1715         * hurd/hurd/fd.h (hurd_register_ioctl_handler,
1716         _HURD_HANDLE_IOCTLS): Third arg to handler is a void *, not a
1717         __gnuc_va_list.
1718
1719         * stdio/memstream.c (enlarge_buffer): Always add one char into
1720         NEED for the char we are writing or the NUL terminator.
1721
1722         * stdio/memstream.c (enlarge_buffer): If realloc fails, just set
1723         error flag and preserve old buffer state.
1724
1725         * stdio/fwrite.c: In fill_buffer case, check for zero buffer space
1726         after fflush and write one char normally.
1727
1728 Sat Dec 10 00:02:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1729
1730         * sysdeps/mach/hurd/__fork.c: Use natural_t in place of int.
1731
1732         * sysdeps/alpha/macros.m4: Use C comments instead of ! comments.
1733
1734         * sysdeps/mach/hurd/mmap.c: Cast -1 to long int before casting to
1735         caddr_t.
1736
1737         * sysdeps/mach/alpha/syscall.S: Include
1738         <mach/machine/alpha_instruction.h> to define op_chmk.
1739
1740         * sysdeps/mach/hurd/__mknod.c: Include <string.h>.
1741         * sysdeps/mach/hurd/setegid.c: Likewise.
1742         * sysdeps/mach/hurd/seteuid.c: Likewise.
1743         * sysdeps/mach/hurd/__setregid.c: Likewise.
1744         * sysdeps/mach/hurd/__setreuid.c: Likewise.
1745         * sysdeps/mach/hurd/__ioctl.c: Likewise.
1746
1747         * sysdeps/mach/hurd/recvfrom.c: Include <string.h>.  Use
1748         mach_msg_type_number_t in place of unsigned int.
1749         * sysdeps/mach/hurd/recv.c: Likewise.
1750         * sysdeps/mach/hurd/getsockopt.c: Likewise.
1751         * sysdeps/mach/hurd/getsocknam.c: Likewise.
1752         * sysdeps/mach/hurd/getpeernam.c: Likewise.
1753         * sysdeps/mach/hurd/accept.c: Likewise.
1754         * sysdeps/mach/hurd/__gethstnm.c: Likewise.
1755
1756 Fri Dec  9 00:01:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1757
1758         * sysdeps/mach/hurd/__readlink.c: Use mach_msg_type_number_t in
1759         place of unsigned int.
1760         * sysdeps/mach/hurd/__fork.c: Likewise.
1761
1762         * sysdeps/mach/hurd/__setgid.c: Include <string.h>.
1763         * sysdeps/mach/hurd/__setuid.c: Likewise.
1764         * sysdeps/mach/hurd/__getgrps.c: Likewise.
1765         * hurd/getuids.c: Likewise.
1766         * sysdeps/mach/hurd/__getdents.c: Likewise.
1767
1768         * sysdeps/mach/hurd/dirstream.h (DIR): Use unsigned long int for
1769         `__allocation' and `__size' members.
1770
1771         * sysdeps/mach/hurd/alpha/exc2signal.c: Use `long int' for sigcode
1772         values.
1773         * sysdeps/mach/hurd/i386/exc2signal.c: Likewise.
1774
1775         * mach/devstream.c (input): Use mach_msg_type_number_t for NREAD.
1776
1777         * sysdeps/mach/hurd/__setitmr.c (preempt_sigalrm): Use `long int'
1778         for SIGCODE; take SIGERROR arg.
1779
1780         * sysdeps/alpha/divrem.m4: Include <sysdep.h> instead of
1781         <regdef.h>.  Use C comments instead of ! comments.
1782
1783         * sysdeps/alpha/memchr.c: Remove extra shift and OR of CHARMASK.
1784         * sysdeps/alpha/strchr.c: Likewise.
1785
1786         * sysdeps/mach/hurd/sysd-stdio.c: Use mach_msg_type_number_t in
1787         place of unsigned int.
1788
1789         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Cast FD to long
1790         int before casting to pointer.
1791
1792         * stdio/printf_fp.c: Include <string.h>.
1793
1794         * sysdeps/alpha/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
1795
1796         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
1797
1798         * hurd/hurdioctl.c (fioctl): Pass a mach_msg_type_number_t* to
1799         __io_readable.
1800
1801         * hurd/hurd-raise.c: Use `long int' for sigcode values.
1802
1803         * hurd/hurdfault.c: Use `long int' for sigcode values.
1804         * hurd/hurdfault.h: Likewise.
1805
1806         * hurd/hurd/signal.h (struct hurd_signal_preempt): Handler takes
1807         new SIGERROR arg.
1808         * hurd/preempt-sig.c: Likewise.
1809         * hurd/hurdsig.c (_hurd_internal_post_signal): Pass SIGERROR to
1810         PREEMPT.
1811
1812         * hurd/hurdlookup.c: Use mach_msg_type_number_t and natural_t in
1813         place of unsigned int and int.
1814
1815         * hurd/hurd/id.h: Use mach_msg_type_number_t in place of unsigned int.
1816
1817         * hurd/catch-exc.c: Use `long int' for sigcode values.
1818         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
1819         * hurd/preempt-sig.c: Likewise.
1820
1821         * configure.in (machine): Don't recognize r[34]00.  
1822         Convert mips64* to mips/mips64/& and mips* to mips/&.
1823         * sysdeps/mips/mipsel/bytesex.h: New file.
1824         * sysdeps/mips/r4000: Directory renamed to sysdeps/mips/mips64.
1825
1826         * sysdeps/mach/alpha/sysdep.h (START_MACHDEP): Add missing
1827         backslashes.
1828         (CALL_WITH_SP): Cast FN to long int.
1829
1830         * sysdeps/mach/alpha/thread_state.h (struct machine_thread_all_state):
1831         New member `exc'.
1832
1833         * hurd/fd-read.c: Include <string.h>.  Use mach_msg_type_number_t
1834         in place of mach_msg_type_size_t.
1835
1836         * hurd/hurdfault.c: Use natural_t instead of int.
1837
1838         * hurd/hurd/signal.h: Use `long int' for sigcode values.
1839         * hurd/hurdsig.c: Use mach_msg_type_number_t and natural_t in
1840         place of unsigned int and int.  Use `long int' for sigcode values.
1841
1842         * hurd/vpprintf.c (pwrite): Cast &N to mach_msg_type_number_t *.
1843
1844         * hurd/__fopenport.c: Include <string.h>.  Use
1845         mach_msg_type_number_t in place of unsigned int.
1846
1847         * hurd/hurdauth.c: Include <string.h>.
1848         * hurd/hurdsock.c: Likewise.
1849
1850         * sysdeps/mach/alpha/machine-lock.h: Remove ".set noreorder" et
1851         al; GCC already emits them.  Fix register constraints in asms.
1852         Set RTN in C, not asm.
1853
1854         * hurd/hurdprio.c: Use mach_msg_type_number_t in place of unsigned
1855         int.
1856
1857 Thu Dec  8 04:00:11 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1858
1859         * sysdeps/mach/hurd/alpha/__sigret.c: Remove ".set noreorder" et
1860         al; GCC already emits them.
1861         * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
1862
1863         * sysdeps/mach/thread_state.h: Use mach_msg_type_number_t and
1864         natural_t in place of unsigned int and int.
1865
1866         * sysdeps/mach/sysdep.h (ENTRY): Don't #error if undefined.
1867
1868         * sysdeps/mach/syscall.h: New file.
1869
1870         * sysdeps/mach/Makefile: Remove debugging printout.
1871
1872         * sysdeps/mach/hurd/configure.in: Converted to an autoconf script
1873         from sysdeps/mach/hurd/configure, to work better with autoconf
1874         version 2.
1875         * sysdeps/mach/configure.in: Likewise, from sysdeps/mach/configure.
1876
1877         * hurd/hurdmsg.c: Use mach_msg_type_number_t in place of unsigned
1878         int.
1879
1880         * sysdeps/mach/alpha/sysdep.h: Rename variable `sp' to avoid
1881         conflict with #define in <mach/alpha/asm.h>.
1882
1883         * sysdeps/mach/hurd/alpha/__sigret.c: Remove unused variable.
1884
1885         * sysdeps/mach/hurd/__ioctl.c: Pass arg to
1886         __mig_dealloc_reply_port.
1887
1888         * configure.in: Converted to Autoconf version 2.
1889         * sysdeps/generic/configure.in: Likewise.
1890         * sysdeps/unix/common/configure.in: Likewise.
1891         * sysdeps/unix/configure.in: New file, converted to a
1892         part-autoconf script from sysdeps/unix/configure, to work better
1893         with autoconf version 2.
1894         * aclocal.m4: Converted to Autoconf version 2.
1895         (AC_CHECK_SYMBOL): New macro.
1896         * config.make.in: New file.
1897         * config-name.in: New file.
1898         * Makefile (distribute): Rename install.sh to install-sh.
1899         Add config.make.in, config-name.in, Makefile.in.
1900         (distclean-1): Remove config-name.h and config.cache.
1901         * Makefile.in: New file.
1902         * Makeconfig (+gnu-stabs, gnu-as): Match -DHAVE_GNU_{AS,LD}=1 too.
1903
1904 Wed Dec  7 14:05:12 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1905
1906         * sysdeps/mach/mips/cacheflush.c: New file.
1907         * sysdeps/mach/mips/Makefile: New file.
1908         * sysdeps/mach/mips/Dist: New file.
1909
1910         * hurd/hurdmalloc.c (vm_allocate, vm_page_size): #define these to
1911         __ names at top.
1912
1913         * posix/glob/Makefile.in (realclean): Remove config.status.
1914
1915         * posix/glob/Makefile.in (DEFS): New variable, set from @DEFS@.
1916         (CPPFLAGS): Remove @DEFS@ from here.
1917         (.c.o): Use $(DEFS).
1918
1919         * setjmp/siglongjmp.c: First arg is const.
1920
1921 Tue Dec  6 19:04:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1922
1923         * posix/glob/Makefile.in (CPPFLAGS): Include @DEFS@.
1924
1925 Mon Dec  5 12:05:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1926
1927         * posix/glob/configure.in: Add AC_PROG_CC.
1928
1929         * sysdeps/mach/hurd/alpha/longjmp-ts.c: Use ENV[0].__jmpbuf[0].
1930         * sysdeps/mach/hurd/mips/longjmp-ts.c: Likewise.
1931         * sysdeps/mach/hurd/i386/longjmp-ts.c: Likewise.
1932
1933         * Version 1.09.2.
1934
1935         * sysdeps/mach/hurd/__select.c: Don't make TO const.
1936
1937 Sun Dec  4 12:06:36 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1938
1939         * sysdeps/unix/configure (config_vars): Add missing backslash
1940         before a $.
1941
1942         Revamp the `setjmp' interface to be cleaner: only one type
1943         `jmp_buf'/`sigjmp_buf', and only one `longjmp' function (with
1944         aliases `_longjmp', `siglongjmp').  Internal setjmp interface is
1945         now __sigsetjmp, which takes SAVEMASK flag and optionally saves
1946         the signal mask.  Add extern entry points `setjmp' and `_setjmp'
1947         for BSD compatiblity; they tail-call __sigsetjmp.
1948         * setjmp/setjmp.h: Include <sigset.h> for __sigset_t, not
1949         <signal.h>
1950         (jmp_buf): Define unconditionally with old `sigjmp_buf' defn.
1951         (__sigjmp_save): Declare to return int.
1952         (__setjmp): Remove declaration; this function no longer exists.
1953         (__sigsetjmp): Declare it; this is the new internal function.
1954         (setjmp): Define to call __sigsetjmp, second arg depending on
1955         __FAVOR_BSD.
1956         [__OPTIMIZE__] (longjmp): Remove #define.
1957         [__USE_BSD] (_longjmp): Declare it, another name for `longjmp'.
1958         [__USE_BSD] (_setjmp): Define macro to do __sigsetjmp (ENV, 0). 
1959         [__FAVOR_BSD]: Remove all these defns.
1960         [__USE_POSIX] (sigjmp_buf): Define as another name for `jmp_buf'.
1961         [__USE_POSIX] (sigsetjmp): Define to call __sigsetjmp.
1962         * setjmp/sigjmp.c (__sigjmp_save): Return an int, always zero, not
1963         void.
1964         * setjmp/Makefile (routines): Remove _setjmp, add bsd-setjmp and
1965         bsd-_setjmp.
1966         * setjmp/longjmp.c: Define as a real funciton, which restores
1967         signal mask and calls __longjmp.
1968         * setjmp/siglongjmp.c: Make this an alias to longjmp.
1969         * setjmp/_longjmp.c: Alias to longjmp, not siglongjmp.
1970         * sysdeps/stub/setjmp.c: Implement __sigsetjmp instead of
1971         __setjmp; call __sigjmp_save.
1972         * sysdeps/sparc/setjmp.S: Likewise.
1973         * sysdeps/m68k/setjmp.c: Likewise.
1974         * sysdeps/i386/setjmp.c: Likewise.
1975         * sysdeps/vax/setjmp.c: Likewise.
1976         * sysdeps/mips/setjmp.S: Implement __sigsetjmp instead of
1977         __setjmp; call __sigsetjmp_aux instead of __setjmp_aux.  Pass SP
1978         and FP as 3rd and 4th args, not 2nd and 3rd.
1979         * sysdeps/alpha/setjmp.S: Likewise.
1980         * sysdeps/mips/setjmp_aux.c: Implement __sigsetjmp_aux instead of
1981         __setjmp_aux; call __sigjmp_save.
1982         * sysdeps/alpha/setjmp_aux.c: Likewise.
1983         * sysdeps/mips/bsd-setjmp.S, sysdeps/mips/bsd-_setjmp.S: New files.
1984         * sysdeps/alpha/bsd-setjmp.S, sysdeps/alpha/bsd-_setjmp.S: New files.
1985         * sysdeps/vax/bsd-setjmp.S, sysdeps/vax/bsd-_setjmp.S: New files.
1986         * sysdeps/sparc/bsd-setjmp.S, sysdeps/sparc/bsd-_setjmp.S: New files.
1987         * sysdeps/i386/bsd-setjmp.S, sysdeps/i386/bsd-_setjmp.S: New files.
1988         * sysdeps/m68k/bsd-setjmp.S, sysdeps/m68k/bsd-_setjmp.S: New files.
1989         * sysdeps/stub/bsd-setjmp.c, sysdeps/stub/bsd-_setjmp.c: New files.
1990         * setjmp/_setjmp.c: File removed.
1991         * sysdeps/alpha/__longjmp.c: Take arg of type __jmp_buf, not
1992         jmp_buf.
1993         * sysdeps/vax/__longjmp.c: Likewise.
1994         * sysdeps/stub/__longjmp.c: Likewise.
1995         * sysdeps/i386/__longjmp.c: Likewise.
1996         * sysdeps/m68k/__longjmp.c: Likewise.
1997
1998 Sat Dec  3 09:00:17 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1999
2000         * sysdeps/mach/hurd/alpha/__sigret.c: Set up frame for `rei' to
2001         restore on user stack, aligned to an 8-word boundary and with a PS
2002         value that restores user's stack alignment.
2003
2004 Fri Dec  2 19:31:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2005
2006         * sysdeps/unix/readdir.c: Search one char more than D_NAMLEN(DP)
2007         for the null terminator.  Always set D->d_namlen, using
2008         D_NAMLEN(DP) if no null is found.
2009
2010         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Fix typo `.global' to
2011         `.globl'.  Silly me, I used a vowel in a Unix program.
2012
2013 Mon Nov 28 16:11:39 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2014
2015         * io/fts.c (ALIGN, ALIGNBYTES): New macros, defined if not already
2016         defined.
2017
2018 Tue Nov 22 06:39:49 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2019
2020         * sysdeps/unix/bsd/osf1/dirstream.h: File removed.
2021
2022         * sysdeps/stub/sigcontext.h (struct sigcontext): Use `__sigset_t'
2023         instead of `sigset_t' for `sc_mask'.
2024         * sysdeps/mach/hurd/i386/sigcontext.h: Likewise.
2025         * sysdeps/mach/hurd/alpha/sigcontext.h: Likewise.
2026         * sysdeps/mach/hurd/mips/sigcontext.h: Likewise.
2027         * sysdeps/unix/bsd/ultrix4/mips/sigcontext.h: Likewise.
2028         * sysdeps/unix/bsd/sun/m68k/sigcontext.h: Likewise.
2029         * sysdeps/unix/bsd/sun/sparc/sigcontext.h: Likewise.
2030
2031         * hurd/hurdsig.c (_hurd_internal_post_signal: case handle): Call
2032         abort_thread always, first thing after thread_suspend.
2033
2034 Mon Nov 21 13:18:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2035
2036         * sysdeps/mach/hurd/__fcntl.c: Don't make this whole function a
2037         critical section.
2038
2039         * sysdeps/generic/strpbrk.c: Don't call strchr; do it by hand for
2040         efficiency.
2041
2042 Wed Nov 16 12:47:22 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2043
2044         * sysdeps/unix/bsd/m68k/sysdep.S [__motorola__]: Swap operands in
2045         cmp.l.
2046
2047         * hurd/msgportdemux.c (_hurd_msgport_receive): Call
2048         _hurd_self_sigstate to get sigstate cached before running any
2049         signal thread code.
2050
2051         * sysdeps/mach/hurd/__fork.c: Pass _hurd_msgport_thread to
2052         __thread_get_state, not _hurd_sigthread.  Don't do
2053         __thread_get_state on THREAD_SELF--the kernel does not allow it.
2054
2055         * hurd/hurdsig.c (_hurd_internal_post_signal): In stopping orphan
2056         test, take sigmask of SIGNO, don't & its value with a mask.  In
2057         blocked signal test, be careful not to pass SIGNO=0 to __sigismember.
2058
2059 Tue Nov 15 01:39:36 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2060
2061         * Makerules (stub-$(subdir)): Save absolute name of
2062         $(..)sysdeps/stub before cd'ing, transform gleaned file names to
2063         refer to saved name.
2064
2065         * sysdeps/mach/hurd/socketpair.c: Include <fcntl.h>.
2066
2067         * time/test_time.args: Add CST as a test case.
2068
2069         * sysdeps/mach/hurd/socketpair.c: Rewritten (copying __pipe.c).
2070
2071         * sysdeps/unix/bsd/dirstream.h [__USE_BSD] (dirfd): New macro.
2072
2073         * posix/unistd.h: Declare fchdir.
2074
2075         * io/fts.c (MAXPATHLEN): Define if not defined.
2076
2077         * io/fts.c, io/fts.h: New files, from 4.4 BSD code by Keith Bostic.
2078         * io/Makefile (routines): Add fts.
2079         (headers): Add fts.h.
2080
2081         Mostly ported the Hurd to the DEC Alpha.
2082         * sysdeps/mach/alpha/machine-sp.h: New file.
2083         * sysdeps/mach/alpha/thread_state.h: New file.
2084         * sysdeps/mach/alpha/sysdep.h: New file.
2085         * sysdeps/mach/alpha/machine-lock.h: New file.
2086         * sysdeps/mach/hurd/alpha/sigcontext.h: New file.
2087         * sysdeps/mach/hurd/alpha/longjmp-ts.c: New file.
2088         * sysdeps/mach/hurd/alpha/trampoline.c: New file.
2089         * sysdeps/mach/hurd/alpha/exc2signal.c: New file.
2090         * sysdeps/mach/hurd/alpha/__sigret.c: New file.
2091
2092         * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Make the
2093         output unwritable.
2094         * sysdeps/alpha/Makefile (divrem rule): Make the output
2095         unwritable, use mv -f.
2096         * sysdeps/sparc/Makefile (divrem rule): Likewise.
2097
2098         * configure.in (sysnames): Put another loop on $mach inside $base
2099         loop but outside $vendor loop.  This should catch .../cpu/vendor.
2100
2101 Mon Nov 14 22:52:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2102
2103         * sysdeps/mach/hurd/start.c: Add missing #endif.
2104
2105 Sun Nov 13 05:04:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2106
2107         * sysdeps/mach/hurd/__select.c: At end of receiving loop, clear TO
2108         instead of TIMEOUT.
2109
2110         * malloc/mcheck-init.c (turn_on_mcheck): Add gratuitous self
2111         reference to silence compiler warning.
2112         (_hurd_preinit_hook): Add the function to this set too.
2113
2114         * time/__tzset.c (__tzset): Give tz_rules coherent default when TZ
2115         value is short or malformed.
2116
2117         * mach/devstream.c: Echo input after reading it.
2118
2119         * Make-dist (generated): Mutate to add .S and .s variations for .c
2120         files.
2121
2122 Fri Nov 11 11:43:26 1994  Michael I Bushnell  <mib@churchy.gnu.ai.mit.edu>
2123
2124         * sysdeps/mach/hurd/i386/__sigret.c (__sigreturn): Don't actually
2125         abort here; at least let the user continue with bogus FP; that's
2126         better than a random crash until it's fixed.
2127
2128 Thu Nov 10 04:56:28 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2129
2130         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h (msync): Use __caddr_t
2131         instead of caddr_t in decl.
2132
2133         * sysdeps/mach/start.c (START_ARGS): Define to void if undefined.
2134         [START_MACHDEP]: Reference this if defined.
2135         [START_MACHDEP] (_start): #define to _start0.
2136         (_start): Take args START_ARGS.
2137         * sysdeps/mach/hurd/start.c: Likewise.
2138
2139 Wed Nov  9 08:02:59 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2140
2141         * hurd/Makefile (sig): Remove longjmp-ctx (it is never called).
2142
2143         * sysdeps/mach/hurd/__fork.c: Do thread_get_state on parent's
2144         threads to modify and thread_set_state new child threads.
2145
2146 Mon Nov  7 00:38:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2147
2148         * posix/glob/configure.in: Converted to Autoconf v2.
2149         * posix/glob.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H
2150         instead of DIRENT, SYSDIR, NDIR.
2151         * posix/glob/Makefile.in (CC): New variable, set from @CC@.
2152         (CPPFLAGS): Set from @CPPFLAGS@, not @DEFS@.
2153
2154         * sysdeps/unix/__fork.S: Use decrement and AND instead of test and
2155         branch.
2156         * sysdeps/unix/sparc/__fork.S: Likewise.
2157         * sysdeps/unix/sparc/__vfork.S: Likewise.
2158         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
2159         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
2160         * sysdeps/unix/i386/__fork.S: File removed.
2161
2162 Sun Nov  6 19:26:28 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2163
2164         * Version 1.09.
2165
2166 Fri Nov  4 16:52:05 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2167
2168         * Version 1.08.14.
2169
2170         * manual/Makefile (stamp-summary): Depend on $(chapters-incl) too.
2171
2172 Thu Nov  3 18:33:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2173
2174         * sysdeps/generic/sigset.h (__sigemptyset): Cast to __sigset_t.
2175         (__sigfillset): Likewise.  Use ~(__sigset_t)0 in place of -1.
2176         (__SIGSETFN): Don't try to be clever.  Test bounds of SIG with <
2177         and >.
2178
2179         * sysdeps/mach/hurd/__fork.c: Unlock signal state earlier, just
2180         after unlocking _hurd_ports locks.
2181
2182         * sysdeps/unix/bsd/osf1/direct.h: File removed.
2183         * sysdeps/unix/bsd/direct.h (struct direct): Use `unsigned int'
2184         instead of `unsigned long int' for `d_fileno' member.
2185
2186         * Makerules (common-mostlyclean): Remove $(tests:=.out) too.
2187
2188         * assert/assert-perr.c (__assert_perror_fail): Add missing comma.
2189
2190         * sysdeps/unix/ioctls-tmpl.c [__osf__ && __alpha__] (FIOPIPESTAT,
2191         SIOCSRREQR, SIOCSRREQW, SRVC_REQUEST): #undef these.
2192
2193 Wed Nov  2 23:00:19 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2194
2195         * sysdeps/mach/hurd/setegid.c: Pass poly and count args for
2196         other_handles in correct order in call to auth_makeauth.
2197         * sysdeps/mach/hurd/__setregid.c: Likewise.
2198         * sysdeps/mach/hurd/__setreuid.c: Likewise.
2199
2200         * Makerules (compile.S): Add -DASSEMBLER.
2201         * sysdeps/mach/sysdep.h [ASSEMBLER]: Don't include
2202         <mach/mig_support.h> if this is defined.
2203
2204 Wed Nov  2 22:39:55 1994  Michael I Bushnell  <mib@churchy.gnu.ai.mit.edu>
2205
2206         * sysdeps/mach/hurd/seteuid.c: Pass poly and count args for
2207         other_handles in correct order in call to auth_makeauth.
2208
2209 Wed Nov  2 15:03:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2210
2211         * stdio/internals.c (fillbuf): Make sure returned char doesn't get
2212         sign extended.
2213
2214 Tue Nov  1 01:25:28 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2215
2216         * sysdeps/unix/common/Implies: File removed.
2217         * sysdeps/unix/bsd/Implies: Add unix/inet.
2218
2219         * assert/assert-perror.c: Renamed to assert-perr.c.
2220         * assert/Makefile (routines): Rename assert-perror to assert-perr.
2221
2222         * Version 1.08.13.
2223
2224         * mach/Makefile (generated): Add __%.c for $(mach-shortcuts) too.
2225
2226         * dirent/Makefile (tests): Add tst-seekdir.
2227         * dirent/tst-seekdir.c (main): New file.
2228         * sysdeps/unix/bsd/seekdir.c: New file.
2229         * sysdeps/unix/bsd/telldir.c: New file.
2230         * sysdeps/unix/bsd/dirstream.h (DIR): New member `__pos'.
2231         * sysdeps/unix/bsd/readdir.c: Update DIRP->__pos in getdirentries
2232         call.
2233         * sysdeps/unix/opendir.c: Use calloc in place of malloc, to zero
2234         fill new DIRs.
2235
2236         * sysdeps/standalone/i386/force_cpu386/force_cpu386.ld: Renamed to
2237         target.ld.
2238         * sysdeps/standalone/i386/force_cpu386/Makefile: Install it from
2239         that name (still into $(libdir)/force_cpu386.ld).
2240
2241         * mach/Makefile (headers, user-interfaces, server-interfaces):
2242         Don't add default_pager stuff.
2243
2244 Mon Oct 31 07:00:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2245
2246         * sysdeps/unix/bsd/sun/sunos4/termbits.h (TCSASOFT): Macro
2247         removed.
2248
2249         * malloc/malloc.h: Change #ifdef __STDC__ to #if defined
2250         (__STDC__) && __STDC__.
2251
2252 Fri Oct 28 00:09:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2253
2254         * sysdeps/mach/sysdep.h: Include <mach/mig_support.h> for decls.
2255         (FATAL_PREPARE): Pass arg to __mig_dealloc_reply_port.
2256
2257         * assert/Makefile (routines): Add assert-perror.
2258
2259         * Makerules (stubs): cd into $(objdir) and use local file names,
2260         making the cmd shorter.
2261
2262         * sysdeps/mach/hurd/getprio.c (getonepriority): Call
2263         proc_getprocinfo with proc port.
2264
2265         * sysdeps/mach/hurd/errnos.awk: Grok "@comment errno %d" in
2266         errno.texi, instead of assigning sequentially.
2267         * sysdeps/mach/hurd/errlist.awk: Likewise.
2268
2269         * stdio/fwrite.c: Reset BUFFER_SPACE after fflush in fill_buffer
2270         case.
2271
2272         * sysdeps/generic/sigset.h (__SIGSETFN): When losing, punt to
2273         `raise (-1)'.  Old method looped.
2274
2275         * hurd/hurd/resource.h: Include <hurd/process.h>.
2276
2277 Thu Oct 27 15:00:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2278
2279         * sysdeps/standalone/standalone.h: Fixed typo.
2280
2281 Wed Oct 26 00:21:16 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2282
2283         * sysdeps/unix/i386/vfork.S: New file.
2284
2285         * sysdeps/generic/strchr.c: Increment CP properly in check for 5th
2286         char of quadword hit.
2287
2288         * sysdeps/mach/hurd/getprio.c (getonepriority): Always set ONERR.
2289
2290 Tue Oct 25 03:53:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2291
2292         * hurd/hurd/resource.h: Include <errno.h>.
2293
2294         * stdio/ftell.c: If STREAM->__pushed_back, calculate from
2295         pushback_bufp instead of bufp.
2296
2297         * Makefile (format-me): New canned sequence; runs makeinfo
2298         --no-headers.
2299         (INSTALL): Use it.
2300         (NOTES): New file rule.
2301
2302         * manual/intro.texi (Feature Test Macros): Node moved off to
2303         creature.texi.
2304         * manual/creature.texi: New file, broken out of intro.texi.
2305
2306         * manual/Makefile (indices): New variable; include ky.
2307         (realclean): Use $(indices) to remove all index and sorted index
2308         files.
2309
2310         * sysdeps/mach/hurd/fcntlbits.h (O_ASYNC, O_FSYNC, O_SYNC):
2311         Protect with [__USE_BSD].
2312
2313 Mon Oct 24 00:16:59 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2314
2315         * sysdeps/unix/bsd/utime.c: Initialize tv_usec fields.
2316         Use __gettimeofday instead of time.
2317
2318         * sunrpc/pmap_rmt.c: Include <sys/param.h> before <net/if.h>.
2319         Undef _POSIX_SOURCE before that.
2320         * sunrpc/pm_getport.c: Likewise.
2321         * sunrpc/pm_getmaps.c: Likewise.
2322         * sunrpc/get_myaddr.c: Likewise.
2323
2324         * misc/sys/cdefs.h: Undef __P first.
2325
2326         * Version 1.08.12.
2327
2328         * sysdeps/mach/hurd/getprio.c: Rewritten.
2329         * sysdeps/mach/hurd/setprio.c: New file.
2330         * hurd/hurdprio.c: New file.
2331         * hurd/Makefile (routines): Add hurdprio.
2332         * hurd/hurd/resource.h (_hurd_priority_which_map): Declare it.
2333         (NICE_TO_MACH_PRIORITY, MACH_PRIORITY_TO_NICE): New macros.
2334
2335 Sun Oct 23 19:39:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2336
2337         * Makerules (sources): Fix typo in last change.
2338
2339 Fri Oct 21 13:15:39 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2340
2341         * sysdeps/generic/termbits.h (ECHOKE): Remove gratuitous leading
2342         space before #define.
2343
2344         * Makerules (sources): Filter out $(elided-routines).
2345
2346         * sysdeps/sparc/divrem.m4 (entry point): For OP=rem, set SIGN from
2347         dividend only, ignoring divisor.
2348         (Lgot_result): Test SIGN here for OP=rem too (as originally).
2349
2350 Wed Oct 19 02:40:02 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2351
2352         * hurd/hurdsig.c: Use assert_perror.
2353
2354         * assert/assert-perror.c (__assert_perror_fail): New file.
2355         * assert/assert.h (assert_perror): New macro.
2356  
2357         * Version 1.08.11.
2358
2359         * hurd/hurdsig.c (abort_rpcs): Actually return a port instead of
2360         boolean, as the type says.
2361
2362         * hurd/hurdsig.c (abort_all_rpcs): If waiting for reply from
2363         interrupted RPC returns error, print debugging msg with error
2364         test, don't assert.
2365
2366 Mon Oct 17 00:06:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2367
2368         * stdlib/strtol.c: Deansideclized.
2369         * sysdeps/generic/strcspn.c: Deansideclized.
2370         * sysdeps/generic/putenv.c: Deansideclized, added portability
2371         cruft.
2372
2373 Fri Oct 14 14:00:11 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2374
2375         * sysdeps/unix/sysv/sysv4/solaris2/utsnamelen.h:
2376         Moved to sysdeps/unix/sysv/sysv4.
2377
2378 Thu Oct 13 22:06:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2379
2380         * sysdeps/unix/common/glue-ctype.c [HAVE__LOCP]: Move this defn to
2381         first.  Include sys/types.h.
2382
2383         * sysdeps/unix/bsd/readdir.c: Include direct.h.
2384
2385         * socket/sys/socket.h (__SOCKADDR_ARG): Always use non-GCC defn,
2386         for now.
2387         * posix/sys/wait.h (__WAIT_STATUS): Likewise.
2388
2389 Tue Oct 11 00:42:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2390
2391         * Version 1.08.10.
2392
2393 Mon Oct 10 00:33:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2394
2395         * malloc/malloc.h [_MALLOC_INTERNAL] (CHAR_BIT): Don't define if
2396         already defined.
2397
2398         * stdio/__vfscanf.c: Grok %q modifier like %ll.
2399
2400         * mach/__msgserver.c: Increase default MAX_SIZE to two pages.
2401
2402         * misc/init-misc.c: Cast string constant to non-const type.
2403
2404         * sysdeps/i386/ffs.c: Use %1 again instead of listing TMP as an
2405         input with constraint "1".  This avoids a warning that TMP may be
2406         used before set.
2407
2408 Sun Oct  9 22:41:20 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2409
2410         * hurd/hurdsig.c (abort_all_rpcs): Declare SS.
2411
2412 Sun Oct 09 01:19:38 1994  Jim Meyering  (meyering@comco.com)
2413
2414         * posix/fnmatch.c: Remove CONFIG_BROKETS conditional.
2415
2416 Fri Oct  7 15:28:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2417
2418         * stdio/__vfscanf.c: Properly grok %a modifier.
2419
2420         * hurd/hurdsig.c (abort_rpcs): Return the reply port or null,
2421         instead of boolean.
2422         (abort_all_rpcs): Record the returns from abort_rpcs and wait for
2423         a message on each reply port.  Don't bother locking _hurd_siglock.
2424
2425 Thu Oct  6 18:57:44 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2426
2427         * hurd/hurd.h (_hurd_socket_server): Take new arg DEAD; explain
2428         its use in comment.
2429         * hurd/hurdsock.c (_hurd_socket_server): Take new arg DEAD; if
2430         nonzero, clear any old cached port and always do a fresh lookup.
2431         * sysdeps/mach/hurd/socket.c: Pass new arg to _hurd_socket_server,
2432         cope with dead server on socket_create.
2433         * sysdeps/mach/hurd/__pipe.c: Likewise.
2434
2435 Mon Oct  3 02:09:43 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2436
2437         * sysdeps/generic/utsnamelen.h (_UTSNAME_LENGTH): Increase to
2438         1024.
2439
2440 Sun Oct  2 18:35:16 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2441
2442         * posix/glob.h (__P): Change arg name to `protos', for congruence
2443         with 4.4 BSD.
2444         * posix/fnmatch.h (__P): Likewise.
2445
2446 Sat Oct  1 04:25:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2447
2448         * misc/Makefile (routines): Add daemon.
2449
2450 Fri Sep 30 16:49:09 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2451
2452         * misc/daemon.c: New file, incorporated from BSD 4.4-Lite.
2453
2454         * sysdeps/mach/hurd/__setsid.c: Call _hurd_setcttyid with
2455         MACH_PORT_NULL after proc_setsid.
2456
2457         * hurd/hurdioctl.c (_hurd_setcttyid): Don't do mod_refs if port is
2458         null.
2459
2460         Always use fds' `port' cell for the generic port.
2461         For ctty fds, use the `ctty' cell for the ctty-special port.
2462         * hurd/dtable.c (get_dtable_port): Use port, never ctty.
2463         (fork_child_dtable): Reset D->ctty instead of D->port.
2464         (ctty_new_pgrp): Likewise. 
2465         * sysdeps/mach/hurd/__ioctl.c: Use ctty port for RPC if set and
2466         !NOCTTY.
2467         * hurd/port2fd.c (_hurd_port2fd): Install normal port in D->port
2468         cell, and ctty-special port in the D->ctty cell, not the reverse.
2469         * hurd/hurdioctl.c (tiocsctty): Don't assume MACH_PORT_NULL is
2470         zero.
2471         * hurd/hurdexec.c (_hurd_exec): Always pass fds' normal port,
2472         never its ctty port.
2473         * hurd/fd-write.c (_hurd_fd_write): Use ctty port for RPC if set
2474         and !NOCTTY.
2475         * hurd/fd-read.c (_hurd_fd_read): Use ctty port for RPC if set.
2476
2477 Thu Sep 29 18:28:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2478
2479         * mach/mig_syms.c (mig_put_reply_port): Add symbol alias to __
2480         name.
2481
2482 Thu Sep 29 12:23:07 1994  Brendan Kehoe  (brendan@zen.org)
2483
2484         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (ENTRY): Use
2485         poundfnc instead of \#function, to satisfy gcc-2.6.0 and higher.
2486         (cat, poundfnc): Define macros to pull it off.
2487
2488         * sysdeps/unix/sysv/sysd-stdio.c: Include
2489         sysdeps/generic/sysd-stdio.h,
2490         not looking in sysdeps/posix.
2491
2492 Thu Sep 29 05:38:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2493
2494         * sysdeps/unix/common/configure.in (ctype check): In test prog,
2495         just reference $ctype; we don't care what type it is.
2496
2497         * sysdeps/unix/bsd/bsd4.4/direct.h: New file.
2498         (HAVE_D_TYPE): Define this macro.
2499         * dirent/dirent.h (struct dirent): New member `d_type'; shorten
2500         `d_namlen' to a byte.
2501         * sysdeps/unix/bsd/readdir.c [! HAVE_D_TYPE]: Shuffle d_namlen and
2502         clear d_type.
2503
2504 Wed Sep 28 17:23:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2505
2506         * posix/sys/utsname.h [__USE_SVID] (SYS_NMLN): New macro.
2507
2508         * dirent/scandir.c: Free storage on error from readdir.
2509
2510 Mon Sep 26 00:55:34 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2511
2512         * Version 1.08.9.
2513
2514         * MakeTAGS (all-dist): Prepend the appropriate sysdep dir names.
2515
2516         * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): Create a
2517         send right.
2518
2519 Sat Sep 24 13:44:51 1994  Jim Meyering  (meyering@comco.com)
2520
2521         * sysdeps/generic/memcmp.c [CMP_LT_OR_GT]: New macro.
2522         (memcmp): Use it in place of each of ten 5-line #ifdef blocks.
2523
2524 Fri Sep 23 16:55:54 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2525
2526         * sysdeps/mach/hurd/sigsuspend.c: Include <hurd/msg.h>.
2527
2528         * sysdeps/mach/hurd/sigsuspend.c: Add missing & in __mach_msg
2529         call.
2530
2531 Thu Sep 15 14:22:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2532
2533         * sysdeps/standalone/i386/force_cpu386/Dist: New file.
2534         * sysdeps/standalone/m68k/m68020/mvme136/Dist: New file.
2535         * sysdeps/standalone/i960/Dist: New file.
2536         * sysdeps/standalone/m68k/m68020/Dist: New file.
2537         * sysdeps/standalone/i386/force_cpu386/force_cpu386.ld: New file.
2538         * sysdeps/standalone/m68k/m68020/mvme136/mvme136.ld: New file.
2539         * sysdeps/standalone/i960/i960ca.h: New file.
2540         * sysdeps/standalone/m68k/m68020/m68020.h: New file.
2541
2542         * sysdeps/unix/common/configure.in: Use AC_COMPILE_CHECK instead
2543         of AC_HAVE_FUNCS.
2544
2545         * sysdeps/generic/make_siglist.c (sys_siglist): Define as macro to
2546         my_siglist.
2547
2548         * sysdeps/mach/i386/thread_state.h: Include from mach/machine, not
2549         mach/i386.
2550         * sysdeps/mach/hurd/i386/sigcontext.h: Likewise.
2551
2552         * mach/mach/mig_support.h (__mig_put_reply_port): Declare.
2553         (__mig_dealloc_reply_port): Take arg.
2554         * sysdeps/mach/hurd/mig-reply.c (__mig_put_reply_port): New
2555         function.
2556         (__mig_dealloc_reply_port): Take arg, ignore it.
2557
2558 Wed Sep 14 18:16:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2559
2560         * sysdeps/mach/hurd/Makefile (libc-name): Set to crt.
2561         [!subdir]: Install libc-ldscript as libc.a.
2562         * sysdeps/mach/hurd/Dist: Add libc-ldscript.
2563
2564 Tue Sep 13 19:57:09 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2565
2566         * sysdeps/mach/hurd/sync.c: Don't be synchronous: pass WAIT=0 to
2567         file_syncfs.
2568
2569         * Makerules (libc-name): New variable.
2570         (install, libc installation rule): Use $(libc-name) in place of `c'.
2571
2572 Sun Sep 11 23:28:20 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2573
2574         * sysdeps/mach/hurd/__readlink.c: Only decrement LEN to remove the
2575         null terminator when LEN is already large enough to include it.
2576
2577         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Add break
2578         after FS_RETRY_MAGICAL case.
2579
2580 Fri Sep  9 04:03:59 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2581
2582         * stdio/vfprintf.c: Grok q modifier like ll.
2583
2584         * Make-dist (sysdep-Subdir-files, subdirs): Set these early on,
2585         before doing distinfo.
2586         [parent] (+distinfo): Set inhibit_interface_rules=t in sub-make.
2587
2588 Thu Sep  8 17:18:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2589
2590         * sysdeps/generic/morecore.c (__default_morecore) [! __STDC__]:
2591         Declare arg as `int' instead of `ptrdiff_t'.
2592
2593 Tue Sep  6 19:06:00 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
2594
2595         * posix/glob.c (prefix_array, glob): Avoid const on initialized
2596         variables.  Some compiler generates bad code.
2597
2598 Mon Sep  5 13:24:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2599
2600         * malloc/Makefile (malloc/%: ../sysdeps/generic/%): New rule, to get
2601         morecore.c.
2602
2603         * malloc/malloc.h (size_t, ptrdiff_t): Never define these as macros.
2604         (__malloc_size_t): Define this instead.
2605         Change all uses of size_t to __malloc_size_t.
2606         * malloc/valloc.c: Replace all uses of size_t with __malloc_size_t.
2607         * malloc/memalign.c: Likewise.
2608         * malloc/mcheck.c: Likewise.
2609         * malloc/mtrace.c: Likewise.
2610         * malloc/malloc.c: Likewise.
2611         * malloc/free.c: Likewise.
2612         * malloc/realloc.c: Likewise.
2613         * malloc/calloc.c: Likewise.
2614
2615         * MakeTAGS (TAGS): Define first so as to be default goal.
2616         (sysdep_dirs): Set this by running find, if it is not already set.
2617         (all-dirs): Include that value.
2618         (all-dist): Filter output of cat, not args to it.
2619         * Makerules (TAGS): Depend on distinfo, not distfile.
2620
2621         * resolv/getnetnamadr.c (getnetbyname): Arg is always const,
2622         regardless of [sun].
2623
2624 Sun Sep  4 00:04:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2625
2626         * Version 1.08.8.
2627
2628         * Makerules (distinfo-vars): Double $s in final emitted sources defn.
2629
2630         * inet/Makefile (headers): Add netdb.h.
2631         * resolv/Makefile (headers): Remove netdb.h.
2632         * resolv/netdb.h: Moved to inet.
2633         * inet/netdb.h: Incorporated from BSD 4.4-Lite.
2634         Add back h_errno declaration.
2635
2636         * hurd/Makefile (faultexc.c): Change this to a pattern rule to
2637         build both faultexc.[ch].
2638         (hurdfault.o): Depend on faultexc.h and faultexc.c to get them built.
2639
2640         * sysdeps/mach/hurd/i386/trampoline.c
2641         (_hurdsig_rcv_interrupted_p): Make PC volatile.
2642         (_hurd_setup_sighandler): Cast SS->context to int before comparing to
2643         _hurdsig_fault_sigcode.
2644
2645         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_SET_{SP,PC}):
2646         Cast args to unsigned long int.
2647
2648         * sysdeps/mach/hurd/i386/trampoline.c: Use _hurdsig_catch_fault.
2649
2650         * Make-dist (subdirs): Use sed to remove comments from Subdirs files.
2651         * MakeTAGS (subdirs): Likewise.
2652
2653         * sysdeps/mach/i386/thread_state.h: Include
2654         <mach/i386/thread_status.h> first thing.
2655
2656         * hurd/Makefile (sig): Add faultexc.
2657         ($(objpfx)faultexc.c): New target.
2658         (generated): Append faultexc.c.
2659
2660         * hurd/Makefile (sig): Add hurdfault; remove init-fault.
2661         (distribute): Add hurdfault.h.
2662         * hurd/hurdfault.h: New file.
2663         * hurd/hurdfault.c: New file.
2664         * hurd/hurdsig.c (interrupted_reply_port_location): Use
2665         _hurdsig_catch_fault and _hurdsig_end_catch_fault.
2666         (_hurdsig_getenv): Likewise.
2667         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
2668
2669         * hurd/catch-exc.c: Return EPERM if TASK is not right.
2670
2671         * hurd/hurdsig.c (_hurd_sigthread_fault_env): Variable moved to
2672         hurdfault.c.
2673         (_hurdsig_fault_init): Function moved to hurdfault.c.
2674
2675 Sat Sep  3 12:22:53 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2676
2677         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_SET_PC,
2678         MACHINE_THREAD_STATE_SET_SP): New macros.
2679         * mach/setup-thread.c: Use MACHINE_THREAD_STATE_SET_PC.
2680         * sysdeps/mach/hurd/__fork.c: Likewise.
2681
2682         * string/test-ffs.c (main: try): Actually call ffs in the test.
2683
2684 Fri Sep  2 21:20:17 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2685
2686         * sysdeps/mach/hurd/mips/__sigret.c: Restore FPU state.  Code from
2687         kkojima.
2688
2689         * sysdeps/mach/hurd/__mknod.c: Fixed copying of the translator
2690         name into buffer with major and minor numbers, and setting of LEN.
2691
2692         * sysdeps/unix/configure (unix_syscall): In sed cmd, do = first to
2693         avoid clobbering produced assignments.
2694
2695 Thu Sep  1 03:25:17 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2696
2697         * Version 1.08.7.
2698
2699         * sysdeps/mach/hurd/connect.c (connect): Fix accidental renaming
2700         of sun_path to sun_file_name.
2701
2702         * bare/Makefile (routines, elided-routines): Set these both to
2703         $(bare-routines).
2704         (distribute): Don't set this.
2705
2706         * Makerules (distinfo-vars): Fix cmd to echo `sources' defn.
2707
2708         * sysdeps/unix/configure: Handle dirs other than common.  Check
2709         for [gs]etdomainname.
2710         * misc/Makefile (routines): Add getdomain, setdomain.
2711         * sysdeps/unix/bsd/bsd4.4/setdomain.S: New file.
2712         * sysdeps/unix/bsd/bsd4.4/getdomain.S: New file.
2713         * sysdeps/stub/setdomain.c: New file.
2714         * sysdeps/stub/getdomain.c: New file.
2715
2716 Wed Aug 31 01:15:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2717
2718         * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): Take no
2719         args; use parent SS variable.  Changed all calls.
2720
2721         * hurd/hurd/signal.h (struct hurd_sigstate): Make `suspended' a
2722         port; remove `arrived'.
2723         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend): Rewritten to set
2724         SS->suspended port and wait for msg on it.  Check for and deliver
2725         pending signals properly.
2726         * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): If
2727         SS->suspended is set, send an empty message on it and clear it.
2728
2729         * math/test-math.c (print_trig_stuff): New function, tests many
2730         math functions.
2731         (main): Call it at end.
2732
2733         * string/Makefile (tests): Added test-ffs.
2734         * string/test-ffs.c: New file.
2735
2736 Tue Aug 30 20:33:49 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2737
2738         * misc/fstab.c (error): Return void.
2739         (fstabscan): Return int.
2740
2741         * sysdeps/i386/ffs.c: Use & modifier in constraint for CNT.
2742
2743         * misc/fstab.c (EFTYPE): If not defined by errno.h, define this to
2744         EINVAL.
2745         (fstabscan): Return void.
2746
2747 Tue Aug 30 11:00:01 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
2748
2749         * sysdeps/mach/hurd/__access.c (__access): Use a send right,
2750         not a send-once right, in the new auth protocol.
2751         * hurd/__setauth.c (_hurd_setauth): Likewise.
2752         * hurd/hurdsig.c (reauth_proc): Likewise.
2753         * hurd/dtable.c (reauth_dtable): Likewise.
2754         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
2755
2756 Tue Aug 30 03:59:38 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2757
2758         * socket/sys/socket.h (__SOCKADDR_ARG) [GCC>=2.6]: Use a typedef
2759         with the transparent_union attribute.
2760
2761         * sysdeps/mach/hurd/__access.c: Use new authentication protocol:
2762         for each port, create a fresh receive right and pass send-once
2763         rights in the auth calls, then destroy the port.
2764
2765         * sysdeps/mach/mips/syscall.S: New file.
2766
2767         * stdio/Makefile (mpn-headers, mpn-sysdep): Change asm.h to
2768         asm-syntax.h.
2769
2770         * misc/Makefile (headers): Added fstab.h.
2771         (routines): Added fstab.
2772         * misc/fstab.c: New file.
2773         * misc/fstab.h: New file.
2774
2775         * hurd/Makefile (routines): Changed hurdpath to hurdlookup.
2776         * hurd/hurdpath.c: Renamed to hurd/hurdlookup.c.
2777         * hurd/hurdlookup.c: Globally replace `pathtrans' with `lookup' and
2778         `path' with `file_name'.
2779         (__hurd_file_name_split): Don't bother skipping leading slashes.
2780         * hurd/hurd.h: Rename likewise in decls.
2781         * hurd/fchroot.c: Globally replace `pathtrans' with `lookup' and
2782         `path' with `file_name'.
2783         * hurd/hurdsig.c: Likewise.
2784         * hurd/hurdsock.c: Likewise.
2785         * hurd/hurdsyms.c: Likewise.
2786         * hurd/invoke-trans.c: Likewise.
2787         * sysdeps/mach/hurd/__access.c: Likewise.
2788         * sysdeps/mach/hurd/__chmod.c: Likewise.
2789         * sysdeps/mach/hurd/__chown.c: Likewise.
2790         * sysdeps/mach/hurd/__execve.c: Likewise.
2791         * sysdeps/mach/hurd/__link.c: Likewise.
2792         * sysdeps/mach/hurd/__lstat.c: Likewise.
2793         * sysdeps/mach/hurd/__mkdir.c: Likewise.
2794         * sysdeps/mach/hurd/__mknod.c: Likewise.
2795         * sysdeps/mach/hurd/__open.c: Likewise.
2796         * sysdeps/mach/hurd/__rmdir.c: Likewise.
2797         * sysdeps/mach/hurd/__readlink.c: Likewise.
2798         * sysdeps/mach/hurd/__stat.c: Likewise.
2799         * sysdeps/mach/hurd/__symlink.c: Likewise.
2800         * sysdeps/mach/hurd/__unlink.c: Likewise.
2801         * sysdeps/mach/hurd/__utimes.c: Likewise.
2802         * sysdeps/mach/hurd/bind.c: Likewise.
2803         * sysdeps/mach/hurd/chflags.c: Likewise.
2804         * sysdeps/mach/hurd/connect.c: Likewise.
2805         * sysdeps/mach/hurd/fchdir.c: Likewise.
2806         * sysdeps/mach/hurd/opendir.c: Likewise.
2807         * sysdeps/mach/hurd/sysd-stdio.c: Likewise.
2808         * sysdeps/mach/hurd/truncate.c: Likewise.
2809         * sysdeps/mach/hurd/rename.c: Likewise.
2810         * sysdeps/mach/hurd/getcwd.c: Likewise.
2811         * sysdeps/mach/hurd/chroot.c: Likewise.
2812         * sysdeps/mach/hurd/__chdir.c: Likewise.
2813
2814         * hurd/__setauth.c (_hurd_setauth): Use new authentication
2815         protocol: for each port, create a fresh receive right and pass
2816         send-once rights in the auth calls, then destroy the port.
2817         * hurd/hurdsig.c (reauth_proc): Likewise.
2818         * hurd/dtable.c (reauth_dtable): Likewise.
2819
2820         * hurd/hurdpath.c (__hurd_path_lookup_retry): Don't handle
2821         FS_RETRY_NONE (it's gone).  Use new authentication protocol:
2822         create a fresh receive right and pass send-once rights in the auth
2823         calls, then destroy the port.
2824
2825 Mon Aug 29 13:17:39 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
2826
2827         * sysdeps/mach/hurd/__symlink.c (__symlink): Use new
2828         file_set_translator protocol.
2829         * sysdeps/mach/hurd/bind.c (bind): Likewise.
2830         * sysdeps/mach/hurd/__mknod.c (__mknod): Likewise.
2831
2832         * sysdeps/mach/hurd/__pipe.c (__pipe): Use PF_LOCAL instead
2833         of AF_FILE.
2834
2835 Fri Aug 26 01:21:09 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2836
2837         * Makefile ($(objpfx)sysd-dirs): Use sed to remove # comments from
2838         Subdirs files.
2839
2840         Support for miscellaneous standalone boards (no OS), contributed
2841         by Joel Sherrill (jsherril@redstone-emh2.army.mil), On-Line
2842         Applications Research Corporation.
2843         * sysdeps/standalone: New directory.
2844         * sysdeps/standalone/standalone.h: New file.
2845         * sysdeps/standalone/stdio_lim.h: New file.
2846         * sysdeps/stub/strtsupp.c: New file.
2847         * sysdeps/standalone/filedesc.h: New file.
2848         * sysdeps/posix/{setenv,putenv}.c: Moved to sysdeps/generic.
2849         * sysdeps/unix/getenv.c: Moved to sysdeps/generic.
2850         * sysdeps/unix/morecore.c: Moved to sysdeps/generic.
2851         * sysdeps/posix/sysd-stdio.c: Moved to sysdeps/generic.
2852         * sysdeps/stub/errnos.h: Add ENFILE and EMFILE.
2853         * sysdeps/stub/errlist.c (_sys_errlist): Likewise.
2854         * sysdeps/stub/console.c: New file.
2855         * sysdeps/standalone/__open.c: New file.
2856         * sysdeps/standalone/__read.c: New file.
2857         * sysdeps/standalone/__write.c: New file.
2858         * sysdeps/standalone/__close.c: New file.
2859         * sysdeps/stub/brdinit.c: New file.
2860         * sysdeps/unix/__sbrk.c: Moved to sysdeps/generic.
2861         * sysdeps/standalone/__brk.c: New file.
2862         * sysdeps/standalone/Subdirs: New file
2863         * bare/Makefile: New file (and new directory).
2864         * sysdeps/i960/ffs.c: New file.
2865         * sysdeps/i960/Implies: New file.
2866         * configure.in (os=none): base_os=standalone
2867
2868 Thu Aug 25 23:56:32 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2869
2870         * sysdeps/stub/__sigret.c: Arg is not const.
2871         * signal/sigret.c: Likewise.
2872
2873 Tue Aug 23 14:43:19 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2874
2875         * socket/sys/socket.h (PF_FILE, AF_FILE): Removed (use LOCAL instead).
2876         (PF_XTP, PF_COIP, PF_CNT, PF_RTIP, PF_IPX, PF_SIP, PF_PIP): New
2877         macros.
2878         (PF_MAX): Increased to 26.
2879         (pseudo_AF_XTP, AF_COIP, AF_CNT, pseudo_AF_RTIP, AF_IPX, AF_SIP,
2880         pseudo_AF_PIP): New macros.
2881         (MSG_EOR, MSG_TRUNC, MSG_CTRUNC, MSG_WAITALL, MSG_DONTWAIT,
2882         SO_REUSEPORT): New enum constants.
2883
2884         * hurd/hurdsig.c (_hurd_internal_post_signal): If not preempted,
2885         set ACT before checking for SIGCONT.  When continuing and
2886         ACT==handle, don't resume SS->thread; record that it is suspended
2887         and in handler-setup code, don't suspend it again.
2888
2889         * sysdeps/mach/hurd/sys/param.h: Include <errno.h> (BSD does).
2890
2891         * sysdeps/mach/hurd/__fork.c: When unchaining old sigstates, check
2892         for SS being head of chain.
2893
2894 Mon Aug 22 00:29:02 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2895
2896         * time/{asia,australasia,europe,northamerica}: New data from ADO.
2897
2898         * hurd/hurdsig.c (abort_rpcs): After destroying MSGING_PORT,
2899         change the return value register in STATE to EINTR.
2900         * sysdeps/mach/mips/thread_state.h (SYSRETURN): New macro.
2901         * sysdeps/mach/i386/thread_state.h (SYSRETURN): New macro.
2902
2903         * hurd/hurdsig.c (default_sigaction): New function.
2904         (_hurd_thread_sigstate): Use it to initialize SS->actions.
2905         Initialize rest of new sigstate by hand, don't just bzero it.
2906
2907         * hurd/hurdsig.c (_hurd_internal_post_signal): Initialize
2908         THREAD_STATE.set to zero.
2909
2910         * posix/execl.c: Use ARG instead of PATH in va_start.
2911
2912         * sysdeps/mach/hurd/__fork.c: In child fork, unchain stale
2913         structures from _hurd_sigstates first, and only free them after
2914         other processing is complete.
2915
2916         * hurd/hurdpath.c (__hurd_path_lookup_retry): For malformed number
2917         in magic "fd/N", return ENOENT instead of treating it as bogus
2918         magic.
2919
2920         * sysdeps/mach/hurd/__chdir.c: After __path_lookup on arg, use
2921         __hurd_path_lookup of empty file name on resultant port to check
2922         that it's a directory.
2923         * sysdeps/mach/hurd/chroot.c: Likewise.
2924         * sysdeps/mach/hurd/fchdir.c: Use __hurd_path_lookup of empty file
2925         name on FD port to check that it's a directory and acquire a
2926         reference at the same time.
2927         * hurd/fchroot.c: Likewise.
2928
2929         * hurd/hurdpid.c (init_pids): Add gratuitous self reference to
2930         silence compiler.
2931
2932         * hurd/hurdpath.c: Include <hurd/term.h> for cttyid opening rpc.
2933         (__hurd_path_lookup_retry): Fixed typo.
2934
2935         * sysdeps/mach/hurd/i386/__sigret.c: Push state onto the user's
2936         stack, switch to it, pop and return.
2937
2938         Major rewrite of Hurd signal delivery.
2939         * hurd/hurd/signal.h (struct hurd_sigstate): New member `context'.
2940         * sysdeps/mach/hurd/i386/trampoline.c: Include "thread_state.h"
2941         instead of <mach/thread_status.h>.
2942         (struct mach_msg_trap_args): New type.
2943         (trampoline): Function removed.
2944         (_hurd_setup_sighandler): Take struct hurd_sigstate * arg instead
2945         of FLAGS and SIGALTSTACK args; take new flag arg RPC_WAIT; use
2946         struct machine_thread_all_state * for STATE arg.  New declared
2947         labels `trampoline', `rpc_wait_trampoline' mark asm code at end of
2948         function (after return).  Add another struct sigcontext * to
2949         STACKFRAME after the first one, for the arg to __sigreturn.  If
2950         SS->context is set, fill registers in SCP from that instead of
2951         STATE, and reset SS->INTR_PORT from it.  Use memcpy to copy from
2952         STATE into SCP; the structures are congruent.  If RPC_WAIT is set,
2953         set up to use rpc_wait_trampoline and frob args to mach_msg_trap
2954         syscall in progress so that it will retry the receive operation
2955         (but not resend!).
2956         {rpc_wait_trampoline, trampoline}: New trampoline code.
2957         (_hurd_rcv_interrupted_p): New function.
2958         * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
2959         * hurd/hurdsig.c (write_corefile): Take new arg SIGERROR.  Use
2960         _hurdsig_getenv instead of getenv.  Use dir_mkfile to create an
2961         unlinked node for the core file; then use dir_link to name it,
2962         only if core_dump_task succeeded.
2963         (post_reply): New function.
2964         (abort_thread): New function.
2965         (interrupted_reply_port_location): New function.
2966         (interrupted_reply_port): Function removed (replaced by above).
2967         (abort_all_rpcs): Take struct machine_thread_all_state * for STATE.
2968         (abort_rpcs): Likewise.
2969         Return int, nonzero iff interrupt_operation RPC was done.  Take
2970         args for reply port and its port type; call abort_thread instead
2971         of doing thread_abort and thread_get_state.  Call
2972         _hurdsig_rcv_interrupted_p instead of _hurd_thread_state_msging_p.
2973         Use __interrupt_operation mig stub instead of manual packing.  If
2974         we destroy the msging port, and it is the thread's mig reply port,
2975         clear its reply port slot.  Fix inverted SA_RESTART test.
2976         (_hurd_internal_post_signal): Take new arg SIGERROR.
2977         Remove `cont' from ACT enum; SIGCONT processing is independent of
2978         handling.  Removed local function `check_pending'; add `reply'.
2979         Use mask macro STOPSIGS instead of alternation to check for stop
2980         signals.  Process SIGCONT and do continuation before examining the
2981         handler.  Use SS->pending_data instead of SS->sigcodes.  When
2982         dying, don't lock _hurd_siglock around __proc_dostop call.  When
2983         dying, reply immediately after stopping user threads.  When
2984         handling, notice return from abort_rpcs and pass it to
2985         _hurd_setup_sighandler; also pass SS instead of its components.
2986         Set SCP->sc_error from SIGERROR; clear SS->intr_port after saving
2987         it in SCP->sc_intr_port.  For pending checks, use macro PENDING
2988         and goto pending if returns true.
2989         (_S_sig_post): Eliminate unnecessary variable WIN; pass SIGERROR
2990         value of zero to _hurd_internal_post_signal.
2991         (_hurdsig_getenv): New function.
2992         * sysdeps/mach/hurd/i386/__sigret.c (sp): New global register
2993         variable.
2994         (__sigreturn): Arg is not const.
2995         After restoring SCP->sc_mask, check for pending signals (newly
2996         unblocked); if any, set SS->context to SCP, clear SS->intr_port,
2997         and send sig_post to the signal thread to deliver the pending
2998         signals.  Point SP directly at &SCP->sc_gs and used popa;iret to
2999         restore.  (This does not actually work; iret is unhelpful.)
3000         * sysdeps/mach/hurd/mips/__sigret.c (__sigreturn): Arg is not
3001         const.  After restoring SCP->sc_mask, check for pending signals
3002         (newly unblocked); if any, set SS->context to SCP, clear
3003         SS->intr_port, and send sig_post to the signal thread to deliver
3004         the pending signals.  Don't write $1 value into the user stack.
3005         Instead, write it into the word just past SCP->sc_pc; then point
3006         $1 at SCP->sc_pc and use `op_sigreturn' pseudo-instruction to
3007         restore the PC and $1 from that.
3008
3009 Fri Aug 19 15:39:54 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3010
3011         * configure.in (machine): Grok i586 -> i386/i586.
3012         * sysdeps/i386/pentium: Directory renamed to sysdeps/i386/i586.
3013
3014         * hurd/hurd.h (_hurd_pids_changed_stamp, _hurd_pids_changed_sync):
3015         New variables.
3016         * hurd/hurdpid.c (_S_proc_newids): Last thing, increment
3017         _hurd_pids_changed_stamp and broadcast on _hurd_pids_changed_sync.
3018         * sysdeps/mach/hurd/__setpgrp.c: After proc_setpgrp succeeds and
3019         PID is ourself, wait on _hurd_pids_changed_sync until
3020         _hurd_pids_changed_stamp increases from the value before the RPC.
3021         * sysdeps/mach/hurd/__setsid.c: After proc_setsid succeeds, wait
3022         on _hurd_pids_changed_sync until _hurd_pids_changed_stamp
3023         increases from the value before the RPC.
3024
3025         * posix/sys/wait.h [GCC>=2.6] (__WAIT_STATUS): Define this with
3026         typedef as a union with the new (GCC 2.6.1) `transparent_union'
3027         attribute.
3028
3029         * stdio/printf_fp.c (MPNSIZE): New macro, computed from DBL_MAX_EXP.
3030         (MPN_VAR): Use that for size of bignums.
3031
3032         * sysdeps/mach/hurd/__kill.c: For pgrp, ignore ESRCH error from
3033         kill_pid of individual pids, unless from all of them.
3034         * hurd/hurdkill.c (_hurd_sig_post): Likewise.
3035
3036 Fri Aug 19 00:54:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3037
3038         * configure.in (INSTALL): Quote this shell goop from m4.
3039
3040         * sysdeps/stub/start.c (errno, __environ): Define these variables.
3041
3042         * sysdeps/stub/errnos.h (ENOMEM, EACCES): New macros.
3043         * sysdeps/stub/errlist.c (_sys_errlist): Add strings for all
3044         macros defined in stub/errnos.h.
3045         (_sys_nerr): Use value computed from sizeof (_sys_errlist).
3046
3047 Wed Aug 17 15:32:39 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3048
3049         * hurd/hurdmsg.c (_S_io_select_done): Take poly arg for notify
3050         port arg.
3051
3052         * mach/mach_init.h (vm_page_size): Remove macro defn.
3053
3054         * hurd/Makefile (distribute): Added STATUS.
3055
3056         * sysdeps/mach/thread_state.h: Include <string.h> and
3057         <mach/mach_interface.h>.
3058
3059         * sysdeps/mach/hurd/__select.c: Pass port-type arg to io_select.
3060
3061         * sysdeps/mach/hurd/__fork.c: Include "hurdmalloc.h", so we use
3062         the right `free'.
3063
3064         * sysdeps/mach/hurd/__select.c (SELECT_DONE_MSGID): Correct value
3065         to 23020.
3066         (__select): Don't set PORT until just before sending io_select calls.
3067         Pass proper send-size for io_select_done reply message.  Clear the
3068         reply port slot in io_select_done reply message header.
3069
3070         * sysdeps/mach/hurd/__kill.c: Rename parameter to ARG_SIG, make
3071         SIG a local variable initialized to that (this to work around a
3072         GCC bug).
3073         Initialize PIDS and NPIDS properly for proc_getpgrppids call.
3074
3075         * signal/signal.h (__sigreturn, sigreturn): Arg is not const.
3076
3077         * hurd/hurdpath.c (__hurd_path_lookup_retry): For REAUTH or NORMAL
3078         with empty retryname, treat like NONE (which is now obsolete)
3079         after reauthentication.  For magic "tty", use new
3080         termctty_open_terminal RPC on cttyid port.
3081
3082 Tue Aug 16 01:58:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3083
3084         * sysdeps/mach/hurd/__kill.c (kill_pid): Make non-inline.  Treat
3085         null msgport like EPERM return from sig_post.
3086         * hurd/hurdkill.c (_hurd_sig_post): Treat null msgport like EPERM.
3087
3088         * sysdeps/mach/thread_state.h (machine_get_state,
3089         machine_get_basic_state): Initialize count arg before calling
3090         thread_get_state.
3091
3092         * hurd/hurdpath.c (__hurd_path_lookup_retry): Initialize ERR to zero.
3093
3094         * hurd/hurdpath.c (__hurd_path_lookup_retry): Grok magic "tty".
3095
3096         * hurd/hurd/signal.h (struct hurd_sigstate): Replace `sigcodes' with
3097         `pending_data'.
3098         (_hurd_raise_signal, _hurd_setup_sighandler): Update prototypes.
3099         (_hurd_thread_state_msging_p): Don't declare.
3100         (_hurdsig_rcv_interrupted_p): Declare this instead.
3101         (HURD_EINTR_RPC): Invert sense of restart test.
3102
3103         * hurd/hurdrlimit.c (_hurd_rlimits): Add braces to initializer.
3104
3105         * hurd/catch-exc.c: Unlock _hurd_siglock when done with it.  Use
3106         __spin_lock_locked on `held' member instead of __mutex_lock_locked.
3107
3108         * sysdeps/mach/thread_state.h: New file.
3109         * sysdeps/mach/i386/thread_state.h: Don't #include
3110         <mach/thread_status.h>.  Add #include_next <thread_state.h> at end.
3111         * sysdeps/mach/mips/thread_state.h: Likewise.
3112
3113         * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Lay out
3114         corresponding to i386_thread_state and i386_float_state.
3115         * sysdeps/mach/hurd/mips/sigcontext.h (sc_mips_thread_state,
3116         sc_mips_exc_state, sc_mips_float_state): New macros, marking
3117         members that correspond to thread_state.h structs.
3118
3119 Mon Aug 15 17:21:20 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3120
3121         * Rules [cross-compiling=yes] (tests): Depend on the binaries, not
3122         the output files.
3123
3124         * Makerules: Replace uses of HOST_CC with BUILD_CC and
3125         native-CFLAGS with BUILD_CFLAGS.
3126
3127         * sysdeps/unix/Makefile (mk-local_lim, make-ioctls): Replace uses
3128         of CC with BUILD_CC and native-CFLAGS with BUILD_CFLAGS.
3129         * sysdeps/unix/sysv/sysv4/solaris2/Makefile: Replace uses of
3130         HOST_CC with BUILD_CC and native-CFLAGS with BUILD_CFLAGS.
3131         * sysdeps/posix/Makefile: Likewise.
3132
3133         * Makeconfig (+cc_version): Variable and associated code removed.
3134         (HOST_CC): Use BUILD_CC instead; all uses changed.
3135         (cross-compiling): Set to no if not the case.
3136
3137         * sysdeps/m68k/fpu/__math.h: Replace all uses of __const with
3138         __CONSTVALUE.
3139
3140         * Makerules (distinfo-vars): Remove $@.new first thing.  Write
3141         elided-routines instead of sysdep_routines.  After writing
3142         variables, append to sources from $(elided-routines).
3143         * sysdeps/vax/Makefile (elided-routines): New variable (append to
3144         it).
3145         (aux, routines): Don't set these.
3146         (sysdep_routines): Append things here instead.
3147         * sysdeps/generic/Makefile (elided-routines): New variable (append
3148         to it).
3149         (aux): Don't set this.
3150         * sysdeps/generic/Makefile (routines): Don't set this.
3151         (sysdep_routines): Append exp__E and log__L here instead.
3152
3153         * time/test_time.c (main): Set TBUF.tm_isdst to -1 before calling
3154         mktime.
3155
3156         * stdlib/stdlib.h (atof, atoi, atol, random, srandom, setstate,
3157         initstate, mblen): Never define as macros.
3158         [__OPTIMZE__ && __GNUC__ >= 2]: Define those functions as extern
3159         inlines.
3160
3161         * hurd/hurdpath.c (__hurd_path_lookup_retry): For magic "fd/%u",
3162         lose on random chars after number; for / after number, retry
3163         remainder properly.
3164
3165         * hurd/hurdpath.c (pathtrans_error): New function; filters errors
3166         from dir_pathtrans: EOPNOTSUPP and MIG_BAD_ID become ENOTDIR.
3167         (__hurd_path_lookup, __hurd_path_lookup_retry): Call it.
3168
3169 Thu Aug 11 11:59:33 1994  Noel Cragg  (noel@churchy.gnu.ai.mit.edu)
3170
3171         * time/mktime.c (_mktime_internal): Add code to normalize value of
3172         TM_ISDST to -1, 0, or 1 so code doesn't loop forever.
3173
3174 Thu Aug 11 02:26:37 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3175
3176         * resolv/Makefile (subdir): Set to resolv, not res.
3177
3178         * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Pass ERR to
3179         _hurd_raise_signal.
3180
3181         * sysdeps/mach/i386/thread_state.h (struct machine_thread_all_state):
3182         Add new member `fpu'.
3183
3184 Wed Aug 10 23:39:49 1994  Karl Heuer  <kwzh@hal.gnu.ai.mit.edu>
3185
3186         * malloc/mcheck.c (mcheck): Remove obsolete extern declaration.
3187
3188         * malloc/mcheck.c (flood): Add an arg.
3189         (freehook, mallochook, reallochook): Use different flood bytes to
3190         distinguish freed space from uninitialized allocated space.
3191
3192         * malloc/mtrace.c (mtrace): Guard against being called twice.
3193         (muntrace): New function, to turn off tracing.
3194         * malloc/malloc.h: Declare it.
3195
3196 Wed Aug 10 02:47:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3197
3198         * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Renamed
3199         member `sc_err' to `sc_error'.
3200
3201         * hurd/hurd-raise.c: Take new arg SIGERROR.  Set
3202         SS->pending_data[SIGNO] from SIGCODE and SIGERROR instead of
3203         setting SS->sigcodes[SIGNO].
3204
3205         * Makeconfig (+includes): Use text manipulation to avoid
3206         conditional for $(..).  Append $(last-includes).
3207         * sysdeps/mach/hurd/Makefile (last-includes): Append
3208         -I.../libthreads to this.
3209         (includes): Not to this.
3210
3211         * hurd/hurd/fd.h (_hurd_fd_error): Pass ERR to _hurd_raise_signal.
3212
3213         * stdlib/stdlib.h [__OPTIMIZE__] (cfree, rand, srand, random,
3214         srandom, initstate, setstate): Macros removed.
3215
3216         * malloc/mcheck.c (reallochook): Fixed typo.
3217         (mabort) [! __GNU_LIBRARY__]: Use fprintf and abort instead of
3218         __libc_fatal.
3219
3220         * hurd/Makefile (sig): Remove msging-p; that function will go in
3221         trampoline.c.
3222         * sysdeps/stub/msging-p.c: File removed.
3223         * sysdeps/mach/hurd/mips/msging-p.c: File removed.
3224         * sysdeps/mach/hurd/i386/msging-p.c: File removed.
3225
3226 Tue Aug  9 19:20:29 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3227
3228         * hurd/catch-exc.c: Get error code from _hurd_exception2signal and
3229         pass it to _hurd_internal_post_signal.  Search for SS manually
3230         rather than using _hurd_thread_sigstate, to avoid locks.
3231
3232         * sysdeps/mach/hurd/mips/msging-p.c: Fetch port argument from
3233         register $8 (t0) instead of stack.  Change type of STATE arg to
3234         `struct machine_thread_all_state *'.
3235
3236         * inet/inet_netof.c: Incorporated from BSD 4.4-Lite.
3237         * inet/inet_net.c: Incorporated from BSD 4.4-Lite.
3238
3239 Tue Aug  9 18:28:40 1994  Karl Heuer  <kwzh@hal.gnu.ai.mit.edu>
3240
3241         * malloc/mtrace.c (tr_mallochook, tr_reallochook): Don't assume
3242         %lx format matches size_t arg.
3243         * malloc/mtrace.c: Enable file- and line-number tracing.
3244         * malloc/mtrace.awk: Postprocess that trace information.
3245
3246         * malloc/mcheck.c (flood): New function.
3247         (freehook, mallochook, reallochook): Initialize new space and
3248         freed space to non-zero garbage, to help find code that makes
3249         unwarranted assumptions.
3250
3251 Mon Aug  8 01:20:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3252
3253         * sysdeps/mach/hurd/mips/exc2signal.c (_hurd_exception2signal): Take
3254         new arg `int *error'; set it.
3255         * sysdeps/mach/hurd/i386/exc2signal.c: Likewise.
3256         * sysdeps/stub/exc2signal.c: Likewise.
3257         * hurd/hurd/signal.h (_hurd_exception2signal): Take new arg
3258         `int *error'.
3259         (_hurd_internal_post_signal): Take new arg `int error'.
3260
3261         * res: Directory renamed to resolv.
3262         * sysdeps/unix/inet/Subdirs: Change res to resolv.
3263
3264         * Version 1.08.6.
3265
3266         * sysdeps/sparc/divrem.m4 (DEVELOP_QUOTIENT_BITS): Use ** instead of
3267         ^ for exponentiation.  Pinard says it is more portable.
3268
3269         * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Added
3270         member `sc_err'.
3271         * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Move
3272         sc_err to front machine-independent section; change its comment.
3273
3274         * sysdeps/stub/thread_state.h (struct machine_thread_all_state): New
3275         type.
3276         * sysdeps/mach/i386/thread_state.h: Likewise.
3277         * sysdeps/mach/mips/thread_state.h: Likewise.
3278
3279         * sysdeps/mach/i386/Implies: File removed; it was superfluous.
3280
3281         * sysdeps/sparc/divrem.m4 (Lgot_result): Add more quotes in ifelse.
3282
3283         * configure.in (fpu_dirs): Fixed typo.
3284
3285 Sun Aug  7 01:13:04 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3286
3287         * inet/inet_lnaof.c: Incorporated from BSD 4.4-Lite.
3288         * inet/inet_mkadr.c: Incorporated from BSD 4.4-Lite.
3289         * inet/inet_addr.c: Incorporated from BSD 4.4-Lite.
3290         * res/Makefile (headers): Use only arpa/nameser.h, not arpa/*.h.
3291         * res/arpa/inet.h: Moved to inet/arpa/inet.h.
3292         * inet/arpa/inet.h: Incorporated from BSD 4.4-Lite.
3293
3294         * misc/init-misc.c: New file.
3295         * misc/Makefile (aux): Added init-misc.
3296
3297         * Makeconfig (localtime-file): Use $(sysconfdir) instead of
3298         $(etcdir).
3299
3300         * Makerules (install-bin-nosubdir): Use $(install-bin) instead of
3301         $(install).
3302         (install-sbin-nosubdir): New target.
3303         (install-no-libc.a-nosubdir): Depend on that.
3304
3305         * configure.in ($nfp check): Iterate through $mach and use all
3306         fpu/ dirs that exist.
3307
3308 Wed Aug  3 02:46:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3309
3310         * sysdeps/mach/hurd/mips/sigcontext.h: Rearranged structure so
3311         machine-dependent portion is laid out like `struct mips_thread_state;
3312         struct mips_exc_state; struct mips_float_state;'.
3313
3314         * Version 1.08.5.
3315
3316         * sysdeps/mach/hurd/mips/__sigret.c: Compare *reply_port to
3317         MACH_PORT_NULL, not implicit zero.
3318         (restore_gpr): Use N-1 as subscript into sc_gpr (sc_gpr[0] => $1).
3319         Before general regs, restore from sc_mdlo and sc_mdhi.  Don't
3320         treat sp, fp specially; use restore_gpr for them too.  For final
3321         return, store user $1 value beyond top of user stack ahead of
3322         time; then use $1 to hold the user PC, and restore it from the
3323         stack in the delay slot.
3324
3325 Tue Aug  2 21:03:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3326
3327         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
3328         Copy TS to SCP all at once.
3329         * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): sc_gpr
3330         has 31 elts; sc_gpr, sc_pc, sc_mdlo, sc_mdhi are arranged in that
3331         order to mimic struct mips_thread_state.
3332
3333         * Make-dist (all-headers): Instead of removing rpcsvc/%, use
3334         $(wildcard) to remove all headers that don't exist at top level,
3335         but preserve top-level $(headers).
3336
3337         * Make-dist (sysdep_dirs): Avoid directories called RCS.
3338         (%/configure): Pass -f to mv.
3339
3340         * sysdeps/mips/setjmp.S [__sgi__]: Use `fp' instead of `$fp'.
3341
3342 Mon Aug  1 20:12:23 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3343
3344         * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Add
3345         members sc_mdlo, sc_mdhi.
3346         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
3347         Save mdlo and mdhi.
3348
3349 Sun Jul 31 14:21:16 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3350
3351         * time/mktime.c: Remove errant comment end sequence.
3352
3353         * termios/sys/ttydefaults.h: Incorporated from BSD 4.4-Lite.
3354         * sysdeps/vax/DEFS.h: Incorporated from BSD 4.4-Lite.
3355         * sysdeps/unix/bsd/sys/reboot.h: Incorporated from BSD 4.4-Lite.
3356         * sysdeps/unix/bsd/bsd4.4/errnos.h: Updated from 4.4-Lite sys/errno.h.
3357         [__USE_BSD] (EAUTH, ENEEDAUTH, ELAST): New macros.
3358         * sysdeps/ieee754/support.c: Incorporated from BSD 4.4-Lite.
3359         * sysdeps/ieee754/cbrt.c: Incorporated from BSD 4.4-Lite.
3360         * sysdeps/generic/trig.h: Incorporated from BSD 4.4-Lite.
3361         * sysdeps/generic/tanh.c: Incorporated from BSD 4.4-Lite.
3362         * sysdeps/generic/tan.c: Incorporated from BSD 4.4-Lite.
3363         * sysdeps/generic/sinh.c: Incorporated from BSD 4.4-Lite.
3364         * sysdeps/generic/sincos.c: Incorporated from BSD 4.4-Lite.
3365         * sysdeps/generic/pow.c: Incorporated from BSD 4.4-Lite.
3366         * sysdeps/generic/mathimpl.h: Incorporated from BSD 4.4-Lite.
3367         Add back __izing #define's, except for exp__E and log__L, which
3368         have been renamed with __s in 4.4-Lite.
3369         * sysdeps/generic/log__L.c: Incorporated from BSD 4.4-Lite.
3370         * sysdeps/generic/log1p.c: Incorporated from BSD 4.4-Lite.
3371         * sysdeps/generic/log.c: Incorporated from BSD 4.4-Lite.
3372         * sysdeps/generic/fmod.c: Incorporated from BSD 4.4-Lite.
3373         * sysdeps/generic/exp__E.c: Incorporated from BSD 4.4-Lite.
3374         * sysdeps/generic/exp.c: Incorporated from BSD 4.4-Lite.
3375         * sysdeps/generic/cosh.c: Incorporated from BSD 4.4-Lite.
3376         * sysdeps/generic/atanh.c: Incorporated from BSD 4.4-Lite.
3377         * sysdeps/generic/atan2.c: Incorporated from BSD 4.4-Lite.
3378         * sysdeps/generic/asinh.c: Incorporated from BSD 4.4-Lite.
3379         * sysdeps/generic/asincos.c: Incorporated from BSD 4.4-Lite.
3380         * misc/getusersh.c: Incorporated from BSD 4.4-Lite.
3381         (initshells): Reapply fix of 16 Nov 1992.
3382         * sysdeps/generic/acosh.c: Incorporated from BSD 4.4-Lite.
3383         * sysdeps/generic/__expm1.c: Incorporated from BSD 4.4-Lite.
3384         * misc/ttyslot.c: Incorporated from BSD 4.4-Lite.
3385         * misc/ttyent.h: Incorporated from BSD 4.4-Lite.
3386         * misc/syslog.c: Incorporated from BSD 4.4-Lite.
3387         * misc/paths.h: Incorporated from BSD 4.4-Lite.
3388         * misc/getttyent.c: Incorporated from BSD 4.4-Lite.
3389         * misc/sys/syslog.h: Incorporated from BSD 4.4-Lite.
3390         Don't include <machine/ansi>; define _BSD_VA_LIST_ to __gnuc_va_list.
3391         * inet/rexec.c: Incorporated from BSD 4.4-Lite.
3392         * inet/rcmd.c: Incorporated from BSD 4.4-Lite.
3393         (rcmd): Reapply select max fd fix of 3 Jun 1994.
3394         * inet/pathnames.h: File removed.
3395         * inet/inet_ntoa.c: Incorporated from BSD 4.4-Lite.
3396         * inet/getsrvbypt.c: Incorporated from BSD 4.4-Lite.
3397         * inet/getsrvbynm.c: Incorporated from BSD 4.4-Lite.
3398         * inet/getservent.c: Incorporated from BSD 4.4-Lite.
3399         * inet/getprtname.c: Incorporated from BSD 4.4-Lite.
3400         * inet/getprtent.c: Incorporated from BSD 4.4-Lite.
3401         * inet/getproto.c: Incorporated from BSD 4.4-Lite.
3402         * inet/protocols/timed.h: Incorporated from BSD 4.4-Lite.
3403         * inet/protocols/talkd.h: Incorporated from BSD 4.4-Lite.
3404         * inet/protocols/rwhod.h: Incorporated from BSD 4.4-Lite.
3405         * inet/protocols/routed.h: Incorporated from BSD 4.4-Lite.
3406         * inet/arpa/tftp.h: Incorporated from BSD 4.4-Lite.
3407         * inet/arpa/telnet.h: Incorporated from BSD 4.4-Lite.
3408         * inet/arpa/ftp.h: Incorporated from BSD 4.4-Lite.
3409
3410 Fri Jul 29 01:50:37 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3411
3412         * Version 1.08.4.
3413
3414         * res/Makefile (routines): Add missing backslash.
3415
3416         * sysdeps/mach/hurd/mips/__sigret.c: Rename variable AT (which is
3417         the register's name) to SCPREG.  Fix some SCP references in
3418         register loads to use SCPREG instead.  Load SCPREG->sc_pc into $24
3419         and jump to it, restoring $at in the delay slot.  This still
3420         leaves $24 clobbered.
3421
3422         * sysdeps/mach/hurd/mips/sigcontext.h: Use `unsigned int'
3423         consistently for port names.
3424
3425         * sysdeps/mach/hurd/mips/trampoline.c: Don't set up args on the
3426         stack; pass them in registers.
3427
3428         * Makefile (%/configure, sysd-dirs, munch-init.c): Pass -f to mv.
3429
3430         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Use the
3431         __attribute__ defn for GCC>=2.7, not >=2.6.  Use the keyword defn
3432         only for GCC<2.5.  Use __volatile__ and __const__ instead of
3433         noreturn and const for namespace safety.
3434
3435         * sysdeps/mach/hurd/__readlink.c: If BUF is null, return the size
3436         of buffer required.
3437
3438 Thu Jul 28 17:17:11 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3439
3440         * res/netdb.h: Declare h_errno.
3441
3442         * res: New directory, for all code incoporated from BIND.
3443         * inet/arpa/inet.h, inet/arpa/resolv.h: Moved to res/arpa.
3444         * inet/sys/bitypes.h: Moved to res/sys.
3445         * inet/gethstnamad.c: Renamed to res/gethnamaddr.c.
3446         * inet/getnetbyad.c: Renamed to res/getnetbyaddr.c.
3447         * inet/getnetbynm.c: Renamed to res/getnetbyname.c.
3448         * inet/res_mkqry.c: Renamed to res/res_mkquery.c.
3449         * inet/Makefile (headers): Removed netdb.h, resolv.h, and
3450         sys/bitypes.h.
3451         (routines): Removed res_comp res_debug res_init res_mkqry res_query
3452         res_send gethstnmad sethostent.
3453         (aux, distribute): Variables removed.
3454         * res/getnetnamadr.c, res/nsap_addr.c: New files.
3455         * All .c and .h in res/ updated from BIND-4.9.3-BETA9.
3456         * res/Makefile: New file.
3457         * sysdeps/unix/inet/Subdirs: Added res.
3458
3459         * Makerules: Replace all uses of `.dep' suffix with `.d' suffix.
3460         (+make-deps): Replace `.dtm' suffix with `.T' suffix.
3461
3462 Wed Jul 27 06:13:30 1994  Noel Cragg  (noel@churchy.gnu.ai.mit.edu)
3463
3464         * time/mktime.c: Add code to support tm_isdst flag in struct tm.
3465         Fixed bug with handling of DST sections.
3466
3467 Mon Jul 25 17:17:28 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3468
3469         * sysdeps/sparc/divrem.m4 (Lgot_result) [S=true]: Only test SIGN
3470         and negate for [OP=div].
3471
3472         * socket/sys/socket.h (__SOCKADDR_ARG): New macro; for GCC 2.6 and
3473         later, a funky union similar to __WAIT_STATUS in <sys/wait.h>.
3474         (bind, getsockname, connect, getpeername, sendto, recvfrom,
3475         accept): Use __SOCKADDR_ARG in place of `struct sockaddr *' in
3476         declarations.
3477
3478         * posix/glob/configure.bat: New file.
3479         * posix/Makefile (glob.tar): Add glob/configure.bat.
3480
3481         * sysdeps/unix/opendir.c: Fail with ENOENT when passed "".
3482         Check STATBUF and fail with ENOTDIR if it's not a directory.
3483
3484 Mon Jul 25 15:44:18 1994  Noel Cragg  (noel@churchy.gnu.ai.mit.edu)
3485
3486         * time/mktime.c: Fix range-checking bug in NORMALIZE macro.
3487
3488 Fri Jul 22 02:42:44 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3489
3490         * sysdeps/unix/readdir.c: Search for NUL character to limit
3491         d_namlen.  Some systems return very bogus values.
3492
3493         * sysdeps/unix/sysv/sysv4/i386/sysdep.h (PSEUDO): Remove ret at end.
3494
3495         * mach/Makefile (mach-shortcuts): Filter out device_writev_request.
3496
3497         * limits.h (_LIBC_LIMITS_H_): Don't define if already defined.
3498         [__GNUC__ < 2]: Only protect this section from multiple inclusion.
3499
3500         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3501         Declare SIGSP volatile.
3502
3503         * hurd/hurdinit.c (_hurd_setproc): Fixed arg in
3504         _hurd_pgrp_changed_hook decl.
3505
3506         * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): New function.
3507         (HURD_EINTR_RPC): Use it instead of _hurd_self_sigstate followed by
3508         __mutex_unlock; this thread might already hold the lock.
3509
3510 Wed Jul 20 18:53:54 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
3511
3512         * hurd/fd-read.c (_hurd_fd_read): Test for EBACKGROUND in
3513         do loop was reversed.
3514
3515         * hurd/hurdpath.c (__hurd_path_lookup): Skip over initial slashes
3516         before calling __dir_pathtrans.
3517
3518 Tue Jul 19 15:28:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3519
3520         * mach/Makefile (user-interfaces): Add mach/mach4.
3521         (mach-shortcuts): Match all syscall_% again; the missing ones are in
3522         mach4.defs.
3523
3524         * mach/Machrules (%.ir): Match SimpleRoutine as well as Routine
3525         comments.
3526
3527         * sysdeps/mach/hurd/Makefile ($(hurd)/errlist.c): Use -f flag to mv.
3528
3529 Sat Jul 16 00:42:30 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3530
3531         * Makerules [install]: Rewrite this rule to use install-bin.
3532         [install-sbin]: New rule parallel to that one, installs in $(sbindir).
3533
3534         * time/Makefile (install-sbin): Set this instead of install.
3535         * sunrpc/Makefile (install-others): Use $(sysconfdir)/rpc instead
3536         of $(etcdir)/rpc.
3537         (install-bin): Set this instead of install; set it to just rpocgen.
3538         (install-sbin): Put rpcinfo and portmap here instead.
3539         ($(sysconfdir)/rpc): Rule renamed from $(etcdir)/rpc.
3540         (defines): Rename it in _PATH_RPC defn here too.
3541
3542         * posix/Makefile (install-bin): Set this instead of install.
3543
3544         * Makeconfig (datadir): Default to $(prefix)/share, not $(prefix)/lib.
3545         (sbindir): New variable.
3546         (sysconfdir): Variable renamed from etcdir.
3547
3548         * sysdeps/unix/bsd/sun/signum.h: New file; no SIGINFO, SIGLOST is 29.
3549
3550         * sysdeps/unix/sysv/sco3.2.4/uname.S: New file from Scott Bartram.
3551
3552         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Include alloca.h.
3553
3554         * configure.in (INSTALL): If it is $srcdir/install.sh after
3555         AC_PROG_INSTALL, reset it to '$(..)./install.sh'.
3556
3557         * sysdeps/mach/hurd/__ioctl.c (io2mach_type): Move macro defn before
3558         first use.
3559         (__ioctl): Fix swapped args to __sigismember; remove unused variable.
3560
3561         * sysdeps/mach/hurd/send.c: Fix portsPoly arg to __socket_send.
3562         * sysdeps/mach/hurd/sendto.c: Likewise.
3563
3564         * sysdeps/mach/hurd/recv.c: Pass &BUFP, not BUFP.
3565         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3566
3567         * sysdeps/mach/hurd/connect.c: Include <hurd/ifsock.h>.
3568
3569         * sysdeps/mips/dec/bytesex.h: New file.
3570         * sysdeps/mips/p40/bytesex.h: New file.
3571
3572 Fri Jul 15 23:12:06 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3573
3574         * posix/sys/types.h (u_quad, quad): Renamed to &_t.
3575         * posix/gnu/types.h [__GNUC__] (__u_quad_t, __quad_t, __qaddr_t):
3576         New typedefs, using long long int and derivatives.
3577         [! __GNUC__] (__u_quad, __quad): Renamed to &_t.
3578         (__fsid_t): Make this always be __u_quad_t.
3579
3580         * time/sys/time.h (struct timespec): New type.
3581         (TIMEVAL_TO_TIMEPSEC, TIMESPEC_TO_TIMEVAL): New macros.
3582
3583 Thu Jul 14 15:43:39 1994  Brendan Kehoe  (brendan@zen.org)
3584
3585         * sysdeps/unix/sysv/sysv4/sysinfo.S: New file.
3586         * sysdeps/unix/sysv/sysv4/Dist: Add sysinfo.S.
3587         * sysdeps/unix/sysv/sysv4/Makefile: Add sysinfo to sysdep_routines
3588         if we're inside misc.
3589         * sysdeps/unix/sysv/sysv4/sethostnam.c: New file.
3590         * sysdeps/unix/sysv/sysv4/__gethstnm.c: New file.
3591
3592         * sysdeps/unix/sysv/sysv4/solaris2/fsync.S: New file.
3593
3594 Tue Jul 12 00:57:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3595
3596         * mach/Makefile (mach-shortcuts): Only match known Mach
3597         subsystems: vm, task, mach_port, and thread.
3598
3599 Mon Jul 11 20:18:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3600
3601         * hurd/intr-rpc.defs, hurd/intr-rpc.awk: New files.
3602         * hurd/Makefile (user-MIGFLAGS): Add -imacros intr-rpc.defs.
3603         (transform-user-stub): New canned sequence.
3604         (transform-user-stub-output): New variable.
3605         Make the .ustamp files depend on intr-rpc.awk.
3606
3607         * mach/Machrules (%.ir): Cull the RPC names from the preceding
3608         comment rather than the definition, so we don't see any userprefix.
3609         (transform-user-stub-output): New variable.
3610         (%.ustamp: %.defs): Invoke $(transform-user-stub) inside for loop.
3611         Use $(transform-user-stub-output) in place of `tmp' in arg to
3612         move-if-change.
3613
3614         * mach/Makefile [! mach-shortcuts] (user-interfaces): Also filter
3615         out device/device_request.
3616
3617 Mon Jul 11 17:50:14 1994  Brendan Kehoe  (brendan@mole.gnu.ai.mit.edu)
3618
3619         * sysdeps/unix/sysv/sysv4/Makefile: Put the sys-sig.S stuff in
3620         here, rather than in .../sysv4/solaris2/sparc/Makefile.
3621         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile: Removed the
3622         sys-sig.S part.
3623
3624 Sun Jul 10 19:04:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3625
3626         * sysdeps/mach/hurd/bind.c: Call __hurd_invoke_translator.
3627
3628         * hurd/hurd.h (__hurd_invoke_translator, hurd_invoke_translator):
3629         Declare them.
3630         * hurd/Makefile (routines): Add invoke-trans.
3631         * hurd/invoke-trans.c (__hurd_invoke_translator): New file.
3632         * hurd/hurdsyms.c (hurd_invoke_translator): New alias.
3633
3634         * hurd/hurdpath.c (__hurd_path_lookup_retry): New function.
3635         * hurd/hurdsyms.c (hurd_path_lookup_retry: New alias.
3636         * hurd/hurd.h (__hurd_path_lookup_retry, hurd_path_lookup_retry):
3637         Declare them.
3638
3639         * hurd/hurd/fd.h (_hurd_fd_error_signal): Return SIGLOST for
3640         MIG_SERVER_DIED.
3641
3642         * time/strftime.c: Make %j value 1-origin instead of 0-origin.
3643
3644 Sat Jul  9 02:31:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3645
3646         * gnu-stabs.h (__SYMBOL_PREFIX): New macro, based on NO_UNDERSCORES.
3647         Use it in all macros instead of explicit leading underscores.
3648         Removed all [! __STDC__] definitions.
3649
3650         * sysdeps/mach/hurd/mips/trampoline.c: New file.
3651         * sysdeps/mach/hurd/mips/sigcontext.h: New file.
3652         * sysdeps/mach/hurd/mips/longjmp-ts.c: New file.
3653         * sysdeps/mach/hurd/mips/msging-p.c: New file.
3654         * sysdeps/mach/hurd/mips/longjmp-ctx.c: New file.
3655         * sysdeps/mach/hurd/mips/init-fault.c: New file.
3656         * hurd/mach/hurd/mips/__sigret.c: New file.
3657         * sysdeps/mach/hurd/mips/exc2signal.c: New file.
3658         * sysdeps/mach/mips/thread_state.h: New file.
3659         * sysdeps/mach/mips/machine-sp.h: New file.
3660         * sysdeps/mach/mips/machine-lock.h: New file.
3661         * sysdeps/mach/mips/sysdep.h: New file.
3662
3663         * mach/Makefile (mach-syscalls.mk): Snarf 3rd arg from kernel_trap.
3664         ($(mach-syscalls:%=__%.S): Emit kernel_trap instead of SYSCALL_TRAP.
3665         * mach/syscalls.awk: Print nargs-$1 = $3 for each line.
3666         * sysdeps/mach/sysdep.h: Include <mach/machine/syscall_sw.h>.
3667         * sysdeps/mach/i386/sysdep.h (ENTRY, SYSCALL_TRAP): Macros removed.
3668
3669         * sysdeps/mach/i386/machine-lock.h: Use __volatile in place of
3670         volatile to work with -traditional.
3671
3672 Fri Jul  8 21:06:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3673
3674         * hurd/hurdsig.c (_hurd_internal_post_signal): For stop signals,
3675         clear pending SIGCONT no matter what action we choose.
3676         Add new value `cont' to ACT enum; use it for default SIGCONT action.
3677         (_hurd_internal_post_signal: sigwakeup): New local inline.
3678
3679 Fri Jul  8 20:26:49 1994  Brendan Kehoe  (brendan@zen.org)
3680
3681         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile (sysdep-CFLAGS): Set
3682         this to include the -mhard-quad-float option.
3683
3684         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: New file.
3685         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile: New file.
3686         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
3687
3688 Fri Jul  8 13:54:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3689
3690         * hurd/hurdpath.c (__hurd_path_lookup): Don't treat leading /
3691         specially for FS_RETRY_NORMAL.  Handle FS_RETRY_MAGICAL; leading /
3692         here means use crdir.  In that case, deallocate *RESULT if nonnull.
3693
3694         * sysdeps/unix/sysv/sysv4/i386/sysdep.h: Don't define _ERRNO_H if
3695         already defined.
3696
3697         * posix/gnu/types.h (__ino_t): Make this unsigned int instead of
3698         unsigned long int (matters for Alpha).
3699
3700         * Makeconfig (+gccopt): Variable removed.
3701         (+cflags): Don't use it.
3702         (CPPFLAGS): Append $(sysdep-CPPFLAGS).
3703         (CFLAGS): Append $(sysdep-CFLAGS).
3704
3705         * sysdeps/mach/hurd/__ioctl.c: In MSGID calculation, skip blocks
3706         of 100 for request commands >= 100, to allow for the reply msgids.
3707
3708 Thu Jul  7 19:07:00 1994  Brendan Kehoe  (brendan@zen.org)
3709
3710         * sysdeps/unix/bsd/osf1/dirstream.h (DIR): Make __allocation
3711         member be int, not size_t (which is a long).
3712
3713 Thu Jul  7 15:21:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3714
3715         * hurd/__fopenport.c (readio, writeio, seekio, closeio): New
3716         functions.
3717         (funcsio): New const variable.
3718         (__fopenport): Make the new stream use that for its io functions, and
3719         the default room functions, and set its seen flag.
3720
3721 Tue Jul  5 11:32:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3722
3723         * hurd/hurd/signal.h (struct hurd_sigstate): Removed `intr_restart'.
3724         (HURD_EINTR_RPC): Uncommented.  Declare label
3725         `__do_call' so it has block instead of function scope.  Don't use
3726         SS->intr_restart; instead SS->intr_port being reset to
3727         MACH_PORT_NULL tells us to restart the call.
3728
3729         * sysdeps/mach/hurd/__ioctl.c: Enable use of HURD_EINTR_RPC.
3730         Do ctty magic and check for EBACKGROUND to generate SIGTTOU.
3731
3732         * mach/devstream.c (dealloc_ref): New function.
3733         (mach_open_devstream): Add a user reference to DEV, and set
3734         STREAM's close fn to dealloc_ref, which will release the reference.
3735
3736         * hurd/fd-read.c (_hurd_fd_read): Enabled and rewrote SIGTTIN code.
3737         * hurd/fd-write.c (_hurd_fd_write): Enabled and rewrote SIGTTOU code.
3738
3739         * hurd/hurdsyms.c: Add an alias hurd_sig_post -> _hurd_sig_post.
3740         * hurd/hurdkill.c (_hurd_sig_post): Renamed back from hurd_sig_post.
3741         * hurd/hurd.h: Declare _hurd_sig_post.
3742
3743         * hurd/hurdsig.c (_S_sig_post): Add SIGTTIN and SIGTTOU cases,
3744         handled like SIGINT et al.
3745
3746         * mach/devstream.c: Turn back on NL->CRNL translation.
3747
3748         * stdio/xbug.c (main): Return instead of running off the end.
3749
3750 Mon Jul  4 16:57:13 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3751
3752         * Version 1.08.3.
3753
3754 Sat Jul  2 00:15:37 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3755
3756         * sysdeps/mach/hurd/__ioctl.c: Account for three type fields in
3757         message buffer size.
3758
3759         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3760         Catch faults accessing user stack and return NULL.
3761         * hurd/hurdsig.c (_hurd_internal_post_signal): When it does, die
3762         with SIGILL and dump core.
3763
3764         * hurd/hurdsig.c (_hurd_internal_post_signal): Use
3765         _hurd_msgport_thread instead of __mach_thread_self () to avoid the
3766         system call.  (Signals will now lose if _hurd_msgport_thread gets
3767         clobbered.)
3768         (abort_rpcs): Always do thread_abort and thread_get_state.
3769
3770         * misc/getpass.c: Fix typo resulting in newline not being removed.
3771
3772         * termios/sys/ttydefaults.h [TTYDEFCHARS] (ttydefchars): Cast
3773         _POSIX_VDISABLE to cc_t to avoid gcc warning.
3774
3775 Fri Jul  1 14:07:40 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3776
3777         * hurd/Makefile (user-interfaces): Add hurd/ifsock.
3778
3779         * socket/sys/socket.h (AF_LOCAL): New macro.
3780
3781         * sysdeps/mach/hurd/__kill.c: Fix SIGKILL loop condition.
3782
3783 Fri Jul  1 13:36:27 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
3784
3785         * hurd/hurdkill.c (hurd_sig_post): New var PIDSBUF; initialize
3786         PIDS and NPIDS correctly; only free PIDS if the MiG stub
3787         changed it.
3788
3789 Thu Jun 30 18:47:48 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
3790
3791         * hurd/hurdsock.c (_hurd_socket_server): Zero up to and *including*
3792         new[DOMAIN].
3793
3794 Thu Jun 30 08:12:28 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3795
3796         * hurd/hurdsig.c (abort_all_rpcs): Just iterate over _hurd_sigstates.
3797
3798         * hurd/dtable.c (fork_child_dtable): Skip empty descriptor slots.
3799
3800         * sysdeps/mach/hurd/__ioctl.c: Fix MSG.data size calculation.
3801
3802 Wed Jun 29 19:06:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3803
3804         * sysdeps/mach/hurd/bind.c: For AF_LOCAL, create a new node in the
3805         filesystem, put the ifsock translator on it, and fetch the
3806         address port.
3807         * sysdeps/mach/hurd/connect.c: For AF_LOCAL, look up the socket
3808         file and fetch the address port using the ifsock protocol.
3809
3810 Tue Jun 28 16:03:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3811
3812         * hurd/Makefile (routines): Add ports-get, ports-set, and hurdmsg.
3813         (aux): Remove msgstub.
3814         * hurd/hurdports.c (get): Just call _hurd_ports_get.
3815         (set): Just call _hurd_ports_set.
3816         (getcttyid, setcttyid): New functions.
3817         * hurd/ports-get.c (_hurd_ports_get): New file, new function.
3818         * hurd/ports-set.c (_hurd_ports_set): New file, new function.
3819         * hurd/hurd.h: Declare _hurd_ports_get and _hurd_ports_set.
3820         Declare getcttyid and setcttyid.
3821         * hurd/__setauth.c (__setauth): Just call _hurd_setauth.
3822         (_hurd_setauth): New function, code moved from __setauth.
3823         * hurd/hurdinit.c (_hurd_setproc): New function.
3824         * hurd/hurdioctl.c (_hurd_setcttyid): New function.
3825
3826         * locale/C-ctype_ct.c (__ctype_tolower_C, __ctype_toupper_C): Use
3827         integer constants instead of character constants for octal values
3828         so they will not be sign extended.
3829
3830         * sysdeps/mach/hurd/__setitmr.c (fork_itimer): New function, on
3831         _hurd_fork_child_hook.
3832
3833         * sysdeps/stub/sysd-stdio.c (__stdio_reopen): Fix typo in arg type.
3834         * sysdeps/stub/__ioctl.c: Fix type of REQUEST arg.
3835         * sysdeps/stub/syscall.c: Include ansidecl.h.
3836         * sysdeps/stub/_exit.c: Add __NORETURN to defn.
3837
3838         * sysdeps/unix/sysv/sysv4/sigset.h (_EXTERN_INLINE): Define to
3839         `extern __inline', not empty.
3840
3841         * sysdeps/mach/hurd/ttyname.c: Don't bother searching /dev.
3842
3843 Sat Jun 25 15:41:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3844
3845         * sysdeps/mach/hurd/__fork.c: Moved proc_task2pid call to just
3846         before proc_child.  It is a waste to do it earlier.
3847
3848 Sat Jun 25 13:17:39 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
3849
3850         * sysdeps/mach/hurd/__fork.c: Move proc_task2pid call to after
3851         _hurd_ports are unlocked.  Call proc_child nearly last thing.
3852         Ignore errors from thread_resume.
3853
3854 Fri Jun 24 20:21:11 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3855
3856         * sysdeps/posix/getcwd.c: Remove empty `#define'.
3857
3858 Fri Jun 24 17:57:36 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
3859
3860         * sysdeps/mach/hurd/__fork.c: Call proc_task2pid immediately after
3861         task_create.  Add comment explaining why thread_resume must be the
3862         last thing we do to the child.
3863
3864 Fri Jun 24 01:41:41 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3865
3866         * hurd/hurdinit.c (_hurd_proc_init): Call __proc_set_arg_locations
3867         in place of __proc_setprocargs (it was renamed).
3868
3869         * hurd/hurd.h: Rename _hurd_sig_post to hurd_sig_post.
3870         * hurd/hurdkill.c: Likewise.
3871
3872         * hurd/port2fd.c (_hurd_port2fd): Call __term_open_ctty instead of
3873         __term_become_ctty, and don't pass the message port.
3874         * hurd/hurdioctl.c (rectty_dtable): Likewise.
3875         * hurd/dtable.c (fork_child_dtable, ctty_new_pgrp): Likewise.
3876
3877         * sysdeps/mach/hurd/__fork.c: Use __proc_{get,set}_arg_locations
3878         to propagate argv and envp locations to the child.
3879
3880         * stdio/freopen.c (freopen): If STREAM->__seen is clear, pass
3881         __stdio_close to __stdio_reopen.
3882
3883         * misc/Makefile (install-lib): Add libg.a.
3884         ($(objpfx)libg.a): New rule; use make-dummy-lib.
3885         (lib): Depend on $(objpfx)libg.a
3886
3887 Thu Jun 23 01:14:36 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3888
3889         * termios/termios.h (CCEQ): New macro.
3890
3891         * sysdeps/unix/sysv/irix4/__getgrps.c: Add missing __ to fn name.
3892
3893         Don't compile in absolute file names for localtime and posixrules
3894         files if they were specified relative to $(zonedir).
3895         * time/Makefile (installed-localtime-file,
3896         installed-posixrules-file): Set these instead of
3897         {localtime,posixrules}-file to the absolute file names.
3898         ($(localtime-file), $(posixrules-file)): Change targets to
3899         $(installed-localtime-file) and $(installed-posixrules-file).
3900
3901 Wed Jun 22 15:52:26 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3902
3903         * hurd/Makefile (sig): Add hurdkill.
3904
3905 Sat Jun 18 12:57:54 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3906
3907         * stdio/_itoa.h (_itoa): Change type of VALUE to unsigned long long.
3908         * stdio/_itoa.c (_itoa): Likewise.
3909
3910 Thu Jun 16 01:10:41 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3911
3912         * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__filepos' member
3913         with `__entry_ptr' and `__entry_data'.  Remove `__block_size' member.
3914         Replace `__offset' member with `__ptr', a char *; no need to include
3915         <gnu/types.h>.
3916         * sysdeps/mach/hurd/readdir.c: Use those, new dir_readdir protocol.
3917         * sysdeps/mach/hurd/opendir.c: Initialize new members.
3918         Don't do io_stat to set __blocksize.
3919         * sysdeps/mach/hurd/telldir.c: Rewritten; return DIRP->__entry_ptr.
3920         * sysdeps/mach/hurd/seekdir.c: Rewritten; just set DIRP->__entry_ptr
3921         from arg, and zero DIRP->__size so a new block will be read.
3922
3923         * sysdeps/mach/hurd/getcwd.c: Use new dir_readdir protocol.
3924
3925         * hurd/msgstub.c: Add stubs for dir_changed, file_changed.
3926
3927         * hurd/hurdsock.c (_hurd_socket_server): Removed unused label.
3928
3929         * sysdeps/mach/hurd/__getdents.c: Use new dir_readdir protocol.
3930
3931         * sysdeps/mach/hurd/__access.c: Open the file with 0 flags and
3932         then use file_check_access to discover what we are allowed.
3933
3934 Tue Jun 14 14:10:03 1994  Brendan Kehoe  (brendan@zen.org)
3935
3936         * sysdeps/mips/setjmp.S: Refer to `$fp', not `fp'.
3937
3938 Tue Jun 14 00:50:54 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3939
3940         * sysdeps/mach/hurd/__pipe.c: Set FDS[1], not FDS[2].
3941
3942 Mon Jun 13 06:48:48 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3943
3944         * sysdeps/unix/bsd/sun/sparc/sigtramp.c (trampoline): Use a
3945         comment instead of a pointless insn to reference %0 in final asm.
3946
3947         * hurd/hurdsock.c (_hurd_socket_server): If realloc fails, don't
3948         fail; just don't cache the port.
3949         Look up the server node only if it is not in the cache.
3950         Translate errno only if path_lookup fails.
3951         (init): New function, on _hurd_preinit_hook.
3952
3953         * sysdeps/mach/hurd/__symlink.c: Complement _hurd_umask before ANDing.
3954
3955 Sat Jun 11 12:52:28 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3956
3957         * sysdeps/mach/hurd/__fork.c: Can't insert dead name rights into
3958         child.
3959
3960 Sat Jun 11 05:19:47 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3961
3962         * sysdeps/mach/hurd/i386/longjmp-ts.c: Set TS->uesp instead of
3963         TS->esp.  Set TS->eip.
3964
3965         * gnu-stabs.h (bss_set_element): New macro.
3966         * hurd/dtable.c: Use bss_set_element instead of data_set_element
3967         to put _hurd_dtable_lock in the _hurd_fork_locks set.
3968
3969 Fri Jun 10 02:04:51 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3970
3971         * sysdeps/mach/hurd/__fork.c: Don't apply MACH_PORT_TYPE to result
3972         from __mach_port_names.  Unlock SS->lock before return.
3973         Check for KERN_NAME_EXISTS from mach_port_allocate_name when
3974         creating a receive right and possibly ignore it.
3975
3976         * sysdeps/unix/sysv/sco3.2.4/Dist: Add sco_getgrp.S.
3977
3978         * crypt/speeds.c: Include signal.h and stdio.h first thing.
3979         [! SIGVTALRM]: Define NO_ITIMER.
3980
3981         * sysdeps/unix/sysv/isc3/direct.h: New file.
3982
3983         * hurd/hurdinline.c: Include lock-intern.h before #define
3984         _EXTERN_INLINE.
3985
3986         * sysdeps/mach/hurd/__fork.c (_hurd_fork_locks): Don't be const.
3987         (__fork): Set SS from _hurd_self_sigstate so it is never null.
3988         New local flag PORTS_LOCKED records when we have spin_locked all
3989         the _hurd_ports cells; unlock them if necessary on error.
3990
3991         * hurd/hurdsig.c (_hurd_siglock): Don't initialize it.
3992         (_hurdsig_init): Initialize _hurd_siglock at runtime.
3993
3994 Wed Jun  8 12:22:27 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3995
3996         * hurd/hurdid.c (_hurd_check_ids): Zero P->nuids and P->ngids after
3997         deallocating P->uids and P->ngids.
3998
3999         * hurd/hurdioctl.c (_hurd_ioctl_handler_lists): Make defn initialized.
4000
4001         * sysdeps/mach/hurd/__ioctl.c: Only try to unpack if IOC_OUT is set.
4002
4003         * hurd/Makefile (routines): Replace $(inlines) with hurdinline.
4004         (inlines): Variable and rule removed.
4005         (generate-inlines): Variable removed.
4006         * hurd/hurdinline.c: New file.
4007
4008 Tue Jun  7 01:58:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4009
4010         * Makerules: Add -f to all mv commands missing it.
4011
4012         * hurd/Makefile (generate-inline): New canned sequence.
4013         (inline-%.c): Use it.
4014
4015         * time/asia, time/europe, time/northamerica: New versions from ADO.
4016
4017 Mon Jun  6 21:36:04 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4018
4019         * hurd/hurdid.c (init_id): New function.
4020
4021         * Makerules (+make-deps): Put first s cmd before $(sed-remove-objpfx).
4022         (sed-remove-objpfx): Replace occurrences at beginning of line too.
4023
4024 Sun Jun  5 14:34:12 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4025
4026         * Version 1.08.1.
4027
4028         * sysdeps/mach/hurd/ioctls.h (_IOR, _IOW): Swap IOC_IN and IOC_OUT.
4029
4030         * sysdeps/mach/hurd/__ioctl.c: Only pack input for ioctls that
4031         take input.  Compute expected reply size for ioctls that take
4032         output and check it properly.
4033
4034 Sat Jun  4 00:35:42 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4035
4036         * sysdeps/mach/hurd/ioctls.h (union __ioctl): Type removed.
4037         (enum __ioctl_datum): Name this enum.
4038         (_IOC_INOUT, _IOC_GROUP, _IOC_COMMAND, _IOC_TYPE): New macros.
4039         (_IOT_TYPE[012], _IOT_COUNT[012]): New macros.
4040         * sysdeps/mach/hurd/__ioctl.c: Use those macros instead of the union.
4041
4042         * sysdeps/mach/hurd/__fork.c: Major rewrite.  Copy all ports
4043         present in the task, not just library-maintained ones.  Handle
4044         sigstate and signal thread setup explicitly here.
4045         * hurd/hurdsig.c (hurdsig_fork, hurdsig_fork_child): Functions
4046         removed.
4047
4048         * hurd/hurdpid.c (init_pids): Don't put this on _hurd_fork_child_hook.
4049
4050         * sysdeps/mach/hurd/__isatty.c: New file.
4051
4052         * hurd/hurdsock.c (_hurd_socket_server): Pass NP to __path_lookup,
4053         not NAME (most of which is uninitialized).
4054
4055         * hurd/hurdsig.c (_hurdsig_init): Don't check for _hurd_msgport
4056         being non-null; always initialize it.
4057
4058 Fri Jun  3 21:57:14 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4059
4060         * hurd/hurdrlimit.c (init_rlimit): Restore __mutex_init call.
4061         (_hurd_rlimit_lock): Set initializer to random value; run-time
4062         initialization is always required.
4063
4064         * inet/rcmd.c (rcmd): Compute max fd + 1 for select instead of
4065         hardcoding 32.
4066
4067 Wed Jun  1 10:52:41 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4068
4069         * hurd/hurdrlimit.c (_hurd_rlimits, _hurd_rlimit_lock): Provide
4070         initializers so that the file is included in the link properly.
4071         (init_rlimit): Omit call to __mutex_init.
4072
4073 Tue May 31 18:15:33 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4074
4075         * hurd/hurdmalloc.c (more_memory): Do spin_lock_init on H->lock.
4076         (malloc_init): New function; put it on _hurd_preinit_hook.
4077
4078         * sysdeps/mach/hurd/defs.c (init_stdio): If stream already
4079         allocated, don't allocate a new one.  Don't crash if _hurd_alloc_fd
4080         returns null if __newstream does.
4081
4082         * sysdeps/mach/hurd/__brk.c (init_brk): If _hurd_brk is nonzero,
4083         leave it as it is.  Set PAGEND from _hurd_brk instead of &_end.
4084
4085 Mon May 30 18:37:47 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4086
4087         * hurd/hurdrlimit.c (init_rlimit): Put this on _hurd_preinit_hook
4088         instead of _hurd_subinit.
4089
4090         * sysdeps/mach/hurd/mig-reply.c (mig_fork_child): Function removed.
4091         * hurd/dtable.c (fork_parent_dtable): Function removed.
4092
4093         * sysdeps/generic/resourcebits.h: Rename RLIM_NLIMITS to
4094         RLIMIT_NLIMITS, add alias for old name.
4095
4096         * sysdeps/mach/hurd/Makefile (hurd-objpfx): New variable.
4097         (before-compile): Use that instead of $(common-objpfx).
4098
4099         * sysdeps/mach/Makefile [! objpfx] (mach-objpfx): Add trailing slash.
4100
4101 Fri May 27 01:34:56 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4102
4103         * hurd/hurdsig.c (_hurdsig_init): Always initialize _hurd_sigthread.
4104
4105         * hurd/dtable.c: Use data_set_element instead of text_set_element
4106         for _hurd_fork_locks.
4107         * hurd/hurdsig.c: Likewise.
4108
4109         * hurd/hurd.h (_hurd_set_data_limit): Declaration removed.
4110
4111         * hurd/dtable.c (_hurd_dtable_rlimit): Variable removed.
4112         (init_dtable): Don't set it.
4113
4114         * hurd/Makefile (headers): Add hurd/resource.h.
4115         (routines): Add hurdrlimit.
4116         * hurd/hurd/resource.h: New file.
4117         * hurd/hurdrlimit.c: New file.
4118         * sysdeps/mach/hurd/getrlimit.c: Rewritten to just fetch
4119         _hurd_rlimits.
4120         * sysdeps/mach/hurd/setrlimit.c: Rewritten to just set _hurd_rlimits.
4121         * sysdeps/mach/hurd/__brk.c (_hurd_data_limit): Variable removed.
4122         (_hurd_set_brk): Use _hurd_rlimits[RLIMIT_DATA].
4123         (_hurd_set_data_limit): Function removed.
4124         * hurd/alloc-fd.c (_hurd_dtable_rlimit): Variable removed.
4125         (_hurd_alloc_fd): Use _hurd_rlimits[RLIMIT_OFILE] instead.
4126
4127         * sysdeps/generic/resourcebits.h: Add RLIMIT_NOFILE as an alias
4128         for RLIMIT_OFILE.
4129
4130         * sysdeps/mach/hurd/mig-reply.c (__mig_init): Argument is stack
4131         on which to set the per-thread reply port variable.
4132
4133         * sysdeps/mach/hurd/__brk.c (init_brk): Set _hurd_data_end to
4134         DATA_SIZE bytes past the beginning of data space, rather than to
4135         DATA_SIZE absolutely.  If vm_map fails, set it to PAGEND.
4136
4137         * sysdeps/mach/hurd/start.c (_start): Run _hurd_preinit_hook right
4138         after __mach_init.
4139
4140         * stdio/freopen.c (freopen): Rewritten using __stdio_reopen to
4141         preserve the old cookie value when possible.
4142         * sysdeps/posix/sysd-stdio.c (__stdio_reopen): New function.
4143         * sysdeps/stub/sysd-stdio.c (__stdio_reopen): New function.
4144         * sysdeps/mach/hurd/sysd-stdio.c (__stdio_reopen): New function.
4145
4146         * stdio/freopen.c (freopen): Close the stream if MODE is invalid.
4147
4148         * hurd/hurdsig.c (_hurd_core_limit): Define variable.
4149
4150         * socket/sys/socket.h (PF_LOCAL): Define in preference to PF_FILE.
4151
4152 Thu May 26 12:09:51 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4153
4154         * hurd/alloc-fd.c (_hurd_alloc_fd): Don't return EINVAL when
4155         FIRST_FD is greater than _hurd_dtablesize and less than
4156         _hurd_dtable_rlimit.  If we want to grow _hurd_dtable, but
4157         _hurd_dtablesize is as big as _hurd_dtable_rlimit, then return
4158         EMFILE.  When growing _hurd_dtable, actually do something if
4159         _hurd_dtablesize is zero.
4160         
4161         * hurd/hurdmalloc.c (malloc_fork_prepare, malloc_fork_parent,
4162         malloc_fork_child): Declare as static so they don't conflict with
4163         the user's version of this file.
4164
4165 Wed May 25 20:55:16 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4166
4167         * sysdeps/mach/hurd/__brk.c: Include <cthreads.h> instead of
4168         <mutex.h>.
4169
4170         * hurd/hurdmalloc.c, hurd/hurdmalloc.h: New files (temporary hack).
4171         * hurd/Makefile (routines): Append hurdmalloc.
4172         (distribute): Append hurdmalloc.h.
4173         * hurd/alloc-fd.c: Include "hurdmalloc.h" (temporary hack).
4174         * hurd/dtable.c: Likewise.
4175         * hurd/hurdinit.c: Likewise.
4176         * hurd/hurdsig.c: Likewise.
4177         * hurd/hurdsock.c: Likewise.
4178         * hurd/new-fd.c: Likewise.
4179         * sysdeps/mach/hurd/start.c: Likewise.
4180
4181         * sysdeps/mach/hurd/start.c (start1): Use malloc and a for loop
4182         instead of calloc.
4183         * hurd/hurdsig.c (_hurd_thread_sigstate): Use malloc and memset
4184         instead of calloc.
4185
4186         * sysdeps/mach/hurd/__brk.c (init_brk): Reference self to avoid
4187         compiler warning.  Add init_brk to _hurd_preinit_hook instead of
4188         __libc_subinit.
4189
4190         * sysdeps/mach/hurd/start.c (_hurd_preinit_hook): New variable.
4191         (start1): Run _hurd_preinit_hook before threadvar setup.
4192
4193 Tue May 24 17:42:34 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4194
4195         * hurd/dtable.c (init_dtable): Initialize _hurd_dtablesize to
4196         _hurd_init_dtablesize.  Initialize _hurd_dtable_rlimit as
4197         _hurd_dtablesize used to be set, but don't let it be zero.
4198         (_hurd_dtable_rlimit): New variable.
4199
4200 Tue May 24 12:57:19 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4201
4202         * sysdeps/mach/sleep.c (sleep): Timeout arg to mach_msg is
4203         in milliseconds, not microseconds; compute it accordingly.
4204
4205         * sysdeps/mach/hurd/__select.c (__select): Deleted variables
4206         DTABLE and DTABLE_ULINK.  Use new vars _hurd_dtablesize and
4207         _hurd_dtable instead of old _hurd_dtable structure.  Use new
4208         locking protocol on _hurd_dtable.
4209
4210 Tue May 24 01:55:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4211
4212         * sysdeps/mach/hurd/__setitmr.c: Don't include mutex.h.
4213
4214         * sysdeps/mach/hurd/defs.c (init_stdio): Reference self.
4215
4216         * sysdeps/unix/sysv/sysv4/i386/sysdep.h: Include
4217         sysdeps/unix/sysv/i386/sysdep.h, not sysdeps/unix/i386/sysdep.h
4218
4219 Mon May 23 19:05:44 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4220
4221         * sysdeps/mach/hurd/Makefile (mib_hacks, defines): Variables removed.
4222
4223         * mach/devstream.c (mach_open_devstream): Set STREAM's seek and
4224         fileno io functions to null.
4225
4226         * hurd/hurdexec.c (_hurd_exec): Fixed adding of dtable ports to
4227         PLEASE_DEALLOC array.
4228
4229         * sysdeps/mach/hurd/defs.c (init_stdio): Unlock the descriptors
4230         after fetching them.  If a standard descriptor is not allocated,
4231         allocate the structure and store its pointer in the stream anyway.
4232
4233         * stdio/gets.c: Only return null on P==S if feof (STREAM).
4234
4235         * stdio/vfprintf.c: Make %Z a type modifier, not a format spec.
4236
4237         * sysdeps/mach/hurd/fdopen.c: Return NULL rather than -1 for error.
4238
4239 Mon May 23 14:24:50 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4240
4241         * sysdeps/mach/hurd/__close.c (__close): Use new _hurd_fd_get
4242         protocol.
4243         * sysdeps/mach/hurd/__dup2.c (__dup2): Likewise.  Use
4244         _hurd_dtablesize and _hurd_dtable instead of old _hurd_dtable
4245         structure.
4246
4247         * sysdeps/mach/hurd/sysd-stdio.c (__stdio_seek): Use
4248         HURD_FD_PORT_USE, not HURD_FD_USE.
4249         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Variable
4250         is D, not FD.
4251
4252         * hurd/alloc-fd.c (_hurd_alloc_fd): Arg FIRST_FD is not actually
4253         const. 
4254         * hurd/hurdsig.c (_hurd_internal_post_signal [case SIGINFO]): If
4255         we are not the process group leader, ignore the signal.
4256         (_S_sig_post [case SIGURG]): Declaration of D was out of place.
4257
4258         * sysdeps/mach/hurd/fdopen.c: Include <hurd/io.h> for 
4259         io_get_openmodes prototype.
4260
4261 Sat May 21 16:03:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4262
4263         * assert/assert.c (__assert_fail): Put program name first in msg.
4264
4265         * hurd/Makefile (dtable): Removed setdtsz.
4266
4267         * hurd/hurdexec.c: Use _hurd_dtable and _hurd_dtablesize instead of
4268         old _hurd_dtable structure.
4269         * hurd/hurdsig.c: Likewise.
4270         * hurd/alloc-fd.c: Likewise.
4271         * hurd/hurdioctl.c (rectty_dtable): Likewise.
4272
4273         * Version 1.08 released.
4274
4275         * mach/mach_error_string.c: Renamed to errstring.c.
4276         * mach/Makefile (routines): Renamed mach_error_string to errstring.
4277         * mach/err_mach_ipc.sub: Renamed to err_mach.sub.
4278         * mach/err_bootstrap.sub: Renamed to err_boot.sub.
4279
4280         * sysdeps/generic/sigset.h (__SIGSETFN): Take new arg CONST; use it
4281         for CONST qualifier on SET arg to generated function.
4282         Changed uses to pass it; sigismember passes __const, others empty.
4283
4284         * sysdeps/mach/hurd/sysd-stdio.c: Rewritten to use `struct hurd_fd *'s
4285         for cookies.
4286         * sysdeps/mach/hurd/fdopen.c: Rewritten accordinly.
4287         * sysdeps/mach/hurd/defs.c (init_stdio): Rewritten accordingly.
4288         Add it to the _hurd_fd_subinit hook instead of the __libc_subinit
4289         hook.
4290         * sysdeps/mach/hurd/stdio_init.c: New file.
4291         * hurd/dtable.c (_hurd_fd_subinit): New hook variable.
4292         (init_dtable): Run the _hurd_fd_subinit hook.
4293
4294         * hurd/hurd/fd.h (struct hurd_dtable): Type removed.
4295         (_hurd_dtable_users, _hurd_dtable_rlimit): Variables removed.
4296         (_hurd_dtable): Make this a struct hurd_fd **.
4297         (_hurd_dtablesize): New variable.
4298         (struct hurd_fd_user): Type removed.
4299         (_hurd_dtable_get, _hurd_dtable_free, _hurd_dtable_fd): Functions
4300         removed.
4301         (_hurd_fd_get): Rewritten.  Take just one arg, and look it up in
4302         _hurd_dtable; return a struct hurd_fd *.
4303         (HURD_FD_USE): Rewritten to use new _hurd_fd_get interface.
4304         * hurd/dtable.c (_hurd_dtable_users, _hurd_dtable_rlimit):
4305         Variables removed.
4306         (_hurd_dtable): Make this a struct hurd_fd **.
4307         (_hurd_dtablesize): New variable.
4308         (init_dtable, fork_parent_dtable, fork_child_dtable,
4309         ctty_new_pgrp, reauth_dtable): Use new simpler _hurd_dtable format.
4310         * sysdeps/mach/hurd/__getdtsz.c: Use _hurd_dtablesize.
4311         * sysdeps/mach/hurd/__fcntl.c: Use new _hurd_fd_get protocol.
4312
4313         * hurd/dtable.c (get_dtable_port): Return the ctty port if set.
4314
4315         * hurd/hurd/fd.h (_hurd_fd_error_signal): New function, broken out
4316         of _hurd_fd_error.
4317         (_hurd_fd_error): Call it.
4318
4319         * hurd/Makefile (dtable): Add fd-close.
4320         * hurd/fd-close.c: New file.
4321         * hurd/hurd/fd.h: Declare _hurd_fd_close.
4322
4323         * sysdeps/mach/hurd/__close.c: Call _hurd_fd_close.
4324
4325         * signal/Makefile (routines): Add sigsetops.
4326         * signal/sigsetops.c: New file.
4327
4328         * sysdeps/unix/sysv/sysv4/sigset.h (_EXTERN_INLINE): New macro.
4329         Use it for all the inline functions.
4330
4331         * signal/signal.h: Move #include <signum.h> inside #ifdef _SIGNAL_H.
4332
4333         * sysdeps/generic/sigset.h: Protect types with #ifndef
4334         _SIGSET_H_types.  Protect rest with #if !defined (_SIGSET_H_fns)
4335         && defined (_SIGNAL_H).
4336         (__SIGSETFN): Add extern declaration of NAME inside function.
4337
4338         * sysdeps/unix/ioctls-tmpl.c: Add missing #endif.
4339         * sysdeps/unix/Makefile (make-ioctls-CFLAGS): Remember -D.
4340
4341 Fri May 20 20:42:33 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4342
4343         * sysdeps/unix/Makefile (sys/termios.h): Variable removed.
4344         (ioctl-includes): New variable.
4345         (make-ioctls-CFLAGS): Compute value generally from $(ioctl-includes).
4346         ($(common-objpfx)ioctls): Depend on $(ioctl-includes), instead of
4347         $(sys/termios.h).
4348
4349         * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: New file.
4350         * sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Add
4351         sco_getgrp.
4352         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: New file.
4353
4354         * sysdeps/generic/sigset.h (__sigismember, __sigaddset, __sigdelset):
4355         Rewritten as extern inline functions; check for bogus signal number.
4356
4357         * configure.in (names): Put $implied before $* in new $sysnames
4358         list remaining to be processed; this ensures unix/common precedes
4359         unix/sysv4 for sysv4.
4360
4361 Thu May 19 18:35:02 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4362
4363         * sysdeps/mach/hurd/defs.c (init_stdio): Make stdin and stdout
4364         line buffered and stderr unbuffered.
4365
4366 Thu May 19 16:14:36 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4367
4368         * sysdeps/mach/hurd/getcwd.c: Remember to call io_stat on cwdir.
4369
4370         * sysdeps/generic/configure.in: Use changequote around if expr
4371         to avoid [] elision.
4372
4373 Thu May 19 13:53:59 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4374
4375         * hurd/hurdsock.c (_hurd_socket_server): Return EPFNOSUPPORT
4376         rather than EPROTONOSUPPORT because it's the entire protocol
4377         family that isn't present, not just one protocol.
4378
4379         * sysdeps/mach/hurd/__access.c (__access): Don't deallocate
4380         CRDIR or CWDIR; that's taken care of by the _hurd_port_get
4381         and _hurd_port_free system.
4382
4383 Thu May 19 04:14:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4384
4385         * sysdeps/posix/libc_fatal.c: Include <errno.h>.
4386
4387         * sysdeps/unix/sysv/sysv4/__sigact.c: Include <stddef.h> for NULL.
4388
4389         * sysdeps/mach/hurd/__access.c: Fix swapped poly and count args in
4390         __auth_makeauth call.
4391
4392         * sysdeps/mach/hurd/ioctls.h (_IOC, _IOT): Rewritten using bitwise
4393         operations, so the result is always technically a constant (the
4394         old method of using a union constructor expression was not good
4395         enough for initializers).
4396
4397         * hurd/hurdsock.c (_hurd_socket_server): If path_lookup returns
4398         ENOENT, we return EPROTONOSUPPORT.
4399
4400         * hurd/Makefile (dtable): Add hurdioctl.
4401         * hurd/dtable.c (rectty_dtable, tiocsctty, tiocnotty): Functions
4402         moved:
4403         * hurd/hurdioctl.c: New file.
4404         (fioctl, fioclex): New functions.
4405         * sysdeps/mach/hurd/__ioctl.c (_hurd_ioctl_handler_lists): Don't
4406         define it, just declare it.
4407
4408         * sysdeps/mach/hurd/getcwd.c: Use MACH_PORT_RIGHT_SEND, not
4409         MACH_PORT_TYPE_SEND, in mach_port_mod_refs call.
4410
4411         * sysdeps/mach/hurd/__getpgrp.c: Don't lock _hurd_pid_lock.
4412
4413         * sysdeps/unix/common/glue-ctype.c: Don't include <ctype.h>.
4414         Instead, add explicit extern declaration of TABLE in main.
4415
4416 Wed May 18 17:54:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4417
4418         * sysdeps/m68k/Makefile (asm-CPPFLAGS): Append $(m68k-syntax-flag).
4419
4420         * Version 1.07.6.
4421
4422         * sunrpc/Makefile (+gccwarn): Set to -w.
4423
4424         * sysdeps/unix/Makefile (ifeq testing sys/param.h): Use patsubst
4425         instead of dir to remove directory name from .../sys/param.h but
4426         preserve "sys/".
4427
4428         * inet/sys/bitypes.h: Replaced with just #include <sys/types.h>.
4429
4430         * posix/sys/utsname.h (_UTSNAME_NODENAME_LENGTH): If undefined,
4431         define to _UTSNAME_LENGTH.
4432         (struct utsname): Use _UTSNAME_NODENAME_LENGTH for `nodename' member.
4433         * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h (_UTSNAME_NODENAME_LENGTH):
4434         Define it.
4435
4436         * resource/sys/resource.h (enum __rlimit_resource): Removed.
4437         Just include <resourcebits.h> instead.
4438         * resource/Makefile (headers): Add resourcebits.h.
4439         * sysdeps/generic/resourcebits.h: New file.
4440         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: New file.
4441
4442         * stdio/test-popen.c (main): Use popen to read the file back, too.
4443
4444         * sysdeps/unix/sysv/sysv4/i386/sysdep.h: New file.
4445
4446         * sysdeps/unix/sysv/sysv4/i386/sys-sig.S: Fixed typo: movel->movl.
4447
4448 Tue May 17 12:46:31 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4449
4450         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
4451         __mach_task_self, __mach_host_self): New declarations of __ 
4452         versions of syscall traps.
4453         (swtch, __swtch, swtch_pri, __swtch_pri, thread_switch,
4454         __thread_switch, evc_wait, __evc_wait): New prototypes.
4455         * mach/Makefile (headers): Added mach/mach_traps.h so that the
4456         GNU version is installed instead of the Mach version.
4457         
4458 Mon May 16 15:34:12 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4459
4460         * sysdeps/stub/sys/param.h: New file.
4461
4462         * mach/lock-intern.h (__mutex_lock, __mutex_unlock): Real definitions.
4463         (__mutex_lock_solid, __mutex_unlock_solid, __mutex_init): Declare
4464         them.
4465         * mach/mutex-solid.c: New file.
4466         * mach/Makefile (lock): Add mutex-solid.
4467         (lock-headers): Remove mutex.h.
4468         * mach/mutex.h: File removed.
4469         * hurd/hurd/id.h: Include <cthreads.h> instead of <mutex.h>.
4470         * hurd/hurd/signal.h: Likewise.
4471         * hurd/hurdsig.c: Likewise.
4472         * hurd/hurdsock.c: Likewise.
4473         * hurd/dtable.c: Likewise.
4474         * hurd/__setauth.c: Likewise.
4475         * sysdeps/mach/hurd/Makefile (includes): Also append
4476         -I$(hurd-srcdir)/libthreads.
4477
4478         * sysdeps/posix/system.c [WAITPID_CANNOT_BLOCK_SIGCHLD]: Don't
4479         block SIGCHLD.
4480         * sysdeps/unix/sysv/sco3.2.4/system.c
4481         (WAITPID_CANNOT_BLOCK_SIGCHLD): Define this macro.
4482
4483         * sysdeps/posix/sigintr.c (siginterrupt) [! SA_RESTART]: Always
4484         fail with ENOSYS.
4485
4486         * sysdeps/posix/__sigvec.c [! SA_ONSTACK]: Fail with ENOSYS if
4487         SV_ONSTACK is set in VEC->sv_flags.
4488         [SA_RESTART]: Protect SV_INTERRUPT check with this.
4489
4490         * sysdeps/mach/sysdep.h (FATAL_PREPARE): New macro.
4491         * sysdeps/posix/libc_fatal.c: Include <sysdep.h>.
4492         [FATAL_PREPARE]: Invoke the macro.
4493         * assert/assert.c: Likewise.
4494
4495         * sysdeps/generic/memmem.c: Start BEGIN at HAYSTACK, not partway
4496         into it.  Loop until BEGIN passes the location in HAYSTACK with
4497         NEEDLE_LEN bytes remaining to the end.
4498         Compare first byte manually before calling memcmp.
4499
4500         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Fix typo.
4501
4502         * posix/sys/types.h [__USE_BSD] (int32_t, int16_t, int8_t,
4503         u_int32_t, u_int16_t, u_int8_t): New typedefs.
4504
4505         * assert/assert.c (__assert_program_name): New variable.
4506         (__assert_fail): Print that in the msg too.
4507         [HAVE_GNU_LD] (set_progname): New function to set it up at startup.
4508
4509 Thu May 12 01:10:52 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4510
4511         * hurd/__setauth.c: Do critical section locking.
4512         * hurd/hurdexec.c: Likewise.
4513         * hurd/hurdauth.c (_S_del_auth): Likewise.
4514         * hurd/getuids.c: Likewise.
4515         * hurd/dtable.c: Likewise.
4516         * hurd/alloc-fd.c: Likewise.
4517         * hurd/hurd/port.h: Likewise.
4518         * hurd/hurd/fd.h: Likewise.
4519         * hurd/setuids.c: Likewise.
4520         * hurd/intern-fd.c: Likewise.
4521         * hurd/hurdsock.c (_hurd_socket_server): Likewise.
4522         * sysdeps/mach/hurd/setrlimit.c: Likewise.
4523         * sysdeps/mach/hurd/setgroups.c: Likewise.
4524         * sysdeps/mach/hurd/seteuid.c: Likewise.
4525         * sysdeps/mach/hurd/setegid.c: Likewise.
4526         * sysdeps/mach/hurd/getrlimit.c: Likewise.
4527         * sysdeps/mach/hurd/__setuid.c: Likewise.
4528         * sysdeps/mach/hurd/__setreuid.c: Likewise.
4529         * sysdeps/mach/hurd/__setregid.c: Likewise.
4530         * sysdeps/mach/hurd/__setitmr.c: Likewise.
4531         * sysdeps/mach/hurd/__setgid.c: Likewise.
4532         * sysdeps/mach/hurd/__select.c: Likewise.
4533         * sysdeps/mach/hurd/__sbrk.c: Likewise.
4534         * sysdeps/mach/hurd/__getuid.c: Likewise.
4535         * sysdeps/mach/hurd/__getpgrp.c: Likewise.
4536         * sysdeps/mach/hurd/__getitmr.c: Likewise.
4537         * sysdeps/mach/hurd/__getgrps.c: Likewise.
4538         * sysdeps/mach/hurd/__getgid.c: Likewise.
4539         * sysdeps/mach/hurd/__geteuid.c: Likewise.
4540         * sysdeps/mach/hurd/__getegid.c: Likewise.
4541         * sysdeps/mach/hurd/__getdtsz.c: Likewise.
4542         * sysdeps/mach/hurd/__fork.c: Likewise.
4543         * sysdeps/mach/hurd/__fcntl.c: Likewise.
4544         * sysdeps/mach/hurd/__dup2.c: Likewise.
4545         * sysdeps/mach/hurd/__close.c: Likewise.
4546         * sysdeps/mach/hurd/__brk.c: Likewise.
4547         * sysdeps/mach/hurd/__access.c: Likewise.
4548
4549         * sysdeps/mach/hurd/reboot.c (reboot): Use the host priv port to
4550         prove authority.
4551
4552         * sysdeps/mach/hurd/__readlink.c: Don't request O_READ access.
4553
4554         * sysdeps/mach/hurd/__ioctl.c: Don't expect result data unless
4555         return code is zero.  Translate MIG_BAD_ID or EOPNOTSUPP to ENOTTY.
4556
4557         * mach/devstream.c (output): Use device_write instead of
4558         device_write_inband.
4559
4560 Wed May 11 18:49:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4561
4562         * hurd/hurdinit.c (_hurd_init): Finsih loop of _hurd_port_init on
4563         _hurd_ports elts before doing _hurd_proc_init or
4564         __task_set_special_port.
4565
4566         * hurd/hurd/signal.h (struct hurd_sigstate): Add new
4567         `critical_section' member.  Remove #if 0'd out vfork crap.
4568         (_hurd_critical_section_lock, _hurd_critical_section_unlock): New
4569         functions. 
4570         (HURD_CRITICAL_BEGIN, HURD_CRITICAL_END): New macros.
4571
4572         * io/Makefile (headers): Add poll.h and sys/poll.h.
4573         (routines): Add poll.
4574         * sysdeps/unix/bsd/sun/sunos4/poll.S: New file.
4575         * sysdeps/unix/sysv/poll.S: New file.
4576         * sysdeps/unix/bsd/poll.c: New file.
4577         * sysdeps/stub/poll.c: New file.
4578         * io/poll.h, io/sys/poll.h: New files.
4579
4580         * misc/bsd-compat.c (setjmp): New function.
4581
4582         * sysdeps/unix/Makefile (sysdep_headers): Remove sys/param.h.
4583         * misc/Makefile (headers): Add it here instead.
4584
4585         * io/test-utime.c (main): New file.
4586         * io/Makefile (tests): New variable.
4587
4588 Wed May 11 13:44:33 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4589
4590         * hurd/hurd/threadvar.h (__hurd_errno_location): Remove 
4591         __volatile keyword.  `volatile int errno' is not the same
4592         as `int errno'; user programs often mention the latter.
4593         * errno.h: Remove __volatile keyword; same reason.
4594
4595 Tue May 10 17:21:41 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4596
4597         * time/zdump.c: New code from ADO.
4598
4599         * time/difftime.c (difftime): Use hairy rounding algorithm from
4600         eggert@twinsun.com when sizeof (time_t) >= sizeof (double).
4601
4602         * Makerules (native-CFLAGS): Remove -I$(sysincludedir).  RMS says
4603         people with bogons in /usr/local/include deserve to lose.
4604
4605         * stdio/printf_fp.c (__printf_fp): If IS_NEG gets set, negate
4606         FPNUM before testing it for %g format choice.
4607
4608         * sysdeps/unix/sysv/irix4/fcntlbits.h: New file.
4609         * sysdeps/unix/sysv/irix4/Dist: New file.
4610         * sysdeps/unix/sysv/irix4/readv.c: New file.
4611         * sysdeps/unix/sysv/irix4/writev.c: New file.
4612         * sysdeps/unix/sysv/irix4/__dup2.c: New file.
4613
4614         * sunrpc/xdr_float.c (xdr_float): Change [mc68000 || sparc] to [!
4615         vax].
4616
4617         * sysdeps/mips/setjmp.S: Remove spurious $.
4618
4619         * sysdeps/generic/ftime.c: Include <errno.h>.
4620
4621         * sysdeps/unix/mips/sysdep.S: Add .set noreorder.
4622
4623 Tue May 10 16:27:13 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4624
4625         * sysdeps/generic/termbits.h (NCCS): Doc fix.
4626
4627 Mon May  9 18:07:44 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4628
4629         * sysdeps/mach/hurd/uname.c (uname): System uname information
4630         has moved from init to proc.
4631
4632         * sysdeps/mach/usleep.c (usleep): Return correct value.  Destroy
4633         RECV when we're done with it.
4634
4635 Thu May  5 17:03:56 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4636
4637         * sysdeps/mach/hurd/__lstat.c: Use O_NOLINK instead of O_NOTRANS.
4638
4639 Thu May  5 04:20:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4640
4641         * mach/spin-lock.h (spin_lock_init): Define.
4642
4643         * sysdeps/mach/hurd/sigsuspend.c: New local variable NEWMASK, set
4644         it to *SET if SET is not null, before taking SS->lock; don't
4645         dereference SET while holding the lock.  Restore SS->blocked to
4646         OLDMASK before unlocking and returning.
4647
4648         * hurd/hurdsig.c (hurdsig_fork_child): Return zero.
4649
4650         * sysdeps/mach/hurd/__fork.c (_hurd_fork_parent_hook,
4651         _hurd_fork_prepare_hook)): Define variables (symbol sets).
4652         (__fork): Run _hurd_fork_prepare_hook and _hurd_fork_parent_hook.
4653
4654         * sysdeps/mach/hurd/sigsuspend.c: Don't test SS->pending; instead
4655         wait until SS->suspended is cleared.
4656         * hurd/hurdsig.c (_hurd_internal_post_signal): Clear SS->suspended
4657         before signalling on SS->arrived.
4658
4659         * mach/Makefile (headers): Added mach/default_pager_helper.defs.
4660
4661         * sysdeps/sparc/Dist: Added alloca.S.
4662
4663 Wed May  4 14:02:29 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4664
4665         * hurd/hurdexec.c (_hurd_exec): Unlock _hurd_dtable_lock when
4666         all through.
4667
4668         * sysdeps/mach/hurd/__setitmr.c: Changed _hurd_itimer_lock
4669         to be a spin_lock; changed mutex_lock and mutex_unlock
4670         accordingly throughout.
4671         * sysdeps/mach/hurd/__getitmr.c: Corresponding changes from
4672         mutex calls to spin lock calls here too.
4673
4674         * sysdeps/mach/hurd/__setitmr.c (setitimer_locked): Fixed syntax 
4675         of declaration of PREEMPT.
4676         (setitimer_locked): Declare variables ERR and ELAPSED.
4677         (setitimer_locked): Fix some references to REMAINING that 
4678         were using it as an itimerval instead of a timeval.
4679         (setitimer_locked): Deleted unused label STILLBORN.
4680
4681 Wed May  4 00:17:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4682
4683         * sysdeps/stub/__getitmr.c: Fix arg name __WHICH to WHICH.
4684
4685         * sysdeps/unix/bsd/alarm.c: Round tv_usec with arithmetic rather
4686         than a test.
4687
4688         * hurd/Makefile (user-interfaces): Add hurd/msg_request.
4689
4690         * sysdeps/stub/__setitmr.c: Fix arg name __WHICH to WHICH.
4691
4692         * Makeconfig (cross-compiling): Define if $(HOST_CC) and $(CC) differ.
4693         * time/Makefile (install-others): Omit defn ifdef cross-compiling.
4694
4695 Tue May  3 23:12:48 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4696
4697         * mach/Makefile (lock-headers): Add spin-lock.h.
4698
4699         * misc/Makefile (routines): Add madvise.
4700
4701         * malloc/Makefile (non-lib.a): Define.
4702         * misc/Makefile (non-lib.a): Define.
4703         * Makerules (install-lib.a): Filter out $(non-lib.a).
4704         (install-lib-non.a): Append $(non-lib.a).
4705
4706         * mach/Makefile (mach-headers): Rename sys/version.h to
4707         mach/version.h.
4708
4709         * hurd/Makefile (headers): Added hurd/threadvar.h.
4710
4711         * Version 1.07.5.
4712
4713         * hurd/port2fd.c (_hurd_port2fd): Use logic copied from
4714         _hurd_port_locked_set to install PORT in D->port, but leave it locked.
4715
4716         * sunrpc/Makefile (generated): Don't add $(objpfx).
4717
4718         * sysdeps/stub/machine-lock.h: New file.
4719         * sysdeps/stub/machine-sp.h: New file.
4720
4721 Tue May  3 22:31:15 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4722
4723         * sysdeps/mach/usleep.c (usleep): Specify MACH_RCV_MSG so that
4724         mach_msg actually waits.
4725
4726 Tue May  3 19:24:48 1994  Karl Heuer  (kwzh@hal.gnu.ai.mit.edu)
4727
4728         * malloc/malloc.h (enum mcheck_status): Delete trailing
4729         comma in enum list; some compilers don't like it.
4730
4731 Tue May  3 15:18:15 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4732
4733         * sysdeps/mach/hurd/__symlink.c (__symlink): Pass port type arg to
4734         __file_set_translator.
4735
4736 Mon May  2 17:56:47 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4737
4738         * hurd/Makefile (generated): Add $(inlines) .c files.
4739
4740         * sysdeps/mach/hurd/__mknod.c: Pass port type arg to
4741         __file_set_translator.
4742
4743 Sun May  1 16:03:13 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4744
4745         * mach/mig_syms.c: Add de-__ing aliases for mig_init,
4746         mig_get_reply_port, and mig_dealloc_reply_port.
4747
4748         * sysdeps/mach/hurd/errnos.awk: Handle copying errors from
4749         mach/mig_errors.h and device/device_types.h.  Omit E*_SUCCESS.
4750         Omit MACH_MSG_MASK and other special bit macros.
4751
4752         * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Added
4753         sc_reply_port member.
4754         * hurd/hurdsig.c (fetch_reply_port): New function.
4755         (_hurd_internal_post_signal): When setting up to run handler, set
4756         SCP->sc_reply_port to the receiving thread's value for
4757         _HURD_THREADVAR_MIG_REPLY.
4758         * sysdeps/mach/hurd/i386/__sigret.c: Destroy the MiG reply port
4759         used by the signal handler, and restore from SCP->sc_reply_port.
4760         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp): New
4761         function; guts from __hurd_threadvar_location.
4762         (__hurd_threadvar_location): Call that.
4763
4764         * hurd/hurdsig.c (check_pending): New function, broken out of:
4765         (_hurd_internal_post_signal): Call that for pending signal check.
4766         If SIGNO is zero, call check_pending on each thread's sigstate.
4767
4768         * sysdeps/mach/hurd/start.c (start1): Use calloc to get
4769         zero-filled space for __hurd_threadvar_stack_offset when
4770         __hurd_threadvar_stack_mask is zero.
4771
4772 Thu Apr 28 21:29:47 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4773
4774         * Merged gmp-1.99.3+ mpn code from tege for printf_fp.
4775         * stdio/printf_fp.c: Include "longlong.h"; gmp-impl.h no longer does.
4776         
4777         * Makerules (+depfiles): Filter $(extra-objs) to get only .o files.
4778
4779 Wed Apr 27 00:20:41 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4780
4781         * Makerules (depend-$(subdir)): Put output in tmp file and use mv -f.
4782         Always use $(+depfiles), since sources is no longer exported.
4783
4784 Tue Apr 26 20:05:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4785
4786         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Don't include <termios.h> to 
4787         avoid <sys/ioctl.h> conflicts.
4788         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Undefine ECHO, MDMBUF,
4789         TOSTOP, FLUSHO, PENDIN, and NOFLSH after including <termios.h> and
4790         before including <sys/ioctl.h>.
4791         * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
4792
4793 Tue Apr 26 14:42:43 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4794
4795         * sysdeps/mach/sleep.c (sleep): Specify MACH_RCV_MSG or else
4796         mach_msg won't do anything but return immediately.
4797         (sleep): Compute return value correctly.
4798
4799 Tue Apr 26 04:49:56 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4800
4801         * sysdeps/i386/setjmp.c: Put global register decls first thing.
4802         * sysdeps/i386/__longjmp.c: Likewise.
4803
4804 Fri Apr 22 18:10:36 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4805
4806         * sysdeps/unix/sysv/irix4/__wait3.S: New file.
4807         * sysdeps/unix/sysv/irix4/time.S: New file.
4808         * sysdeps/unix/sysv/irix4/__waitpid.c: New file.
4809
4810 Thu Apr 21 16:54:11 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4811
4812         * malloc/malloc.c (initialize, morecore): When allocating the
4813         _heapinfo block itself, account for it in the statistics.
4814
4815 Tue Apr 19 20:17:06 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4816
4817         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: New file.
4818
4819         * malloc/malloc.c (morecore): Only zero the new part of NEWINFO,
4820         not the part we will copy _heapinfo into.
4821
4822         * sysdeps/unix/bsd/signum.h (SIGLOST): Define.
4823         (_NSIG): Increase to 33.
4824
4825 Mon Apr 18 16:56:11 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4826
4827         * configure.in (config.status): Use $configure_args instead of
4828         $ac_configure_args.
4829         (after AC_PREPARE): Call AC_LANG_C.
4830
4831         * time/Makefile (routines): Add sys/timeb.h.
4832         (routines): Add ftime.
4833         * time/sys/timeb.h: New file.
4834         * sysdeps/unix/bsd/ftime.c: New file.
4835         * sysdeps/generic/ftime.c: New file.
4836
4837         * sysdeps/posix/getenv.c (getenv): Return NULL if __environ is null.
4838
4839         * malloc/malloc.h [_MALLOC_INTERNAL] [HAVE_UNISTD_H]: Include
4840         unistd.h.
4841
4842         * malloc/Makefile (gmalloc-routines): Put valloc first.
4843
4844 Wed Apr 13 14:03:02 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4845
4846         * sysdeps/mach/hurd/__symlink.c (__symlink): Set the target of the
4847         link to FROM, not TO.
4848
4849         * sysdeps/mach/hurd/__readlink.c (__readlink): Copy just the
4850         target into the user's buffer, not the entire translator spec.
4851
4852 Tue Apr 12 00:13:19 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4853
4854         * hurd/fd-write.c (_hurd_fd_write): Set noctty for now rather
4855         than depending on what happens to be on the stack.
4856
4857         * sysdeps/mach/hurd/readdir.c (readdir): Notice when hitting
4858         end-of-file and return NULL.
4859
4860 Mon Apr 11 17:36:59 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4861
4862         * sysdeps/mach/hurd/start.c (start1): Bother to set __environ.
4863
4864         * sysdeps/mach/hurd/__ioctl.c (__ioctl): Comment out use of 
4865         HURD_EINTR_RPC until signals work.
4866
4867 Mon Apr 11 14:16:40 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4868
4869         * sysdeps/mach/hurd/__ioctl.c (__ioctl): Call __mig_get_reply_port
4870         rather than __mig_reply_port (which doesn't exist).
4871
4872         * sysdeps/mach/hurd/__mknod.c: Added temporary declarations
4873         of major and minor.
4874
4875         * (This change occurred on April 4, 1994) mach/setup-thread.c
4876         (__mach_setup_thread): The March 31 change had an error; the stack
4877         needs to be allocated with ANYWHERE cleared.
4878
4879         * (This change occurred on April 8, 1994) hurd/hurdexec.c
4880         (_hurd_exec): The arguments to exec_exec had the length and 
4881         type parameters transposed.  In addition, fetch the correct
4882         procserver port for the new task.
4883
4884         * (This change occurred on April 8, 1994)
4885         sysdeps/mach/hurd/__wait.c (__wait4): Deal properly with a null
4886         USAGE argument.
4887
4888         * (This change occurred on April 8, 1994)
4889         sysdeps/mach/hurd/_exit.c (_exit): Changed commented-out call to
4890         __proc_exit into a correct call to __proc_mark_exit.
4891
4892 Fri Apr  8 14:58:24 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4893
4894         * string/strsignal.c (strsignal): Store of NUL into unknown_signal
4895         was off by one.
4896
4897 Tue Apr  5 21:26:25 1994  Brendan Kehoe  (brendan@zen.org)
4898
4899         * sysdeps/unix/sysv/sysv4/__sigact.c (__sigaction): Declare member
4900         `oact' in lower case, to match its use in the rest of the function.
4901
4902 Tue Apr  5 03:07:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4903
4904         * Makerules (install-lib.a rule): Run ranlib on the target.
4905
4906         * Makerules (library member rule): Tighten up pattern rule to
4907         match only libc.a, not other libraries.
4908
4909 Mon Apr  4 21:49:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4910
4911         * set-hooks.h: New file.
4912         * Makefile (distribute): Add it.
4913         * set-init.c: Include it and use its macro DEFINE_HOOK_RUNNER.
4914
4915         * Makerules (sysd-Makefile): Put `sysd-Makefile-done=t' in output.
4916         (sysd-rules): Don't include it unless sysd-Makefile-done is defined.
4917
4918 Mon Apr  4 18:33:54 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4919
4920         * mach/setup-thread.c (__mach_setup_thread): Oops; the vm_allocate
4921         call should have ANYWHERE cleared so that the change of the 31st
4922         has any effect at all.
4923
4924 Thu Mar 31 13:46:13 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4925
4926         * mach/setup-thread.c (__mach_setup_thread): Create a red zone
4927         beneath the stack; also, work around a bug in cthreads by
4928         forcing the stack into high memory.  FIXME--this routine
4929         depends on the direction of stack growth; that should be fixed.
4930
4931 Mon Mar 28 12:55:51 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
4932
4933         * Rules (make-dummy-lib): Use `$(AR)' instead of literal `ar'.
4934
4935         * configure.in (arg parsing): Don't take --os-release or --os-version.
4936         (switches): Variable removed; don't write it into config.status.
4937         (config.status): Write release and version values directly.
4938
4939         * sysdeps/unix/common/configure.in: Use changequote around if expr
4940         to avoid [] elision.
4941
4942 Sat Mar 26 18:36:27 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
4943
4944         * malloc/mcheck.c [! _MALLOC_INTERNAL]: #include <stdio.h>
4945
4946 Fri Mar 25 02:17:55 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
4947
4948         * malloc/mcheck.c (mprobe): New function.
4949         (abortfunc): Take enum mcheck_status arg.
4950         (checkhdr): Return an enum mcheck_status, and pass it to abortfunc.
4951         (mabort): New function.
4952         (mcheck): Use mabort as default abortfunc.
4953         * malloc/malloc.h (enum mcheck_status): New type.
4954         (mprobe): Declare new function.
4955         (mcheck): ABORTFUNC takes an `enum mcheck_status' arg.
4956
4957         * posix/unistd.h [__USE_GNU] (TEMP_FAILURE_RETRY): New macro.
4958
4959         * stdio/stdio.h [__USE_GNU && !_LIBC] (cookie_io_functions_t):
4960         Define instead of __io_functions (and make that a typedef for
4961         this); omit __ from member names.
4962
4963 Thu Mar 24 14:59:23 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
4964
4965         * sysdeps/unix/sysv/sco3.2.4/sigaction.h: New file.
4966
4967         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Put address of
4968         __sigreturn in %ecx before doing syscall trap.
4969
4970         * sysdeps/stub/setegid.c: Fix arg type to __gid_t (was int).
4971
4972 Wed Mar 23 17:33:09 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
4973
4974         * Makefile (headers): Remove $(stdarg.h).
4975         * Makeconfig (stdarg.h): Variable removed.
4976         * configure.in: Remove check for __gnuc_va_list in stdarg.h.
4977         It is not safe to replace the compiler's stdarg.h with our own.
4978
4979 Tue Mar 22 12:46:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4980
4981         * Rules (dist): Rule removed.
4982         * Makefile (dist): Likewise.
4983         * Makerules (dist, distinfo): New rules.
4984         (TAGS): Depend on distfile, pass -f distfile to submake.
4985
4986         * math/Makefile: Remove if-ed out old bsdmath copying rules.
4987
4988         * Makerules (sources, headers, sysdep_routines): Don't export these.
4989         * Rules (others, tests): Likewise.
4990
4991         * io/lockf.c: Include fcntl.h and errno.h.
4992
4993 Mon Mar 21 20:27:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4994
4995         * sysdeps/unix/bsd/sony/newsos4/fchdir.S: New file.
4996         * sysdeps/unix/bsd/sony/newsos4/{__wait4.c,__wait3.c,__wait.c,
4997         sys_wait4.S,Makefile,Dist}: New files.
4998
4999         * sysdeps/unix/Makefile (syscall.h): De-SYS_ify `kerncall_basenum'.
5000
5001         * sysdeps/unix/bsd/m68k/sysdep.S [! __motorola__]: Rename label 0
5002         to `store'; a user reports gas 1.38 bombs on numbered labels.
5003
5004         * sysdeps/posix/Makefile (mk-stdiolim): Use $(HOST_CC).
5005
5006         * Rules (distribute, dont_distribute, generated): Don't export them.
5007         (dist): Pass those vars down to sub-make on cmd line.
5008         * Makefile (distribute, generated): Don't export them.
5009         (dist): Pass distribute and generated values to sub-make on cmd line.
5010
5011         * Makerules (install-lib-nosubdir): Insert $(libprefix) appropriately.
5012
5013 Fri Mar 18 01:02:52 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5014
5015         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h (DO_CALL): Use a6 in
5016         place of fp.  A user reports gas 1.38 doesn't grok fp.
5017
5018 Tue Mar  8 18:35:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5019
5020         * Makerules (common-clean): Prepend $(objpfx) to $(generated).
5021         * Makefile (parent-clean): Prepend $(common-objpfx) to
5022         $(common-generated).
5023         * Makefile (generated): Don't prepend $(objpfx).
5024         * Rules (generated): Likewise.
5025         * sysdeps/unix/common/Makefile (generated): Likewise.
5026         * sysdeps/unix/sysv/Makefile (generated): Likewise.
5027         * sysdeps/unix/Makefile (common-generated): Don't prepend
5028         $(common-objpfx).
5029         * sysdeps/posix/Makefile (common-generated): Likewise.
5030         * sysdeps/generic/Makefile (common-generated): Likewise.
5031         (generated): Don't prepend $(objpfx).
5032
5033         * sysdeps/generic/Makefile (common-generated): Set this instead of
5034         generated for bytesex.h and det_endian.
5035
5036         * sysdeps/stub/fexecve.c: New file.
5037         * posix/Makefile (routines): Add fexecve.
5038         * posix/unistd.h [__USE_GNU]: Declare fexecve.
5039
5040         * sysdeps/unix/common/configure.in: Protect siglist and ctype
5041         checks with if [ ! "$inhibit_glue" ].
5042         * sysdeps/generic/configure.in: Likewise for psignal check.
5043         * sysdeps/unix/common/Makefile: Protect body with ifndef inhibit-glue.
5044
5045 Mon Mar  7 17:46:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5046
5047         * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: New file from brendan.
5048
5049 Fri Mar  4 01:56:26 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5050
5051         * Makerules (native-compile, common-objdir-compile): Use
5052         $(HOST_CC) in place of $(CC).
5053
5054         * malloc/cfree.c: Move #undef cfree inside #ifdef _LIBC.
5055
5056         * misc/sys/ioctl.h (struct ttysize): If TIOCGSIZE != TIOCGWINSZ,
5057         use two int elts instead of four shorts.
5058
5059 Thu Mar  3 17:35:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5060
5061         * malloc/realloc.c (realloc): When shrinking a block by splitting
5062         and then freeing one, bump the _chunks_used counter.
5063
5064         * sysdeps/unix/sysv/sysv4/i386/__mknod.S: New file.
5065
5066 Tue Mar  1 11:42:41 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5067
5068         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Get first argument from
5069         stack at 8(%esp), not 4(%esp).
5070
5071         * sysdeps/unix/sysv/isc2.2/rename.S: Get unix/common, not unix/bsd.
5072
5073 Thu Feb 24 14:40:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5074
5075         * io/lockf.c: New file.
5076         * io/Makefile (routines): Add lockf.
5077         * io/fcntl.h [__USE_MISC] (F_ULOCK, F_LOCK, F_TLOCK, F_TEST): New
5078         macros.
5079         [__USE_MISC] (lockf): Declare it.
5080         * posix/unistd.h: Copy those new macros and declaration.
5081
5082         * time/backward, time/etcetera, time/zic.c: New code and data from ADO.
5083         * Makeconfig (posixrules): Default to America/New_York.
5084
5085         * sysdeps/unix/mips/sysdep.S: Store -1 in v0 in the delay slot after
5086         the return, rather than before (leaving the delay slot unfilled and
5087         without a nop!).
5088
5089         * sysdeps/unix/sysv/irix4: New directory; mips-sgi-irix4 port
5090         courtesy Tom Quinn.
5091
5092         * sysdeps/unix/sysv/sysv4/direct.h: Moved to unix/common; it is right
5093         for irix4 as well as sysv4.
5094         * sysdeps/unix/bsd/ultrix4/__wait.S: Moved to unix/mips.
5095         (noerror): Store register v1 in location pointed to by first arg (if
5096         not NULL).
5097         * sysdeps/unix/bsd/ultrix4/__sigret.S: Moved to unix/mips.
5098
5099         * sysdeps/unix/bsd/bsd4.4/{mmap,munmap,mprotect,msync,madvise}.S:
5100         Moved to sysdeps/unix/mman (new directory).
5101         * sysdeps/unix/bsd/bsd4.4/Implies: New file; imply unix/mman.
5102         * sysdeps/unix/bsd/sunos4/Implies: Likewise.
5103         * sysdeps/unix/bsd/ultrix4/Implies: Likewise.
5104         * sysdeps/unix/bsd/osf1/Implies: Likewise.
5105         * sysdeps/unix/bsd/sun/sunos4/munmap.S,
5106         sysdeps/unix/bsd/sun/sunos4/mprotect.S,
5107         sysdeps/unix/bsd/sun/sunos4/madvise.S,
5108         sysdeps/unix/bsd/ultrix4/mmap.S,
5109         sysdeps/unix/bsd/ultrix4/munmap.S,
5110         sysdeps/unix/bsd/ultrix4/mprotect.S,
5111         sysdeps/unix/bsd/osf1/mmap.S,
5112         sysdeps/unix/bsd/osf1/munmap.S,
5113         sysdeps/unix/bsd/osf1/mprotect.S: Files removed.
5114
5115         * sysdeps/unix/sysv/sysv4/fcntlbits.h: Moved to sysdeps/unix/common.
5116
5117         * stdio/printf_fp.c: Add many assertions to make sure no mpn size
5118         variable is ever zero.
5119
5120         * Makerules (native-CFLAGS): Add -I$(sysincludedir).
5121
5122         * Makerules (depend-$(subdir)) [omit-deps]: Use $(+depfiles) value
5123         instead of shell hackery.
5124
5125 Wed Feb 23 00:09:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5126
5127         * sysdeps/sparc/alloca.S [! NO_UNDERSCORES]: Call it ___builtin_alloca.
5128
5129 Tue Feb 22 18:47:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5130
5131         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Use __off_t in mmap
5132         prototype.
5133
5134         * time/setitmr.c: Swap args OLD and NEW.
5135         * time/sys/time.h (setitimer): Likewise.
5136         * sysdeps/stub/__setitmr.c: Likewise.
5137
5138 Mon Feb 21 20:47:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5139
5140         * sysdeps/sparc/Makefile [gnulib] (routines): Add alloca.
5141         * sysdeps/sparc/alloca.S: New file; support for SunOS libc's
5142         `__builtin_alloca' function (never needed with GCC).
5143
5144         * sysdeps/unix/sysv/sysv4/__sigact.c (trampoline): Cast handler to
5145         three-arg type.
5146
5147 Sun Feb 20 00:46:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5148
5149         * sysdeps/unix/bsd/sun/sunos4/mmap.c: Add missing semicolon.
5150
5151         * sysdeps/unix/sparc/start.c [! NO_SHLIB]: Include <sys/types.h>
5152         before <sys/mman.h>.
5153
5154         * sysdeps/unix/bsd/ultrix4/mips/{sysdep.h,sysdep.S,__pipe.S,
5155         __fork.S,__brk.S}: Moved to sysdeps/unix/mips (new directory).
5156
5157         * sysdeps/unix/bsd/ultrix4/mips/__sigret.S: Use SYS_sigreturn
5158         instead of literal 103; #define to 103 if not already defined.
5159
5160 Sat Feb 19 17:39:13 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5161
5162         * sysdeps/unix/sysv/sysv4/i386/Dist: New file; list sys-sig.S.
5163
5164 Fri Feb 18 18:07:34 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5165
5166         * sysdeps/generic/configure.in: New file; check for psignal.
5167
5168         * sysdeps/unix/common/glue-ctype.c: Check for table named _ctype,
5169         before checking for _ctype_.
5170         * sysdeps/unix/common/configure.in: Check for _ctype.
5171
5172         * sysdeps/unix/Makefile (syscall.h): Look for sys.s before syscall.h.
5173         * sysdeps/unix/configure (unix_syscall_h): Likewise.
5174
5175         * configure.in (os = irix4*): Set base_os=unix/sysv.
5176
5177         * sunrpc/rpc/auth.h (u_int32): Always define, no #ifdefs.
5178         * sunrpc/xdr_float.c: Change [mc68000 || sparc] to [! vax].
5179
5180 Thu Feb 17 18:42:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5181
5182         * Version 1.07.4.
5183
5184         * sysdeps/unix/bsd/sun/sunos4/Dist: Add sys_mmap.S.
5185
5186         * Makerules (sysdep_dir): Remove defn.
5187         * Makeconfig (sysdep_dir): Define it here instead.
5188
5189 Wed Feb 16 16:54:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5190
5191         * sysdeps/unix/sysv/sysv4/__sigact.c: New file.
5192         * sysdeps/unix/sysv/sysv4/i386/Makefile: New file.
5193         * sysdeps/unix/sysv/sysv4/i386/sys-sig.S: New file.
5194
5195         * time/sys/time.h (timerisset, timercmp, timerclear): New macros.
5196
5197         * misc/Makefile (headers): Add sys/mman.h.
5198         (routines): Add mmap, munmap, mprotect, msync.
5199         * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: New file.
5200         * sysdeps/unix/bsd/sun/sunos4/mmap.c: New file.
5201         * sysdeps/unix/bsd/sun/sunos4/Makefile [$(subdir) == misc]
5202         (sysdep_routines): Add sys_mmap.
5203         * sysdeps/unix/bsd/bsd4.4/mprotect.S: New file.
5204         * sysdeps/unix/bsd/bsd4.4/munmap.S: New file.
5205         * sysdeps/unix/bsd/bsd4.4/msync.S: New file.
5206         * sysdeps/unix/bsd/bsd4.4/mmap.S: New file.
5207         * sysdeps/unix/bsd/bsd4.4/madvise.S: New file.
5208         * sysdeps/unix/bsd/sun/sunos4/mprotect.S: New file.
5209         * sysdeps/unix/bsd/sun/sunos4/munmap.S: New file.
5210         * sysdeps/unix/bsd/sun/sunos4/msync.S: New file.
5211         * sysdeps/unix/bsd/sun/sunos4/madvise.S: New file.
5212         * sysdeps/unix/bsd/ultrix4/sys/mman.h: New file.
5213         * sysdeps/unix/bsd/ultrix4/mmap.S: New file.
5214         * sysdeps/unix/bsd/ultrix4/munmap.S: New file.
5215         * sysdeps/unix/bsd/ultrix4/mprotect.S: New file.
5216         * sysdeps/stub/mprotect.c: New file.
5217         * sysdeps/stub/munmap.c: New file.
5218         * sysdeps/stub/msync.c: New file.
5219         * sysdeps/stub/mmap.c: New file.
5220         * sysdeps/stub/madvise.c: New file.
5221         * sysdeps/generic/sys/mman.h: New file.
5222         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: New file.
5223         * sysdeps/unix/bsd/osf1/msync.S: New file.
5224         * sysdeps/unix/bsd/osf1/mmap.S: New file.
5225         * sysdeps/unix/bsd/osf1/munmap.S: New file.
5226         * sysdeps/unix/bsd/osf1/mprotect.S: New file.
5227         * sysdeps/unix/bsd/osf1/sys/mman.h: New file.
5228
5229 Tue Feb 15 16:47:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5230
5231         * posix/unistd.h: Declare truncate, ftruncate.
5232
5233         * misc/Makefile (headers): Add syslog.h.
5234         * misc/syslog.h: New file; just includes <sys/syslog.h>.
5235
5236         * posix/unistd.h: Change duplicate seteuid decl to setegid.
5237
5238         * io/Makefile (headers): Add sys/fcntl.h.
5239         * io/sys/fcntl.h: New file; just includes <fcntl.h>.
5240
5241 Mon Feb 14 10:36:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5242
5243         * Makerules (library pattern rule): Depend on
5244         $(objpfx)stamp-$(subdir) and have empty commands.
5245         ($(objpfx)stamp-$(subdir)): Move dep on $(objects) and ar cmds here.
5246         (common-mostlyclean): Remove $(objpfx)stamp-$(subdir).
5247
5248         * Makerules (+depfiles): Filter out deps for modules in $(omit-deps).
5249
5250         * sunrpc/Makefile (omit-deps): Define new variable.
5251
5252         * Makerules ($(libc.a)(__.SYMDEF)): Depend on $(+libobjs), not
5253         lib-noranlib.
5254         * Makefile ($(libc.a)(__.SYMDEF)): Depend on subdir_lib.
5255
5256         * Makerules (+depfiles): Include deps for $(extra-objs).
5257
5258         * sunrpc/rpcsvc/klm_prot.x: Move program definition to end.
5259
5260         * sunrpc/Makefile (lib): Depend on $(objpfx)librpcsvc.a.
5261
5262         * time/zic.c: Set CP to NAME before dereferencing.
5263
5264         * sunrpc/Makefile ($(objpfx)x%.c): Target fixed from $(objpfx)x%.c.
5265         ($(objpfx)rpcsvc/%.h): Target renamed from $(includedir)rpcsvc/%.h.
5266         Make each x%.o file depend on the corresponding rpcsvc/%.h file.
5267         (headers): Add rpcsvc/%.h.
5268         (install-others): Remove generated rpcsvc headers.
5269         (generated): Define to include generated rpcsvc headers and sources.
5270
5271         * sysdeps/m68k/fpu/acos.c: Add __CONSTVALUE to defn.
5272         * sysdeps/m68k/fpu/ldexp.c: Likewise.
5273         * sysdeps/m68k/fpu/pow.c: Likewise.
5274         * sysdeps/m68k/fpu/fmod.c: Likewise.
5275         * sysdeps/m68k/fpu/atan2.c: Likewise.
5276         * sysdeps/m68k/fpu/__drem.c: Likewise.
5277         * sysdeps/m68k/fpu/__isinf.c: Likewise.
5278         * sysdeps/generic/hypot.c: Likewise.
5279         * sysdeps/m68k/fpu/__logb.c: Likewise.
5280
5281         * sysdeps/unix/bsd/m68k/sysdep.S: Swap operands in cmpl.
5282
5283 Sun Feb 13 19:49:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5284
5285         * sysdeps/m68k/Makefile (compile-command.S): Remove definition
5286         that did kludgey # hackery.
5287         * sysdeps/unix/bsd/hp/m68k/sysdep.h (PSEUDO): Add missing close paren.
5288         (POUND): Define (no arg) to just `#' (a single pound sign).
5289         (PSEUDO, DO_CALL): Use `POUND foo' in place of `POUND(foo)'.
5290         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
5291         * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
5292         * sysdeps/unix/bsd/sun/m68k/__brk.S: Use #0, not POUND(0).
5293         * sysdeps/unix/bsd/hp/m68k/__brk.S: Use #__end instead of POUND(__end).
5294
5295 Fri Feb 11 00:29:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5296
5297         * configure.in (Makefile): Set objdir instead of ARCH in submake cmd.
5298
5299         * time/mktime.c: Define __P if undefined.
5300
5301         * assert/assert.h (__ASSERT_FUNCTION): Check __GNUC_MINOR__<6 if
5302         defined(__cplusplus).
5303
5304 Thu Feb 10 00:52:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5305
5306         * sysdeps/unix/sysv/__sigact.c: Use __sigismember and
5307         __sigemptyset on sa_mask instead of assuming it's an int.
5308
5309         * sysdeps/unix/sysv/sysv4/sigset.h (__sigismember): Declare arg
5310         SET to be a pointer to const.
5311
5312         * sysdeps/posix/__sigpause.c: Convert MASK to a sigset_t with a loop.
5313
5314         * sysdeps/posix/__sigblock.c: When sigset_t==mask, take address of
5315         SET or OSET, cast to int *, and dereference.
5316         * sysdeps/posix/__sigstmsk.c: Likewise.
5317         * sysdeps/posix/__sigvec.c: Likewise.
5318
5319         Add the -lrpcsvc library of XDR routines for standard SunRPC protocols.
5320         * sunrpc/Makefile (install-lib): Define to include librpcsvc.a.
5321         (rpcsvc-objs): New variable.
5322         (extra-objs): Add $(rpcsvc-objs).
5323         ($(objpfxlibrpcsvc.a): New target.
5324         ($(objpfx)x%.o): New rule to rpcgen XDR routines.
5325
5326 Wed Feb  9 11:59:33 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5327
5328         * time/zic.c (mkdirs): Reapply fix to avoid writing into passed ptr.
5329
5330         * sunrpc/Makefile (distribute): Add etc.rpc.
5331         ($(includedir)/bootparam_prot.h): Change target to
5332         $(includedir)/rpcsvc/bootparam_prot.h and dep to
5333         $(includedir)/rpcsvc/bootparam.h.
5334         (install-others): Change reference.
5335
5336         * sunrpc/rpc_util.h: Comment out bogus decl of sprintf.
5337
5338         * Makerules ($(libc.a)(__.SYMDEF)): Depend on lib-noranlib instead
5339         of $(+libobjs); this way makes the parent do subdir_lib.
5340
5341         * sysdeps/unix/sysv/sysv4/sigset.h: Protect types with #ifndef
5342         _SIGSET_H_types.  Protect rest with #if !defined (_SIGSET_H_fns)
5343         && defined (_SIGNAL_H).
5344
5345 Tue Feb  8 19:00:42 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5346
5347         * Version 1.07.3.
5348
5349         * sysdeps/unix/sysv/sysv4/sigset.h: Fix typos (omitted __s).
5350
5351 Mon Feb  7 14:31:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5352
5353         * Makerules ($(libc.a)): Depend on $(libc.a)(__.SYMDEF); no commands.
5354         ($(+libobjs)): Remove static pattern rule.
5355         (ar-it): Target removed.
5356         Replace with pattern rule to catch %(*.o) for all $(objects).
5357         ($(libc.a)(__.SYMDEF)): New target.
5358         (lib-noranlib, $(libdir)/lib$(libprefix)c.a): Don't depend on ar-it.
5359
5360         * sysdeps/unix/sparc/sysdep.h (PSEUDO): Add nop after jmp; the
5361         next insn is most likely a retl, which causes interesting behavior.
5362
5363         * stdio/vfprintf.c: Pass WORKEND+1 to _itoa, not WORKEND.
5364         Subtract one from result of _itoa when setting W.
5365
5366         * time/{africa,asia,australasia,backward,europe,leapseconds,
5367         northamerica,southamerica,zic.c}: New code and data from ADO.
5368
5369 Sun Feb  6 13:55:27 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5370
5371         * sunrpc: New directory; code from Sun's RPCSRC-4.0.
5372         * sysdeps/unix/inet/Subdirs: Add sunrpc.
5373         * inet/netdb.h: #include <rpc/netdb.h> at end.
5374
5375         * Make-dist ($(tardir).tar): Use -v when extracting from dist.tar
5376         and pipe output to doschk.
5377
5378         * Makeconfig (etcdir): New variable.
5379         (localtime-file): Use that in default value.
5380
5381         * Makerules (depend-$(subdir)): Include dep files for all .o files
5382         listed in $(extra-objs).
5383
5384         * posix/sys/types.h (NFDBITS): #define to __NFDBITS.
5385
5386         * inet/netinet/in.h (INADDR_LOOPBACK): Don't define if already
5387         defined; avoids changing source which defines it before including this.
5388         (struct sockaddr_in): Rename `__pad' member to `sin_zero'; some
5389         code wants to bzero the area just for paranoia.
5390
5391         Make cleaning targets only remove common (not specific to one
5392         subdir) generated files if run from the parent directory.
5393         * Makefile (parent-clean): Remove $(common-generated) also.
5394         * sysdeps/unix/Makefile (local_lim.h, sys/param.h, errnos.h,
5395         ioctls.h, syscall.h): Append to $(common-generated), not $(generated).
5396         * sysdeps/posix/Makefile (stdio_lim.h): Likewise.
5397
5398         * signal/signal.h: Declare psignal here.
5399         * stdio/stdio.h: Not here.
5400
5401         * stdio/stdio.h [__OPTIMIZE__] (vprintf, vfscanf, vscanf,
5402         vsscanf): Define as extern inline functions instead of macros.
5403
5404         * configure.in (names): Check existence of implied dirs and warn
5405         for absentees.
5406
5407 Sat Feb  5 13:38:26 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5408
5409         * Version 1.07.2.
5410
5411         * resource/sys/resource.h (RUSAGE_SELF, RUSAGE_CHILDREN): #define
5412         to self for things that test #ifdef.
5413
5414         * sysdeps/unix/common/Dist: Remove bsd_getgrp.S.
5415
5416         * sysdeps/unix/Makefile: Don't include param.h.dep ifdef no_deps.
5417
5418         * Makerules (vpath %.h): Use $(common-objpfx) in place of $(objpfx).
5419
5420         * sysdeps/unix/bsd/i386/__vfork.S: Decrement R1 and AND it with R0
5421         to avoid the test and branch.
5422
5423         * sysdeps/unix/bsd/getprio.S, sysdeps/unix/bsd/setprio.S,
5424         sysdeps/unix/bsd/__setreuid.S, sysdeps/unix/bsd/__setregid.S: Moved to
5425         sysdeps/unix/common.
5426
5427         * sysdeps/unix/reboot.S: New file.
5428
5429         * sysdeps/unix/sysv/sysv4/solaris2/signum.h: New file.
5430         * sysdeps/unix/sysv/sysv4/signum.h: New file.
5431         * sysdeps/unix/sysv/sysv4/sigset.h: New file.
5432         * sysdeps/unix/sysv/sysv4/sigaction.h (struct sigaction): Swap
5433         positions of sa_flags and sa_mask members (sa_flags is first now).
5434         (SA_NOCLDWAIT): Renamed from SA_NOSCLDWAIT.
5435
5436         * sysdeps/unix/bsd/init-posix.c (_posix_start_time): Initialize it.
5437
5438         * Makerules (open-check-inhibit-asm): Use : for empty commands in case.
5439
5440         * time/leapseconds: New version from ADO, adds 1994 leap second.
5441
5442 Thu Feb  3 02:15:30 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5443
5444         * sysdeps/unix/bsd/ulimit.c: Define ulimit instead of __ulimit.
5445
5446 Wed Feb  2 16:56:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5447
5448         * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: Moved to unix/sysv/sysv4.
5449         Replaced with #include of that file.
5450
5451         * sysdeps/unix/sysv/sysv4/solaris2/sigaltstack.S: Moved to 
5452         sysdeps/unix/sysv/sysv4/sigaltstk.S.
5453
5454         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Syscall lxstat, not xlstat.
5455         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Syscall fxstat, not xfstat.
5456
5457 Tue Feb  1 18:22:21 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5458
5459         * stdio/_itoa.c, stdio/_itoa.h: New files.
5460         * stdio/Makefile (routines): Add _itoa.
5461         (distribute): Add _itoa.h.
5462         * stdio/vfprintf.c: Use _itoa instead of doing it by hand.
5463
5464         * sysdeps/unix/sparc/vfork.S: Add nop after jmp.  Bad delay slot,
5465         no pipeline.
5466         * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
5467
5468 Mon Jan 31 19:33:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5469
5470         * assert/assert.c (__assert_fail): Take 4th arg FUNCTION; if it is
5471         not null, print it in the message.  Also declare __NORETURN.
5472         * assert/assert.h (__assert_fail): Update decl; also add __NORETURN.
5473         (__ASSERT_FUNCTION): #define to be __PRETTY_FUNCTION__ for GCC>=2.4.
5474         (assert): Pass __ASSERT_FUNCTION to __assert_fail.
5475
5476         * sysdeps/unix/bsd/sun/sparc/vfork.S: Moved to sysdeps/unix/sparc.
5477         Use C_SYMBOL_NAME on __vfork instead of prepending an underscore.
5478
5479         * sysdeps/unix/sysv/sysv4/solaris2/{start.c,sysdep.S,sysdep.h}: Moved
5480         to sysdeps/unix/sysv/sysv4/solaris2/sparc.
5481
5482         * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
5483         bsd/ultrix4/mips,bsd/vax}/sysdep.S: Don't do EWOULDBLOCK_sys->EAGAIN
5484         mapping #if EWOULDBLOCK_sys == EAGAIN.
5485
5486         * sysdeps/unix/sparc/sysdep.h [NO_UNDERSCORES]: #define syscall_error
5487         to C_SYMBOL_NAME(__syscall_error).
5488         (PSEUDO): On error, jump to syscall_error instead of setting errno.
5489         * sysdeps/unix/sparc/sysdep.S: New file.
5490
5491         * sysdeps/unix/sysv/sysv4/i386/__vfork.S: New file, just #include
5492         unix/bsd/i386 version. 
5493
5494         * sysdeps/unix/bsd/i386/__vfork.S: Use `scratch' in place of %edx.
5495
5496 Thu Jan 27 16:46:03 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5497
5498         * configure.in (asm-CPPFLAGS): Add new check to see if assembling
5499         a .S file loses without -P.  If so, set asm-CPPFLAGS=-P in config.make.
5500
5501         * configure.in (stddef.h): Print msg under --verbose.
5502
5503         * manual/Makefile (subdir): Define outside of `export' directive,
5504         for old make.
5505
5506         * time/mktime.c (search): Take new arg PRODUCER, fn to call
5507         instead of `localtime'.
5508         (_mktime_internal): New function; all code from old `mktime', but
5509         take 2nd arg PRODUCER and pass along to `search'.
5510         (mktime): Rewrite to call _mktime_internal with localtime.
5511         * time/Makefile (routines): Add dysize, timegm, timelocal.
5512         * time/time.h (_mktime_internal): Declare it.
5513         [__USE_MISC]: Declare timegm, timelocal, dysize.
5514         * time/dysize.c: New file.
5515         * time/timegm.c: New file.
5516         * time/timelocal.c: New file.
5517
5518 Wed Jan 26 20:06:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5519
5520         Remove the hackery on getgroups for most systems.  It is no longer
5521         necessary because gid_t is now the same size as int.
5522         * sysdeps/unix/common/Makefile (sysdep_routines): Don't add bsd_getgrp.
5523         * sysdeps/unix/common/bsd_getgrp.S: File removed.
5524         * sysdeps/unix/common/__getgrps.S: New file.
5525         * sysdeps/unix/bsd/sequent/i386/__getgrps.S: New file.
5526
5527         Clean up the rules for cleaning up.
5528         * Makerules (common-mostlyclean): New target; remove object files.
5529         (common-clean): New target; depend on common-mostlyclean, and
5530         remove dep files and generated files.
5531         (clean): Depend on common-clean.
5532         (mostlyclean): Depend on common-mostlyclean.
5533         * Rules (mostlyclean): Target removed.
5534         (clean): Target removed.
5535         (distclean): New target; depend on clean.
5536         (realclean): New target; depend on distclean.
5537         (subdir_distclean): New target; depend on distclean.
5538         (subdir_realclean): New target; depend on realclean.
5539         (subdir_mostlyclean): New target; depend on mostlyclean.
5540         * Makefile (+subdir_targets): Add subdir_distclean,
5541         subdir_realclean; change mostlyclean to subdir_mostlyclean.
5542         (parent-mostlyclean): New target; depend on common-mostlyclean and
5543         remove libc.a and $(install-lib).
5544         (parent-clean): New target; depend on parent-mostlyclean and
5545         common-clean, and remove sysdirs sysd-dirs sysd-Makefile.
5546         (clean): Depend on parent-clean and just do submake for subdirs.
5547         (mostlyclean): Depend on parent-clean and just do submake for subdirs.
5548         (distclean, realclean): Depend on parent-clean and do submake
5549         distclean-1 passing it variable assignment distclean-1=$@.
5550         (distclean-1): Depend on subdir_$(distclean-1) and remove
5551         $(config-generated), config.status, config.make, Makefile (if not
5552         in srcdir).
5553         * manual/Makefile (subdir_clean): Target removed.
5554         (subdir_%): New rule to handle all such targets.
5555         (distclean): Depend on clean, not mostlyclean.
5556         (realclean): Depend on distclean, not clean.
5557
5558         * sysdeps/unix/configure (unix_generated_dirpfx): New variable.
5559         Use it to put created .S files in sysdeps/unix if configured in
5560         srcdir, else in current directory.
5561         (unix_generated): Prepend $unix_generated_dirpfx.
5562         Have generated config.make fragment prepend $(objpfx).
5563         * sysdeps/unix/Makefile (generated): Don't set it.
5564         (config-generated): Set this instead; don't prepend any directory
5565         prefix to $(unix-generated).
5566
5567         Fixes for SVR4 wait from jmc@ksu.ksu.edu (James Michael Chacon):
5568         * sysdeps/unix/sysv/sysv4/siginfo.h (__siginfo_t): Add `__code'
5569         and `__pid' fields.
5570         (EXITED, KILLED, CORED, TRAPPED, STOPPED, CONTINUED): New macros.
5571         * sysdeps/unix/sysv/sysv4/__waitpid.c: Switch on INFOP.__code and
5572         construct *STAT_LOC from INFOP.__status accordingly.
5573
5574         * stdlib/testsort.c (main): Use puts to add newlines to printed lines.
5575
5576 Tue Jan 25 14:32:01 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5577
5578         * Version 1.07.1.
5579
5580         * manual/Makefile (%.z): Change target pattern to %.gz.
5581         (dist): Comment out dep.  Don't really need the separate doc dist.
5582
5583         * stdio/stdio.h [__OPTIMIZE__] (getchar, putchar, getdelim,
5584         getline, __getline): Use extern inlines instead of macros.
5585
5586         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Fix typo ($eax for %eax).
5587
5588         * sysdeps/unix/siglist.c [! HAVE_GNU_LD] (_sys_siglist): #define
5589         to sys_siglist.
5590         * sysdeps/posix/__gettod.c [! HAVE_GNU_LD] (__daylight,
5591         __timezone, __tzname): #define to non-__ names.
5592
5593         * math/math.h [__USE_BSD] (M_E, M_LOG2E, M_LOG10E, M_LN2, M-LN10,
5594         M_PI, M_PI_2, M_PI_4, M_1_PI, M_2_PI, M_2_SQRTPI, M_SQRT2,
5595         M_SQRT1_2): New macros.
5596
5597 Tue Jan 25 14:01:28 1994  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
5598
5599         * sysdeps/mach/hurd/start.c (start1): Decide separately whether to
5600         split argv and whether to split envp.
5601
5602         * sysdeps/mach/hurd/i386/sysdep.h: File deleted.
5603         sysdeps/mach/i386/sysdep.h: Delete SET_SP macro.
5604         sysdeps/mach/hurd/start.c (_start): Don't call GET_SP; set globals
5605         instead of locals from exec_startup message.
5606
5607         * misc/progname.c: Don't try to set
5608         program_invocation_name or program_invocation_short_name if argv
5609         or argv[0] is invalid.
5610
5611 Mon Jan 24 16:51:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5612
5613         * sysdeps/unix/sysv/sysv4/__waitpid.c: Return INFOP.__pid instead of
5614         the PID we were called with.
5615
5616         * sysdeps/unix/sysv/__mkdir.c (__mkdir): Restore errno before
5617         returning, not after (lot of good that did).
5618
5619         * sysdeps/unix/bsd/ultrix4/system.c, sysdeps/unix/bsd/bsd4.4/system.c,
5620         sysdeps/unix/bsd/osf1/system.c, sysdeps/unix/sysv/sco3.2.4/system.c,
5621         sysdeps/unix/bsd/sun/sunos4/system.c, sysdeps/unix/sysv/sysv4/system.c:
5622         New files.  Avoid sysdeps/unix/system.c, which defines NO_WAITPID.
5623
5624         * set-init.c (__libc_init): Use `n' count field instead of
5625         checking for null terminator.  The latter loses when there are no
5626         set elts at all, and only one word is allocated for __libc_subinit.
5627
5628         * sysdeps/generic/waitstatus.h (__WCOREFLAG): New macro.
5629         * posix/sys/wait.h [__USE_BSD] (WCOREFLAG): New; define to __WCOREFLAG.
5630
5631         * stdio/fileno.c (fileno): Call __stdio_check_funcs.
5632
5633         * stdio/tst-fileno.c: New file.
5634
5635 Fri Jan 21 16:56:50 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5636
5637         * Rules (dep-dummy-lib, make-dummy-lib): New variables.
5638         ($(objpfx)dummy.o): New file rule.
5639         * posix/Makefile ($(objpfx)libposix.a): Depend on
5640         $(dep-dummy-lib), and use $(make-dummy-lib) for commands.
5641         * math/Makefile ($(objpfx)libm.a): Likewise.
5642
5643         * sysdeps/unix/sysv/sysv4/i386/__stat.S: New file.
5644         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
5645         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
5646
5647         * sysdeps/sparc/bytesex.h: New file.
5648
5649 Thu Jan 20 12:45:35 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5650
5651         * sysdeps/stub/syscall.c (syscall): Declare arg type as int.
5652
5653 Wed Jan 19 18:18:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5654
5655         * Makerules ($(before-compile) rule): Protect w/`ifdef before-compile'.
5656
5657         * manual/Makefile: Change all `mv' uses to `mv -f'.
5658         (subdir_install): Depend on stubs.
5659
5660         * Makerules ($(objpfx)%.dep: %.s): Depend also on $(objpfx)dummy.dep.
5661
5662 Tue Jan 18 19:12:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5663
5664         * stdlib/testsort.c (main): Swap dimensions of BUFS array.
5665
5666 Mon Jan 17 17:31:28 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5667
5668         * Version 1.07 released.
5669
5670         * Makerules (install-lib rules): Fix typos: missing / after $(libdir).
5671
5672         * posix/Makefile (lib): Depend on $(objpfx)libposix.a
5673         * malloc/Makefile (lib): Depend on $(objpfx)libmcheck.a.
5674         * math/Makefile (lib): Depend on $(objpfx)libm.a.
5675         * misc/Makefile (lib): Depend on $(objpfx)libbsd-compat.a.
5676
5677         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: New file.
5678
5679         * stdio/internals.c (flushbuf): Don't try aligned-block writing
5680         calculation when FP->__buffer is nil.
5681
5682 Mon Jan 17 17:27:56 1994  Jim Meyering  (meyering@comco.com)
5683
5684         * sysdeps/generic/memcmp.c [!_LIBC]: Include <sys/types.h> for
5685         definition of size_t.
5686
5687 Mon Jan 17 17:13:11 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5688
5689         * sysdeps/unix/sysv/sco3.2.4/syscall.h: Add SYS_[gs]etitimer and
5690         SYS_pgrpsys (from scottb).
5691
5692         * sysdeps/unix/configure: Check for getitimer and setitimer syscalls.
5693
5694         * sysdeps/unix/bsd/sequent/i386/syscall.S: New file from jason.
5695
5696 Sun Jan 16 00:41:03 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5697
5698         * string/strerror.c (strerror): Declare BUF to be array of char.
5699
5700         * Version 1.06.13.
5701
5702 Sat Jan 15 17:27:26 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5703
5704         * stdlib/testsort.c (main): Rewrite not to read any input; instead
5705         generate some random alphabetic strings.
5706
5707         * stdlib/Makefile (testsort.input): Rules removed.
5708
5709         * sysdeps/unix/sysv/i386/__sigret.S: New file.
5710
5711         * stdio/Makefile (distribute): Add mpn-copy.mk.
5712         Remove 68k rules; include mpn-copy.mk for dir names needing
5713         translation, and rewrite no-68k rules to be generic for the rest.
5714         (mpn-copy-sysdep): New variable.
5715         (mpn-stuff): Include $(mpn-copy-sysdep).
5716         (clean-mpn): Use rm -f.
5717
5718         * configure.in (machine): Match m68... and m88..., not mc[68]8....
5719
5720         * stdio/printf_fp.c: For length arg to __mpn_extract_double, pass
5721         actual number of limbs allocated for F, not LDBL_MANT_DIG.
5722
5723 Fri Jan 14 19:09:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5724
5725         * sysdeps/unix/i386/sysdep.S: Fixed typo: `movl', not `move'.
5726
5727         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Swap args in cmpl insn.
5728
5729 Thu Jan 13 17:09:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5730
5731         * Version 1.06.12.
5732
5733         * sysdeps/mips/sqrt.c: File removed.  Ian says only the r[46]00
5734         have `sqrt.d' and GCC open codes it anyway.  Perhaps someday
5735         Brendan will be able to explain his rationale for writing this. :(
5736
5737 Tue Jan 11 18:10:17 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5738
5739         * posix/sys/wait.h (__WAIT_STATUS, __WAIT_STATUS_DEFN): Use snazzy
5740         version only for GCC >= 2.6 (was 2.4); 2.5.7 produces bad code on
5741         sparc when the union arg type is used.
5742
5743         * Makeconfig (libprefix): New variable.
5744         * Makerules ($(libdir)/libc.a, install): Insert $(libprefix)
5745         between `lib' and `c' in the file name.
5746         [install-lib] (install-lib.a, install-lib-non.a): New variables
5747         separate out $(install-lib) elts which do or don't match lib%.a.
5748         ($(libdir)/...): Split into two rules for above two cases.  Put
5749         $(libprefix) on installed files; for lib%.a insert it before %
5750         rather than at beginning of file name.
5751
5752         * Version 1.06.11.
5753
5754         * Makerules (compilation rules): Move directoryless rules (for
5755         finding sources in .) before include sysd-rules.  Omit rules to
5756         compile from sources in $(objpfx) if not using $(objdir).
5757
5758         * sysdeps/stub/errlist.c [! HAVE_GNU_LD]: #define _sys_errlist to
5759         sys_errlist and _sys_nerr to sys_nerr.
5760
5761 Mon Jan 10 15:01:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5762
5763         * time/Makefile (z.%): In generated rules, depend on yearistype.
5764         (tzcompile): Pass -y flag with file name of yearistype.
5765
5766 Sun Jan  9 17:51:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5767
5768         * misc/bsd-compat.c (longjmp): Use __NORETURN in type.
5769
5770         * sysdeps/ieee754/dbl2mpn.c [N == 2]: For denormal, when
5771         RES_PTR[1] is zero, return 1 instead of 2.
5772
5773 Sun Jan  9 13:10:25 1994  Torbjorn Granlund  (tege@adder.cygnus.com)
5774
5775         * stdio/printf_fp.c: Solve 10+ problems.
5776         * ieee754/dbl2mpn.c: Correctly detect denorms.  Get the denom
5777         exponent right.
5778
5779 Sun Jan  9 00:40:48 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5780
5781         * sysdeps/ieee754/dbl2mpn.c: Test BITS_PER_MP_LIMB and handle
5782         either 32 or 64; #error if not one of those.
5783
5784         * sysdeps/stub/udiv_qrnnd.c: Renamed from udiv_qrnnd.S.
5785
5786 Sat Jan  8 00:25:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5787
5788         * Version 1.06.10.
5789
5790         * Makerules ($(libdir)/libc.a): Depend on subdir_install.
5791
5792 Thu Jan  6 02:17:07 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5793
5794         * Makerules ($(bindir)/$(install)): Use $(INSTALL_PROGRAM), not
5795         $(INSTALL).
5796         ($(libdir)/libc.a): Don't depend on lib-noranlib; on libobjs and
5797         ar-it instead.  Run ranlib on target after installing.
5798         (installdirs): Target removed; deps on it removed.
5799         (install-{bin,lib,data,headers,others,no-libc.a}): Renamed to
5800         `install-*-nosubdir'.
5801         (install-%): New pattern rule.
5802         (install): Depend only on install-no-libc.a-nosubdir.
5803         * Rules (subdir_install): Depend on lib-noranlib and stubs.
5804         * Makefile (headers): Remove stubs.h.
5805         (install-others): Define to include $(includedir)/stubs.h.
5806         ($(includedir)/stubs.h): New target for $(objpfx)stubs.h rule.
5807         Depend only on subdir_install, and install directly.
5808
5809         * Makerules (sed-remove-objpfx): Require SPC before $(objpfx) to match.
5810
5811         * time/zic.c (mkdirs): Duplicate passed string in allocated memory
5812         and free it when done.
5813
5814         * dirent/dirent.h [__USE_BSD || __USE_MISC]: Get size_t from stddef.h.
5815
5816         * sysdeps/ieee754/dbl2mpn.c: For zero value, return 1 limb not 0.
5817
5818         * Makerules (make-dummy-dep): Use filter-out to invert sense of
5819         wildcard match, so we produce a command if $@ does *not* exist.c
5820
5821         * stdio/Makefile (routines): Add dbl2mpn.
5822
5823 Wed Jan  5 17:52:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5824
5825         * sysdeps/unix/i386/sysdep.S (syscall_error): Reverse args in
5826         `cmpl' insn; non-GNU assembler is feeble-minded.
5827
5828 Mon Jan  3 18:53:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5829
5830         * configure.in (sysnames): Remove / before $mach; it is prepended
5831         already by the loop constructing $mach from $machine.
5832
5833 Tue Dec 28 07:38:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5834
5835         * stdio/Makefile [gmp-srcdir] (clean-mpn): New target.
5836
5837         * configure.in (machine): Turn i[34]86 into i386/&, sparc* into
5838         sparc/&, m68k into m68k/mc68020, mc680?0 into m68k/&, mips or
5839         r2000 into mips/r3000, r[34]000 into mips/&.
5840         (mach): New variable; processed from $machine as $base from $base_os.
5841         Use that in place of $machine in loop finding sysdep directories.
5842
5843         * stdio/Makefile (aux): Add mp_clz_tab.
5844         (mpn-copy): Add mp_clz_tab.c.
5845         (mpn-routines): Add udiv_qrnnd.
5846         (mpn-sysdep): Look for .s files too.
5847         * sysdeps/stub/udiv_qrnnd.S: New file.
5848
5849 Sat Dec 25 00:20:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5850
5851         * Version 1.06.9.
5852
5853         * Makefile (distribute): Add install.sh.
5854         * install.sh: New file.
5855
5856         * sysdeps/i386/Makefile: New file.
5857         (asm-CPPFLAGS): Add -DGAS_SYNTAX.
5858
5859         * stdio/printf_fp.c: Major rewrite of sysdeps/generic/printf_fp.c,
5860         working with the fractional parts as multiprecision integers
5861         instead of doubles, using mpn functions from GNU MP.  Done with
5862         much help from tege@cygnus.com.
5863         * sysdeps/generic/printf_fp.c, sysdeps/ieee754/printf_fp.c,
5864         sysdeps/m68k/fpu/printf_fp.c: Files removed.
5865
5866 Fri Dec 24 23:09:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5867
5868         * sysdeps/stub/dbl2mpn.c, sysdeps/iee754/dbl2mpn.c: New files.
5869         * sysdeps/stub/asm.h: New file.
5870         * sysdeps/m68k/add_n.S, sysdeps/m68k/addmul_1.S,
5871         sysdeps/m68k/mul_1.S, sysdeps/m68k/sub_n.S,
5872         sysdeps/m68k/submul_1.S, sysdeps/m68k/asm.h,
5873         sysdeps/generic/add_1.c, sysdeps/generic/add_n.c,
5874         sysdeps/generic/addmul_1.c, sysdeps/generic/cmp.c,
5875         sysdeps/generic/divmod.c, sysdeps/generic/divmod_1.c,
5876         sysdeps/generic/lshift.c, sysdeps/generic/rshift.c,
5877         sysdeps/generic/mod_1.c, sysdeps/generic/mul.c,
5878         sysdeps/generic/mul_1.c, sysdeps/generic/mul_n.c,
5879         sysdeps/generic/sub_n.c, sysdeps/generic/submul_1.c,
5880         sysdeps/generic/get_str.c, sysdeps/i386/addmul_1.S,
5881         sysdeps/i386/mul_1.S, sysdeps/i386/submul_1.S,
5882         sysdeps/alpha/gmp-mparam.h, sysdeps/generic/gmp-mparam.h,
5883         sysdeps/i386/asm.h, stdio/longlong.h, stdio/gmp.h,
5884         stdio/gmp-impl.h: New files, taken from GNU MP.
5885         * stdio/Makefile (mpn-headers, mpn-routines): New variables.
5886         (routines): Include $(mpn-routines).
5887         (distribute): Include $(mpn-headers).
5888         [gmp-srcdir]: Much code to copy mpn source from $(gmp-srcdir).
5889         * configure.in: Check for a --with-gmp argument and set gmp-srcdir
5890         in config.make to its value (error if no arg given).  Move
5891         config_vars initialization before this (right after arg parsing).
5892
5893 Thu Dec 23 01:44:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5894
5895         * sysdeps/m68k/Makefile (m68k-syntax-flag): New variable.
5896         (compile-command.S): Include $(m68k-syntax-flag) in cpp flags.
5897
5898         * manual/Makefile (install-data): New target.
5899         (install-%): New pattern rule.
5900
5901         * Makerules ($(bindir)/...): Do $(make-target-directory) first.
5902
5903 Thu Dec 23 01:03:19 1993  Brendan Kehoe  (brendan@zen.org)
5904
5905         Port to the DEC Alpha running OSF/1. (75% done)
5906         * sysdeps/unix/bsd/osf1/alpha/start.S: New file.
5907         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: New file.
5908         * sysdeps/unix/bsd/osf1/alpha/sysdep.S: New file.
5909         * sysdeps/unix/bsd/osf1/alpha/__brk.S: New file (incomplete).
5910         * sysdeps/unix/bsd/osf1/alpha/__fork.S: New file.
5911         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: New file.
5912         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: New file.
5913         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: New file.
5914         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: New file.
5915         * sysdeps/unix/bsd/osf1/dirstream.h: New file.
5916         * sysdeps/unix/bsd/osf1/alpha/statbuf.h: New file.
5917         * sysdeps/unix/bsd/osf1/direct.h: New file.
5918         * sysdeps/unix/bsd/osf1/dirstream.h: New file.
5919         * sysdeps/unix/bsd/osf1/Makefile: New file, defining LDFLAGS.
5920
5921         * sysdeps/unix/ioctls-tmpl.c [__osf1__ && __alpha__]: Clean up the
5922         ioctls that we get for an Alpha running OSF/1.
5923
5924         * sysdeps/unix/common/glue-ctype.c: Add code for HAVE__LOCP.
5925         (main): If new macro TABLE_NAME is defined, use that for the name
5926         of the array we're writing out, rather than what's defined in TABLE.
5927         * sysdeps/unix/common/configure.in (AC_HAVE_FUNCS): Add `_locp'.
5928
5929         * sysdeps/unix/bsd/osf1/sigaction.h: Add SA_ONSTACK, SA_RESTART,
5930         and SA_DISABLE.
5931         * sysdeps/alpha/setjmp.S: Add .end directive.
5932
5933         * time/sys/time.h (struct timeval): Make members TV_SEC and
5934         TV_USEC be `int', not `long', since it won't hurt other hosts, but
5935         kills the Alpha.
5936         * resource/sys/resource.h (struct rusage): Make all non-timeval
5937         members be `long', not `int'.
5938
5939         * sysdeps/alpha/strlen.c (strlen): Go from 0 to 7, not 3, since
5940         there are 8 bytes in a long on the Alpha.  Check for '\0' after
5941         checking for C in initial byte-by-byte loop.
5942         * sysdeps/alpha/strchr.c (strchr): Likewise. Shift out to 64 when
5943         setting CHARMASK.
5944         * sysdeps/alpha/memchr.c (memchr): Likewise.  Return NULL if we
5945         didn't find it in N characters, or N == 0.  Declare CP to be an
5946         unsigned char*.
5947
5948         * sysdeps/alpha/Makefile: Add divrem stuff.
5949         * sysdeps/alpha/DEFS.h: New file.
5950         * sysdeps/alpha/divrem.m4: New file.
5951         * sysdeps/alpha/macros.m4: New file.
5952         * sysdeps/alpha/Dist: Add .S files, divrem.m4, macros.m4, and DEFS.h.
5953
5954         * sysdeps/unix/bsd/osf1/alpha/vhangup.S: New file.  (Only a
5955         temporary workaround, until we figure out how to deal with the
5956         SYS_ult syscalls better.)
5957         * sysdeps/unix/bsd/osf1/alpha/killpg.S: Likewise.
5958         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
5959         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
5960         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
5961         * sysdeps/unix/bsd/osf1/alpha/recv.S: Likewise.
5962         * sysdeps/unix/bsd/osf1/alpha/send.S: Likewise.
5963
5964         * sysdeps/alpha/__math.h (__copysign): Add __CONSTVALUE.
5965         * sysdeps/alpha/__copysign.c: Define __NO_MATH_INLINES.
5966         * sysdeps/alpha/fabs.c: Likewise.
5967
5968 Wed Dec 22 17:55:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5969
5970         * crypt/*: New version from glad.
5971
5972         * sysdeps/unix/sysv/sysv4/Dist: Add __getpgid.c and __setpgid.c.
5973
5974         * dirent/Makefile (headers): Define; include dirent.h & dirstream.h.
5975
5976 Tue Dec 21 14:24:38 1993  Brendan Kehoe  (brendan@zen.org)
5977
5978         * sysdeps/unix/sysv/sysv4/i386/statbuf.h (struct stat): Add
5979         missing member ST_FSTYPE.  Fixup types on various members to make
5980         this properly reflect what the system has.
5981
5982         * misc/ioctl.c (ioctl): Declare 2nd arg to be unsigned long int to
5983         match the change in ioctl.h.
5984
5985 Tue Dec 21 00:01:01 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5986
5987         * Version 1.06.8.
5988
5989         * dirent/dirent.h (struct dirent): Add `d_reclen'; make `d_namlen'
5990         an `unsigned short int' instead of `size_t'.
5991         (DIR): Move typedef to sysdep file dirstream.h.
5992         * sysdeps/unix/dirstream.h: New file, broken out of dirent.h.
5993         * sysdeps/stub/dirstream.h: New file.
5994         * sysdeps/unix/bsd/dirstream.h: New file.
5995         * sysdeps/unix/bsd/readdir.c: New file.
5996
5997 Mon Dec 20 23:29:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5998
5999         * sysdeps/unix/start.c: Include <sysdep.h>.
6000         * sysdeps/unix/sysv/sysv4/i386/start.c: File removed.
6001
6002 Sat Dec 18 01:37:25 1993  Brendan Kehoe  (brendan@zen.org)
6003
6004         * sysdeps/unix/sysv/sysv4/i386/start.c: New file.  Same as
6005         sysdeps/unix/i386/start.c, but defines NO_UNDERSCORES.
6006
6007         * sysdeps/unix/sysv/sysv4/waitflags.h: New file, with non-standard
6008         WEXITED and WTRAPPED macros defined.
6009         * sysdeps/unix/sysv/sysv4/__waitpid.c: New file.
6010         * sysdeps/unix/sysv/sysv4/siginfo.h: New file.
6011         * sysdeps/unix/sysv/sysv4/__waitid.S: New file.
6012         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Mention __waitid.
6013         * sysdeps/unix/sysv/sysv4/pipestream.c: New file, to avoid having
6014         NO_WAITPID set.
6015         * sysdeps/unix/sysv/sysv4/Dist: Added __waitid.S and siginfo.h.
6016
6017         * sysdeps/unix/sysv/sysv4/__getpgid.c: New file.
6018         * sysdeps/unix/sysv/sysv4/__setpgid.c: New file.
6019         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Add them.
6020
6021         * sysdeps/unix/sysv/sysv4/__getpgrp.c (__getpgrp): It's the 0th
6022         subcall for getpgrp, not 4th.
6023         * sysdeps/unix/sysv/sysv4/__setpgrp.c (__setpgrp): Likewise, it's
6024         the 1st, not the 5th.
6025
6026 Fri Dec 17 15:05:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6027
6028         * misc/sys/ioctl.h (__ioctl, ioctl): Make second arg `unsigned
6029         long int' instead of `int' (4.4 uses unsigned long).
6030
6031         * string/string.h (strcat): Parameters names were swapped.
6032
6033 Fri Dec 17 01:18:27 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6034
6035         * Made the Hurd error system 0x10 again; this undid many
6036         of the changes of Nov 23.  Affected all the err_ files in
6037         mach; recreated sysdeps/hurd/err_hurd.sub; changed back
6038         err_kern.sub to have the Unix error codes. 
6039
6040 Thu Dec 16 15:40:25 1993  Brendan Kehoe  (brendan@zen.org)
6041
6042         * stdio/temptest.c (main): Remove the files we created once we're
6043         done.  Make return type int, and exit with 0 status.
6044
6045         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Fix typo of
6046         extra comma in sprintf call.
6047
6048 Tue Dec 14 13:08:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6049
6050         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Rewrote main
6051         logic.  Removed INFOS structure array and replaced it with
6052         INDICES, an array of size_t.  Removed INFO ptr and replaced it
6053         with IDX, which points to either elt of INDICES.  Rewrite main
6054         loop to increment *IDX until it hits 62*62*62.  Construct file
6055         name by dividing out two powers of 62 from *IDX and using the
6056         modulus as an index into `letters'.
6057
6058         * sysdeps/unix/common/Makefile (sysdep_routines): Only add
6059         bsd_getgrp here if the sysdep __getgrps.? chosen is unix/common's.
6060
6061         * posix/fnmatch.h: #undef FNM_PATHNAME, FNM_NOESCAPE, and
6062         FNM_PERIOD before defining them.
6063
6064         * time/__tzset.c (compute_change): In M case when tallying time in
6065         months before specified month, count to RULE->m - 1, not ...+1.
6066
6067         * manual/Makefile (realclean): Remove index, aux, and toc files
6068         created by TeX.
6069
6070 Mon Dec 13 19:33:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6071
6072         * sysdeps/posix/__wait3.c: Use __WAIT_STATUS_DEFN in place of
6073         __WAIT_STATUS in arg type.
6074
6075 Wed Dec  8 15:59:45 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6076
6077         * malloc/memalign.c: Set L->next and _aligned_blocks only when L
6078         is newly allocated, not when we reuse an old one.
6079
6080 Tue Dec  7 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6081
6082         * io/fcntl.c: Replace function_alias use with:
6083         [HAVE_GNU_LD]: Use symbol_alias.
6084         [! HAVE_GNU_LD]: Define fcntl to use stdarg and call __fcntl.
6085
6086 Mon Dec  6 17:50:05 1993  Brendan Kehoe  (brendan@zen.org)
6087
6088         * sysdeps/unix/i386/sysdep.S (syscall_error): Fix labels so
6089         they'll compile.
6090
6091         Make the Solaris port work dammit.
6092         * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h (struct stat): Make
6093         ST_DEV member be unsigned long, not short.
6094
6095         * sysdeps/unix/sysv/sysv4/solaris2/direct.h: New file, same as
6096         sysv4/direct.h but uses strlen instead of the offset-based
6097         computation of the name length, since that doesn't reliably work
6098         for Solaris.
6099
6100         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h (PSEUDO): Don't move
6101         %g0 into %o0, since that will clobber the real return value. Take
6102         out the retl at the end, why in the world did I put it in there?
6103
6104 Mon Dec  6 17:27:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6105
6106         * Makefile ($(objpfx)crt1.o): Add target to $(objpfx)Mcrt1.o
6107         rule; generalize commands.
6108         (install-lib): Add crt1.o.
6109
6110         * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Use -x flag to
6111         fgrep to match only entire lines.
6112
6113 Sun Dec  5 01:53:43 1993  Brendan Kehoe  (brendan@zen.org)
6114
6115         * sysdeps/unix/bsd/ultrix4/mips/start.S: New file.
6116         * sysdeps/unix/bsd/ultrix4/mips/start.c: Deleted.
6117
6118 Thu Dec  2 18:29:01 1993  Brendan Kehoe  (brendan@zen.org)
6119
6120         * sysdeps/unix/bsd/ultrix4/mips/sysdep.S: Don't use dollar signs
6121         with the errnos.
6122
6123         * sysdeps/stub/{__wait, __wait3, __wait4}.c,
6124         sysdeps/unix/bsd/bsd4.4/{__wait, __wait3}.c,
6125         sysdeps/unix/bsd/sun/sunos4/__wait4.c,
6126         sysdeps/posix/{__wait, __wait3}.c, posix/{wait, wait3, wait4}.c: Use
6127         __WAIT_STATUS_DEFN, not __WAIT_STATUS.
6128
6129         * sysdeps/posix/killpg.c (killpg): Make arg PGRP __pid_t, not pid_t.
6130         * sysdeps/stub/killpg.c (killpg): Likewise.
6131
6132         * setjmp/longjmp.c (longjmp): Only use __NORETURN if !HAVE_GNU_LD.
6133         * setjmp/_longjmp.c (_longjmp): Likewise.
6134
6135 Thu Dec  2 17:31:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6136
6137         * posix/sys/wait.h (__WAIT_STATUS_DEFN): Define new macro.
6138
6139         * Makerules (+install): Variable removed.
6140         (install-bin, install-lib, install-data, install-headers,
6141         install-others): New targets.
6142         (install-no-libc.a): Depend on them instead of $(+install).
6143
6144         * Makefile (+subdir_targets): Add
6145         install-{no-libc.a,bin,lib,data,headers,others}.
6146         (install-no-libc.a): Don't depend on subdir_install.
6147
6148 Thu Dec  2 17:14:39 1993  Brendan Kehoe  (brendan@zen.org)
6149
6150         * sysdeps/ieee754/__isnan.c (__isnan): Return __CONSTVALUE, to
6151         match declaration in math/math.h.
6152
6153 Thu Dec  2 15:48:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6154
6155         * time/africa, time/antarctica, time/asia, time/australasia,
6156         time/emkdir.c, time/europe, time/ialloc.c, time/northamerica,
6157         time/pacificnew, time/private.h, time/solar87, time/solar88,
6158         time/southamerica time/systemv, time/tzfile.h, time/zdump.c,
6159         time/zic.c: New data and code from ADO.
6160         * time/Makefile (tzfiles): Added backward.
6161         * time/backward: New file from ADO.
6162
6163         * locale/C-ctype_ct.c: Remove _ISspace bit from BS (8).
6164
6165 Wed Dec  1 00:01:30 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6166
6167         * mach/err_kern.sub: Frob around lack of GNU ld.
6168
6169         * mach/errsystems.awk: The declaration of __mach_error_systems
6170         should not be static, but it should be const.
6171
6172         * sysdeps/mach/hurd/errlist.awk (BEGIN): Deal with the case
6173         where you don't have GNU ld.
6174
6175         * sysdeps/mach/hurd/Makefile: Define mib_hacks to make.
6176
6177 Tue Nov 30 23:24:07 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6178
6179         * Makefile: install-no-libc.a needs to depend on subdir_install.
6180
6181 Mon Nov 29 16:21:38 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6182
6183         * sysdeps/mach/_strerror.c: Include <mach/errorlib.h>.
6184
6185         * hurd/setuids.c: Put entire file inside #ifndef MIB_HACKS; 
6186         it uses the old auth_makeauth call.
6187
6188         * hurd/__setauth.c: Put entire file inside #ifndef MIB_HACKS;
6189         it depends on cthreads to compile, which is not yet integrated.
6190
6191         * hurd/hurdpath.c (__hurd_path_lookup): cast to avoid GCC warning.
6192
6193 Wed Nov 24 00:59:15 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6194
6195         * hurd/Makefile: Commented out hurdauth; recent changes to
6196         auth.defs prevent it from working now.
6197
6198         * mach/mach_error_string.c (do_compat): Change name to
6199         __mach_error_map_compat; make it no longer static.
6200         (mach_error_type, mach_error_string_int): Use 
6201         __mach_error_map_compat instead of do_compat.
6202         * sysdeps/mach/_strerror.c: Use __mach_error_map_compat.
6203
6204         * mach/devstream (output/write_some): Cast fourth argument to
6205         device_write_inband to char * to avoid warning.
6206         (output): Call to write_some mentioned variable `start' from
6207         a previous version of the function; changed this to f->__buffer.
6208
6209 Tue Nov 23 23:16:13 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6210
6211         [ The net effect of the following change is to eliminate error
6212         systems which are specific to single-server Mach systems, and
6213         to put the Hurd errors where the Unix errors were. ]
6214         * mach/{err_bootstrap.sub,err_ipc.sub,err_server.sub,err_us.sub}:
6215         None of these are used for the Hurd; we shouldn't pretend that
6216         they are meaningful in our environment.  The files have been
6217         renamed to equivalent names with an equal sign prepended; this
6218         will inhibit distribution and prevent the Makefile from looking at
6219         them. 
6220         * mach/err_kern.sub: Deleted the definitios of err_codes_unix;
6221         get the strings from _sys_errlist.  Rename `unix' to `hurd'.
6222         Rename err_os_sub to be err_kern_sub to match what errsystems.awk
6223         expects.
6224         * sysdeps/mach/hurd/err_hurd.sub: Deleted this file.
6225         * sysdeps/mach/hurd/errnos.awk: Changed definition of _HURD_ERRNO
6226         to be correct.
6227
6228         * sysdeps/mach/hurd/Makefile: use gawk, not awk.
6229
6230         * mach/errsystems.awk: Generally rewrote the printf.  It's now
6231         closer to Roland's original, but without the $i mistake at all,
6232         in any form.
6233
6234 Tue Nov 23 20:21:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6235
6236         * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
6237         bsd/ultrix4/mips,bsd/vax}/sysdep.S: Define _ERRNO_H before
6238         including <errnos.h>; otherwise <errnos.h> does not define most
6239         macros (importantly, EAGAIN!).
6240
6241 Tue Nov 23 12:43:38 1993  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
6242
6243         * mach/errsystems.awk: $i is not an index; make i a variable and
6244         increment it properly.  Don't call `err_get_system'; use the
6245         system number as the index in the array directly. 
6246
6247         * mach/errorlib.h: Added `const' in all the right places.
6248         * sysdeps/mach/hurd/err_hurd.sub: Cast _sys_errlist to
6249         the right type.  Better to declare it right in stdio/stdio.h, but
6250         I don't dare change that file lest Roland call me a twit.
6251         * mach/err_us.sub: Add more brackets to initializer to shut GCC up.
6252
6253         * sysdeps/mach/hurd/err_hurd.sub: Delete keyword `const'; this
6254         is taken care of by the `#define static static const' found in
6255         errsystems.c as created by mach/errsystems.awk.
6256         * mach/errsystems.awk: Ditto for declaration of __mach_error_systems.
6257
6258         * sysdeps/mach/hurd/err_hurd.sub: Change <errnos.h> to <errno.h>;
6259         errnos.h doesn't define most stuff unless it is included from errno.h.
6260
6261         * mach/mach_error_string.c (mach_error_string_int): Delete unused
6262         variable `err_str'.
6263
6264         * mach/mach_error_string.c (do_compat): Declare to be void.
6265         (mach_error_string,mach_error_type, mach_error_string_int):
6266         Declare return type as const char *.
6267         * mach/mach_error.h: Change declarations to match.
6268
6269         * mach/errsystems.awk: The array that split creates is origin 1,
6270         not origin 0; fixed loop to match.
6271
6272         * sysdeps/mach/hurd/errnos.awk: Ernst's awk doesn't grok 
6273         backslash-newline inside strings.  
6274
6275 Sat Nov 20 19:02:25 1993  Brendan Kehoe  (brendan@zen.org)
6276
6277         * math/__finite.c (__finite): Return __CONSTVALUE, to match math.h.
6278         * math/__scalb.c (__scalb): Likewise.
6279         * math/copysign.c (copysign): Likewise.
6280         * math/drem.c (drem): Likewise.
6281         * math/expm1.c (expm1): Likewise.
6282         * math/finite.c (finite): Likewise.
6283         * math/infnan.c (infnan): Likewise.
6284         * math/isinf.c (isinf): Likewise.
6285         * math/isnan.c (isnan): Likewise.
6286         * math/logb.c (logb): Likewise.
6287         * math/rint.c (rint): Likewise.
6288         * math/scalb.c (scalb): Likewise.
6289         * sysdeps/generic/atan.c (atan): Likewise.
6290         * sysdeps/ieee754/__copysign.c (__copysign): Likewise.
6291         * sysdeps/ieee754/__drem.c (__drem): Likewise.
6292         * sysdeps/ieee754/__isinf.c (__isinf): Likewise.
6293         * sysdeps/ieee754/__logb.c (__logb): Likewise.
6294         * sysdeps/ieee754/ldexp.c (ldexp): Likewise.
6295         * sysdeps/ieee754/log10.c (log10): Likewise.
6296
6297         * setjmp/_longjmp (_longjmp): Add __NORETURN.
6298         * setjmp/longjmp (longjmp): Likewise.
6299
6300 Thu Nov 18 04:16:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6301
6302         * string/strerror.c (strerror): Call _strerror_internal to do the
6303         work, passing it a scratch buffer.
6304         * stdio/perror.c: Likewise.
6305         * string/Makefile (routines): Add _strerror.
6306         * sysdeps/generic/_strerror.c (_strerror_internal): New file.
6307
6308         * configure.in (config.status): Make it pass its args to configure.
6309
6310 Thu Nov 18 03:52:32 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6311
6312         * stdio/__vfscanf.c (__vfscanf): Put the floating point cases
6313         (e,E,f,g,G) inside #ifndef MIB_HACKS; roland thikgs strtod crashes
6314         the compiler.  Wheee.
6315
6316 Thu Nov 18 03:21:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6317
6318         * errno.h [__USE_GNU__]: Declare program_invocation_name and
6319         program_invocation_short_name.
6320
6321 Thu Nov 18 00:07:37 1993  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
6322
6323         * sysdeps/mach/hurd/start.c (start1): Don't add one to
6324         the return value of split_args; it counts them just fine by
6325         itself.  Do add one when sizing the arrays.
6326
6327 Mon Nov 15 00:19:48 1993  Noel Cragg  (noel@geech.gnu.ai.mit.edu)
6328
6329         * time/mktime.c: add TIMES_THROUGH_SEARCH variable to make sure
6330         that we don't get caught in an infinite loop (would be bad,
6331         indeed, for a library routine).
6332
6333 Sun Nov 14 18:48:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6334
6335         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Use
6336         `__attribute__', not `__attributes__'.
6337         Test __GNUC_MINOR__ < 6, not < 5.
6338
6339 Wed Nov 10 05:39:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6340
6341         * sysdeps/unix/morecore.c: Only declare sbrk #ifdef __GNU_LIBRARY__.
6342         Cast its return value.
6343
6344         * sysdeps/unix/bsd/m68k/syscall.S: Use movel in place of moveal.
6345
6346         * configure.in (signed size_t check): Don't use AC_DEFINE; do it
6347         by hand and insert -U__SIZE_TYPE__ before -D.
6348
6349         * posix/unistd.h: Declare syscall.
6350
6351         * sysdeps/m68k/fpu/__math.h (__isnan, __isinf): Use __CONSTVALUE
6352         in prototypes.
6353
6354         * configure.in (Makefile): Write ARCH=`pwd`, rather than
6355         substituting in the directory name at configure time.
6356
6357         * sysdeps/mach/i386/syscall.S: New file.
6358
6359 Tue Nov  9 06:29:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6360
6361         * configure.in (os = netbsd* | 386bsd*): base_os=unix/bsd/bsd4.4.
6362         Set --with-gnu-{ld,as} implicitly when base_os is bsd4.4.
6363
6364         * Version 1.06.7.
6365
6366         * misc/Makefile (routines): Add syscall.
6367         * sysdeps/unix/syscall.S, sysdeps/stub/syscall.c,
6368         sysdeps/unix/bsd/sun/m68k/syscall.S, sysdeps/unix/bsd/m68k/syscall.S,
6369         sysdeps/unix/i386/syscall.S: New files.
6370         * sysdeps/unix/bsd/hp/m68k/sysdep.h (DO_CALL): First arg
6371         is syscall number, not name.
6372         (PSEUDO): Pass POUND (SYS_ify (syscall_name)) to DO_CALL.
6373         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h (DO_CALL, PSEUDO):
6374         Likewise.  Also, do movel into d0 before linkw, so the argument
6375         could conceivably pop the stack.
6376         * sysdeps/unix/bsd/hp/m68k/__brk.S: Pass complete number to DO_CALL.
6377
6378         * sysdeps/unix/sysv/Dist: sys_getdents.S was renamed s_getdents.S.
6379
6380 Thu Nov  4 01:23:59 1993  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
6381
6382         * string/stpncpy: Fix typo; according to gnu-stabs.h the name
6383         inside the DEFUN should be the *non* __ version.
6384         * sysdeps/generic/__stpncpy.c: Missing declaration of s.
6385
6386 Wed Nov  3 09:35:30 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6387
6388         * sysdeps/unix/Makefile ($(objpfx)errlist.c): Conditionalize these
6389         rules to be used only when errlist.c is otherwise a stub.
6390
6391 Fri Oct 29 17:29:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6392
6393         * string/stpncpy.c: New file.
6394         * sysdeps/generic/__stpncpy.c: New file.
6395         * string/Makefile (routines): Add stpncpy and __stpncpy.
6396         * string/string.h [__USE_GNU__]: Declare them.
6397
6398 Thu Oct 28 17:13:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6399
6400         * sysdeps/unix/errnos-tmpl.c (DO): If NAME is "EWOULDBLOCK",
6401         write "#define EWOULDBLOCK EAGAIN" and change NAME to
6402         "EWOULDBLOCK_sys".
6403         * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
6404         bsd/ultrix4/mips,bsd/vax}/sysdep.S [EWOULDBLOCK_sys]: Translate
6405         EWOULDBLOCK_sys into EAGAIN.
6406         * Makefile (distribute): Add move-if-change.
6407         * move-if-change: New file.
6408
6409 Tue Oct 26 18:19:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6410
6411         * misc/sys/cdefs.h: Define __NORETURN and __CONSTVALUE.
6412         For GCC 2.5 and later, use __attributes__ (({volatile,const})).
6413         * stdlib/stdlib.h: Don't define either here.
6414         * math/math.h: Likewise.
6415         * posix/unistd.h: Likewise.
6416         * time/time.h: Likewise.
6417         * stdio/stdio.h: Likewise.
6418         * setjmp/setjmp.h: Likewise.
6419
6420         * posix/sys/wait.h (__WAIT_STATUS): Use union hack defn for GCC
6421         2.4 and up (testing __GNUC__ and __GNUC_MINOR__).
6422
6423         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Don't include <limits.h>.
6424
6425         * Makerules [inhibit-sysdep-asm] 
6426         (open-check-inhibit-asm, close-check-inhibit-asm): New variables.
6427         ($(+sysdir_pfx)sysd-rules): Use them around .s and .S rules.
6428         Depend on existing sysdep makefiles.
6429
6430 Mon Oct 25 15:56:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6431
6432         * sysdeps/mach/hurd/killpg.c: Include <sys/types.h> for pid_t.
6433
6434         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Take new arg
6435         STREAMPTR.  When non-nil, use __open with O_EXCL to test for
6436         existence, and set *STREAMPTR to new stream on returned fd.
6437         * stdio/stdio.h: Update prototype.
6438         * sysdeps/stub/tempname.c: Here too.
6439         * stdio/tmpfile.c: Pass &F to __stdio_gen_tempname instead of
6440         using fopen.
6441         * stdio/tmpnam.c: Pass extra NULL arg.
6442         * stdio/tempnam.c: Likewise.
6443
6444         * configure.in (switches): Only put --os-{release,version} here.
6445         (config.status): Write $configure_args in place of $config $switches.
6446
6447         * signal/Makefile (routines): Renamed sigaltstack to sigaltstk.
6448         * sysdeps/stub/sigaltstack.c: Renamed to sigaltstk.c.
6449         * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: Renamed to sigaltstk.S.
6450         * sysdeps/unix/sysv/sys_getdents.S: Renamed to s_getdents.S.
6451         * sysdeps/unix/sysv/Makefile (sysdep_routines): Changed reference.
6452
6453 Fri Oct 22 03:47:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6454
6455         * malloc/realloc.c [MEMMOVE_MISSING]: Test this to use safe_bcopy.
6456         [emacs]: Don't define safe_bcopy.
6457
6458         * time/zdump.c, time/europe: New versions from ADO.
6459
6460         * Rules (dont_distribute): Export this variable.
6461         (subdir_echo-distinfo): Echo its value for +nodist+.
6462
6463 Thu Oct 21 15:58:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6464
6465         * sysdeps/posix/__dup2.c: Include <limits.h>.
6466         [OPEN_MAX]: Fail with EBADF if FD2>=OPEN_MAX.
6467
6468         * sysdeps/unix/Makefile (sys/param.h): Conditionalize all this
6469         code to happen only when there is no sysdep sys/param.h.
6470
6471 Wed Oct 20 03:35:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6472
6473         * Makerules (make-dummy-dep): Change to `ln $(objpfx)dummy.dep $@'.
6474         ($(objpfx)dummy.dep): Create new file containing comment.
6475         ($(objpfx)%.dep: $(objpfx)%.s): Depend on $(objpfx)dummy.dep.
6476         ($(+sysdir_pfx)sysd-rules): Likewise in generated rule.
6477
6478 Mon Oct 18 04:22:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6479
6480         * signal/signal.h (killpg): Make PGRP arg pid_t.
6481         * sysdeps/posix/killpg.c (killpg): Likewise.
6482         * sysdeps/stub/killpg.c (killpg): Here too.
6483
6484         * posix/glob/configure.in: Use AC_HAVE_HEADERS instead of
6485         AC_MEMORY_H and AC_UNISTD_H; omit AC_USG (not needed).
6486
6487         * Rules (generated): New target.
6488
6489         * Makefile (subdirs): Use filters to put mach and hurd first in
6490         the list if they are in it at all.
6491         * Makerules (before-compile): Reorder similarly, matching any
6492         generated mach or hurd files.
6493
6494 Fri Oct 15 17:57:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6495
6496         * sysdeps/posix/mk-stdiolim.c [! OPEN_MAX]: Use _POSIX_OPEN_MAX
6497         for FOPEN_MAX value.
6498         [! PATH_MAX]: Use 1024 (twice _POSIX_PATH_MAX) for FILENAME_MAX value.
6499
6500         * Makerules (in-Makerules): Define this variable before including
6501         sysd-Makefile.
6502
6503 Sun Oct 10 14:31:35 1993  Jim Meyering  (meyering@comco.com)
6504
6505         * posix/fnmatch.c [CONFIG_BROKETS]: Include <config.h> only under
6506         this condition, else "config.h".
6507
6508 Tue Oct 05 16:08:39 1993  Jim Meyering  (meyering@comco.com)
6509
6510         * time/mktime.c [CONFIG_BROKETS]: Include <config.h> only under
6511         this condition, else "config.h".
6512
6513 Thu Sep 23 15:14:08 1993  Brendan Kehoe  (brendan@zen.org)
6514
6515         * sysdeps/unix/sysv/sysv4/__dup2.c: New file.
6516
6517 Wed Sep 22 16:58:29 1993  Brendan Kehoe  (brendan@zen.org)
6518
6519         * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h: New file.
6520         * sysdeps/unix/sysv/sysv4/i386: New directory.
6521         * sysdeps/unix/sysv/sysv4/i386/statbuf.h: New file.
6522
6523 Fri Sep 17 04:03:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6524
6525         * Makerules (+make-deps): Put output in temp file and use atomic mv.
6526
6527         * Makerules ($(+sysdir_pfx)sysd-rules): New target, the rule part
6528         of what was in sysd-Makefile.  Include it.
6529         ($(+sysdir_pfx)sysd-Makefile): Do just includes here.  Move the
6530         generated implicit rules to sysd-rules.  Put the output into a
6531         temp file and use atomic mv to final target.
6532         (before-compile): Filter out existing files from value, after
6533         sysd-Makefile but before sysd-rules.
6534
6535 Thu Sep  9 22:28:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6536
6537         * Makefile (%/configure): Copy rule from Make-dist.
6538
6539 Mon Sep  6 19:57:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6540
6541         * Makerules (sources, objects): Move override definitions to
6542         before +depfiles calculation.
6543
6544         * time/{asia,australasia,europe,zdump.c}: New versions from ADO (93e).
6545
6546 Mon Aug 30 13:40:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6547
6548         * string/string.h (memmem): Reverse argument order, to be like strstr.
6549         * sysdeps/generic/memmem.c: Here too.
6550
6551         * dirent/scandir.c: For error return, save errno around closedir.
6552         Call closedir (DP) before returning successfully.
6553
6554 Thu Aug 26 19:26:06 1993  Brendan Kehoe  (brendan@zen.org)
6555
6556         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h: Rewritten to not use
6557         the generic sparc sysdep.h.
6558         (PSEUDO): Use trap 8, not 0. Also just put %g0 in %o0, without
6559         subtracting 1.
6560         (ENTRY): Align on 4, and add a `.type' directive.
6561         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.S: New file.
6562
6563 Fri Aug 20 19:37:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6564
6565         * sysdeps/generic/abort.c: Remove unused variable ABORTING.
6566
6567 Thu Aug 19 17:45:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6568
6569         * Makeconfig [!objdir] [!..] (common-objdir): Set to `.'.
6570
6571 Wed Aug 18 15:10:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6572
6573         * stdio/__vfscanf.c (__vfscanf: number): Reverse sense of
6574         NUMBER_SIGNED conditional in assignment code.
6575
6576 Mon Aug 16 15:49:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6577
6578         * sysdeps/unix/Makefile (syscall.h): Add sed
6579         s/SYS_syscall_basenum/syscall_basenum/g.  SYSCALL_BASENUM is a
6580         macro both defined and used in <syscall.h>; we must undo our
6581         prependation of `SYS_'.
6582
6583         * Version 1.06.6.
6584
6585 Fri Aug 13 16:53:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6586
6587         * stdio/__vfscanf.c: New local variable NUMBER_SIGNED.
6588         (%x, %X, %o, %u): Set it to zero.
6589         (%d, %i): Set it to one.
6590         (number): If NUMBER_SIGNED is set, use strtol and store in ...int*.
6591         If clear, use strtoul an store value in unsigned ...int*.
6592
6593         * malloc/malloc.h: Undo last change (_AIX32).
6594         (memory_warnings): Use const instead of __const in prototype.
6595
6596 Fri Aug 13 00:22:01 1993  John Grabowski  (johng@whiskey.media.mit.edu)
6597
6598         * configure.in (os = osf1*): base_os=unix/bsd.
6599
6600 Thu Aug 12 16:37:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6601
6602         * malloc/valloc.c [__GNU_LIBRARY__ || _LIBC]: Include <stddef.h>
6603         before trying to use size_t to declare __getpagesize.
6604         Include <sys/cdefs.h> before trying to use __P.
6605
6606         * posix/{fnmatch,glob}.c, malloc/malloc.h [HAVE_CONFIG_H]: Include
6607         <config.h> instead of "config.h".  This is so that a compilation
6608         using -I. -I$srcdir will use ./config.h rather than
6609         $srcdir/config.h (which it would do when glob.c was found in $srcdir).
6610
6611         * malloc/malloc.h [_AIX32]: Use !__STDC__ defns of __P, const, __ptr_t.
6612
6613 Mon Aug  9 16:56:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6614
6615         * Makerules (-e check): Don't rely on $(findstring e,$(MAKEFLAGS))
6616         since that also trips for --no-print-directory.
6617         Instead actually see if -e's functionality is taking place.
6618
6619         * malloc/realloc.c: Call _free_internal instead of free in most places.
6620
6621         * configure.in (arg parsing): No spaces around = in eval.
6622
6623         * sysdeps/i386/abort.c: New file.
6624         * stdlib/abort.c: Moved to sysdeps/generic/abort.c.
6625         (abort): Don't try to do stdio cleanup, since we can't guarantee
6626         it anyway.
6627
6628 Fri Aug  6 17:59:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6629
6630         * Makerules ($(+install)): Don't depend on installdirs.
6631         (make-target-directory): New define.
6632         (do-install): Do $(make-target-directory) beforehand.
6633
6634 Tue Aug  3 02:22:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6635
6636         * sysdeps/stub/sys/reboot.h: New file.
6637         * sysdeps/unix/bsd/sys/reboot.h: New file, snarfed from 4.4.
6638         * misc/Makefile (headers): Add sys/reboot.h.
6639
6640         * stdio/stdio.h (__io_{read,write,seek,close,fileno}): Renamed to
6641         __io_*_fn, so as not to conflict with the Hurd mig stubs.
6642         * internals.c: Changed uses.
6643
6644         * sysdeps/unix/bsd/signum.h (SIGINFO): Define as 29.
6645
6646         * Makerules (+includes): Don't set this here.
6647         * Makeconfig (+includes): Put $(+sysdep-includes) in the value here.
6648
6649         * posix/unistd.h [__USE_MISC]: Declare mktemp and mkstemp.
6650
6651 Mon Aug  2 16:59:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6652
6653         * malloc/valloc.c: Move getpagesize goop to before malloc.h.
6654         [_LIBC]: Test this as well as __GNU_LIBRARY__ (either one) to use
6655         __getpagesize instead of "getpagesize.h".
6656
6657 Sun Aug  1 16:55:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6658
6659         * configure.in (arg parsing): For `--with-foo=bar', do
6660         "with_foo='bar'".  For `--with-fnord', do "with_fnord=yes".
6661         * sysdeps/mach/configure: New file, groks `--with-mach=DIR'.
6662
6663 Fri Jul 30 00:01:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6664
6665         * configure.in (os = gnu*): Set $base_os, not $os, to mach/hurd.
6666
6667 Thu Jul 29 17:46:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6668
6669         * ctype/ctype.h (__isctype): Don't test !=0, to avoid possible
6670         extra test insn.
6671
6672 Sun Jul 25 22:19:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6673
6674         * setjmp/setjmp.h [! __FAVOR_BSD] (_longjmp): Define as longjmp.
6675
6676 Thu Jul 22 14:57:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6677
6678         * sysdeps/unix/bsd/osf1/sigaction.h: New file.
6679
6680         * sysdeps/stub/signum.h: Deansideclized.
6681         * sysdeps/stub/pipestream.c (pclose): Test STREAM->__ispipe
6682         instead of __ispipe (STREAM).
6683         * sysdeps/stub/__wait3.c: Fix arg types.
6684         * sysdeps/stub/__ioctl.c: Add missing close paren.
6685         * sysdeps/stub/__getpgsz.c: Include <stddef.h> for size_t.
6686         * sysdeps/stub/__get[gu]id.c: Include <sys/types.h>; fix return type.
6687         * sysdeps/stub/__set[gu]id.c: Include <sys/types.h>; fix arg type.
6688         * sysdeps/stub/__mknod.c: Include <sys/types.h>; fix arg types.
6689
6690         * sysdeps/generic/termbits.h (INLCR, ISTRIP): Fixed typo'd values.
6691
6692         * stdio/stdio.h (vprintf): Fix last arg type to __gnuc_va_list.
6693         * stdio/vprintf.c (vprintf): Here too.
6694
6695         * malloc/malloc.c (malloc) [SUNOS_LOCALTIME_BUG]: Put this crap
6696         after hook and initialization.
6697
6698         * stdio/stdio.h (__validfp): Use a little anonymous struct to find
6699         the real stream ptr from in glue stream.  It used to rely on using
6700         `((int *) STREAM)[1]'; but that assumes no struct padding, and
6701         there will be some when int is 32 bits and pointers are 64.
6702
6703         * malloc/mtrace.c: Use %lx instead of %x for `size_t' formats.
6704
6705 Wed Jul 21 18:20:41 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
6706
6707         * malloc/malloc.c (malloc): Handle SUNOS_LOCALTIME_BUG.
6708
6709 Wed Jul 21 16:42:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6710
6711         * time/Makefile (extra-objs): Remove gratuitous - in `z.%'.
6712
6713         * Makefile [+gnu-stabs] (generated): Add $(objpfx)munch-init.c.
6714         (distclean): Also remove sysd-Makefile and sysd-dirs in $(objpfx).
6715         (distclean) [objdir]: Also remove $(objpfx)Makefile.
6716
6717         * sysdeps/posix/Makefile (generated): Add $(common-objpfx)mk-stdiolim.
6718         (generated, before-compile): Take defns out of ifeq ($(subdir),posix).
6719
6720         * sysdeps/unix/common/Makefile (generated): Include ctype-glue.c,
6721         not glue-ctype.c.
6722
6723         * sysdeps/unix/configure (unix_generated): New variable; collect
6724         names of created files in it.
6725         (config_vars): Write an assignment for `unix-generated' to that list.
6726         * sysdeps/unix/Makefile (generated): Append $(unix-generated)
6727         (with either $(objpfx) or $(sysdep_dir)/unix/ prepended to each file).
6728
6729         * Makefile (clean): Pass no_deps=t to subdir_clean make.
6730
6731 Sun Jul 18 21:42:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6732
6733         * malloc/malloc.c (malloc): After getting more core, recompute
6734         BLOCK before adding to _heapinfo[BLOCK].free.size.
6735
6736 Fri Jul 16 16:32:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6737
6738         * stdlib/Makefile (generated): Prepend $(objpfx).
6739         * sysdeps/unix/sysv/Makefile (generated): Likewise.
6740
6741         * sysdeps/posix/mktemp.c: Return when stat fails with ENOENT, not
6742         when it succeeds.
6743
6744 Wed Jul 14 14:51:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6745
6746         * locale/localeconv.c: Fix copying notice to LGPL.
6747
6748 Mon Jul 12 21:58:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6749
6750         * malloc/mcheck.c (reallochook): Set HDR->magic to MAGICWORD.
6751
6752 Mon Jul  5 15:55:08 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
6753
6754         * malloc/realloc.c (memmove): Swap the args when calling safe_bcopy.
6755
6756 Thu Jul  1 16:26:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6757
6758         * malloc/malloc.c [_LIBC] (_malloc, _free, _realloc): Define these
6759         functions to just call malloc, free, and realloc, respectively.
6760
6761 Wed Jun 30 16:42:10 1993  Torbjorn Granlund  (tege@gnu.ai.mit.edu)
6762
6763         * sysdeps/generic/memcmp.c (memcmp_bytes): New function for
6764         little endian machines.
6765         (memcmp_common_alignment, memcmp_not_common_alignment): Rework
6766         code computing return values.
6767
6768 Wed Jun 30 14:42:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6769
6770         * sysdeps/unix/Makefile (local_lim.h): Only generate local_lim.h
6771         if the sysdep version would be stub.
6772
6773         * sysdeps/unix/mk-local_lim.c: #include <stdio.h> before all else.
6774
6775         * configure.in (config_{machine,vendor,os}): Store config.sub's
6776         output in these new variables.
6777         (machine, vendor, os): Set these from those.
6778         (config-name.h, config.make): Write $config_* (the original values
6779         from config.sub).
6780
6781         * sysdeps/unix/sysv/sysv4/pgrpsys.S: Add arg count (3).
6782
6783 Tue Jun 29 02:47:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6784
6785         * Version 1.06.4.
6786
6787 Mon Jun 28 00:37:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6788
6789         * stdio/internals.c (__stdio_check_funcs): New function, broken out
6790         of init_stream.
6791         (init_stream): Call it.
6792         * sysdeps/posix/pipestream.c (popen): Call __stdio_check_funcs
6793         before frobnicating STREAM's functions.
6794
6795         * sysdeps/posix/pipestream.c (pclose): Free C, our data structure,
6796         not STREAM->__cookie after it's been restored.
6797
6798         * sysdeps/generic/strchr.c: Check for '\0' as well as C, in initial
6799         byte-by-byte loop.
6800
6801         * conf/portability.h: #undef BSD.
6802
6803 Sun Jun 27 23:46:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6804
6805         * sysdeps/unix/bsd/m68k/__wait.S [__motorola__]: Use Motorola syntax.
6806         * sysdeps/unix/bsd/m68k/sysdep.S: Likewise.
6807         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
6808         * sysdeps/m68k/__longjmp.c (__longjmp) [__motorola__]: Use
6809         Motorola syntax in jmp insn.
6810
6811 Fri Jun 25 16:17:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6812
6813         * sysdeps/{stub,posix,unix/sysv/sysv4}/__sysconf.c (__sysconf):
6814         For _SC_TZNAME_MAX, just return __tzname_max ().
6815         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Define __sysconf, not
6816         sysconf.  For _SC_TZNAME_MAX, just jump to __tzname_max.
6817
6818         Undo June 21 change that made __tzname_max a variable
6819         and expected TZNAME_MAX to sometimes be defined.
6820         POSIX.1 does not require that it be defined; sysconf is enough.
6821         * time/time.h (__tzname_max): Declare as a function.
6822         * posix/posix1_lim.h: Don't include <tzname_max.h>.
6823         * sysdeps/stub/tzname_max.h: File removed.
6824         * time/Makefile (headers): Remove tzname_max.h.
6825         (distribute): Remove make-tzlim.c.
6826         (extra-objs): Remove make-tzlim.o and make-tzlim.
6827         ($(common-objpfx)tzname_max.h): Target removed.
6828         * time/make-tzlim.c: File removed.
6829         * time/__tzset.c (__tzname_cur_max): Define this variable instead
6830         of __tzname_max.
6831         (__tz_compute): Set __tzname_cur_max, not __tzname_max.
6832         (__tzname_max): New function.
6833         * time/tzfile.c (compute_tzname_max): Set __tzname_cur_max, not
6834         __tzname_max.
6835
6836         * malloc/malloc.h [_MALLOC_INTERNAL] [! (_LIBC || STDC_HEADERS || USG)]
6837         (memmove): Don't define.
6838         * malloc/realloc.c [!_LIBC && !STDC_HEADERS && !USG] (safe_bcopy):
6839         New static function.
6840         (memmove): Define to safe_bcopy.
6841
6842 Wed Jun 23 15:10:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6843
6844         * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: New file, #include sysv4 file.
6845         * sysdeps/unix/sysv/sco3.2.4/Dist: New file, list pgrpsys.S.
6846
6847 Tue Jun 22 02:44:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6848
6849         * sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Use
6850         pgrpsys instead of sco_pgrp.
6851         * sysdeps/unix/sysv/sco3.2.4/{Dist,sco_pgrp.S}: Files removed.
6852         * sysdeps/unix/sysv/sco3.2.4/__{getpgrp,setpgrp,setsid}.c: Just
6853         include the respective unix/sysv/sysv4 files.
6854
6855         * sysdeps/unix/sysv/sysv4/pgrpsys.S: New file.
6856         * sysdeps/unix/sysv/sysv4/__getpgrp.c: New file.
6857         * sysdeps/unix/sysv/sysv4/__setpgrp.c: New file.
6858         * sysdeps/unix/sysv/sysv4/__setsid.c: New file.
6859         * sysdeps/unix/sysv/sysv4/Dist: Add pgrpsys.S.
6860         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Add pgrpsys.
6861
6862         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Moved from unix/sysv/sysv4.
6863         * sysdeps/unix/{bsd/sun/sunos4,bsd/ultrix4,sysv/linux}/__setsid.S:
6864         Include bsd4.4 instead of sysv4 file.
6865
6866 Mon Jun 21 19:08:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6867
6868         * posix/posix1_lim.h: #include <tzname_max.h>.
6869         * sysdeps/stub/tzname_max.h: New file (no-op).
6870         * time/make-tzlim.c: New file.
6871         * time/Makefile (headers): Add tzname_max.h.
6872         (distribute): Add make-tzlim.c.
6873         (extra-objs): Add make-tzlim.o and make-tzlim.
6874         ($(common-objpfx)tzname_max.h): New target.
6875
6876         * sysdeps/unix/sysv/sco3.2.4/confname.h (_SC_TZNAME_MAX): Define.
6877         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Detect arg being
6878         _SC_TZNAME_MAX, and return max of TZNAME_MAX and __tzname_max.
6879
6880         * sysdeps/stub/__sysconf.c: Include <time.h> and <limits.h>.
6881         Handle _SC_TZNAME_MAX and return max of TZNAME_MAX and __tzname_max.
6882         * sysdeps/posix/__sysconf.c: Change _SC_TZNAME_MAX code to that.
6883         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
6884
6885         * time/time.h (__tzname_max): Declare as variable, not function.
6886         * time/__tzset.c (__tzname_max): Function removed.
6887         (__tz_compute): Set the __tzname_max variable.
6888         * time/tzfile.c (compute_tzname_max): New function.
6889         (__tzfile_{read,default}): Call it.
6890
6891 Sun Jun 20 18:32:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6892
6893         * time/zic.c, time/asia: New versions from ADO.
6894
6895 Wed Jun 16 17:24:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6896
6897         * Version 1.06.3.
6898
6899 Fri Jun 11 15:44:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6900
6901         * sysdeps/unix/bsd/m68k/__pipe.S: Use `movel' instead of `moveal',
6902         which sun3 as does not appear to grok.
6903         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
6904
6905 Thu Jun 10 20:23:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6906
6907         * sysdeps/m68k/Makefile (as-pipe-ok): Define if -pipe is used in
6908         compiler invocations, or if using GNU as.
6909         (compile-command.S): Define using a pipe if `as-pipe-ok' is defined,
6910         otherwise with a temporary file.
6911
6912         * Makeconfig (gnu-as): Define if -DHAVE_GNU_AS appears in $(CPPFLAGS).
6913
6914 Wed Jun  9 15:14:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6915
6916         * configure.in (os frobnication): Turn underscores as well as
6917         lowercase Vs into dots in os name.
6918
6919         * sysdeps/unix/start.c [__GNUC__] (_start): Use asm name "start"
6920         only if [! NO_UNDERSCORES].
6921
6922 Tue Jun  8 14:51:00 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
6923
6924         * sysdeps/unix/bsd/ultrix4/mips/__handler.S: Don't save the stack
6925         pointer.
6926
6927 Mon Jun  7 21:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6928
6929         * time/Makefile (tzcompile): Remove -d switch, since zic-cmd has one.
6930
6931         * time/{private.h,zic.c}: New versions from ADO.
6932
6933         * sysdeps/unix/bsd/hp/m68k/__brk.S (error): Renamed label from `1',
6934         (__brk): Use DO_CALL instead of movel and trap.
6935
6936         * sysdeps/unix/bsd/sony/newsos4: Renamed sysdeps/unix/bsd/sony/newsos.
6937         * sysdeps/unix/bsd/sony/m68k/{Implies,sysdep.h}: Moved there.
6938
6939         * sysdeps/unix/bsd/hp/m68k/sysdep.h (DO_CALL): New macro, broken
6940         out of PSEUDO.
6941         (PSEUDO): Use it.
6942         * sysdeps/unix/bsd/sony/newsos4/m68k/sysdep.h
6943         (DO_CALL, PSEUDO): Likewise.
6944
6945         * configure.in: Set --with-gnu-{ld,as} for os=bsd4.4.
6946
6947 Fri Jun  4 14:11:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6948
6949         * sysdeps/i386/{strlen,memchr}.c: Use `repnz' instead of `repne'.
6950
6951         * time/Makefile (zonenames): Rename zones-* to z.* so they all fit
6952         in 14 chars.
6953         (extra-objs): Here too.
6954
6955         * sysdeps/unix/sysv/direct.h (D_RECLEN): New macro.
6956         * sysdeps/unix/readdir.c (D_RECLEN): If not defined, define to use
6957         `d_reclen' member.
6958         (readdir): Use D_RECLEN (DP) in place of DP->d_reclen.
6959
6960 Thu Jun  3 16:54:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6961
6962         * sysdeps/m68k/bytesex.h: New file.
6963
6964         * sysdeps/unix/ioctls-tmpl.c [sony_news]: Define KANJI before
6965         including <sys/ioctl.h>.
6966
6967 Wed Jun  2 17:45:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6968
6969         * malloc/Makefile (%.gz): Renamed target from %.z; use -v flag.
6970         (malloc/ChangeLog): Use mv -f.
6971
6972 Mon May 31 21:49:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6973
6974         * Version 1.06.2 released.
6975
6976         * manual/Makefile: Remove all uses of $(objpfx).  Since the
6977         generated files are distributed, they reside in the source
6978         directory.
6979
6980         * malloc/mtrace.c: #include <stdio.h>; malloc.h no longer does.
6981
6982         * sysdeps/posix/sleep.c: Restore signal mask to OSET before
6983         returning.  Save errno on entry and restore it before returning.
6984
6985         * Makeconfig (zonedir): New variable.
6986         * time/Makefile (localtime-file, posixrules-file, install-others,
6987         $(localtime-file), $(posixrules-file), tz-cc): Use $(zonedir) in
6988         place of $(datadir)/zoneinfo.
6989         (tzcompile): Omit -d switch.
6990         (zic-cmd): Add `-d $(zonedir)'.
6991
6992 Sun May 30 20:04:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6993
6994         * sysdeps/posix/stdio_init.c: (int)cookie is FD, not *(int*)cookie. 
6995
6996         * time/Makefile ($({localtime,posixrules}-file)): Don't pass -d
6997         switch (no need, since directory is compiled into zic).  Don't use
6998         $(<F) to find arg for -{l,p}; just use $({localtime,posixrules}).
6999
7000         * Makerules ($(libdir)/libc.a): Depend on installdirs.
7001
7002         * malloc/malloc.c (malloc): #if 0 out ``if (SIZE == 0) return NULL''.
7003
7004         * malloc/malloc.h [_MALLOC_INTERNAL]: Don't include <stdio.h>.
7005         [_MALLOC_INTERNAL]: Move config.h, limits.h, and mem* to front of file.
7006         (NULL): Move after stddef.h.
7007
7008         * malloc/valloc.c: Don't include config.h; malloc.h already did.
7009
7010         * malloc/malloc.c: Undo rms's change.
7011
7012         * malloc/mcheck.c, malloc/malloc.h: Undo rms's change.
7013
7014 Sat May 29 13:04:38 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
7015
7016         * malloc/malloc.c (malloc) [emacs]: If size is 0, make it 1.
7017
7018         * malloc/malloc.h (CONST): Define this always,
7019         rather than `const' sometimes.
7020         (memory_warnings): Use CONST, not __const, in decl.
7021         * malloc/mcheck.c (checkhdr): Use CONST, not const.
7022
7023 Fri May 28 18:29:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7024
7025         * sysdeps/unix/Makefile (ioctls): Use fgrep instead of egrep to
7026         omit unwanted symbols.  Filter the list of them through sort|uniq
7027         to remove duplicates first.
7028
7029         * sysdeps/unix/Makefile (errlist.c): Use dir and notdir
7030         functions to guarantee qualified path name for make_errlist.
7031
7032 Thu May 27 17:05:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7033
7034         * Version 1.06.1.
7035
7036         * sysdeps/sparc/Dist: Include sdiv.S, not div.S.
7037
7038         * sysdeps/unix/common/Dist: Remove make_siglist.c.
7039
7040         * stdio/internals.c: Declare __stdio_fileno before reference.
7041
7042         * sysdeps/generic/{memchr,strchr,strlen}.c: Abort if words are
7043         bigger than 64 bits.
7044
7045 Wed May 26 14:44:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7046
7047         * Makerules [objects] (install-others): Don't add libc.a to this.
7048         (install): Depend on $(libdir)/libc.a.
7049         (intall-no-libc.a): New target, depends on $(+install).
7050         (install): Don't depend on $(+install), just on install-no-libc.a.
7051         * Rules (subdir_install): Depend on install-no-libc.a, not install.
7052
7053         * Makefile ($(libc.a)): Don't depend on subdir_lib.
7054         (lib-noranlib): Depend on subdir_lib.
7055
7056         Make `fileno' a per-FILE io operation.
7057         * stdio/stdio.h (__io_fileno): New typedef.
7058         (__io_functions): Add `__fileno' member.
7059         (struct __stdio_file): Remove `__fileno' member.
7060         [__USE_POSIX] [__OPTIMIZE__]: Remove fileno macro defn.
7061         [__USE_POSIX] (fileno): Remove `const' from arg in prototype.
7062         * stdio/fileno.c (fileno): Rewritten to call STREAM's __fileno fn.
7063         * sysdeps/stub/sysd-stdio.c (__stdio_fileno): New function.
7064         (__stdio_open): Return an int (zero for win, nonzero for lose),
7065         and make third arg PTR * (filled in with cookie).
7066         * stdio/stdio.h (__stdio_open): Changed prototype.
7067         * sysdeps/posix/sysd-stdio.c (__stdio_open): Likewise.
7068         (__stdio_{read,write,seek,close}): Use (int) COOKIE as the fd, rather
7069         than *(int *) COOKIE.
7070         (__stdio_fileno): New function; just returns (int) COOKIE.
7071         * sysdeps/posix/fdopen.c: Set cookie to (PTR) FD; don't set fileno.
7072         * stdio/vdprintf.c: Likewise.
7073         * stdio/fmemopen.c: Set STREAM->__io_funcs.__fileno to NULL.
7074         Set STREAM->__cookie to NULL and don't use STREAM->__fileno.
7075         * stdio/internals.c (__default_io_functions): Add __stdio_fileno.
7076         * sysdeps/posix/defs.c (stdstream): Initialize __cookie to (PTR) FD
7077         Remove __fileno initializer.
7078         Add NULL initializer for __io_funcs.__fileno.
7079         * sysdeps/posix/pipestream.c (struct child): Remove `fd' member.
7080         Add `cookie' and `funcs' members.
7081         (FUNC): Macro to define child io_funcs.
7082         (child_funcs): New variable, __io_functions struct of them.
7083         (popen): Store STREAM's original cookie and io_funcs in CHILD, and
7084         then set STREAM->__cookie to CHILD and stream->__io_funcs to
7085         child_funcs.
7086         (pclose): Restore STREAM's original cookie and io_funcs before
7087         calling fclose.
7088
7089         * configure.in (autoconf checks): Add new check for a
7090         libc-friendly stddef.h.
7091
7092         * sysdeps/unix/configure: Remove __getpgrp from list of syscalls.
7093
7094         * sysdeps/generic/memchr.c: Handle 64-bit longwords.
7095         * sysdeps/generic/strlen.c: Likewise.
7096         * sysdeps/generic/strchr.c: Likewise.
7097
7098         * sysdeps/unix/sysv/sco3.2.4/Makefile: Remove gratuitous `.c'.
7099
7100         * Makerules [objects] (install-others): Add $(libdir)/libc.a to
7101         this, instead of adding $(libc.a) to install-lib.
7102         ($(libdir)/libc.a): New target to install from $(libc.a).
7103
7104         * sysdeps/unix/sysv/sco3.2.4/__setsid.S: New file.
7105         * sysdeps/unix/bsd/bsd4.4/__setsid.S: New file.
7106
7107 Mon May 24 16:49:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7108
7109         * sysdeps/unix/sysv/linux/__setsid.S: Moved to unix/sysv/sysv4,
7110         and replaced with #include of that.
7111         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: New file.
7112         * sysdeps/unix/bsd/ultrix4/__setsid.S: New file.
7113
7114         * posix/Makefile (install): Define to getconf.
7115
7116         * crypt: New version from glad.
7117
7118         * sysdeps/unix/sysv/sysv4/__sysconfig.S: Renamed to sysconfig.S.
7119         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Change reference.
7120         * sysdeps/unix/sysv/sysv4/Dist: Add sysconfig.S.
7121
7122         * sysdeps/generic/Makefile (siglist.c): Use dir and notdir
7123         functions to guarantee qualified path name for make_siglist.
7124
7125         * time/Makefile (tzcompile): Use $(@D) for target directory, not
7126         reference to nonexistent 4th dep.
7127         (localtime-file, posixrules-file): Turn these into absolute names.
7128         (install-others): Simply refer to them.
7129         ($(datadir)/zoneinfo/{localtime,posixrules}): Change targets of
7130         these rules to $(localtime-file) and $(posixrules-file), respectively.
7131         Use $(<D) for directory to pass zic.
7132
7133         * Makerules (installdirs): Use `sort' function to uniquize list of
7134         directories. 
7135
7136         * time/Makefile (install-others): Use $(datadir)/zoneinfo, not
7137         $(datadir)zoneinfo (missing /).
7138
7139         * Makerules (install-lib): Refer to `$(libc.a)' instead of `libc.a'.
7140
7141         * setjmp/sigjmp_save.c: Renamed to sigjmp.c.
7142         * setjmp/Makefile (routines): Change reference.
7143
7144         * sysdeps/unix/common/Makefile (siglist.c, make_siglist): Targets
7145         removed.
7146         * sysdeps/unix/common/make_siglist.c: File removed.
7147
7148 Sun May 23 01:00:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7149
7150         * manual/Makefile (minimal-dist): Remove COPYING.LIB.
7151         (doc-only-dist): Put it here.
7152
7153 Sun May 23 00:12:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7154
7155         * Version 1.06 released.
7156
7157         * sysdeps/sparc/Dist: Add {u,}{div,rem}.S.
7158
7159 Sat May 22 18:17:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7160
7161         * sysdeps/generic/make_siglist.c (main): Call signame_init, not
7162         init_sigs.
7163
7164         * Makerules (native-compile): Compile $^, not just $<.
7165
7166         * sysdeps/unix/i386/sysdep.h (PSEUDO): Omit `.text'.  Some
7167         assemblers don't like `.text; ...'.
7168
7169         * Rules (all): Mention as target first, so it is the default goal.
7170
7171         * sysdeps/unix/i386/sysdep.S: #undef syscall_error before using it
7172         as a label.
7173         [NO_UNDERSCORES]: Define __syscall_error instead of syscall_error.
7174
7175         * sysdeps/unix/readdir.c: Decrement d_namlen until it no longer
7176         includes any nulls.
7177
7178         * Makerules (+install-dirs): Variable removed.
7179         (install): Don't depend on $(+install-dirs).
7180         (installdirs): New target, to make $(dir $(+install)) using
7181         mkinstalldirs.  Make $(+install) depend on it.
7182         * Makefile (distribute): Add mkinstalldirs.
7183         * mkinstalldirs: New file.
7184
7185         * manual/Makefile (installdirs):
7186         New target, using mkinstalldirs to create $(infodir).
7187         ($(infodir)/libc.info): Depend on installdirs.
7188         (minimal-dist): Remove Makefile.
7189         (doc-only-dist): New variable, containing Makefile and mkinstalldirs.
7190         (*.tar): Depend on $(doc-only-dist).
7191
7192 Sat May 22 16:31:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7193
7194         Compile zoneinfo files directly into $(datadir)/zoneinfo, rather
7195         than compiling them into the source directory and then copying.
7196         * time/Makefile (zones-%): Put targets of generated rule in
7197         $(datadir)/zoneinfo, not zoneinfo.
7198         Don't make generated rules depend on zoneinfo/.
7199         (zonenames, zones-%): Write into $@.new and then use atomic mv.
7200         (zones, zoneinfo): Targets removed.
7201         (zoneinfo/localtime, zoneinfo/posixrules): Change targets to be in
7202         $(datadir)/zoneinfo; find $(localtime) and $(posixrules) there as well.
7203         ($(localtime-file), $(posixrules-file)): Targets removed.
7204         (install-data): Definition removed.
7205         (install-others): Include $(zonenames) from $(datadir)/zoneinfo; and
7206         $(localtime-file) and $(posixrules-file), from $(datadir)/zoneinfo
7207         if they are not absolute file names.
7208
7209         * time/zic.c (dolink): If FROMFILE or TOFILE begins with a slash,
7210         just set {FROM,TO}NAME to it, instead of prepending DIRECTORY.
7211         Don't free {FROM,TO}NAME if it is {FROM,TO}FILE.
7212
7213 Fri May 21 13:23:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7214
7215         * sysdeps/unix/i386/sysdep.S: Paste : onto syscall_error.
7216
7217         * sysdeps/unix/configure: Use grep -i when looking for syscalls.
7218         (unix_syscall_h): Ignore syscall.h found in sysdeps/stub.
7219         Remove __setpgrp from list of syscalls.
7220
7221         * sysdeps/unix/Makefile ($(common-objpfx)sys/param.h): Write defn
7222         for MAXHOSTNAMELEN.  The kludgemeister strikes again.
7223
7224         * posix/Makefile (glob/ChangeLog): Use mv -f.
7225
7226         * configure.in (os frobnication): Translate numbers separated by
7227         `v's into numbers separated by dots.
7228
7229         * sysdeps/unix/sysv/sco3.2.4/syscall.h: New file.
7230
7231         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Rewritten to do the
7232         canonical wait3-style magic.
7233
7234         * sysdeps/unix/sysv/sco3.2.4/{Makefile,Dist,sco_pgrp.S,
7235         __getpgrp.c,__setpgrp.c,__setsid.c}: New files.
7236
7237         * Makerules ($(common-objpfx)stub-$(subdir)): Add /dev/null to
7238         inner sed command.
7239
7240         * manual/Makefile ($(objpfx)%.info, $(objpfx)%.dvi): New rules.
7241         ($(infodir)/libc.info): Take basename of each $<* before using it.
7242         (glibc-targets): Add stubs.
7243         (stubs, $(common-objpfx)stub-manual): New targets.
7244
7245         * time/Makefile (distribute): Add yearistype.
7246         * time/yearistype: New file.
7247
7248         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Don't use ARGS_4
7249         macro; just set %ecx to %esp instead.  Pop the stack before doing
7250         the system call, so the add doesn't clear the condition codes.
7251
7252         * sysdeps/unix/start.c [HAVE_GNU_LD]: Put `start' symbol alias
7253         under [! NO_UNDERSCORES && ! __GNUC__].
7254
7255         * sysdeps/unix/sysdep.h (C_LABEL): Use ## to paste NAME and : together.
7256
7257         * sysdeps/unix/i386/sysdep.h (DO_CALL): Add missing backslash.
7258
7259 Thu May 20 18:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7260
7261         * Makefile ($(+subdir_targets)): Remove old rule.  Replace with
7262         static pattern rule to depend on DIR/TARGET for each subdir and target.
7263         (all-subdirs-targets): Define variable to contain names of all
7264         those targets.
7265         ($(all-subdir-targets)): Define rule for these to do sub-make.
7266
7267         * sysdeps/unix/sysv/sysv4/direct.h (D_NAMLEN): Subtract one for
7268         the terminating null character.
7269         * sysdeps/unix/sysv/sco3.2.4/direct.h (D_NAMLEN): Copy defn from
7270         that file.
7271
7272 Thu May 20 11:02:59 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
7273
7274         * sysdeps/posix/__getpgsz.c: New file.
7275         * sysdeps/unix/sysv/sysv4/__getpgsz.c: New file, include the posix one.
7276         * sysdeps/posix/__getdtsz.c: New file.
7277         * sysdeps/unix/sysv/sysv4/__getdtsz.c: New file, include the posix one.
7278
7279         * sysdeps/unix/sysv/sysv4/{__sysconf.c, __sysconfig.S,
7280         sysconfig.h, Makefile, Dist}: New files.
7281
7282         * sysdeps/generic/confname.h (enum for sysconf): Add _SC_PAGESIZE.
7283         * sysdeps/posix/__sysconf.c: Include stddef.h.
7284         (__getpagesize): Declare.
7285         (__sysconf, case _SC_PAGESIZE): Call __getpagesize.
7286
7287 Wed May 19 14:03:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7288
7289         * manual/Makefile (routines, aux, sources, objects, headers):
7290         Define empty.
7291
7292         * Makeconfig (infodir): Define.
7293         * Makefile (+other_dirs): Add manual.
7294         * manual/Makefile: Include ../Makeconfig if it exists.
7295         (subdir): Export it.
7296         (find-includes): Output variable name is $(@F), not $@.
7297         (distribute): Export it.
7298         (mostlyclean, distclean, realclean, clean, subdir_clean): New targets.
7299         (install, subdir_install): New targets.
7300         (infodir, prefix, INSTALL_DATA, INSTALL): Define vars if undefined.
7301         ($(infodir)/libc.info): New target.
7302         (dist): Use ../Make-dist if it exists.
7303         (glibc-targets): New variable.
7304         ($(glibc-targets)): Make no-op targets.
7305
7306         * config.guess: New file, maintained by Cygnus.
7307         * configure.in: Move AC_PREPARE before arg lossage check.
7308         If $target is unset, try setting it from config.guess.
7309         * Makefile (distribute): Add config.guess.
7310
7311         * inet/getnetbyad.c: Change first arg type to int32_t.
7312         * inet/inet_mkadr.c: Change arg types to u_int32_t.
7313         * inet/inet_lnaof.c: Change return type to u_int32_t.
7314         * inet/inet_net.c: Likewise.
7315         * inet/inet_netof.c: Likewise.
7316         * inet/res_send.c, inet/res_query.c, inet/res_mkqry.c,
7317         inet/res_init.c, inet/res_debug.c, inet/res_comp.c,
7318         inet/inet_addr.c, inet/herror.c, inet/gethstnmad.c, inet/resolv.h,
7319         inet/netdb.h, inet/arpa/nameser.h, inet/arpa/inet.h:
7320         Snarfed latest code from BIND 4.9.1.
7321         * inet/sys/bitypes.h: New file.
7322         * conf/portability.h: New file.
7323         * inet/Makefile (headers): Add sys/bitypes.h.
7324         (distribute): Define to ../conf/portability.h.
7325
7326         * mach/__msg_destroy.c: Renamed to __msg_dest.c.
7327         * mach/mig_syms.c: Renamed from mig_support_syms.c.
7328         Added symbol alias for mig_strncpy.
7329         * mach/__mig_strncpy.c: Renamed to mig_strncpy.c.
7330         * mach/mig_strncpy.c: File removed.
7331         * mach/Makefile (routines): Remove __mig_strncpy; change
7332         mig_support_syms to mig_syms; change __msg_destroy to __msg_dest.
7333
7334         * sysdeps/posix/Makefile: Replace instances of `objpfx' and
7335         `objdir' with `common-objpfx' and `common-objdir'.
7336
7337 Mon May 17 16:29:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7338
7339         * time/asctime.c: Replace ` %2d' with `%3d' in FORMAT.
7340         (asctime): Check return from sprintf being <0, not <25.
7341
7342         * sysdeps/unix/opendir.c: Include <stdio.h> for BUFSIZ.
7343
7344         * sysdeps/unix/i386/sysdep.h (PSEUDO): Put ; after DO_CALL use.
7345
7346         * sysdeps/i386/ffs.c: Use `nonzero' for asm label, instead of `1f'.
7347
7348 Sun May 16 17:59:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7349
7350         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Don't get fancy with
7351         xchg; just push $trampoline and then push our args again, pop them
7352         after the system call.
7353
7354         * time/tzfile.c (__tzfile_default): Don't assume TYPES[0] is
7355         standard and TYPES[1] is DST.  Instead, loop through all types:
7356         if a type's isdst flag is set, set its idx to STDLEN and its
7357         offset to DSTOFF; if isdst is clear, set its idx to 0 and its
7358         offset to STDOFF.
7359
7360         * time/__tzset.c: When __tzfile_default returns having set
7361         __use_tzfile, set __tzset_run before returning.
7362
7363         * sysdeps/posix/sleep.c: Block SIGALRM with sigprocmask before
7364         changing its handler.  Use sigaction instead of signal to set the
7365         handler.  Use sigsuspend to restore the blocked signals and pause
7366         atomically, instead of using pause.  Be sure to disable the alarm
7367         when a signal other than SIGALRM wakes sigsuspend.
7368
7369         * time/Makefile (zic-cmd): Put the directory before the nondirectory.
7370
7371         * Makerules (stubs): Remove surrounding `ifdef +depfiles'...`endif'.
7372
7373         * time/Makefile: Include ../Makeconfig before trying to use $(objpfx).
7374
7375         * time/tzfile.c (__tzfile_compute): When there are transitions and
7376         TIMER is not before the first one, find the first transition after
7377         TIMER, and then set I to the type of the transition before it.
7378         Set INFO from types[I], not types[type_idxs[I]].
7379
7380         * posix/Makefile (glob/configure): cd to glob before running autoconf.
7381
7382         * time/__tzset.c (compute_change): Don't add 1900 to YEAR.
7383         (__tz_compute): Add 1900 to the year we pass to compute_change.
7384
7385         * time/gmtime.c: After calling __offtime, zero tm_gmtoff and set
7386         tm_zone to "GMT".
7387
7388         * time/time.h [__OPTIMIZE__]: Remove gmtime macro version.
7389
7390         * time/tzfile.c (__tzfile_default): Fail if NUM_TYPES < 2, not if
7391         NUM_TYPES != 2.
7392
7393         * time/tzfile.c (__tzfile_compute): Don't take arg TM.
7394         Instead take new args long int *LEAP_CORRECT and int *LEAP_HIT.
7395         Don't apply leap second correction to __timezone; instead set
7396         *LEAP_CORRECT and *LEAP_HIT.
7397         * time/__tzset.c (tzset_run): Renamed to __tzset_run, made global.
7398         (__tzset): Change uses.
7399         (__tz_compute): Change use here as well.
7400         Make second arg be a `const struct tm *'.  Don't call __tzfile_compute.
7401         * time/localtime.c: Call __tzset if __tzset_run is clear.
7402         New local vars LEAP_CORRECTION and LEAP_EXTRA_SECS.
7403         If __use_tzfile is set, call __tzfile_compute and pass it their
7404         addresses.  Only need to call gmtime if __use_tzfile is clear.  If
7405         it is clear, pass result of gmtime to __tz_compute, instead of
7406         dereferencing it first; and zero LEAP_CORRECTION and LEAP_EXTRA_SECS.
7407         Subtract LEAP_CORRECTION from __timezone in __offtime call.
7408         After __offtime, add LEAP_EXTRA_SECS to TP->tm_sec.
7409
7410         * sysdeps/generic/strsep.c: Increment END when writing a null to
7411         it, and set *STRINGP to END rather than END+1, so *STRINGP never
7412         points past the null.
7413
7414 Sat May 15 17:10:02 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
7415
7416         * time/strftime.c: Alphabetize switch cases.
7417         Add GNU extensions %h, %C, %k, %l.
7418
7419         * time/asctime.c: Make RESULT big enough for each %d to be 2^64.
7420         Protect against tm_wday and tm_mon being out of bounds; use "???"
7421         if they are.
7422
7423         * time/{emkdir,ialloc,scheck,zic,zdump}.c: New versions from ADO.
7424
7425         * time/africa, time/antarctica, time/asia, time/australasia,
7426         time/europe, time/northamerica, time/southamerica,
7427         time/pacificnew, time/etcetera, time/factory, time/systemv,
7428         time/solar87, time/solar88, time/solar89, time/leapseconds:
7429         Updated from Arthur David Olsen's latest.
7430
7431         * sysdeps/generic/__expm1.c, sysdeps/generic/asinh.c,
7432         sysdeps/generic/exp__E.c, sysdeps/generic/log.c,
7433         sysdeps/generic/log1p.c, sysdeps/generic/mathimpl.h,
7434         sysdeps/generic/pow.c, sysdeps/mach/hurd/__ioctl.c,
7435         sysdeps/mach/hurd/stdio_init.c, sysdeps/unix/bsd/clock.c: Put
7436         `const' qualifier always after storage classes.
7437
7438         * sysdeps/unix/bsd/sequent/i386/__sigvec.S (trampoline): Use
7439         `call', not `jsr'.
7440         (__sigvec): Exchange the scratch reg with 16(%esp) (fourth arg
7441         slot), not 0(%esp) (return PC slot).  Use ARGS_4 to point the
7442         syscall at the args.
7443
7444         * sysdeps/unix/common/__getgrps.c: When gid_t==int, and SIZE!=0,
7445         return N from __bsd_getgroups.
7446
7447         * posix/unistd.h (__need_NULL): Define before including <stddef.h>.
7448         1003.1-1990 2.7.1 says it should be here.
7449
7450 Sat May 15 14:54:25 1993  Noah Friedman  (friedman@nutrimat.gnu.ai.mit.edu)
7451
7452         * time/__tzset.c (compute_change): Add 1900 to YEAR, not 1970.
7453
7454 Fri May 14 21:24:19 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
7455
7456         * sysdeps/unix/sysv/sysv4/solaris2/start.c: Define NO_EXPLICIT_START.
7457         * sysdeps/unix/sparc/start.c [NO_EXPLICIT_START]: Don't asm
7458         `_start' into `start' (e.g., for Solaris).
7459
7460         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h: New file.
7461
7462 Fri May 14 19:34:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7463
7464         * malloc/Makefile: Remove depend-malloc dependency on malloc/gmalloc.c.
7465
7466         * posix/Makefile (headers): Add sys/unistd.h.
7467         * posix/sys/unistd.h: New file, just includes <unistd.h>.
7468
7469         * sysdeps/unix/common/glue-ctype.c (main): Define generated array
7470         as `unsigned char' rather than `char'.
7471
7472         * sysdeps/unix/start.c [__GNUC__]: Use asm frob to make `start'
7473         asm name of _start.
7474
7475         * sysdeps/unix/opendir.c [! _STATBUF_ST_BLKSIZE]: Don't fstat and
7476         use st_blksize; try BUFSIZ instead.
7477
7478         * sysdeps/unix/Makefile (ioctls): Don't use sed to remove final |
7479         from snarf-ioctls output; just append a dummy alternative instead.
7480
7481         * sysdeps/posix/__wait3.c: Fix arg types.
7482
7483         * Makerules ($(common-objpfx)stub-$(subdir)): Use @ for sed
7484         separator char.  Pass extra file /dev/null in case `...` gets empty.
7485
7486         * sysdeps/unix/sysdep.h (C_LABEL): Define new macro.
7487         * sysdeps/unix/i386/sysdep.h (ENTRY): Use it.
7488         * sysdeps/unix/sparc/sysdep.h (ENTRY): Likewise.
7489         * sysdeps/unix/sparc/__brk.S: Use C_LABEL and ENTRY instead of
7490         C_SYMBOL_NAME.
7491         * sysdeps/unix/i386/__brk.S: Use C_LABEL instead of C_SYMBOL_NAME.
7492
7493 Fri May 14 17:41:42 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
7494
7495         * sysdeps/mips/sqrt.c [HAVE_GNU_AS]: Use the IEEE 754 version of
7496         sqrt since gas can't handle the `sqrt.d' synthetic instruction.
7497
7498 Fri May 14 16:33:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7499
7500         * stdio/Makefile (routines): Add tempname.
7501
7502         * sysdeps/unix/common/make_siglist.c: #define const to empty
7503         around #include of <signal.h>.
7504
7505         * sysdeps/unix/errnos.awk: Surround generated `DO' macro calls
7506         with #ifdef on the E* symbol.
7507
7508         * sysdeps/unix/common/make_siglist.c [! HAVE_SYS_SIGLIST &&
7509         HAVE__SYS_SIGLIST]: Define sys_siglist to _sys_siglist.
7510
7511         * termios/Makefile (headers): Add termbits.h.
7512
7513         * posix/Makefile (headers): Add waitflags.h and waitstatus.h.
7514
7515         * math/math.h (struct __complex): Rename to struct __cabs_complex.
7516         __complex is now a reserved word in GCC.
7517         * sysdeps/generic/cabs.c (cabs): Likewise.
7518         * sysdeps/ieee754/cabs.c (cabs, z_abs): Likewise.
7519
7520         * sysdeps/unix/common/glue-ctype.c: Test for _ctype__ before _ctype_.
7521
7522         * posix/Makefile (headers): Add confname.h.
7523
7524 Thu May 13 00:25:53 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
7525
7526         * ctype/Makefile (tags_sources): Don't define.
7527         * MakeTAGS [subdir==ctype] (tags_sources): Put headers before sources.
7528
7529         * time/__tzset.c (compute_change): Add 1970 to YEAR before using it.
7530
7531         * sysdeps/unix/readdir.c: Pass a BASEP arg to __getdirentries.
7532
7533 Wed May 12 20:36:51 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
7534
7535         * Makefile (distribute): Add aclocal.m4.
7536
7537         * dirent/list.c (test): Clear errno before readdir loop.  Complain
7538         if errno is set thereafter.
7539
7540         * sysdeps/unix/sysv/sysv4/solaris2/utsnamelen.h: New file.
7541         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: New file.
7542         * sysdeps/unix/sysv/sysv4/solaris2/sigaltstack.S: New file.
7543         * sysdeps/unix/sysv/sysv4/solaris2/Makefile: New file.
7544
7545         * sysdeps/unix/bsd/sun/sparc/start.c: Moved to sysdeps/unix/sparc.
7546         * sysdeps/unix/sparc/start.c: Moved from sysdeps/unix/bsd/sun/sparc.
7547         Surround all shared library frobnication code with #ifndef NO_SHLIB.
7548         * sysdeps/unix/sysv/sysv4/solaris2/start.c: New file.
7549
7550         * configure.in (os = solaris[2-9]*): base_os=unix/sysv/sysv4.
7551
7552         * sysdeps/sparc/setjmp.S: Include <sysdep.h>, not "DEFS.h".
7553         Use ENTRY(__setjmp) instead of FUNC(___setjmp).
7554
7555         * sysdeps/sparc/divrem.m4: [__svr4__]: Include <sys/trap.h>
7556         instead of <machine/trap.h>.
7557
7558         * sysdeps/sparc/__longjmp.S: Include <sysdep.h>, not "DEFS.h".
7559         Use ENTRY(__longjmp) instead of FUNC(___longjmp).
7560         [__svr4__]: Use <sys/trap.h> instead of <machine/trap.h>.
7561
7562         * sysdeps/unix/i386/sysdep.h (C_SYMBOL_NAME, SYS_ify): Moved to
7563         sysdeps/unix/sysdep.h.
7564         * sysdeps/unix/sparc/sysdep.h: New file.
7565         * sysdeps/unix/bsd/sun/sparc/sysdep.h: File removed.
7566
7567         * sysdeps/unix/sparc/__brk.S: New file.
7568         * sysdeps/unix/sparc/__brk.c: File removed.
7569
7570 Wed May 12 19:43:37 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
7571
7572         * malloc/cfree.c: Put malloc.h include in _MALLOC_INTERNAL conditional.
7573
7574 Wed May 12 16:24:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
7575
7576         * Makeconfig (+link): Put $(LDFLAGS) in the value.
7577         * sysdeps/unix/bsd/sun/sparc/Makefile (LDFLAGS): Set it.
7578
7579         * posix/glob.c: Move include <unistd.h> before dir includes.
7580         [HAVE_UNISTD_H] [! POSIX] [_POSIX_SOURCE]: Define POSIX.
7581
7582         * grp/initgroups.c [! NGROUPS_MAX || NGROUPS_MAX == 0]: Just
7583         return 0 and do nothing.
7584
7585         * sysdeps/unix/sysv/sco3.2.4/__{sys,path}conf.S: New files.
7586         * posix/unistd.h: Include <confname.h>; remove _{SC,CS,PC}_* defns.
7587         * sysdeps/generic/confname.h: New file.
7588         * sysdeps/unix/sysv/sco3.2.4/confname.h: New file.
7589
7590         * malloc/cfree.c: Include <malloc.h> instead of <stdlib.h>.
7591         [_LIBC]: Use function_alias only under this conditional.
7592         [! _LIBC] (cfree): Define a function that just calls free.
7593
7594         * posix/Makefile (glob.tar): Depend on glob/ChangeLog.
7595         (glob/configure): Just run autoconf, don't do a sub-make.
7596         (glob/ChangeLog): New target.
7597         (%.Z, %.z): New rules.
7598
7599 Mon May 10 16:56:09 1993  Jim Blandy  (jimb@geech.gnu.ai.mit.edu)
7600
7601         * malloc/cfree.c: Put the meat of the file inside a "#if
7602         defined(__GNU_LIBRARY__)" clause, so that gmalloc.c, which
7603         incorporates this file, can be used outside of the C library.
7604
7605 Sun May  9 16:57:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7606
7607         * stdio/fseek.c: Don't call __flshfp unless STREAM is writable.
7608
7609         * string/tester.c (main): Remove unused variable.
7610
7611         * sysdeps/unix/bsd/set[er][gu]id.c: New files.
7612
7613         * sysdeps/unix/mk-local_lim.c (NAME_MAX): Define to 255 if undefined.
7614
7615         * malloc/Makefile (malloc-dist): Add ChangeLog and mem-limits.h.
7616         (malloc/ChangeLog): New rule using Noah's changelog-extract.
7617         (malloc.tar): Use o flag to tar to make compatible archives.
7618         (gmalloc-routines): Add calloc, valloc, and cfree.
7619         (dist-routines): Remove [cv]alloc from here.
7620         (routines): Remove cfree from here.
7621
7622 Fri May  7 16:45:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7623
7624         * sysdeps/posix/ttyname.c: Replace fixed-sized NAME array with
7625         static char *NAME and static size_t NAMELEN.
7626         Don't check S_ISCHR.
7627         Don't hack NAME before the loop.
7628         If need more than NAMELEN chars to hold the name, increase NAMELEN
7629         to more than big enough and malloc NAME.
7630         Save errno in local var SAVE before doing anything; restore it
7631         when returning non-error.
7632
7633         * Makefile (generated): Add $(objpfx)stubs.h.
7634         (README): New rule to call Make-dist to do the work.
7635
7636         * mach/Makefile: Don't include mach-syscalls.mk if no_deps=t.
7637
7638         * crypt/GNUmakefile (%.z): New rule for gzipping.
7639         (crypt.tar): Use o flag to tar to make compatible archives.
7640
7641         * Makeconfig: Find config.make in $(common-objpfx), not $(objpfx).
7642
7643         * io/Makefile (headers): Remove filebits.h.
7644
7645         * sysdeps/unix/sysv/sysv4/Dist: File removed.
7646
7647         * Makefile (README): Move from here.
7648         * Make-dist (README): To here.
7649
7650         * sysdeps/unix/Makefile (sys/param.h): Don't depend on sys/.  It
7651         was causing sys/param.h to be remade all the time.
7652
7653         * aclocal.m4 (GLIBC_PROVIDES): Add shell comment about configure
7654         being generated and not to be editted.
7655
7656         * sysdeps/unix/swapon.S: Moved to sysdeps/unix/common.
7657         * sysdeps/unix/configure: Add swapon to list of syscalls to check for.
7658
7659         * sysdeps/unix/mk-local_lim.c: New file, modified from
7660         sysdeps/unix/common/mk-local_lim.c.
7661         * sysdeps/unix/common/Makefile: Move local_lim.h rules from here.
7662         * sysdeps/unix/Makefile: Put them there.
7663         (local_lim-CFLAGS): Define new variable.
7664         (mk-local_lim): Replace $(native-compile) with its value plus
7665         $(local_lim-CFLAGS).
7666         * sysdeps/unix/common/Dist: Remove mk-local_lim.c.
7667         * sysdeps/unix/Dist: Add it here.
7668
7669         * Makerules (make-dummy-dep): New variable; canned command.
7670         ($(objpfx)%.dep: {$(objpfx),}%.s): New rules using $(make-dummy-dep).
7671         (sysd-Makefile): Write a $(objpfx)%.dep: $dir/%.s rule using it.
7672
7673         * misc/ioctl.c: Replace function_alias with:
7674         [HAVE_GNU_LD]: Use symbol_alias.
7675         [! HAVE_GNU_LD]: Write out the function; it must fetch its third arg
7676         with va_arg and then call __ioctl.
7677
7678 Thu May  6 14:56:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7679
7680         * misc/sys/ioctl.h (__ioctl, ioctl): Changed prototype to take 2
7681         args and ... rather than a 3rd __ptr_t arg.
7682         * sysdeps/stub/__ioctl.c: Changed defn.
7683
7684         * sysdeps/unix/bsd/sun/sunos4/tcflow.c: Include <sys/ioctl.h>.
7685
7686         * sysdeps/unix/Makefile (make-ioctls-CFLAGS): Define as
7687         -DHAVE_SYS_TERMIOS_H if $(sysincludedir)/sys/termios.h exists.
7688         (make-ioctls): Replace command `$(common-objdir-compile)' with
7689         that var's contents from Makerules, plus $(make-ioctls-CFLAGS).
7690         * sysdeps/unix/ioctls-tmpl.c [HAVE_SYS_TERMIOS_H]: Get <sys/termios.h>.
7691
7692         * misc/sys/ioctl.h: Include <sys/ttydefaults.h> after <ioctls.h>.
7693
7694         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfget[io]speed): Return the
7695         raw speed, rather than using it as an index into `speeds'.
7696         (cfset[io]speed): Treat SPEED being an index into `speeds' just as
7697         if it were the value of that element.
7698
7699         * termios/termios.h: Remove definitions of B[0-9]+ and EXT[AB].
7700         * sysdeps/generic/termbits.h: Put them here instead.
7701         * sysdeps/unix/bsd/sun/sunos4/termbits.h: Add new defns for those.
7702
7703         * sysdeps/unix/Makefile (termbits-edit): If termbits.h is not the
7704         generic version, set this to an | egrep command which filters out
7705         symbols appearing in termbits.h.
7706         (ioctls): Depend on $(sysincludedir)sys/termios.h if it exists.
7707         Pass all deps after first to snarf-ioctls.
7708         Put $(termbits-edit) in cmd line; it may be empty or a pipe.
7709         Pipe through sort|uniq before tr (just to cut down on duplicates).
7710
7711         * sysdeps/generic/Makefile, sysdeps/unix/Makefile: When deciding
7712         whether to generate files whose stub versions are chosen, also
7713         include the generation rules when the chosen directory is
7714         $(common-objpfx), so they continue to be defined after running once.
7715
7716         * sysdeps/posix/Makefile: Use patsubst instead of substition
7717         references when the substitution or replacement contains a $.
7718         Make has a bug (which I just fixed) with such substitution references.
7719
7720         * posix/wait3.c: Fixed arg types in fn alias.
7721         * posix/wait4.c: Likewise.
7722
7723         * sysdeps/posix/Makefile: Remove vpath %.h line.
7724         * Makerules: Add vpath %.h directive.
7725
7726         * sysdeps/posix/Makefile (generated, before-compile): Add
7727         $(common-objpfx)stdio_lim.h, not just plain stdio_lim.h.
7728
7729         * Makerules (depend-$(subdir)): Put $(objpfx) in the output, not
7730         its expansion.
7731         (+make-deps): Add sed clause to translate the expansion of
7732         $(objpfx) back into the variable reference.
7733
7734 Wed May  5 15:59:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7735
7736         * sysdeps/unix/sysv/sco3.2/local_lim.h: New file.
7737
7738         * sysdeps/unix/sysv/sco3.2/Makefile: New file
7739         * sysdeps/unix/sysv/sco3.2/Dist: New file.
7740         * sysdeps/unix/sysv/sco3.2/__fltused.c: New file.
7741
7742         * sysdeps/unix/configure: New file.
7743         * sysdeps/unix/inet/__select.S: Moved to sysdeps/unix/common.
7744         This is because select is a call sysdeps/unix/configure wants to
7745         check for, and it simplifies life for all those to be in unix/common.
7746
7747         * sysdeps/tahoe/Implies: Remove $(bsdmath)tahoe line.
7748
7749         * sysdeps/unix/sysv/sco3.2.4/{__sigact,__sigproc,
7750         sigpending,sigsuspend}.S: New files.
7751
7752         * Makefile (INSTALL): Depend on manual/maint.texi, not
7753         manual/maint.texinfo.  Use -- instead of + for long options.
7754
7755         * configure.in: After setting $sysnames initially and adding the
7756         FPU directory, expand and uniquize the list with code that used to
7757         be in find-sysdirs.  Make $sysnames blank-separated rather than
7758         newline-separated.  Generalize loop iterating over $sysnames, so
7759         it sets $uname and sources sysdep configure scripts.  Move
7760         sys_siglist and ctype checks to sysdeps/unix/common/configure.in.
7761         Set Make variable `config-sysdirs' to $sysnames in config.make,
7762         and don't frob Sysnames or sysdirs files at all.
7763         * find-sysdirs: File removed.
7764         * Makefile (distribute): Remove find-sysdirs.
7765         (sysd-dirs): Depend on config.make instead of config.make.
7766         Use $(sysdirs) in place of `cat $<`.
7767         * aclocal.m4: New file.
7768         * sysdeps/unix/common/configure.in: New file, contains checks for
7769         sys_siglist and ctype glue moved from top-level configure.in.
7770         * Makerules (sysdirs, Sysnames): Rules removed.
7771         Don't include sysdirs.
7772         (sysdirs): Define variable from $(config-sysdirs).
7773         (sysd-Makefile): Depend on config.make instead of sysdirs.
7774         Use $(sysdirs) instead of filtering the sysdirs file.
7775         * Make-dist (+sysdep-tsrcs): Include configure and configure.in
7776         from sysdep dirs.
7777         (dist.tar): Use o flag to tar for compatible archives.
7778         (dist): Depend on foo.z instead of foo.Z.
7779         ($(tardir){-crypt,}.tar.z): Renamed from .Z.
7780         (%.z: %): New rule.
7781         (%/configure: %/configure.in): New rule.
7782
7783 Mon May  3 17:45:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7784
7785         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: New file.
7786
7787         * sysdeps/unix/sysv/sco3.2.4/direct.h: New file.
7788
7789         * sysdeps/unix/readdir.c: Moved from unix/bsd, rewritten to always
7790         use __getdirentries and D_NAMLEN macro, no #ifdefs.
7791         * sysdeps/unix/sysv/readdir.c, sysdeps/unix/bsd/bsd4.4/readdir.c,
7792         sysdeps/unix/bsd/ultrix4/readdir.c,
7793         sysdeps/unix/bsd/hp/m68k/readdir.c,
7794         sysdeps/unix/bsd/sun/readdir.c: Files removed.
7795         * sysdeps/unix/common/{close,open,rewind,seek,tell}dir.c: Moved to
7796         sysdeps/unix.
7797         * sysdeps/unix/sysv/direct.h: New file.
7798         * sysdeps/unix/bsd/direct.h (D_NAMLEN): Define to use d_namlen.
7799         * sysdeps/unix/sysv/sysv4/direct.h (D_NAMLEN): Define to calculate
7800         from d_reclen.
7801         * sysdeps/unix/__getdents.c: New file.
7802         * sysdeps/stub/direct.h: New file.
7803         * sysdeps/unix/bsd/Dist: Remove bsddir.h.
7804         * sysdeps/unix/sysv/sysv4/readdir.c: Moved to unix/sysv.
7805         * sysdeps/unix/sysv/sysv4/bsddir.h: Renamed to direct.h.
7806         * sysdeps/unix/bsd/bsddir.h: Likewise.
7807         * sysdeps/unix/common/opendir.c: Include "direct.h", not "bsddir.h".
7808         * sysdeps/unix/sysv/sysv4/readdir.c: Likewise.
7809         * dirent/Makefile (distribute): Define to include direct.h.
7810
7811         * sysdeps/unix/common/opendir.c: Be sure to close FD if fcntl fails.
7812
7813         * sysdeps/generic/memcopy.h: #include <sys/cdefs.h> and use __P
7814         prototypes instead of EXFUN.
7815
7816         * sysdeps/generic/memcmp.c (__ptr_t, const): Define as appropriate
7817         conditional on [__cplusplus || __STDC__].
7818
7819 Thu Apr 29 21:48:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7820
7821         * Makefile ($(libc.a)): Make this, not lib, depend on subdir_lib.
7822
7823         * Makerules ($(objpfx)%.{o,dep} rules): Remove spurious / after
7824         $(objpfx) in dependency patterns.
7825
7826         * sysdeps/unix/bsd/sun/sparc/start.c (_start): Define with
7827         `asm ("start")', so its asm name is `start' rather than `__start'.
7828         Remove asm that did a `.set' pseudo-op, which Sun as seems not to grok.
7829
7830 Wed Apr 28 12:59:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7831
7832         * sysdeps/stub/system.c: Return 0 if LINE is nil.
7833
7834         * sysdeps/unix/__execve.S [!SYS_execve && SYS_exec]: Define
7835         SYS_execve to be SYS_exec.
7836
7837         * time/mktime.c: Include <sys/types.h>.
7838
7839 Mon Apr 26 17:10:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
7840
7841         * sysdeps/generic/memcmp.c: Deansideclized.
7842         [HAVE_CONFIG_H]: Include "config.h".
7843         [HAVE_STRING_H || _LIBC]: Put #include <string.h> under this.
7844         [_LIBC]: Put #include <memcopy.h> under this conditional.
7845         [! _LIBC]: Define op_t, OPSIZ, byte, and MERGE.
7846
7847         * time/mktime.c: Define __isleap if not defined.
7848
7849 Fri Apr 23 18:08:33 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
7850
7851         * sysdeps/unix/sysv/__getdents.c: New file.
7852         * sysdeps/unix/sysv/sysv4/sys_getdents.S: Moved to unix/sysv.
7853         * sysdeps/unix/sysv/Makefile [subdir==dirent]: Add sys_getdents to
7854         sysdep_routines.
7855         * sysdeps/unix/sysv/Dist: Add sys_getdents.S.
7856         * sysdeps/unix/sysv/sysv4/Dist: Remove it from here.
7857         * sysdeps/unix/sysv/sysv4/Makefile: File removed.
7858
7859 Thu Apr 22 17:40:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7860
7861         * sysdeps/unix/bsd/sony/newsos4/m68k/sysdep.h: New file.
7862
7863         * sysdeps/generic/strsep.c: Set *STRINGP to END+1, not END.
7864
7865         * configure.in (arg parsing): Grok --verbose and set verbose=yes.
7866
7867         * sysdeps/sparc/{umul,mul}.S: Remove ' from ! comment.
7868
7869         * sysdeps/sparc/Makefile (*.S): Find divrem.m4 in this sysdeps dir.
7870
7871         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfset[io]speed): Typo fix.
7872
7873         * sysdeps/unix/bsd/sun/sparc/vfork.S: Use a sethi insn and %g1 as
7874         a temporary, rather than expecting the address to fit into a short
7875         jump.
7876
7877         * sysdeps/unix/bsd/__fork.S: Moved to sysdeps/unix/__fork.S; we
7878         want unix/MACHINE/__fork.S to come first.
7879
7880         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Make STAT_LOC type
7881         `__WAIT_STATUS' (defined in <sys/wait.h>).
7882         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
7883
7884         * signal/sigvec.c: Change args from `struct __sigvec *' to
7885         `struct sigvec *' in function alias.
7886
7887         * signal/sigproc.c: Make arg SET `const sigset_t *' in fn alias.
7888
7889         * signal/sigaction.c: Change args from `struct __sigaction *' to
7890         `struct sigaction *' in function alias.
7891
7892         * sysdeps/unix/common/glue-ctype.c (main) [! TABLE]: Write just a
7893         comment saying we don't know the table name, rather than barfing
7894         with `TABLE' an undefined variable.
7895
7896         * sysdeps/generic/printf_fp.c: Fixed test to chose %e format.
7897         Make loop condition --J > 0; break out of loop when FPNUM < F.
7898         After loop, use %e format iff J <= 0.
7899
7900         * posix/glob/Makefile.in (.c.o): Put $(CFLAGS) last.
7901         (glob.o): Depend on glob.c.
7902         (fnmatch.o): Depend on fnmatch.c.
7903
7904 Wed Apr 21 12:40:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7905
7906         * sysdeps/posix/Makefile (before-compile): Add stdio_lim.h.
7907
7908         * configure.in (signed size_t test): Remove 's from rhs of AC_DEFINE.
7909
7910         * stdio/internals.c (seek_to_target): If __stdio_check_offset
7911         fails with ESPIPE, do nothing.
7912
7913         * sysdeps/generic/printf_fp.c: For %e type, add K-1 to CUTOFF,
7914         rather than K.
7915         When there are no post-decimal digits, never write a decimal point
7916         for a %g spec unless it had a # modifier.
7917         Move K==-1 test to write decimal point before K==CUTOFF test to
7918         round and write last digit.
7919         Merge code for first post-decimal digit with code for remaining digits.
7920         Move code to write leading fractional zeros inside K<0 test which
7921         determines if any will be needed.
7922         In decimal fraction notation code, use R10 temporary instead of
7923         repeating (R * 10) twice.
7924
7925         * stdio/fwrite.c: Only fail when __stdio_check_offset fails if it
7926         failed with ESPIPE.  If offset==-1, don't change it or target.
7927
7928         * sysdeps/posix/defs.c (stdstream): Rearrange initializers, as
7929         FILE has been rearranged.  Set offset and target to -1, not 0.
7930
7931         * sysdeps/posix/stdio_init.c: If STREAM isatty, set its seek
7932         function to NULL.  Unix bites.
7933
7934         * stdio/ungetc.c: Call __flshfp if linebuf_active or put_limit>buffer.
7935
7936         * sysdeps/unix/bsd/sun/sparc/start.c [__GNUC__ < 2]: #error.
7937
7938         * time/mktime.c: Deansideclized.
7939         Don't include <errno.h> or <limits.h>; we don't need them.
7940         [DEBUG] (printtm): Made static.
7941         [HAVE_CONFIG_H]: Include "config.h".
7942         [__GNU_LIBRARY__ || HAVE_LIMITS_H]: Surround #include <limits.h>
7943         with these conditionals.
7944
7945         * time/offtime.c (__mon_lengths): Move defn to mktime.c; replace
7946         with extern decl.
7947         * time/mktime.c (__mon_lengths): Define here; remove extern decl.
7948
7949 Mon Apr 19 18:42:59 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7950
7951         * sysdeps/stub/tempname.c: New file.
7952         * sysdeps/stub/sysd-stdio.c (__stdio_gen_tempname): Moved there.
7953         * sysdeps/posix/tempname.c: New file.
7954         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Moved there.
7955
7956         * stdio/fopen.c: Don't set the offset to zero.  That can falsely
7957         give the impression that an unseekable object is seekable.
7958
7959         * stdio/internals.c (__flshfp): Discard any pushed back character
7960         first thing after sanity checks.
7961         (__flshfp): Deconditionalize code to call the output-room
7962         function; we always want to give it a chance to prime the stream.
7963         Remove code that reset bufp if put_limit==buffer.  We want to let
7964         the output-room function do that--that is priming the stream.
7965
7966 Fri Apr 16 12:24:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7967
7968         * Makerules ($(libc.a)): Depend on lib-noranlib and have ranlib
7969         command line.
7970         (lib): Just depend on $(libc.a).
7971
7972         * sysdeps/unix/bsd/sun/sparc/start.c (init_shlib): Use __environ,
7973         not environ.
7974
7975         * stdio/internals.c (__flshfp): Don't check that the buffer
7976         actually contains anything when setting the put_limit to the end of
7977         the buffer if linebuf_active.
7978         (__flshfp): To write C into the buffer !FLUSH_ONLY, don't check
7979         that bufp > buffer and get_limit == buffer.  Check against
7980         put_limit unless linebuf_active (in which case check against the
7981         real put_limit, fp->__buffer + fp->__bufsize).
7982         (__flshfp): Bother to call the output-room function if !FLUSH_ONLY
7983         or bufp > buffer and get_limit <= linebuf-corrected put_limit.
7984         (__flshfp): Check for a NULL output-room function before checking
7985         if C will fit in the buffer.
7986         (flushbuf): After putting C into the buffer,
7987         set BUFFER_WRITTEN to zero and goto end instead of returning.
7988
7989         * stdio/ungetc.c: Test STREAM->__pushed_back before flushing the
7990         STREAM if it's writable.
7991
7992         * posix/glob.c, posix/fnmatch.c: Surround code with 
7993         #if defined (_LIBC) || !defined (__GNU_LIBRARY__)
7994
7995 Thu Apr 15 19:35:59 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7996
7997         * string/tester.c (main): Added tests for strsep.
7998
7999         * sysdeps/ieee754/frexp.c: New file.
8000
8001 Wed Apr 14 12:49:10 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8002
8003         * Makerules (ar-it): Add c flag to ar commands.
8004
8005         * posix/glob.c [USG, NeXT]: Don't test these.
8006         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
8007         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
8008         [! ANSI_STRING]: Put decls of bcopy and #define of memcpy et al here.
8009
8010         * posix/fnmatch.c [HAVE_CONFIG_H]: #include "config.h".
8011
8012 Mon Apr 12 16:34:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8013
8014         * posix/glob.c: Rationalize directory header conditionals.
8015
8016 Sun Apr 11 18:53:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8017
8018         * stdio/internals.c: Remove __libc_fatal.
8019         * sysdeps/stub/sysd-stdio.c: Remove __stdio_errmsg.
8020         * sysdeps/posix/sysd-stdio.c: Likewise.
8021         * sysdeps/stub/libc_fatal.c, sysdeps/posix/libc_fatal.c: New files.
8022         * stdio/Makefile (routines): Add libc_fatal.
8023
8024         * stdio/stdio.h (FILE): Add new member `__linebuf_active' (flag).
8025         Rearranged order of members slightly.
8026         * stdio/setvbuf.c: Clear the linebuf_active flag.
8027         * stdio/fseek.c: Likewise.
8028         * stdio/internals.c (__flshfp): Test linebuf_active, not linebuf,
8029         to decide to reset put_limit before calling the output-room function.
8030         After calling it, if line-buffered, set put_limit to the
8031         beginning of the buffer and set the linebuf_active flag.
8032         (__fillbf): If linebuf_active is set, reset put_limit to the end
8033         of the buffer, and clear the flag.
8034
8035         * stdio/ungetc.c: If STREAM is writable and has something in its
8036         buffer, flush it.
8037
8038         * stdio/internals.c (__fillbf): When flushing all line-buffered
8039         streams, don't test for their put_limits being > than their
8040         buffers.  We should let __flshfp figure it out.
8041
8042         * stdio/setvbuf.c: Always set the put_limit to the beginning of
8043         the buffer.
8044
8045         * stdio/stdio.h (__putc): Rewritten to remove all knowledge of
8046         magic for line-buffered streams.  It now always calls __flshfp when
8047         the bufp hits the put_limit.
8048
8049         * stdio/fwrite.c: When recalculating BUFFER_SPACE after calling
8050         __flshfp, ignore the put_limit for the sake of line-buffered streams.
8051
8052         * stdio/fseek.c (fseek): Call __flshfp on STREAM unconditionally.
8053         We don't want to try to put the conditions for when it is
8054         necessary here as well.
8055
8056         * sysdeps/generic/printf_fp.c: When deciding whether to use %e
8057         format for %g, break out of the loop on J as soon as F reaches
8058         FPNUM; after the loop, set TYPE to 'e' if J<0, meaning we went all
8059         the way through.
8060
8061         * misc/getpass.c (TCSASOFT): Define to 0 if undefined.
8062         (getpass): Use a variable OUT to store the stream where output goes.
8063         Use a variable NREAD to notice how much was read; if the last char
8064         in the buffer is a newline, clobber it to a null terminator.
8065
8066         * posix/fnmatch.h [__cplusplus || __STDC__]: Don't #define const.
8067
8068 Thu Apr  8 19:29:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8069
8070         * stdio/tst-printf.c (main): Added some floating-point tests.
8071
8072         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: New file.
8073
8074         * sysdeps/unix/sysv/i386/__sigret.S: Moved to sysdeps/unix/i386.
8075         Use DO_CALL instead of magic.
8076
8077         * sysdeps/unix/bsd/i386/__wait3.S: Use DO_CALL instead of magic.
8078         Use scratch instead of %ecx and r1 instead of %edx.
8079
8080         * sysdeps/unix/bsd/i386/__vfork.S: Rewritten to not use SYSCALL__.
8081         Use DO_CALL instead, and save the return PC in a register around
8082         the trap.
8083
8084         * sysdeps/unix/i386/sysdep.h (DO_CALL): New macro to do syscall trap.
8085         (PSEUDO): Use it instead of putting the code here.
8086
8087         * stdio/vfprintf.c (number): Write "0x" before padding, not after.
8088
8089         * sysdeps/unix/bsd/sequent/i386/sysdep.h: New file.
8090
8091         * sysdeps/unix/bsd/__setuid.c: #include <sys/types.h>.
8092         Change argument type to uid_t.
8093         * sysdeps/unix/bsd/__setgid.c: #include <sys/types.h>.
8094         Change argument type to gid_t.
8095
8096         * sysdeps/unix/common/__getgrps.c: Restore errno after erroneous
8097         syscall failure.
8098
8099         * stdio/tst-printf.c (fp_test): New function, batch of tests from
8100         a bug report.
8101         (main): Call it.
8102
8103 Wed Apr  7 17:17:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8104
8105         * sysdeps/generic/pow.c (pow_p): Don't initialize K; was a dead store.
8106
8107 Mon Apr  5 21:17:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8108
8109         * sysdeps/unix/common/__getgrps.c: If __bsd_getgroups returns an
8110         error and SIZE==0, alloc temp space for NGROUPS_MAX elts and call
8111         it again on that, so we can find the number of groups.
8112
8113         * stdio/__vfscanf.c (input_error): If DONE is nonzero, return it;
8114         else return EOF.
8115         (%c): Don't check for C==EOF at the end; let the following spec get it.
8116         (%[eEfgG]): EOF after sign is conv_error, not input error.
8117
8118         * sysdeps/unix/common/__getgrps.c: If gid_t==int, pass LIST to
8119         __bsd_getgroups, not NULL.
8120         No error for SIZE > NGROUPS_MAX.
8121
8122 Sun Apr  4 18:52:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8123
8124         * sysdeps/unix/{bsd,sysv}/i386/Implies: Files removed.
8125         They should no longer be necessary, since configure now tries more
8126         sysdeps directory permutations.
8127
8128         * sysdeps/unix/bsd/{i386,sun/sparc,hp/m68k,ultrix4/mips}/__set[ug]id.S:
8129         Files removed.  They should no longer be necessary, since the new
8130         sysdeps scheme should find unix/bsd/__set[gu]id.c before
8131         unix/__set[gu]id.S.
8132
8133         * sysdeps/unix/i386/__pipe.S: Use r1 in place of %edx and scratch
8134         in place of %ecx.
8135         * sysdeps/unix/i386/__wait.S: Likewise.
8136         * sysdeps/unix/i386/__fork.S: Use r1 in place of %edx and r0 in
8137         place of %eax.
8138         * sysdeps/unix/i386/__vfork.S: Likewise.
8139         * sysdeps/unix/i386/sysdep.h (scratch): #define as %ecx.
8140         * sysdeps/unix/sysv/i386/linux/sysdep.h: Likewise.
8141
8142         * configure.in ($uname = generic): Set kernel_{version,release} to
8143         empty before all else.
8144         If /vmunix doesn't exist, try grovelling over /dynix instead.
8145
8146         * sysdeps/unix/Makefile (syscall.h): Double $ in sed cmd.
8147
8148 Fri Apr  2 15:15:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8149
8150         * configure.in (config_vars): New variable; text to go in config.make.
8151         Use AC_HEADER_EGREP to grovel stdarg.h for __gnuc_va_list and set
8152         stdarg.h in config_vars if we find it.
8153
8154         * sysdeps/unix/bsd/sun/sunos4/tcsendbrk.c,
8155         sysdeps/unix/bsd/sun/sunos4/tcflow.c,
8156         sysdeps/unix/bsd/sun/sunos4/tcflush.c,
8157         sysdeps/unix/bsd/sun/sunos4/tcsetattr.c,
8158         sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: New files.
8159
8160         * sysdeps/unix/Makefile (syscall.h): Add sed cmd to terminate
8161         unterminated comments at the ends of lines.
8162
8163         * sysdeps/posix/getcwd.c: Deansideclized and added four tons of
8164         portability goop.
8165
8166 Mon Mar 29 13:18:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8167
8168         * sysdeps/unix/bsd/sun/sunos4/speed.c: New file.
8169
8170         * sysdeps/generic/termbits.h: New file, contents taken from termios.h.
8171         * termios/termios.h: Remove type & macro defns; #include <termbits.h>.
8172         [__OPTIMIZE__] (cf[gs]et[io]speed): Remove macro versions.  They
8173         just cause trouble because they want to be in termbits.h (since
8174         they are sysdep) and also to come after the prototypes (which must
8175         come after termbits.h to get speed_t and struct termios defined).
8176         The optimization was insignificant anyway.
8177         * termios/speed.c: Moved to sysdeps/generic.
8178
8179         * termios/cfsetspeed.c: Call cfset[io]speed, rather than doing it
8180         ourselves.
8181
8182         * time/__tzset.c (tz_rule): Make member `secs' not a bitfield.
8183         (compute_change): Complete rewrite; code basically stolen from
8184         localtime3/localtime.c:transtime.
8185         #include "tzfile.h" for SECSPERDAY; #define NOID first.
8186
8187         * sysdeps/unix/bsd/i386/__vfork.S: Don't try to #include __fork.S.
8188         Instead, copy that code here and change `fork' to `vfork'.
8189
8190         * Makeconfig (+default_cflags): Rename to default_cflags.
8191         (+cflags): Use that name.
8192
8193         * Makefile (configure): New rule.
8194
8195 Sun Mar 28 16:12:33 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8196
8197         * posix/fnmatch.c (case '*'): Before final loop, fold C1, rather
8198         than foling *P before it goes into C1.  C might need folding instead.
8199
8200         * posix/Makefile (tests): Add testfnm.
8201         * posix/testfnm.{c,args}: New files.
8202
8203 Fri Mar 26 15:04:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8204
8205         * time/mktime.c: Wholly new implementation from Noel Cragg.
8206
8207         * sysdeps/unix/bsd/sun/__sigret.S: New file.
8208         * sysdeps/unix/bsd/sun/m68k/{Makefile,Dist}: New files.
8209         * sysdeps/unix/bsd/sun/m68k/{sigcontext.h,sigtramp.c}: New files.
8210         * sysdeps/unix/bsd/sun/sparc/__sigvec.S: Moved to sysdeps/unix/bsd/sun.
8211
8212         * Makefile (clean): Remove sysd-Makefile, sysd-dirs, sysdirs
8213         (distclean): New target.
8214         * sysdeps/unix/common/Makefile (generated): Add local_lim.h,
8215         mk-local_lim, glue-ctype, glue-ctype.c, siglist.c, make_siglist.
8216         * sysdeps/generic/Makefile (generated): Add bytesex.h,
8217         det_endian, siglist.c, make_siglist.
8218         * sysdeps/unix/Makefile (generated): Add errnos.h, errnos,
8219         make-errnos, make-errnos.c, ioctls.h, ioctls, make-ioctls,
8220         make-ioctls.c, errlist.c, make_errlist, syscall.h, sys/param.h,
8221         param.h.c, param.h.dep, $(sys/param.h-includes).
8222
8223         * misc/Makefile (extra-objs): Define new var to include bsd-compat.o.
8224
8225 Fri Mar 26 14:53:30 1993  Michael John Haertel  (mike@skinner.cs.uoregon.edu)
8226
8227         * malloc/malloc.c (malloc): Start searching at _heapindex, not
8228         MALLOC_SEARCH_START.
8229         * malloc/malloc.h (MALLOC_SEARCH_START): Macro removed.
8230         * malloc/realloc.c (realloc): When malloc returns NULL, handle the
8231         case of the block we need to unfree (which was just freed) having
8232         been coalesced with its neighbors.
8233
8234 Thu Mar 25 13:40:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8235
8236         * Rules (all): Depend on others.
8237
8238         * time/Makefile (zonenames): Change target to $(objpfx)zonenames.
8239         Make the generated file prepend $(objpfx) to 
8240         Include that instead of zonenames.
8241         (zones-%): Change target to $(objpfx)zones-%.
8242
8243         * Makefile ($(objpfx)Mcrt1.o): Put temporary Mcrt1.c file in
8244         $(objdir), rather than the current directory.
8245
8246         * configure.in (arg parsing): Recognize `--exec-prefix' rather
8247         than `--exec_prefix'.
8248
8249         * Rules (mostlyclean): Remove the .o files for $(tests) and $(others).
8250         Remove $(objpfx)depend-$(subdir).
8251         (clean): Remove $(extra-objs).
8252         * Makefile (clean): Remove $(install-lib) from $(objdir).
8253         Don't try to remove ansi/ and trad/ or dist.tar or lint.out.
8254         Remove $(objpfx)depend-.
8255         * time/Makefile (extra-objs): Define new var.
8256         * malloc/Makefile (extra-objs): Likewise.
8257
8258         * Rules (+objs): Variable removed.
8259         (clean): Use $(objects) in place of $(+objs).
8260
8261         * sysdeps/unix/Makefile (sys/param.h-includes): Move all this
8262         outside of ifeq ($(subdir),misc).
8263         Fixed sed command to filter out [hn]to[nh][sl].
8264         (sys/param.h-includes): New target; dep on $(sys/param.h-includes).
8265
8266         * posix/fnmatch.h [!_POSIX_C_SOURCE || ...]: Make this test
8267         _GNU_SOURCE, not _BSD_SOURCE; these are our extensions, not theirs.
8268         (FNM_CASEFOLD): New bit.
8269         (__FNM_FLAGS): Removed macro.
8270         * posix/fnmatch.c (fnmatch): Don't test for bogus flag bits; who cares?
8271         (FOLD): New macro to casefold a char if FNM_CASEFOLD.
8272         Use it to fold all chars before comparison.
8273
8274 Wed Mar 24 16:09:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8275
8276         * malloc/Makefile (malloc/%.c, malloc/%.h): Rules removed.
8277
8278         * stdio/stdio.h (fopencookie): Rename parameter IO_FUNCTIONS to
8279         IO_FUNCS.  The former conflicted with a typedef name, which ist
8280         verboten.
8281
8282         * time/sys/time.h (enum __itimer_which): Remove trailing comma.
8283
8284 Mon Mar 22 15:35:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8285
8286         * malloc/malloc.h [_MALLOC_INTERNAL]
8287         [__GNU_LIBRARY__ || STDC_HEADERS || USG] (memmove): Define in
8288         terms of bcopy.
8289         * malloc/malloc/gmalloc-head.c: Redo previously undone change.
8290
8291 Thu Mar 18 04:59:21 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
8292
8293         * malloc/malloc/gmalloc-head.c: Undo previous change.
8294
8295 Wed Mar 17 12:22:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8296
8297         * mach/mach.h: New file.
8298
8299         * Rules (clean): Remove $(generated), not $(clean-extras).
8300         (subdir_echo-distinfo): Use $(generated) instead of $(dont_distribute).
8301         (generated): Export this instead of dont_distribute.
8302         * stdlib/Makefile (generated): Set this, not dont_distribute.
8303         * sysdeps/posix/Makefile: Likewise.
8304         * sysdeps/unix/sysv/Makefile: Likewise.
8305         * sysdeps/unix/Makefile: Likewise.
8306         * Makefile (generated): Export this instead of dont_distribute.
8307         (parent_echo-distinfo): Use $(generated) instead of $(dont_distribute).
8308         * Make-dist (+tsrcs): Filter out $(generated), not $(dont_distribute).
8309
8310         * mach/mach_init.h (__mach_task_self): Define so as not an lvalue.
8311         (mach_task_self): Surround defn with parens.
8312
8313         * sysdeps/unix/Makefile (sys/param.h): Put "#include <endian.h>" in.
8314         ($(sys/param.h-includes)): Edit out #define's of *_ENDIAN and
8315         BYTE_ORDER.
8316
8317         * stdlib/tst-strtol.c (tests): Fully bracket initializers.
8318
8319         * stdio/bug4.c: Change #ifdef LIBC to #ifdef _LIBC.
8320
8321         * misc/progname.c (set_progname): Make a useless reference to
8322         set_progname to avoid a `defined but not used' warning.
8323
8324         * sysdeps/mach/i386/start.c (_cthread_{init,exit}_routine): Remove
8325         `extern'; these want to be uninitialized common defns.
8326
8327 Mon Mar 15 18:41:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8328
8329         * sysdeps/unix/bsd/__times.c (timeval_to_clock_t): Put __inline
8330         before storage class in defn.
8331
8332         * sysdeps/unix/sysv/signum.h (SIG_ERR, SIG_DFL, SIG_IGN): Cast
8333         values to __sighandler_t, rather than obsolete ansidecl magic.
8334
8335         * sysdeps/unix/__execve.S [!SYS_execve && SYS_exece]: Define
8336         SYS_execve to be SYS_exece.
8337
8338         * sysvipc: New directory.
8339         * sysvipc/Makefile: New file.
8340         * sysvipc/sys/ipc.h: New file.
8341
8342 Fri Mar 12 15:31:44 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8343
8344         * posix/execlp.c (execlp): Remove spurious second declared parameter.
8345         Don't fill ARGV[0] specially; just let the loop do it.
8346         * posix/unistd.h (execlp): Remove spurious second declared parameter.
8347
8348 Thu Mar 11 13:58:47 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8349
8350         * Makerules (sysd-Makefile): Write %.dep: %.S and %.dep: %.c rules.
8351         Depend on Makerules.
8352         ($(objpfx)%.{o,dep}: $(objpfx)/%.{S,c,s}): New rules to find
8353         sources in $(objpfx) before sysdep directories.
8354
8355         * configure.in (signed size_t check): Use eval on $CPP, since it
8356         contains unexpanded variable refs.
8357         Send grep output to /dev/null.
8358         Put quotes around 'unsigned long int'.
8359
8360 Wed Mar 10 18:32:11 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8361
8362         * features.h [! _LIBC]: #include <stubs.h>.
8363         * Makerules (stubs): New phony target.
8364         ($(common-objpfx)stub-$(subdir)): New target.
8365         * Makefile (headers): Add stubs.h.
8366         ($(objpfx)stubs.h): New target.
8367
8368         * Makeconfig (CPPFLAGS): Define _LIBC, not LIBC.
8369
8370         * Makerules (.SUFFIXES): Remove .m4; we no longer have any such files.
8371
8372         * inet/netinet/in.h: Don't #include <inet-cvt.h>.
8373         (ntohl, ntohs, htonl, htons): Declare.
8374         #include <endian.h>.
8375         [__BYTE_ORDER == __BIG_ENDIAN] (ntohl, ntohs, htonl, htons):
8376         Define no-op macros.
8377         * inet/Makefile (headers): Remove inet-cvt.h.
8378         * sysdeps/vax/inet-cvt.h, sysdeps/generic/inet-cvt.h: Files removed.
8379         * sysdeps/generic/{ntohl,ntohs,htonl,htons}.c
8380         [BYTE_ORDER == LITTLE_ENDIAN]: Byte-swap X before returning it.
8381
8382 Tue Mar  9 11:32:35 1993  Jim Blandy  (jimb@wookumz.gnu.ai.mit.edu)
8383
8384         * malloc/malloc/gmalloc-head.c: Remove #definitions of memset,
8385         memcpy, and memmove; this is taken care of by malloc.h anyway.
8386
8387 Mon Mar  8 15:12:32 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8388
8389         * sysdeps/mips/jmp_buf.h (JB_PC): Protect with #ifdef __USE_MISC.
8390
8391         * sysdeps/unix/sysv/sysv4/sigaction.h: Put SA_* except for
8392         SA_NOCLDSTOP inside #ifdef __USE_MISC.
8393
8394 Mon Mar  8 15:05:13 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
8395
8396         * sysdeps/mips/jmp_buf.h (jmp_buf): Use `__ptr_t', not `PTR', for
8397         member types.
8398         (JB_PC): New define, for backwards compatability with Ultrix.
8399
8400         * sysdeps/unix/sysv/sysv4/sigaction.h: New file.
8401
8402 Mon Mar  8 13:20:02 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8403
8404         * posix/glob/Makefile.in (VPATH): Set this to @srcdir@.
8405         (srcdir): Set this to $(VPATH).
8406
8407         * posix/glob.c (glob): In no matches with GLOB_NOCHECK set case,
8408         add NULL terminator to PGLOB->gl_pathv.
8409         (prefix_array): Renamed arg PREFIX to DIRNAME, local var PRELEN to
8410         DIRLEN.  If DIRNAME is just "/", don't prepend it, so we get
8411         "/foo" instead of "//foo".
8412         (glob): Move qsort call outside of the else clause of the
8413         glob_pattern_p test; it should always be done.
8414
8415 Thu Feb 25 14:49:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8416
8417         * malloc/malloc.h [_MALLOC_INTERNAL]: Move #include <stdio.h> to
8418         front of file; it needs to come before size_t/ptrdiff_t frobnication.
8419
8420 Wed Feb 24 16:34:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8421
8422         * Makerules (compile-command.[Ssc]): New variables; define them if
8423         they are not already defined.
8424         (sysd-Makefile): For each directory, write three rules:
8425                 %.o: $dir/%.[Ssc]; $(compile-command.[Ssc]).
8426         (sysdep_path): Remove definition and vpath directives.
8427         * sysdeps/m68k/Makefile (compile-command.S): Define our own version.
8428         ($(objpfx)%.o: %.S): Rule removed.
8429
8430         * sysdeps/unix/sysv/linux/{__dup2,__mkdir,__rmdir,__setpgrp}.S:
8431         Removed.
8432         * sysdeps/unix/sysv/linux/Implies: Created; implies unix/common.
8433
8434         * sysdeps/unix/sysv/sysv4/{sete[gu]id.S,fchdir.S,signum.h,__sigproc.S}:
8435         New files.
8436
8437         * sysdeps/unix/sysv/sysv4/time.S: New file.
8438
8439         * sysdeps/unix/common/Dist: New file; everything from
8440         sysdeps/unix/bsd/Dist except for bsdtty.h and bsddir.h.
8441         * sysdeps/unix/bsd/Dist: Remove things now in sysdeps/unix/common/Dist.
8442
8443         * sysdeps/unix/bsd/sun/sparc/{__brk.c,__fork.S,__pipe.S,__vfork.S}:
8444         Moved to new directory sysdeps/unix/sparc.
8445
8446         * sysdeps/unix/common/Implies: New file, in new directory; implies
8447         unix/inet only.
8448         * sysdeps/unix/bsd/Implies, sysdeps/unix/sysv/sysv4/Implies: New
8449         files; both imply unix/common.
8450         * sysdeps/unix/common/Makefile: Moved from sysdeps/unix/bsd.
8451         Changed references to unix/bsd to unix/common.
8452         * unix/bsd/{__access.S,__adjtime.S,__fchmod.S,__fchown.S,__getgrps.c,
8453         __getitmr.S,__getpgrp.S,__getrusag.S,__gettod.S,__lstat.S,__mkdir.S,
8454         __readlink.S,__rmdir.S,__setitmr.S,__setpgrp.S,__symlink.S,
8455         bsd_getgrp.S,closedir.c,ftruncate.S,getrlimit.S,glue-ctype.c,
8456         make_siglist.c,mk-local_lim.c,opendir.c,readv.S,rename.S,rewinddir.c,
8457         seekdir.c,setgroups.S,setrlimit.S,telldir.c,truncate.S,vhangup.S,
8458         writev.S,__dup2.S}: Moved to sysdeps/unix/common.
8459         * sysdeps/unix/sysv/sysv4/{__access.S,closedir.c,opendir.c,
8460         rewinddir.c,seekdir.c,telldir.c}: Removed.
8461
8462 Mon Feb 22 12:19:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8463
8464         * sysdeps/generic/pow.c (pow): Use __isnan to test for NaN rather
8465         than expecting "x!=x" to work.
8466         (pow_p): When testing if Y is an integer, use long int rather than
8467         int; they are different on some systems.  Compare against
8468         LONG_MIN+1, not LONG_MIN; (long int) (double) LONG_MIN might overflow.
8469
8470         * malloc/dist-Makefile (gmalloc.c): Depend on Makefile.
8471
8472         * malloc/Makefile (gmalloc-routines): New variable.
8473         (dist-routines): Use it.
8474         (malloc/Makefile): Also replace <GMALLOC-SOURCES> with
8475         $(gmalloc-routines).
8476         (malloc/Makefile): Make it unwritable to avoid accidental lossage.
8477         Depend on Makefile.
8478
8479         * malloc/dist-Makefile (gmalloc): New variable: <GMALLOC-SOURCES>.
8480         (gmalloc.c): Use $(gmalloc), not $(sources).
8481         Make the file unwritable to avoid accidental lossage.
8482
8483         * malloc/mtrace.c: Don't #include <stdio.h> because <malloc.h> did
8484         it for us.
8485
8486         * malloc/valloc.c [! __GNU_LIBRARY__]: Replace hairy conditionals
8487         with #include "getpagesize.h".
8488         * malloc/Makefile (distribute, malloc-dist): Add getpagesize.h.
8489
8490 Sun Feb 21 18:29:30 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8491
8492         * sysdeps/sparc/Makefile (nodist-routines): Don't define.
8493         We want to distribute the generated divrem files; otherwise anyone
8494         building the library must have an m4 that works.
8495         ($(divrem).S): Put these in sysdeps/sparc, not in $(objdir).
8496         (routines): Only put this inside ifeq ($(subdir),gnulib).
8497
8498         * sysdeps/unix/bsd/sun/m68k/Makefile: File removed.
8499
8500 Sat Feb 20 16:43:55 1993  Torbjorn Granlund  (tege@sics.se)
8501
8502         * sysdeps/i386/memset.c: Move adjustment of LEN before first stosb.
8503         * sysdeps/i386/bzero.c: Likewise.
8504
8505 Thu Feb 18 14:34:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8506
8507         * malloc/mcheck.c (checkhdr): Use `const', not `__const'.
8508
8509 Mon Feb  1 19:19:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8510
8511         * sysdeps/m68k/fpu/__logb.c: Use two-operand forms of 68881 insns
8512         rather than the one-operand source==dest form.  Sun's sun3
8513         assembler apparently doesn't grok the one-operand form.
8514
8515         * sysdeps/posix/getcwd.c: Call __lstat instead of stat.
8516         We should not lose on nonexistent symlink targets.
8517
8518 Thu Jan 21 20:12:25 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8519
8520         * posix/glob.c: Put #includes of <glob.h> and <fnmatch.h> after
8521         all system includes, in case one of them has conflicting defns of
8522         FNM_* or GLOB_*, so we will redefine.  #undef FNM_* and GLOB_*
8523         before including our headers.
8524
8525 Tue Jan 19 16:16:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8526
8527         * mach/Makefile (routines): Removed __bcopy.
8528         * mach/__bcopy.c: File removed.
8529
8530         * posix/glob.c (my_realloc): Cast result of malloc/realloc to (char *).
8531
8532 Sat Jan 16 14:19:07 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
8533
8534         * manual/summary.awk: Handle single word in braces.
8535
8536 Thu Jan 14 13:52:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8537
8538         * posix/glob/Makefile.in (realclean): Remove Makefile.
8539
8540 Mon Jan 11 18:32:56 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8541
8542         * sysdeps/unix/bsd/sony/m68k/Implies: Imply unix/bsd/hp/m68k, not
8543         unix/hp/m68k.
8544
8545         * sysdeps/unix/bsd/tcsetattr.c: Use cbreak mode if ISIG is set,
8546         not if OPOST is set.
8547         Fixed typo in TOSTOP frobbing.
8548
8549 Tue Jan  5 15:11:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8550
8551         * posix/Makefile (glob.tar): Include glob/configure.in.
8552
8553 Mon Jan  4 17:05:44 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8554
8555         * posix/glob/Makefile.in (RANLIB): Define to @RANLIB@.
8556         (RANLIB_TEST): Removed.
8557         (libglob.a): Don't use it.
8558
8559 Thu Dec 31 13:08:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8560
8561         * sysdeps/unix/bsd/bsd4.4/{chflags,fchflags,setlogin}.S: Fix arg count.
8562
8563         * sysdeps/posix/Makefile (mk-stdiolim): Use $(cded-objdir-CPPFLAGS).
8564         (cded-objdir-CPPFLAGS): Define new var.
8565
8566         * sysdeps/unix/Makefile ($(sys/param.h-includes)): Strip trailing
8567         slash from directory name for mkdir.
8568
8569 Tue Dec 29 18:18:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8570
8571         * sysdeps/posix/sysd-stdio.c (exists): Return true if stat fails
8572         with other than ENOENT.
8573
8574         * sysdeps/posix/__flock.c: New file.
8575
8576         * malloc/Makefile (dist-headers): Define to malloc.h.
8577         (headers): Replace malloc.h with $(dist-headers).
8578         (malloc/Makefile): Use $(dist-headers) in place of $(headers).
8579         (malloc-dist, distribute): Replace ChangeLog with OChangeLog.
8580
8581         * malloc/dist-Makefile (malloc.tar{,.Z}): Depend on FORCE.
8582         (FORCE): Define empty target.
8583
8584 Tue Dec 29 16:45:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8585
8586         * sysdeps/sparc/{umul,mul}.S: Use tege's shift+mask hack to avoid
8587         a test and branch for sign fixup.
8588
8589         * limits.h [__GNUC__ >= 2]: #ifndef _GCC_LIMITS_H_, not _LIMITS_H_,
8590         to #include_next <limits.h>.
8591
8592         * sysdeps/posix/getcwd.c: Call closedir after copying from the
8593         `struct dirent' buffer, not before.  That buffer is freed by closedir.
8594
8595         * posix/gnu/types.h (__fd_set): Renamed member to `fds_bits' for
8596         compatibility with braindead extant code.
8597
8598         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Check for BUF
8599         being too small before doing sprintf.
8600
8601         * malloc/malloc.h [_MALLOC_INTERNAL], malloc/valloc.c
8602         [HAVE_CONFIG_H]: #include "config.h".
8603
8604         * Makefile (doc): Removed rule.
8605         (dvi, info): New rule.
8606
8607 Mon Dec 28 15:50:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8608
8609         * posix/glob.c [HAVE_CONFIG_H]: Test this, not SHELL, to decide
8610         whether or not we want to #include "config.h".
8611
8612 Wed Dec 16 12:01:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8613
8614         * inet/Makefile (routines): Removed ruserpass.  Why did it get
8615         included in the first place?  That version does not match the one
8616         in the NET2 ftp source; whence came it?
8617
8618 Sat Dec 12 16:41:03 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8619
8620         * sysdeps/unix/bsd/sun/sparc/start.c: Use .set, not GNU ld magic,
8621         to alias asm symbol `start' to `__start'.
8622
8623 Fri Nov 20 18:20:50 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8624
8625         * stdio/vfprintf.c (%p): Tests of LEFT for "(nil)" were inverted.
8626
8627         * stdio/tst-printf.c (main): Add `printf ("%#03x\n", 1);'.
8628         Add a width to %p test.
8629
8630         * stdio/vfprintf.c (unsigned_integer): Clear SHOWSIGN and SPACE
8631         flags before falling into `number:'.  The `+' and ` ' flags are
8632         only meaningful for signed numbers.
8633
8634         * string/tester.c (main): For strstr #11, correct return is first
8635         arg, not end of first arg.
8636
8637         * stdlib/mbtowc.c: If S is "", return 0.  How was I convinced
8638         before that this is not what ANSI says?
8639
8640         * stdio/__vfscanf.c: Initialize MALLOC_STRING to zero on each
8641         iteration (when we zero is_short et al).
8642
8643         * sysdeps/posix/mkstemp.c (mkstemp): New file.
8644         * sysdeps/stub/mkstemp.c (mkstemp): New file.
8645         * misc/Makefile (routines): Add mkstemp.
8646
8647         * sysdeps/posix/mktemp.c: Use `getpid ()' in place of undefined
8648         variable PID.
8649         #include <sys/stat.h>.
8650
8651         * dirent/scandir.c: If SELECT is nil, don't try to call it.
8652         If CMP is nil, don't sort.
8653
8654 Wed Nov 18 13:42:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8655
8656         * sysdeps/stub/__wait4.c: Changed type of 2nd arg to __WAIT_STATUS.
8657
8658         * posix/sys/wait.h (__WAIT_STATUS): #if 0 out gcc2 magic defn.
8659         GCC is broken as of 2.3.1.
8660
8661         * signal/signal.h (__sigaction, sigaction): Fixed type in
8662         prototype from `struct __sigaction' to `struct sigaction'.
8663
8664         * sysdeps/m68k/fpu/atan2.c (PI, PIo4, PIo2): Removed static vars.
8665         (atan2): Declare PIo4 and PIo2 locally, and compute them from pi.
8666
8667         * Makerules (native-CFLAGS): Define as $(config-defines).
8668
8669         * sysdeps/unix/bsd/glue-ctype.c: Upcased all HAVE_* names in #ifdef's.
8670
8671         * posix/fnmatch.h (FNM_LEADING_DIR): New flag.
8672         * posix/fnmatch.c (fnmatch): Support it.
8673
8674         * sysdeps/i386/bytesex.h: New file.
8675         * sysdeps/i386/endian.h: Removed.
8676         * sysdeps/stub/bytesex.h: New file.
8677         * sysdeps/stub/endian.h: Removed.
8678         * sysdeps/generic/Makefile (bytesex.h): Create with det_endian.
8679         (endian.h): Removed old rule.
8680         (before-compile): Replace endian.h with bytesex.h.
8681         * string/Makefile (headers): Add bytesex.h.
8682         * string/endian.h: New file.
8683         * sysdeps/generic/det_endian.c: Rewritten to output just one line,
8684         a #define of __BYTE_ORDER to 1234, or 4321, etc.
8685         * inet/arpa/nameser.h: #include <endian.h>, rather than #ifdef'ing
8686         on misc. things to #define BYTE_ORDER.
8687         * sysdeps/generic/waitstatus.h: Test value of __BYTE_ORDER, not
8688         whether __LITTLE_ENDIAN is #define'd.
8689         * sysdeps/generic/mathimpl.h: Likewise.
8690         * sysdeps/generic/memcopy.h: Likewise.
8691         * sysdeps/ieee754/huge_val.h: Likewise.
8692         * sysdeps/ieee754/nan.h: Likewise.
8693         * sysdeps/ieee754/ieee754.h: Likewise.
8694
8695 Mon Nov 16 12:19:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8696
8697         * Makeconfig (ARCH): Define to empty if $(..)config.make exists.
8698
8699         * misc/getusersh.c (initshells): malloc (STATB.st_size + 1), to
8700         contain the terminating NUL.  Pass fgets the real amount of space
8701         left in the buffer, instead of the random number (MAXPATHLEN + 1).
8702
8703         * configure.in (minix*): base_os=unix/sysv.
8704         * sysdeps/unix/sysv/minix/sigaction.h: New file.
8705
8706         * sysdeps/generic/sigaction.h (__SA_*): Renamed to SA_*.
8707         [__USE_BSD]: Put all but SA_NOCLDSTOP under this #ifdef.
8708         * signal/signal.h (SA_*): Remove #define's.
8709         (SIG_*): Moved #define's to sigaction.h.
8710
8711         * sysdeps/generic/sigset.h (__sigmask): Shift ((sigset_t) 1), not
8712         just 1.
8713
8714         * signal/signal.h (kill): Fix type of first arg to __pid_t, not int.
8715
8716         * sysdeps/unix/Makefile (errnos): Changed regexp to disallow
8717         E[^A-Z0-9], and not to require that the defn be numeric only.
8718
8719         * stdlib/stdlib.h: Don't #include <huge_val.h>; ANSI doesn't say
8720         <stdlib.h> defines HUGE_VAL.
8721
8722         * stdlib/stdlib.h (__compar_fn_t): Use __P around prototype.
8723
8724         * posix/Makefile (headers): Add utsnamelen.h, so it gets installed.
8725         (distribute): Remove it from here.
8726
8727         * setjmp/setjmp.h (sigjmp_buf): Rename `__savemask' to
8728         `__mask_was_saved' and `__sigmask' to `__saved_mask'.
8729         * setjmp/sigjmp_save.c (__sigjmp_save): Change use.
8730         * setjmp/siglongjmp.c (siglongjmp): Likewise.
8731
8732 Fri Nov 13 17:34:00 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8733
8734         * configure.in (config.make): Write assignments for INSTALL,
8735         INSTALL_PROGRAM, INSTALL_DATA, and RANLIB.
8736
8737 Thu Nov 12 17:11:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8738
8739         * sysdeps/stub/stime.c: #include <stddef.h> for NULL.
8740
8741         * sysdeps/stub/morecore.c: Fixed arg type to ptrdiff_t.
8742
8743         * sysdeps/stub/ptrace.c: Fixed `va_start' uses to pass 2nd arg.
8744
8745         * sysdeps/unix/sysv/sysv4/fcntlbits.h: New file, modified from
8746         unix/bsd/sun/sunos4 version.
8747
8748         * sysdeps/unix/bsd/bsd4.4/fcntlbits.h: New file, modified from
8749         unix/bsd version.
8750
8751         * sysdeps/unix/bsd/ultrix4/fcntlbits.h: New file, modified from
8752         unix/bsd version.
8753
8754         * sysdeps/unix/bsd/sun/sunos4/fcntlbits.h: New file, modified from
8755         unix/bsd version.
8756
8757         * sysdeps/unix/sysv/fcntlbits.h: Rewritten from stub version.
8758         * sysdeps/unix/sysv/filebits.h: File removed.
8759
8760         * sysdeps/unix/bsd/fcntlbits.h: Rewritten from stub version.
8761         * sysdeps/unix/bsd/filebits.h: File removed.
8762
8763         * io/fcntl.h: Don't #include <filebits.h>.
8764         Removed all #define's of foo to __foo; <fcntlbits.h> now defines
8765         the unmarked cases.
8766
8767         * sysdeps/stub/fcntlbits.h: Remove leading __ from all symbols.
8768
8769         * misc/sys/file.h (L_SET, L_INCR, L_XTND): Define to literal
8770         values, not to __ versions.  These are not system-dependent.
8771         (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Define to literal values,
8772         not to __ versions.  These are not actually system-dependent,
8773         because no system has `flock' except for BSD compatibility, and
8774         then they use the same numbers.
8775         * sysdeps/stub/fcntlbits.h (__L_SET, __L_INCR, __L_XTND): Removed.
8776         (__LOCK_SH, __LOCK_EX, __LOCK_UN, __LOCK_NB): Removed.
8777
8778 Tue Nov 10 17:01:11 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8779
8780         * sysdeps/stub/fcntlbits.h: Merged in contents of filebits.h.
8781         (struct __flock): Renamed to `struct flock'.
8782         * sysdeps/stub/filebits.h: File removed.
8783
8784         * posix/unistd.h (access, lseek, close, read, write, pipe, chown,
8785         fchown, chdir, dup, dup2, execve, pathconf, fpathconf, sysconf,
8786         getpid, getppid, setpgrp, setpgid, setsid, getuid, getgid,
8787         geteuid, getegid, setuid, setreuid, setgid, setregid, fork, vfork,
8788         isatty, link, symlink, readlink, unlink, rmdir, gethostname,
8789         getpagesize, getdtablesize): Remove #define's to __ versions.
8790
8791         * posix/sys/types.h: Don't #include <gnu/time.h>.
8792         Instead, use forward decl `struct timeval;'.
8793         (__select): Use `struct timeval', not `struct __timeval', in prototype.
8794         Move into #ifdef __USE_BSD.
8795         (select): Removed #define to __select; added real prototype.
8796
8797         * sysdeps/generic/waitstatus.h: New file.
8798         * sysdeps/stub/waitflags.h: New file.
8799         * sysdeps/unix/bsd/waitflags.h: New file.
8800         * posix/sys/wait.h: Don't #include <gnu/wait.h>.
8801         Do #include <waitflags.h> and <waitstatus.h>.
8802         (WHOHANG, WUNTRACED): Don't #define to __ versions; <waitflags.h>
8803         will define the unmarked cases.
8804         (union __wait): Remove type decl and associated #define's for w_*;
8805         `union wait' (no __) is now defined in <waitstatus.h>.
8806         [__USE_BSD && __GNUC__ >= 2] (__WAIT_STATUS): Define as funky union.
8807         (waitpid, wait3, wait4, wait): Removed #define's to __ versions;
8808         added real prototypes.
8809         * posix/gnu/wait.h: File removed.
8810         * posix/Makefile (headers): Remove gnu/wait.h.
8811
8812         * posix/sys/times.h [__OPTIMIZE__] (times): Removed #define to __times.
8813
8814         * posix/sys/utsname.h: Removed decl of __uname_getnode.
8815
8816         * time/sys/time.h: Don't #include <gnu/time.h>.
8817         Don't support __need_timeval.
8818         (struct timeval, struct timezone, struct itimerval,
8819         enum __itimer_which): Declare these types here.
8820         (gettimeofday, settimeofday, adjtime, getitimer, setitimer,
8821         utimes): Removed #define's to __ versions.  Added real prototypes.
8822         Use `struct timeval' instead of `struct __timeval', etc.
8823         * time/gnu/time.h: File removed.
8824         * time/Makefile (headers): Removed gnu/time.h.
8825
8826         * resource/sys/resource.h: Don't #include <gnu/time.h>.
8827
8828 Mon Nov  9 18:41:03 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8829
8830         * socket/sys/socket.h (SO_STYLE): Define instead of SO_TYPE.
8831         (SO_TYPE): Define as SO_STYLE.
8832
8833         * inet/netinet/in.h (struct ip_opts): New type.
8834         (IP_*): New constants snarfed from 4.4's in.h.
8835
8836 Fri Nov  6 15:34:41 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8837
8838         * resource/sys/resource.h (struct rusage): #include <sys/time.h>
8839         before struct defn.  Use `struct timeval', not `struct __timeval'
8840         for `ru_utime' and `ru_stime' members.
8841
8842         * resource/sys/resource.h [__OPTIMIZE__] (getrusage, ulimit),
8843         misc/sys/ioctl.h [__OPTIMIZE__] (ioctl): Remove #define's to __
8844         versions.
8845
8846         * string/strings.h: Protect against multiple inclusion.
8847         * termios/sys/termios.h: Ditto.
8848
8849         * string/string.h [__GNUC__ && __OPTIMIZE__] (ffs): Remove #define
8850         to __builtin_ffs.
8851
8852         * stdlib/stdlib.h (comparison_fn_t): Use a typedef, not a #define.
8853         Define this #ifdef __USE_GNU, not #ifdef __GNUC__.
8854         [__GNUC__ && __OPTIMIZE__] (abs, labs): Remove #define's to __builtin_.
8855
8856 Thu Nov  5 20:01:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8857
8858         * signal/Makefile (headers): Remove gnu/signal.h;
8859         add sigaction.h, sigset.h.
8860         * sysdeps/generic/sigaction.h: New file.
8861         * sysdeps/generic/sigset.h: New file.
8862         * signal/gnu/signal.h: Removed.
8863         * signal/signal.h: Move __{BEGIN,END}_DECLS outside all the #if's
8864         (except the outermost one that protects against multiple inclusion).
8865         Don't #include <gnu/signal.h>.  Instead #include <sigset.h>
8866         outside of #if's, and #include <sigaction.h> inside #ifdef __USE_POSIX.
8867         (__sighandler_t): Define here; it is not system-specific.
8868         (kill, ssignal, gsignal, sigblock, sigsetmask, sigpause, sigvec,
8869         sigreturn): Remove #define's to __ versions.
8870         (sighandler_t, sigset_t): Use a typedef, not a #define.
8871         [__OPTIMIZE__] (sig{empty,fill,add,del}set, sigismember): Make
8872         these macros take args.
8873         (sigaction): Remove #define.
8874         (struct __sigvec): Renamed `struct sigvec'.
8875         (__sigvec): Use `struct sigvec', not `struct __sigvec', in prototype.
8876
8877 Fri Oct 30 19:45:26 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8878
8879         * configure.in (sco*): base_os=unix/sysv.
8880
8881 Thu Oct 29 16:29:26 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8882
8883         * configure.in: New file; mostly contents of old file `configure'.
8884         (srcdir guessing): Removed this code.
8885         Instead, call AC_PREPARE.
8886         Call AC_PROG_INSTALL and AC_PROG_RANLIB to find those programs.
8887         Use AC_HAVE_FUNCS to find what sys_siglist and _ctype_ are called.
8888         (config.make): Write new var `config-defines' with what autoconf
8889         put in $DEFS.
8890         Append -DHAVE_GNU_LD and -DHAVE_GNU_AS to DEFS if appropriate;
8891         don't write gnu_ld and gnu_as variables.
8892         * configure: Removed.
8893         * Makefile (distribute): Add configure.in.
8894         * Makeconfig (+defines): Include $(config-defines) before $(defines);
8895         don't include $(gnu_as) and $(gnu_ld).
8896
8897         * sysdeps/unix/bsd/glue-ctype.c (TABLE): Test HAVE_* for several
8898         different names and #define this.
8899         (STRINGIFY): Define macro.
8900         (main): Use TABLE instead of hardcoded name.
8901
8902         * configure (sysnames): Try successively less specific base os's.
8903
8904         * Makerules (ar-it): Define commands only ifdef objects.
8905
8906         * sysdeps/mips/setjmp.S: Jump to __setjmp_aux, not ___setjmp_aux.
8907         We are NO_UNDERSCORES.
8908
8909 Tue Oct 27 18:11:19 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8910
8911         * sysdeps/posix/pipestream.c, sysdeps/posix/system.c: Always use
8912         __vfork instead of expecting FORK to be defined.
8913         * sysdeps/unix/bsd/system.c, sysdeps/unix/bsd/pipestream.c:
8914         Removed.  sysdeps/unix versions are now what we want.
8915
8916         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Removed.
8917         * sysdeps/unix/bsd/hp/m68k/__wait.S: Moved to unix/bsd/m68k.
8918
8919         * sysdeps/unix/bsd/hp/m68k/{__pipe,sysdep}.S: Moved to unix/bsd/m68k.
8920         * sysdeps/unix/bsd/sun/m68k/{__pipe,sysdep}.S: Removed.
8921
8922         * sysdeps/unix/bsd/sun/m68k/start.c: Moved to unix/bsd/m68k.
8923         * sysdeps/unix/bsd/sony/m68k/start.c: Removed.
8924
8925         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Correct file name in #include.
8926
8927         * sysdeps/unix/bsd/sun/m68k/__fork.S: Removed.
8928         * sysdeps/unix/bsd/hp/m68k/__fork.S: Removed.
8929         * sysdeps/unix/bsd/vax/__fork.S: Moved to unix/bsd.
8930
8931         * sysdeps/generic/__vfork.c: New file; fn alias to __fork.
8932         * sysdeps/stub/__vfork.c: Removed.
8933
8934         * limits.h: Only do #include_next #ifndef _LIMITS_H_.
8935
8936         * malloc/mcheck.c (mcheck): Set abortfunc to either FUNC or abort;
8937         never leave it unchanged.
8938         Return 0 if mcheck_used; -1 if not.
8939         * malloc/malloc.h (mcheck): Change return type in decl.
8940
8941         * Makerules (+depfiles): Don't include them if there are none.
8942
8943 Mon Oct 26 16:30:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8944
8945         * sysdeps/posix/fdopen.c: Use fcntl to check that FD is valid and
8946         allows the access MODE specifies.
8947
8948         * sysdeps/stub/getcwd.c: #include <stddef.h>.
8949
8950         * sysdeps/stub/sleep.c: #include <errno.h>.
8951
8952 Sun Oct 25 02:24:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8953
8954         * Makerules (+includes): Add $(+sysdep-includes) to this, leaving
8955         CPPFLAGS alone.
8956
8957         * sysdeps/stub/stime.c: #include <time.h>.
8958
8959 Thu Oct 22 13:36:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8960
8961         * Rules (clean): Also remove $(clean-extras).
8962
8963 Tue Oct 20 18:36:40 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8964
8965         * configure: Write error message and lose for option with missing arg.
8966
8967         * stdio/__vfscanf.c: Add `a' modifier, which makes %s and %[ fill
8968         in a char ** with a malloc'd string.
8969         (STRING_ADD_CHAR, STRING_ARG): New macros to deal with this hair.
8970         (%s, %[): Use them.
8971
8972         * posix/gnu/types.h [__GNUC__] (__fsid_t): Define as long long.
8973
8974         * stdio/vfprintf.c: Add %m, which is %s of strerror (errno).
8975
8976 Mon Oct 19 14:19:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8977
8978         * socket/sys/socket.h (PF_FILE, AF_FILE): Define new macros.
8979         (PF_UNIX, AF_UNIX): Make aliases for [PA]F_FILE.
8980
8981         * sysdeps/ieee754/huge_val.h: #include <sys/cdefs.h>.
8982         [!__GNUC__]: Use __const, not CONST.
8983
8984         * posix/wordexp.h: Fix indentation and syntax errors.
8985
8986         * stdio/vasprintf.c (vasprintf): Set seen bit.
8987
8988 Fri Oct 16 17:18:34 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8989
8990         * Makefile (Mcrt1.o): Create an empty .c file and compile it,
8991         rather than creating an empty .o file.
8992
8993         * sysdeps/unix/Makefile (sys/param.h): Strip / from name for mkdir.
8994
8995         * sysdeps/m68k/fpu/atan2.c [! __GNUC__]: Include generic, not iee754.
8996
8997         * sysdeps/sparc/Makefile ({divrem}.S): Use $(M4) for m4 in cmds.
8998         * Makeconfig (M4): Define it.
8999
9000         * stdio/newstream.c (__newstream): Link STREAM onto __stdio_head
9001         after malloc'ing it.
9002
9003         * time/emkdir.c: #define unix if not already defined.
9004
9005 Thu Oct 15 19:55:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9006
9007         * stdlib/wctomb.c: When passed 0, store a '\0' and return 1.
9008         * stdlib/mbtowc.c: When passed "", store a 0 and return 1.
9009
9010         * sysdeps/generic/strstr.c: When NEEDLE is "", return HAYSTACK.
9011
9012 Thu Oct 15 19:25:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9013
9014         * malloc/malloc.h (__after_morecore_hook): Declare new var.
9015         * malloc/malloc.c (__after_morecore_hook): Define it.
9016         (align): Call it.
9017
9018 Mon Oct 12 15:56:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9019
9020         * malloc/malloc.h (r_alloc, r_alloc_free, r_re_alloc): Declare.
9021
9022         * Makerules (native-compile, common-objdir-compile): Pass
9023         $(native-CFLAGS) to the compiler.
9024
9025         * Makeconfig (+gccwarn): Removed -Wstrict-prototypes and
9026         -Wpointer-arith.  They were not really helping, and caused extra
9027         warnings for harmless code.
9028
9029         * malloc/Makefile (dist-routines): Add ralloc.
9030         (gpl2lgpl): Add ralloc.c.
9031
9032         * time/zic.c: #define unix if not already defined.
9033
9034         * Makerules ($(gpl2lgpl)): Make output unwritable; use mv -f.
9035
9036 Mon Oct 12 15:27:40 1992  Brendan Kehoe  (brendan@mole.gnu.ai.mit.edu)
9037
9038         * sysdeps/unix/bsd/ultrix4/mips/__set[gu]id.S: Handle returning to
9039         the proper caller ourselves, since setre[gu]id won't be doing it.
9040
9041 Mon Oct 12 13:37:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9042
9043         * malloc/malloc.h: Declare memory_warnings.
9044         * malloc/Makefile (dist-routines): Add vm-limit.
9045         (distribute): Add mem-limits.h.
9046         (gpl2lgpl): Add vm-limit.c, mem-limits.h.
9047
9048         * gpl2lgpl.sed: Remove "This file is part of ..." lines.
9049         Changed regexp to match "foo is free software", not just "This
9050         program ...".
9051
9052         * Makerules (+make-deps): Put file name before options on command line.
9053
9054         * Makefile (install-lib): Remove libc.a from here.
9055         * Makerules [objects] (install-lib): Append it here instead.
9056
9057         * io/sys/stat.h (S_IRWXO): Fixed typo.
9058
9059 Sun Oct 11 16:58:36 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9060
9061         * posix/glob.c (__glob_{open,read,close}dir_hook): New vars.
9062         (glob_in_dir): Use them.
9063         * posix/glob.h: Declare them.
9064
9065 Thu Oct  8 20:03:30 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
9066
9067         * configure (config.make): Write comment to edit configparms instead.
9068
9069 Wed Oct  7 17:15:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9070
9071         * sysdeps/stub/__chown.c: Fixed arg types (int -> [ug]id_t).
9072
9073         * sysdeps/stub/__geteuid.c: Fixed return type (int -> __uid_t).
9074
9075         * sysdeps/stub/__getegid.c: Fixed return type (int -> __gid_t).
9076
9077         * configure: Write defns in config.make for vars config-machine,
9078         config-vendor, and config-os.
9079
9080         * ctype/ctype.h (__isctype, __tolower, __toupper): Cast argument
9081         and return value to `int'.
9082
9083         * ctype/ctype.h (__ctype_tolower, __ctype_toupper): Changed type
9084         to `short int *'.
9085         (toupper, tolower): Removed inline functions; restored macros.
9086         * ctype/ctype.c (tolower, toupper): Just call the __ macros.
9087         * ctype/ctype-info.c: Change types here too.
9088         * locale/localeinfo.h: And here.
9089         * locale/C-ctype_ct.c: Ditto.
9090
9091         * crypt: New code from Michael Glad.
9092
9093         * Makefile (munch-init.c), sysdeps/unix/Makefile
9094         ($(sys/param.h-includes), make-errnos.c, make-ioctls.c),
9095         sysdeps/unix/bsd/Makefile (local_lim.h, ctype-glue.c),
9096         sysdeps/posix/Makefile (stdio_lim.h): Changed rules to use a
9097         shorter suffix than `-tmp', to avoid exceeding 14 char limit.
9098
9099 Tue Oct  6 15:13:57 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9100
9101         * Makefile (README, INSTALL): Moved rules here.
9102         * Make-dist: From here.
9103
9104         * sysdeps/unix/bsd/sun/m68k/{__pipe,__fork,sysdep}.S: Change uses
9105         of sysdeps/unix/bsd/hp9k3bsd to sysdeps/unix/bsd/hp/m68k.
9106
9107         * sysdeps/m68k/Makefile: Put .S rule here.
9108         * sysdeps/unix/bsd/hp/m68k/Makefile: Removed file.
9109
9110 Mon Oct  5 19:40:22 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9111
9112         * sysdeps/generic/pow.c (pow_p): Changed code to KY jelly.
9113
9114         * sysdeps/unix/bsd/ultrix4/utsnamelen.h: New file.
9115         * sysdeps/unix/bsd/ultrix4/uname.S: New file.
9116
9117 Fri Oct  2 17:43:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9118
9119         * sysdeps/posix/mktemp.c: Don't use a static index and increment
9120         it on each call.  Instead, always start at the beginning and
9121         iterate until we find a file that does not exist.
9122
9123         * sysdeps/unix/sysv/i386/signal.S: Use C_SYMBOL_NAME for __sigreturn.
9124         Added comment about gas bug with `lcall' insn.
9125
9126         * sysdeps/unix/i386/__brk.S: Use C_SYMBOL_NAME for __curbrk and _end.
9127
9128         * sysdeps/unix/i386/sysdep.S: #include <sysdep.h>.
9129         Use C_SYMBOL_NAME(errno) in place of _errno.
9130
9131         * sysdeps/unix/sysdep.h (___errno): Removed #define to _errno.
9132         `errno' is an ANSI name; it doesn't need to be aliased.
9133         * sysdeps/unix/bsd/sun/m68k/sethostid.S,
9134         sysdeps/unix/bsd/sun/m68k/__vfork.S,
9135         sysdeps/unix/bsd/sun/sparc/sysdep.h,
9136         sysdeps/unix/bsd/sun/sparc/sethostid.S,
9137         sysdeps/unix/bsd/vax/sysdep.S,
9138         sysdeps/unix/bsd/vax/__vfork.S: Use _errno, not ___errno.
9139
9140         * sysdeps/unix/sysv/sysdep.h: File removed.
9141         * sysdeps/unix/sysv/i386/sysdep.h: Don't #include it.
9142         #define NO_UNDERSCORES before #include <sysdeps/unix/i386/sysdep.h>.
9143
9144         * sysdeps/unix/i386/sysdep.h (C_SYMBOL_NAME): Define new macro.
9145         [NO_UNDERSCORES]: #define syscall_error to __syscall_error, so we
9146         stay name space tidy.
9147
9148         * sysdeps/unix/sysv/sysv4/sys_getdents.S: Added missing arg count (3).
9149
9150         * sysdeps/unix/sysv/i386/time.S: Fixed to not use bogus addressing
9151         mode `4(%esp,1)'; use `4(%esp)' instead.  Added comments.
9152
9153         * sysdeps/stub/__fchmod.c (__fchmod): Fixed arg type to mode_t.
9154
9155         * sysdeps/posix/__wait3.c: #include <stddef.h> for NULL.
9156
9157         * sysdeps/unix/i386/__wait.S: Use asm label `null' instead of
9158         `1f', and actually define the label!  Added comments.
9159
9160         * sysdeps/i386/memchr.c: Renamed asm label to `done'; not all
9161         assemblers support numbered labels like `1f' or `1b'.
9162
9163         * stdio/fseek.c (fseek): Discard char pushed back by ungetc.
9164         * stdio/ftell.c (ftell): If we have a pushed-back char, decrement
9165         the file position we return.
9166
9167         * sysdeps/unix/bsd/sun/sparc/vfork.S: New file.
9168
9169 Wed Sep 30 18:48:38 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9170
9171         * limits.h (_LIBC_LIMITS_H_): Define today's name for this.
9172         RMS said it was to be `_LIBC_LIMITS_H', but that is not what
9173         gcc actually uses.
9174
9175 Tue Sep 29 18:17:12 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9176
9177         * time/Makefile (zic-cmd): Define variable.
9178         (tzcompile, zoneinfo/localtime, zoneinfo/posixrules): Use it for
9179         name of `zic' command.
9180
9181         * sysdeps/unix/bsd/Makefile (ctype-glue.c): Make sure the command
9182         is not an unqualified name.
9183
9184         * sysdeps/stub/statbuf.h (struct stat): Contain only POSIX.1
9185         members, with the POSIX.1 types.
9186         (_STATBUF_ST_BLKSIZE): #undef and comment.
9187         * sysdeps/unix/bsd/statbuf.h (_STATBUF_ST_BLKSIZE): Define it.
9188         * sysdeps/posix/stdio_init.c (__stdio_init_stream): Only try to
9189         use st_blksize #ifdef _STATBUF_ST_BLKSIZE.
9190
9191         * sysdeps/unix/__getpgsz.c: #include <stddef.h> for size_t.
9192
9193         * sysdeps/stub/__fchown.c: Fixed arg types ([ug]id_t, not int).
9194
9195         * io/sys/stat.h: #include <gnu/types.h> for __mode_t et al.
9196
9197         * sysdeps/unix/__gete[ug]id.S [SYS_gete[ug]id]: Add arg count of 0.
9198         [! SYS_gete[ug]id]: Fixed arg count to be 0.
9199
9200         * sysdeps/unix/__get[ug]id.S: Fixed arg count to be 0.
9201
9202         * sysdeps/unix/sysv/linux/syscall.h: #if 0'd out 2nd defn of SYS_brk.
9203
9204 Sun Sep 27 21:56:56 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9205
9206         * sysdeps/unix/Makefile (sys/param.h): Depend on $(common-objpfx)sys/.
9207
9208 Fri Sep 25 12:47:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9209
9210         * Makeconfig (INSTALL_DATA): Pass -m 644.
9211
9212 Thu Sep 24 16:13:47 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9213
9214         * sysdeps/unix/sysv/linux/getpeername.S: Renamed to getpeernam.S.
9215         * sysdeps/unix/sysv/linux/getsockname.S: Renamed to getsocknam.S.
9216         * sysdeps/unix/sysv/linux/setsid.S: Renamed to __setsid.S;
9217         function renamed to __setsid.
9218
9219         * Version 1.05.
9220
9221         * Makefile (dist): Depend on $(distribute).
9222
9223         * stdio/__vfscanf.c (%c): Fixed DO_ASSIGN case loop condition to
9224         not write one char too many.
9225
9226 Wed Sep 23 16:32:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9227
9228         * stdlib/qsort.c (_quicksort): Return immediately if TOTAL_ELEMS==0.
9229
9230 Tue Sep 22 19:10:59 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9231
9232         * Makerules [! OUTPUT_OPTION && objpfx]: Define OUTPUT_OPTION.
9233
9234 Mon Sep 21 22:40:55 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9235
9236         * sysdeps/unix/bsd/mk-local_lim.c: Use MAXNAMLEN for NAME_MAX,
9237         rather than hard-wiring 255.
9238         [! MAXNAMLEN]: Define it to 255.
9239         [LINK_MAX && ! MAXLINK]: #define MAXLINK LINK_MAX.
9240
9241         * sysdeps/unix/bsd/glue-ctype.c [ultrix]: #define _ctype_ _ctype__.
9242
9243         * configure: Rename var `gas' to `gnu_as' and use consistently.
9244
9245 Fri Sep 18 16:32:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9246
9247         * sys/errno.h: New file.
9248         * Makefile (headers): Add it.
9249
9250         * Makeconfig (+make-deps): Use = not define.
9251
9252         * time/Makefile (zones-%): Don't clobber zonenames; append to it.
9253         Depend on Makefile so we rebuild when the rule changes.
9254         Changed implicit rule from zoneinfo/%/... to zone%/... so it will
9255         actually match.
9256
9257         * sysdeps/unix/Makefile (syscall.h): Filter out "#ident" lines.
9258
9259         * Makeconfig (+link): Use $(gnulib) instead of -lgcc.
9260         (gnulib): Define to -lgcc.
9261
9262         * posix/glob/Makefile.in (AR, ARFLAGS): Define.
9263         (libglob.a): Use those vars instead of hardcoding.
9264
9265         * Makeconfig (ARCH) [machine]: Don't define if $(..)config.make exists.
9266
9267         * Makerules (compile.S): Include $(asm-CPPFLAGS).
9268         (S-CPPFLAGS): Define = $(asm-CPPFLAGS).
9269         (+make-deps): Include $(sfx-CPPFLAGS), where `sfx' is S or c.
9270         * Makeconfig (asm-CPPFLAGS): Define (empty) and comment.
9271
9272         * sysdeps/unix/Makefile ($(sys/param.h-includes)): Filter out
9273         decls or macros for host<->net conversion (htonl et al).
9274
9275 Thu Sep 17 17:33:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9276
9277         * sysdeps/unix/sysv/statbuf.h: Define __S_*.
9278
9279         * misc/Makefile (headers): syslog.h -> sys/syslog.h.
9280         * misc/syslog.h: Moved to misc/sys/syslog.h.
9281
9282         * limits.h [__GNUC__ >= 2]: #define _LIBC_LIMITS_H before
9283         #include_next <limits.h>.
9284         Define _LIMITS_H unconditionally.
9285
9286 Wed Sep 16 17:43:59 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9287
9288         * sysdeps/unix/Makefile (syscall.h): Don't use \< in sed commands.
9289         Some seds don't seem to grok it.
9290
9291         * Makerules (+install-dirs): Sort them.
9292
9293         * Makeconfig (stdarg.h): Use $(wildcard va-*.h) instead of va-*.h,
9294         and := instead of =.
9295
9296         * Makeconfig (prefix): Default to $(exec_prefix), not /usr/local.
9297
9298         * Makeconfig (+link): Use $(common-objpfx) rather than $(objpfx)
9299         to find start.o; use $(libc.a) instead of $(objpfx)libc.a.
9300
9301         * sysdeps/sparc/Makefile: crypt subdir is not called uf-crypt.
9302
9303         * sysdeps/unix/Makefile (sys/param.h-includes): Fixed filtering
9304         out of existent glibc headers to remove $(..) pfx after wildcard.
9305
9306         * misc/paths.h: New file, snarfed from 4.4 BSD.
9307         * misc/Makefile (headers): Add paths.h.
9308
9309 Tue Sep 15 14:55:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9310
9311         * Makerules (+sysdir_pfx): Define as $(common-objpfx).
9312
9313         * MakeTAGS (TAGS) [subdir && ! tags_sources]: Create an empty
9314         file, rather than no commands at all.
9315
9316         * string/string.h [__GNUC__ && __OPTIMIZE__] (ffs): Take arg.
9317
9318         * sysdeps/unix/sysv/linux/__wait4.S: New file.
9319
9320         * sysdeps/unix/sysv/linux/syscall.h: New version from hlu.
9321
9322         * sysdeps/unix/Makefile (syscall.h): Upcase `sys_' in input.
9323
9324         * sysdeps/unix/bsd/ultrix4/mips/sysdep.h (MOVE): Insn is `move',
9325         not `movl'.
9326
9327         * sysdeps/unix/bsd/ultrix4/mips/sigcontext.h: Deansideclized.
9328
9329         * sysdeps/unix/ioctls-tmpl.c [DIOCGETPT, DEVGETGEOM]: Include
9330         headers for these.
9331         [ultrix]: Mondo cruft.
9332
9333 Sat Sep 12 12:08:29 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
9334
9335         * misc/Makefile (routines): Add ttyslot, syslog.
9336         * misc/ttyslot.c, misc/syslog.[ch]: New, snarfed from 4.4 BSD.
9337         (headers): Add syslog.h
9338
9339         * misc/getttyent.c (getttyent): Parse _TTYS_TRUSTED keyword and
9340         set TTY_TRUSTED bit.
9341         * misc/ttyent.h (TTY_TRUSTED): New bit in ty_status.
9342         (_TTYS_TRUSTED): New keyword.
9343         (_TTYS_CONSOLE): New keyword.
9344         (TTY_CONSOLE): New bit in ty_status.
9345
9346         * dirent/scandir.c (scandir): Don't keep using V after realloc'ing
9347         it.  Use the returned new ptr instead.
9348
9349 Thu Sep 10 18:59:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9350
9351         * stdlib/div.c, stdlib/ldiv.c: Rewritten from Berkeley code that works.
9352
9353         * Makeconfig (stdarg.h): Add va-*.h.
9354
9355         * stdlib/Makefile (dont_distribute): Define: testsort.input.
9356
9357         * sysdeps/mach/hurd/i386/_hurd_start_sigthread.c,
9358         sysdeps/stub/_hurd_start_sigthread.c: Renamed to .../startsig.c.
9359         * sysdeps/mach/hurd/sys_errlist.awk: Renamed to .../errlist.awk.
9360         * sysdeps/mach/hurd/Makefile (sys_errlist.c): Change dep.
9361         * sysdeps/unix/bsd/make-local_lim.c: Renamed to .../mk-local_lim.c.
9362         * sysdeps/unix/bsd/Makefile (local_lim.h): Change dep.
9363         (make-local_lim): Change target and dep.
9364         * hurd/_hurd_dead_recv.c: Renamed to hurd/dead_recv.c.
9365         * hurd/setdtablesize.c: Renamed to hurd/setdtsz.c.
9366         * hurd/Makefile (routines): Change references.
9367         * stdio/tstgetline.c: Renamed to stdio/tstgetln.c.
9368         * stdio/tstgetline.input: Renamed to stdio/tstgetln.input.
9369         * stdio/Makefile (tests): Change ref.
9370         * README.template: Remove note about long file names.
9371
9372         * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h (_UTSNAME_LENGTH):
9373         Define here, rather than #include'ing sysv/utsnamelen.h.
9374         This file gets installed.
9375
9376 Wed Sep  9 17:06:14 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9377
9378         * Makeconfig (localtime-file): Put in $(prefix)/etc, not /etc.
9379
9380         * setjmp/Makefile (routines): Remove sigsetjmp.
9381
9382         * sysdeps/posix/Makefile (objdir-CPPFLAGS) [! subdir]: Rewrote
9383         totally broken defn.
9384
9385         * sysdeps/unix/Makefile (syscall.h): Keep lines starting
9386         with #, not only those starting with #define.
9387         We want to preserve any #ifdef in the original.
9388
9389         * Makerules (install): Dep $(+install-dirs), not $(dir $(+install)).
9390         (+install-dirs): Define to get two levels of dirs.
9391
9392         * time/Makefile (tz-cc): Use = instead of define directive.
9393
9394         * sysdeps/unix/bsd/sun/sparc/start.c (_start): Give ARGC, ARGV,
9395         and ENVP `register' storage class; can then clear the FP early.
9396
9397 Sat Sep  5 13:14:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
9398
9399         * Makerules (sysdirs): Pass sysdep_dir in child's environment.
9400
9401 Fri Sep  4 15:37:23 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
9402
9403         * Makeconfig (common-objpfx): Add trailing slash.
9404         Move comment to prev line to avoid extra whitespace.
9405
9406 Thu Sep  3 17:31:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9407
9408         * sysdeps/unix/bsd/setgroups.S: New file.  How did this manage not
9409         to exist already??
9410
9411         * Version 1.04.
9412
9413         * sysdeps/generic/memmem.c (memmem): Fixed loop condition not to
9414         use nonexistent variable.
9415
9416         * string/string.h (memmem): Put const qualifier on args.
9417
9418         * sysdeps/stub/sigaltstack.c (sigaltstack): Fix arg type.
9419
9420         * setjmp/sigsetjmp.c: #undef sigsetjmp before defining the function.
9421
9422 Wed Sep  2 16:43:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9423
9424         * misc/Makefile (headers): Add syscall.h.
9425         * sysdeps/unix/Makefile: Only generate syscall.h if it would
9426         otherwise come from stub.
9427         * sysdeps/stub/syscall.h: New file.
9428
9429         * time/Makefile (routines): Add stime.
9430
9431         * io/Makefile (routines): Add fchdir.
9432
9433         * signal/Makefile (routines): Add sigaltstack.
9434
9435         * string/Makefile (routines): Add memmem.
9436
9437         * setjmp/Makefile (routines): Add sigsetjmp, _setjmp.
9438
9439         * misc/Makefile (routines): Add getpass.
9440
9441         * Makefile (distribute): Add NEWS.
9442
9443         * Makerules (ar-it) [! objdir]: Pass `ru' instead of `u' to ar.
9444         Use $(..)libc.a instead of $(libc.a).
9445
9446         * sysdeps/unix/sysv/i386/linux/sysdep.h (PSEUDO): Call numbers are
9447         SYS_*, not __NR_*.
9448
9449         * sysdeps/unix/sysv/i386/linux/__wait.S: Prepend extra _ to
9450         `__waitpid' for jmp.
9451
9452         * Makerules (check): New rule; alias for `tests'.
9453
9454         * sysdeps/stub/__setregid.c: Args are gid_t, not int.
9455
9456         * sysdeps/posix/readv.c: #include <string.h>.
9457
9458         * sysdeps/generic/printf_fp.c: If LDBL_DIG or LDBL_MAX_10_EXP is
9459         defined by float.h, #define each to DBL_*.
9460
9461 Tue Sep  1 16:29:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9462
9463         * sysdeps/unix/Makefile (syscall.h): Add missing backslashes.
9464
9465         * Makeconfig [!objdir && !..] (common-objpfx): Define as
9466         `sysdeps/..'; The Almighty KludgeMeister 2000 wins again.
9467
9468         * Makerules (sysdep-Makefile): Rename to sysd-Makefile.
9469
9470         * Makeconfig (CC): Don't use -pipe by default.
9471
9472         * configure (switches): Put quotes around os-release and
9473         os-version values.
9474
9475 Mon Aug 31 19:33:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9476
9477         * sysdeps/stub/cbrt.c: New file.
9478
9479         * sysdeps/generic/cabs.c: New file.
9480
9481         * sysdeps/generic/ceil.c: New file, split from floor.c.
9482         * sysdeps/generic/__rint.c: Replaced with code split from floor.c.
9483         * sysdeps/generic/Makefile (routines): Don't remove ceil, __rint.
9484
9485 Thu Aug 27 15:58:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
9486
9487         * malloc/malloc.h [! __STDC__] (ptrdiff_t): #define.
9488
9489 Wed Aug 26 18:15:47 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9490
9491         * malloc/free.c (__free): Rename to _free_internal.
9492         (free), malloc/malloc.c (morecore): Change callers.
9493         * malloc/malloc.h: Change decl.
9494
9495 Tue Aug 18 17:38:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9496
9497         * sysdeps/generic/__copysign.c: New file.
9498
9499         * sysdeps/unix/sysv/sysdep.h: #include <syscall.h>, not
9500         <sys/syscall.h>.  Don't #define _SYS_SYS_S; should no longer be
9501         necessary.
9502
9503         * sysdeps/unix/Makefile (syscall.h): Replaced simple code to just
9504         find the file in any of several places, with hairier code to find
9505         it and massage it.
9506
9507         * malloc/Makefile (obstack.%): Remove rule.
9508         (gpl2lgpl): Define this instead.
9509         * posix/Makefile (gpl2lgpl): Define to include getopt source files.
9510         * Makerules ($(gpl2lgpl)): New rule to snarf code and frob its
9511         copying notices.
9512
9513 Fri Aug 14 13:28:39 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9514
9515         * Makeconfig (common-objdir, common-objpfx): Define new vars.
9516         (libc.a): Define in terms of $(common-objpfx).
9517         Find config.make with $(common-objpfx), not $(objpfx).
9518         * Makerules (common-objdir-compile): Define canned sequence.
9519         (native-compile): Use $(@D)/$(@F) instead of stripping off $(objpfx).
9520         * sysdeps/unix/Makefile, sysdeps/unix/bsd/Makefile,
9521         sysdeps/generic/Makefile: Use it.
9522         Use $(common-objpfx) for generated things not specific to one subdir.
9523
9524         * sysdeps/unix/Makefile (sysdep_headers): Add
9525         $(sys/param.h-includes) to this instead of to headers.
9526
9527 Thu Aug 13 18:30:58 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9528
9529         * posix/glob.c: Always #include <sys/types.h>.
9530         [! USG]: Don't do it here.
9531         [STDC_HEADERS]: Test this instead of __STDC__ for size_t.
9532         [HAVE_STRCOLL]: Test this instead of ANSI_STRING for strcoll.
9533
9534         * posix/glob/Makefile.in (Makefile): Remove rule.
9535
9536 Wed Aug 12 16:12:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9537
9538         * sysdeps/sparc/jmp_buf.h: Deansideclized.
9539
9540         * sysdeps/generic/make_siglist.c: #undef HAVE_SYS_SIGLIST, not
9541         SYS_SIGLIST_MISSING.
9542         * sysdeps/generic/signame.[ch]: Re-symlinked from /gd/gnu/lib.
9543         Who's been removing random things from my source tree??
9544
9545 Tue Aug 11 15:01:50 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9546
9547         * posix/getconf.c (main): Cast printf field with arg to int.
9548
9549         * Makefile (distribute): Remove ansidecl, ansidecl.m4.
9550
9551         * posix/glob.c [_AIX]: Don't declare alloca.
9552
9553 Mon Aug 10 17:09:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9554
9555         * sysdeps/m68k/fpu/__math.h (__expm1): Define just like expm1.
9556
9557         * sysdeps/unix/ioctls-tmpl.c [SMIOSTATS, SMIOGETREBOOT0,
9558         ZIOCBCMD]: Include headers for these.
9559
9560 Fri Aug  7 16:01:43 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9561
9562         * string/tester.c (main): Use sys_nerr and sys_errlist, not _sys_*.
9563
9564         * stdio/stdio.h [__USE_GNU] (_sys_nerr, _sys_errlist): Declare.
9565
9566         * string/strerror.c, stdio/perror.c
9567         [HAVE_GNU_LD] (_sys_errlist, _sys_nerr): Remove decls.
9568
9569         * stdio/memstream.c (enlarge_buffer): Notice when target is -1 and
9570         don't treat it as a huge value.
9571
9572         * stdio/tst-printf.c: #if 0 code that tickles printf_fp bugs.
9573
9574         * grp/testgrp.c: Don't bomb if uid not in passwd file.
9575
9576         * stdlib/tst-strtol.c (tests): C-t on LONG_MIN and LONG_MIN-1 elts.
9577
9578         * stdlib/strtol.c: Use int flag NEGATIVE instead of char 1/-1 SIGN.
9579         Fixed checking for overflow of long int that fits in unsigned long
9580         int--must cast LONG_MIN before negating!
9581
9582 Thu Aug  6 18:46:24 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9583
9584         * stdio/bug3.c (main): Define ansideclifily.
9585
9586         * sysdeps/unix/bsd/sun/sparc/__pipe.S: Define __pipe, not ___pipe.
9587
9588         * math/test-math.c (main): Remove unused vars.
9589
9590         * io/flock.c: #include <sys/file.h>, and not fcntl.h or sys/types.h.
9591
9592         * sysdeps/m68k/fpu/__math.h (__rint): Define just like rint.
9593
9594         * math/math.h (__rint): Declare.
9595
9596         * configure (esix*): base_os=unix/sysv.
9597
9598         * dirent/getdents.c: #include <dirent.h>.
9599
9600         * Rules (subdir): Avoid TAB before # at end of defn.
9601
9602         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Last arg type is struct rusage *.
9603
9604 Tue Aug  4 18:19:43 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9605
9606         * sysdeps/ieee754/Makefile: Removed.
9607
9608         * math/math.h: Declare __expm1.
9609
9610 Mon Aug  3 13:02:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9611
9612         * sysdeps/ieee754/cabs.c (cabs, z_abs): Members of structure have __.
9613
9614         * sysdeps/unix/bsd/seq386: Remove directory.
9615
9616 Thu Jul 30 15:42:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9617
9618         * sysdeps/unix/bsd/sun/sparc/sigcontext.h: Deansideclized.
9619
9620         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Make last arg struct rusage
9621         instead of PTR.
9622
9623         * sysdeps/unix/morecore.c (__default_morecore): Make arg ptrdiff_t.
9624
9625         * sysdeps/ieee754/cabs.c (cabs, z_abs): Use `struct __complex' for arg.
9626
9627         * sysdeps/generic/pow.c: #include <limits.h>.
9628
9629         * sysdeps/generic/mathimpl.c: #include <math.h> before frobnication.
9630
9631         * misc/getusersh.c (okshells): Make const.
9632         (initshells): Properly declare static.
9633
9634         * sysdeps/unix/bsd/__tcgetatr.c: Cast sg_[io]speed to (unsigned char) 
9635         to avoid gcc warnings.
9636
9637         * math/bsd/common/atan2.c, math/bsd/common/tan.c,
9638         math/bsd/common/sincos.c, math/bsd/common/trig.h,
9639         math/bsd/common_source/__expm1.c, math/bsd/common_source/fmod.c,
9640         math/bsd/common_source/acosh.c, math/bsd/common_source/log.c,
9641         math/bsd/common_source/asincos.c, math/bsd/common_source/asinh.c,
9642         math/bsd/common_source/log1p.c, math/bsd/common_source/atan.c,
9643         math/bsd/common_source/log__L.c, math/bsd/common_source/atanh.c,
9644         math/bsd/common_source/mathimpl.h, math/bsd/common_source/cosh.c,
9645         math/bsd/common_source/exp.c, math/bsd/common_source/sinh.c,
9646         math/bsd/common_source/exp__E.c, math/bsd/common_source/tanh.c,
9647         math/bsd/common_source/floor.c: Moved to sysdeps/generic.
9648         * math/bsd/ieee/{cabs,cbrt,support}.c: Moved to sysdeps/ieee754.
9649         * All above + sysdeps/generic/mathimpl.h, sysdeps/generic/pow.c: New
9650         code from 4.4/net2.
9651
9652         * sysdeps/generic/ffs.c: #include <string.h>, not <bstring.h>.
9653
9654         * posix/glob/Makefile.in (Makefile): Depend on config.status; invoke
9655         it directly instead of using $(SHELL).
9656
9657         * posix/glob.c [! USG]: #include <sys/types.h> before <sys/dir.h>.
9658
9659 Tue Jul 28 17:54:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9660
9661         * sysdeps/unix/bsd/ultrix42: Renamed to ultrix4.
9662
9663         * sysdeps/unix/sysv/isc2.2/__rename.S: New.
9664         * configure (isc*): base_os=unix/sysv.
9665
9666         * Makefile, Makerules, Rules, math/Makefile, ctype/Makefile: Use
9667         "export foo := $(foo)" instead of ifdef have_export_directive.
9668         * Makeconfig (have_export_directive): Remove; move .NOEXPORT down.
9669
9670 Mon Jul 27 18:01:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9671
9672         * configure: Remove redundant test to set os_used.
9673
9674 Sun Jul 26 17:03:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9675
9676         * README.template: Don't mention Q+A.
9677         * Makefile (distribute): Remove Q+A.
9678
9679         * Makefile, Makerules, Rules, math/Makefile, ctype/Makefile: Put
9680         "ifdef have_export_directive" around uses of `export' directive.
9681         They are only needed for dist and tags anyway.
9682         * Makeconfig (have_export_directive): Add commented-out defn, and
9683         comment to explain.
9684         (.NOEXPORT): Add special target for old versions of GNU make.
9685
9686         * posix/glob.c [_AIX]: #pragma alloca first thing.
9687         [ANSI_STRING]: Remove #define's for index et al.
9688
9689 Thu Jul 23 21:49:53 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9690
9691         * misc/getpass.c: New.
9692         * posix/unistd.h (getpass): Declare.
9693
9694         * posix/unistd.h (getusershell, setusershell, endusershell): Declare.
9695         * misc/Makefile (routines): Add getusersh.
9696         * misc/getusersh.c: New.
9697
9698 Tue Jul 14 20:03:57 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9699
9700         * stdlib/Makefile (tests): Add testdiv.
9701         * stdlib/testdiv.c: New.
9702
9703         * sysdeps/unix/sysv/i386/linux/{rename,__mkdir,__rmdir,__dup2,
9704         getpgrp,__setpgrp,setsid}.S: New files.
9705
9706         * sysdeps/unix/__getppid.S: If SYS_getppid is defined, use it rather
9707         than alternate value of getpid.
9708         * __gete[ug]id.S: Similar.
9709
9710         * sysdeps/unix/sysv/i386/linux/__waitpid.S: New file.
9711         * sysdeps/unix/sysv/i386/linux/__wait.S: New file.
9712         * sysdeps/posix/__wait3.c: New file.
9713
9714         * sysdeps/unix/sysv/i386/linux/socket.S: New file.
9715         * bind.S, connect.S, listen.S, accept.S, getsockname.S,
9716         getpeername.S, socketpair.S: Also new (and trivial).
9717
9718 Mon Jul 13 17:41:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9719
9720         * sysdeps/unix/sysv/i386/linux/sysdep.[hS]: New files.
9721
9722         * configure (linux*): base_os=unix/sysv
9723         (gnu*, linux*): Always set --with-gnu-ld and --with-gnu-as.
9724
9725         * stdio/obstream.c: #include <string.h>
9726         (obstack_vprintf): Use bzero rather than memset.
9727
9728         * stdio/glue.c (unix_FILE.glue): Add two members, which will overlap
9729         get_limit and put_limit in GNU stdio.
9730         (_iob): Initialize them to same as `streamp'.
9731
9732 Thu Jul  9 21:27:39 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9733
9734         * stdio/stdio.h (open_obstack_stream, obstack_printf,
9735         obstack_vprintf): Declare.
9736
9737         * posix/glob.c [STDC_STRINGS]: Don't test this.
9738         [! ANSI_STRING]: Put memcpy, strrchr, memset defns here instead.
9739
9740         * posix/glob/Makefile.in (glob.o, fnmatch.o): / after $(srcdir).
9741
9742 Tue Jul  7 03:11:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9743
9744         * stdio/Makefile (routines): Add obstream.
9745
9746         * Makerules (%.o: %.S, %.o: %.c): If using gcc, put the file name
9747         before the options on the command line.
9748
9749         * malloc/Makefile (dist-routines): Define with routines for malloc.tar.
9750         (routines): Define with that plus the rest.
9751         (nodist): Remove.
9752         (routines): Add obstack.
9753         (headers): Add obstack.h.
9754         (obstack.%): New rule.
9755
9756         * stdio/glue.c: Add comments.
9757
9758         * stdio/printf.h (struct printf_info.spec): Make unsigned char.
9759
9760         * stdio/stdio.h (__validfp): Fixed glued-stream snarfing.
9761
9762 Mon Jul  6 20:00:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9763
9764         * sysdeps/i386/jmp_buf.h: Deansideclized.
9765
9766         * sysdeps/posix/Makefile (objdir-CPPFLAGS): Define; if in parent
9767         dir, add ..s to -Is.
9768         (mk-stdiolim): Use it in place of $(CPPFLAGS).
9769
9770 Sat Jul  4 20:44:42 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9771
9772         * posix/glob/Makefile.in (glob.o, fnmatch.o): Put $(srcdir) on deps.
9773
9774 Wed Jul  1 00:13:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9775
9776         * sysdeps/generic/strstr.c: If NEEDLE is "", return end of HAYSTACK.
9777
9778         * string/tester.c (main): Remove decls of sys_nerr and sys_errlist.
9779
9780         * configure: Accept --prefix=*, --exec_prefix=* options.
9781         Set values in config.make and config.status.
9782
9783         * io/umask.c: Fixed return type in fn alias.
9784
9785         * posix/glob.c [! ANSI_STRING]: #define strcoll to strcmp.
9786         Remove extra decls of free, qsort, malloc, and realloc.
9787
9788         * dirent/alphasort.c: #include <string.h>, and not <stdlib.h>.
9789
9790         * sysdeps/unix/bsd/i386/__wait3.S: Load SYS_wait into %eax before
9791         trapping.  Use literal .byte instead of lcall to avoid gas bug.
9792         Use 0(REG), not (REG), for register-indirect addressing.
9793
9794         * configure: Make config.status executable.
9795
9796 Tue Jun 30 21:14:53 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9797
9798         * configure: Add --os-release=* and --os-version=* options.  Record
9799         settings (which might be automagically guessed) in config.status.
9800
9801         * misc/mknod.c: Use __mode_t for arg in fn alias.
9802
9803         * posix/unistd.h (setregid): Declare to take __gid_t args.
9804
9805         * sysdeps/unix/bsd/i386/__wait3.S: Don't use lcall insn gas barfs on.
9806
9807         * posix/vfork.c: Move to sysdeps/generic/.
9808
9809         * Rules (others, tests): Export them.
9810
9811         * io/umask.c, io/mkdir.c, io/chmod.c: Use mode_t not int in arg decls.
9812
9813         * sysdeps/i386/ffs.c: #include <string.h>, not <bstring.h>.
9814
9815         * stdio/vfscanf.c: Use function_alias.
9816
9817         * stdio/vsscanf.c: Use va_list, not PTR, in arg decl in fn alias.
9818
9819         * sysdeps/unix/i386/sysdep.h (PSEUDO): Enough backslashes and
9820         semicolons.
9821
9822         * stdio/stdio.h: For __gnuc_va_list, #test __GNUC_VA_LIST, not
9823         __va_list_defined.
9824
9825         * stdio/fmemopen.c: Use memchr to find NUL for append mode.
9826
9827         * stdio/memstream.c (enlarge_buffer): Double the buffer size, rather
9828         than adding 100.  Don't clobber *INFO->bufsize when called with the
9829         put limit reset.  If the target has been set, extend and zero-fill
9830         the buffer.
9831         (seek): New function.
9832         (open_memstream): Use it for seek io fn.  Call fmemopen with "w+" mode.
9833
9834 Sun Jun 28 19:01:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9835
9836         * stdio/fseek.c: Fail with EINVAL for a negative file pos.
9837
9838 Fri Jun 26 00:07:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9839
9840         * Makeconfig (stdarg.h): New variable.
9841         * Makefile (headers): Add $(stdarg.h).
9842
9843         * stdio/stdio.h: Change __va_list to __gnuc_va_list in decls.
9844
9845         * sysdeps/unix/morecore.c: Include malloc.h #ifndef _MALLOC_INTERNAL.
9846         Don't include <stdio.h>.
9847         (NULL): Define to 0 if not defined.
9848
9849         * sysdeps/i386/bzero.c: Include string.h, not bstring.h.
9850
9851 Thu Jun 25 21:01:40 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9852
9853         * stdio/perror.c, string/strerror.c (_sys_errlist, _sys_nerr): Don't
9854         declare #ifndef HAVE_GNU_LD.
9855
9856         * stdio/fwrite.c: Cast arg to write io func to const char * (from uns).
9857
9858         * sysdeps/unix/Makefile: If syscall.h doesn't exist in
9859         $(sysincludedir), look for sys/syscall.h and create $(objpfx)syscall.h
9860         to #include it.
9861
9862         * sysdeps/unix/morecore.c (__default_morecore): Deansideclized.
9863         * malloc/*.c: Only #include <malloc.h> #ifndef _MALLOC_INTERNAL.
9864
9865 Wed Jun 24 19:09:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9866
9867         * sysdeps/unix/snarf-ioctls: Avoid looking at a few particular
9868         headers which tend to mislead us.
9869
9870         * Makefile (distribute): Add COPYING.
9871
9872         * configure (Makefile): When invoking make in srcdir, set ARCH
9873         rather than objdir on the cmd line.
9874
9875         * posix/glob.c [DIRENT] (direct): Don't define to dirent.
9876         [! DIRENT] (direct): Define to dirent.
9877
9878         * Make-dist [!subdir] (+tsrcs): Don't include $(distribute).  It was
9879         already included above.
9880
9881 Mon Jun 22 16:58:34 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9882
9883         * Makerules (sysdep_routines): Export it.
9884
9885 Wed Jun 17 17:58:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9886
9887         * posix/glob.c (my_realloc): Test only __GNU_LIBRARY__.  Can't trust
9888         STDC_HEADERS.
9889
9890 Tue Jun 16 20:20:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9891
9892         * resource/sys/resource.h (enum __rlimit_resource): Added MEMLOCK,
9893         NPROC, OFILE.
9894
9895         * posix/Makefile (glob.tar): Include Makefile.in & configure, and not
9896         Makefile.
9897         (glob/configure): New rule.
9898
9899         * posix/glob/Makefile: Moved to posix/glob/Makefile.in.
9900         (VPATH, srcdir, CPPFLAGS): Define to be replaced by autoconf.
9901
9902         * posix/glob.c: Rearranged conditionals for use with autoconf.
9903
9904 Thu Jun 11 15:47:43 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9905
9906         * sysdeps/unix/bsd/sun/sparc/start.c: Added alias for start -> __start.
9907
9908 Tue Jun  9 20:15:12 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9909
9910         * sysdeps/posix/rename.c: Return failure and don't remove the old
9911         link if the link failed with other than EEXIST.
9912
9913         * posix/glob/Makefile: Fixed copyright notice.
9914         (realclean): Don't remove ~ backup files.
9915
9916 Thu Jun  4 16:41:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9917
9918         * time/Makefile (install-data): Don't include zoneinfo/.
9919         Makerules already makes sure the necessary directories exist.
9920
9921         * setjmp/setjmp.h (sigsetjmp) [__GNUC__]: Use typeof hackery to
9922         construct the type of the temporary var for the arg.
9923         (_setjmp) [__FAVOR_BSD]: Make same as setjmp.
9924
9925         * malloc/malloc.h (mtrace): Declare.
9926
9927         * malloc/malloc.h, malloc/calloc.c, malloc/free.c, malloc/malloc.c,
9928         malloc/mcheck.c, malloc/memalign.c, malloc/mstats.c,
9929         malloc/mtrace.c, malloc/realloc.c, malloc/valloc.c: Deansideclized;
9930         changed copyright notices to be independent of libc.
9931         * malloc/Makefile (glob/%.c, glob/%.h): Don't need to ansideclificate.
9932
9933         * io/ftw.h, io/ftw.c: New.
9934         * io/Makefile (headers): Added ftw.h.
9935         (routines): Added ftw.
9936
9937 Tue Jun  2 21:49:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9938
9939         * sysdeps/unix/bsd/signum.h (SIG_ERR, SIG_DFL, SIG_IGN): Use
9940         __sighandler_t.
9941
9942         * posix/glob.c (__ptr_t): Define.
9943
9944 Thu May 28 06:57:14 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9945
9946         * sysdeps/m68k/jmp_buf.h: Don't use PTR.
9947
9948 Wed May 27 18:09:40 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9949
9950         * posix/{glob,fnmatch}.[ch]: Deansideclized; changed copyright
9951         notice to be independent of libc.
9952         * posix/Makefile (glob/%.c, glob/%.h): Don't need to ansideclificate.
9953
9954         * posix/unistd.h (_SC_2_FORT_RUN, _SC_2_LOCALDEF): Define.
9955
9956         * posix/unistd.h: Define _POSIX2_* without #ifdef __USE_POSIX2.
9957
9958         * posix/unistd.h (_POSIX2_FORT_DEV): Removed.
9959
9960         * posix/fnmatch.h (FNM_FILE_NAME): Alias for FNM_PATHNAME.
9961
9962 Tue May 26 00:39:39 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9963
9964         * time/Makefile (install-data): Include zoneinfo/, so the directory
9965         gets made.
9966
9967         * Makeconfig (+gcc-nowarn): Define to -w if using gcc.
9968         * time/Makefile (tz-cc): Use it to suppress warnings for grody code.
9969
9970         * posix/Makefile (libposix.a), math/Makefile (libm.a): Make archive
9971         containing /dev/null instead of nothing; ar won't create an empty
9972         archive.
9973
9974         * Makerules (%/): Added generic mkdir rule.
9975
9976         * posix/Makefile (install-lib): Define to libposix.a.
9977         (libposix.a): Create empty archive.
9978
9979         * posix/Makefile (distribute): Added utsnamelen.h.
9980
9981         * ctype/ctype.c (tolower, toupper): If the arg doesn't fit in a
9982         char, return it unchanged.
9983         * ctype/ctype.h (tolower, toupper): Don't define as macros.
9984         [__GNUC__]: Define as extern inline functions.
9985
9986         * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h,
9987         sysdeps/unix/bsd/sun/sunos4/uname.S: New.
9988
9989         * configure: Only do hacking to snarf uname info if the config uses
9990         the generic uname implementation.
9991
9992         * Makeconfig (+defines): Define to include $(gnu_ld), rather than
9993         -DHAVE_GNU_LD.
9994         * configure: Write config.make with gnu_ld/gnu_as defns.
9995
9996         * sysdeps/unix/bsd/sun/sunos411: Renamed back to .../sunos4.
9997         * sysdeps/unix/bsd/bsd44: Renamed to .../bsd4.4.
9998
9999         * Makeconfig: include $(objpfx)configparms instead of
10000         $(objdir)/Makeconfig.
10001         Define objpfx as soon as objdir is defined, so we can use it.
10002
10003         * sysdeps/generic/uname.c: Use UNAME_* from config-name.h.
10004
10005 Mon May 25 19:33:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10006
10007         * configure: Accept all standard GNU configure options.
10008         Expect to be run in object directory, and find source directory
10009         elsewhere.
10010         Write config.status as a shell script that can be run to recreate
10011         the configuration.
10012         Grok os names containing dots by trying each successively
10013         less-precise substring.
10014         Write Sysnames and config-name.h in current directory.
10015         Write #define's for uname sysname, release, version, and machine
10016         elts in config-name.h.  Hackery to intuit release and version info.
10017
10018         * stdio/vsnprintf.c, stdio/vsprintf.c, stdio/vasprintf.c,
10019         stdio/vdprintf.c, stdio/vfscanf.c, stdio/vscanf.c,
10020         stdio/__vsscanf.c: Take arg list as va_list, not PTR.
10021
10022         * stdio/stdio.h: Replaced #include <stdarg.h> with magic.
10023         Properly use __va_list in prototypes.
10024
10025         * Makeconfig (exec_prefix): Define.
10026         (libdir, includedir, bindir): Use it.
10027
10028         * sysdeps/unix/sysv/Makefile [subdir==io] (sysdep-routines): Removed
10029         __utssys.
10030         * sysdeps/unix/sysv/Dist: Removed __utssys.S.
10031         * sysdeps/unix/sysv/__utssys.S, sysdeps/unix/sysv/uname.c: Removed.
10032         * sysdeps/unix/sysv/uname.S, sysdeps/unix/sysv/utsnamelen.h: New.
10033
10034         * posix/sys/utsname.h (_UTSNAME_LENGTH): Don't define; instead,
10035         #include <utsnamelen.h> to define it.
10036         * sysdeps/generic/utsnamelen.h: New.
10037
10038 Sun May 24 00:07:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10039
10040         * sysdeps/generic/inet-cvt.h: Deansideclized.
10041
10042         * string/string.h (memfrob): First arg is __ptr_t, not char *.
10043
10044         * misc/sys/cdefs.h (__ptr_t): Made #define rather than a typedef.
10045
10046 Fri May 22 01:52:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10047
10048         * Makefile, Rules, Makerules: Remove all rules for ansideclificating
10049         headers.
10050
10051         * posix/glob.h, posix/fnmatch.h: Use explicit cruft for C++.
10052         Define __P and const for C++/ANSI vs old C ourselves, to avoid
10053         dependence on <sys/cdefs.h>.
10054
10055         * inet/Makefile: Remove cruft to snarf things from bsd/.
10056         * inet/bsd/*.c: Moved to inet/.
10057
10058         * Makerules: Install headers from source directories into
10059         $(includedir), rather than ansidecl madness.
10060         * Makeconfig (ansi-incldir, trad-incldir): Removed.
10061         (includedir): Define instead.
10062
10063         * assert/assert.h, ctype/ctype.h, dirent/dirent.h, grp/grp.h,
10064           locale/locale.h, locale/localeinfo.h, math/math.h,
10065           misc/sys/file.h, misc/sys/ioctl.h, misc/sys/ptrace.h,
10066           misc/sys/uio.h, misc/sgtty.h, misc/nlist.h, posix/gnu/types.h,
10067           posix/sys/wait.h, posix/sys/types.h, posix/sys/times.h,
10068           posix/sys/utsname.h, posix/unistd.h, posix/tar.h, posix/utime.h,
10069           posix/wordexp.h, posix/glob.h, posix/fnmatch.h, pwd/pwd.h,
10070           resource/sys/resource.h, resource/sys/vlimit.h,
10071           resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
10072           signal/gnu/signal.h, socket/sys/socket.h, stdio/stdio.h,
10073           stdio/printf.h, stdlib/alloca.h, stdlib/stdlib.h, string/string.h,
10074           termios/termios.h, time/sys/time.h, time/time.h, io/sys/stat.h,
10075           io/fcntl.h, errno.h, stddef.h, malloc/malloc.h:
10076         Deansideclized.  Use <sys/cdefs.h> macros instead of ansidecl and
10077         C++ cruft.
10078         * features.h: #include <sys/cdefs.h>.
10079
10080         * string/string.h (strfry, memfrob): Declare.
10081         * string/Makefile (routines): Added strfry and memfrob.
10082         * string/strfry.c, string/memfrob.c: New.
10083
10084         * locale/C-ctype_ct.c: Made BS be isspace.
10085
10086         * sysdeps/generic/strstr.c: Return HAYSTACK, not its end, if NEEDLE
10087         is the empty string.
10088
10089         * sysdeps/generic/strncase.c: Fixed for case of empty string.
10090
10091 Wed May 20 02:36:09 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10092
10093         * io/sys/stat.h (fchmod): Declare, rather than two __fchmod decls.
10094
10095         * configure (sysv, bsd): Don't make base_os=unix; unix/{sysv,bsd}
10096         instead.
10097         Set os_used if base_os is used.
10098
10099 Tue May 19 21:00:11 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10100
10101         * crypt/*: New files from glad.
10102
10103         * stdio/stdio.h (sys_nerr, sys_errlist): Don't declare const.
10104
10105 Sun May 17 15:50:00 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10106
10107         * io/Makefile (headers): Remove gnu/stat.h; add sys/stat.h.
10108
10109         * posix/glob.c (glob): Don't let us fall off the end without returning.
10110
10111         * sysdeps/stub/setenv.c, sysdeps/posix/setenv.c: New.
10112         * stdlib/stdlib.h [__USE_BSD] (setenv): Declare.
10113         * stdlib/Makefile (routines): Add setenv.
10114
10115         * malloc/mtrace.c (old_{free,malloc,realloc}_hook): Renamed to tr_&
10116         to not conflict with mcheck.c when combined into gmalloc.c.
10117
10118 Fri May 15 19:07:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10119
10120         * socket/sys/socket.h (PF_NBS, AF_NBS): Removed.
10121         (PF_ISO, PF_OSI, PF_APPLETALK, PF_ROUTE, PF_LINK): Define.
10122         (PF_MAX): Increase accordingly.
10123
10124         * inet/bsd/*.c: Snarfed latest code from 4.4.
10125
10126         * misc/sys/cdefs.h (__BEGIN_DECLS, __END_DECLS): Define cruft for C++.
10127
10128 Thu May 14 01:45:12 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10129
10130         * posix/glob.h (GLOB_MAGCHAR): Check user feature-test macros,
10131         rather than __USE_BSD, so we don't depend on features.h.
10132
10133         * sysdeps/stub/__wait4.c: Last arg is struct rusage *, not PTR.
10134
10135         * math/bsd/common_source/mathimpl.h: Don't #define const.
10136         #include <sys/cdefs.h> instead.
10137
10138         * Makefile (+other_dirs): Add crypt, but only if it exists at run time.
10139         * crypt/GNUmakefile: New file.
10140         * sysdeps/sparc/Makefile, sysdeps/m68k/Makefile (crypt):
10141         Define to use machine-dependent assembly code in crypt/crypt.*.S.
10142         * crypt: New directory.
10143
10144         * find-sysdirs: Don't lose if there are no sysnames.
10145
10146         * termios/Makefile (headers): Added sys/termios.h.
10147         * termios/sys/termios.h: New file; just #include <termios.h>.
10148
10149         * stdlib/qsort.c: Define _quicksort rather than qsort.
10150         * stdlib/msort.c: New file; defines qsort function that does merge
10151         sort.  Falls back to _quicksort if it fails to allocate a temp array.
10152         * stdlib/Makefile (routines): Added msort.
10153
10154         * string/string.h (memccpy, strdup): Also declare #ifdef __USE_BSD.
10155         [__USE_BSD] (index, rindex, bcmp, bzero, ffs): Declare.
10156         * string/strings.h: Just #include <string.h>.
10157         * string/Makefile (headers): Removed bstring.h.
10158
10159         * misc/Makefile (routines): Removed swab.
10160         * string/Makefile (routines): Put it here instead.
10161         * misc/swab.c: Moved to string/swab.c.
10162
10163         * stdio/stdio.h [__USE_BSD] (sys_nerr, sys_errlist): Declare.
10164
10165         * grp/grp.h (setgrent, endgrent, getgrent): Also do #ifdef __USE_BSD.
10166
10167         * posix/glob.h [__USE_BSD] (GLOB_MAGCHAR): Declare.
10168         (glob_t): Added member `gl_flags'.
10169         * posix/glob.c (glob, glob_in_dir): Set gl_flags member to FLAGS;
10170         or in GLOB_MAGCHAR if any metachars are seen.
10171
10172         * sysdeps/unix/bsd/bsd44/readdir.c: New.
10173
10174         * sysdeps/unix/bsd/sun/readdir.c: Don't need to declare
10175         __getdirentries here.  Use off_t and ssize_t.
10176
10177         * misc/Makefile (routines): Removed getdents and __getdents.
10178         * dirent/Makefile (routines): Put them here instead.
10179         * misc/getdents.c: Moved to dirent/getdents.c.
10180         * dirent/dirent.h [__USE_BSD] (__getdirentries, getdirentries):
10181         Declare.
10182
10183         * dirent/Makefile (routines): Added scandir and alphasort.
10184         * dirent/scandir.c, dirent/alphasort.c: New.
10185         * dirent/dirent.h [__USE_BSD] (scandir, alphasort): Declare.
10186
10187         * sysdeps/unix/bsd/nice.c, sysdeps/unix/sysv/nice.S,
10188         sysdeps/stub/nice.c: New.
10189         * resource/Makefile (routines): Added nice.
10190
10191         * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): #define to
10192         __ versions, for the sake of 4.4 header files.
10193
10194 Wed May 13 00:35:12 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10195
10196         * stdlib/tst-strtol.c: Fixed typo in test table.
10197
10198         * stdlib/strtol.c: Fixed checking for overflow of long int that fits
10199         in unsigned long int.
10200
10201         * misc/Makefile (headers): Added ttyent.h.
10202         (routines): Added getttyent.
10203         * misc/ttyent.h, misc/getttyent.h: New; snarfed from 4.4.
10204
10205         * posix/sys/wait.h [__USE_BSD]: Added forward decl for struct rusage.
10206         (__wait4, __wait3): Declare arg as struct rusage, not PTR.
10207
10208         * inet/arpa/*.h, inet/protocols/*.h, inet/netdb.h, inet/resolv.h:
10209         New files from 4.4.
10210         * inet/Makefile (headers): Snarf *.h from arpa/ and protocols/.
10211
10212         * sysdeps/m68k/fpu/__math.h, assert/assert.h: #include <sys/cdefs.h>
10213         and use its macros rather than rolling our own.
10214
10215         * misc/sys/cdefs.h: New file.
10216         * misc/Makefile (headers): Add it.
10217
10218         * Makerules: Moved check for headers coming from env to Rules.
10219
10220 Tue May 12 01:04:10 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10221
10222         * sysdeps/generic/strsep.c: New.
10223         * string/string.h [__USE_BSD] (strsep): Declare.
10224         * string/Makefile (routines): Added strsep.
10225
10226         * sysdeps/unix/sysv/__settod.c, sysdeps/unix/sysv/stime.S,
10227         sysdeps/unix/bsd/stime.c, sysdeps/stub/stime.c: New.
10228         * time/time.h [__USE_SVID] (stime): Declare it.
10229
10230         * sysdeps/unix/bsd/bsd44/__getdents.S: New.
10231
10232         * posix/wordexp.h, posix/utime.h, posix/unistd.h, time/time.h,
10233         termios/termios.h, posix/tar.h, string/strings.h, string/string.h,
10234         stdlib/stdlib.h, signal/signal.h, stdio/stdio.h, misc/sgtty.h,
10235         setjmp/setjmp.h, inet/resolv.h, pwd/pwd.h, stdio/printf.h,
10236         misc/nlist.h, inet/netdb.h, math/math.h, malloc/malloc.h,
10237         locale/locale.h, grp/grp.h, posix/glob.h, posix/getopt.h,
10238         posix/fnmatch.h, io/fcntl.h, errno.h, dirent/dirent.h,
10239         ctype/ctype.h, string/bstring.h, assert/assert.h, stdlib/alloca.h,
10240         misc/a.out.h [__cplusplus]: Added stupid cruft for losing C++.
10241
10242 Mon May 11 01:40:49 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10243
10244         * math/Makefile (headers): Added huge_val.h and nan.h.
10245
10246         * io/Makefile (headers): Changed gnu/stat.h to statbuf.h.
10247
10248         * time/Makefile (install-data): Include $(localtime-file) and
10249         $(posixrules-file) if they are relative.
10250         (install-others): Include them if absolute.
10251         ($(posixrules-file), $(localtime-file)): Define rules to install if
10252         absolute file names.
10253         * Makerules (+install): Include $(install-others) verbatim.
10254         * Makeconfig (localtime-file): Made default /etc/localtime.
10255
10256         * sysdeps/generic/Makefile (endian.h): Only generate if would
10257         otherwise use stub version.
10258         * sysdeps/stub/endian.h, sysdeps/i386/endian.h: New.
10259
10260         * Rules, Makefile: Export distribute and dont_distribute.
10261         * Make-dist: Export sysdep_dirs.  Unexport things rather than
10262         clobbering their values.
10263
10264         * misc/sys/ptrace.h: Fixed typo.
10265
10266         * stdio/stdio.h (__io_read, __io_write, __io_seek, __io_close):
10267         Added comments.
10268
10269         * stdio/internals.c (flushbuf): If in append mode, don't do aligned
10270         writing, seek to the target, or update the offset.
10271
10272         * posix/unistd.h (lseek): Doc fix.
10273
10274         * misc/swab.c: New.
10275         * misc/Makefile (routines): Added swab.
10276
10277 Wed May  6 12:32:18 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10278
10279         * math/Makefile, inet/Makefile (source_dirs): Export it.
10280         * MakeTAGS (all-dirs): Include $(source_dirs).
10281
10282         * Makefile (TAGS): Removed dep on subdir_TAGS.
10283         (+subdir_targets): Removed subdir_TAGS.
10284         * MakeTAGS [! subdir] (TAGS): Depend on subdir_TAGS.
10285         [! subdir] (subdir_TAGS): Recurse on subdirectories.
10286
10287         * Makerules (headers): Don't take value from the environment.
10288
10289         * Makerules (sysdirs, sysdep_dir): Export them.
10290
10291         * MakeTAGS: New makefile.
10292         * Makefile (distribute): Include it.
10293         * Makefile (TAGS), Rules (TAGS): Removed rules.
10294         * Makerules (TAGS): New rule that uses MakeTAGS.
10295         * Makefile (TAGS): Depend on subdir_TAGS.
10296
10297         * Makerules (install, install-lib, install-data, routines, aux):
10298         Don't bother removing these if they come from the environment, since
10299         they won't with make >= 3.62.8.
10300         * Rules (distribute, headers): Ditto.
10301         (subdir): Export it.
10302         * Makerules (sources, headers): Export these.
10303         * Makefile (subdirs): Export it.
10304
10305         * Rules (+tags_sources): Removed.
10306         * Makerules (tags-sources): Define here.
10307         * ctype/Makefile (tags-sources): Redefine to give headers precedence
10308         over sources.
10309         * Rules (TAGS), Makefile (TAGS): Rewrote rules.
10310         * Makeconfig (+ctags): Removed.
10311         (ETAGS): Define.
10312
10313         * sysdeps/posix/getcwd.c: Don't closedir twice.
10314
10315         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Define __wait3, not ___wait3.
10316
10317         * posix/sys/types.h [__USE_BSD] (fsid_t): Define.
10318         * posix/gnu/types.h (__fsid_t): Define.
10319
10320         * io/fcntl.h (F_GETLK): Define.
10321
10322 Tue May  5 18:36:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10323
10324         * misc/Makefile (routines): Added seteuid and setegid.
10325         * sysdeps/stub/sete[ug]id.c, sysdeps/unix/bsd/bsd44/sete[ug]id.S: New.
10326         * posix/unistd.h [__USE_BSD] (seteuid, setegid): Declare.
10327
10328         * sysdeps/unix/bsd/tcsendbrk.c: #include <sys/types.h>
10329
10330         * Makerules: Strip whitespace from $(headers) so ifdef wins.
10331
10332         * sysdeps/unix/bsd/bsdtty.h: #undef a bunch more things.
10333
10334         * sysdeps/unix/bsd/bsd44/errnos.h: New, hacked from 4.4 <sys/errno.h>.
10335
10336         * sysdeps/unix/Makefile (ioctls.h, errnos.h): Only generate if
10337         the files that would be used otherwise are the stub versions.
10338
10339         * sysdeps/unix/bsd/tcflow.c: Don't write VSTOP or VSTART if it is
10340         _POSIX_VDISABLE.
10341
10342         * sysdeps/unix/bsd/tcflush.c: Use FREAD|FWRITE for TCIOFLUSH.
10343
10344         * sysdeps/unix/bsd/usleep.c: Use select rather than itimers to wait.
10345
10346         * sysdeps/unix/bsd/tcsendbrk.c: Use select rather than itimers to wait.
10347
10348         * termios/cfmakeraw.c: New.
10349         * termios/Makefile (routines): Added cfmakeraw.
10350
10351         * sysdeps/unix/bsd/bsd44/ioctls.h: New file, hacked from 4.4
10352         <sys/ioctl.h>.
10353         * sysdeps/unix/bsd/bsd44/__tcgetatr.c: New.
10354         * sysdeps/unix/bsd/bsd44/tcsetattr.c: New.
10355         * sysdeps/unix/bsd/bsd44/tcdrain.c: New.
10356
10357         * termios/sys/ttydefaults.h: New, snarfed from 4.4.
10358         * termios/Makefile (headers): Define.
10359         * termios/termios.h [__USE_BSD]: #include <sys/ttydefaults.h>
10360
10361         * sysdeps/posix/getcwd.c: Removed unused variable.
10362
10363         * time/__tzset.c: Cast string literal to (char *).
10364
10365         * setjmp/sigjmp_save.c: Declare properly to return void.
10366
10367         * sysdeps/ieee754/nan.h: Created; somehow it disappeared.
10368
10369 Mon May  4 18:30:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10370
10371         * sysdeps/unix/bsd/bsd44/__wait4.S: New.
10372
10373         * sysdeps/unix/bsd/4.4: Renamed to sysdeps/unix/bsd/bsd44.
10374
10375         * signal/gnu/signal.h (__SA_DISABLE, __SA_NOCLDSTOP): Use same bits
10376         4.4 uses.
10377
10378 Sun May  3 13:57:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10379
10380         * stdio/fwrite.c: Use unsigned char to avoid sign extension.
10381
10382         * stdlib/__random.c (randtbl): Replaced default constants so they
10383         match the state produced by "srandom (1)".
10384
10385         * stdlib/mbtowc.c: Test for S == "" before testing for no mbchars.
10386
10387         * stdlib/Makefile (tests): Added testrand.
10388         * stdlib/testrand.c: New test for rand.
10389
10390         * stdlib/testmb.c: Added 2 mblen tests.
10391
10392         * stdlib/wcstombs.c: Don't do anything strange for EOF.
10393         Copy non-MB characters as they are.
10394         Properly increment S after writing.
10395
10396         * stdlib/testmb.c: Added test case for wcstombs.
10397
10398         * signal/signal.h (SA_DISABLE): Define.
10399         * signal/gnu/signal.h (__SA_DISABLE): Define.
10400
10401         * signal/signal.h (struct sigaltstack): Define new type.
10402         (sigaltstack): Declare new fn.
10403         * sysdeps/stub/sigaltstack.c: New.
10404         * sysdeps/unix/bsd/4.4/sigaltstack.S: New.
10405
10406         * misc/Makefile (routines): Added reboot.
10407         * posix/unistd.h (reboot): Declare.
10408         * sysdeps/stub/reboot.c: New.
10409
10410         * sysdeps/unix/bsd/ulimit.c [! HAVE_GNU_LD]: #define _etext -> etext.
10411
10412         * sysdeps/unix/bsd/sun/sparc/sethostid.S: #define _ERRNO_H before
10413         #include <errnos.h>.
10414
10415         * configure (newos*): base_os=unix/bsd.
10416
10417 Fri May  1 12:21:47 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10418
10419         * io/gnu/stat.h: Moved to sysdeps/unix/bsd/statbuf.h.
10420         * sysdeps/unix/bsd/statbuf.h: Define struct stat, not struct __stat.
10421         * io/stat.c: Use struct stat, not struct __stat.
10422         * sysdeps/stub/statbuf.h: New.
10423         * io/sys/stat.h: #include <statbuf.h> instead of gnu/stat.h.
10424         (stat, fstat, lstat, chmod, fchmod, umask, mkdir, mknod): Don't
10425         #define; declare as fns instead.
10426         * sysdeps/unix/sysv/stat.h: New.
10427         * sysdeps/unix/sysv/sysv_stat.h, sysdeps/unix/sysv/sys_stat.S,
10428         sysdeps/unix/sysv/sys_fstat.S: Removed.
10429         * sysdeps/unix/sysv/Makefile (sysdep_routines): Removed sys_stat,
10430         sys_fstat.
10431         * sysdeps/unix/sysv/Dist: Removed sys_stat.S, sys_fstat.S.
10432         * sysdeps/unix/bsd/__stat.S, sysdeps/unix/bsd/__fstat.S: Moved to
10433         sysdeps/unix.
10434
10435         * sysdeps/m68k/fpu/switch/Makefile: Refer to dirs fpu and
10436         fpu/switch, not 68881 and 68881-switch.
10437
10438         * sysdeps/m68k/fpu/switch/switch.c: #include <68881-sw.h>, not
10439           68881-switch.h.
10440
10441         * sysdeps/m68k/fpu/__expm1.c, sysdeps/m68k/fpu/__rint.c,
10442         sysdeps/m68k/fpu/asin.c, sysdeps/m68k/fpu/atan.c,
10443         sysdeps/m68k/fpu/atanh.c, sysdeps/m68k/fpu/ceil.c,
10444         sysdeps/m68k/fpu/cos.c, sysdeps/m68k/fpu/cosh.c,
10445         sysdeps/m68k/fpu/exp.c, sysdeps/m68k/fpu/fabs.c,
10446         sysdeps/m68k/fpu/floor.c, sysdeps/m68k/fpu/log.c,
10447         sysdeps/m68k/fpu/log10.c, sysdeps/m68k/fpu/log1p.c,
10448         sysdeps/m68k/fpu/sin.c, sysdeps/m68k/fpu/sinh.c,
10449         sysdeps/m68k/fpu/sqrt.c, sysdeps/m68k/fpu/tan.c,
10450         sysdeps/m68k/fpu/tanh.c: #include <acos.c> without explicit path
10451         (which has changed).
10452
10453         * sysdeps/unix/bsd/sun/sparc/start.c: #include <syscall.h>.
10454         (syscall): Removed C function; define all inside asm instead.
10455         (init_shlib): Cast return value of syscall to right types.
10456
10457 Thu Apr 30 01:15:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10458
10459         * sysdeps/unix/bsd/sun/sparc/start.c: Added code to use dynamic
10460         linker from trq@dionysos.thphys.ox.ac.uk.
10461
10462         * sysdeps/unix/bsd/sun/sunos4: Renamed to sunos411.
10463
10464         * setjmp/setjmp.h (sigsetjmp): Don't declare as a function.
10465         Define as a macro instead.
10466         (__sigjmp_save): Declare; internal fn used by sigsetjmp macro.
10467         (_setjmp), [__FAVOR_BSD] (setjmp): Always define as a macro.
10468         * setjmp/sigjmp_save.c: New file.
10469         * setjmp/_setjmp.c, setjmp/sigsetjmp.c: Removed.
10470         * Makefile (routines): Removed _setjmp, sigsetjmp; added sigjmp_save.
10471         * misc/bsd-compat.c (setjmp): Don't define.
10472
10473         * configure (sysv, bsd): base_os=unix
10474
10475         * configure: Fatal error if the machine or os did not generate any
10476         sysdep dirs.
10477
10478         * configure: No error message after config.sub fails.
10479
10480         * sysdeps/mips, sysdeps/unix/bsd/ultrix42: New port from
10481         brendan@cs.widener.edu.
10482
10483         * Reorganized sysdeps:
10484           unix/bsd/
10485               hp9k3bsd -> hp/m68k
10486               news -> sony/m68k
10487               sun/
10488                   sun3/os3 -> sunos3/m68k
10489                   sun3 -> m68k
10490                   sun4 -> sparc
10491           unix/sysv/
10492               r4 -> sysv4
10493           m68k/
10494               68881 -> fpu
10495               68881/68881-switch -> fpu/switch
10496         * sysdeps/unix/bsd/sony/m68k/start.c: Changed #include.
10497         * configure: Use config.sub to canonicalize name.
10498         Then use combinations of machine, vendor, and os (with special
10499         hacks for os flavors) for sysdep dirs to try.
10500         * Makefile (distribute): Added config.sub.
10501
10502 Wed Apr 29 23:06:06 1992  Brendan Kehoe  (brendan@churchy.gnu.ai.mit.edu)
10503
10504         * sysdeps/unix/bsd/hp9k3bsd/sysdep.h,
10505         sysdeps/unix/bsd/sun/sun3/sysdep.h, sysdeps/unix/bsd/sun/sun4/sysdep.h,
10506         sysdeps/unix/bsd/vax/sysdep.h,sysdeps/unix/i386/sysdep.h,
10507         sysdeps/mach/i386/sysdep.h: Change all definitions of movl/mov to
10508         MOVE(s, d), for insn sets with d,s instead of s,d move insns.
10509         * sysdeps/unix/__getegid.S, sysdeps/unix/__geteuid.S,
10510         sysdeps/unix/__getppid.S: Use that in each of these.
10511
10512 Wed Apr 29 17:58:21 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10513
10514         * io/getwd.c: Default PATH_MAX if not defined.
10515
10516         * sysdeps/unix/getlogin.c, sysdeps/posix/ttyname.c: Make buffers
10517         only as big as needed, avoiding PATH_MAX.
10518
10519         * sysdeps/posix/getcwd.c: Dynamically extend the buffer as we go,
10520         not afterwards; default PATH_MAX if not defined.
10521
10522         * posix/execvp.c: Dynamically allocate an array on the stack for the
10523         path name, rather than using a fixed-size array.
10524
10525         * pwd/putpwent.c: Print pw_dir field.
10526
10527         * sysdeps/posix/mktemp.c: If the pid has changed, update OLDPID.
10528
10529 Tue Apr 28 19:25:21 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10530
10531         * malloc/valloc.c [emacs]: #include "config.h"
10532
10533 Thu Apr 23 13:55:34 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10534
10535         * sysdeps/m68k/68881/__drem.c: Define __drem, not drem.
10536         Call ____drem, not __drem.
10537
10538         * malloc/realloc.c, malloc/malloc.c: Don't #define memcpy or memset
10539         if already #define'd.
10540
10541 Tue Apr 21 04:16:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10542
10543         * malloc/Makefile: Moved include ../Rules after malloc.tar rules.
10544         They need $(routines), which Rules clears.
10545
10546         * malloc/realloc.c (MIN): Renamed to min.  Conflicted with HPUX
10547         system header files.
10548
10549         * Makefile (sysdep-subdirs): Is not called +sysdep-subdirs.
10550
10551         * configure: Don't try to create config.status if . is not writable.
10552
10553         * sysdeps/generic/printf_fp.c: Fixed padding loop condition for zero
10554         case.
10555
10556         * math/math.h: Don't #include <float.h> for HUGE_VAL.
10557         Instead, #include <huge_val.h>.
10558         * stdlib/stdlib.h: Ditto.
10559         * math/math.h [__USE_GNU]: #include <nan.h> to get NAN value.
10560         * float.h: Removed.
10561         * Makefile (headers): Removed float.h and fl.h.
10562         * sysdeps/ieee754/huge_val.h, sysdeps/ieee754/nan.h,
10563         sysdeps/stub/huge_val.h, sysdeps/stub/nan.h, sysdeps/vax/huge_val.h:
10564         Created (from old fl.h files).
10565
10566         * math/bsd/common_source/pow.c (pow_p): When checking if Y is an
10567         integer, don't let it overflow a `long int'.
10568         (pow): Check for NaN with __isnan, not (X != X).
10569
10570 Tue Apr 21 02:26:19 1992  Brendan Kehoe  (brendan@cs.widener.edu)
10571
10572         * sysdeps/unix/bsd/sun/sun4/__pipe.S,
10573         sysdeps/unix/bsd/vax/__wait3.S, sysdeps/unix/bsd/hp9k3bsd/__wait3.S:
10574         Use the ENTRY macro for each beginning
10575
10576         * sysdeps/unix/sysdep.h, sysdeps/unix/bsd/hp9k3bsd/sysdep.h,
10577         sysdeps/unix/bsd/sun/sun3/sysdep.h,
10578         sysdeps/unix/bsd/sun/sun4/sysdep.h, sysdeps/unix/bsd/vax/sysdep.h,
10579         sysdeps/unix/i386/sysdep.h, sysdeps/unix/sysdep.h,
10580         sysdeps/unix/sysv/sysdep.h [SYSCALL, SYSCALL__, PSEUDO]: Modify to
10581         also receive the number of args the syscall takes; added for future
10582         ports that will require this information.
10583
10584         * sysdeps/unix/i386/__pipe.S, sysdeps/unix/bsd/vax/__pipe.S,
10585         sysdeps/unix/bsd/sun/sun4/__pipe.S,
10586         sysdeps/unix/bsd/hp9k3bsd/__pipe.S, sysdeps/unix/i386/__brk.S,
10587         sysdeps/unix/bsd/sun/__getdents.S, sysdeps/unix/i386/__fork.S,
10588         sysdeps/unix/bsd/vax/__fork.S, sysdeps/unix/bsd/sun/sun4/__fork.S,
10589         sysdeps/unix/__setgid.S, sysdeps/unix/__setuid.S,
10590         sysdeps/unix/bsd/sun/sun3/__vfork.S,
10591         sysdeps/unix/bsd/sun/sun4/__vfork.S,
10592         sysdeps/unix/bsd/vax/__wait.S, sysdeps/unix/bsd/hp9k3bsd/__wait.S,
10593         sysdeps/unix/i386/__wait.S,
10594         sysdeps/unix/bsd/sun/sunos4/sys_wait4.S,
10595         sysdeps/unix/bsd/sun/sun3/sethostid.S,
10596         sysdeps/unix/bsd/sun/sun4/sethostid.S,
10597         sysdeps/unix/bsd/__sigvec.S, sysdeps/unix/bsd/sun/sun4/__sigvec.S,
10598         sysdeps/unix/sysv/i386/__sigret.S, sysdeps/unix/__getppid.S,
10599         sysdeps/unix/bsd/__access.S, sysdeps/unix/sysv/signal.S,
10600         sysdeps/unix/__getegid.S, sysdeps/unix/__geteuid.S,
10601         sysdeps/unix/bsd/bsd_getgrp.S, sysdeps/unix/bsd/__dup2.S,
10602         sysdeps/unix/bsd/__fchmod.S, sysdeps/unix/bsd/__fchown.S,
10603         sysdeps/unix/bsd/__flock.S, sysdeps/unix/bsd/__fstat.S,
10604         sysdeps/unix/bsd/__lstat.S, sysdeps/unix/bsd/__mkdir.S,
10605         sysdeps/unix/bsd/__readlink.S, sysdeps/unix/bsd/__rmdir.S,
10606         sysdeps/unix/bsd/__stat.S, sysdeps/unix/bsd/__symlink.S,
10607         sysdeps/unix/bsd/4.4/chflags.S, sysdeps/unix/bsd/4.4/fchflags.S,
10608         sysdeps/unix/bsd/4.4/sstk.S, sysdeps/unix/bsd/4.4/setlogin.S,
10609         sysdeps/unix/bsd/__getdtsz.S, sysdeps/unix/bsd/__getpgsz.S,
10610         sysdeps/unix/bsd/__setregid.S, sysdeps/unix/bsd/__setreuid.S,
10611         sysdeps/unix/bsd/__utimes.S, sysdeps/unix/bsd/ftruncate.S,
10612         sysdeps/unix/bsd/readv.S, sysdeps/unix/bsd/truncate.S,
10613         sysdeps/unix/bsd/vhangup.S, sysdeps/unix/bsd/writev.S,
10614         sysdeps/unix/bsd/__getpgrp.S, sysdeps/unix/bsd/__setpgrp.S,
10615         sysdeps/unix/bsd/__getrusag.S, sysdeps/unix/bsd/getprio.S,
10616         sysdeps/unix/bsd/getrlimit.S, sysdeps/unix/bsd/setprio.S,
10617         sysdeps/unix/bsd/__sigblock.S,
10618         sysdeps/unix/bsd/__sigpause.S, sysdeps/unix/bsd/__sigstmsk.S,
10619         sysdeps/unix/bsd/killpg.S, sysdeps/unix/bsd/sigstack.S,
10620         sysdeps/unix/bsd/rename.S, sysdeps/unix/bsd/__adjtime.S,
10621         sysdeps/unix/bsd/__setitmr.S, sysdeps/unix/bsd/__settod.S,
10622         sysdeps/unix/sysv/sys_stat.S, sysdeps/unix/sysv/sys_fstat.S,
10623         sysdeps/unix/sysv/__utssys.S, sysdeps/unix/sysv/utime.S,
10624         sysdeps/unix/sysv/__times.S, sysdeps/unix/sysv/i386/time.S,
10625         sysdeps/unix/sysv/alarm.S, sysdeps/unix/sysv/pause.S,
10626         sysdeps/unix/sysv/ulimit.S, sysdeps/unix/__chdir.S,
10627         sysdeps/unix/__chmod.S, sysdeps/unix/__chown.S,
10628         sysdeps/unix/__close.S, sysdeps/unix/__dup.S,
10629         sysdeps/unix/__fcntl.S, sysdeps/unix/__link.S,
10630         sysdeps/unix/__lseek.S, sysdeps/unix/__open.S,
10631         sysdeps/unix/__read.S, sysdeps/unix/__umask.S,
10632         sysdeps/unix/__unlink.S, sysdeps/unix/__write.S,
10633         sysdeps/unix/__ioctl.S, sysdeps/unix/__mknod.S,
10634         sysdeps/unix/acct.S, sysdeps/unix/chroot.S, sysdeps/unix/fsync.S,
10635         sysdeps/unix/ptrace.S, sysdeps/unix/swapon.S, sysdeps/unix/sync.S,
10636         sysdeps/unix/__execve.S, sysdeps/unix/__getgid.S,
10637         sysdeps/unix/__getpid.S, sysdeps/unix/__getuid.S,
10638         sysdeps/unix/_exit.S, sysdeps/unix/__kill.S,
10639         sysdeps/unix/inet/__gethstnm.S, sysdeps/unix/inet/__select.S,
10640         sysdeps/unix/inet/gethostid.S, sysdeps/unix/inet/sethostid.S,
10641         sysdeps/unix/inet/sethostnam.S, sysdeps/unix/inet/accept.S,
10642         sysdeps/unix/inet/bind.S, sysdeps/unix/inet/connect.S,
10643         sysdeps/unix/inet/getpeernam.S, sysdeps/unix/inet/getsocknam.S,
10644         sysdeps/unix/inet/getsockopt.S, sysdeps/unix/inet/listen.S,
10645         sysdeps/unix/inet/recv.S, sysdeps/unix/inet/recvfrom.S,
10646         sysdeps/unix/inet/recvmsg.S, sysdeps/unix/inet/send.S,
10647         sysdeps/unix/inet/sendmsg.S, sysdeps/unix/inet/sendto.S,
10648         sysdeps/unix/bsd/vax/__wait3.S, sysdeps/unix/bsd/hp9k3bsd/__wait3.S,
10649         sysdeps/unix/inet/setsockopt.S, sysdeps/unix/inet/shutdown.S,
10650         sysdeps/unix/inet/socket.S, sysdeps/unix/inet/socketpair.S: Added the
10651         argument count to every use of SYSCALL, SYSCALL__ or PSEUDO.
10652
10653 Tue Apr 21 00:06:52 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10654
10655         * limits.h [__GNUC__ >= 2]: Use #include_next to get GCC's <limits.h>.
10656
10657         * sysdeps/posix/sysd-stdio.c (__stdio_read, __stdio_write,
10658         __stdio_errmsg) [EINTR && EINTR_REPEAT]: Do EINTR looping.
10659         * sysdeps/unix/sysv/sysd-stdio.c: New.
10660         #define EINTR_REPEAT and #include posix/sysd-stdio.c.
10661
10662         * stdlib/mbstowcs.c: Copy non-MB chars verbatim, instead of error.
10663
10664         * sysdeps/generic/printf_fp.c: Note sign of exponent and take its
10665         absolute value for arithmetic.
10666
10667         * stdlib/testmb.c: New.
10668         * stdlib/Makefile (tests): Added testmb.
10669
10670         * sysdeps/generic/frexp.c [NAN]: If VALUE is infinite, return NAN.
10671         If VALUE is NAN, set errno to EDOM and return VALUE.
10672         If VALUE is zero, return it.  In all special cases, clear *EXP.
10673
10674         * stdio/test-fseek.c: New.
10675         * stdio/Makefile (tests): Added test-fseek.
10676
10677         * stdio/fseek.c: Position returned from io_funcs.seek is absolute,
10678         not EOF-relative when using SEEK_END.
10679
10680         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Set errno to
10681         EEXIST when we run out.
10682
10683         * sysdeps/posix/sysd-stdio.c (exists): Use stat rather than open, so
10684         we don't need read access.
10685
10686         * sysdeps/posix/mk-stdiolim.c (TMP_NAM): is 62 ** 3.
10687
10688 Mon Apr 20 23:08:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10689
10690         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Don't return
10691         the same name twice when the file doesn't exist.
10692
10693         * stdio/vfprintf.c (%c format): Tests of LEFT for padding were
10694         reversed.
10695
10696         * sysdeps/generic/printf_fp.c: If we have written some fractional
10697         digits, write zeros up to the precision.
10698
10699         * sysdeps/unix/bsd/sun/sun4/start.c: Don't clear the FP until just
10700         before calling main.
10701
10702 Wed Apr 15 01:43:38 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10703
10704         * Makerules (libc.a): Don't depend on libc.a(...); only on lib.
10705         (lib-noranlib): Depend on libobjs.
10706         (+libobjs): New var.
10707         (libobjs): Depend on $(+libobjs).
10708         * Rules (others, tests): Don't depend on lib; on libc.a instead.
10709
10710         * locale/C-numeric.c: grouping is "".
10711
10712         * locale/localeconv.c: Set int_frac_digits.
10713
10714         * locale/setlocale.c: Accept "" to mean "C".
10715
10716         * sysdeps/unix/sysv/r4/bsddir.h: Protect against multiple inclusion.
10717
10718         * sysdeps/unix/sysv/r4/Dist: Created; includes bsddir.h and
10719         sys_getdents.S.
10720
10721         * sysdeps/unix/i386/sysdep.h [! HAVE_SYSCALLS]: Don't #inlcude
10722         unix/sysdep.h.
10723         * sysdeps/unix/sysv/sysdep.h, sysdeps/unix/sysdep.h
10724         (HAVE_SYSCALLS): #define.
10725         * sysdeps/unix/sysv/i386/sysdep.h: #include unix/sysv/sysdep.h, then
10726         unix/i386/sysdep.h.
10727
10728         * sysdeps/unix/sysv/Makefile: Fixed typos.
10729
10730         * sysdeps/unix/sysv/Dist: Add utmp.h.
10731
10732         * sysdeps/posix/Makefile (mk-stdiolim): Explicit commands, to
10733         compile it without normal gcc flags.
10734
10735         * configure (i386-sysv): unix/i386/sysv -> unix/sysv/i386.
10736         (i386-sysvr4): New configuration.
10737
10738 Tue Apr 14 16:47:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10739
10740         * setjmp/setjmp.h: Put sigjmp_buf before typedef for jmp_buf, which
10741         needs sigjmp_buf #ifdef __FAVOR_BSD.
10742
10743         * posix/unistd.h (getgroups): Don't #define.
10744
10745         * sysdeps/stub/ptrace.c: #include <stdarg.h>; declare AP in fn.
10746         Avoid "PTR a, b".
10747
10748         * sysdeps/posix/sigintr.c: New; sets global sigset_t `_sigintr'.
10749         * sysdeps/posix/signal.c: Use SA_RESTART unless SIG is in _sigintr.
10750         * signal/sigintr.c: Removed.
10751         * sysdeps/stub/sigintr.c: New.
10752
10753         * sysdeps/posix/sysd-stdio.c (__stdio_read, __stdio_write,
10754         __stdio_errmsg): Don't treat EINTR specially.
10755
10756         * sysdeps/unix/Makefile (sys/param.h): Touch the target after mv'ing
10757         from the tmp file, so the file is newer than the directory.
10758
10759         * sysdeps/generic/strcasecmp.c: Simplified loop; fixed returning
10760         wrong value on equal comparison.
10761
10762         * stdlib/bsearch.c: Don't lose if NMEMB is zero.
10763
10764         * sysdeps/unix/bsd/__times.c (timeval_to_clock_t): Microseconds are
10765         not milliseconds.
10766
10767 Mon Apr 13 18:25:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10768
10769         * sysdeps/generic/strncase.c: New.
10770         * string/Makefile (routines): Add strncase.
10771         * string/string.h [__USE_GNU]: Declare strncasecmp.
10772
10773         * time/__tzset.c: Correctly default DST offset to one hour later
10774         than standard offset.
10775
10776         * time/__tzset.c (tz_rule): Made `name' not be const.
10777
10778         * string/tester.c [! HAVE_GNU_LD]: #define _sys_nerr and
10779         _sys_errlist to sys_nerr and sys_errlist.
10780
10781         * stdio/test_rdwr.c: Fixed printf call missing arg.
10782
10783         * posix/getgrps.c: #undef getgroups first.
10784
10785         * misc/brk.c: Declare __brk.
10786         * misc/sbrk.c: Declare __sbrk.
10787         * misc/setreuid.c, misc/setregid.c: #include <unistd.h>.
10788         Fixed types in DEFUN in fn alias.
10789         * misc/getpgsz.c, misc/getdtsz.c, misc/gethstnm.c: #include <unistd.h>.
10790         * misc/getdents.c: Declare __getdirentries.
10791         * misc/mknod.c: #include <sys/stat.h>.
10792         * posix/unistd.h: Declare many __ versions of things.
10793         [__OPTIMIZE__]: Many #define foo(...) -> __foo(...).
10794
10795         * io/fcntl.c: #include <sys/file.h>.
10796
10797         * sysdeps/unix/Makefile: New hair to install other headers the
10798         system sys/param.h #includes.
10799
10800         * time/__tzset.c (__tzfile_default): Declare.
10801
10802         * time/sys/time.h (timezone): #define to __timezone.
10803
10804         * sysdeps/ieee754/printf_fp.c: #undef outchar before #including
10805         generic/printf_fp.c.
10806
10807         * stdio/__vfscanf.c: For %c, don't lose the first char.
10808         For %s, properly consume the last char when we hit max width.
10809
10810         * posix/gnu/types.h (__dev_t, __mode_t): Made int rather than short.
10811         * io/gnu/stat.h (struct stat): Made st_dev, st_rdev, and st_mode use
10812         {,unsigned} short int instead of __dev_t/__mode_t.
10813
10814 Fri Apr 10 13:55:07 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
10815
10816         * setjmp/setjmp.h: Rearranged so that jmp_buf is defined before any
10817         prototypes are used.
10818         (longjmp): Declare with jmp_buf, not __jmp_buf, to win in BSD mode.
10819         (_longjmp): #define as __longjmp, not longjmp.
10820         (_longjmp, _setjmp): Take jmp_buf args, not __jmp_buf.
10821         Call sig{set,long}jmp with SAVEMASK==0, rather than __{set,long}jmp.
10822         * _longjmp.c, _setjmp.c: #define _BSD_SOURCE before all else.
10823         (_setjmp): Call sigsetjmp, not __setjmp.
10824
10825         * io/sys/stat.h (__fchmod, __mknod): Fixed arg types.
10826
10827         * io/fchmod.c: Fixed typo.
10828
10829         * time/Makefile (\n): Renamed to nl.
10830
10831         * Makerules (native-compile): New variable.
10832         * sysdeps/generic/Makefile, sysdeps/unix/Makefile,
10833         sysdeps/unix/bsd/Makefile: Use it in cmds for generator progs.
10834
10835         * sysdeps/unix/sysv/sysv_termio.h (_SYSV_TAB3): New; same as XTABS.
10836
10837         * sysdeps/unix/sysv/setrlimit.c: Removed extern decl of etext (unused).
10838
10839         * sysdeps/unix/sysv/__tcgetatr.c, sysdeps/unix/sysv/tcdrain.c,
10840         sysdeps/unix/sysv/tcflow.c, sysdeps/unix/sysv/tcflush.c,
10841         sysdeps/unix/sysv/tcgetpgrp.c, sysdeps/unix/sysv/tcsendbrk.c,
10842         sysdeps/unix/sysv/tcsetattr.c, sysdeps/unix/sysv/tcsetpgrp.c:
10843         #include <sys/ioctl.h>
10844
10845         * sysdeps/unix/sysv/__rmdir.c, sysdeps/unix/sysv/__mkdir.c,
10846         sysdeps/posix/writev.c: #include <string.h>.
10847
10848         * sysdeps/posix/clock.c: Removed unused variable.
10849
10850 Thu Apr  9 01:49:39 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10851
10852         * Version 1.03.
10853
10854         * grp/testgrp.c: Print members correctly.
10855
10856         * stdio/test-popen.c: Pipe to cat rather than more, and then check
10857         output file.  Better error checking.
10858
10859         * setjmp/tst-setjmp.c: Notice if we didn't jump the right number of
10860         times.
10861
10862         * signal/tst-signal.c, string/testcopy.c, stdio/bug[12345].c: Print
10863         msgs that more clearly say whether we won or lost.  Better error
10864         checking.
10865
10866         * sysdeps/generic/printf_fp.c: Completely rewritten from scratch.
10867         Now uses Steele & White's "Dragon4" algorithm to do things right.
10868
10869 Wed Apr  8 01:08:41 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10870
10871         * sysdeps/i386/__longjmp.c: Test for VAL==0 before clobbering regs.
10872         Wire V to AX, rather than DX.  Use "a" constraint on unused operand
10873         in jmp asm, rather than global reg var, to force value into AX.
10874
10875 Tue Apr  7 17:51:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10876
10877         * posix/Makefile (headers): Added tar.h.
10878         * posix/tar.h: New file, from djm.
10879
10880 Mon Apr  6 01:39:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10881
10882         * time/tzfile.c (struct ttinfo): Made `isstd' member be unsigned
10883         char instead of 1-bit bitfield.
10884
10885         * time/tzfile.c (__tzfile_default): New function.
10886         * time/__tzset.c: Call it when no rule is given.
10887         * time/Makefile: Install posixrules just like localtime.
10888         * time/Makeconfig (posixrules, posixrules-file): New config vars.
10889
10890         * time/time.h (struct tm): Add `tz_gmtoff', `tz_zone'.
10891         * time/localtime.c: Set those members.
10892
10893         * sysdeps/ieee754/__drem.c: XOR the signs of X and the result,
10894         rather than setting the sign of the result to that of X.
10895
10896         * sysdeps/unix/bsd/make-local_lim.c: Don't do MAXUPRC or MAXLINK if
10897         <sys/param.h> didn't define them.
10898
10899         * sysdeps/posix/__sigvec.c: Fixed braino: SA_ONSTACK should be
10900         SA_RESTART.
10901
10902         * pwd/getpw.c, pwd/putpwent.c: Use %u fmt for uid and gid (which are
10903         unsigned).
10904
10905         * time/time.h (tzname, daylight, timezone): Don't #define to __.
10906         * time/tzfile.c, time/__tzset.c, time/localtime.c, time/strftime.c
10907         [! HAVE_GNU_LD]: #define __ to plain for above three vars.
10908
10909 Thu Apr  2 03:39:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10910
10911         * locale/Makefile (routines): Add localeconv.
10912
10913         * sysdeps/i386/jmp_buf.h: Removed `__dx' elt; replaced with `__pc'.
10914         __bp and __sp are PTRs.
10915         * sysdeps/i386/setjmp.c: Rewritten.  Use global reg vars to save regs.
10916         Use arithmetic on address of arg to get caller's PC, BP, and SP.
10917         * sysdeps/i386/__longjmp.c: Rewritten.  Use global reg vars to
10918         restore regs.
10919
10920 Wed Apr  1 23:13:57 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10921
10922         * Moved sysdeps/unix/i386/{bsd,sysv} to
10923         sysdeps/unix/{bsd,sysv}/i386, and updated Implies files.
10924         Implied dirs come before parents, and we want unix/i386 before
10925         unix/{sysv,bsd}.
10926
10927         * io/chown.c: Fixed types in fn alias.
10928
10929 Wed Apr  1 14:18:58 1992  Torbjorn Granlund  (tege@mole.gnu.ai.mit.edu)
10930
10931         * sysdeps/generic/memcmp.c
10932         (memcmp_common_alignment, memcmp_not_common_alignment):
10933         Move back do0 label to its original position, after the loop.
10934         Add comment before do0 labels.
10935         * sysdeps/generic/wordcopy.c (_wordcopy_fwd_aligned): Indentation.
10936         Add comment before do0 labels.
10937
10938 Wed Apr  1 02:16:19 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10939
10940         * sysdeps/unix/sysv/Makefile [subdir==misc]: Generate sysdep header
10941         termio.h from sysv_termio.h.
10942
10943         * sysdeps/generic/make_siglist.c: New file.
10944         * sysdeps/generic/signame.[ch]: Symlink'd from /gd/gnu/lib.
10945         * sysdeps/generic/Makefile: Generate siglist.c with above.
10946         * sysdeps/generic/Dist: Add make_siglist.c, signame.[ch].
10947
10948         * sysdeps/unix/bsd/Makefile (before-compile): Define properly as a
10949         variable.
10950
10951         * sysdeps/unix/bsd/make_siglist.c: Generate #define _sys_siglist
10952         sys_siglist #ifndef HAVE_GNU_LD.
10953         * stdio/psignal.h, string/strsignal.h [! HAVE_GNU_LD]:
10954         #define _sys_siglist sys_siglist.
10955
10956         * sysdeps/unix/sysv/signum.h (SIGCHLD): Changed #.
10957         (SIGUSR1, SIGUSR2, SIGPWR): Added.
10958         (_NSIG): Updated.
10959
10960         * sysdeps/unix/sysv/utmp.h: New.
10961
10962         * sysdeps/unix/bsd/getlogin.c: Moved to sysdeps/unix/getlogin.c.
10963
10964         * sysdeps/unix/sysv/r4/bsddir.h, sysdeps/unix/sysv/r4/readdir.c,
10965         sysdeps/unix/sysv/r4/closedir.c, sysdeps/unix/sysv/r4/rewinddir.c,
10966         sysdeps/unix/sysv/r4/opendir.c, sysdeps/unix/sysv/r4/sys_getdents.S,
10967         sysdeps/unix/sysv/r4/Makefile: New.
10968
10969         * sysdeps/unix/sysv/tcflow.c: New.
10970
10971         * sysdeps/unix/sysv/sysv_termio.h: Add lots of bits; VMIN and VTIME
10972         elts of c_cc.
10973         * sysdeps/unix/sysv/__tcgetatr.c, sysdeps/unix/sysv/tcsetattr.c: Use
10974         VMIN and VTIME elts from sysv termio struct.
10975
10976         * sysdeps/unix/sysv/__gethstnm.c: New.
10977
10978         * sysdeps/unix/sysv/local_lim.h (NGROUPS_MAX): Define as 0.
10979
10980         * sysdeps/unix/sysv/fcntlbits.h (struct __flock): Changed l_pid to
10981         short; added l_sysid.
10982
10983         * sysdeps/unix/sysv/__sigact.c: New.
10984
10985         * sysdeps/unix/sysv/r4/__access.S: New; just #include bsd/__access.S.
10986
10987         * sysdeps/unix/sysv/Makefile: Fixed typo: sysdep-routines =>
10988         sysdep_routines.
10989
10990         * sysdeps/unix/i386/sysv/__sigret.S,
10991         sysdeps/unix/i386/sysv/signal.S: New.
10992
10993         * signal/Makefile (routines): Added sigret, __sigret.
10994         * signal/sigret.c: New; fn alias to __sigreturn.
10995         * sysdeps/stub/__sigret.c: New.
10996
10997         * sysdeps/unix/i386/sysdep.h (PSEUDO): Use hard-coded numbers for
10998         lcalls insn--GAS bug.
10999
11000         * sysdeps/unix/bsd/readdir.c (D_NAMLEN): New macro; define if not
11001         already defined, to return length of a direct elt.
11002
11003         * sysdeps/stub/__getgrps.c: #include <limits.h>; if NGROUPS_MAX is
11004         defined as 0, always return 0, and no stub warning.
11005
11006         * sysdeps/posix/system.c: Don't fail if sigprocmask fails with ENOSYS.
11007
11008         * sysdeps/posix/sysd-stdio.c, sysdeps/stub/sysd-stdio.c: Doc fix.
11009
11010         * sysdeps/posix/__gettod.c: Use CONST where appropriate and not
11011         where not.
11012
11013         * sysdeps/i386/memchr.c, sysdeps/i386/strlen.c: Changed `repnz' to
11014         `repne'.
11015
11016         * stdio/fgets.c: Notice returned char from __fillbf in length calc.
11017
11018         * misc/sys/ioctl.h: Always define `struct sgttyb'.
11019
11020         * stdlib/alloca.h: #undef __alloca, too.
11021         Always #define alloca == __alloca.
11022
11023         * signal/signal.h (__kill): Fixed type in decl.
11024         * posix/unistd.h (setgid): Fixed type in decl.
11025         * posix/setpgid.c, posix/setgid.c, signal/kill.c, posix/fork.c,
11026           posix/vfork.c, posix/getpid.c, posix/getppid.c, posix/setsid.c:
11027         Fixed DEFUNs in fn aliases.
11028         * pwd/getpw.c: Fixed type in defn.
11029
11030 Mon Mar 30 17:06:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11031
11032         * sysdeps/generic/printf_fp.c: In %f, decrement PREC for each
11033         leading zero in the fractional part.
11034
11035         * sysdeps/ieee754/ieee754.h: Made all elts unsigned.
11036         * sysdeps/ieee754/__drem.c: Return NAN if Y is zero.
11037         * sysdeps/ieee754/ldexp.c: Rewritten.
11038         * sysdeps/ieee754/__logb.c: Handle denormalized numbers.
11039
11040         * posix/sys/wait.h: #include <endian.h>
11041
11042         * sysdeps/ieee754/fl.h: Fixed NAN and HUGE_VAL bit patterns; added
11043         code for little endian.
11044
11045         * sysdeps/generic/frexp.c: Add one to exponent to give the result a
11046         digit before the point.  Use negative exponent rather than division.
11047
11048         * math/__finite.c: Return zero for NaN.
11049         * math/math.h: Doc fix for same.
11050
11051         * stdio/__getdelim.c: Correctly notice when the buffer is full.
11052
11053         * sysdeps/unix/bsd/opendir.c: Pass arg to fcntl F_SETFD by value,
11054         not by reference.
11055
11056         * time/__tzset.c: Correct default rule: M4.1.0,M10.5.0.
11057
11058         * time/__tzset.c: Move ptr past Mfoobar syntax after parsing it.
11059
11060         * time/__tzset.c: Properly parse the DST offset (or its absence).
11061
11062         * sysdeps/unix/make_errlist.c: Write an #ifdef HAVE_GNU_LD, rather
11063         than testing it when compiling make_errlist.
11064
11065         * time/tzfile.c (__tzfile_read): Convert transitions to host byte
11066         order.
11067
11068         * Makeconfig (localtime-file): New config var.
11069         * time/Makefile (tzfile.o, zic.o): Use it for TZDEFAULT.
11070
11071         * stdio/Makefile (tests): Added tstgetline.
11072         * stdio/tstgetline.c: New; test for getline.
11073
11074         * Makeconfig (sysincludedir): Define and document.
11075         * sysdeps/unix/snarf-ioctls, sysdeps/unix/Makefile: Use
11076         ${sysincludedirs} in place of hard-coded /usr/include.
11077
11078 Fri Mar 27 13:33:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11079
11080         * string/Makefile (headers): Added endian.h.
11081
11082         * sysdeps/ieee754/__drem.c: Fixed typo which made X and Y be the
11083         same location.
11084
11085         * sysdeps/generic/__lstat.c: #include <gnu-stabs.h>
11086
11087         * stdio/internals.c (flushbuf): Increment target as well as offset
11088         when we write out the single char.
11089
11090         * grp/Makefile (tests): Add testgrp (formerly bug1).
11091
11092 Thu Mar 26 14:59:45 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11093
11094         * stdio/fread.c: Don't read directly when we need to seek first.
11095
11096 Wed Mar 25 02:34:49 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11097
11098         * sysdeps/unix/bsd/alarm.c: There are 1000000 usecs in a sec.
11099
11100         * sysdeps/unix/bsd/sun/ptrace.c: Removed.
11101
11102         * stdio/fgets.c: For unbuffered stream, don't return EOF after
11103         reading some data.
11104         Added missing parens.
11105
11106 Tue Mar 24 18:31:07 1992  Torbjorn Granlund  (tege@hal)
11107
11108         * sysdeps/i386/memset.c: Move code that puts C in all four nibbles of
11109         X inside `if' statement.  Include sysdeps/i386/memset.c (not bzero).
11110         * sysdeps/i386/memchr.c: Rewrite to be faster.  Include
11111         sysdeps/generic/memchr.c (not bzero).
11112
11113 Tue Mar 24 01:21:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11114
11115         * io/Makefile (routines): Add getdirname.
11116         * posix/unistd.h [__USE_GNU]: Declare getdirname.
11117         * io/getdirname.c: New.
11118
11119         * Makeconfig (stddef.h): Define and document.
11120         * Makefile (headers): Use $(stddef.h) for stddef.h.
11121
11122 Mon Mar 23 18:04:56 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11123
11124         * sysdeps/posix/mktemp.c: Do PID % 100000 for 5 digits.
11125
11126         * time/Makefile (tzfiles): Remove pacificnew; it won't compile.
11127         (distribute): Put it here instead.
11128
11129         * stdio/printf-prs.c [HAVE_LONGLONG]: Fixed missed var name change
11130         from code snarf.
11131
11132         * stdio/fgets.c: Return NULL when we get EOF.
11133
11134         * posix/execvp.c, sysdeps/posix/putenv.c [! HAVE_GNU_LD]: Define
11135         __environ as environ.
11136
11137         * sysdeps/unix/bsd/Makefile, sysdeps/unix/Makefile: In rules to
11138         compile generator programs, cd into $(objdir) first to avoid
11139         braindead cc clobbering foo.o in cwdir.
11140
11141         * sysdeps/m68k/setjmp.c: Deref fpregs array in asm.
11142
11143         * time/Makefile (zones-%): Fixed generated rules.
11144
11145         * math/Makefile (libm.a): Use r cmd to ar.
11146
11147         * time/Makefile (zones-%): In echo commands, put \\\\n outside of
11148         quotes instead of \\n inside single quotes.  SysV echo is braindead.
11149
11150         * io/fchown.c, io/fchmod.c, misc/bsd-compat.c: Fixed DEFUNs in fn
11151         aliases.
11152
11153         * time/Makefile (echo-zonenames): New target; tell user what all
11154         timezones defined in all zone files are.
11155         * Makeconfig (localtime): Comment about using above.
11156
11157 Sun Mar 22 18:34:02 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11158
11159         * time/australasia (NZ): Updated rules.
11160
11161 Sat Mar 21 01:00:49 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11162
11163         * stdio/printf-prs.c [__GNUC__]: Define HAVE_LONGLONG.
11164
11165 Fri Mar 20 00:35:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11166
11167         * Version 1.02.
11168
11169         * stdio/Makefile (routines): Add __getdelim, __getline.
11170
11171         * sysdeps/unix/i386/start.c: No ../ in #include file name.
11172
11173         * sysdeps/posix/sysd-stdio.c, sysdeps/stub/sysd-stdio.c
11174         (__stdio_seek): Doc fix.
11175
11176         * sysdeps/posix/mk-stdiolim.c: Add one to L_tmpnam, for the null
11177         terminator.
11178
11179         * sysdeps/posix/__dup2.c: Use an extra fcntl call to check that the
11180         first fd is valid.  Close the second fd before doing the dup.
11181
11182         * pwd/pwdread.c, grp/grpread.c: Use __getline.  Ignore lines
11183         beginning with #.
11184
11185         * Makeconfig (objdir): If $(ARCH) starts with a slash, don't prepend
11186         $(..).
11187
11188 Thu Mar 19 21:36:57 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11189
11190         * Makefile (install-lib): Add Mcrt1.o.
11191         (Mcrt1.o): Create empty file.
11192
11193 Wed Mar 18 16:00:18 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11194
11195         * Makeconfig (+link): Use $(libdir) for gnulib.
11196
11197 Tue Mar 17 20:12:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11198
11199         * math/bsd/common_source/mathimpl.h: Include <endian.h>.
11200         [__LITTLE_ENDIAN]: #define national.
11201
11202         * stdio/__vfscanf.c: EOF at end of string is not
11203         an error.
11204
11205         * stdio/tstscanf.c: Added new sscanf test.
11206
11207         * stdio/vfprintf.c: For %#x, print 0x after padding 0s, not before.
11208
11209         * stdio/fputs.c: Reverse size args to fwrite and test for returning
11210         LEN, rather than 1, so 0-length wins.
11211
11212         * io/gnu/fcntl.h: Moved to sysdeps/unix/bsd/fcntlbits.h.
11213         * io/Makefile (headers), io/fcntl.h: gnu/fcntl.h -> fcntlbits.h.
11214         * sysdeps/stub/fcntlbits.h, sysdeps/unix/sysv/fcntlbits.h: New.
11215
11216         * stdio/fopen.c (__getmode): Don't fall through in switch after 'a'
11217         case.
11218
11219         * locale/C-ctype_ct.c (__ctype_b_C): Use symbolic constants.
11220         9..12 are not _NOgraph.
11221
11222 Tue Mar 17 19:04:01 1992  Torbjorn Granlund  (tege@hal.gnu.ai.mit.edu)
11223
11224         * string/testcopy.c: Fix typo in comment.
11225
11226 Tue Mar 17 19:57:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11227
11228         * sysdeps/generic/strstr.c, string/string.h, string/tester.c
11229         (strstr): Arguments were reversed.
11230
11231 Tue Mar 17 18:52:39 1992  Torbjorn Granlund  (tege@hal.gnu.ai.mit.edu)
11232
11233         * sysdeps/i386/memcopy.h (WORD_COPY_BWD): Divide nbytes by 4.
11234         * sysdeps/i386/memchr.c: Rewrite.  Handle zero length correctly.
11235         Don't ask gcc to allocate eax to two regs.
11236
11237 Tue Mar 17 17:31:06 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11238
11239         * posix/unistd.h (getpagesize): Declare as size_t.
11240
11241         * Makeconfig (CC): Define unless origin is default.
11242
11243         * stdio/__getdelim.c: Be sure to leave room for the terminating null.
11244
11245         * string/testcopy.c: New version from tege.
11246
11247         * malloc/dist-README: Changed mailing list addr to bug-glibc.
11248
11249         * sysdeps/unix/bsd/__sigproc.c: Use right mask for SIG_UNBLOCK.
11250
11251         * Makefile, Rules (clean, mostlyclean): Put - before rm commands.
11252
11253 Tue Mar 17 11:14:40 1992  Torbjorn Granlund  (tege@hal.gnu.ai.mit.edu)
11254
11255         * sysdeps/rs6000/memcopy.h (BYTE_COPY_BWD): Assign __nbytes.
11256         * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Copy memory, not just
11257         pointers.  Clean up switch expression.
11258
11259 Mon Mar 16 05:09:23 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11260
11261         * posix/wordexp.c: New.
11262
11263         * time/tzfile.c (__tzfile_read): Don't die if some of the sections
11264         of the datafile are empty.
11265
11266         * stdio/getline.c, stdio/getdelim.c: Moved to
11267         __getline.c/__getdelim.c.
11268         New files with fn aliases.
11269         * stdio/stdio.h (__getline, __getdelim): Declare.
11270
11271         * time/Makefile (zonenames): Hair to find the names of zones
11272         described by $(tzfiles).
11273         (install-data): Install zoneinfo/$(zonenames).
11274         Rules to make zones from tzfiles.
11275         [localtime] (zoneinfo/localtime): Make from zoneinfo/$(localtime).
11276         * Makeconfig (localtime): New user-frobbable variable.
11277
11278 Sun Mar 15 00:01:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11279
11280         * Makerules (sysdep-Makefile): Do if ... else true to avoid bogus
11281         nonzero status.
11282
11283         * Makefile: Denewlinify +sysdep-subdirs after including sysd-dirs.
11284
11285         * sysdeps/vax/__infnan.c [!__GNUC__]: Error.
11286
11287         * zic.c, scheck.c, emkdir.c, ialloc.c, private.h, tzfile.h: Snarfed
11288         from localtime3 dist.
11289         * time/Makefile (others): Added zic.
11290         (distribute): Added private.h, emkdir.c, ialloc.c, scheck.c.
11291         (install): Defined: zic, zdump.
11292
11293         * Makeconfig (bindir): Define.
11294         * Makerules: Add rule to install $(install) in $(bindir).
11295         (+install): Include $(install) in $(bindir).
11296
11297         * sysdeps/unix/Makefile: Moved siglist.c rules to unix/bsd/Makefile.
11298         * sysdeps/unix/make_siglist.c: Moved to bsd/.
11299         * sysdeps/unix/Dist: Remove it.
11300         * sysdeps/unix/bsd/Dist: Add it.
11301
11302         * malloc/Makefile (malloc/gmalloc.c): Depend on headers and sources.
11303
11304         * sysdeps/unix/bsd/sun/sun4/__sigvec.S: Doc fix.
11305
11306         * sysdeps/stub/stty.c, sysdeps/stub/gtty.c: Include <stddef.h>.
11307
11308         * sysdeps/unix/sysv/__fstat.c: Include sysv_stat.h.
11309
11310         * misc/bsd-compat.c: Define _BSD_SOURCE rather than __FAVOR_BSD.
11311         (longjmp): Use function_alias_void.
11312
11313         * time/Makefile (tzfile.o): Compile with
11314         -DTZDIR='"$(datadir)/zoneinfo"'.d
11315
11316 Sat Mar 14 23:26:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11317
11318         * Makeconfig (INSTALL_DATA, INSTALL_PROGRAM, INSTALL): Don't define
11319         if already defined.
11320
11321         * setjmp/longjmp.c: Use function_alias_void.
11322
11323         * gnu-stabs.h (function_alias_void): New macro.
11324
11325         * gnu-stabs.h [!HAVE_GNU_LD] (function_alias): Fixed not to loop.
11326
11327 Fri Mar 13 17:20:19 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11328
11329         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Include null
11330         terminator in length calculation.
11331
11332         * stdio/fgets.c: Be sure to return NULL on error/eof for unbuffered
11333         stream.  If N==1, don't write the first char if !seen.
11334         When the buffer is empty, notice the effect of __fillbf after
11335         calling it, avoiding a (costly) no-op iteration.
11336         Don't return NULL for reading no chars; only for EOF or error.
11337         Don't write terminator at beginning of S if eof on first char.
11338
11339         * malloc/Makefile (libmcheck.a), Makefile (crt0.o): Remove target
11340         first; don't use -f to ln.
11341
11342         * posix/execl.c, posix/execv.c, sysdeps/posix/getenv.c,
11343         sysdeps/posix/system.c [HAVE_GNU_LD]: #define __environ environ
11344
11345         * posix/unistd.h [__OPTIMIZE__] (execv): Removed defn.  Can't know
11346         whether to use __environ or environ.
11347
11348         * io/fchown.c, io/chown.c, io/open.c, misc/select.c,
11349         signal/sigvec.c, time/adjtime.c: Fixed DEFUNs in fn aliases.
11350
11351         * time/__tzset.c: Don't dereference NULL if getenv returns it.
11352
11353 Thu Mar 12 16:01:33 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11354
11355         * sysdeps/ieee754/sqrt.c: Replaced undefined var ref `k' with constant.
11356
11357         * sysdeps/i386/__longjmp.c: #include <stdlib.h>.
11358
11359         * time/tzfile.c (__tzfile_compute): Use types[0] if TIMER falls
11360         between transitions[0] and transitions[1].
11361         Always set __tzname[INFO->isdst] to the name for INFO.
11362
11363         * sysdeps/i386/__longjmp.c: Changed register names for gcc; eax/%eax
11364         -> ax.
11365
11366         * sysdeps/unix/snarf-ioctls: Avoid infinite recursion.
11367
11368 Wed Mar 11 00:16:18 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11369
11370         * Version 1.01.
11371
11372         * Makefile (munch-init.c): Made $(objpfx)munch-init.c.
11373
11374         * signal/sigvec.c, signal/sigaction.c, stdio/vsscanf.c: Fixed DEFUNs
11375         in fn aliases.
11376
11377         * sysdeps/m68k/68881/68881-switch/switch.c: Merged vars have_fpu and
11378         test_fpu into one.
11379
11380         * sysdeps/mach/i386/start.c, sysdeps/vax/setjmp.c,
11381         sysdeps/vax/__longjmp.c, sysdeps/vax/__infnan.c,
11382         sysdeps/unix/start.c, sysdeps/unix/bsd/sun/sun4/sigtramp.c,
11383         sysdeps/unix/bsd/sun/sun4/start.c,
11384         sysdeps/unix/bsd/hp9k3bsd/start.c, sysdeps/sparc/sqrt.c,
11385         sysdeps/rs6000/ffs.c, sysdeps/m88k/ffs.c, sysdeps/m68k/setjmp.c,
11386         sysdeps/m68k/__longjmp.c, sysdeps/m68k/68881/printf_fp.c,
11387         sysdeps/m68k/68881/atan2.c, sysdeps/m68k/68881/__logb.c,
11388         sysdeps/m68k/68881/68881-switch/switch.c, sysdeps/m68k/ffs.c,
11389         sysdeps/i386/memset.c, sysdeps/i386/memchr.c, sysdeps/i386/ffs.c,
11390         sysdeps/i386/bzero.c, sysdeps/i386/__longjmp.c, sysdeps/am29k/ffs.c
11391         [! __GNUC__]: Either include the generic (or in some cases, ieee754)
11392         version, or do a #error.
11393
11394         * Rules: Null out `objects' at end to shrink environment some.
11395         (+objs): Define with := from $(objects).
11396         (clean): Use that instead of $(objects).
11397
11398         * sysdeps/i386/setjmp.c: Doubled % where it wanted to be literal.
11399
11400         * posix/getgrps.c, io/flock.c, io/mkdir.c, io/read.c, io/write.c,
11401         io/stat.c, misc/getdents.c, misc/mknod.c, misc/utimes.c: Fixed
11402         DEFUNs in fn aliases.
11403
11404         * sysdeps/unix/bsd/hp9k3bsd/sysdep.S: Use # instead of kludge cookie.
11405
11406         * posix/getegid.c: Fixed type in DEFUN.
11407
11408         * time/tzfile.c (__tzfile_compute): If TIMER is before any
11409         transition in the file, use the first non-DST type, rather than the
11410         type of the first transition in the file.
11411
11412 Tue Mar 10 20:01:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11413
11414         * configure: Take optional -nfp arg.
11415         (news, sun3, hp300): Prepend m68k/68881 unless -nfp is given.
11416         * sysdeps/unix/bsd/hp9k3bsd/Implies: Don't specify 68881.
11417
11418         * stdio/getdelim.c: When the buffer is empty, notice the effect of
11419         __fillbf after calling it, avoiding a (costly) no-op iteration.
11420
11421         * sysdeps/vax/__memccpy.c: Fixed comments.
11422
11423         * stdio/fmemopen.c: Set all fns and seen bit before we might call
11424         something that would care (fclose).
11425
11426         * configure (sun3, sun-3): Mean sun3os4, not sun3os3.
11427         (sun3os3): Use just unix/bsd/sun/sun3/os3.
11428         * sysdeps/unix/bsd/sun/sun3/os3: New directory.
11429         (sysdeps/unix/bsd/sun/sunos3/__wait.S): Moved to there.
11430         * sysdeps/unix/bsd/sun/sun3/sysdep.h: Fixed; took hp9k3bsd/sysdep.h
11431         and changed movel foo, d0 to pea foo for syscall no.
11432         * sysdeps/unix/bsd/sun/sun3/__brk.S: Fixed pea addr mode.
11433         * sysdeps/unix/bsd/sun/sun3/sethostid.S: errnos.h, not gnu/errno.h.
11434         Use .stabs directly, not gnu-stabs.h (which uses `asm').
11435         * sysdeps/m68k/setjmp.c: Changed asm for first moveml, so it works
11436         on sun3.
11437         * sysdeps/unix/bsd/sun/sun3/start.c: Removed ../ from #include path.
11438
11439 Sun Mar  8 16:33:33 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11440
11441         * misc/makefile (headers): Added stab.h, stab.def.
11442         * Many files: Changed __GNU_STAB__ to HAVE_GNU_LD.
11443
11444 Sat Mar  7 21:21:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11445
11446         * time/mktime.c: Normalize the struct values before checking for out
11447         of range values.
11448
11449 Fri Mar  6 11:43:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11450
11451         * sysdeps/ieee754/ldexp.c: New.
11452
11453         * stdio/internals.c (flushbuf): When priming the stream for writing,
11454         advance the target pos to account for chars gotten from the buffer.
11455
11456         * sysdeps/generic/Makefile: For math routines, don't filter out
11457         __finite.
11458
11459         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Fixed bugs.
11460
11461         * misc/Makefile (routines): Remove flock.
11462
11463         * stdlib/strtod.c: Fixed typo in checking for exponent overflow.
11464         Do set *ENDPTR on overflow or underflow.
11465
11466         * sysdeps/sparc/fl.h: Removed.  Should use ieee754 version.
11467
11468         * sysdeps/generic/Makefile: For math routines, don't filter out
11469         __copysign, __scalb, __drem and __logb; and don't add support.
11470
11471         * sysdeps/ieee754/__drem.c: New.
11472         * sysdeps/ieee754/sqrt.c: New.
11473         * sysdeps/stub/__drem.c: New.
11474         * sysdeps/stub/sqrt.c: New.
11475         * sysdeps/stub/__logb.c: New.
11476         * sysdeps/ieee754/__logb.c: New.
11477
11478         * sysdeps/ieee754/__infnan.c: Include <float.h> and use NAN macro
11479         rather than cooking one up by hand.
11480
11481         * sysdeps/unix/bsd/getlogin.c: Open /dev/tty, rather than using stdin.
11482         Make sure the name is always null-terminated.
11483
11484 Thu Mar  5 17:11:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11485
11486         * sysdeps/m68k/68881/__scalb.c: Removed.
11487         * sysdeps/m68k/68881/__math.h: Removed defn of __scalb.
11488         * math/math.h [__OPTIMIZE__]: Define __scalb to be ldexp.
11489         * math/__scalb.c: New; fn alias for ldexp.
11490
11491         * stdio/Makefile (tests): Added bug4 and bug5.
11492         * stdio/bug4.c, stdio/bug5.c: Test cases from reported bugs just fixed.
11493
11494         * stdio/internals.c (flushbuf): If nothing was written by the user,
11495         but there is previously gotten data, don't write anything out.
11496
11497         * stdio/internals.c (seek_to_target): Call __stdio_check_offset first.
11498
11499         * sysdeps/unix/sysv/sysv_termio.h: New file.
11500         * sysdeps/unix/sysv/Dist: Include it.
11501         * sysdeps/unix/sysv/tcsetattr.c, sysdeps/unix/sysv/tcsetpgrp.c,
11502         sysdeps/unix/sysv/tcsendbrk.c, sysdeps/unix/sysv/tcgetpgrp.c,
11503         sysdeps/unix/sysv/tcflush.c, sysdeps/unix/sysv/tcdrain.c,
11504         sysdeps/unix/sysv/__tcgetatr.c: New files.
11505
11506         * stdio/internals.c (fillbuf): Don't set the put_limit on writable
11507         streams.  Wait for first write attempt to prime them, so we don't
11508         flush the unchanged data unnecessarily.
11509
11510         * stdlib/exit.c: Look for NULL terminator on ld set, rather than
11511         using length word.
11512
11513         * Makefile (headers): Remove stdarg.h and varargs.h.
11514         Users will get them from GCC.
11515         * stdio/printf.h: Include <stdarg.h> to use va_list.
11516         * stdio/stdio.h: Don't include <stdarg.h> with magic.
11517         Use PTR in place of __va_list in prototypes.
11518         * stdio/__vsscanf.c, stdio/vscanf.c, stdio/vfscanf.c,
11519         stdio/__vfscanf.c, stdio/vdprintf.c, stdio/vasprintf.c,
11520         stdio/vsprintf.c, stdio/vsnprintf.c, stdio/vprintf.c,
11521         stdio/vfprintf.c: Fixed DEFUNs.
11522
11523         * sysdeps/ieee754/ieee754.h: New file; declares union ieee754_double.
11524         * sysdeps/ieee754/Dist: Add it.
11525         * sysdeps/ieee754/__copysign.c, sysdeps/ieee754/__infnan.c,
11526         sysdeps/ieee754/__isinf.c, sysdeps/ieee754/__isnan.c,
11527         sysdeps/ieee754/__printf_fp.c: Use it.
11528
11529         * sysdeps/unix/sysv/uname.c: New.
11530         * sysdeps/unix/sysv/__utssys.S: New.
11531         * sysdeps/unix/sysv/Makefile (routines): Add __utssys.
11532         * sysdeps/unix/sysv/Dist: Add __utssys.S.
11533
11534         * sysdeps/unix/sysv/__rmdir.c: New; runs `rmdir' shell command.
11535
11536         * sysdeps/unix/sysv/__mkdir.c: New; runs `mkdir' shell command.
11537
11538         * sysdeps/generic/__lstat.c: New; fn alias for __stat.
11539
11540         * sysdeps/unix/sysv/__gethostname.c: New; uses uname.
11541
11542         * sysdeps/unix/Makefile (sys/params.h): Protect with
11543         _GNU_SYS_PARAM_H, in case the system's file uses _SYS_PARAM_H itself.
11544
11545         * stdio/internals.c (__stdio_check_offset): Call init_stream to make
11546         sure we have fns.
11547
11548         * stdio/fread.c: Don't call __fillbf if the put_limit is past the
11549         beginning of the buffer; only if !seen, no buffer, or pushed back.
11550
11551         * stdio/fopen.c (__getmode): Set create bit for "a" mode.
11552
11553         * io/mkdir.c: #undef mkdir before fn alias.
11554
11555         * time/tzfile.c (__tzfile_compute): Don't decrement I if it's zero.
11556
11557         * Makefile (crt0.o): Use ln -f.
11558
11559         * math/Makefile (install): Install libm.a.
11560         (libm.a): Make an empty archive.
11561
11562 Wed Mar  4 19:54:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11563
11564         * README.template: Added note about long filenames in dist.
11565
11566         * io/Makefile (routines): flock -> __flock
11567         * flock.c: New file, fn alias.
11568         * sysdeps/unix/bsd/flock.S: Renamed to sysdeps/unix/bsd/__flock.S;
11569         made __flock.
11570         * sysdeps/mach/hurd/flock.c: Renamed to sysdeps/mach/hurd/__flock.c;
11571         made __flock.
11572         * sysdeps/stub/flock.c: Renamed to sysdeps/stub/__flock.c; made
11573         __flock.
11574
11575         * time/time.h (__isleap): Fixed; every 400th year is not a leap
11576         year, not every 1000th.
11577
11578         * stdio/internals.c (flushbuf): Increment the target position the
11579         amount the user wrote into the buffer, not the amount we wrote out
11580         to the file (which is greater if we read a block and modified it
11581         in the middle).
11582
11583         * stdio/internals.c (flushbuf): Set get_limit to the beginning of
11584         the buffer for all streams, except when we have just read in a block.
11585
11586 Sat Feb 29 15:56:22 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11587
11588         * posix/Makefile (others): Removed logname, id.
11589         * time/Makefile (others): Removed date.
11590
11591         * sysdeps/unix/bsd/sun/sun4/start.c: Make an alias called `start'
11592         (no leading underscore, so it can't conflict with C symbols) for
11593         `_start'.
11594
11595 Thu Feb 27 14:32:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11596
11597         * set-init.c: Look for NULL terminator on set.  ld is broken and
11598         doesn't set the length word correctly.
11599
11600         * setjmp/_longjmp.c, signal/sigaction.c, signal/sigvec.c,
11601         signal/ssignal.c, string/bcmp.c, time/setitmr.c, posix/execve.c,
11602         posix/getegid.c, posix/geteuid.c, posix/getgid.c, posix/getuid.c,
11603         posix/getgrps.c, posix/setuid.c, posix/wait3.c, posix/wait4.c,
11604         posix/waitpid.c, io/lseek.c, io/open.c, io/read.c, io/write.c,
11605         resource/getrusage.c, misc/getpgsz.c, misc/gethstnm.c,
11606         misc/select.c: Fixed DEFUNs in fn aliases.
11607
11608 Wed Feb 26 00:20:25 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11609
11610         * sysdeps/generic/Makefile (routines): Add asincos.
11611
11612         * time/tzfile.c (__tzfile_compute): Set __tzname properly, so isdst
11613         is the right index into it.
11614
11615 Tue Feb 25 01:42:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11616
11617         * sysdeps/unix/bsd/sun/sun4/sysdep.h (ENTRY): .align 2, not .align 4.
11618         This one is powers of two.
11619
11620         * time/__tzset.c: If TZ is :FILE, try FILE and if __tzfile_read
11621         fails, then use defaults.
11622
11623         * sysdeps/generic/Makefile (routines): Add sincos.
11624
11625         * sysdeps/posix/cuserid.c: Set the result to the empty string on
11626         failure.
11627
11628         * string/string.h, string/strings.h, sysdeps/i386/memchr.c: Fixed
11629         spelling in comment.
11630
11631         * string/makefile (tests): Include (uncomment) testcopy.  We do have
11632         papers for it from tege.
11633
11634         * malloc/dist-README: Fixed mailing list addr.
11635
11636         * resource/sys/vtimes.h (struct vtimes): Renamed vm_outblk to
11637         vm_oublk; fixed comment.
11638         * sysdeps/generic/vtimes.c: Renamed here too.
11639
11640         * Make-dist (README): Depend on version.c.
11641
11642 Tue Feb 18 18:14:50 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11643
11644         * Version 1.00.
11645
11646         * time/tzfile.c (__tzfile_compute): Fixed transition comparison.
11647
11648         * sysdeps/unix/bsd/sun/sun3/Makefile: Fixed typo.
11649
11650 Mon Feb 17 05:04:00 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11651
11652         * Version 0.6.
11653
11654         * Makefile (distribute): Add Q+A.
11655         * Q+A: New doc file from rich@cygnus.com.
11656
11657         * malloc/Makefile (distribute): Add mcheck-init.c.
11658
11659 Mon Feb 17 00:39:38 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11660
11661         * sysdeps/unix/sysv/utime.c: Removed.
11662         * sysdeps/unix/sysv/utime.S: New file.
11663
11664         * sysdeps/unix/sysv/signum.h: New file.
11665
11666         * sysdeps/unix/sysv/local_lim.h: New file.
11667
11668         * sysdeps/unix/sysv/sysv_stat.h: New file.
11669         * sysdeps/unix/sysv/__stat.c, sysdeps/unix/sysv/__fstat.c: New files.
11670         * sysdeps/unix/sysv/Makefile: New file.
11671         (+sysdep-routines): Define to sys_stat and sys_fstat.
11672         * sysdeps/unix/sysv/sys_stat.S, sysdeps/unix/sysv/sys_fstat.S: New
11673         files.
11674         * sysdeps/unix/sysv/Dist: Created to include sysv_stat.h,
11675         sys_stat.S, and sys_fstat.S.
11676
11677         * sysdeps/stub/__setreuid.c: Include <sys/types.h>.
11678
11679         * sysdeps/posix/__sigblock.c: Fixed typo.
11680
11681         * stdio/internals.c (__flshfp): Don't return EOF if at EOF; only
11682         for errors.
11683
11684         * signal/gnu/signal.h: Move #include <signum.h> outside repeat #ifdef.
11685
11686         * sysdeps/unix/sysv/filebits.h: Created.
11687
11688         * misc/Makefile (distribute): Define to bsd-compat.c.
11689
11690         * misc/Makefile (headers): Remove filebits.h.
11691         * io/Makefile (headers): Put it here.
11692
11693         * Makefile (+posix_dirs): Add io.
11694         * io/Makefile: New file for new subdir.
11695         Contains many headers and routines moved from posix.
11696         * posix/Makefile: Remove many headers and routines now in io.
11697         * Moved many files from posix to io.
11698
11699         * stdlib/alloca.h: Get size_t from stddef.h.
11700
11701         * misc/bsd-compat.c (getgroups): Removed.  Not needed, because gid_t
11702         is now the same size as int.
11703
11704         * Makefile (distribute): Include NOTES.
11705         * NOTES: New file, infoized node from intro.texinfo about the
11706         feature-test macros.
11707         * README.template: Mention NOTES.
11708
11709         * sysdeps/unix/bsd/sun/sun3/Makefile: include hp9k3bsd version.
11710
11711         * Makeconfig: Use $(..) for config.status.
11712
11713         * configure (i386-sysv): unix/i386/sysv, not unix/sysv/i386.
11714         * unix/i386/sysv/Implies: unix/sysv, not unix/i386.
11715
11716 Sun Feb 16 00:42:53 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11717
11718         * Version 0.5.
11719
11720         * posix/Makefile (headers): Remove confstr.h.
11721         (distribute): Define this instead to contain it.
11722
11723         * ansidecl: Added copyright notice.
11724
11725         * stdio/getdelim.c: New file.
11726         * stdio/getline.c (getsome): Renamed to getdelim and moved there.
11727         * stdio/Makefile (routines): Add getdelim.
11728         * stdio/stdio.h: Declare getdelim.
11729
11730         * misc/gnu/file.h: Moved to sysdeps/unix/bsd/filebits.h.
11731         * sysdeps/stub/filebits.h: New file.
11732         * misc/Makefile: gnu/file.h is now filebits.h.
11733         * posix/fcntl.h: Changed #include.
11734
11735         * stdio/getline.c (getsome): If MAX_CANON isn't defined, use a default.
11736         Don't leak old *LINEPTR storage if *N < 2.
11737         Don't bang *LINEPTR to NULL if realloc fails.
11738
11739         * Makerules: Don't use override when nulling out sources, routines,
11740         and aux if they came from the environment.  Better not make with -e.
11741
11742         * Makefile (sysdirs, Sysnames): Put outside of ifndef sysdirs.
11743
11744         * string/Makefile (tests): No testcopy, pending papers.
11745
11746         * Makefile (headers): No sysdep.h.
11747         (distribute): Here instead.
11748         (no-install): No longer needed.
11749
11750 Sat Feb 15 17:10:38 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11751
11752         * Makefile (distribute): Add INSTALL.
11753         * Make-dist (INSTALL): Make from manual/maint.texinfo.
11754         (README): Make from README.template.
11755
11756         * Makefile (+other-dirs): Removed inet.
11757         * sysdeps/unix/inet/Subdirs: Created, adding inet.
11758
11759         * sysdeps/unix/sysv/setrlimit.c: Include stddef and errno.h.
11760
11761         * math/drem.c, setjmp/longjmp.c, malloc/cfree.c, string/bcmp.c,
11762         time/getitmr.c, misc/ioctl.c: Fixed defuns in function_alias.
11763
11764         * Makefile (headers): Put sysdep.h back.
11765         (no-install): And define this to it.
11766         * Makerules (+install): Filter out $(no-install) from the list.
11767
11768         * string/testcopy.c: New test program for bcopy from tege.
11769         * string/Makefile (tests): Add it.
11770
11771         * Makefile (sysdep-subdirs): Renamed to sysd-dirs.
11772
11773         * Make-dist (tardir): Omit the release name; it made names too long.
11774
11775 Sat Feb 15 12:53:02 1992  Torbjorn Granlund  (tege at mole.gnu.ai.mit.edu)
11776
11777         * sysdeps/rs6000/memcopy.h (WORD_COPY_FWD, WORD_COPY_BWD):
11778         Use CTR register for looping (speed enhancement).  Don't emit
11779         labels, jump relative from `$' instead (makes multiple expansions
11780         possible).  Clean up indentation of asm code (were different in each
11781         macro).
11782         * sysdeps/rs6000/memcopy.h (WORD_COPY_BWD):
11783         Add asm output specs (were missing completely).
11784
11785         * sysdeps/generic/{memcpy.c,memmove.c}: Make DSTP and SRCP unsigned
11786         (safer with non-ANSI compilers).
11787
11788 Fri Feb 14 01:52:12 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11789
11790         * Version 0.4.1.
11791
11792         * Makefile, Rules: Changed clean and clobber targets into
11793         mostlyclean, clean, and realclean.
11794
11795         * Makeconfig: Added comments describing objdir/Makeconfig and
11796         editting Makeconfig.
11797         (prefix, libdir, INSTALL, INSTALL_DATA): New variables for installing.
11798         * Makerules (install): New target.
11799         * Makefile (+subdir_targets): Add subdir_install.
11800         (install): Depend on subdir_install.
11801         (install-lib): Define variable to install libc.a and crt0.o.
11802         * misc/Makefile (install-lib): Install bsd-compat.
11803         * malloc/Makefile (install-lib): Install mcheck-init.
11804
11805         * Version 0.4.
11806
11807 Thu Feb 13 21:39:31 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11808
11809         * sysdeps/unix/glue-ctype.c: Moved to unix/bsd.
11810         * sysdeps/unix/Makefile: Moved glue-ctype stuff to unix/bsd/Makefile.
11811         * sysdeps/unix/Dist: No glue-ctype.
11812         * sysdeps/unix/bsd/Dist: Here instead.
11813
11814         * sysdeps/sparc/divrem.m4: Don't use insn aliases Sun as doesn't grok.
11815
11816 Wed Feb 12 12:12:12 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11817
11818         * sysdeps/m68k/setjmp.c: Use m, rather than g, constraint when
11819         saving fp regs.
11820
11821         * Renamed oodles of files, changed all the relevant Makefiles (I
11822         think).  File names now fit in 14 chars for losing System V.  Gag me
11823         with a death star.
11824         See =longnames for translations, and =shorten.el for method.
11825
11826         * grp/initgroups.c: Removed redundant test.
11827
11828         * malloc/mtrace.c: Use %p fmt for pointers.
11829
11830 Tue Feb 11 02:04:39 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11831
11832         * stdlib/alloca.h: New file.
11833         * stdlib/stdlib.h: Moved alloca decls there; #include <alloca.h>
11834         instead.
11835         * stdlib/Makefile (headers): Added alloca.h.
11836
11837         * stdio/getline.c (getsome): Fixed bugs.
11838
11839         * math/bsd/common_source/mathimpl.h: #define expm1 __expm1.
11840         * math/bsd/common_source/expm1.c: Renamed to __expm1.c
11841         * math/bsd/mc68881/expm1.s: Renamed to __expm1.s; renamed fn too.
11842         * math/expm1.c: New file, fn alias expm1 -> __expm1.
11843
11844         * math/Makefile (routines): Add __rint.
11845         * math/rint.c: New file, fn alias rint -> __rint.
11846         * math/bsd/common_source/floor.c (rint): Renamed to __rint.
11847         * sysdeps/generic/Makefile: Remove __rint, not rint.
11848
11849         * math/Makefile (BSDmath-files): Always include it, and don't depend
11850         on undependable things.
11851
11852         * Makerules (sysdep-Makefile): Always include it, and make it
11853         without depending on make vars that might not be right yet.
11854
11855 Mon Feb 10 00:55:58 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11856
11857         * stdlib/stdlib.h: #undef alloca before declaring it.
11858
11859         * sysdeps/sparc/__longjmp.S: Use be instead of bz.
11860
11861         * sysdeps/unix/bsd/Dist: Add bsdtty.h.
11862
11863         * tzfile.c (__tzfile_read): Don't allocate space for 0 leaps.
11864         Don't loop infinitely.
11865
11866         * sysdeps/unix/Makefile (make-errnos.c): Use tr to eat newlines in
11867         errnos file.
11868
11869         * sysdeps/unix/bsd/sun/sun4/__brk.S: Fix andn arg order.
11870
11871         * posix/Makefile: Don't get getopt by vpath.  Turns out to be too
11872         much hassle for dist.  Just made symlinks in posix/ instead.
11873
11874         * manual/Makefile: Renamed summary.out to summary.texinfo.
11875
11876         * manual/summary.awk: New file, to make summary.out.
11877         Replaces `process-definitions.el'.
11878         * manual/Makefile (summary.out): Create using summary.awk.
11879
11880         * manual/Makefile: Created.
11881         * Makefile, Make-dist: Use it to format and distribute the manual.
11882
11883 Mon Feb 10 00:32:17 1992  Jim Meyering  (meyering@churchy.gnu.ai.mit.edu)
11884
11885         * All Makefiles:
11886         Whenever using shell redirection to create a target,
11887         do not create the target directly like this
11888
11889             foo: bar
11890                     process $< > $@
11891
11892         That loses when `process' fails (interrupt, disk full, ...)
11893         and bar exists and looks up-to-date, but isn't.
11894         This sort of failure is particularly insidious when
11895         the initial error message is obscured by lots of subsequent
11896         output (echoed commands etc).
11897
11898         Instead use rules like this
11899
11900             foo: bar
11901                     process $< > $@-tmp
11902                     mv $@-tmp $@
11903
11904         Using this paradigm, as long as process returns non-zero
11905         whenever it fails, the target won't be touched.
11906
11907 Sun Feb  9 22:58:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11908
11909         * posix/unistd.h (getopt): Fixed prototype.
11910         * sysdeps/generic/memset.c, stdio/vdprintf.c: Fixed DEFUNs.
11911
11912         * Makerules (lib): Use $(RANLIB) for ranlib.
11913         * Makeconfig: Define it.
11914
11915         * configure: Create config.status to set ARCH, if successful.
11916         * Makeconfig: include config.status ifndef ARCH.
11917
11918 Thu Feb  6 20:57:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11919
11920         * ansidecl.h (INCLUDE, STARTCOMMENT, ENDCOMMENT): New magic words.
11921         * sysdeps/m68k/68881/fl.h: Use new magic to snarf ieee754/fl.h during
11922         ansideclification.
11923
11924         * sysdeps/ieee754/fl.h: New file, taken mostly from the old
11925         68881 file.  HUGE_VAL redone to be machine independent.
11926         (NAN): New macro for an IEEE NaN, done like HUGE_VAL.
11927         * sysdeps/m68k/68881/fl.h: Now #includes ieee754/fl.h, and overrides
11928         FLT_ROUNDS for 68881 magic.  NB: the #include is a prob. for install.
11929
11930 Wed Jan 29 17:11:25 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11931
11932         * sysdeps/posix/getcwd.c: Don't use chdir; use a long ../../../...
11933         path name instead.
11934
11935 Fri Jan 17 02:51:10 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11936
11937         * posix/Makefile (headers): Added getopt.h.
11938         (routines): Added getopt1.
11939         Get getopt* from /home/gd/gnu/lib by vpath.
11940
11941         * Makerules (+ansideclificate): Don't assume . is in PATH.
11942
11943 Thu Jan 16 18:43:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11944
11945         * posix/glob.c [sgi]: No alloca.h, after all.
11946
11947 Wed Jan 15 14:17:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11948
11949         * termios/termios.h: Reworked to be compatible with 4.4BSD.
11950         * termios/speed.c, sysdeps/unix/bsd/{__tcgetattr,tcsetattr}.c: Store
11951         speeds as their own values (B9600==9600, etc.) and translate to BSD
11952         values only for ioctl.
11953         * termios/cfsetpseed.c: New fn to set both speeds at once (from 4.4).
11954
11955 Tue Jan 14 21:18:10 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11956
11957         * sysdeps/unix/i386/__brk.S: __end, not ___end.
11958         Get the arg off the stack correctly.
11959
11960         * sysdeps/unix/Makefile: Allow errnos like EL3HLT.
11961
11962         * sysdeps/posix/{readv,writev}.c: Typos.
11963
11964         * sysdeps/posix/__sigpause.c: Rewritten to know that sigset_t is a
11965         mask, and to pass a (sigset_t *) instead of sigset_t to sigsuspend.
11966
11967         * sysdeps/i386/memset.c: Include <memcopy.h>.
11968
11969         * sysdeps/generic/uname.c (uname): Save and restore errno if
11970         gethostname gets ENOSYS.
11971
11972         * stdio/perror.c (perror): Check correctly for S == "".
11973         Check correctly for ERRNUM being in range.
11974
11975         * find-sysdirs: Don't use fgrep -s, since USG apparently doesn't
11976         have that flag.  Just >/dev/null instead.
11977
11978 Mon Jan 13 17:00:15 1992  Torbjorn Granlund  (tege at mole.gnu.ai.mit.edu)
11979
11980         * sysdeps/generic/wordcopy.c (all four functions): Move do0 label to
11981         the ultimate store statement at the end of each function.  (Used to
11982         be in the loop.)
11983
11984 Tue Jan  7 18:40:18 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11985
11986         * resource/sys/resource.h (struct rusage): Change `ru_outblock' to
11987         `ru_oublock'.
11988
11989         * sysdeps/generic/stpcpy.c: Fixed off-by-one bug.
11990
11991 Thu Jan  2 15:19:01 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11992
11993         * sysdeps/sparc/Dist: Add umul.S and mul.S.
11994
11995 Tue Dec 31 15:33:39 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11996
11997         * signal/signal.h [__USE_GNU]: Add user-visible `sighandler_t' ==
11998         __sighandler_t.
11999
12000         * termios/speed.c (speedtab): Made const.
12001
12002         * posix/Makefile (routines): Add flock.
12003
12004 Tue Dec 31 03:38:30 1991  Richard Stallman  (rms at mole.gnu.ai.mit.edu)
12005
12006         * termios/speed.c: Accept and return speeds as actual baud rates.
12007         * termios/termios.h (B110, etc.): Define B110 as 110, etc.
12008         Likewise for _B110, etc.
12009
12010 Thu Oct 24 16:19:49 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12011
12012         * ansidecl: Put `M4OPTS=+quiet' in the environment make GNU m4 quiet.
12013
12014 Sun Oct 20 19:31:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12015
12016         * Make-dist (tardir): Define as `libc-RELEASE-VERSION', strings
12017         snarfed from version.c.
12018         ($(..)$(tardir)): Add rule to make as symlink to . (parent dir).
12019         [subdir] (dist), [parent] (dist.tar): Depend on that.
12020         [subdir] (tarsources), [parent] (+tsrcs): Add $(tardir)/ to files.
12021
12022         * sysdeps/sparc/Makefile (distribute): Move data into Dist file.
12023
12024 Fri Oct 18 15:27:58 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12025
12026         * Makefile (subdirs): Add $(sysdep-subdirs), so sysdep makefiles can
12027         add subdirs.
12028
12029         * posix/glob.c [sgi]: Use <sys/dir.h>.
12030
12031         * stdio/fopen.c: If not appending, initialize the offset to 0.
12032
12033         * sysdeps/generic/strcasecmp.c: Fixed losing braindead code.
12034
12035 Tue Oct  8 15:27:54 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
12036
12037         * Version 0.1.
12038         * This ChangeLog is lacking much information.
12039         * After this release, I hope to maintain the log well. 
12040
12041 Fri Jul 26 18:02:57 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12042
12043         * stdio/Makefile (routines): Remove _cleanup.
12044
12045 Thu Jul 25 23:12:45 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12046
12047         * stdio/memstream.c (close_memstream): Removed.
12048         (trim_buffer): New fn to be io_funcs->__close for memstreams.
12049         (open_memstream): Take arg char **BUFLOC.  Stuff it in
12050         stream->__fd, and store the location of the initial buffer in
12051         *BUFLOC.
12052         (enlarge_buffer): Keep *(char **) stream->__fd updated to be the
12053         location of the buffer.
12054
12055 Tue Jul 23 14:11:29 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12056
12057         * posix/glob.c: Don't #include <stddef.h> #ifdef sun.
12058         Is there anyone on the face of the planet other than me capable of
12059         implementing the ANSI C standard to spec????
12060
12061         * posix/glob.c [DIRENT]: #include <sys/types.h> before <dirent.h>
12062         #ifdef USG.
12063
12064 Mon Jul 22 17:06:24 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12065
12066         * sysdeps/posix/make-stdio_limits.c: #include <posix1_limits.h>,
12067         not <posix_limits.h>.
12068
12069         * README: Refer to COPYING.LIB, not COPYING.
12070
12071         * config.libc: Renamed to `configure'.
12072 \f
12073 Local Variables:
12074 mode: change-log
12075 End: