1 Fri Feb 17 12:16:27 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
3 * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
4 if there is a CVS directory.
5 * sysdeps/sparc/Makefile (divrem output): Likewise.
6 * sysdeps/alpha/Makefile (divrem output): Likewise.
8 * Makerules (rule to install lib%.a from $(install-lib)): Fix
9 patsubst to elide ranlib for $(non-lib.a).
11 * stdio/tst-printf.c: Enable FP tests. Add some new tests from rfg.
13 Thu Feb 16 04:06:06 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
15 * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
16 * mach/mig-dealloc.c: Add weak alias mig_deallocate.
18 Wed Feb 15 13:34:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
20 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
21 DEALLOC_REFPORT; deallocate the refport after use only if it
23 * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
24 * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
26 * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
27 *STATE_CHANGE to indicate whether or not we changed *STATE and it
28 should be committed to the thread.
29 (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
30 state for a thread, do thread_set_state on that thread. Don't use
31 SS->intr_port for collecting reply ports, it is not safe to
32 clobber that when suspending; instead, alloca a temporary array.
33 (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
34 zero when dying, one when suspending. Pass new arg to abort_rpcs.
36 * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
37 HURD_FD_PORT_USE will. Don't use critical sections around
38 HURD_FD_PORT_USE invocations.
40 * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
41 * sysdeps/posix/stdio_init.c: Likewise.
43 Tue Feb 14 03:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
45 * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
46 locking; don't leave the descriptor locked on return.
47 (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
48 Use a critical section around locking the descriptor.
49 Check for an empty descriptor and return EBADF.
50 * sysdeps/mach/hurd/dup2.c: Likewise.
51 * sysdeps/mach/hurd/fcntl.c: Likewise.
52 Use HURD_FD_PORT_USE macro for RPCs.
53 * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
54 using HURD_FD_PORT_USE.
55 * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
56 to lock the descriptor.
57 * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
58 locking the descriptor.
59 * sysdeps/mach/hurd/fdopen.c: Likewise.
60 * hurd/fd-close.c: Likewise.
61 Don't expect the descriptor to be locked on entry.
62 Check for empty descriptor and return EBADF.
64 Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
65 new functions _hurd_ctty_input and _hurd_ctty_output, each
66 called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
67 * hurd/ctty-input.c: New file.
68 * hurd/ctty-output.c: New file.
69 * hurd/Makefile (dtable): Add ctty-input and ctty-output.
70 * hurd/fd-read.c: Use _hurd_ctty_input.
71 * hurd/fd-write.c: Use _hurd_ctty_output.
72 * sysdeps/mach/hurd/ioctl.c: Likewise.
73 * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
75 Mon Feb 13 11:36:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
77 * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
78 as appropriate to the type.
80 * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
82 (HUGE_VAL, __huge_val): Use it.
83 [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
84 analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
85 * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
86 (STRTOF): Set to __strtold; define strtold as weak alias.
87 * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
88 (STRTOF): Set to __strtof; define strtof as weak alias.
90 * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
91 (IEEE754_FLOAT_BIAS): New macro.
93 * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
95 * stdlib/testmb.c: Add tests from rfg for using normal chars as
98 * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
99 only the `defined but not used' warning, but also to avoid GCC
100 optimizing out the entire function (!).
102 * stdlib/wctomb.c: Include ctype.h.
104 * Makerules (install-lib-non.a): Don't include $(non-lib.a).
106 * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
108 Sat Feb 11 04:05:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
110 * stdio/printf_fp.c: Include "fpioconst.h".
111 (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
112 (__printf_fp): All references changed.
113 Don't bother computing THOUSANDS_SEP if GROUPING is empty.
114 (group_number): Use memmove instead of memcpy, since operands overlap.
115 * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
116 * stdio/fpioconst.h: New file, header declaring the table data.
117 * stdio/Makefile (aux): Add fpioconst.
118 (distribute): Add fpioconst.h.
119 * stdlib/strtod.c: Complete rewrite from drepper.
120 * stdlib/strtof.c: New file.
121 * stdlib/strtold.c: New file.
122 * stdlib/Makefile (routines): Add strtof, strtold.
123 * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
124 * sysdeps/stub/mpn2flt.c: New file.
125 * sysdeps/stub/mpn2dbl.c: New file.
126 * sysdeps/stub/mpn2ldbl.c: New file.
127 * sysdeps/ieee754/mpn2flt.c: New file.
128 * sysdeps/ieee754/mpn2dbl.c: New file.
129 * sysdeps/ieee754/mpn2ldbl.c: New file.
131 * Makerules (install-lib.a): Don't filter out $(non-lib.a).
132 ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
133 appears in $(non-lib.a).
135 Fri Feb 10 17:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
137 * stdlib/wctomb.c: A normal ASCII character translates to itself.
138 * stdlib/mbtowc.c: Likewise.
140 Thu Feb 9 03:55:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
142 * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
143 Remove `const' from prototypes.
144 * sysdeps/m68k/__longjmp.c: Likewise.
145 * setjmp/longjmp.c: Likewise.
146 * sysdeps/i386/__longjmp.c: Likewise.
148 * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
149 so when we return a name, it is incremented past the value that
150 produces that same name.
152 * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype. Sigh.
153 * stdio/stdio.h (fgets): Likewise.
155 * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
157 * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
158 when it's EBACKGROUND; we need to notice that it is EBACKGROUND
160 * hurd/fd-read.c: Likewise.
162 Wed Feb 8 05:01:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
164 * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
165 <mach/mig_support.h>.
166 * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
167 * assert/assert.c: Likewise.
168 * sysdeps/posix/libc_fatal.c: Likewise.
170 Tue Feb 7 12:17:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
172 * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
173 as macros, to satisfy ANSI pedants.
175 * stdio/internals.c (flushbuf): When there is no new data after
176 priming the stream, return without writing out the buffer.
177 * stdio/Makefile (tests): Add bug7.
178 * stdio/bug7.c: New file.
180 * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
181 S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
184 * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
186 * stdio/Makefile (tests): Add errnobug.
187 * stdio/errnobug.c: New file.
189 * mach/mig_strncpy.c: Include string.h.
191 * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>. Its
192 inlines cause trouble for files defining global register
195 * stdio/vfprintf.c: Use _strerror_internal for %m.
197 * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
199 * stdio/printf.h (struct printf_info): New member `group', for %' flag.
200 * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
201 * stdio/vfprintf.c (group_number): New function.
202 (vfprintf): Support %' flag for integer formats, by calling
203 group_number after formatting the number in WORK.
204 * stdio/printf_fp.c (guess_grouping, group_number): New functions.
205 (__printf_fp): Implement `group' flag using them.
207 * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
208 (parent-clean): Remove sysd-rules, not sysdirs.
209 (distclean): Pass avoid-generated=yes to submake.
210 (distclean-1): Remove $(sysdep-$(distclean-1)).
212 * Makerules (objects, objs): Depend on $(extra-objs) too.
213 (include sysd-Makefile): Protect with ifndef avoid-generated.
215 * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
216 (CPPFLAGS): Use $(defines) in place of $(+defines).
217 Replace -D_LIBC with -include $(..)libc-symbols.h.
219 * stdio/freopen.c: Set seen bit before calling fclose.
221 Mon Feb 6 18:34:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
223 * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
224 successes and each kind of failure. Return EPERM or EACCES only
225 if every task failed that way.
227 * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
230 * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
231 or resume the process after frobbing.
233 * hurd/hurdsig.c: Use spin lock operations on sigstate locks
235 (_hurd_thread_sigstate): Don't lock the sigstate lock.
236 (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
237 repeated sequences with calls to it. Don't expect the sigstate
238 lock to be held on entry; lock it just before examining sigaction.
239 In handler case, check SS->critical_section after calling
240 abort_rpcs; if set, mark the signal pending and resume the thread.
241 * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
242 (_hurd_self_sigstate): Don't lock the sigstate lock.
243 (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
244 _hurd_self_sigstate_unlocked.
245 * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
247 * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
248 Don't expect _hurd_self_sigstate to lock it. Fix critical section
250 * hurd/hurd-raise.c: Likewise.
251 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
252 * sysdeps/mach/hurd/sigpending.c: Likewise.
253 * sysdeps/mach/hurd/sigaltstack.c: Likewise.
254 * sysdeps/mach/hurd/sigaction.c: Likewise.
255 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
256 * hurd/fd-write.c: Likewise.
257 * hurd/fd-read.c: Likewise.
258 * sysdeps/mach/hurd/ioctl.c: Likewise.
259 * sysdeps/mach/hurd/fork.c: Likewise.
260 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
261 * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
262 * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
263 * hurd/hurdmsg.c (get_int): Likewise.
265 * stdio/vfprintf.c: Include stddef.h. Fix typos in libio code.
267 * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
269 (PAD): Caller changed.
270 * stdio/printf_fp.c (__pad): Function removed.
271 (PAD): Use __printf_pad instead.
273 Sun Feb 5 17:59:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
275 Merged new FP printer by Ulrich Drepper.
276 * stdio/printf_fp.c: Rewrite by drepper.
277 * stdio/Makefile (routines): Add ldbl2mpn.
278 * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
280 (union ieee854_long_double): New type, from drepper.
281 (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
282 * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
283 * sysdeps/stub/ldbl2mpn.c: New file.
284 * math/Makefile (routines): Add isinfl and isnanl.
285 * sysdeps/ieee754/isinfl.c: New file.
286 * sysdeps/stub/isinfl.c: New file.
287 * sysdeps/ieee754/isnanl.c: New file.
288 * sysdeps/stub/isnanl.c: New file.
290 * malloc/malloc.c (__malloc_extra_blocks): New variable.
291 (malloc): When getting more core, get __malloc_extra_blocks extra;
292 put the new block at the end of the free list and let the next loop
293 iteration use the initial portion of it.
294 * malloc/free.c (_free_internal): Account for twice
295 __malloc_extra_blocks in deciding if we have so much extra memory
296 we should return it to the system.
297 * malloc/malloc.h (__malloc_extra_blocks): Declare it.
298 * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
299 const in parameter decl.
301 * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
303 Fri Feb 3 18:15:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
305 * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
307 * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
308 * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
309 * sysdeps/mips/bsd-setjmp.S: Likewise.
310 * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
311 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
312 Use `long int' for sigcode. Use explicit register numbers instead
314 (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
315 * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
317 Thu Feb 2 20:06:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
319 * hurd/hurdmalloc.c: Remove bogus bcopy decl.
321 * mach/mig_strncpy.c: Add missing `const' in prototype. Rewritten
324 * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
326 * stdio/vfprintf.c: Set PREC to zero for %. without following
329 Tue Jan 31 13:49:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
331 * mach/mig_strncpy.c: Include mach.h instead of string.h. Use
332 vm_size_t instead of size_t for arg and return types.
334 * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
337 Mon Jan 30 00:33:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
339 * set-hooks.h (RUN_HOOK): Dereference PTR properly.
341 * configure.in (friendly stddef.h check): Write override defn for
342 `stddef.h' Make variable.
343 (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
345 * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
347 * Rules ($(objpfx)dummy.o): Write an empty function, not just an
350 * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
352 Sat Jan 28 03:38:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
354 * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
356 * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
357 mach/machine/syscall_sw.h with this.
359 Fri Jan 27 18:33:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
361 * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
362 instead of <lock-intern.h>.
363 (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
364 (_hurd_critical_section_lock): Use spin lock operators.
365 Don't hold the sigstate lock, unlock it after setting the flag.
366 (_hurd_critical_section_unlock): Take the sigstate lock
367 to clear the flag; while holding it, check pending signals. After
368 unlocking, sig_post ourselves if there were pending signals.
370 * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
371 sigstate lock. If it is locked, clear SS->critical_section and
372 SS->context, and unlock it.
374 * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
376 * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
377 * munch-tmpl.c: Likewise.
379 * mach/Makefile (routines): Don't filter out syscall_% from
382 Fri Jan 27 17:53:49 1995 Jim Meyering (meyering@comco.com)
384 * posix/fnmatch.c: Declare errno if it's not defined.
385 That's simpler than testing #if !defined(__GNU_LIBRARY__)
386 && !defined(STDC_HEADERS).
388 Fri Jan 27 15:40:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
390 * csu/Makefile: New file.
391 * csu/initfini.c: New file.
392 * Makefile (+other_dirs): Add csu.
393 (+init): Variable renamed to libc-init. All references changed.
395 (install-lib): Variable removed.
396 (crt0.o, Mcrt1.o crt1.o): Targets removed.
398 * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
399 and $(objpfx)config.h.
400 (static deps of RPC alias *.o): Removed.
402 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
403 Protect macros with this.
404 * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
405 * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
406 * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
407 * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
408 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
409 * sysdeps/unix/mips/sysdep.h: Likewise.
411 Thu Jan 26 00:02:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
413 * Makerules (compile.[Sc]): Match gcc in $(CC) better.
414 (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
416 * hurd/intr-rpc.awk: Emit weak alias.
418 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
421 * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
423 * sysdeps/unix/i386/sysdep.h: Likewise.
424 * sysdeps/unix/sparc/sysdep.h: Likewise.
426 * io/ftw.c: Avoid `ret' as variable name.
427 * posix/glob.c: Likewise.
429 * ctype/ctype.h (_ISalpha): Define as its own bit.
430 * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
432 * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
433 DEFINE_HOOK with this.
435 Wed Jan 25 00:45:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
437 * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
438 * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
439 * mach/shortcut.awk: Emit weak alias.
440 * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
441 * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
443 * mach/Makefile (lock): Remove spin-syms.
444 (routines): Remove __ names, vm_page_size, msgserver_t.
445 ($(mach-syscalls) rule): Generate files without __, add weak alias.
446 Remove symbol alias file rule.
447 ($(mach-shortcuts) rule): Likewise.
448 [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
449 * mach/Machrules (if-calls.c): Variable and rule removed.
450 (interface-headers): Don't add $($(if)-calls).
451 (transform-user-stub): Define to add weak alias.
452 * set-hooks.h: Use new libc-symbols.h set access macros.
453 * time/Makefile (routines): Remove __ names.
454 (aux): Variable removed.
455 * hurd/Makefile: Likewise.
456 * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
457 (data_start): Define as weak alias for __data_start.
458 * sysdeps/mach/hurd/start.c: Likewise.
459 * sysdeps/unix/sparc/start.c: Likewise.
460 * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
462 * sysdeps/mach/hurd/errlist.awk: Likewise.
463 * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
465 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
466 * sysdeps/stub/setdomain.c: Use new stub_warning macro.
467 * sysdeps/stub/getdomain.c: Likewise.
468 * sysdeps/stub/vhangup.c: Likewise.
469 * sysdeps/stub/swapon.c: Likewise.
470 * sysdeps/stub/sendmsg.c: Likewise.
471 * sysdeps/stub/recvmsg.c: Likewise.
472 * sysdeps/stub/acct.c: Likewise.
473 * sysdeps/stub/isinf.c: Likewise. Add weak alias isinf for __isinf.
474 * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
475 * sysdeps/posix/libc_fatal.c: Likewise.
476 * sysdeps/i386/abort.c: Likewise.
477 * sysdeps/i386/__longjmp.c: Likewise.
478 * sysdeps/generic/make_siglist.c: Emit defn always for
479 _sys_siglist. Emit weak alias to sys_siglist.
480 * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
481 * sysdeps/ieee754/log10.c: Likewise.
482 * time/difftime.c: Likewise.
483 * stdlib/random.c (srand): Define as weak alias for __srandom.
484 * stdlib/exit.c: Remove obsolete __NORETURN keyword. Use set-hooks
485 macros for __libc_atexit.
486 * stdlib/Makefile (routines): Remove __random, srand.
487 * stdio/gets.c: Use new link_warning macro instead of old
489 * stdio/Makefile (routines): Remove __ names.
490 (aux): Remove syms-stdio.
491 * socket/Makefile (routines): Added e on getpeernam and getsocknam.
492 * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
493 * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
494 * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
495 * stdio/stdio.h: Likewise.
496 * misc/Makefile (routines): Remove __ names.
497 (aux): Remove data_start.
498 * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
499 * sysdeps/mach/hurd/brk.c: Likewise.
500 * hurd/hurdid.c: Likewise.
501 * hurd/hurdpid.c: Likewise.
502 * hurd/openport.c: Likewise.
503 * hurd/hurdsock.c: Likewise.
504 * hurd/hurdsig.c: Likewise.
505 * hurd/hurdrlimit.c: Likewise.
506 * hurd/hurdmalloc.c: Likewise.
507 * hurd/dtable.c: Likewise.
508 * hurd/setauth.c: Likewise.
509 * misc/progname.c: Likewise.
510 * misc/init-misc.c: Likewise.
511 * sysdeps/generic/vfork.c: Likewise.
512 * sysdeps/unix/bsd/init-posix.c: Likewise.
513 * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
514 * time/time.h: Likewise.
515 * math/Makefile (routines): Remove __ names.
516 * io/Makefile: Likewise.
517 * termios/Makefile: Likewise.
518 * resource/Makefile: Likewise.
519 * signal/Makefile: Likewise.
520 * dirent/Makefile: Likewise.
521 * assert/assert.h: Replace __NORETURN keyword with __attribute__
522 uses. Functions return void and macros deal with this.
523 * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
524 Return void. Don't include gnu-stabs.h.
525 * assert/assert.c: Likewise.
526 * posix/Makefile (routines): Remove __ names, setpgrp. Add
528 (aux): Remove environ.
529 * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
531 * posix/unistd.h (_exit): Likewise.
532 (__getpgrp, __setpgrp): Declarations removed.
533 (__getpgid, getpid): Declare these.
535 * configure.in (host_os=gnuelf|linuxelf): Set elf=yes. Do AC_SUBST
536 for gnu_ld, gnu_as, elf, and weak. Call AC_LINK_FILEES on
537 $libc_link_{sources,dests}.
538 * sysdeps/unix/configure.in: Remove __ from file names. Don't
539 create files, just add to libc_link_{dests,sources}.
541 * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
543 * config.h.in: Add #undefs used by sysdeps configures.
545 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
546 __setpgid, __getpgid.
547 * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
549 * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
551 * sysdeps/unix/bsd/getpgrp.c: File removed.
552 * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
553 Call __getpgid with zero.
554 * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
555 weak aliases setpgid and setpgrp.
556 * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
557 * sysdeps/unix/common/setpgid.S: Likewise.
558 * sysdeps/mach/hurd/setpgid.c: Likewise.
559 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
560 Use subcall 5 to __pgrpsys.
561 * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
563 * sysdeps/mach/hurd/getpgid.c: Likewise.
564 * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
565 * sysdeps/unix/common/getpgid.S: Likewise.
566 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
567 Use subcall 4 to __pgrpsys.
568 * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
569 * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
570 * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
571 * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
572 * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
573 * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
574 * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
575 * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
576 * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
577 * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
578 * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
579 * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
581 * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
584 * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
585 * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
587 * sysdeps/stub/fexecve.c: Likewise.
588 * sysdeps/stub/fchdir.c: Likewise.
589 * sysdeps/stub/fchflags.c: Likewise.
590 * sysdeps/stub/chflags.c: Likewise.
592 * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
593 * sysdeps/generic/abort.c: Likewise.
594 * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
596 * hurd/hurdioctl.c: Include hurd/ioctl.h.
597 (_hurd_ioctl_handler_lists): Define this set.
598 (_hurd_lookup_ioctl_handler): New function.
599 * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
600 * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
601 (_hurd_lookup_ioctl_handler): Declare it.
602 (ioctl_handler_t): New typedef. Use it throughout.
603 * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
604 (_hurd_ioctl_handler_lists): Don't define.
605 (__ioctl): Call _hurd_lookup_ioctl_handler.
607 * stdlib/strtol.c (maxquad): Make this const.
608 [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
610 * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
613 * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
614 __msg_sig_post_request, not __sig_post_request.
616 * misc/getusersh.c: Renamed to getusershell.c.
617 * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
618 * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
619 * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
620 * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
622 Tue Jan 24 00:14:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
624 * sysdeps/stub/settod.c: Renamed to settimeofday.c.
625 * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
626 * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
627 * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
628 * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
629 * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
630 * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
631 * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
632 * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
633 * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
634 * sysdeps/stub/getprio.c: Renamed to getpriority.c.
635 * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
636 * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
637 * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
638 * sysdeps/stub/setprio.c: Renamed to setpriority.c.
639 * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
640 * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
641 * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
642 * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
643 * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
644 * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
645 * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
646 * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
647 * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
648 * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
649 * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
650 * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
651 * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
652 * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
653 * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
655 * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
657 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
658 * sysdeps/mach/hurd/kill.c: Likewise.
659 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
661 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
662 [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
664 * sysdeps/stub/remove.c: New file.
665 * sysdeps/posix/remove.c: New file.
667 Mon Jan 23 03:26:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
669 * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
671 * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
673 * mach/msg-destroy.c: Renamed from __msg_dest.c.
674 (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
675 * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
676 * time/tzset.c (tzname, daylight, timezone): Define as weak
677 aliases for __ names.
678 * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
679 * hurd/hurdlookup.c: Add weak aliases for non-__ names.
680 * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
683 Sun Jan 22 15:19:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
685 * string/Makefile (routines): Remove __ names, index, rindex, and
687 * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
689 * sysdeps/generic/strchr.c: Likewise.
690 * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
692 * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
695 * malloc/free.c (cfree): Define this function, with weak_alias if
696 available, otherwise a C function.
697 * malloc/Makefile (gmalloc-routines): Remove cfree.
699 Sat Jan 21 08:08:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
701 * stdio/fseek.c: Do move bufp by O when that puts it exactly at
702 get_limit. This has the effect of no-op'ing properly for zero.
704 * configure.in: Add AC_CONFIG_HEADER(config.h).
705 (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
706 * config.h.in: New file.
708 * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
709 All code converted to use weak symbols, defined in the files which
710 define the real code (with the __ names, the non-__ names are weak).
711 All old symbol alias files removed.
712 Many files renamed to remove __ prefix since there is now just
713 the one file for both the __ and non-__ name for each function.
714 * libc-symbols.h: New file.
715 * set-hooks.h: Use libc-symbols.h macros for accessing symbol
717 * gnu-stabs.h: Prepend #error this file is obsolete.
718 * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
719 * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
721 * sysdeps/unix/common/__access.S: Likewise.
722 * sysdeps/mach/hurd/__access.c: Likewise.
723 * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
725 * sysdeps/unix/common/__adjtime.S: Likewise.
726 * sysdeps/mach/__adjtime.c: Likewise.
727 * sysdeps/mach/hurd/__adjtime.c: Likewise.
728 * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
729 * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
730 * sysdeps/unix/bsd/vax/__brk.S: Likewise.
731 * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
732 * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
733 * sysdeps/unix/i386/__brk.S: Likewise.
734 * sysdeps/unix/sparc/__brk.S: Likewise.
735 * sysdeps/unix/mips/__brk.S: Likewise.
736 * sysdeps/mach/hurd/__brk.c: Likewise.
737 * sysdeps/standalone/__brk.c: Likewise.
738 * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
739 * sysdeps/unix/__chdir.S: Likewise.
740 * sysdeps/mach/hurd/__chdir.c: Likewise.
741 * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
742 * sysdeps/unix/__chmod.S: Likewise.
743 * sysdeps/mach/hurd/__chmod.c: Likewise.
744 * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
745 * sysdeps/unix/__chown.S: Likewise.
746 * sysdeps/mach/hurd/__chown.c: Likewise.
747 * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
748 * sysdeps/unix/__close.S: Likewise.
749 * sysdeps/mach/hurd/__close.c: Likewise.
750 * sysdeps/standalone/__close.c: Likewise.
751 * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
753 * sysdeps/ieee754/__copysign.c: Likewise.
754 * sysdeps/alpha/__copysign.c: Likewise.
755 * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
756 * sysdeps/m68k/fpu/__drem.c: Likewise.
757 * sysdeps/stub/__drem.c: Likewise.
758 * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
759 * sysdeps/stub/__dup.c: Likewise.
760 * sysdeps/unix/__dup.S: Likewise.
761 * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
762 * sysdeps/stub/__dup2.c: Likewise.
763 * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
764 * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
765 * sysdeps/unix/common/__dup2.S: Likewise.
766 * sysdeps/mach/hurd/__dup2.c: Likewise.
767 * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
769 * sysdeps/unix/__execve.S: Likewise.
770 * sysdeps/mach/hurd/__execve.c: Likewise.
771 * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
773 * sysdeps/m68k/fpu/__expm1.c: Likewise.
774 * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
776 * sysdeps/unix/common/__fchmod.S: Likewise.
777 * sysdeps/mach/hurd/__fchmod.c: Likewise.
778 * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
780 * sysdeps/unix/common/__fchown.S: Likewise.
781 * sysdeps/mach/hurd/__fchown.c: Likewise.
782 * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
783 * sysdeps/unix/__fcntl.S: Likewise.
784 * sysdeps/mach/hurd/__fcntl.c: Likewise.
785 * math/__finite.c: Renamed to finite.c; added weak alias finite.
786 * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
787 * sysdeps/stub/__flock.c: Likewise.
788 * sysdeps/unix/bsd/__flock.S: Likewise.
789 * sysdeps/mach/hurd/__flock.c: Likewise.
790 * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
792 * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
793 * sysdeps/unix/__fork.S: Likewise.
794 * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
795 * sysdeps/unix/i386/__fork.S: Likewise.
796 * sysdeps/unix/sparc/__fork.S: Likewise.
797 * sysdeps/unix/mips/__fork.S: Likewise.
798 * sysdeps/mach/hurd/__fork.c: Likewise.
799 * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
801 * sysdeps/stub/__fpathcon.c: Likewise.
802 * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
803 * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
804 * sysdeps/unix/__fstat.S: Likewise.
805 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
806 * sysdeps/mach/hurd/__fstat.c: Likewise.
807 * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
809 * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
811 * sysdeps/unix/__getdents.c: Likewise.
812 * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
813 * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
814 * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
815 * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
816 * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
817 * sysdeps/unix/sysv/__getdents.c: Likewise.
818 * sysdeps/mach/hurd/__getdents.c: Likewise.
819 * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
820 * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
822 * sysdeps/stub/__getdtsz.c: Likewise.
823 * sysdeps/unix/bsd/__getdtsz.S: Likewise.
824 * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
825 * sysdeps/mach/hurd/__getdtsz.c: Likewise.
826 * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
828 * sysdeps/unix/__getegid.S: Likewise.
829 * sysdeps/mach/hurd/__getegid.c: Likewise.
830 * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
832 * sysdeps/unix/__geteuid.S: Likewise.
833 * sysdeps/mach/hurd/__geteuid.c: Likewise.
834 * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
836 * sysdeps/unix/__getgid.S: Likewise.
837 * sysdeps/mach/hurd/__getgid.c: Likewise.
838 * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
840 * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
841 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
842 * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
843 * sysdeps/unix/common/__getgrps.S: Likewise.
844 * sysdeps/mach/hurd/__getgrps.c: Likewise.
845 * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
847 * sysdeps/unix/inet/__gethstnm.S: Likewise.
848 * sysdeps/unix/sysv/__gethstnm.c: Likewise.
849 * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
850 * sysdeps/mach/hurd/__gethstnm.c: Likewise.
851 * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
853 * sysdeps/unix/common/__getitmr.S: Likewise.
854 * sysdeps/mach/hurd/__getitmr.c: Likewise.
855 * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
856 * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
858 * sysdeps/stub/__getpgsz.c: Likewise.
859 * sysdeps/unix/__getpgsz.c: Likewise.
860 * sysdeps/unix/bsd/__getpgsz.S: Likewise.
861 * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
862 * sysdeps/mach/__getpgsz.c: Likewise.
863 * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
865 * sysdeps/unix/__getpid.S: Likewise.
866 * sysdeps/mach/hurd/__getpid.c: Likewise.
867 * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
869 * sysdeps/unix/__getppid.S: Likewise.
870 * sysdeps/mach/hurd/__getppid.c: Likewise.
871 * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
873 * sysdeps/stub/__gettod.c: Likewise.
874 * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
875 * sysdeps/unix/common/__gettod.S: Likewise.
876 * sysdeps/mach/__gettod.c: Likewise.
877 * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
879 * sysdeps/unix/__getuid.S: Likewise.
880 * sysdeps/mach/hurd/__getuid.c: Likewise.
881 * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
883 * sysdeps/ieee754/__infnan.c: Likewise.
884 * sysdeps/vax/__infnan.c: Likewise.
885 * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
886 * sysdeps/unix/__ioctl.S: Likewise.
887 * sysdeps/mach/hurd/__ioctl.c: Likewise.
888 * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
890 * sysdeps/stub/__isatty.c: Likewise.
891 * sysdeps/unix/bsd/__isatty.c: Likewise.
892 * sysdeps/mach/hurd/__isatty.c: Likewise.
893 * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
895 * sysdeps/m68k/fpu/__isinf.c: Likewise.
896 * sysdeps/stub/__isinf.c: Likewise.
897 * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
899 * sysdeps/ieee754/__isnan.c: Likewise.
900 * sysdeps/m68k/fpu/__isnan.c: Likewise.
901 * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
902 * sysdeps/unix/__kill.S: Likewise.
903 * sysdeps/mach/hurd/__kill.c: Likewise.
904 * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
905 * sysdeps/unix/__link.S: Likewise.
906 * sysdeps/mach/hurd/__link.c: Likewise.
907 * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
908 * sysdeps/m68k/fpu/__logb.c: Likewise.
909 * sysdeps/stub/__logb.c: Likewise.
910 * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
911 * sysdeps/unix/__lseek.S: Likewise.
912 * sysdeps/mach/hurd/__lseek.c: Likewise.
913 * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
915 * sysdeps/stub/__lstat.c: Likewise.
916 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
917 * sysdeps/unix/common/__lstat.S: Likewise.
918 * sysdeps/mach/hurd/__lstat.c: Likewise.
919 * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
921 * sysdeps/vax/__memccpy.c: Likewise.
922 * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
923 * sysdeps/unix/sysv/__mkdir.c: Likewise.
924 * sysdeps/unix/common/__mkdir.S: Likewise.
925 * sysdeps/mach/hurd/__mkdir.c: Likewise.
926 * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
927 * sysdeps/unix/__mknod.S: Likewise.
928 * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
929 * sysdeps/mach/hurd/__mknod.c: Likewise.
930 * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
931 * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
933 * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
934 * sysdeps/unix/__open.S: Likewise.
935 * sysdeps/mach/hurd/__open.c: Likewise.
936 * sysdeps/standalone/__open.c: Likewise.
937 * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
939 * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
940 * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
941 * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
942 * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
943 * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
944 * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
945 * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
946 * sysdeps/unix/i386/__pipe.S: Likewise.
947 * sysdeps/unix/sparc/__pipe.S: Likewise.
948 * sysdeps/unix/mips/__pipe.S: Likewise.
949 * sysdeps/mach/hurd/__pipe.c: Likewise.
950 * stdlib/__random.c: Renamed to random.c; added weak alias random.
951 * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
952 * sysdeps/unix/__read.S: Likewise.
953 * sysdeps/mach/hurd/__read.c: Likewise.
954 * sysdeps/standalone/__read.c: Likewise.
955 * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
957 * sysdeps/unix/common/__readlink.S: Likewise.
958 * sysdeps/mach/hurd/__readlink.c: Likewise.
959 * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
960 * sysdeps/m68k/fpu/__rint.c: Likewise.
961 * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
962 * sysdeps/unix/sysv/__rmdir.c: Likewise.
963 * sysdeps/unix/common/__rmdir.S: Likewise.
964 * sysdeps/mach/hurd/__rmdir.c: Likewise.
965 * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
966 * sysdeps/stub/__sbrk.c: Likewise.
967 * sysdeps/mach/hurd/__sbrk.c: Likewise.
968 * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
969 * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
971 * sysdeps/unix/common/__select.S: Likewise.
972 * sysdeps/mach/hurd/__select.c: Likewise.
973 * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
974 * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
976 * sysdeps/unix/__setgid.S: Likewise.
977 * sysdeps/unix/bsd/__setgid.c: Likewise.
978 * sysdeps/mach/hurd/__setgid.c: Likewise.
979 * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
981 * sysdeps/unix/common/__setitmr.S: Likewise.
982 * sysdeps/mach/hurd/__setitmr.c: Likewise.
983 * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
985 * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
986 * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
987 * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
988 * sysdeps/unix/common/__setpgrp.S: Likewise.
989 * sysdeps/mach/hurd/__setpgrp.c: Likewise.
990 * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
992 * sysdeps/unix/common/__setregid.S: Likewise.
993 * sysdeps/mach/hurd/__setregid.c: Likewise.
994 * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
996 * sysdeps/unix/common/__setreuid.S: Likewise.
997 * sysdeps/mach/hurd/__setreuid.c: Likewise.
998 * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
1000 * sysdeps/unix/bsd/__setsid.c: Likewise.
1001 * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
1002 * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
1003 * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
1004 * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
1005 * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
1006 * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
1007 * sysdeps/mach/hurd/__setsid.c: Likewise.
1008 * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
1010 * sysdeps/unix/bsd/__settod.S: Likewise.
1011 * sysdeps/unix/sysv/__settod.c: Likewise.
1012 * sysdeps/mach/hurd/__settod.c: Likewise.
1013 * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
1015 * sysdeps/unix/__setuid.S: Likewise.
1016 * sysdeps/unix/bsd/__setuid.c: Likewise.
1017 * sysdeps/mach/hurd/__setuid.c: Likewise.
1018 * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
1020 * sysdeps/stub/__sigblock.c: Likewise.
1021 * sysdeps/unix/bsd/__sigblock.S: Likewise.
1022 * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
1023 * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
1024 * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
1026 * sysdeps/stub/__sigpause.c: Likewise.
1027 * sysdeps/unix/bsd/__sigpause.S: Likewise.
1028 * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
1029 * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
1031 * sysdeps/unix/bsd/__sigproc.c: Likewise.
1032 * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
1033 * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
1034 * sysdeps/mach/hurd/__sigproc.c: Likewise.
1035 * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
1037 * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
1038 * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
1039 * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
1040 * sysdeps/unix/i386/__sigret.S: Likewise.
1041 * sysdeps/unix/mips/__sigret.S: Likewise.
1042 * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
1043 * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
1044 * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
1045 * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
1047 * sysdeps/stub/__sigvec.c: Likewise.
1048 * sysdeps/unix/bsd/__sigvec.S: Likewise.
1049 * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
1050 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
1051 * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
1052 * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
1053 * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
1054 * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
1055 * sysdeps/unix/__stat.S: Likewise.
1056 * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
1057 * sysdeps/mach/hurd/__stat.c: Likewise.
1058 * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
1060 * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
1062 * sysdeps/unix/common/__symlink.S: Likewise.
1063 * sysdeps/mach/hurd/__symlink.c: Likewise.
1064 * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
1066 * sysdeps/stub/__sysconf.c: Likewise.
1067 * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
1068 * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
1069 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
1070 * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
1071 * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
1072 * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
1073 * sysdeps/unix/bsd/__times.c: Likewise.
1074 * sysdeps/unix/sysv/__times.S: Likewise.
1075 * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
1076 * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
1077 * sysdeps/unix/__umask.S: Likewise.
1078 * sysdeps/mach/hurd/__umask.c: Likewise.
1079 * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
1081 * sysdeps/unix/__unlink.S: Likewise.
1082 * sysdeps/mach/hurd/__unlink.c: Likewise.
1083 * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
1085 * sysdeps/unix/bsd/__utimes.S: Likewise.
1086 * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
1087 * sysdeps/mach/hurd/__utimes.c: Likewise.
1088 * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
1090 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
1091 * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
1092 * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
1093 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
1094 * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
1095 * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
1096 * sysdeps/unix/sparc/__vfork.S: Likewise.
1097 * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
1098 * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
1099 * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
1100 * sysdeps/stub/__wait.c: Likewise.
1101 * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
1102 * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
1103 * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
1104 * sysdeps/unix/bsd/vax/__wait.S: Likewise.
1105 * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
1106 * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
1107 * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
1108 * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
1109 * sysdeps/unix/i386/__wait.S: Likewise.
1110 * sysdeps/unix/mips/__wait.S: Likewise.
1111 * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
1112 * sysdeps/stub/__wait3.c: Likewise.
1113 * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
1114 * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
1115 * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
1116 * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
1117 * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
1118 * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
1119 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
1120 * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
1121 * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
1122 * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
1123 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
1124 * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
1125 * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
1126 * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
1127 * sysdeps/mach/hurd/__wait4.c: Likewise.
1128 * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
1130 * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
1131 * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
1132 * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
1133 * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
1134 * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
1135 * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
1136 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
1137 * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
1138 * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
1139 * sysdeps/unix/__write.S: Likewise.
1140 * sysdeps/mach/hurd/__write.c: Likewise.
1141 * sysdeps/standalone/__write.c: Likewise.
1142 * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
1144 * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
1145 * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
1146 * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
1147 * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
1148 * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
1150 * sysdeps/unix/bsd/__sigact.c: Likewise.
1151 * sysdeps/unix/sysv/__sigact.c: Likewise.
1152 * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
1153 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
1154 * sysdeps/mach/hurd/__sigact.c: Likewise.
1155 * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
1157 * sysdeps/stub/__sigstmsk.c: Likewise.
1158 * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
1159 * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
1160 * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
1161 * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
1163 * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
1164 * sysdeps/unix/common/__getrusag.S: Likewise.
1165 * hurd/task2pid.c: File removed.
1166 * hurd/setauth.c: File removed.
1167 * hurd/pid2task.c: File removed.
1168 * hurd/hurdsyms.c: File removed.
1169 * hurd/getdport.c: File removed.
1170 * hurd/fopenport.c: File removed.
1171 * mach/thread-sym.c: File removed.
1172 * mach/spin-syms.c: File removed.
1173 * mach/msgserver_t.c: File removed.
1174 * mach/msgserver.c: File removed.
1175 * mach/msg.c: File removed.
1176 * mach/mig_syms.c: File removed.
1177 * malloc/mcheck-init.c: File removed.
1178 * malloc/cfree.c: File removed.
1179 * io/flock.c: File removed.
1180 * io/write.c: File removed.
1181 * io/unlink.c: File removed.
1182 * io/umask.c: File removed.
1183 * io/symlink.c: File removed.
1184 * io/rmdir.c: File removed.
1185 * io/readlink.c: File removed.
1186 * io/read.c: File removed.
1187 * io/pipe.c: File removed.
1188 * io/open.c: File removed.
1189 * io/mkdir.c: File removed.
1190 * io/lstat.c: File removed.
1191 * io/lseek.c: File removed.
1192 * io/link.c: File removed.
1193 * io/isatty.c: File removed.
1194 * io/stat.c: File removed.
1195 * io/fstat.c: File removed.
1196 * io/fchown.c: File removed.
1197 * io/fchmod.c: File removed.
1198 * io/dup2.c: File removed.
1199 * io/dup.c: File removed.
1200 * io/close.c: File removed.
1201 * io/fcntl.c: File removed.
1202 * io/chmod.c: File removed.
1203 * io/chdir.c: File removed.
1204 * io/access.c: File removed.
1205 * io/chown.c: File removed.
1206 * time/tzset.c: File removed.
1207 * time/timelocal.c: File removed.
1208 * time/syms-time.c: File removed.
1209 * time/settod.c: File removed.
1210 * time/setitmr.c: File removed.
1211 * time/gettod.c: File removed.
1212 * time/getitmr.c: File removed.
1213 * time/adjtime.c: File removed.
1214 * termios/tcgetattr.c: File removed.
1215 * string/stpncpy.c: File removed.
1216 * string/rindex.c: File removed.
1217 * string/memccpy.c: File removed.
1218 * string/index.c: File removed.
1219 * string/bcmp.c: File removed.
1220 * stdlib/srand.c: File removed.
1221 * stdlib/random.c: File removed.
1222 * stdio/vsscanf.c: File removed.
1223 * stdio/vfscanf.c: File removed.
1224 * stdio/syms-stdio.c: File removed.
1225 * stdio/remove.c: File removed.
1226 * stdio/getline.c: File removed.
1227 * stdio/getdelim.c: File removed.
1228 * signal/ssignal.c: File removed.
1229 * signal/sigvec.c: File removed.
1230 * signal/sigsetmask.c: File removed.
1231 * signal/sigret.c: File removed.
1232 * signal/sigproc.c: File removed.
1233 * signal/sigpause.c: File removed.
1234 * signal/sigblock.c: File removed.
1235 * signal/sigaction.c: File removed.
1236 * signal/kill.c: File removed.
1237 * signal/gsignal.c: File removed.
1238 * setjmp/siglongjmp.c: File removed.
1239 * setjmp/_longjmp.c: File removed.
1240 * resource/getrusage.c: File removed.
1241 * posix/waitpid.c: File removed.
1242 * posix/wait4.c: File removed.
1243 * posix/wait3.c: File removed.
1244 * posix/wait.c: File removed.
1245 * posix/times.c: File removed.
1246 * posix/sysconf.c: File removed.
1247 * posix/setuid.c: File removed.
1248 * posix/setsid.c: File removed.
1249 * posix/setpgrp.c: File removed.
1250 * posix/setpgid.c: File removed.
1251 * posix/setgid.c: File removed.
1252 * posix/pathconf.c: File removed.
1253 * posix/getuid.c: File removed.
1254 * posix/getppid.c: File removed.
1255 * posix/getpid.c: File removed.
1256 * posix/getgrps.c: File removed.
1257 * posix/getgid.c: File removed.
1258 * posix/geteuid.c: File removed.
1259 * posix/getegid.c: File removed.
1260 * posix/fpathcon.c: File removed.
1261 * posix/fork.c: File removed.
1262 * posix/execve.c: File removed.
1263 * posix/environ.c: File removed.
1264 * misc/utimes.c: File removed.
1265 * misc/setreuid.c: File removed.
1266 * misc/setregid.c: File removed.
1267 * misc/select.c: File removed.
1268 * misc/sbrk.c: File removed.
1269 * misc/mknod.c: File removed.
1270 * misc/ioctl.c: File removed.
1271 * misc/getpgsz.c: File removed.
1272 * misc/gethstnm.c: File removed.
1273 * misc/getdtsz.c: File removed.
1274 * misc/data_start.c: File removed.
1275 * misc/brk.c: File removed.
1276 * math/scalb.c: File removed.
1277 * math/rint.c: File removed.
1278 * math/logb.c: File removed.
1279 * math/isnan.c: File removed.
1280 * math/isinf.c: File removed.
1281 * math/infnan.c: File removed.
1282 * math/finite.c: File removed.
1283 * math/expm1.c: File removed.
1284 * math/drem.c: File removed.
1285 * math/copysign.c: File removed.
1286 * math/__scalb.c: File removed.
1287 * dirent/getdents.c: File removed.
1289 Fri Jan 20 16:11:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1291 * sysdeps/generic/morecore.c (__default_morecore): Use
1292 __malloc_ptrdiff_t; don't cast arg to int.
1294 * resolv/getnetnamadr.c: Include "conf/portability.h".
1296 Thu Jan 19 02:20:04 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1298 * stdlib/strtol.c: Include errno.h.
1299 [QUAD] (ULONG_MAX): Define to a static variable initialized to
1300 ULONG_LONG_MAX. This is to work around a GCC bug in using the
1301 constant in arithmetic.
1303 * posix/unistd.h (daemon): Declare it.
1305 * malloc/mcheck-init.c: Remove GNU ld hacks.
1306 (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
1307 * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
1308 (initialize): Call the hook if set.
1309 * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
1310 (__malloc_initialize_hook): Declare new hook variable.
1312 Wed Jan 18 01:43:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1314 * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
1315 * hurd/hurdpid.c: Likewise.
1316 * hurd/hurdauth.c: Likewise.
1318 Tue Jan 17 03:16:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1320 * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
1321 if any are successful.
1323 * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
1324 (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
1325 _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
1327 (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
1329 * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
1330 * hurd/hurd-raise.c: Likewise.
1331 * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
1333 * sysdeps/mach/hurd/ptrace.c: New file.
1335 * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
1336 interface, which has normal EINTR semantics. Instead of waiting
1337 for io_select_done notification messages, send io_select messages
1338 with short reply timeout and then wait for io_select_reply
1341 * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
1342 EXEC_INHERITED) to file_exec.
1344 * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
1345 use sig_post_untraced_reply. All callers changed.
1346 (abort_thread, abort_rpcs): Take same new arg and pass it through.
1347 All callers changed.
1348 (_hurd_internal_post_signal): Take new arg UNTRACED.
1349 If zero and process is traced, stop with SIGNO as stop signal. If
1350 nonzero, resume process before delivering signal (unless
1351 ACT==stop). Expand local fn sigwakeup into block at end taken iff
1353 (signal_allowed): New function, broken out of _S_sig_post.
1354 (_S_sig_post): Call it. Pass UNTRACED arg of false to
1355 _hurd_internal_post_signal.
1356 (_S_sig_post_untraced): New function. Just like _S_sig_post, but
1357 pass true for UNTRACED.
1358 * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
1360 * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
1361 to _hurd_internal_post_signal (value zero).
1363 Mon Jan 16 16:40:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1365 * hurd/hurdinit.c (_hurd_exec_flags): New variable.
1366 (_hurd_init): Initialize it from FLAGS arg.
1367 (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
1368 raise a SIGTRAP signal (with a sigcode of zero).
1369 * hurd/hurd.h (_hurd_exec_flags): Declare it.
1373 Mon Jan 16 16:16:55 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
1375 * malloc/malloc.c (malloc): Fix 1-off in previous change.
1377 Mon Jan 16 15:49:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1379 * posix/glob/Makefile.in: Remove config.h and config.log.
1381 Sun Jan 15 06:56:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1383 * posix/glob/configure.in: Add AC_CONST check.
1385 * conf/portability.h: #undef sun.
1386 * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
1387 * resolv/getnetnamadr.c: Likewise.
1389 * socket/Makefile (headers): Add sockaddrcom.h.
1390 * inet/netinet/in.h: Include <sockaddrcom.h>.
1391 (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
1392 * socket/sys/un.h (struct sockaddr_in): Likewise.
1393 * socket/sys/socket.h (struct sockaddr): Likewise.
1394 * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
1395 * sysdeps/generic/sockaddrcom.h: New file.
1397 * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
1398 * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
1399 F_FREESP): New macros.
1400 * sysdeps/posix/truncate.c: New file.
1402 * malloc/malloc.c (malloc): Fix typos in RMS's change.
1404 * malloc/Makefile (dist-routines): Add malloc-find.
1405 * malloc/malloc.h (malloc_find_object_address): Declare it.
1406 * malloc/malloc-find.c: New file.
1408 * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
1410 (malloc_info): Use that type for member `busy.info.size'.
1412 * stdlib/strtol.c: Change uses of `long' keyword throughout to use
1414 [! QUAD] (LONG): Define as long.
1415 [QUAD] (LONG): Define as long long.
1416 [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
1418 [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
1419 * stdlib/Makefile (routines): Add strtoq and strtouq.
1420 * stdlib/strtoq.c, stdlib/strtouq.c: New files.
1421 * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
1424 * stdio/vfprintf.c: If there was a precision specified, ignore the
1425 0 flag and always pad with spaces.
1427 * stdio/vfprintf.c: Don't use strchr to skip text until next %.
1428 Use a loop and also stop on first !isascii char.
1430 Wed Jan 11 00:07:10 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
1432 * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
1434 * malloc/malloc.c (malloc): For a multi-block object, store a
1435 negative number into the busy.info.size of all but the first block.
1437 Tue Jan 10 13:45:20 1995 Brendan Kehoe <brendan@zen.org>
1439 * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
1440 instead of t0, t1, and t2.
1442 Tue Jan 10 05:53:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1444 * malloc/memalign.c (__memalign_hook): New variable.
1445 (memalign): Call it if set.
1446 * malloc/malloc.h (__memalign_hook): Declare new variable.
1448 Wed Dec 28 03:27:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1450 * conf/portability.h: Include string.h and stdlib.h.
1451 * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
1452 * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
1453 resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
1454 resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
1455 resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
1457 * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro. Replace
1458 all uses of `extern __inline' with `__m81_inline'.
1460 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
1461 * sysdeps/unix/__fork.S: Swap args in subl.
1463 * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
1466 Tue Dec 20 13:33:20 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
1468 * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
1470 * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
1471 * mach/spin-solid.c (__spin_lock_solid): Likewise.
1473 Thu Dec 15 12:01:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1475 * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
1477 (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
1479 * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
1481 Wed Dec 14 18:20:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1483 * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
1484 in `bis' insn; immediate must be second.
1486 * sysdeps/unix/__fork.S: Use subl instead of decl.
1487 * sysdeps/unix/i386/__fork.S: New file.
1489 * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
1490 Remove A macro; just use `asm volatile' with proper quotes in each
1492 * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
1493 jmp target register.
1495 * time/africa, time/asia, time/australasia, time/emkdir.c,
1496 time/europe, time/ialloc.c, time/northamerica, time/private.h,
1497 time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
1498 and data from ADO 94h distribution.
1500 * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
1501 __sigjmp_save in %g1 and jmp there. jmp cannot contain a complete
1502 absolute pointer. Put second store in jmp delay slot.
1504 Tue Dec 13 15:47:52 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1506 * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
1507 __sigsetjmp in %g1 and jmp there. jmp cannot contain a complete
1509 * sysdeps/sparc/bsd-setjmp.S: Likewise.
1511 * configure.in: Use ; before } in { ... } exprs.
1513 Mon Dec 12 01:41:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1517 * sysdeps/mach/hurd/alpha/trampoline.c: Use `long int' for sigcode
1518 values. Use _hurdsig_catch_fault. Pass address of __sigreturn in
1519 $27, SCP value in $25. In trampoline code, use those regs.
1521 * sysdeps/mach/hurd/alpha/__sigret.c: Use asms instead of global
1522 register vars to restore FP regs. Fix typo in REI invocation.
1524 Sun Dec 11 14:10:11 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1526 * hurd/hurd/fd.h (hurd_register_ioctl_handler,
1527 _HURD_HANDLE_IOCTLS): Third arg to handler is a void *, not a
1530 * stdio/memstream.c (enlarge_buffer): Always add one char into
1531 NEED for the char we are writing or the NUL terminator.
1533 * stdio/memstream.c (enlarge_buffer): If realloc fails, just set
1534 error flag and preserve old buffer state.
1536 * stdio/fwrite.c: In fill_buffer case, check for zero buffer space
1537 after fflush and write one char normally.
1539 Sat Dec 10 00:02:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1541 * sysdeps/mach/hurd/__fork.c: Use natural_t in place of int.
1543 * sysdeps/alpha/macros.m4: Use C comments instead of ! comments.
1545 * sysdeps/mach/hurd/mmap.c: Cast -1 to long int before casting to
1548 * sysdeps/mach/alpha/syscall.S: Include
1549 <mach/machine/alpha_instruction.h> to define op_chmk.
1551 * sysdeps/mach/hurd/__mknod.c: Include <string.h>.
1552 * sysdeps/mach/hurd/setegid.c: Likewise.
1553 * sysdeps/mach/hurd/seteuid.c: Likewise.
1554 * sysdeps/mach/hurd/__setregid.c: Likewise.
1555 * sysdeps/mach/hurd/__setreuid.c: Likewise.
1556 * sysdeps/mach/hurd/__ioctl.c: Likewise.
1558 * sysdeps/mach/hurd/recvfrom.c: Include <string.h>. Use
1559 mach_msg_type_number_t in place of unsigned int.
1560 * sysdeps/mach/hurd/recv.c: Likewise.
1561 * sysdeps/mach/hurd/getsockopt.c: Likewise.
1562 * sysdeps/mach/hurd/getsocknam.c: Likewise.
1563 * sysdeps/mach/hurd/getpeernam.c: Likewise.
1564 * sysdeps/mach/hurd/accept.c: Likewise.
1565 * sysdeps/mach/hurd/__gethstnm.c: Likewise.
1567 Fri Dec 9 00:01:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1569 * sysdeps/mach/hurd/__readlink.c: Use mach_msg_type_number_t in
1570 place of unsigned int.
1571 * sysdeps/mach/hurd/__fork.c: Likewise.
1573 * sysdeps/mach/hurd/__setgid.c: Include <string.h>.
1574 * sysdeps/mach/hurd/__setuid.c: Likewise.
1575 * sysdeps/mach/hurd/__getgrps.c: Likewise.
1576 * hurd/getuids.c: Likewise.
1577 * sysdeps/mach/hurd/__getdents.c: Likewise.
1579 * sysdeps/mach/hurd/dirstream.h (DIR): Use unsigned long int for
1580 `__allocation' and `__size' members.
1582 * sysdeps/mach/hurd/alpha/exc2signal.c: Use `long int' for sigcode
1584 * sysdeps/mach/hurd/i386/exc2signal.c: Likewise.
1586 * mach/devstream.c (input): Use mach_msg_type_number_t for NREAD.
1588 * sysdeps/mach/hurd/__setitmr.c (preempt_sigalrm): Use `long int'
1589 for SIGCODE; take SIGERROR arg.
1591 * sysdeps/alpha/divrem.m4: Include <sysdep.h> instead of
1592 <regdef.h>. Use C comments instead of ! comments.
1594 * sysdeps/alpha/memchr.c: Remove extra shift and OR of CHARMASK.
1595 * sysdeps/alpha/strchr.c: Likewise.
1597 * sysdeps/mach/hurd/sysd-stdio.c: Use mach_msg_type_number_t in
1598 place of unsigned int.
1600 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Cast FD to long
1601 int before casting to pointer.
1603 * stdio/printf_fp.c: Include <string.h>.
1605 * sysdeps/alpha/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
1607 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
1609 * hurd/hurdioctl.c (fioctl): Pass a mach_msg_type_number_t* to
1612 * hurd/hurd-raise.c: Use `long int' for sigcode values.
1614 * hurd/hurdfault.c: Use `long int' for sigcode values.
1615 * hurd/hurdfault.h: Likewise.
1617 * hurd/hurd/signal.h (struct hurd_signal_preempt): Handler takes
1619 * hurd/preempt-sig.c: Likewise.
1620 * hurd/hurdsig.c (_hurd_internal_post_signal): Pass SIGERROR to
1623 * hurd/hurdlookup.c: Use mach_msg_type_number_t and natural_t in
1624 place of unsigned int and int.
1626 * hurd/hurd/id.h: Use mach_msg_type_number_t in place of unsigned int.
1628 * hurd/catch-exc.c: Use `long int' for sigcode values.
1629 * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
1630 * hurd/preempt-sig.c: Likewise.
1632 * configure.in (machine): Don't recognize r[34]00.
1633 Convert mips64* to mips/mips64/& and mips* to mips/&.
1634 * sysdeps/mips/mipsel/bytesex.h: New file.
1635 * sysdeps/mips/r4000: Directory renamed to sysdeps/mips/mips64.
1637 * sysdeps/mach/alpha/sysdep.h (START_MACHDEP): Add missing
1639 (CALL_WITH_SP): Cast FN to long int.
1641 * sysdeps/mach/alpha/thread_state.h (struct machine_thread_all_state):
1644 * hurd/fd-read.c: Include <string.h>. Use mach_msg_type_number_t
1645 in place of mach_msg_type_size_t.
1647 * hurd/hurdfault.c: Use natural_t instead of int.
1649 * hurd/hurd/signal.h: Use `long int' for sigcode values.
1650 * hurd/hurdsig.c: Use mach_msg_type_number_t and natural_t in
1651 place of unsigned int and int. Use `long int' for sigcode values.
1653 * hurd/vpprintf.c (pwrite): Cast &N to mach_msg_type_number_t *.
1655 * hurd/__fopenport.c: Include <string.h>. Use
1656 mach_msg_type_number_t in place of unsigned int.
1658 * hurd/hurdauth.c: Include <string.h>.
1659 * hurd/hurdsock.c: Likewise.
1661 * sysdeps/mach/alpha/machine-lock.h: Remove ".set noreorder" et
1662 al; GCC already emits them. Fix register constraints in asms.
1663 Set RTN in C, not asm.
1665 * hurd/hurdprio.c: Use mach_msg_type_number_t in place of unsigned
1668 Thu Dec 8 04:00:11 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1670 * sysdeps/mach/hurd/alpha/__sigret.c: Remove ".set noreorder" et
1671 al; GCC already emits them.
1672 * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
1674 * sysdeps/mach/thread_state.h: Use mach_msg_type_number_t and
1675 natural_t in place of unsigned int and int.
1677 * sysdeps/mach/sysdep.h (ENTRY): Don't #error if undefined.
1679 * sysdeps/mach/syscall.h: New file.
1681 * sysdeps/mach/Makefile: Remove debugging printout.
1683 * sysdeps/mach/hurd/configure.in: Converted to an autoconf script
1684 from sysdeps/mach/hurd/configure, to work better with autoconf
1686 * sysdeps/mach/configure.in: Likewise, from sysdeps/mach/configure.
1688 * hurd/hurdmsg.c: Use mach_msg_type_number_t in place of unsigned
1691 * sysdeps/mach/alpha/sysdep.h: Rename variable `sp' to avoid
1692 conflict with #define in <mach/alpha/asm.h>.
1694 * sysdeps/mach/hurd/alpha/__sigret.c: Remove unused variable.
1696 * sysdeps/mach/hurd/__ioctl.c: Pass arg to
1697 __mig_dealloc_reply_port.
1699 * configure.in: Converted to Autoconf version 2.
1700 * sysdeps/generic/configure.in: Likewise.
1701 * sysdeps/unix/common/configure.in: Likewise.
1702 * sysdeps/unix/configure.in: New file, converted to a
1703 part-autoconf script from sysdeps/unix/configure, to work better
1704 with autoconf version 2.
1705 * aclocal.m4: Converted to Autoconf version 2.
1706 (AC_CHECK_SYMBOL): New macro.
1707 * config.make.in: New file.
1708 * config-name.in: New file.
1709 * Makefile (distribute): Rename install.sh to install-sh.
1710 Add config.make.in, config-name.in, Makefile.in.
1711 (distclean-1): Remove config-name.h and config.cache.
1712 * Makefile.in: New file.
1713 * Makeconfig (+gnu-stabs, gnu-as): Match -DHAVE_GNU_{AS,LD}=1 too.
1715 Wed Dec 7 14:05:12 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1717 * sysdeps/mach/mips/cacheflush.c: New file.
1718 * sysdeps/mach/mips/Makefile: New file.
1719 * sysdeps/mach/mips/Dist: New file.
1721 * hurd/hurdmalloc.c (vm_allocate, vm_page_size): #define these to
1724 * posix/glob/Makefile.in (realclean): Remove config.status.
1726 * posix/glob/Makefile.in (DEFS): New variable, set from @DEFS@.
1727 (CPPFLAGS): Remove @DEFS@ from here.
1728 (.c.o): Use $(DEFS).
1730 * setjmp/siglongjmp.c: First arg is const.
1732 Tue Dec 6 19:04:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1734 * posix/glob/Makefile.in (CPPFLAGS): Include @DEFS@.
1736 Mon Dec 5 12:05:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1738 * posix/glob/configure.in: Add AC_PROG_CC.
1740 * sysdeps/mach/hurd/alpha/longjmp-ts.c: Use ENV[0].__jmpbuf[0].
1741 * sysdeps/mach/hurd/mips/longjmp-ts.c: Likewise.
1742 * sysdeps/mach/hurd/i386/longjmp-ts.c: Likewise.
1746 * sysdeps/mach/hurd/__select.c: Don't make TO const.
1748 Sun Dec 4 12:06:36 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1750 * sysdeps/unix/configure (config_vars): Add missing backslash
1753 Revamp the `setjmp' interface to be cleaner: only one type
1754 `jmp_buf'/`sigjmp_buf', and only one `longjmp' function (with
1755 aliases `_longjmp', `siglongjmp'). Internal setjmp interface is
1756 now __sigsetjmp, which takes SAVEMASK flag and optionally saves
1757 the signal mask. Add extern entry points `setjmp' and `_setjmp'
1758 for BSD compatiblity; they tail-call __sigsetjmp.
1759 * setjmp/setjmp.h: Include <sigset.h> for __sigset_t, not
1761 (jmp_buf): Define unconditionally with old `sigjmp_buf' defn.
1762 (__sigjmp_save): Declare to return int.
1763 (__setjmp): Remove declaration; this function no longer exists.
1764 (__sigsetjmp): Declare it; this is the new internal function.
1765 (setjmp): Define to call __sigsetjmp, second arg depending on
1767 [__OPTIMIZE__] (longjmp): Remove #define.
1768 [__USE_BSD] (_longjmp): Declare it, another name for `longjmp'.
1769 [__USE_BSD] (_setjmp): Define macro to do __sigsetjmp (ENV, 0).
1770 [__FAVOR_BSD]: Remove all these defns.
1771 [__USE_POSIX] (sigjmp_buf): Define as another name for `jmp_buf'.
1772 [__USE_POSIX] (sigsetjmp): Define to call __sigsetjmp.
1773 * setjmp/sigjmp.c (__sigjmp_save): Return an int, always zero, not
1775 * setjmp/Makefile (routines): Remove _setjmp, add bsd-setjmp and
1777 * setjmp/longjmp.c: Define as a real funciton, which restores
1778 signal mask and calls __longjmp.
1779 * setjmp/siglongjmp.c: Make this an alias to longjmp.
1780 * setjmp/_longjmp.c: Alias to longjmp, not siglongjmp.
1781 * sysdeps/stub/setjmp.c: Implement __sigsetjmp instead of
1782 __setjmp; call __sigjmp_save.
1783 * sysdeps/sparc/setjmp.S: Likewise.
1784 * sysdeps/m68k/setjmp.c: Likewise.
1785 * sysdeps/i386/setjmp.c: Likewise.
1786 * sysdeps/vax/setjmp.c: Likewise.
1787 * sysdeps/mips/setjmp.S: Implement __sigsetjmp instead of
1788 __setjmp; call __sigsetjmp_aux instead of __setjmp_aux. Pass SP
1789 and FP as 3rd and 4th args, not 2nd and 3rd.
1790 * sysdeps/alpha/setjmp.S: Likewise.
1791 * sysdeps/mips/setjmp_aux.c: Implement __sigsetjmp_aux instead of
1792 __setjmp_aux; call __sigjmp_save.
1793 * sysdeps/alpha/setjmp_aux.c: Likewise.
1794 * sysdeps/mips/bsd-setjmp.S, sysdeps/mips/bsd-_setjmp.S: New files.
1795 * sysdeps/alpha/bsd-setjmp.S, sysdeps/alpha/bsd-_setjmp.S: New files.
1796 * sysdeps/vax/bsd-setjmp.S, sysdeps/vax/bsd-_setjmp.S: New files.
1797 * sysdeps/sparc/bsd-setjmp.S, sysdeps/sparc/bsd-_setjmp.S: New files.
1798 * sysdeps/i386/bsd-setjmp.S, sysdeps/i386/bsd-_setjmp.S: New files.
1799 * sysdeps/m68k/bsd-setjmp.S, sysdeps/m68k/bsd-_setjmp.S: New files.
1800 * sysdeps/stub/bsd-setjmp.c, sysdeps/stub/bsd-_setjmp.c: New files.
1801 * setjmp/_setjmp.c: File removed.
1802 * sysdeps/alpha/__longjmp.c: Take arg of type __jmp_buf, not
1804 * sysdeps/vax/__longjmp.c: Likewise.
1805 * sysdeps/stub/__longjmp.c: Likewise.
1806 * sysdeps/i386/__longjmp.c: Likewise.
1807 * sysdeps/m68k/__longjmp.c: Likewise.
1809 Sat Dec 3 09:00:17 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1811 * sysdeps/mach/hurd/alpha/__sigret.c: Set up frame for `rei' to
1812 restore on user stack, aligned to an 8-word boundary and with a PS
1813 value that restores user's stack alignment.
1815 Fri Dec 2 19:31:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1817 * sysdeps/unix/readdir.c: Search one char more than D_NAMLEN(DP)
1818 for the null terminator. Always set D->d_namlen, using
1819 D_NAMLEN(DP) if no null is found.
1821 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Fix typo `.global' to
1822 `.globl'. Silly me, I used a vowel in a Unix program.
1824 Mon Nov 28 16:11:39 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1826 * io/fts.c (ALIGN, ALIGNBYTES): New macros, defined if not already
1829 Tue Nov 22 06:39:49 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1831 * sysdeps/unix/bsd/osf1/dirstream.h: File removed.
1833 * sysdeps/stub/sigcontext.h (struct sigcontext): Use `__sigset_t'
1834 instead of `sigset_t' for `sc_mask'.
1835 * sysdeps/mach/hurd/i386/sigcontext.h: Likewise.
1836 * sysdeps/mach/hurd/alpha/sigcontext.h: Likewise.
1837 * sysdeps/mach/hurd/mips/sigcontext.h: Likewise.
1838 * sysdeps/unix/bsd/ultrix4/mips/sigcontext.h: Likewise.
1839 * sysdeps/unix/bsd/sun/m68k/sigcontext.h: Likewise.
1840 * sysdeps/unix/bsd/sun/sparc/sigcontext.h: Likewise.
1842 * hurd/hurdsig.c (_hurd_internal_post_signal: case handle): Call
1843 abort_thread always, first thing after thread_suspend.
1845 Mon Nov 21 13:18:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1847 * sysdeps/mach/hurd/__fcntl.c: Don't make this whole function a
1850 * sysdeps/generic/strpbrk.c: Don't call strchr; do it by hand for
1853 Wed Nov 16 12:47:22 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1855 * sysdeps/unix/bsd/m68k/sysdep.S [__motorola__]: Swap operands in
1858 * hurd/msgportdemux.c (_hurd_msgport_receive): Call
1859 _hurd_self_sigstate to get sigstate cached before running any
1862 * sysdeps/mach/hurd/__fork.c: Pass _hurd_msgport_thread to
1863 __thread_get_state, not _hurd_sigthread. Don't do
1864 __thread_get_state on THREAD_SELF--the kernel does not allow it.
1866 * hurd/hurdsig.c (_hurd_internal_post_signal): In stopping orphan
1867 test, take sigmask of SIGNO, don't & its value with a mask. In
1868 blocked signal test, be careful not to pass SIGNO=0 to __sigismember.
1870 Tue Nov 15 01:39:36 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1872 * Makerules (stub-$(subdir)): Save absolute name of
1873 $(..)sysdeps/stub before cd'ing, transform gleaned file names to
1874 refer to saved name.
1876 * sysdeps/mach/hurd/socketpair.c: Include <fcntl.h>.
1878 * time/test_time.args: Add CST as a test case.
1880 * sysdeps/mach/hurd/socketpair.c: Rewritten (copying __pipe.c).
1882 * sysdeps/unix/bsd/dirstream.h [__USE_BSD] (dirfd): New macro.
1884 * posix/unistd.h: Declare fchdir.
1886 * io/fts.c (MAXPATHLEN): Define if not defined.
1888 * io/fts.c, io/fts.h: New files, from 4.4 BSD code by Keith Bostic.
1889 * io/Makefile (routines): Add fts.
1890 (headers): Add fts.h.
1892 Mostly ported the Hurd to the DEC Alpha.
1893 * sysdeps/mach/alpha/machine-sp.h: New file.
1894 * sysdeps/mach/alpha/thread_state.h: New file.
1895 * sysdeps/mach/alpha/sysdep.h: New file.
1896 * sysdeps/mach/alpha/machine-lock.h: New file.
1897 * sysdeps/mach/hurd/alpha/sigcontext.h: New file.
1898 * sysdeps/mach/hurd/alpha/longjmp-ts.c: New file.
1899 * sysdeps/mach/hurd/alpha/trampoline.c: New file.
1900 * sysdeps/mach/hurd/alpha/exc2signal.c: New file.
1901 * sysdeps/mach/hurd/alpha/__sigret.c: New file.
1903 * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Make the
1905 * sysdeps/alpha/Makefile (divrem rule): Make the output
1906 unwritable, use mv -f.
1907 * sysdeps/sparc/Makefile (divrem rule): Likewise.
1909 * configure.in (sysnames): Put another loop on $mach inside $base
1910 loop but outside $vendor loop. This should catch .../cpu/vendor.
1912 Mon Nov 14 22:52:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1914 * sysdeps/mach/hurd/start.c: Add missing #endif.
1916 Sun Nov 13 05:04:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1918 * sysdeps/mach/hurd/__select.c: At end of receiving loop, clear TO
1921 * malloc/mcheck-init.c (turn_on_mcheck): Add gratuitous self
1922 reference to silence compiler warning.
1923 (_hurd_preinit_hook): Add the function to this set too.
1925 * time/__tzset.c (__tzset): Give tz_rules coherent default when TZ
1926 value is short or malformed.
1928 * mach/devstream.c: Echo input after reading it.
1930 * Make-dist (generated): Mutate to add .S and .s variations for .c
1933 Fri Nov 11 11:43:26 1994 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu>
1935 * sysdeps/mach/hurd/i386/__sigret.c (__sigreturn): Don't actually
1936 abort here; at least let the user continue with bogus FP; that's
1937 better than a random crash until it's fixed.
1939 Thu Nov 10 04:56:28 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1941 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h (msync): Use __caddr_t
1942 instead of caddr_t in decl.
1944 * sysdeps/mach/start.c (START_ARGS): Define to void if undefined.
1945 [START_MACHDEP]: Reference this if defined.
1946 [START_MACHDEP] (_start): #define to _start0.
1947 (_start): Take args START_ARGS.
1948 * sysdeps/mach/hurd/start.c: Likewise.
1950 Wed Nov 9 08:02:59 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1952 * hurd/Makefile (sig): Remove longjmp-ctx (it is never called).
1954 * sysdeps/mach/hurd/__fork.c: Do thread_get_state on parent's
1955 threads to modify and thread_set_state new child threads.
1957 Mon Nov 7 00:38:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1959 * posix/glob/configure.in: Converted to Autoconf v2.
1960 * posix/glob.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H
1961 instead of DIRENT, SYSDIR, NDIR.
1962 * posix/glob/Makefile.in (CC): New variable, set from @CC@.
1963 (CPPFLAGS): Set from @CPPFLAGS@, not @DEFS@.
1965 * sysdeps/unix/__fork.S: Use decrement and AND instead of test and
1967 * sysdeps/unix/sparc/__fork.S: Likewise.
1968 * sysdeps/unix/sparc/__vfork.S: Likewise.
1969 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
1970 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
1971 * sysdeps/unix/i386/__fork.S: File removed.
1973 Sun Nov 6 19:26:28 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1977 Fri Nov 4 16:52:05 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1981 * manual/Makefile (stamp-summary): Depend on $(chapters-incl) too.
1983 Thu Nov 3 18:33:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1985 * sysdeps/generic/sigset.h (__sigemptyset): Cast to __sigset_t.
1986 (__sigfillset): Likewise. Use ~(__sigset_t)0 in place of -1.
1987 (__SIGSETFN): Don't try to be clever. Test bounds of SIG with <
1990 * sysdeps/mach/hurd/__fork.c: Unlock signal state earlier, just
1991 after unlocking _hurd_ports locks.
1993 * sysdeps/unix/bsd/osf1/direct.h: File removed.
1994 * sysdeps/unix/bsd/direct.h (struct direct): Use `unsigned int'
1995 instead of `unsigned long int' for `d_fileno' member.
1997 * Makerules (common-mostlyclean): Remove $(tests:=.out) too.
1999 * assert/assert-perr.c (__assert_perror_fail): Add missing comma.
2001 * sysdeps/unix/ioctls-tmpl.c [__osf__ && __alpha__] (FIOPIPESTAT,
2002 SIOCSRREQR, SIOCSRREQW, SRVC_REQUEST): #undef these.
2004 Wed Nov 2 23:00:19 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2006 * sysdeps/mach/hurd/setegid.c: Pass poly and count args for
2007 other_handles in correct order in call to auth_makeauth.
2008 * sysdeps/mach/hurd/__setregid.c: Likewise.
2009 * sysdeps/mach/hurd/__setreuid.c: Likewise.
2011 * Makerules (compile.S): Add -DASSEMBLER.
2012 * sysdeps/mach/sysdep.h [ASSEMBLER]: Don't include
2013 <mach/mig_support.h> if this is defined.
2015 Wed Nov 2 22:39:55 1994 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu>
2017 * sysdeps/mach/hurd/seteuid.c: Pass poly and count args for
2018 other_handles in correct order in call to auth_makeauth.
2020 Wed Nov 2 15:03:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2022 * stdio/internals.c (fillbuf): Make sure returned char doesn't get
2025 Tue Nov 1 01:25:28 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2027 * sysdeps/unix/common/Implies: File removed.
2028 * sysdeps/unix/bsd/Implies: Add unix/inet.
2030 * assert/assert-perror.c: Renamed to assert-perr.c.
2031 * assert/Makefile (routines): Rename assert-perror to assert-perr.
2035 * mach/Makefile (generated): Add __%.c for $(mach-shortcuts) too.
2037 * dirent/Makefile (tests): Add tst-seekdir.
2038 * dirent/tst-seekdir.c (main): New file.
2039 * sysdeps/unix/bsd/seekdir.c: New file.
2040 * sysdeps/unix/bsd/telldir.c: New file.
2041 * sysdeps/unix/bsd/dirstream.h (DIR): New member `__pos'.
2042 * sysdeps/unix/bsd/readdir.c: Update DIRP->__pos in getdirentries
2044 * sysdeps/unix/opendir.c: Use calloc in place of malloc, to zero
2047 * sysdeps/standalone/i386/force_cpu386/force_cpu386.ld: Renamed to
2049 * sysdeps/standalone/i386/force_cpu386/Makefile: Install it from
2050 that name (still into $(libdir)/force_cpu386.ld).
2052 * mach/Makefile (headers, user-interfaces, server-interfaces):
2053 Don't add default_pager stuff.
2055 Mon Oct 31 07:00:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2057 * sysdeps/unix/bsd/sun/sunos4/termbits.h (TCSASOFT): Macro
2060 * malloc/malloc.h: Change #ifdef __STDC__ to #if defined
2061 (__STDC__) && __STDC__.
2063 Fri Oct 28 00:09:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2065 * sysdeps/mach/sysdep.h: Include <mach/mig_support.h> for decls.
2066 (FATAL_PREPARE): Pass arg to __mig_dealloc_reply_port.
2068 * assert/Makefile (routines): Add assert-perror.
2070 * Makerules (stubs): cd into $(objdir) and use local file names,
2071 making the cmd shorter.
2073 * sysdeps/mach/hurd/getprio.c (getonepriority): Call
2074 proc_getprocinfo with proc port.
2076 * sysdeps/mach/hurd/errnos.awk: Grok "@comment errno %d" in
2077 errno.texi, instead of assigning sequentially.
2078 * sysdeps/mach/hurd/errlist.awk: Likewise.
2080 * stdio/fwrite.c: Reset BUFFER_SPACE after fflush in fill_buffer
2083 * sysdeps/generic/sigset.h (__SIGSETFN): When losing, punt to
2084 `raise (-1)'. Old method looped.
2086 * hurd/hurd/resource.h: Include <hurd/process.h>.
2088 Thu Oct 27 15:00:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2090 * sysdeps/standalone/standalone.h: Fixed typo.
2092 Wed Oct 26 00:21:16 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2094 * sysdeps/unix/i386/vfork.S: New file.
2096 * sysdeps/generic/strchr.c: Increment CP properly in check for 5th
2097 char of quadword hit.
2099 * sysdeps/mach/hurd/getprio.c (getonepriority): Always set ONERR.
2101 Tue Oct 25 03:53:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2103 * hurd/hurd/resource.h: Include <errno.h>.
2105 * stdio/ftell.c: If STREAM->__pushed_back, calculate from
2106 pushback_bufp instead of bufp.
2108 * Makefile (format-me): New canned sequence; runs makeinfo
2111 (NOTES): New file rule.
2113 * manual/intro.texi (Feature Test Macros): Node moved off to
2115 * manual/creature.texi: New file, broken out of intro.texi.
2117 * manual/Makefile (indices): New variable; include ky.
2118 (realclean): Use $(indices) to remove all index and sorted index
2121 * sysdeps/mach/hurd/fcntlbits.h (O_ASYNC, O_FSYNC, O_SYNC):
2122 Protect with [__USE_BSD].
2124 Mon Oct 24 00:16:59 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2126 * sysdeps/unix/bsd/utime.c: Initialize tv_usec fields.
2127 Use __gettimeofday instead of time.
2129 * sunrpc/pmap_rmt.c: Include <sys/param.h> before <net/if.h>.
2130 Undef _POSIX_SOURCE before that.
2131 * sunrpc/pm_getport.c: Likewise.
2132 * sunrpc/pm_getmaps.c: Likewise.
2133 * sunrpc/get_myaddr.c: Likewise.
2135 * misc/sys/cdefs.h: Undef __P first.
2139 * sysdeps/mach/hurd/getprio.c: Rewritten.
2140 * sysdeps/mach/hurd/setprio.c: New file.
2141 * hurd/hurdprio.c: New file.
2142 * hurd/Makefile (routines): Add hurdprio.
2143 * hurd/hurd/resource.h (_hurd_priority_which_map): Declare it.
2144 (NICE_TO_MACH_PRIORITY, MACH_PRIORITY_TO_NICE): New macros.
2146 Sun Oct 23 19:39:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2148 * Makerules (sources): Fix typo in last change.
2150 Fri Oct 21 13:15:39 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2152 * sysdeps/generic/termbits.h (ECHOKE): Remove gratuitous leading
2153 space before #define.
2155 * Makerules (sources): Filter out $(elided-routines).
2157 * sysdeps/sparc/divrem.m4 (entry point): For OP=rem, set SIGN from
2158 dividend only, ignoring divisor.
2159 (Lgot_result): Test SIGN here for OP=rem too (as originally).
2161 Wed Oct 19 02:40:02 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2163 * hurd/hurdsig.c: Use assert_perror.
2165 * assert/assert-perror.c (__assert_perror_fail): New file.
2166 * assert/assert.h (assert_perror): New macro.
2170 * hurd/hurdsig.c (abort_rpcs): Actually return a port instead of
2171 boolean, as the type says.
2173 * hurd/hurdsig.c (abort_all_rpcs): If waiting for reply from
2174 interrupted RPC returns error, print debugging msg with error
2177 Mon Oct 17 00:06:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2179 * stdlib/strtol.c: Deansideclized.
2180 * sysdeps/generic/strcspn.c: Deansideclized.
2181 * sysdeps/generic/putenv.c: Deansideclized, added portability
2184 Fri Oct 14 14:00:11 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2186 * sysdeps/unix/sysv/sysv4/solaris2/utsnamelen.h:
2187 Moved to sysdeps/unix/sysv/sysv4.
2189 Thu Oct 13 22:06:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2191 * sysdeps/unix/common/glue-ctype.c [HAVE__LOCP]: Move this defn to
2192 first. Include sys/types.h.
2194 * sysdeps/unix/bsd/readdir.c: Include direct.h.
2196 * socket/sys/socket.h (__SOCKADDR_ARG): Always use non-GCC defn,
2198 * posix/sys/wait.h (__WAIT_STATUS): Likewise.
2200 Tue Oct 11 00:42:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2204 Mon Oct 10 00:33:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2206 * malloc/malloc.h [_MALLOC_INTERNAL] (CHAR_BIT): Don't define if
2209 * stdio/__vfscanf.c: Grok %q modifier like %ll.
2211 * mach/__msgserver.c: Increase default MAX_SIZE to two pages.
2213 * misc/init-misc.c: Cast string constant to non-const type.
2215 * sysdeps/i386/ffs.c: Use %1 again instead of listing TMP as an
2216 input with constraint "1". This avoids a warning that TMP may be
2219 Sun Oct 9 22:41:20 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2221 * hurd/hurdsig.c (abort_all_rpcs): Declare SS.
2223 Sun Oct 09 01:19:38 1994 Jim Meyering (meyering@comco.com)
2225 * posix/fnmatch.c: Remove CONFIG_BROKETS conditional.
2227 Fri Oct 7 15:28:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2229 * stdio/__vfscanf.c: Properly grok %a modifier.
2231 * hurd/hurdsig.c (abort_rpcs): Return the reply port or null,
2233 (abort_all_rpcs): Record the returns from abort_rpcs and wait for
2234 a message on each reply port. Don't bother locking _hurd_siglock.
2236 Thu Oct 6 18:57:44 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2238 * hurd/hurd.h (_hurd_socket_server): Take new arg DEAD; explain
2240 * hurd/hurdsock.c (_hurd_socket_server): Take new arg DEAD; if
2241 nonzero, clear any old cached port and always do a fresh lookup.
2242 * sysdeps/mach/hurd/socket.c: Pass new arg to _hurd_socket_server,
2243 cope with dead server on socket_create.
2244 * sysdeps/mach/hurd/__pipe.c: Likewise.
2246 Mon Oct 3 02:09:43 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2248 * sysdeps/generic/utsnamelen.h (_UTSNAME_LENGTH): Increase to
2251 Sun Oct 2 18:35:16 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2253 * posix/glob.h (__P): Change arg name to `protos', for congruence
2255 * posix/fnmatch.h (__P): Likewise.
2257 Sat Oct 1 04:25:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2259 * misc/Makefile (routines): Add daemon.
2261 Fri Sep 30 16:49:09 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2263 * misc/daemon.c: New file, incorporated from BSD 4.4-Lite.
2265 * sysdeps/mach/hurd/__setsid.c: Call _hurd_setcttyid with
2266 MACH_PORT_NULL after proc_setsid.
2268 * hurd/hurdioctl.c (_hurd_setcttyid): Don't do mod_refs if port is
2271 Always use fds' `port' cell for the generic port.
2272 For ctty fds, use the `ctty' cell for the ctty-special port.
2273 * hurd/dtable.c (get_dtable_port): Use port, never ctty.
2274 (fork_child_dtable): Reset D->ctty instead of D->port.
2275 (ctty_new_pgrp): Likewise.
2276 * sysdeps/mach/hurd/__ioctl.c: Use ctty port for RPC if set and
2278 * hurd/port2fd.c (_hurd_port2fd): Install normal port in D->port
2279 cell, and ctty-special port in the D->ctty cell, not the reverse.
2280 * hurd/hurdioctl.c (tiocsctty): Don't assume MACH_PORT_NULL is
2282 * hurd/hurdexec.c (_hurd_exec): Always pass fds' normal port,
2283 never its ctty port.
2284 * hurd/fd-write.c (_hurd_fd_write): Use ctty port for RPC if set
2286 * hurd/fd-read.c (_hurd_fd_read): Use ctty port for RPC if set.
2288 Thu Sep 29 18:28:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2290 * mach/mig_syms.c (mig_put_reply_port): Add symbol alias to __
2293 Thu Sep 29 12:23:07 1994 Brendan Kehoe (brendan@zen.org)
2295 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (ENTRY): Use
2296 poundfnc instead of \#function, to satisfy gcc-2.6.0 and higher.
2297 (cat, poundfnc): Define macros to pull it off.
2299 * sysdeps/unix/sysv/sysd-stdio.c: Include
2300 sysdeps/generic/sysd-stdio.h,
2301 not looking in sysdeps/posix.
2303 Thu Sep 29 05:38:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2305 * sysdeps/unix/common/configure.in (ctype check): In test prog,
2306 just reference $ctype; we don't care what type it is.
2308 * sysdeps/unix/bsd/bsd4.4/direct.h: New file.
2309 (HAVE_D_TYPE): Define this macro.
2310 * dirent/dirent.h (struct dirent): New member `d_type'; shorten
2311 `d_namlen' to a byte.
2312 * sysdeps/unix/bsd/readdir.c [! HAVE_D_TYPE]: Shuffle d_namlen and
2315 Wed Sep 28 17:23:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2317 * posix/sys/utsname.h [__USE_SVID] (SYS_NMLN): New macro.
2319 * dirent/scandir.c: Free storage on error from readdir.
2321 Mon Sep 26 00:55:34 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2325 * MakeTAGS (all-dist): Prepend the appropriate sysdep dir names.
2327 * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): Create a
2330 Sat Sep 24 13:44:51 1994 Jim Meyering (meyering@comco.com)
2332 * sysdeps/generic/memcmp.c [CMP_LT_OR_GT]: New macro.
2333 (memcmp): Use it in place of each of ten 5-line #ifdef blocks.
2335 Fri Sep 23 16:55:54 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2337 * sysdeps/mach/hurd/sigsuspend.c: Include <hurd/msg.h>.
2339 * sysdeps/mach/hurd/sigsuspend.c: Add missing & in __mach_msg
2342 Thu Sep 15 14:22:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2344 * sysdeps/standalone/i386/force_cpu386/Dist: New file.
2345 * sysdeps/standalone/m68k/m68020/mvme136/Dist: New file.
2346 * sysdeps/standalone/i960/Dist: New file.
2347 * sysdeps/standalone/m68k/m68020/Dist: New file.
2348 * sysdeps/standalone/i386/force_cpu386/force_cpu386.ld: New file.
2349 * sysdeps/standalone/m68k/m68020/mvme136/mvme136.ld: New file.
2350 * sysdeps/standalone/i960/i960ca.h: New file.
2351 * sysdeps/standalone/m68k/m68020/m68020.h: New file.
2353 * sysdeps/unix/common/configure.in: Use AC_COMPILE_CHECK instead
2356 * sysdeps/generic/make_siglist.c (sys_siglist): Define as macro to
2359 * sysdeps/mach/i386/thread_state.h: Include from mach/machine, not
2361 * sysdeps/mach/hurd/i386/sigcontext.h: Likewise.
2363 * mach/mach/mig_support.h (__mig_put_reply_port): Declare.
2364 (__mig_dealloc_reply_port): Take arg.
2365 * sysdeps/mach/hurd/mig-reply.c (__mig_put_reply_port): New
2367 (__mig_dealloc_reply_port): Take arg, ignore it.
2369 Wed Sep 14 18:16:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2371 * sysdeps/mach/hurd/Makefile (libc-name): Set to crt.
2372 [!subdir]: Install libc-ldscript as libc.a.
2373 * sysdeps/mach/hurd/Dist: Add libc-ldscript.
2375 Tue Sep 13 19:57:09 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2377 * sysdeps/mach/hurd/sync.c: Don't be synchronous: pass WAIT=0 to
2380 * Makerules (libc-name): New variable.
2381 (install, libc installation rule): Use $(libc-name) in place of `c'.
2383 Sun Sep 11 23:28:20 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2385 * sysdeps/mach/hurd/__readlink.c: Only decrement LEN to remove the
2386 null terminator when LEN is already large enough to include it.
2388 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Add break
2389 after FS_RETRY_MAGICAL case.
2391 Fri Sep 9 04:03:59 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2393 * stdio/vfprintf.c: Grok q modifier like ll.
2395 * Make-dist (sysdep-Subdir-files, subdirs): Set these early on,
2396 before doing distinfo.
2397 [parent] (+distinfo): Set inhibit_interface_rules=t in sub-make.
2399 Thu Sep 8 17:18:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2401 * sysdeps/generic/morecore.c (__default_morecore) [! __STDC__]:
2402 Declare arg as `int' instead of `ptrdiff_t'.
2404 Tue Sep 6 19:06:00 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
2406 * posix/glob.c (prefix_array, glob): Avoid const on initialized
2407 variables. Some compiler generates bad code.
2409 Mon Sep 5 13:24:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2411 * malloc/Makefile (malloc/%: ../sysdeps/generic/%): New rule, to get
2414 * malloc/malloc.h (size_t, ptrdiff_t): Never define these as macros.
2415 (__malloc_size_t): Define this instead.
2416 Change all uses of size_t to __malloc_size_t.
2417 * malloc/valloc.c: Replace all uses of size_t with __malloc_size_t.
2418 * malloc/memalign.c: Likewise.
2419 * malloc/mcheck.c: Likewise.
2420 * malloc/mtrace.c: Likewise.
2421 * malloc/malloc.c: Likewise.
2422 * malloc/free.c: Likewise.
2423 * malloc/realloc.c: Likewise.
2424 * malloc/calloc.c: Likewise.
2426 * MakeTAGS (TAGS): Define first so as to be default goal.
2427 (sysdep_dirs): Set this by running find, if it is not already set.
2428 (all-dirs): Include that value.
2429 (all-dist): Filter output of cat, not args to it.
2430 * Makerules (TAGS): Depend on distinfo, not distfile.
2432 * resolv/getnetnamadr.c (getnetbyname): Arg is always const,
2433 regardless of [sun].
2435 Sun Sep 4 00:04:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2439 * Makerules (distinfo-vars): Double $s in final emitted sources defn.
2441 * inet/Makefile (headers): Add netdb.h.
2442 * resolv/Makefile (headers): Remove netdb.h.
2443 * resolv/netdb.h: Moved to inet.
2444 * inet/netdb.h: Incorporated from BSD 4.4-Lite.
2445 Add back h_errno declaration.
2447 * hurd/Makefile (faultexc.c): Change this to a pattern rule to
2448 build both faultexc.[ch].
2449 (hurdfault.o): Depend on faultexc.h and faultexc.c to get them built.
2451 * sysdeps/mach/hurd/i386/trampoline.c
2452 (_hurdsig_rcv_interrupted_p): Make PC volatile.
2453 (_hurd_setup_sighandler): Cast SS->context to int before comparing to
2454 _hurdsig_fault_sigcode.
2456 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_SET_{SP,PC}):
2457 Cast args to unsigned long int.
2459 * sysdeps/mach/hurd/i386/trampoline.c: Use _hurdsig_catch_fault.
2461 * Make-dist (subdirs): Use sed to remove comments from Subdirs files.
2462 * MakeTAGS (subdirs): Likewise.
2464 * sysdeps/mach/i386/thread_state.h: Include
2465 <mach/i386/thread_status.h> first thing.
2467 * hurd/Makefile (sig): Add faultexc.
2468 ($(objpfx)faultexc.c): New target.
2469 (generated): Append faultexc.c.
2471 * hurd/Makefile (sig): Add hurdfault; remove init-fault.
2472 (distribute): Add hurdfault.h.
2473 * hurd/hurdfault.h: New file.
2474 * hurd/hurdfault.c: New file.
2475 * hurd/hurdsig.c (interrupted_reply_port_location): Use
2476 _hurdsig_catch_fault and _hurdsig_end_catch_fault.
2477 (_hurdsig_getenv): Likewise.
2478 * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
2480 * hurd/catch-exc.c: Return EPERM if TASK is not right.
2482 * hurd/hurdsig.c (_hurd_sigthread_fault_env): Variable moved to
2484 (_hurdsig_fault_init): Function moved to hurdfault.c.
2486 Sat Sep 3 12:22:53 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2488 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_SET_PC,
2489 MACHINE_THREAD_STATE_SET_SP): New macros.
2490 * mach/setup-thread.c: Use MACHINE_THREAD_STATE_SET_PC.
2491 * sysdeps/mach/hurd/__fork.c: Likewise.
2493 * string/test-ffs.c (main: try): Actually call ffs in the test.
2495 Fri Sep 2 21:20:17 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2497 * sysdeps/mach/hurd/mips/__sigret.c: Restore FPU state. Code from
2500 * sysdeps/mach/hurd/__mknod.c: Fixed copying of the translator
2501 name into buffer with major and minor numbers, and setting of LEN.
2503 * sysdeps/unix/configure (unix_syscall): In sed cmd, do = first to
2504 avoid clobbering produced assignments.
2506 Thu Sep 1 03:25:17 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2510 * sysdeps/mach/hurd/connect.c (connect): Fix accidental renaming
2511 of sun_path to sun_file_name.
2513 * bare/Makefile (routines, elided-routines): Set these both to
2515 (distribute): Don't set this.
2517 * Makerules (distinfo-vars): Fix cmd to echo `sources' defn.
2519 * sysdeps/unix/configure: Handle dirs other than common. Check
2520 for [gs]etdomainname.
2521 * misc/Makefile (routines): Add getdomain, setdomain.
2522 * sysdeps/unix/bsd/bsd4.4/setdomain.S: New file.
2523 * sysdeps/unix/bsd/bsd4.4/getdomain.S: New file.
2524 * sysdeps/stub/setdomain.c: New file.
2525 * sysdeps/stub/getdomain.c: New file.
2527 Wed Aug 31 01:15:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2529 * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): Take no
2530 args; use parent SS variable. Changed all calls.
2532 * hurd/hurd/signal.h (struct hurd_sigstate): Make `suspended' a
2533 port; remove `arrived'.
2534 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend): Rewritten to set
2535 SS->suspended port and wait for msg on it. Check for and deliver
2536 pending signals properly.
2537 * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): If
2538 SS->suspended is set, send an empty message on it and clear it.
2540 * math/test-math.c (print_trig_stuff): New function, tests many
2542 (main): Call it at end.
2544 * string/Makefile (tests): Added test-ffs.
2545 * string/test-ffs.c: New file.
2547 Tue Aug 30 20:33:49 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2549 * misc/fstab.c (error): Return void.
2550 (fstabscan): Return int.
2552 * sysdeps/i386/ffs.c: Use & modifier in constraint for CNT.
2554 * misc/fstab.c (EFTYPE): If not defined by errno.h, define this to
2556 (fstabscan): Return void.
2558 Tue Aug 30 11:00:01 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
2560 * sysdeps/mach/hurd/__access.c (__access): Use a send right,
2561 not a send-once right, in the new auth protocol.
2562 * hurd/__setauth.c (_hurd_setauth): Likewise.
2563 * hurd/hurdsig.c (reauth_proc): Likewise.
2564 * hurd/dtable.c (reauth_dtable): Likewise.
2565 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
2567 Tue Aug 30 03:59:38 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2569 * socket/sys/socket.h (__SOCKADDR_ARG) [GCC>=2.6]: Use a typedef
2570 with the transparent_union attribute.
2572 * sysdeps/mach/hurd/__access.c: Use new authentication protocol:
2573 for each port, create a fresh receive right and pass send-once
2574 rights in the auth calls, then destroy the port.
2576 * sysdeps/mach/mips/syscall.S: New file.
2578 * stdio/Makefile (mpn-headers, mpn-sysdep): Change asm.h to
2581 * misc/Makefile (headers): Added fstab.h.
2582 (routines): Added fstab.
2583 * misc/fstab.c: New file.
2584 * misc/fstab.h: New file.
2586 * hurd/Makefile (routines): Changed hurdpath to hurdlookup.
2587 * hurd/hurdpath.c: Renamed to hurd/hurdlookup.c.
2588 * hurd/hurdlookup.c: Globally replace `pathtrans' with `lookup' and
2589 `path' with `file_name'.
2590 (__hurd_file_name_split): Don't bother skipping leading slashes.
2591 * hurd/hurd.h: Rename likewise in decls.
2592 * hurd/fchroot.c: Globally replace `pathtrans' with `lookup' and
2593 `path' with `file_name'.
2594 * hurd/hurdsig.c: Likewise.
2595 * hurd/hurdsock.c: Likewise.
2596 * hurd/hurdsyms.c: Likewise.
2597 * hurd/invoke-trans.c: Likewise.
2598 * sysdeps/mach/hurd/__access.c: Likewise.
2599 * sysdeps/mach/hurd/__chmod.c: Likewise.
2600 * sysdeps/mach/hurd/__chown.c: Likewise.
2601 * sysdeps/mach/hurd/__execve.c: Likewise.
2602 * sysdeps/mach/hurd/__link.c: Likewise.
2603 * sysdeps/mach/hurd/__lstat.c: Likewise.
2604 * sysdeps/mach/hurd/__mkdir.c: Likewise.
2605 * sysdeps/mach/hurd/__mknod.c: Likewise.
2606 * sysdeps/mach/hurd/__open.c: Likewise.
2607 * sysdeps/mach/hurd/__rmdir.c: Likewise.
2608 * sysdeps/mach/hurd/__readlink.c: Likewise.
2609 * sysdeps/mach/hurd/__stat.c: Likewise.
2610 * sysdeps/mach/hurd/__symlink.c: Likewise.
2611 * sysdeps/mach/hurd/__unlink.c: Likewise.
2612 * sysdeps/mach/hurd/__utimes.c: Likewise.
2613 * sysdeps/mach/hurd/bind.c: Likewise.
2614 * sysdeps/mach/hurd/chflags.c: Likewise.
2615 * sysdeps/mach/hurd/connect.c: Likewise.
2616 * sysdeps/mach/hurd/fchdir.c: Likewise.
2617 * sysdeps/mach/hurd/opendir.c: Likewise.
2618 * sysdeps/mach/hurd/sysd-stdio.c: Likewise.
2619 * sysdeps/mach/hurd/truncate.c: Likewise.
2620 * sysdeps/mach/hurd/rename.c: Likewise.
2621 * sysdeps/mach/hurd/getcwd.c: Likewise.
2622 * sysdeps/mach/hurd/chroot.c: Likewise.
2623 * sysdeps/mach/hurd/__chdir.c: Likewise.
2625 * hurd/__setauth.c (_hurd_setauth): Use new authentication
2626 protocol: for each port, create a fresh receive right and pass
2627 send-once rights in the auth calls, then destroy the port.
2628 * hurd/hurdsig.c (reauth_proc): Likewise.
2629 * hurd/dtable.c (reauth_dtable): Likewise.
2631 * hurd/hurdpath.c (__hurd_path_lookup_retry): Don't handle
2632 FS_RETRY_NONE (it's gone). Use new authentication protocol:
2633 create a fresh receive right and pass send-once rights in the auth
2634 calls, then destroy the port.
2636 Mon Aug 29 13:17:39 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
2638 * sysdeps/mach/hurd/__symlink.c (__symlink): Use new
2639 file_set_translator protocol.
2640 * sysdeps/mach/hurd/bind.c (bind): Likewise.
2641 * sysdeps/mach/hurd/__mknod.c (__mknod): Likewise.
2643 * sysdeps/mach/hurd/__pipe.c (__pipe): Use PF_LOCAL instead
2646 Fri Aug 26 01:21:09 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2648 * Makefile ($(objpfx)sysd-dirs): Use sed to remove # comments from
2651 Support for miscellaneous standalone boards (no OS), contributed
2652 by Joel Sherrill (jsherril@redstone-emh2.army.mil), On-Line
2653 Applications Research Corporation.
2654 * sysdeps/standalone: New directory.
2655 * sysdeps/standalone/standalone.h: New file.
2656 * sysdeps/standalone/stdio_lim.h: New file.
2657 * sysdeps/stub/strtsupp.c: New file.
2658 * sysdeps/standalone/filedesc.h: New file.
2659 * sysdeps/posix/{setenv,putenv}.c: Moved to sysdeps/generic.
2660 * sysdeps/unix/getenv.c: Moved to sysdeps/generic.
2661 * sysdeps/unix/morecore.c: Moved to sysdeps/generic.
2662 * sysdeps/posix/sysd-stdio.c: Moved to sysdeps/generic.
2663 * sysdeps/stub/errnos.h: Add ENFILE and EMFILE.
2664 * sysdeps/stub/errlist.c (_sys_errlist): Likewise.
2665 * sysdeps/stub/console.c: New file.
2666 * sysdeps/standalone/__open.c: New file.
2667 * sysdeps/standalone/__read.c: New file.
2668 * sysdeps/standalone/__write.c: New file.
2669 * sysdeps/standalone/__close.c: New file.
2670 * sysdeps/stub/brdinit.c: New file.
2671 * sysdeps/unix/__sbrk.c: Moved to sysdeps/generic.
2672 * sysdeps/standalone/__brk.c: New file.
2673 * sysdeps/standalone/Subdirs: New file
2674 * bare/Makefile: New file (and new directory).
2675 * sysdeps/i960/ffs.c: New file.
2676 * sysdeps/i960/Implies: New file.
2677 * configure.in (os=none): base_os=standalone
2679 Thu Aug 25 23:56:32 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2681 * sysdeps/stub/__sigret.c: Arg is not const.
2682 * signal/sigret.c: Likewise.
2684 Tue Aug 23 14:43:19 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2686 * socket/sys/socket.h (PF_FILE, AF_FILE): Removed (use LOCAL instead).
2687 (PF_XTP, PF_COIP, PF_CNT, PF_RTIP, PF_IPX, PF_SIP, PF_PIP): New
2689 (PF_MAX): Increased to 26.
2690 (pseudo_AF_XTP, AF_COIP, AF_CNT, pseudo_AF_RTIP, AF_IPX, AF_SIP,
2691 pseudo_AF_PIP): New macros.
2692 (MSG_EOR, MSG_TRUNC, MSG_CTRUNC, MSG_WAITALL, MSG_DONTWAIT,
2693 SO_REUSEPORT): New enum constants.
2695 * hurd/hurdsig.c (_hurd_internal_post_signal): If not preempted,
2696 set ACT before checking for SIGCONT. When continuing and
2697 ACT==handle, don't resume SS->thread; record that it is suspended
2698 and in handler-setup code, don't suspend it again.
2700 * sysdeps/mach/hurd/sys/param.h: Include <errno.h> (BSD does).
2702 * sysdeps/mach/hurd/__fork.c: When unchaining old sigstates, check
2703 for SS being head of chain.
2705 Mon Aug 22 00:29:02 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2707 * time/{asia,australasia,europe,northamerica}: New data from ADO.
2709 * hurd/hurdsig.c (abort_rpcs): After destroying MSGING_PORT,
2710 change the return value register in STATE to EINTR.
2711 * sysdeps/mach/mips/thread_state.h (SYSRETURN): New macro.
2712 * sysdeps/mach/i386/thread_state.h (SYSRETURN): New macro.
2714 * hurd/hurdsig.c (default_sigaction): New function.
2715 (_hurd_thread_sigstate): Use it to initialize SS->actions.
2716 Initialize rest of new sigstate by hand, don't just bzero it.
2718 * hurd/hurdsig.c (_hurd_internal_post_signal): Initialize
2719 THREAD_STATE.set to zero.
2721 * posix/execl.c: Use ARG instead of PATH in va_start.
2723 * sysdeps/mach/hurd/__fork.c: In child fork, unchain stale
2724 structures from _hurd_sigstates first, and only free them after
2725 other processing is complete.
2727 * hurd/hurdpath.c (__hurd_path_lookup_retry): For malformed number
2728 in magic "fd/N", return ENOENT instead of treating it as bogus
2731 * sysdeps/mach/hurd/__chdir.c: After __path_lookup on arg, use
2732 __hurd_path_lookup of empty file name on resultant port to check
2733 that it's a directory.
2734 * sysdeps/mach/hurd/chroot.c: Likewise.
2735 * sysdeps/mach/hurd/fchdir.c: Use __hurd_path_lookup of empty file
2736 name on FD port to check that it's a directory and acquire a
2737 reference at the same time.
2738 * hurd/fchroot.c: Likewise.
2740 * hurd/hurdpid.c (init_pids): Add gratuitous self reference to
2743 * hurd/hurdpath.c: Include <hurd/term.h> for cttyid opening rpc.
2744 (__hurd_path_lookup_retry): Fixed typo.
2746 * sysdeps/mach/hurd/i386/__sigret.c: Push state onto the user's
2747 stack, switch to it, pop and return.
2749 Major rewrite of Hurd signal delivery.
2750 * hurd/hurd/signal.h (struct hurd_sigstate): New member `context'.
2751 * sysdeps/mach/hurd/i386/trampoline.c: Include "thread_state.h"
2752 instead of <mach/thread_status.h>.
2753 (struct mach_msg_trap_args): New type.
2754 (trampoline): Function removed.
2755 (_hurd_setup_sighandler): Take struct hurd_sigstate * arg instead
2756 of FLAGS and SIGALTSTACK args; take new flag arg RPC_WAIT; use
2757 struct machine_thread_all_state * for STATE arg. New declared
2758 labels `trampoline', `rpc_wait_trampoline' mark asm code at end of
2759 function (after return). Add another struct sigcontext * to
2760 STACKFRAME after the first one, for the arg to __sigreturn. If
2761 SS->context is set, fill registers in SCP from that instead of
2762 STATE, and reset SS->INTR_PORT from it. Use memcpy to copy from
2763 STATE into SCP; the structures are congruent. If RPC_WAIT is set,
2764 set up to use rpc_wait_trampoline and frob args to mach_msg_trap
2765 syscall in progress so that it will retry the receive operation
2767 {rpc_wait_trampoline, trampoline}: New trampoline code.
2768 (_hurd_rcv_interrupted_p): New function.
2769 * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
2770 * hurd/hurdsig.c (write_corefile): Take new arg SIGERROR. Use
2771 _hurdsig_getenv instead of getenv. Use dir_mkfile to create an
2772 unlinked node for the core file; then use dir_link to name it,
2773 only if core_dump_task succeeded.
2774 (post_reply): New function.
2775 (abort_thread): New function.
2776 (interrupted_reply_port_location): New function.
2777 (interrupted_reply_port): Function removed (replaced by above).
2778 (abort_all_rpcs): Take struct machine_thread_all_state * for STATE.
2779 (abort_rpcs): Likewise.
2780 Return int, nonzero iff interrupt_operation RPC was done. Take
2781 args for reply port and its port type; call abort_thread instead
2782 of doing thread_abort and thread_get_state. Call
2783 _hurdsig_rcv_interrupted_p instead of _hurd_thread_state_msging_p.
2784 Use __interrupt_operation mig stub instead of manual packing. If
2785 we destroy the msging port, and it is the thread's mig reply port,
2786 clear its reply port slot. Fix inverted SA_RESTART test.
2787 (_hurd_internal_post_signal): Take new arg SIGERROR.
2788 Remove `cont' from ACT enum; SIGCONT processing is independent of
2789 handling. Removed local function `check_pending'; add `reply'.
2790 Use mask macro STOPSIGS instead of alternation to check for stop
2791 signals. Process SIGCONT and do continuation before examining the
2792 handler. Use SS->pending_data instead of SS->sigcodes. When
2793 dying, don't lock _hurd_siglock around __proc_dostop call. When
2794 dying, reply immediately after stopping user threads. When
2795 handling, notice return from abort_rpcs and pass it to
2796 _hurd_setup_sighandler; also pass SS instead of its components.
2797 Set SCP->sc_error from SIGERROR; clear SS->intr_port after saving
2798 it in SCP->sc_intr_port. For pending checks, use macro PENDING
2799 and goto pending if returns true.
2800 (_S_sig_post): Eliminate unnecessary variable WIN; pass SIGERROR
2801 value of zero to _hurd_internal_post_signal.
2802 (_hurdsig_getenv): New function.
2803 * sysdeps/mach/hurd/i386/__sigret.c (sp): New global register
2805 (__sigreturn): Arg is not const.
2806 After restoring SCP->sc_mask, check for pending signals (newly
2807 unblocked); if any, set SS->context to SCP, clear SS->intr_port,
2808 and send sig_post to the signal thread to deliver the pending
2809 signals. Point SP directly at &SCP->sc_gs and used popa;iret to
2810 restore. (This does not actually work; iret is unhelpful.)
2811 * sysdeps/mach/hurd/mips/__sigret.c (__sigreturn): Arg is not
2812 const. After restoring SCP->sc_mask, check for pending signals
2813 (newly unblocked); if any, set SS->context to SCP, clear
2814 SS->intr_port, and send sig_post to the signal thread to deliver
2815 the pending signals. Don't write $1 value into the user stack.
2816 Instead, write it into the word just past SCP->sc_pc; then point
2817 $1 at SCP->sc_pc and use `op_sigreturn' pseudo-instruction to
2818 restore the PC and $1 from that.
2820 Fri Aug 19 15:39:54 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2822 * configure.in (machine): Grok i586 -> i386/i586.
2823 * sysdeps/i386/pentium: Directory renamed to sysdeps/i386/i586.
2825 * hurd/hurd.h (_hurd_pids_changed_stamp, _hurd_pids_changed_sync):
2827 * hurd/hurdpid.c (_S_proc_newids): Last thing, increment
2828 _hurd_pids_changed_stamp and broadcast on _hurd_pids_changed_sync.
2829 * sysdeps/mach/hurd/__setpgrp.c: After proc_setpgrp succeeds and
2830 PID is ourself, wait on _hurd_pids_changed_sync until
2831 _hurd_pids_changed_stamp increases from the value before the RPC.
2832 * sysdeps/mach/hurd/__setsid.c: After proc_setsid succeeds, wait
2833 on _hurd_pids_changed_sync until _hurd_pids_changed_stamp
2834 increases from the value before the RPC.
2836 * posix/sys/wait.h [GCC>=2.6] (__WAIT_STATUS): Define this with
2837 typedef as a union with the new (GCC 2.6.1) `transparent_union'
2840 * stdio/printf_fp.c (MPNSIZE): New macro, computed from DBL_MAX_EXP.
2841 (MPN_VAR): Use that for size of bignums.
2843 * sysdeps/mach/hurd/__kill.c: For pgrp, ignore ESRCH error from
2844 kill_pid of individual pids, unless from all of them.
2845 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2847 Fri Aug 19 00:54:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2849 * configure.in (INSTALL): Quote this shell goop from m4.
2851 * sysdeps/stub/start.c (errno, __environ): Define these variables.
2853 * sysdeps/stub/errnos.h (ENOMEM, EACCES): New macros.
2854 * sysdeps/stub/errlist.c (_sys_errlist): Add strings for all
2855 macros defined in stub/errnos.h.
2856 (_sys_nerr): Use value computed from sizeof (_sys_errlist).
2858 Wed Aug 17 15:32:39 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2860 * hurd/hurdmsg.c (_S_io_select_done): Take poly arg for notify
2863 * mach/mach_init.h (vm_page_size): Remove macro defn.
2865 * hurd/Makefile (distribute): Added STATUS.
2867 * sysdeps/mach/thread_state.h: Include <string.h> and
2868 <mach/mach_interface.h>.
2870 * sysdeps/mach/hurd/__select.c: Pass port-type arg to io_select.
2872 * sysdeps/mach/hurd/__fork.c: Include "hurdmalloc.h", so we use
2875 * sysdeps/mach/hurd/__select.c (SELECT_DONE_MSGID): Correct value
2877 (__select): Don't set PORT until just before sending io_select calls.
2878 Pass proper send-size for io_select_done reply message. Clear the
2879 reply port slot in io_select_done reply message header.
2881 * sysdeps/mach/hurd/__kill.c: Rename parameter to ARG_SIG, make
2882 SIG a local variable initialized to that (this to work around a
2884 Initialize PIDS and NPIDS properly for proc_getpgrppids call.
2886 * signal/signal.h (__sigreturn, sigreturn): Arg is not const.
2888 * hurd/hurdpath.c (__hurd_path_lookup_retry): For REAUTH or NORMAL
2889 with empty retryname, treat like NONE (which is now obsolete)
2890 after reauthentication. For magic "tty", use new
2891 termctty_open_terminal RPC on cttyid port.
2893 Tue Aug 16 01:58:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2895 * sysdeps/mach/hurd/__kill.c (kill_pid): Make non-inline. Treat
2896 null msgport like EPERM return from sig_post.
2897 * hurd/hurdkill.c (_hurd_sig_post): Treat null msgport like EPERM.
2899 * sysdeps/mach/thread_state.h (machine_get_state,
2900 machine_get_basic_state): Initialize count arg before calling
2903 * hurd/hurdpath.c (__hurd_path_lookup_retry): Initialize ERR to zero.
2905 * hurd/hurdpath.c (__hurd_path_lookup_retry): Grok magic "tty".
2907 * hurd/hurd/signal.h (struct hurd_sigstate): Replace `sigcodes' with
2909 (_hurd_raise_signal, _hurd_setup_sighandler): Update prototypes.
2910 (_hurd_thread_state_msging_p): Don't declare.
2911 (_hurdsig_rcv_interrupted_p): Declare this instead.
2912 (HURD_EINTR_RPC): Invert sense of restart test.
2914 * hurd/hurdrlimit.c (_hurd_rlimits): Add braces to initializer.
2916 * hurd/catch-exc.c: Unlock _hurd_siglock when done with it. Use
2917 __spin_lock_locked on `held' member instead of __mutex_lock_locked.
2919 * sysdeps/mach/thread_state.h: New file.
2920 * sysdeps/mach/i386/thread_state.h: Don't #include
2921 <mach/thread_status.h>. Add #include_next <thread_state.h> at end.
2922 * sysdeps/mach/mips/thread_state.h: Likewise.
2924 * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Lay out
2925 corresponding to i386_thread_state and i386_float_state.
2926 * sysdeps/mach/hurd/mips/sigcontext.h (sc_mips_thread_state,
2927 sc_mips_exc_state, sc_mips_float_state): New macros, marking
2928 members that correspond to thread_state.h structs.
2930 Mon Aug 15 17:21:20 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2932 * Rules [cross-compiling=yes] (tests): Depend on the binaries, not
2935 * Makerules: Replace uses of HOST_CC with BUILD_CC and
2936 native-CFLAGS with BUILD_CFLAGS.
2938 * sysdeps/unix/Makefile (mk-local_lim, make-ioctls): Replace uses
2939 of CC with BUILD_CC and native-CFLAGS with BUILD_CFLAGS.
2940 * sysdeps/unix/sysv/sysv4/solaris2/Makefile: Replace uses of
2941 HOST_CC with BUILD_CC and native-CFLAGS with BUILD_CFLAGS.
2942 * sysdeps/posix/Makefile: Likewise.
2944 * Makeconfig (+cc_version): Variable and associated code removed.
2945 (HOST_CC): Use BUILD_CC instead; all uses changed.
2946 (cross-compiling): Set to no if not the case.
2948 * sysdeps/m68k/fpu/__math.h: Replace all uses of __const with
2951 * Makerules (distinfo-vars): Remove $@.new first thing. Write
2952 elided-routines instead of sysdep_routines. After writing
2953 variables, append to sources from $(elided-routines).
2954 * sysdeps/vax/Makefile (elided-routines): New variable (append to
2956 (aux, routines): Don't set these.
2957 (sysdep_routines): Append things here instead.
2958 * sysdeps/generic/Makefile (elided-routines): New variable (append
2960 (aux): Don't set this.
2961 * sysdeps/generic/Makefile (routines): Don't set this.
2962 (sysdep_routines): Append exp__E and log__L here instead.
2964 * time/test_time.c (main): Set TBUF.tm_isdst to -1 before calling
2967 * stdlib/stdlib.h (atof, atoi, atol, random, srandom, setstate,
2968 initstate, mblen): Never define as macros.
2969 [__OPTIMZE__ && __GNUC__ >= 2]: Define those functions as extern
2972 * hurd/hurdpath.c (__hurd_path_lookup_retry): For magic "fd/%u",
2973 lose on random chars after number; for / after number, retry
2976 * hurd/hurdpath.c (pathtrans_error): New function; filters errors
2977 from dir_pathtrans: EOPNOTSUPP and MIG_BAD_ID become ENOTDIR.
2978 (__hurd_path_lookup, __hurd_path_lookup_retry): Call it.
2980 Thu Aug 11 11:59:33 1994 Noel Cragg (noel@churchy.gnu.ai.mit.edu)
2982 * time/mktime.c (_mktime_internal): Add code to normalize value of
2983 TM_ISDST to -1, 0, or 1 so code doesn't loop forever.
2985 Thu Aug 11 02:26:37 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2987 * resolv/Makefile (subdir): Set to resolv, not res.
2989 * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Pass ERR to
2992 * sysdeps/mach/i386/thread_state.h (struct machine_thread_all_state):
2993 Add new member `fpu'.
2995 Wed Aug 10 23:39:49 1994 Karl Heuer <kwzh@hal.gnu.ai.mit.edu>
2997 * malloc/mcheck.c (mcheck): Remove obsolete extern declaration.
2999 * malloc/mcheck.c (flood): Add an arg.
3000 (freehook, mallochook, reallochook): Use different flood bytes to
3001 distinguish freed space from uninitialized allocated space.
3003 * malloc/mtrace.c (mtrace): Guard against being called twice.
3004 (muntrace): New function, to turn off tracing.
3005 * malloc/malloc.h: Declare it.
3007 Wed Aug 10 02:47:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3009 * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Renamed
3010 member `sc_err' to `sc_error'.
3012 * hurd/hurd-raise.c: Take new arg SIGERROR. Set
3013 SS->pending_data[SIGNO] from SIGCODE and SIGERROR instead of
3014 setting SS->sigcodes[SIGNO].
3016 * Makeconfig (+includes): Use text manipulation to avoid
3017 conditional for $(..). Append $(last-includes).
3018 * sysdeps/mach/hurd/Makefile (last-includes): Append
3019 -I.../libthreads to this.
3020 (includes): Not to this.
3022 * hurd/hurd/fd.h (_hurd_fd_error): Pass ERR to _hurd_raise_signal.
3024 * stdlib/stdlib.h [__OPTIMIZE__] (cfree, rand, srand, random,
3025 srandom, initstate, setstate): Macros removed.
3027 * malloc/mcheck.c (reallochook): Fixed typo.
3028 (mabort) [! __GNU_LIBRARY__]: Use fprintf and abort instead of
3031 * hurd/Makefile (sig): Remove msging-p; that function will go in
3033 * sysdeps/stub/msging-p.c: File removed.
3034 * sysdeps/mach/hurd/mips/msging-p.c: File removed.
3035 * sysdeps/mach/hurd/i386/msging-p.c: File removed.
3037 Tue Aug 9 19:20:29 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3039 * hurd/catch-exc.c: Get error code from _hurd_exception2signal and
3040 pass it to _hurd_internal_post_signal. Search for SS manually
3041 rather than using _hurd_thread_sigstate, to avoid locks.
3043 * sysdeps/mach/hurd/mips/msging-p.c: Fetch port argument from
3044 register $8 (t0) instead of stack. Change type of STATE arg to
3045 `struct machine_thread_all_state *'.
3047 * inet/inet_netof.c: Incorporated from BSD 4.4-Lite.
3048 * inet/inet_net.c: Incorporated from BSD 4.4-Lite.
3050 Tue Aug 9 18:28:40 1994 Karl Heuer <kwzh@hal.gnu.ai.mit.edu>
3052 * malloc/mtrace.c (tr_mallochook, tr_reallochook): Don't assume
3053 %lx format matches size_t arg.
3054 * malloc/mtrace.c: Enable file- and line-number tracing.
3055 * malloc/mtrace.awk: Postprocess that trace information.
3057 * malloc/mcheck.c (flood): New function.
3058 (freehook, mallochook, reallochook): Initialize new space and
3059 freed space to non-zero garbage, to help find code that makes
3060 unwarranted assumptions.
3062 Mon Aug 8 01:20:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3064 * sysdeps/mach/hurd/mips/exc2signal.c (_hurd_exception2signal): Take
3065 new arg `int *error'; set it.
3066 * sysdeps/mach/hurd/i386/exc2signal.c: Likewise.
3067 * sysdeps/stub/exc2signal.c: Likewise.
3068 * hurd/hurd/signal.h (_hurd_exception2signal): Take new arg
3070 (_hurd_internal_post_signal): Take new arg `int error'.
3072 * res: Directory renamed to resolv.
3073 * sysdeps/unix/inet/Subdirs: Change res to resolv.
3077 * sysdeps/sparc/divrem.m4 (DEVELOP_QUOTIENT_BITS): Use ** instead of
3078 ^ for exponentiation. Pinard says it is more portable.
3080 * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Added
3082 * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Move
3083 sc_err to front machine-independent section; change its comment.
3085 * sysdeps/stub/thread_state.h (struct machine_thread_all_state): New
3087 * sysdeps/mach/i386/thread_state.h: Likewise.
3088 * sysdeps/mach/mips/thread_state.h: Likewise.
3090 * sysdeps/mach/i386/Implies: File removed; it was superfluous.
3092 * sysdeps/sparc/divrem.m4 (Lgot_result): Add more quotes in ifelse.
3094 * configure.in (fpu_dirs): Fixed typo.
3096 Sun Aug 7 01:13:04 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3098 * inet/inet_lnaof.c: Incorporated from BSD 4.4-Lite.
3099 * inet/inet_mkadr.c: Incorporated from BSD 4.4-Lite.
3100 * inet/inet_addr.c: Incorporated from BSD 4.4-Lite.
3101 * res/Makefile (headers): Use only arpa/nameser.h, not arpa/*.h.
3102 * res/arpa/inet.h: Moved to inet/arpa/inet.h.
3103 * inet/arpa/inet.h: Incorporated from BSD 4.4-Lite.
3105 * misc/init-misc.c: New file.
3106 * misc/Makefile (aux): Added init-misc.
3108 * Makeconfig (localtime-file): Use $(sysconfdir) instead of
3111 * Makerules (install-bin-nosubdir): Use $(install-bin) instead of
3113 (install-sbin-nosubdir): New target.
3114 (install-no-libc.a-nosubdir): Depend on that.
3116 * configure.in ($nfp check): Iterate through $mach and use all
3117 fpu/ dirs that exist.
3119 Wed Aug 3 02:46:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3121 * sysdeps/mach/hurd/mips/sigcontext.h: Rearranged structure so
3122 machine-dependent portion is laid out like `struct mips_thread_state;
3123 struct mips_exc_state; struct mips_float_state;'.
3127 * sysdeps/mach/hurd/mips/__sigret.c: Compare *reply_port to
3128 MACH_PORT_NULL, not implicit zero.
3129 (restore_gpr): Use N-1 as subscript into sc_gpr (sc_gpr[0] => $1).
3130 Before general regs, restore from sc_mdlo and sc_mdhi. Don't
3131 treat sp, fp specially; use restore_gpr for them too. For final
3132 return, store user $1 value beyond top of user stack ahead of
3133 time; then use $1 to hold the user PC, and restore it from the
3134 stack in the delay slot.
3136 Tue Aug 2 21:03:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3138 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
3139 Copy TS to SCP all at once.
3140 * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): sc_gpr
3141 has 31 elts; sc_gpr, sc_pc, sc_mdlo, sc_mdhi are arranged in that
3142 order to mimic struct mips_thread_state.
3144 * Make-dist (all-headers): Instead of removing rpcsvc/%, use
3145 $(wildcard) to remove all headers that don't exist at top level,
3146 but preserve top-level $(headers).
3148 * Make-dist (sysdep_dirs): Avoid directories called RCS.
3149 (%/configure): Pass -f to mv.
3151 * sysdeps/mips/setjmp.S [__sgi__]: Use `fp' instead of `$fp'.
3153 Mon Aug 1 20:12:23 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3155 * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Add
3156 members sc_mdlo, sc_mdhi.
3157 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
3160 Sun Jul 31 14:21:16 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3162 * time/mktime.c: Remove errant comment end sequence.
3164 * termios/sys/ttydefaults.h: Incorporated from BSD 4.4-Lite.
3165 * sysdeps/vax/DEFS.h: Incorporated from BSD 4.4-Lite.
3166 * sysdeps/unix/bsd/sys/reboot.h: Incorporated from BSD 4.4-Lite.
3167 * sysdeps/unix/bsd/bsd4.4/errnos.h: Updated from 4.4-Lite sys/errno.h.
3168 [__USE_BSD] (EAUTH, ENEEDAUTH, ELAST): New macros.
3169 * sysdeps/ieee754/support.c: Incorporated from BSD 4.4-Lite.
3170 * sysdeps/ieee754/cbrt.c: Incorporated from BSD 4.4-Lite.
3171 * sysdeps/generic/trig.h: Incorporated from BSD 4.4-Lite.
3172 * sysdeps/generic/tanh.c: Incorporated from BSD 4.4-Lite.
3173 * sysdeps/generic/tan.c: Incorporated from BSD 4.4-Lite.
3174 * sysdeps/generic/sinh.c: Incorporated from BSD 4.4-Lite.
3175 * sysdeps/generic/sincos.c: Incorporated from BSD 4.4-Lite.
3176 * sysdeps/generic/pow.c: Incorporated from BSD 4.4-Lite.
3177 * sysdeps/generic/mathimpl.h: Incorporated from BSD 4.4-Lite.
3178 Add back __izing #define's, except for exp__E and log__L, which
3179 have been renamed with __s in 4.4-Lite.
3180 * sysdeps/generic/log__L.c: Incorporated from BSD 4.4-Lite.
3181 * sysdeps/generic/log1p.c: Incorporated from BSD 4.4-Lite.
3182 * sysdeps/generic/log.c: Incorporated from BSD 4.4-Lite.
3183 * sysdeps/generic/fmod.c: Incorporated from BSD 4.4-Lite.
3184 * sysdeps/generic/exp__E.c: Incorporated from BSD 4.4-Lite.
3185 * sysdeps/generic/exp.c: Incorporated from BSD 4.4-Lite.
3186 * sysdeps/generic/cosh.c: Incorporated from BSD 4.4-Lite.
3187 * sysdeps/generic/atanh.c: Incorporated from BSD 4.4-Lite.
3188 * sysdeps/generic/atan2.c: Incorporated from BSD 4.4-Lite.
3189 * sysdeps/generic/asinh.c: Incorporated from BSD 4.4-Lite.
3190 * sysdeps/generic/asincos.c: Incorporated from BSD 4.4-Lite.
3191 * misc/getusersh.c: Incorporated from BSD 4.4-Lite.
3192 (initshells): Reapply fix of 16 Nov 1992.
3193 * sysdeps/generic/acosh.c: Incorporated from BSD 4.4-Lite.
3194 * sysdeps/generic/__expm1.c: Incorporated from BSD 4.4-Lite.
3195 * misc/ttyslot.c: Incorporated from BSD 4.4-Lite.
3196 * misc/ttyent.h: Incorporated from BSD 4.4-Lite.
3197 * misc/syslog.c: Incorporated from BSD 4.4-Lite.
3198 * misc/paths.h: Incorporated from BSD 4.4-Lite.
3199 * misc/getttyent.c: Incorporated from BSD 4.4-Lite.
3200 * misc/sys/syslog.h: Incorporated from BSD 4.4-Lite.
3201 Don't include <machine/ansi>; define _BSD_VA_LIST_ to __gnuc_va_list.
3202 * inet/rexec.c: Incorporated from BSD 4.4-Lite.
3203 * inet/rcmd.c: Incorporated from BSD 4.4-Lite.
3204 (rcmd): Reapply select max fd fix of 3 Jun 1994.
3205 * inet/pathnames.h: File removed.
3206 * inet/inet_ntoa.c: Incorporated from BSD 4.4-Lite.
3207 * inet/getsrvbypt.c: Incorporated from BSD 4.4-Lite.
3208 * inet/getsrvbynm.c: Incorporated from BSD 4.4-Lite.
3209 * inet/getservent.c: Incorporated from BSD 4.4-Lite.
3210 * inet/getprtname.c: Incorporated from BSD 4.4-Lite.
3211 * inet/getprtent.c: Incorporated from BSD 4.4-Lite.
3212 * inet/getproto.c: Incorporated from BSD 4.4-Lite.
3213 * inet/protocols/timed.h: Incorporated from BSD 4.4-Lite.
3214 * inet/protocols/talkd.h: Incorporated from BSD 4.4-Lite.
3215 * inet/protocols/rwhod.h: Incorporated from BSD 4.4-Lite.
3216 * inet/protocols/routed.h: Incorporated from BSD 4.4-Lite.
3217 * inet/arpa/tftp.h: Incorporated from BSD 4.4-Lite.
3218 * inet/arpa/telnet.h: Incorporated from BSD 4.4-Lite.
3219 * inet/arpa/ftp.h: Incorporated from BSD 4.4-Lite.
3221 Fri Jul 29 01:50:37 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3225 * res/Makefile (routines): Add missing backslash.
3227 * sysdeps/mach/hurd/mips/__sigret.c: Rename variable AT (which is
3228 the register's name) to SCPREG. Fix some SCP references in
3229 register loads to use SCPREG instead. Load SCPREG->sc_pc into $24
3230 and jump to it, restoring $at in the delay slot. This still
3231 leaves $24 clobbered.
3233 * sysdeps/mach/hurd/mips/sigcontext.h: Use `unsigned int'
3234 consistently for port names.
3236 * sysdeps/mach/hurd/mips/trampoline.c: Don't set up args on the
3237 stack; pass them in registers.
3239 * Makefile (%/configure, sysd-dirs, munch-init.c): Pass -f to mv.
3241 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Use the
3242 __attribute__ defn for GCC>=2.7, not >=2.6. Use the keyword defn
3243 only for GCC<2.5. Use __volatile__ and __const__ instead of
3244 noreturn and const for namespace safety.
3246 * sysdeps/mach/hurd/__readlink.c: If BUF is null, return the size
3249 Thu Jul 28 17:17:11 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3251 * res/netdb.h: Declare h_errno.
3253 * res: New directory, for all code incoporated from BIND.
3254 * inet/arpa/inet.h, inet/arpa/resolv.h: Moved to res/arpa.
3255 * inet/sys/bitypes.h: Moved to res/sys.
3256 * inet/gethstnamad.c: Renamed to res/gethnamaddr.c.
3257 * inet/getnetbyad.c: Renamed to res/getnetbyaddr.c.
3258 * inet/getnetbynm.c: Renamed to res/getnetbyname.c.
3259 * inet/res_mkqry.c: Renamed to res/res_mkquery.c.
3260 * inet/Makefile (headers): Removed netdb.h, resolv.h, and
3262 (routines): Removed res_comp res_debug res_init res_mkqry res_query
3263 res_send gethstnmad sethostent.
3264 (aux, distribute): Variables removed.
3265 * res/getnetnamadr.c, res/nsap_addr.c: New files.
3266 * All .c and .h in res/ updated from BIND-4.9.3-BETA9.
3267 * res/Makefile: New file.
3268 * sysdeps/unix/inet/Subdirs: Added res.
3270 * Makerules: Replace all uses of `.dep' suffix with `.d' suffix.
3271 (+make-deps): Replace `.dtm' suffix with `.T' suffix.
3273 Wed Jul 27 06:13:30 1994 Noel Cragg (noel@churchy.gnu.ai.mit.edu)
3275 * time/mktime.c: Add code to support tm_isdst flag in struct tm.
3276 Fixed bug with handling of DST sections.
3278 Mon Jul 25 17:17:28 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3280 * sysdeps/sparc/divrem.m4 (Lgot_result) [S=true]: Only test SIGN
3281 and negate for [OP=div].
3283 * socket/sys/socket.h (__SOCKADDR_ARG): New macro; for GCC 2.6 and
3284 later, a funky union similar to __WAIT_STATUS in <sys/wait.h>.
3285 (bind, getsockname, connect, getpeername, sendto, recvfrom,
3286 accept): Use __SOCKADDR_ARG in place of `struct sockaddr *' in
3289 * posix/glob/configure.bat: New file.
3290 * posix/Makefile (glob.tar): Add glob/configure.bat.
3292 * sysdeps/unix/opendir.c: Fail with ENOENT when passed "".
3293 Check STATBUF and fail with ENOTDIR if it's not a directory.
3295 Mon Jul 25 15:44:18 1994 Noel Cragg (noel@churchy.gnu.ai.mit.edu)
3297 * time/mktime.c: Fix range-checking bug in NORMALIZE macro.
3299 Fri Jul 22 02:42:44 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3301 * sysdeps/unix/readdir.c: Search for NUL character to limit
3302 d_namlen. Some systems return very bogus values.
3304 * sysdeps/unix/sysv/sysv4/i386/sysdep.h (PSEUDO): Remove ret at end.
3306 * mach/Makefile (mach-shortcuts): Filter out device_writev_request.
3308 * limits.h (_LIBC_LIMITS_H_): Don't define if already defined.
3309 [__GNUC__ < 2]: Only protect this section from multiple inclusion.
3311 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3312 Declare SIGSP volatile.
3314 * hurd/hurdinit.c (_hurd_setproc): Fixed arg in
3315 _hurd_pgrp_changed_hook decl.
3317 * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): New function.
3318 (HURD_EINTR_RPC): Use it instead of _hurd_self_sigstate followed by
3319 __mutex_unlock; this thread might already hold the lock.
3321 Wed Jul 20 18:53:54 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
3323 * hurd/fd-read.c (_hurd_fd_read): Test for EBACKGROUND in
3324 do loop was reversed.
3326 * hurd/hurdpath.c (__hurd_path_lookup): Skip over initial slashes
3327 before calling __dir_pathtrans.
3329 Tue Jul 19 15:28:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3331 * mach/Makefile (user-interfaces): Add mach/mach4.
3332 (mach-shortcuts): Match all syscall_% again; the missing ones are in
3335 * mach/Machrules (%.ir): Match SimpleRoutine as well as Routine
3338 * sysdeps/mach/hurd/Makefile ($(hurd)/errlist.c): Use -f flag to mv.
3340 Sat Jul 16 00:42:30 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3342 * Makerules [install]: Rewrite this rule to use install-bin.
3343 [install-sbin]: New rule parallel to that one, installs in $(sbindir).
3345 * time/Makefile (install-sbin): Set this instead of install.
3346 * sunrpc/Makefile (install-others): Use $(sysconfdir)/rpc instead
3348 (install-bin): Set this instead of install; set it to just rpocgen.
3349 (install-sbin): Put rpcinfo and portmap here instead.
3350 ($(sysconfdir)/rpc): Rule renamed from $(etcdir)/rpc.
3351 (defines): Rename it in _PATH_RPC defn here too.
3353 * posix/Makefile (install-bin): Set this instead of install.
3355 * Makeconfig (datadir): Default to $(prefix)/share, not $(prefix)/lib.
3356 (sbindir): New variable.
3357 (sysconfdir): Variable renamed from etcdir.
3359 * sysdeps/unix/bsd/sun/signum.h: New file; no SIGINFO, SIGLOST is 29.
3361 * sysdeps/unix/sysv/sco3.2.4/uname.S: New file from Scott Bartram.
3363 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Include alloca.h.
3365 * configure.in (INSTALL): If it is $srcdir/install.sh after
3366 AC_PROG_INSTALL, reset it to '$(..)./install.sh'.
3368 * sysdeps/mach/hurd/__ioctl.c (io2mach_type): Move macro defn before
3370 (__ioctl): Fix swapped args to __sigismember; remove unused variable.
3372 * sysdeps/mach/hurd/send.c: Fix portsPoly arg to __socket_send.
3373 * sysdeps/mach/hurd/sendto.c: Likewise.
3375 * sysdeps/mach/hurd/recv.c: Pass &BUFP, not BUFP.
3376 * sysdeps/mach/hurd/recvfrom.c: Likewise.
3378 * sysdeps/mach/hurd/connect.c: Include <hurd/ifsock.h>.
3380 * sysdeps/mips/dec/bytesex.h: New file.
3381 * sysdeps/mips/p40/bytesex.h: New file.
3383 Fri Jul 15 23:12:06 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3385 * posix/sys/types.h (u_quad, quad): Renamed to &_t.
3386 * posix/gnu/types.h [__GNUC__] (__u_quad_t, __quad_t, __qaddr_t):
3387 New typedefs, using long long int and derivatives.
3388 [! __GNUC__] (__u_quad, __quad): Renamed to &_t.
3389 (__fsid_t): Make this always be __u_quad_t.
3391 * time/sys/time.h (struct timespec): New type.
3392 (TIMEVAL_TO_TIMEPSEC, TIMESPEC_TO_TIMEVAL): New macros.
3394 Thu Jul 14 15:43:39 1994 Brendan Kehoe (brendan@zen.org)
3396 * sysdeps/unix/sysv/sysv4/sysinfo.S: New file.
3397 * sysdeps/unix/sysv/sysv4/Dist: Add sysinfo.S.
3398 * sysdeps/unix/sysv/sysv4/Makefile: Add sysinfo to sysdep_routines
3399 if we're inside misc.
3400 * sysdeps/unix/sysv/sysv4/sethostnam.c: New file.
3401 * sysdeps/unix/sysv/sysv4/__gethstnm.c: New file.
3403 * sysdeps/unix/sysv/sysv4/solaris2/fsync.S: New file.
3405 Tue Jul 12 00:57:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3407 * mach/Makefile (mach-shortcuts): Only match known Mach
3408 subsystems: vm, task, mach_port, and thread.
3410 Mon Jul 11 20:18:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3412 * hurd/intr-rpc.defs, hurd/intr-rpc.awk: New files.
3413 * hurd/Makefile (user-MIGFLAGS): Add -imacros intr-rpc.defs.
3414 (transform-user-stub): New canned sequence.
3415 (transform-user-stub-output): New variable.
3416 Make the .ustamp files depend on intr-rpc.awk.
3418 * mach/Machrules (%.ir): Cull the RPC names from the preceding
3419 comment rather than the definition, so we don't see any userprefix.
3420 (transform-user-stub-output): New variable.
3421 (%.ustamp: %.defs): Invoke $(transform-user-stub) inside for loop.
3422 Use $(transform-user-stub-output) in place of `tmp' in arg to
3425 * mach/Makefile [! mach-shortcuts] (user-interfaces): Also filter
3426 out device/device_request.
3428 Mon Jul 11 17:50:14 1994 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu)
3430 * sysdeps/unix/sysv/sysv4/Makefile: Put the sys-sig.S stuff in
3431 here, rather than in .../sysv4/solaris2/sparc/Makefile.
3432 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile: Removed the
3435 Sun Jul 10 19:04:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3437 * sysdeps/mach/hurd/bind.c: Call __hurd_invoke_translator.
3439 * hurd/hurd.h (__hurd_invoke_translator, hurd_invoke_translator):
3441 * hurd/Makefile (routines): Add invoke-trans.
3442 * hurd/invoke-trans.c (__hurd_invoke_translator): New file.
3443 * hurd/hurdsyms.c (hurd_invoke_translator): New alias.
3445 * hurd/hurdpath.c (__hurd_path_lookup_retry): New function.
3446 * hurd/hurdsyms.c (hurd_path_lookup_retry: New alias.
3447 * hurd/hurd.h (__hurd_path_lookup_retry, hurd_path_lookup_retry):
3450 * hurd/hurd/fd.h (_hurd_fd_error_signal): Return SIGLOST for
3453 * time/strftime.c: Make %j value 1-origin instead of 0-origin.
3455 Sat Jul 9 02:31:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3457 * gnu-stabs.h (__SYMBOL_PREFIX): New macro, based on NO_UNDERSCORES.
3458 Use it in all macros instead of explicit leading underscores.
3459 Removed all [! __STDC__] definitions.
3461 * sysdeps/mach/hurd/mips/trampoline.c: New file.
3462 * sysdeps/mach/hurd/mips/sigcontext.h: New file.
3463 * sysdeps/mach/hurd/mips/longjmp-ts.c: New file.
3464 * sysdeps/mach/hurd/mips/msging-p.c: New file.
3465 * sysdeps/mach/hurd/mips/longjmp-ctx.c: New file.
3466 * sysdeps/mach/hurd/mips/init-fault.c: New file.
3467 * hurd/mach/hurd/mips/__sigret.c: New file.
3468 * sysdeps/mach/hurd/mips/exc2signal.c: New file.
3469 * sysdeps/mach/mips/thread_state.h: New file.
3470 * sysdeps/mach/mips/machine-sp.h: New file.
3471 * sysdeps/mach/mips/machine-lock.h: New file.
3472 * sysdeps/mach/mips/sysdep.h: New file.
3474 * mach/Makefile (mach-syscalls.mk): Snarf 3rd arg from kernel_trap.
3475 ($(mach-syscalls:%=__%.S): Emit kernel_trap instead of SYSCALL_TRAP.
3476 * mach/syscalls.awk: Print nargs-$1 = $3 for each line.
3477 * sysdeps/mach/sysdep.h: Include <mach/machine/syscall_sw.h>.
3478 * sysdeps/mach/i386/sysdep.h (ENTRY, SYSCALL_TRAP): Macros removed.
3480 * sysdeps/mach/i386/machine-lock.h: Use __volatile in place of
3481 volatile to work with -traditional.
3483 Fri Jul 8 21:06:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3485 * hurd/hurdsig.c (_hurd_internal_post_signal): For stop signals,
3486 clear pending SIGCONT no matter what action we choose.
3487 Add new value `cont' to ACT enum; use it for default SIGCONT action.
3488 (_hurd_internal_post_signal: sigwakeup): New local inline.
3490 Fri Jul 8 20:26:49 1994 Brendan Kehoe (brendan@zen.org)
3492 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile (sysdep-CFLAGS): Set
3493 this to include the -mhard-quad-float option.
3495 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: New file.
3496 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile: New file.
3497 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
3499 Fri Jul 8 13:54:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3501 * hurd/hurdpath.c (__hurd_path_lookup): Don't treat leading /
3502 specially for FS_RETRY_NORMAL. Handle FS_RETRY_MAGICAL; leading /
3503 here means use crdir. In that case, deallocate *RESULT if nonnull.
3505 * sysdeps/unix/sysv/sysv4/i386/sysdep.h: Don't define _ERRNO_H if
3508 * posix/gnu/types.h (__ino_t): Make this unsigned int instead of
3509 unsigned long int (matters for Alpha).
3511 * Makeconfig (+gccopt): Variable removed.
3512 (+cflags): Don't use it.
3513 (CPPFLAGS): Append $(sysdep-CPPFLAGS).
3514 (CFLAGS): Append $(sysdep-CFLAGS).
3516 * sysdeps/mach/hurd/__ioctl.c: In MSGID calculation, skip blocks
3517 of 100 for request commands >= 100, to allow for the reply msgids.
3519 Thu Jul 7 19:07:00 1994 Brendan Kehoe (brendan@zen.org)
3521 * sysdeps/unix/bsd/osf1/dirstream.h (DIR): Make __allocation
3522 member be int, not size_t (which is a long).
3524 Thu Jul 7 15:21:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3526 * hurd/__fopenport.c (readio, writeio, seekio, closeio): New
3528 (funcsio): New const variable.
3529 (__fopenport): Make the new stream use that for its io functions, and
3530 the default room functions, and set its seen flag.
3532 Tue Jul 5 11:32:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3534 * hurd/hurd/signal.h (struct hurd_sigstate): Removed `intr_restart'.
3535 (HURD_EINTR_RPC): Uncommented. Declare label
3536 `__do_call' so it has block instead of function scope. Don't use
3537 SS->intr_restart; instead SS->intr_port being reset to
3538 MACH_PORT_NULL tells us to restart the call.
3540 * sysdeps/mach/hurd/__ioctl.c: Enable use of HURD_EINTR_RPC.
3541 Do ctty magic and check for EBACKGROUND to generate SIGTTOU.
3543 * mach/devstream.c (dealloc_ref): New function.
3544 (mach_open_devstream): Add a user reference to DEV, and set
3545 STREAM's close fn to dealloc_ref, which will release the reference.
3547 * hurd/fd-read.c (_hurd_fd_read): Enabled and rewrote SIGTTIN code.
3548 * hurd/fd-write.c (_hurd_fd_write): Enabled and rewrote SIGTTOU code.
3550 * hurd/hurdsyms.c: Add an alias hurd_sig_post -> _hurd_sig_post.
3551 * hurd/hurdkill.c (_hurd_sig_post): Renamed back from hurd_sig_post.
3552 * hurd/hurd.h: Declare _hurd_sig_post.
3554 * hurd/hurdsig.c (_S_sig_post): Add SIGTTIN and SIGTTOU cases,
3555 handled like SIGINT et al.
3557 * mach/devstream.c: Turn back on NL->CRNL translation.
3559 * stdio/xbug.c (main): Return instead of running off the end.
3561 Mon Jul 4 16:57:13 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3565 Sat Jul 2 00:15:37 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3567 * sysdeps/mach/hurd/__ioctl.c: Account for three type fields in
3568 message buffer size.
3570 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3571 Catch faults accessing user stack and return NULL.
3572 * hurd/hurdsig.c (_hurd_internal_post_signal): When it does, die
3573 with SIGILL and dump core.
3575 * hurd/hurdsig.c (_hurd_internal_post_signal): Use
3576 _hurd_msgport_thread instead of __mach_thread_self () to avoid the
3577 system call. (Signals will now lose if _hurd_msgport_thread gets
3579 (abort_rpcs): Always do thread_abort and thread_get_state.
3581 * misc/getpass.c: Fix typo resulting in newline not being removed.
3583 * termios/sys/ttydefaults.h [TTYDEFCHARS] (ttydefchars): Cast
3584 _POSIX_VDISABLE to cc_t to avoid gcc warning.
3586 Fri Jul 1 14:07:40 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3588 * hurd/Makefile (user-interfaces): Add hurd/ifsock.
3590 * socket/sys/socket.h (AF_LOCAL): New macro.
3592 * sysdeps/mach/hurd/__kill.c: Fix SIGKILL loop condition.
3594 Fri Jul 1 13:36:27 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
3596 * hurd/hurdkill.c (hurd_sig_post): New var PIDSBUF; initialize
3597 PIDS and NPIDS correctly; only free PIDS if the MiG stub
3600 Thu Jun 30 18:47:48 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
3602 * hurd/hurdsock.c (_hurd_socket_server): Zero up to and *including*
3605 Thu Jun 30 08:12:28 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3607 * hurd/hurdsig.c (abort_all_rpcs): Just iterate over _hurd_sigstates.
3609 * hurd/dtable.c (fork_child_dtable): Skip empty descriptor slots.
3611 * sysdeps/mach/hurd/__ioctl.c: Fix MSG.data size calculation.
3613 Wed Jun 29 19:06:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3615 * sysdeps/mach/hurd/bind.c: For AF_LOCAL, create a new node in the
3616 filesystem, put the ifsock translator on it, and fetch the
3618 * sysdeps/mach/hurd/connect.c: For AF_LOCAL, look up the socket
3619 file and fetch the address port using the ifsock protocol.
3621 Tue Jun 28 16:03:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3623 * hurd/Makefile (routines): Add ports-get, ports-set, and hurdmsg.
3624 (aux): Remove msgstub.
3625 * hurd/hurdports.c (get): Just call _hurd_ports_get.
3626 (set): Just call _hurd_ports_set.
3627 (getcttyid, setcttyid): New functions.
3628 * hurd/ports-get.c (_hurd_ports_get): New file, new function.
3629 * hurd/ports-set.c (_hurd_ports_set): New file, new function.
3630 * hurd/hurd.h: Declare _hurd_ports_get and _hurd_ports_set.
3631 Declare getcttyid and setcttyid.
3632 * hurd/__setauth.c (__setauth): Just call _hurd_setauth.
3633 (_hurd_setauth): New function, code moved from __setauth.
3634 * hurd/hurdinit.c (_hurd_setproc): New function.
3635 * hurd/hurdioctl.c (_hurd_setcttyid): New function.
3637 * locale/C-ctype_ct.c (__ctype_tolower_C, __ctype_toupper_C): Use
3638 integer constants instead of character constants for octal values
3639 so they will not be sign extended.
3641 * sysdeps/mach/hurd/__setitmr.c (fork_itimer): New function, on
3642 _hurd_fork_child_hook.
3644 * sysdeps/stub/sysd-stdio.c (__stdio_reopen): Fix typo in arg type.
3645 * sysdeps/stub/__ioctl.c: Fix type of REQUEST arg.
3646 * sysdeps/stub/syscall.c: Include ansidecl.h.
3647 * sysdeps/stub/_exit.c: Add __NORETURN to defn.
3649 * sysdeps/unix/sysv/sysv4/sigset.h (_EXTERN_INLINE): Define to
3650 `extern __inline', not empty.
3652 * sysdeps/mach/hurd/ttyname.c: Don't bother searching /dev.
3654 Sat Jun 25 15:41:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3656 * sysdeps/mach/hurd/__fork.c: Moved proc_task2pid call to just
3657 before proc_child. It is a waste to do it earlier.
3659 Sat Jun 25 13:17:39 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
3661 * sysdeps/mach/hurd/__fork.c: Move proc_task2pid call to after
3662 _hurd_ports are unlocked. Call proc_child nearly last thing.
3663 Ignore errors from thread_resume.
3665 Fri Jun 24 20:21:11 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3667 * sysdeps/posix/getcwd.c: Remove empty `#define'.
3669 Fri Jun 24 17:57:36 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
3671 * sysdeps/mach/hurd/__fork.c: Call proc_task2pid immediately after
3672 task_create. Add comment explaining why thread_resume must be the
3673 last thing we do to the child.
3675 Fri Jun 24 01:41:41 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3677 * hurd/hurdinit.c (_hurd_proc_init): Call __proc_set_arg_locations
3678 in place of __proc_setprocargs (it was renamed).
3680 * hurd/hurd.h: Rename _hurd_sig_post to hurd_sig_post.
3681 * hurd/hurdkill.c: Likewise.
3683 * hurd/port2fd.c (_hurd_port2fd): Call __term_open_ctty instead of
3684 __term_become_ctty, and don't pass the message port.
3685 * hurd/hurdioctl.c (rectty_dtable): Likewise.
3686 * hurd/dtable.c (fork_child_dtable, ctty_new_pgrp): Likewise.
3688 * sysdeps/mach/hurd/__fork.c: Use __proc_{get,set}_arg_locations
3689 to propagate argv and envp locations to the child.
3691 * stdio/freopen.c (freopen): If STREAM->__seen is clear, pass
3692 __stdio_close to __stdio_reopen.
3694 * misc/Makefile (install-lib): Add libg.a.
3695 ($(objpfx)libg.a): New rule; use make-dummy-lib.
3696 (lib): Depend on $(objpfx)libg.a
3698 Thu Jun 23 01:14:36 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3700 * termios/termios.h (CCEQ): New macro.
3702 * sysdeps/unix/sysv/irix4/__getgrps.c: Add missing __ to fn name.
3704 Don't compile in absolute file names for localtime and posixrules
3705 files if they were specified relative to $(zonedir).
3706 * time/Makefile (installed-localtime-file,
3707 installed-posixrules-file): Set these instead of
3708 {localtime,posixrules}-file to the absolute file names.
3709 ($(localtime-file), $(posixrules-file)): Change targets to
3710 $(installed-localtime-file) and $(installed-posixrules-file).
3712 Wed Jun 22 15:52:26 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3714 * hurd/Makefile (sig): Add hurdkill.
3716 Sat Jun 18 12:57:54 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3718 * stdio/_itoa.h (_itoa): Change type of VALUE to unsigned long long.
3719 * stdio/_itoa.c (_itoa): Likewise.
3721 Thu Jun 16 01:10:41 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3723 * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__filepos' member
3724 with `__entry_ptr' and `__entry_data'. Remove `__block_size' member.
3725 Replace `__offset' member with `__ptr', a char *; no need to include
3727 * sysdeps/mach/hurd/readdir.c: Use those, new dir_readdir protocol.
3728 * sysdeps/mach/hurd/opendir.c: Initialize new members.
3729 Don't do io_stat to set __blocksize.
3730 * sysdeps/mach/hurd/telldir.c: Rewritten; return DIRP->__entry_ptr.
3731 * sysdeps/mach/hurd/seekdir.c: Rewritten; just set DIRP->__entry_ptr
3732 from arg, and zero DIRP->__size so a new block will be read.
3734 * sysdeps/mach/hurd/getcwd.c: Use new dir_readdir protocol.
3736 * hurd/msgstub.c: Add stubs for dir_changed, file_changed.
3738 * hurd/hurdsock.c (_hurd_socket_server): Removed unused label.
3740 * sysdeps/mach/hurd/__getdents.c: Use new dir_readdir protocol.
3742 * sysdeps/mach/hurd/__access.c: Open the file with 0 flags and
3743 then use file_check_access to discover what we are allowed.
3745 Tue Jun 14 14:10:03 1994 Brendan Kehoe (brendan@zen.org)
3747 * sysdeps/mips/setjmp.S: Refer to `$fp', not `fp'.
3749 Tue Jun 14 00:50:54 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3751 * sysdeps/mach/hurd/__pipe.c: Set FDS[1], not FDS[2].
3753 Mon Jun 13 06:48:48 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3755 * sysdeps/unix/bsd/sun/sparc/sigtramp.c (trampoline): Use a
3756 comment instead of a pointless insn to reference %0 in final asm.
3758 * hurd/hurdsock.c (_hurd_socket_server): If realloc fails, don't
3759 fail; just don't cache the port.
3760 Look up the server node only if it is not in the cache.
3761 Translate errno only if path_lookup fails.
3762 (init): New function, on _hurd_preinit_hook.
3764 * sysdeps/mach/hurd/__symlink.c: Complement _hurd_umask before ANDing.
3766 Sat Jun 11 12:52:28 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3768 * sysdeps/mach/hurd/__fork.c: Can't insert dead name rights into
3771 Sat Jun 11 05:19:47 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3773 * sysdeps/mach/hurd/i386/longjmp-ts.c: Set TS->uesp instead of
3774 TS->esp. Set TS->eip.
3776 * gnu-stabs.h (bss_set_element): New macro.
3777 * hurd/dtable.c: Use bss_set_element instead of data_set_element
3778 to put _hurd_dtable_lock in the _hurd_fork_locks set.
3780 Fri Jun 10 02:04:51 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3782 * sysdeps/mach/hurd/__fork.c: Don't apply MACH_PORT_TYPE to result
3783 from __mach_port_names. Unlock SS->lock before return.
3784 Check for KERN_NAME_EXISTS from mach_port_allocate_name when
3785 creating a receive right and possibly ignore it.
3787 * sysdeps/unix/sysv/sco3.2.4/Dist: Add sco_getgrp.S.
3789 * crypt/speeds.c: Include signal.h and stdio.h first thing.
3790 [! SIGVTALRM]: Define NO_ITIMER.
3792 * sysdeps/unix/sysv/isc3/direct.h: New file.
3794 * hurd/hurdinline.c: Include lock-intern.h before #define
3797 * sysdeps/mach/hurd/__fork.c (_hurd_fork_locks): Don't be const.
3798 (__fork): Set SS from _hurd_self_sigstate so it is never null.
3799 New local flag PORTS_LOCKED records when we have spin_locked all
3800 the _hurd_ports cells; unlock them if necessary on error.
3802 * hurd/hurdsig.c (_hurd_siglock): Don't initialize it.
3803 (_hurdsig_init): Initialize _hurd_siglock at runtime.
3805 Wed Jun 8 12:22:27 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3807 * hurd/hurdid.c (_hurd_check_ids): Zero P->nuids and P->ngids after
3808 deallocating P->uids and P->ngids.
3810 * hurd/hurdioctl.c (_hurd_ioctl_handler_lists): Make defn initialized.
3812 * sysdeps/mach/hurd/__ioctl.c: Only try to unpack if IOC_OUT is set.
3814 * hurd/Makefile (routines): Replace $(inlines) with hurdinline.
3815 (inlines): Variable and rule removed.
3816 (generate-inlines): Variable removed.
3817 * hurd/hurdinline.c: New file.
3819 Tue Jun 7 01:58:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3821 * Makerules: Add -f to all mv commands missing it.
3823 * hurd/Makefile (generate-inline): New canned sequence.
3824 (inline-%.c): Use it.
3826 * time/asia, time/europe, time/northamerica: New versions from ADO.
3828 Mon Jun 6 21:36:04 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3830 * hurd/hurdid.c (init_id): New function.
3832 * Makerules (+make-deps): Put first s cmd before $(sed-remove-objpfx).
3833 (sed-remove-objpfx): Replace occurrences at beginning of line too.
3835 Sun Jun 5 14:34:12 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3839 * sysdeps/mach/hurd/ioctls.h (_IOR, _IOW): Swap IOC_IN and IOC_OUT.
3841 * sysdeps/mach/hurd/__ioctl.c: Only pack input for ioctls that
3842 take input. Compute expected reply size for ioctls that take
3843 output and check it properly.
3845 Sat Jun 4 00:35:42 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3847 * sysdeps/mach/hurd/ioctls.h (union __ioctl): Type removed.
3848 (enum __ioctl_datum): Name this enum.
3849 (_IOC_INOUT, _IOC_GROUP, _IOC_COMMAND, _IOC_TYPE): New macros.
3850 (_IOT_TYPE[012], _IOT_COUNT[012]): New macros.
3851 * sysdeps/mach/hurd/__ioctl.c: Use those macros instead of the union.
3853 * sysdeps/mach/hurd/__fork.c: Major rewrite. Copy all ports
3854 present in the task, not just library-maintained ones. Handle
3855 sigstate and signal thread setup explicitly here.
3856 * hurd/hurdsig.c (hurdsig_fork, hurdsig_fork_child): Functions
3859 * hurd/hurdpid.c (init_pids): Don't put this on _hurd_fork_child_hook.
3861 * sysdeps/mach/hurd/__isatty.c: New file.
3863 * hurd/hurdsock.c (_hurd_socket_server): Pass NP to __path_lookup,
3864 not NAME (most of which is uninitialized).
3866 * hurd/hurdsig.c (_hurdsig_init): Don't check for _hurd_msgport
3867 being non-null; always initialize it.
3869 Fri Jun 3 21:57:14 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3871 * hurd/hurdrlimit.c (init_rlimit): Restore __mutex_init call.
3872 (_hurd_rlimit_lock): Set initializer to random value; run-time
3873 initialization is always required.
3875 * inet/rcmd.c (rcmd): Compute max fd + 1 for select instead of
3878 Wed Jun 1 10:52:41 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
3880 * hurd/hurdrlimit.c (_hurd_rlimits, _hurd_rlimit_lock): Provide
3881 initializers so that the file is included in the link properly.
3882 (init_rlimit): Omit call to __mutex_init.
3884 Tue May 31 18:15:33 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
3886 * hurd/hurdmalloc.c (more_memory): Do spin_lock_init on H->lock.
3887 (malloc_init): New function; put it on _hurd_preinit_hook.
3889 * sysdeps/mach/hurd/defs.c (init_stdio): If stream already
3890 allocated, don't allocate a new one. Don't crash if _hurd_alloc_fd
3891 returns null if __newstream does.
3893 * sysdeps/mach/hurd/__brk.c (init_brk): If _hurd_brk is nonzero,
3894 leave it as it is. Set PAGEND from _hurd_brk instead of &_end.
3896 Mon May 30 18:37:47 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3898 * hurd/hurdrlimit.c (init_rlimit): Put this on _hurd_preinit_hook
3899 instead of _hurd_subinit.
3901 * sysdeps/mach/hurd/mig-reply.c (mig_fork_child): Function removed.
3902 * hurd/dtable.c (fork_parent_dtable): Function removed.
3904 * sysdeps/generic/resourcebits.h: Rename RLIM_NLIMITS to
3905 RLIMIT_NLIMITS, add alias for old name.
3907 * sysdeps/mach/hurd/Makefile (hurd-objpfx): New variable.
3908 (before-compile): Use that instead of $(common-objpfx).
3910 * sysdeps/mach/Makefile [! objpfx] (mach-objpfx): Add trailing slash.
3912 Fri May 27 01:34:56 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3914 * hurd/hurdsig.c (_hurdsig_init): Always initialize _hurd_sigthread.
3916 * hurd/dtable.c: Use data_set_element instead of text_set_element
3917 for _hurd_fork_locks.
3918 * hurd/hurdsig.c: Likewise.
3920 * hurd/hurd.h (_hurd_set_data_limit): Declaration removed.
3922 * hurd/dtable.c (_hurd_dtable_rlimit): Variable removed.
3923 (init_dtable): Don't set it.
3925 * hurd/Makefile (headers): Add hurd/resource.h.
3926 (routines): Add hurdrlimit.
3927 * hurd/hurd/resource.h: New file.
3928 * hurd/hurdrlimit.c: New file.
3929 * sysdeps/mach/hurd/getrlimit.c: Rewritten to just fetch
3931 * sysdeps/mach/hurd/setrlimit.c: Rewritten to just set _hurd_rlimits.
3932 * sysdeps/mach/hurd/__brk.c (_hurd_data_limit): Variable removed.
3933 (_hurd_set_brk): Use _hurd_rlimits[RLIMIT_DATA].
3934 (_hurd_set_data_limit): Function removed.
3935 * hurd/alloc-fd.c (_hurd_dtable_rlimit): Variable removed.
3936 (_hurd_alloc_fd): Use _hurd_rlimits[RLIMIT_OFILE] instead.
3938 * sysdeps/generic/resourcebits.h: Add RLIMIT_NOFILE as an alias
3941 * sysdeps/mach/hurd/mig-reply.c (__mig_init): Argument is stack
3942 on which to set the per-thread reply port variable.
3944 * sysdeps/mach/hurd/__brk.c (init_brk): Set _hurd_data_end to
3945 DATA_SIZE bytes past the beginning of data space, rather than to
3946 DATA_SIZE absolutely. If vm_map fails, set it to PAGEND.
3948 * sysdeps/mach/hurd/start.c (_start): Run _hurd_preinit_hook right
3951 * stdio/freopen.c (freopen): Rewritten using __stdio_reopen to
3952 preserve the old cookie value when possible.
3953 * sysdeps/posix/sysd-stdio.c (__stdio_reopen): New function.
3954 * sysdeps/stub/sysd-stdio.c (__stdio_reopen): New function.
3955 * sysdeps/mach/hurd/sysd-stdio.c (__stdio_reopen): New function.
3957 * stdio/freopen.c (freopen): Close the stream if MODE is invalid.
3959 * hurd/hurdsig.c (_hurd_core_limit): Define variable.
3961 * socket/sys/socket.h (PF_LOCAL): Define in preference to PF_FILE.
3963 Thu May 26 12:09:51 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
3965 * hurd/alloc-fd.c (_hurd_alloc_fd): Don't return EINVAL when
3966 FIRST_FD is greater than _hurd_dtablesize and less than
3967 _hurd_dtable_rlimit. If we want to grow _hurd_dtable, but
3968 _hurd_dtablesize is as big as _hurd_dtable_rlimit, then return
3969 EMFILE. When growing _hurd_dtable, actually do something if
3970 _hurd_dtablesize is zero.
3972 * hurd/hurdmalloc.c (malloc_fork_prepare, malloc_fork_parent,
3973 malloc_fork_child): Declare as static so they don't conflict with
3974 the user's version of this file.
3976 Wed May 25 20:55:16 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3978 * sysdeps/mach/hurd/__brk.c: Include <cthreads.h> instead of
3981 * hurd/hurdmalloc.c, hurd/hurdmalloc.h: New files (temporary hack).
3982 * hurd/Makefile (routines): Append hurdmalloc.
3983 (distribute): Append hurdmalloc.h.
3984 * hurd/alloc-fd.c: Include "hurdmalloc.h" (temporary hack).
3985 * hurd/dtable.c: Likewise.
3986 * hurd/hurdinit.c: Likewise.
3987 * hurd/hurdsig.c: Likewise.
3988 * hurd/hurdsock.c: Likewise.
3989 * hurd/new-fd.c: Likewise.
3990 * sysdeps/mach/hurd/start.c: Likewise.
3992 * sysdeps/mach/hurd/start.c (start1): Use malloc and a for loop
3994 * hurd/hurdsig.c (_hurd_thread_sigstate): Use malloc and memset
3997 * sysdeps/mach/hurd/__brk.c (init_brk): Reference self to avoid
3998 compiler warning. Add init_brk to _hurd_preinit_hook instead of
4001 * sysdeps/mach/hurd/start.c (_hurd_preinit_hook): New variable.
4002 (start1): Run _hurd_preinit_hook before threadvar setup.
4004 Tue May 24 17:42:34 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4006 * hurd/dtable.c (init_dtable): Initialize _hurd_dtablesize to
4007 _hurd_init_dtablesize. Initialize _hurd_dtable_rlimit as
4008 _hurd_dtablesize used to be set, but don't let it be zero.
4009 (_hurd_dtable_rlimit): New variable.
4011 Tue May 24 12:57:19 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4013 * sysdeps/mach/sleep.c (sleep): Timeout arg to mach_msg is
4014 in milliseconds, not microseconds; compute it accordingly.
4016 * sysdeps/mach/hurd/__select.c (__select): Deleted variables
4017 DTABLE and DTABLE_ULINK. Use new vars _hurd_dtablesize and
4018 _hurd_dtable instead of old _hurd_dtable structure. Use new
4019 locking protocol on _hurd_dtable.
4021 Tue May 24 01:55:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4023 * sysdeps/mach/hurd/__setitmr.c: Don't include mutex.h.
4025 * sysdeps/mach/hurd/defs.c (init_stdio): Reference self.
4027 * sysdeps/unix/sysv/sysv4/i386/sysdep.h: Include
4028 sysdeps/unix/sysv/i386/sysdep.h, not sysdeps/unix/i386/sysdep.h
4030 Mon May 23 19:05:44 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4032 * sysdeps/mach/hurd/Makefile (mib_hacks, defines): Variables removed.
4034 * mach/devstream.c (mach_open_devstream): Set STREAM's seek and
4035 fileno io functions to null.
4037 * hurd/hurdexec.c (_hurd_exec): Fixed adding of dtable ports to
4038 PLEASE_DEALLOC array.
4040 * sysdeps/mach/hurd/defs.c (init_stdio): Unlock the descriptors
4041 after fetching them. If a standard descriptor is not allocated,
4042 allocate the structure and store its pointer in the stream anyway.
4044 * stdio/gets.c: Only return null on P==S if feof (STREAM).
4046 * stdio/vfprintf.c: Make %Z a type modifier, not a format spec.
4048 * sysdeps/mach/hurd/fdopen.c: Return NULL rather than -1 for error.
4050 Mon May 23 14:24:50 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4052 * sysdeps/mach/hurd/__close.c (__close): Use new _hurd_fd_get
4054 * sysdeps/mach/hurd/__dup2.c (__dup2): Likewise. Use
4055 _hurd_dtablesize and _hurd_dtable instead of old _hurd_dtable
4058 * sysdeps/mach/hurd/sysd-stdio.c (__stdio_seek): Use
4059 HURD_FD_PORT_USE, not HURD_FD_USE.
4060 * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Variable
4063 * hurd/alloc-fd.c (_hurd_alloc_fd): Arg FIRST_FD is not actually
4065 * hurd/hurdsig.c (_hurd_internal_post_signal [case SIGINFO]): If
4066 we are not the process group leader, ignore the signal.
4067 (_S_sig_post [case SIGURG]): Declaration of D was out of place.
4069 * sysdeps/mach/hurd/fdopen.c: Include <hurd/io.h> for
4070 io_get_openmodes prototype.
4072 Sat May 21 16:03:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4074 * assert/assert.c (__assert_fail): Put program name first in msg.
4076 * hurd/Makefile (dtable): Removed setdtsz.
4078 * hurd/hurdexec.c: Use _hurd_dtable and _hurd_dtablesize instead of
4079 old _hurd_dtable structure.
4080 * hurd/hurdsig.c: Likewise.
4081 * hurd/alloc-fd.c: Likewise.
4082 * hurd/hurdioctl.c (rectty_dtable): Likewise.
4084 * Version 1.08 released.
4086 * mach/mach_error_string.c: Renamed to errstring.c.
4087 * mach/Makefile (routines): Renamed mach_error_string to errstring.
4088 * mach/err_mach_ipc.sub: Renamed to err_mach.sub.
4089 * mach/err_bootstrap.sub: Renamed to err_boot.sub.
4091 * sysdeps/generic/sigset.h (__SIGSETFN): Take new arg CONST; use it
4092 for CONST qualifier on SET arg to generated function.
4093 Changed uses to pass it; sigismember passes __const, others empty.
4095 * sysdeps/mach/hurd/sysd-stdio.c: Rewritten to use `struct hurd_fd *'s
4097 * sysdeps/mach/hurd/fdopen.c: Rewritten accordinly.
4098 * sysdeps/mach/hurd/defs.c (init_stdio): Rewritten accordingly.
4099 Add it to the _hurd_fd_subinit hook instead of the __libc_subinit
4101 * sysdeps/mach/hurd/stdio_init.c: New file.
4102 * hurd/dtable.c (_hurd_fd_subinit): New hook variable.
4103 (init_dtable): Run the _hurd_fd_subinit hook.
4105 * hurd/hurd/fd.h (struct hurd_dtable): Type removed.
4106 (_hurd_dtable_users, _hurd_dtable_rlimit): Variables removed.
4107 (_hurd_dtable): Make this a struct hurd_fd **.
4108 (_hurd_dtablesize): New variable.
4109 (struct hurd_fd_user): Type removed.
4110 (_hurd_dtable_get, _hurd_dtable_free, _hurd_dtable_fd): Functions
4112 (_hurd_fd_get): Rewritten. Take just one arg, and look it up in
4113 _hurd_dtable; return a struct hurd_fd *.
4114 (HURD_FD_USE): Rewritten to use new _hurd_fd_get interface.
4115 * hurd/dtable.c (_hurd_dtable_users, _hurd_dtable_rlimit):
4117 (_hurd_dtable): Make this a struct hurd_fd **.
4118 (_hurd_dtablesize): New variable.
4119 (init_dtable, fork_parent_dtable, fork_child_dtable,
4120 ctty_new_pgrp, reauth_dtable): Use new simpler _hurd_dtable format.
4121 * sysdeps/mach/hurd/__getdtsz.c: Use _hurd_dtablesize.
4122 * sysdeps/mach/hurd/__fcntl.c: Use new _hurd_fd_get protocol.
4124 * hurd/dtable.c (get_dtable_port): Return the ctty port if set.
4126 * hurd/hurd/fd.h (_hurd_fd_error_signal): New function, broken out
4128 (_hurd_fd_error): Call it.
4130 * hurd/Makefile (dtable): Add fd-close.
4131 * hurd/fd-close.c: New file.
4132 * hurd/hurd/fd.h: Declare _hurd_fd_close.
4134 * sysdeps/mach/hurd/__close.c: Call _hurd_fd_close.
4136 * signal/Makefile (routines): Add sigsetops.
4137 * signal/sigsetops.c: New file.
4139 * sysdeps/unix/sysv/sysv4/sigset.h (_EXTERN_INLINE): New macro.
4140 Use it for all the inline functions.
4142 * signal/signal.h: Move #include <signum.h> inside #ifdef _SIGNAL_H.
4144 * sysdeps/generic/sigset.h: Protect types with #ifndef
4145 _SIGSET_H_types. Protect rest with #if !defined (_SIGSET_H_fns)
4146 && defined (_SIGNAL_H).
4147 (__SIGSETFN): Add extern declaration of NAME inside function.
4149 * sysdeps/unix/ioctls-tmpl.c: Add missing #endif.
4150 * sysdeps/unix/Makefile (make-ioctls-CFLAGS): Remember -D.
4152 Fri May 20 20:42:33 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4154 * sysdeps/unix/Makefile (sys/termios.h): Variable removed.
4155 (ioctl-includes): New variable.
4156 (make-ioctls-CFLAGS): Compute value generally from $(ioctl-includes).
4157 ($(common-objpfx)ioctls): Depend on $(ioctl-includes), instead of
4160 * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: New file.
4161 * sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Add
4163 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: New file.
4165 * sysdeps/generic/sigset.h (__sigismember, __sigaddset, __sigdelset):
4166 Rewritten as extern inline functions; check for bogus signal number.
4168 * configure.in (names): Put $implied before $* in new $sysnames
4169 list remaining to be processed; this ensures unix/common precedes
4170 unix/sysv4 for sysv4.
4172 Thu May 19 18:35:02 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4174 * sysdeps/mach/hurd/defs.c (init_stdio): Make stdin and stdout
4175 line buffered and stderr unbuffered.
4177 Thu May 19 16:14:36 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4179 * sysdeps/mach/hurd/getcwd.c: Remember to call io_stat on cwdir.
4181 * sysdeps/generic/configure.in: Use changequote around if expr
4182 to avoid [] elision.
4184 Thu May 19 13:53:59 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4186 * hurd/hurdsock.c (_hurd_socket_server): Return EPFNOSUPPORT
4187 rather than EPROTONOSUPPORT because it's the entire protocol
4188 family that isn't present, not just one protocol.
4190 * sysdeps/mach/hurd/__access.c (__access): Don't deallocate
4191 CRDIR or CWDIR; that's taken care of by the _hurd_port_get
4192 and _hurd_port_free system.
4194 Thu May 19 04:14:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4196 * sysdeps/posix/libc_fatal.c: Include <errno.h>.
4198 * sysdeps/unix/sysv/sysv4/__sigact.c: Include <stddef.h> for NULL.
4200 * sysdeps/mach/hurd/__access.c: Fix swapped poly and count args in
4201 __auth_makeauth call.
4203 * sysdeps/mach/hurd/ioctls.h (_IOC, _IOT): Rewritten using bitwise
4204 operations, so the result is always technically a constant (the
4205 old method of using a union constructor expression was not good
4206 enough for initializers).
4208 * hurd/hurdsock.c (_hurd_socket_server): If path_lookup returns
4209 ENOENT, we return EPROTONOSUPPORT.
4211 * hurd/Makefile (dtable): Add hurdioctl.
4212 * hurd/dtable.c (rectty_dtable, tiocsctty, tiocnotty): Functions
4214 * hurd/hurdioctl.c: New file.
4215 (fioctl, fioclex): New functions.
4216 * sysdeps/mach/hurd/__ioctl.c (_hurd_ioctl_handler_lists): Don't
4217 define it, just declare it.
4219 * sysdeps/mach/hurd/getcwd.c: Use MACH_PORT_RIGHT_SEND, not
4220 MACH_PORT_TYPE_SEND, in mach_port_mod_refs call.
4222 * sysdeps/mach/hurd/__getpgrp.c: Don't lock _hurd_pid_lock.
4224 * sysdeps/unix/common/glue-ctype.c: Don't include <ctype.h>.
4225 Instead, add explicit extern declaration of TABLE in main.
4227 Wed May 18 17:54:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4229 * sysdeps/m68k/Makefile (asm-CPPFLAGS): Append $(m68k-syntax-flag).
4233 * sunrpc/Makefile (+gccwarn): Set to -w.
4235 * sysdeps/unix/Makefile (ifeq testing sys/param.h): Use patsubst
4236 instead of dir to remove directory name from .../sys/param.h but
4239 * inet/sys/bitypes.h: Replaced with just #include <sys/types.h>.
4241 * posix/sys/utsname.h (_UTSNAME_NODENAME_LENGTH): If undefined,
4242 define to _UTSNAME_LENGTH.
4243 (struct utsname): Use _UTSNAME_NODENAME_LENGTH for `nodename' member.
4244 * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h (_UTSNAME_NODENAME_LENGTH):
4247 * resource/sys/resource.h (enum __rlimit_resource): Removed.
4248 Just include <resourcebits.h> instead.
4249 * resource/Makefile (headers): Add resourcebits.h.
4250 * sysdeps/generic/resourcebits.h: New file.
4251 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: New file.
4253 * stdio/test-popen.c (main): Use popen to read the file back, too.
4255 * sysdeps/unix/sysv/sysv4/i386/sysdep.h: New file.
4257 * sysdeps/unix/sysv/sysv4/i386/sys-sig.S: Fixed typo: movel->movl.
4259 Tue May 17 12:46:31 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4261 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
4262 __mach_task_self, __mach_host_self): New declarations of __
4263 versions of syscall traps.
4264 (swtch, __swtch, swtch_pri, __swtch_pri, thread_switch,
4265 __thread_switch, evc_wait, __evc_wait): New prototypes.
4266 * mach/Makefile (headers): Added mach/mach_traps.h so that the
4267 GNU version is installed instead of the Mach version.
4269 Mon May 16 15:34:12 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4271 * sysdeps/stub/sys/param.h: New file.
4273 * mach/lock-intern.h (__mutex_lock, __mutex_unlock): Real definitions.
4274 (__mutex_lock_solid, __mutex_unlock_solid, __mutex_init): Declare
4276 * mach/mutex-solid.c: New file.
4277 * mach/Makefile (lock): Add mutex-solid.
4278 (lock-headers): Remove mutex.h.
4279 * mach/mutex.h: File removed.
4280 * hurd/hurd/id.h: Include <cthreads.h> instead of <mutex.h>.
4281 * hurd/hurd/signal.h: Likewise.
4282 * hurd/hurdsig.c: Likewise.
4283 * hurd/hurdsock.c: Likewise.
4284 * hurd/dtable.c: Likewise.
4285 * hurd/__setauth.c: Likewise.
4286 * sysdeps/mach/hurd/Makefile (includes): Also append
4287 -I$(hurd-srcdir)/libthreads.
4289 * sysdeps/posix/system.c [WAITPID_CANNOT_BLOCK_SIGCHLD]: Don't
4291 * sysdeps/unix/sysv/sco3.2.4/system.c
4292 (WAITPID_CANNOT_BLOCK_SIGCHLD): Define this macro.
4294 * sysdeps/posix/sigintr.c (siginterrupt) [! SA_RESTART]: Always
4297 * sysdeps/posix/__sigvec.c [! SA_ONSTACK]: Fail with ENOSYS if
4298 SV_ONSTACK is set in VEC->sv_flags.
4299 [SA_RESTART]: Protect SV_INTERRUPT check with this.
4301 * sysdeps/mach/sysdep.h (FATAL_PREPARE): New macro.
4302 * sysdeps/posix/libc_fatal.c: Include <sysdep.h>.
4303 [FATAL_PREPARE]: Invoke the macro.
4304 * assert/assert.c: Likewise.
4306 * sysdeps/generic/memmem.c: Start BEGIN at HAYSTACK, not partway
4307 into it. Loop until BEGIN passes the location in HAYSTACK with
4308 NEEDLE_LEN bytes remaining to the end.
4309 Compare first byte manually before calling memcmp.
4311 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Fix typo.
4313 * posix/sys/types.h [__USE_BSD] (int32_t, int16_t, int8_t,
4314 u_int32_t, u_int16_t, u_int8_t): New typedefs.
4316 * assert/assert.c (__assert_program_name): New variable.
4317 (__assert_fail): Print that in the msg too.
4318 [HAVE_GNU_LD] (set_progname): New function to set it up at startup.
4320 Thu May 12 01:10:52 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4322 * hurd/__setauth.c: Do critical section locking.
4323 * hurd/hurdexec.c: Likewise.
4324 * hurd/hurdauth.c (_S_del_auth): Likewise.
4325 * hurd/getuids.c: Likewise.
4326 * hurd/dtable.c: Likewise.
4327 * hurd/alloc-fd.c: Likewise.
4328 * hurd/hurd/port.h: Likewise.
4329 * hurd/hurd/fd.h: Likewise.
4330 * hurd/setuids.c: Likewise.
4331 * hurd/intern-fd.c: Likewise.
4332 * hurd/hurdsock.c (_hurd_socket_server): Likewise.
4333 * sysdeps/mach/hurd/setrlimit.c: Likewise.
4334 * sysdeps/mach/hurd/setgroups.c: Likewise.
4335 * sysdeps/mach/hurd/seteuid.c: Likewise.
4336 * sysdeps/mach/hurd/setegid.c: Likewise.
4337 * sysdeps/mach/hurd/getrlimit.c: Likewise.
4338 * sysdeps/mach/hurd/__setuid.c: Likewise.
4339 * sysdeps/mach/hurd/__setreuid.c: Likewise.
4340 * sysdeps/mach/hurd/__setregid.c: Likewise.
4341 * sysdeps/mach/hurd/__setitmr.c: Likewise.
4342 * sysdeps/mach/hurd/__setgid.c: Likewise.
4343 * sysdeps/mach/hurd/__select.c: Likewise.
4344 * sysdeps/mach/hurd/__sbrk.c: Likewise.
4345 * sysdeps/mach/hurd/__getuid.c: Likewise.
4346 * sysdeps/mach/hurd/__getpgrp.c: Likewise.
4347 * sysdeps/mach/hurd/__getitmr.c: Likewise.
4348 * sysdeps/mach/hurd/__getgrps.c: Likewise.
4349 * sysdeps/mach/hurd/__getgid.c: Likewise.
4350 * sysdeps/mach/hurd/__geteuid.c: Likewise.
4351 * sysdeps/mach/hurd/__getegid.c: Likewise.
4352 * sysdeps/mach/hurd/__getdtsz.c: Likewise.
4353 * sysdeps/mach/hurd/__fork.c: Likewise.
4354 * sysdeps/mach/hurd/__fcntl.c: Likewise.
4355 * sysdeps/mach/hurd/__dup2.c: Likewise.
4356 * sysdeps/mach/hurd/__close.c: Likewise.
4357 * sysdeps/mach/hurd/__brk.c: Likewise.
4358 * sysdeps/mach/hurd/__access.c: Likewise.
4360 * sysdeps/mach/hurd/reboot.c (reboot): Use the host priv port to
4363 * sysdeps/mach/hurd/__readlink.c: Don't request O_READ access.
4365 * sysdeps/mach/hurd/__ioctl.c: Don't expect result data unless
4366 return code is zero. Translate MIG_BAD_ID or EOPNOTSUPP to ENOTTY.
4368 * mach/devstream.c (output): Use device_write instead of
4369 device_write_inband.
4371 Wed May 11 18:49:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4373 * hurd/hurdinit.c (_hurd_init): Finsih loop of _hurd_port_init on
4374 _hurd_ports elts before doing _hurd_proc_init or
4375 __task_set_special_port.
4377 * hurd/hurd/signal.h (struct hurd_sigstate): Add new
4378 `critical_section' member. Remove #if 0'd out vfork crap.
4379 (_hurd_critical_section_lock, _hurd_critical_section_unlock): New
4381 (HURD_CRITICAL_BEGIN, HURD_CRITICAL_END): New macros.
4383 * io/Makefile (headers): Add poll.h and sys/poll.h.
4384 (routines): Add poll.
4385 * sysdeps/unix/bsd/sun/sunos4/poll.S: New file.
4386 * sysdeps/unix/sysv/poll.S: New file.
4387 * sysdeps/unix/bsd/poll.c: New file.
4388 * sysdeps/stub/poll.c: New file.
4389 * io/poll.h, io/sys/poll.h: New files.
4391 * misc/bsd-compat.c (setjmp): New function.
4393 * sysdeps/unix/Makefile (sysdep_headers): Remove sys/param.h.
4394 * misc/Makefile (headers): Add it here instead.
4396 * io/test-utime.c (main): New file.
4397 * io/Makefile (tests): New variable.
4399 Wed May 11 13:44:33 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4401 * hurd/hurd/threadvar.h (__hurd_errno_location): Remove
4402 __volatile keyword. `volatile int errno' is not the same
4403 as `int errno'; user programs often mention the latter.
4404 * errno.h: Remove __volatile keyword; same reason.
4406 Tue May 10 17:21:41 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4408 * time/zdump.c: New code from ADO.
4410 * time/difftime.c (difftime): Use hairy rounding algorithm from
4411 eggert@twinsun.com when sizeof (time_t) >= sizeof (double).
4413 * Makerules (native-CFLAGS): Remove -I$(sysincludedir). RMS says
4414 people with bogons in /usr/local/include deserve to lose.
4416 * stdio/printf_fp.c (__printf_fp): If IS_NEG gets set, negate
4417 FPNUM before testing it for %g format choice.
4419 * sysdeps/unix/sysv/irix4/fcntlbits.h: New file.
4420 * sysdeps/unix/sysv/irix4/Dist: New file.
4421 * sysdeps/unix/sysv/irix4/readv.c: New file.
4422 * sysdeps/unix/sysv/irix4/writev.c: New file.
4423 * sysdeps/unix/sysv/irix4/__dup2.c: New file.
4425 * sunrpc/xdr_float.c (xdr_float): Change [mc68000 || sparc] to [!
4428 * sysdeps/mips/setjmp.S: Remove spurious $.
4430 * sysdeps/generic/ftime.c: Include <errno.h>.
4432 * sysdeps/unix/mips/sysdep.S: Add .set noreorder.
4434 Tue May 10 16:27:13 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4436 * sysdeps/generic/termbits.h (NCCS): Doc fix.
4438 Mon May 9 18:07:44 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4440 * sysdeps/mach/hurd/uname.c (uname): System uname information
4441 has moved from init to proc.
4443 * sysdeps/mach/usleep.c (usleep): Return correct value. Destroy
4444 RECV when we're done with it.
4446 Thu May 5 17:03:56 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4448 * sysdeps/mach/hurd/__lstat.c: Use O_NOLINK instead of O_NOTRANS.
4450 Thu May 5 04:20:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4452 * mach/spin-lock.h (spin_lock_init): Define.
4454 * sysdeps/mach/hurd/sigsuspend.c: New local variable NEWMASK, set
4455 it to *SET if SET is not null, before taking SS->lock; don't
4456 dereference SET while holding the lock. Restore SS->blocked to
4457 OLDMASK before unlocking and returning.
4459 * hurd/hurdsig.c (hurdsig_fork_child): Return zero.
4461 * sysdeps/mach/hurd/__fork.c (_hurd_fork_parent_hook,
4462 _hurd_fork_prepare_hook)): Define variables (symbol sets).
4463 (__fork): Run _hurd_fork_prepare_hook and _hurd_fork_parent_hook.
4465 * sysdeps/mach/hurd/sigsuspend.c: Don't test SS->pending; instead
4466 wait until SS->suspended is cleared.
4467 * hurd/hurdsig.c (_hurd_internal_post_signal): Clear SS->suspended
4468 before signalling on SS->arrived.
4470 * mach/Makefile (headers): Added mach/default_pager_helper.defs.
4472 * sysdeps/sparc/Dist: Added alloca.S.
4474 Wed May 4 14:02:29 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4476 * hurd/hurdexec.c (_hurd_exec): Unlock _hurd_dtable_lock when
4479 * sysdeps/mach/hurd/__setitmr.c: Changed _hurd_itimer_lock
4480 to be a spin_lock; changed mutex_lock and mutex_unlock
4481 accordingly throughout.
4482 * sysdeps/mach/hurd/__getitmr.c: Corresponding changes from
4483 mutex calls to spin lock calls here too.
4485 * sysdeps/mach/hurd/__setitmr.c (setitimer_locked): Fixed syntax
4486 of declaration of PREEMPT.
4487 (setitimer_locked): Declare variables ERR and ELAPSED.
4488 (setitimer_locked): Fix some references to REMAINING that
4489 were using it as an itimerval instead of a timeval.
4490 (setitimer_locked): Deleted unused label STILLBORN.
4492 Wed May 4 00:17:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4494 * sysdeps/stub/__getitmr.c: Fix arg name __WHICH to WHICH.
4496 * sysdeps/unix/bsd/alarm.c: Round tv_usec with arithmetic rather
4499 * hurd/Makefile (user-interfaces): Add hurd/msg_request.
4501 * sysdeps/stub/__setitmr.c: Fix arg name __WHICH to WHICH.
4503 * Makeconfig (cross-compiling): Define if $(HOST_CC) and $(CC) differ.
4504 * time/Makefile (install-others): Omit defn ifdef cross-compiling.
4506 Tue May 3 23:12:48 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4508 * mach/Makefile (lock-headers): Add spin-lock.h.
4510 * misc/Makefile (routines): Add madvise.
4512 * malloc/Makefile (non-lib.a): Define.
4513 * misc/Makefile (non-lib.a): Define.
4514 * Makerules (install-lib.a): Filter out $(non-lib.a).
4515 (install-lib-non.a): Append $(non-lib.a).
4517 * mach/Makefile (mach-headers): Rename sys/version.h to
4520 * hurd/Makefile (headers): Added hurd/threadvar.h.
4524 * hurd/port2fd.c (_hurd_port2fd): Use logic copied from
4525 _hurd_port_locked_set to install PORT in D->port, but leave it locked.
4527 * sunrpc/Makefile (generated): Don't add $(objpfx).
4529 * sysdeps/stub/machine-lock.h: New file.
4530 * sysdeps/stub/machine-sp.h: New file.
4532 Tue May 3 22:31:15 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4534 * sysdeps/mach/usleep.c (usleep): Specify MACH_RCV_MSG so that
4535 mach_msg actually waits.
4537 Tue May 3 19:24:48 1994 Karl Heuer (kwzh@hal.gnu.ai.mit.edu)
4539 * malloc/malloc.h (enum mcheck_status): Delete trailing
4540 comma in enum list; some compilers don't like it.
4542 Tue May 3 15:18:15 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4544 * sysdeps/mach/hurd/__symlink.c (__symlink): Pass port type arg to
4545 __file_set_translator.
4547 Mon May 2 17:56:47 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4549 * hurd/Makefile (generated): Add $(inlines) .c files.
4551 * sysdeps/mach/hurd/__mknod.c: Pass port type arg to
4552 __file_set_translator.
4554 Sun May 1 16:03:13 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4556 * mach/mig_syms.c: Add de-__ing aliases for mig_init,
4557 mig_get_reply_port, and mig_dealloc_reply_port.
4559 * sysdeps/mach/hurd/errnos.awk: Handle copying errors from
4560 mach/mig_errors.h and device/device_types.h. Omit E*_SUCCESS.
4561 Omit MACH_MSG_MASK and other special bit macros.
4563 * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Added
4564 sc_reply_port member.
4565 * hurd/hurdsig.c (fetch_reply_port): New function.
4566 (_hurd_internal_post_signal): When setting up to run handler, set
4567 SCP->sc_reply_port to the receiving thread's value for
4568 _HURD_THREADVAR_MIG_REPLY.
4569 * sysdeps/mach/hurd/i386/__sigret.c: Destroy the MiG reply port
4570 used by the signal handler, and restore from SCP->sc_reply_port.
4571 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp): New
4572 function; guts from __hurd_threadvar_location.
4573 (__hurd_threadvar_location): Call that.
4575 * hurd/hurdsig.c (check_pending): New function, broken out of:
4576 (_hurd_internal_post_signal): Call that for pending signal check.
4577 If SIGNO is zero, call check_pending on each thread's sigstate.
4579 * sysdeps/mach/hurd/start.c (start1): Use calloc to get
4580 zero-filled space for __hurd_threadvar_stack_offset when
4581 __hurd_threadvar_stack_mask is zero.
4583 Thu Apr 28 21:29:47 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4585 * Merged gmp-1.99.3+ mpn code from tege for printf_fp.
4586 * stdio/printf_fp.c: Include "longlong.h"; gmp-impl.h no longer does.
4588 * Makerules (+depfiles): Filter $(extra-objs) to get only .o files.
4590 Wed Apr 27 00:20:41 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4592 * Makerules (depend-$(subdir)): Put output in tmp file and use mv -f.
4593 Always use $(+depfiles), since sources is no longer exported.
4595 Tue Apr 26 20:05:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4597 * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Don't include <termios.h> to
4598 avoid <sys/ioctl.h> conflicts.
4599 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Undefine ECHO, MDMBUF,
4600 TOSTOP, FLUSHO, PENDIN, and NOFLSH after including <termios.h> and
4601 before including <sys/ioctl.h>.
4602 * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
4604 Tue Apr 26 14:42:43 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4606 * sysdeps/mach/sleep.c (sleep): Specify MACH_RCV_MSG or else
4607 mach_msg won't do anything but return immediately.
4608 (sleep): Compute return value correctly.
4610 Tue Apr 26 04:49:56 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4612 * sysdeps/i386/setjmp.c: Put global register decls first thing.
4613 * sysdeps/i386/__longjmp.c: Likewise.
4615 Fri Apr 22 18:10:36 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4617 * sysdeps/unix/sysv/irix4/__wait3.S: New file.
4618 * sysdeps/unix/sysv/irix4/time.S: New file.
4619 * sysdeps/unix/sysv/irix4/__waitpid.c: New file.
4621 Thu Apr 21 16:54:11 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4623 * malloc/malloc.c (initialize, morecore): When allocating the
4624 _heapinfo block itself, account for it in the statistics.
4626 Tue Apr 19 20:17:06 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4628 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: New file.
4630 * malloc/malloc.c (morecore): Only zero the new part of NEWINFO,
4631 not the part we will copy _heapinfo into.
4633 * sysdeps/unix/bsd/signum.h (SIGLOST): Define.
4634 (_NSIG): Increase to 33.
4636 Mon Apr 18 16:56:11 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4638 * configure.in (config.status): Use $configure_args instead of
4640 (after AC_PREPARE): Call AC_LANG_C.
4642 * time/Makefile (routines): Add sys/timeb.h.
4643 (routines): Add ftime.
4644 * time/sys/timeb.h: New file.
4645 * sysdeps/unix/bsd/ftime.c: New file.
4646 * sysdeps/generic/ftime.c: New file.
4648 * sysdeps/posix/getenv.c (getenv): Return NULL if __environ is null.
4650 * malloc/malloc.h [_MALLOC_INTERNAL] [HAVE_UNISTD_H]: Include
4653 * malloc/Makefile (gmalloc-routines): Put valloc first.
4655 Wed Apr 13 14:03:02 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4657 * sysdeps/mach/hurd/__symlink.c (__symlink): Set the target of the
4658 link to FROM, not TO.
4660 * sysdeps/mach/hurd/__readlink.c (__readlink): Copy just the
4661 target into the user's buffer, not the entire translator spec.
4663 Tue Apr 12 00:13:19 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4665 * hurd/fd-write.c (_hurd_fd_write): Set noctty for now rather
4666 than depending on what happens to be on the stack.
4668 * sysdeps/mach/hurd/readdir.c (readdir): Notice when hitting
4669 end-of-file and return NULL.
4671 Mon Apr 11 17:36:59 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4673 * sysdeps/mach/hurd/start.c (start1): Bother to set __environ.
4675 * sysdeps/mach/hurd/__ioctl.c (__ioctl): Comment out use of
4676 HURD_EINTR_RPC until signals work.
4678 Mon Apr 11 14:16:40 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4680 * sysdeps/mach/hurd/__ioctl.c (__ioctl): Call __mig_get_reply_port
4681 rather than __mig_reply_port (which doesn't exist).
4683 * sysdeps/mach/hurd/__mknod.c: Added temporary declarations
4686 * (This change occurred on April 4, 1994) mach/setup-thread.c
4687 (__mach_setup_thread): The March 31 change had an error; the stack
4688 needs to be allocated with ANYWHERE cleared.
4690 * (This change occurred on April 8, 1994) hurd/hurdexec.c
4691 (_hurd_exec): The arguments to exec_exec had the length and
4692 type parameters transposed. In addition, fetch the correct
4693 procserver port for the new task.
4695 * (This change occurred on April 8, 1994)
4696 sysdeps/mach/hurd/__wait.c (__wait4): Deal properly with a null
4699 * (This change occurred on April 8, 1994)
4700 sysdeps/mach/hurd/_exit.c (_exit): Changed commented-out call to
4701 __proc_exit into a correct call to __proc_mark_exit.
4703 Fri Apr 8 14:58:24 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4705 * string/strsignal.c (strsignal): Store of NUL into unknown_signal
4708 Tue Apr 5 21:26:25 1994 Brendan Kehoe (brendan@zen.org)
4710 * sysdeps/unix/sysv/sysv4/__sigact.c (__sigaction): Declare member
4711 `oact' in lower case, to match its use in the rest of the function.
4713 Tue Apr 5 03:07:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4715 * Makerules (install-lib.a rule): Run ranlib on the target.
4717 * Makerules (library member rule): Tighten up pattern rule to
4718 match only libc.a, not other libraries.
4720 Mon Apr 4 21:49:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4722 * set-hooks.h: New file.
4723 * Makefile (distribute): Add it.
4724 * set-init.c: Include it and use its macro DEFINE_HOOK_RUNNER.
4726 * Makerules (sysd-Makefile): Put `sysd-Makefile-done=t' in output.
4727 (sysd-rules): Don't include it unless sysd-Makefile-done is defined.
4729 Mon Apr 4 18:33:54 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4731 * mach/setup-thread.c (__mach_setup_thread): Oops; the vm_allocate
4732 call should have ANYWHERE cleared so that the change of the 31st
4733 has any effect at all.
4735 Thu Mar 31 13:46:13 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4737 * mach/setup-thread.c (__mach_setup_thread): Create a red zone
4738 beneath the stack; also, work around a bug in cthreads by
4739 forcing the stack into high memory. FIXME--this routine
4740 depends on the direction of stack growth; that should be fixed.
4742 Mon Mar 28 12:55:51 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
4744 * Rules (make-dummy-lib): Use `$(AR)' instead of literal `ar'.
4746 * configure.in (arg parsing): Don't take --os-release or --os-version.
4747 (switches): Variable removed; don't write it into config.status.
4748 (config.status): Write release and version values directly.
4750 * sysdeps/unix/common/configure.in: Use changequote around if expr
4751 to avoid [] elision.
4753 Sat Mar 26 18:36:27 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
4755 * malloc/mcheck.c [! _MALLOC_INTERNAL]: #include <stdio.h>
4757 Fri Mar 25 02:17:55 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
4759 * malloc/mcheck.c (mprobe): New function.
4760 (abortfunc): Take enum mcheck_status arg.
4761 (checkhdr): Return an enum mcheck_status, and pass it to abortfunc.
4762 (mabort): New function.
4763 (mcheck): Use mabort as default abortfunc.
4764 * malloc/malloc.h (enum mcheck_status): New type.
4765 (mprobe): Declare new function.
4766 (mcheck): ABORTFUNC takes an `enum mcheck_status' arg.
4768 * posix/unistd.h [__USE_GNU] (TEMP_FAILURE_RETRY): New macro.
4770 * stdio/stdio.h [__USE_GNU && !_LIBC] (cookie_io_functions_t):
4771 Define instead of __io_functions (and make that a typedef for
4772 this); omit __ from member names.
4774 Thu Mar 24 14:59:23 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
4776 * sysdeps/unix/sysv/sco3.2.4/sigaction.h: New file.
4778 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Put address of
4779 __sigreturn in %ecx before doing syscall trap.
4781 * sysdeps/stub/setegid.c: Fix arg type to __gid_t (was int).
4783 Wed Mar 23 17:33:09 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
4785 * Makefile (headers): Remove $(stdarg.h).
4786 * Makeconfig (stdarg.h): Variable removed.
4787 * configure.in: Remove check for __gnuc_va_list in stdarg.h.
4788 It is not safe to replace the compiler's stdarg.h with our own.
4790 Tue Mar 22 12:46:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4792 * Rules (dist): Rule removed.
4793 * Makefile (dist): Likewise.
4794 * Makerules (dist, distinfo): New rules.
4795 (TAGS): Depend on distfile, pass -f distfile to submake.
4797 * math/Makefile: Remove if-ed out old bsdmath copying rules.
4799 * Makerules (sources, headers, sysdep_routines): Don't export these.
4800 * Rules (others, tests): Likewise.
4802 * io/lockf.c: Include fcntl.h and errno.h.
4804 Mon Mar 21 20:27:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4806 * sysdeps/unix/bsd/sony/newsos4/fchdir.S: New file.
4807 * sysdeps/unix/bsd/sony/newsos4/{__wait4.c,__wait3.c,__wait.c,
4808 sys_wait4.S,Makefile,Dist}: New files.
4810 * sysdeps/unix/Makefile (syscall.h): De-SYS_ify `kerncall_basenum'.
4812 * sysdeps/unix/bsd/m68k/sysdep.S [! __motorola__]: Rename label 0
4813 to `store'; a user reports gas 1.38 bombs on numbered labels.
4815 * sysdeps/posix/Makefile (mk-stdiolim): Use $(HOST_CC).
4817 * Rules (distribute, dont_distribute, generated): Don't export them.
4818 (dist): Pass those vars down to sub-make on cmd line.
4819 * Makefile (distribute, generated): Don't export them.
4820 (dist): Pass distribute and generated values to sub-make on cmd line.
4822 * Makerules (install-lib-nosubdir): Insert $(libprefix) appropriately.
4824 Fri Mar 18 01:02:52 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4826 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h (DO_CALL): Use a6 in
4827 place of fp. A user reports gas 1.38 doesn't grok fp.
4829 Tue Mar 8 18:35:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4831 * Makerules (common-clean): Prepend $(objpfx) to $(generated).
4832 * Makefile (parent-clean): Prepend $(common-objpfx) to
4833 $(common-generated).
4834 * Makefile (generated): Don't prepend $(objpfx).
4835 * Rules (generated): Likewise.
4836 * sysdeps/unix/common/Makefile (generated): Likewise.
4837 * sysdeps/unix/sysv/Makefile (generated): Likewise.
4838 * sysdeps/unix/Makefile (common-generated): Don't prepend
4840 * sysdeps/posix/Makefile (common-generated): Likewise.
4841 * sysdeps/generic/Makefile (common-generated): Likewise.
4842 (generated): Don't prepend $(objpfx).
4844 * sysdeps/generic/Makefile (common-generated): Set this instead of
4845 generated for bytesex.h and det_endian.
4847 * sysdeps/stub/fexecve.c: New file.
4848 * posix/Makefile (routines): Add fexecve.
4849 * posix/unistd.h [__USE_GNU]: Declare fexecve.
4851 * sysdeps/unix/common/configure.in: Protect siglist and ctype
4852 checks with if [ ! "$inhibit_glue" ].
4853 * sysdeps/generic/configure.in: Likewise for psignal check.
4854 * sysdeps/unix/common/Makefile: Protect body with ifndef inhibit-glue.
4856 Mon Mar 7 17:46:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4858 * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: New file from brendan.
4860 Fri Mar 4 01:56:26 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4862 * Makerules (native-compile, common-objdir-compile): Use
4863 $(HOST_CC) in place of $(CC).
4865 * malloc/cfree.c: Move #undef cfree inside #ifdef _LIBC.
4867 * misc/sys/ioctl.h (struct ttysize): If TIOCGSIZE != TIOCGWINSZ,
4868 use two int elts instead of four shorts.
4870 Thu Mar 3 17:35:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4872 * malloc/realloc.c (realloc): When shrinking a block by splitting
4873 and then freeing one, bump the _chunks_used counter.
4875 * sysdeps/unix/sysv/sysv4/i386/__mknod.S: New file.
4877 Tue Mar 1 11:42:41 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4879 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Get first argument from
4880 stack at 8(%esp), not 4(%esp).
4882 * sysdeps/unix/sysv/isc2.2/rename.S: Get unix/common, not unix/bsd.
4884 Thu Feb 24 14:40:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4886 * io/lockf.c: New file.
4887 * io/Makefile (routines): Add lockf.
4888 * io/fcntl.h [__USE_MISC] (F_ULOCK, F_LOCK, F_TLOCK, F_TEST): New
4890 [__USE_MISC] (lockf): Declare it.
4891 * posix/unistd.h: Copy those new macros and declaration.
4893 * time/backward, time/etcetera, time/zic.c: New code and data from ADO.
4894 * Makeconfig (posixrules): Default to America/New_York.
4896 * sysdeps/unix/mips/sysdep.S: Store -1 in v0 in the delay slot after
4897 the return, rather than before (leaving the delay slot unfilled and
4900 * sysdeps/unix/sysv/irix4: New directory; mips-sgi-irix4 port
4903 * sysdeps/unix/sysv/sysv4/direct.h: Moved to unix/common; it is right
4904 for irix4 as well as sysv4.
4905 * sysdeps/unix/bsd/ultrix4/__wait.S: Moved to unix/mips.
4906 (noerror): Store register v1 in location pointed to by first arg (if
4908 * sysdeps/unix/bsd/ultrix4/__sigret.S: Moved to unix/mips.
4910 * sysdeps/unix/bsd/bsd4.4/{mmap,munmap,mprotect,msync,madvise}.S:
4911 Moved to sysdeps/unix/mman (new directory).
4912 * sysdeps/unix/bsd/bsd4.4/Implies: New file; imply unix/mman.
4913 * sysdeps/unix/bsd/sunos4/Implies: Likewise.
4914 * sysdeps/unix/bsd/ultrix4/Implies: Likewise.
4915 * sysdeps/unix/bsd/osf1/Implies: Likewise.
4916 * sysdeps/unix/bsd/sun/sunos4/munmap.S,
4917 sysdeps/unix/bsd/sun/sunos4/mprotect.S,
4918 sysdeps/unix/bsd/sun/sunos4/madvise.S,
4919 sysdeps/unix/bsd/ultrix4/mmap.S,
4920 sysdeps/unix/bsd/ultrix4/munmap.S,
4921 sysdeps/unix/bsd/ultrix4/mprotect.S,
4922 sysdeps/unix/bsd/osf1/mmap.S,
4923 sysdeps/unix/bsd/osf1/munmap.S,
4924 sysdeps/unix/bsd/osf1/mprotect.S: Files removed.
4926 * sysdeps/unix/sysv/sysv4/fcntlbits.h: Moved to sysdeps/unix/common.
4928 * stdio/printf_fp.c: Add many assertions to make sure no mpn size
4929 variable is ever zero.
4931 * Makerules (native-CFLAGS): Add -I$(sysincludedir).
4933 * Makerules (depend-$(subdir)) [omit-deps]: Use $(+depfiles) value
4934 instead of shell hackery.
4936 Wed Feb 23 00:09:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4938 * sysdeps/sparc/alloca.S [! NO_UNDERSCORES]: Call it ___builtin_alloca.
4940 Tue Feb 22 18:47:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4942 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Use __off_t in mmap
4945 * time/setitmr.c: Swap args OLD and NEW.
4946 * time/sys/time.h (setitimer): Likewise.
4947 * sysdeps/stub/__setitmr.c: Likewise.
4949 Mon Feb 21 20:47:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4951 * sysdeps/sparc/Makefile [gnulib] (routines): Add alloca.
4952 * sysdeps/sparc/alloca.S: New file; support for SunOS libc's
4953 `__builtin_alloca' function (never needed with GCC).
4955 * sysdeps/unix/sysv/sysv4/__sigact.c (trampoline): Cast handler to
4958 Sun Feb 20 00:46:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4960 * sysdeps/unix/bsd/sun/sunos4/mmap.c: Add missing semicolon.
4962 * sysdeps/unix/sparc/start.c [! NO_SHLIB]: Include <sys/types.h>
4963 before <sys/mman.h>.
4965 * sysdeps/unix/bsd/ultrix4/mips/{sysdep.h,sysdep.S,__pipe.S,
4966 __fork.S,__brk.S}: Moved to sysdeps/unix/mips (new directory).
4968 * sysdeps/unix/bsd/ultrix4/mips/__sigret.S: Use SYS_sigreturn
4969 instead of literal 103; #define to 103 if not already defined.
4971 Sat Feb 19 17:39:13 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4973 * sysdeps/unix/sysv/sysv4/i386/Dist: New file; list sys-sig.S.
4975 Fri Feb 18 18:07:34 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4977 * sysdeps/generic/configure.in: New file; check for psignal.
4979 * sysdeps/unix/common/glue-ctype.c: Check for table named _ctype,
4980 before checking for _ctype_.
4981 * sysdeps/unix/common/configure.in: Check for _ctype.
4983 * sysdeps/unix/Makefile (syscall.h): Look for sys.s before syscall.h.
4984 * sysdeps/unix/configure (unix_syscall_h): Likewise.
4986 * configure.in (os = irix4*): Set base_os=unix/sysv.
4988 * sunrpc/rpc/auth.h (u_int32): Always define, no #ifdefs.
4989 * sunrpc/xdr_float.c: Change [mc68000 || sparc] to [! vax].
4991 Thu Feb 17 18:42:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4995 * sysdeps/unix/bsd/sun/sunos4/Dist: Add sys_mmap.S.
4997 * Makerules (sysdep_dir): Remove defn.
4998 * Makeconfig (sysdep_dir): Define it here instead.
5000 Wed Feb 16 16:54:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5002 * sysdeps/unix/sysv/sysv4/__sigact.c: New file.
5003 * sysdeps/unix/sysv/sysv4/i386/Makefile: New file.
5004 * sysdeps/unix/sysv/sysv4/i386/sys-sig.S: New file.
5006 * time/sys/time.h (timerisset, timercmp, timerclear): New macros.
5008 * misc/Makefile (headers): Add sys/mman.h.
5009 (routines): Add mmap, munmap, mprotect, msync.
5010 * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: New file.
5011 * sysdeps/unix/bsd/sun/sunos4/mmap.c: New file.
5012 * sysdeps/unix/bsd/sun/sunos4/Makefile [$(subdir) == misc]
5013 (sysdep_routines): Add sys_mmap.
5014 * sysdeps/unix/bsd/bsd4.4/mprotect.S: New file.
5015 * sysdeps/unix/bsd/bsd4.4/munmap.S: New file.
5016 * sysdeps/unix/bsd/bsd4.4/msync.S: New file.
5017 * sysdeps/unix/bsd/bsd4.4/mmap.S: New file.
5018 * sysdeps/unix/bsd/bsd4.4/madvise.S: New file.
5019 * sysdeps/unix/bsd/sun/sunos4/mprotect.S: New file.
5020 * sysdeps/unix/bsd/sun/sunos4/munmap.S: New file.
5021 * sysdeps/unix/bsd/sun/sunos4/msync.S: New file.
5022 * sysdeps/unix/bsd/sun/sunos4/madvise.S: New file.
5023 * sysdeps/unix/bsd/ultrix4/sys/mman.h: New file.
5024 * sysdeps/unix/bsd/ultrix4/mmap.S: New file.
5025 * sysdeps/unix/bsd/ultrix4/munmap.S: New file.
5026 * sysdeps/unix/bsd/ultrix4/mprotect.S: New file.
5027 * sysdeps/stub/mprotect.c: New file.
5028 * sysdeps/stub/munmap.c: New file.
5029 * sysdeps/stub/msync.c: New file.
5030 * sysdeps/stub/mmap.c: New file.
5031 * sysdeps/stub/madvise.c: New file.
5032 * sysdeps/generic/sys/mman.h: New file.
5033 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: New file.
5034 * sysdeps/unix/bsd/osf1/msync.S: New file.
5035 * sysdeps/unix/bsd/osf1/mmap.S: New file.
5036 * sysdeps/unix/bsd/osf1/munmap.S: New file.
5037 * sysdeps/unix/bsd/osf1/mprotect.S: New file.
5038 * sysdeps/unix/bsd/osf1/sys/mman.h: New file.
5040 Tue Feb 15 16:47:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5042 * posix/unistd.h: Declare truncate, ftruncate.
5044 * misc/Makefile (headers): Add syslog.h.
5045 * misc/syslog.h: New file; just includes <sys/syslog.h>.
5047 * posix/unistd.h: Change duplicate seteuid decl to setegid.
5049 * io/Makefile (headers): Add sys/fcntl.h.
5050 * io/sys/fcntl.h: New file; just includes <fcntl.h>.
5052 Mon Feb 14 10:36:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5054 * Makerules (library pattern rule): Depend on
5055 $(objpfx)stamp-$(subdir) and have empty commands.
5056 ($(objpfx)stamp-$(subdir)): Move dep on $(objects) and ar cmds here.
5057 (common-mostlyclean): Remove $(objpfx)stamp-$(subdir).
5059 * Makerules (+depfiles): Filter out deps for modules in $(omit-deps).
5061 * sunrpc/Makefile (omit-deps): Define new variable.
5063 * Makerules ($(libc.a)(__.SYMDEF)): Depend on $(+libobjs), not
5065 * Makefile ($(libc.a)(__.SYMDEF)): Depend on subdir_lib.
5067 * Makerules (+depfiles): Include deps for $(extra-objs).
5069 * sunrpc/rpcsvc/klm_prot.x: Move program definition to end.
5071 * sunrpc/Makefile (lib): Depend on $(objpfx)librpcsvc.a.
5073 * time/zic.c: Set CP to NAME before dereferencing.
5075 * sunrpc/Makefile ($(objpfx)x%.c): Target fixed from $(objpfx)x%.c.
5076 ($(objpfx)rpcsvc/%.h): Target renamed from $(includedir)rpcsvc/%.h.
5077 Make each x%.o file depend on the corresponding rpcsvc/%.h file.
5078 (headers): Add rpcsvc/%.h.
5079 (install-others): Remove generated rpcsvc headers.
5080 (generated): Define to include generated rpcsvc headers and sources.
5082 * sysdeps/m68k/fpu/acos.c: Add __CONSTVALUE to defn.
5083 * sysdeps/m68k/fpu/ldexp.c: Likewise.
5084 * sysdeps/m68k/fpu/pow.c: Likewise.
5085 * sysdeps/m68k/fpu/fmod.c: Likewise.
5086 * sysdeps/m68k/fpu/atan2.c: Likewise.
5087 * sysdeps/m68k/fpu/__drem.c: Likewise.
5088 * sysdeps/m68k/fpu/__isinf.c: Likewise.
5089 * sysdeps/generic/hypot.c: Likewise.
5090 * sysdeps/m68k/fpu/__logb.c: Likewise.
5092 * sysdeps/unix/bsd/m68k/sysdep.S: Swap operands in cmpl.
5094 Sun Feb 13 19:49:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5096 * sysdeps/m68k/Makefile (compile-command.S): Remove definition
5097 that did kludgey # hackery.
5098 * sysdeps/unix/bsd/hp/m68k/sysdep.h (PSEUDO): Add missing close paren.
5099 (POUND): Define (no arg) to just `#' (a single pound sign).
5100 (PSEUDO, DO_CALL): Use `POUND foo' in place of `POUND(foo)'.
5101 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
5102 * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
5103 * sysdeps/unix/bsd/sun/m68k/__brk.S: Use #0, not POUND(0).
5104 * sysdeps/unix/bsd/hp/m68k/__brk.S: Use #__end instead of POUND(__end).
5106 Fri Feb 11 00:29:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5108 * configure.in (Makefile): Set objdir instead of ARCH in submake cmd.
5110 * time/mktime.c: Define __P if undefined.
5112 * assert/assert.h (__ASSERT_FUNCTION): Check __GNUC_MINOR__<6 if
5113 defined(__cplusplus).
5115 Thu Feb 10 00:52:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5117 * sysdeps/unix/sysv/__sigact.c: Use __sigismember and
5118 __sigemptyset on sa_mask instead of assuming it's an int.
5120 * sysdeps/unix/sysv/sysv4/sigset.h (__sigismember): Declare arg
5121 SET to be a pointer to const.
5123 * sysdeps/posix/__sigpause.c: Convert MASK to a sigset_t with a loop.
5125 * sysdeps/posix/__sigblock.c: When sigset_t==mask, take address of
5126 SET or OSET, cast to int *, and dereference.
5127 * sysdeps/posix/__sigstmsk.c: Likewise.
5128 * sysdeps/posix/__sigvec.c: Likewise.
5130 Add the -lrpcsvc library of XDR routines for standard SunRPC protocols.
5131 * sunrpc/Makefile (install-lib): Define to include librpcsvc.a.
5132 (rpcsvc-objs): New variable.
5133 (extra-objs): Add $(rpcsvc-objs).
5134 ($(objpfxlibrpcsvc.a): New target.
5135 ($(objpfx)x%.o): New rule to rpcgen XDR routines.
5137 Wed Feb 9 11:59:33 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5139 * time/zic.c (mkdirs): Reapply fix to avoid writing into passed ptr.
5141 * sunrpc/Makefile (distribute): Add etc.rpc.
5142 ($(includedir)/bootparam_prot.h): Change target to
5143 $(includedir)/rpcsvc/bootparam_prot.h and dep to
5144 $(includedir)/rpcsvc/bootparam.h.
5145 (install-others): Change reference.
5147 * sunrpc/rpc_util.h: Comment out bogus decl of sprintf.
5149 * Makerules ($(libc.a)(__.SYMDEF)): Depend on lib-noranlib instead
5150 of $(+libobjs); this way makes the parent do subdir_lib.
5152 * sysdeps/unix/sysv/sysv4/sigset.h: Protect types with #ifndef
5153 _SIGSET_H_types. Protect rest with #if !defined (_SIGSET_H_fns)
5154 && defined (_SIGNAL_H).
5156 Tue Feb 8 19:00:42 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5160 * sysdeps/unix/sysv/sysv4/sigset.h: Fix typos (omitted __s).
5162 Mon Feb 7 14:31:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5164 * Makerules ($(libc.a)): Depend on $(libc.a)(__.SYMDEF); no commands.
5165 ($(+libobjs)): Remove static pattern rule.
5166 (ar-it): Target removed.
5167 Replace with pattern rule to catch %(*.o) for all $(objects).
5168 ($(libc.a)(__.SYMDEF)): New target.
5169 (lib-noranlib, $(libdir)/lib$(libprefix)c.a): Don't depend on ar-it.
5171 * sysdeps/unix/sparc/sysdep.h (PSEUDO): Add nop after jmp; the
5172 next insn is most likely a retl, which causes interesting behavior.
5174 * stdio/vfprintf.c: Pass WORKEND+1 to _itoa, not WORKEND.
5175 Subtract one from result of _itoa when setting W.
5177 * time/{africa,asia,australasia,backward,europe,leapseconds,
5178 northamerica,southamerica,zic.c}: New code and data from ADO.
5180 Sun Feb 6 13:55:27 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5182 * sunrpc: New directory; code from Sun's RPCSRC-4.0.
5183 * sysdeps/unix/inet/Subdirs: Add sunrpc.
5184 * inet/netdb.h: #include <rpc/netdb.h> at end.
5186 * Make-dist ($(tardir).tar): Use -v when extracting from dist.tar
5187 and pipe output to doschk.
5189 * Makeconfig (etcdir): New variable.
5190 (localtime-file): Use that in default value.
5192 * Makerules (depend-$(subdir)): Include dep files for all .o files
5193 listed in $(extra-objs).
5195 * posix/sys/types.h (NFDBITS): #define to __NFDBITS.
5197 * inet/netinet/in.h (INADDR_LOOPBACK): Don't define if already
5198 defined; avoids changing source which defines it before including this.
5199 (struct sockaddr_in): Rename `__pad' member to `sin_zero'; some
5200 code wants to bzero the area just for paranoia.
5202 Make cleaning targets only remove common (not specific to one
5203 subdir) generated files if run from the parent directory.
5204 * Makefile (parent-clean): Remove $(common-generated) also.
5205 * sysdeps/unix/Makefile (local_lim.h, sys/param.h, errnos.h,
5206 ioctls.h, syscall.h): Append to $(common-generated), not $(generated).
5207 * sysdeps/posix/Makefile (stdio_lim.h): Likewise.
5209 * signal/signal.h: Declare psignal here.
5210 * stdio/stdio.h: Not here.
5212 * stdio/stdio.h [__OPTIMIZE__] (vprintf, vfscanf, vscanf,
5213 vsscanf): Define as extern inline functions instead of macros.
5215 * configure.in (names): Check existence of implied dirs and warn
5218 Sat Feb 5 13:38:26 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5222 * resource/sys/resource.h (RUSAGE_SELF, RUSAGE_CHILDREN): #define
5223 to self for things that test #ifdef.
5225 * sysdeps/unix/common/Dist: Remove bsd_getgrp.S.
5227 * sysdeps/unix/Makefile: Don't include param.h.dep ifdef no_deps.
5229 * Makerules (vpath %.h): Use $(common-objpfx) in place of $(objpfx).
5231 * sysdeps/unix/bsd/i386/__vfork.S: Decrement R1 and AND it with R0
5232 to avoid the test and branch.
5234 * sysdeps/unix/bsd/getprio.S, sysdeps/unix/bsd/setprio.S,
5235 sysdeps/unix/bsd/__setreuid.S, sysdeps/unix/bsd/__setregid.S: Moved to
5236 sysdeps/unix/common.
5238 * sysdeps/unix/reboot.S: New file.
5240 * sysdeps/unix/sysv/sysv4/solaris2/signum.h: New file.
5241 * sysdeps/unix/sysv/sysv4/signum.h: New file.
5242 * sysdeps/unix/sysv/sysv4/sigset.h: New file.
5243 * sysdeps/unix/sysv/sysv4/sigaction.h (struct sigaction): Swap
5244 positions of sa_flags and sa_mask members (sa_flags is first now).
5245 (SA_NOCLDWAIT): Renamed from SA_NOSCLDWAIT.
5247 * sysdeps/unix/bsd/init-posix.c (_posix_start_time): Initialize it.
5249 * Makerules (open-check-inhibit-asm): Use : for empty commands in case.
5251 * time/leapseconds: New version from ADO, adds 1994 leap second.
5253 Thu Feb 3 02:15:30 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5255 * sysdeps/unix/bsd/ulimit.c: Define ulimit instead of __ulimit.
5257 Wed Feb 2 16:56:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5259 * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: Moved to unix/sysv/sysv4.
5260 Replaced with #include of that file.
5262 * sysdeps/unix/sysv/sysv4/solaris2/sigaltstack.S: Moved to
5263 sysdeps/unix/sysv/sysv4/sigaltstk.S.
5265 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Syscall lxstat, not xlstat.
5266 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Syscall fxstat, not xfstat.
5268 Tue Feb 1 18:22:21 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5270 * stdio/_itoa.c, stdio/_itoa.h: New files.
5271 * stdio/Makefile (routines): Add _itoa.
5272 (distribute): Add _itoa.h.
5273 * stdio/vfprintf.c: Use _itoa instead of doing it by hand.
5275 * sysdeps/unix/sparc/vfork.S: Add nop after jmp. Bad delay slot,
5277 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
5279 Mon Jan 31 19:33:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5281 * assert/assert.c (__assert_fail): Take 4th arg FUNCTION; if it is
5282 not null, print it in the message. Also declare __NORETURN.
5283 * assert/assert.h (__assert_fail): Update decl; also add __NORETURN.
5284 (__ASSERT_FUNCTION): #define to be __PRETTY_FUNCTION__ for GCC>=2.4.
5285 (assert): Pass __ASSERT_FUNCTION to __assert_fail.
5287 * sysdeps/unix/bsd/sun/sparc/vfork.S: Moved to sysdeps/unix/sparc.
5288 Use C_SYMBOL_NAME on __vfork instead of prepending an underscore.
5290 * sysdeps/unix/sysv/sysv4/solaris2/{start.c,sysdep.S,sysdep.h}: Moved
5291 to sysdeps/unix/sysv/sysv4/solaris2/sparc.
5293 * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
5294 bsd/ultrix4/mips,bsd/vax}/sysdep.S: Don't do EWOULDBLOCK_sys->EAGAIN
5295 mapping #if EWOULDBLOCK_sys == EAGAIN.
5297 * sysdeps/unix/sparc/sysdep.h [NO_UNDERSCORES]: #define syscall_error
5298 to C_SYMBOL_NAME(__syscall_error).
5299 (PSEUDO): On error, jump to syscall_error instead of setting errno.
5300 * sysdeps/unix/sparc/sysdep.S: New file.
5302 * sysdeps/unix/sysv/sysv4/i386/__vfork.S: New file, just #include
5303 unix/bsd/i386 version.
5305 * sysdeps/unix/bsd/i386/__vfork.S: Use `scratch' in place of %edx.
5307 Thu Jan 27 16:46:03 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5309 * configure.in (asm-CPPFLAGS): Add new check to see if assembling
5310 a .S file loses without -P. If so, set asm-CPPFLAGS=-P in config.make.
5312 * configure.in (stddef.h): Print msg under --verbose.
5314 * manual/Makefile (subdir): Define outside of `export' directive,
5317 * time/mktime.c (search): Take new arg PRODUCER, fn to call
5318 instead of `localtime'.
5319 (_mktime_internal): New function; all code from old `mktime', but
5320 take 2nd arg PRODUCER and pass along to `search'.
5321 (mktime): Rewrite to call _mktime_internal with localtime.
5322 * time/Makefile (routines): Add dysize, timegm, timelocal.
5323 * time/time.h (_mktime_internal): Declare it.
5324 [__USE_MISC]: Declare timegm, timelocal, dysize.
5325 * time/dysize.c: New file.
5326 * time/timegm.c: New file.
5327 * time/timelocal.c: New file.
5329 Wed Jan 26 20:06:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5331 Remove the hackery on getgroups for most systems. It is no longer
5332 necessary because gid_t is now the same size as int.
5333 * sysdeps/unix/common/Makefile (sysdep_routines): Don't add bsd_getgrp.
5334 * sysdeps/unix/common/bsd_getgrp.S: File removed.
5335 * sysdeps/unix/common/__getgrps.S: New file.
5336 * sysdeps/unix/bsd/sequent/i386/__getgrps.S: New file.
5338 Clean up the rules for cleaning up.
5339 * Makerules (common-mostlyclean): New target; remove object files.
5340 (common-clean): New target; depend on common-mostlyclean, and
5341 remove dep files and generated files.
5342 (clean): Depend on common-clean.
5343 (mostlyclean): Depend on common-mostlyclean.
5344 * Rules (mostlyclean): Target removed.
5345 (clean): Target removed.
5346 (distclean): New target; depend on clean.
5347 (realclean): New target; depend on distclean.
5348 (subdir_distclean): New target; depend on distclean.
5349 (subdir_realclean): New target; depend on realclean.
5350 (subdir_mostlyclean): New target; depend on mostlyclean.
5351 * Makefile (+subdir_targets): Add subdir_distclean,
5352 subdir_realclean; change mostlyclean to subdir_mostlyclean.
5353 (parent-mostlyclean): New target; depend on common-mostlyclean and
5354 remove libc.a and $(install-lib).
5355 (parent-clean): New target; depend on parent-mostlyclean and
5356 common-clean, and remove sysdirs sysd-dirs sysd-Makefile.
5357 (clean): Depend on parent-clean and just do submake for subdirs.
5358 (mostlyclean): Depend on parent-clean and just do submake for subdirs.
5359 (distclean, realclean): Depend on parent-clean and do submake
5360 distclean-1 passing it variable assignment distclean-1=$@.
5361 (distclean-1): Depend on subdir_$(distclean-1) and remove
5362 $(config-generated), config.status, config.make, Makefile (if not
5364 * manual/Makefile (subdir_clean): Target removed.
5365 (subdir_%): New rule to handle all such targets.
5366 (distclean): Depend on clean, not mostlyclean.
5367 (realclean): Depend on distclean, not clean.
5369 * sysdeps/unix/configure (unix_generated_dirpfx): New variable.
5370 Use it to put created .S files in sysdeps/unix if configured in
5371 srcdir, else in current directory.
5372 (unix_generated): Prepend $unix_generated_dirpfx.
5373 Have generated config.make fragment prepend $(objpfx).
5374 * sysdeps/unix/Makefile (generated): Don't set it.
5375 (config-generated): Set this instead; don't prepend any directory
5376 prefix to $(unix-generated).
5378 Fixes for SVR4 wait from jmc@ksu.ksu.edu (James Michael Chacon):
5379 * sysdeps/unix/sysv/sysv4/siginfo.h (__siginfo_t): Add `__code'
5381 (EXITED, KILLED, CORED, TRAPPED, STOPPED, CONTINUED): New macros.
5382 * sysdeps/unix/sysv/sysv4/__waitpid.c: Switch on INFOP.__code and
5383 construct *STAT_LOC from INFOP.__status accordingly.
5385 * stdlib/testsort.c (main): Use puts to add newlines to printed lines.
5387 Tue Jan 25 14:32:01 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5391 * manual/Makefile (%.z): Change target pattern to %.gz.
5392 (dist): Comment out dep. Don't really need the separate doc dist.
5394 * stdio/stdio.h [__OPTIMIZE__] (getchar, putchar, getdelim,
5395 getline, __getline): Use extern inlines instead of macros.
5397 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Fix typo ($eax for %eax).
5399 * sysdeps/unix/siglist.c [! HAVE_GNU_LD] (_sys_siglist): #define
5401 * sysdeps/posix/__gettod.c [! HAVE_GNU_LD] (__daylight,
5402 __timezone, __tzname): #define to non-__ names.
5404 * math/math.h [__USE_BSD] (M_E, M_LOG2E, M_LOG10E, M_LN2, M-LN10,
5405 M_PI, M_PI_2, M_PI_4, M_1_PI, M_2_PI, M_2_SQRTPI, M_SQRT2,
5406 M_SQRT1_2): New macros.
5408 Tue Jan 25 14:01:28 1994 Michael I. Bushnell (mib at ernst.gnu.ai.mit.edu)
5410 * sysdeps/mach/hurd/start.c (start1): Decide separately whether to
5411 split argv and whether to split envp.
5413 * sysdeps/mach/hurd/i386/sysdep.h: File deleted.
5414 sysdeps/mach/i386/sysdep.h: Delete SET_SP macro.
5415 sysdeps/mach/hurd/start.c (_start): Don't call GET_SP; set globals
5416 instead of locals from exec_startup message.
5418 * misc/progname.c: Don't try to set
5419 program_invocation_name or program_invocation_short_name if argv
5420 or argv[0] is invalid.
5422 Mon Jan 24 16:51:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5424 * sysdeps/unix/sysv/sysv4/__waitpid.c: Return INFOP.__pid instead of
5425 the PID we were called with.
5427 * sysdeps/unix/sysv/__mkdir.c (__mkdir): Restore errno before
5428 returning, not after (lot of good that did).
5430 * sysdeps/unix/bsd/ultrix4/system.c, sysdeps/unix/bsd/bsd4.4/system.c,
5431 sysdeps/unix/bsd/osf1/system.c, sysdeps/unix/sysv/sco3.2.4/system.c,
5432 sysdeps/unix/bsd/sun/sunos4/system.c, sysdeps/unix/sysv/sysv4/system.c:
5433 New files. Avoid sysdeps/unix/system.c, which defines NO_WAITPID.
5435 * set-init.c (__libc_init): Use `n' count field instead of
5436 checking for null terminator. The latter loses when there are no
5437 set elts at all, and only one word is allocated for __libc_subinit.
5439 * sysdeps/generic/waitstatus.h (__WCOREFLAG): New macro.
5440 * posix/sys/wait.h [__USE_BSD] (WCOREFLAG): New; define to __WCOREFLAG.
5442 * stdio/fileno.c (fileno): Call __stdio_check_funcs.
5444 * stdio/tst-fileno.c: New file.
5446 Fri Jan 21 16:56:50 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5448 * Rules (dep-dummy-lib, make-dummy-lib): New variables.
5449 ($(objpfx)dummy.o): New file rule.
5450 * posix/Makefile ($(objpfx)libposix.a): Depend on
5451 $(dep-dummy-lib), and use $(make-dummy-lib) for commands.
5452 * math/Makefile ($(objpfx)libm.a): Likewise.
5454 * sysdeps/unix/sysv/sysv4/i386/__stat.S: New file.
5455 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
5456 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
5458 * sysdeps/sparc/bytesex.h: New file.
5460 Thu Jan 20 12:45:35 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5462 * sysdeps/stub/syscall.c (syscall): Declare arg type as int.
5464 Wed Jan 19 18:18:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5466 * Makerules ($(before-compile) rule): Protect w/`ifdef before-compile'.
5468 * manual/Makefile: Change all `mv' uses to `mv -f'.
5469 (subdir_install): Depend on stubs.
5471 * Makerules ($(objpfx)%.dep: %.s): Depend also on $(objpfx)dummy.dep.
5473 Tue Jan 18 19:12:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5475 * stdlib/testsort.c (main): Swap dimensions of BUFS array.
5477 Mon Jan 17 17:31:28 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5479 * Version 1.07 released.
5481 * Makerules (install-lib rules): Fix typos: missing / after $(libdir).
5483 * posix/Makefile (lib): Depend on $(objpfx)libposix.a
5484 * malloc/Makefile (lib): Depend on $(objpfx)libmcheck.a.
5485 * math/Makefile (lib): Depend on $(objpfx)libm.a.
5486 * misc/Makefile (lib): Depend on $(objpfx)libbsd-compat.a.
5488 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: New file.
5490 * stdio/internals.c (flushbuf): Don't try aligned-block writing
5491 calculation when FP->__buffer is nil.
5493 Mon Jan 17 17:27:56 1994 Jim Meyering (meyering@comco.com)
5495 * sysdeps/generic/memcmp.c [!_LIBC]: Include <sys/types.h> for
5496 definition of size_t.
5498 Mon Jan 17 17:13:11 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5500 * sysdeps/unix/sysv/sco3.2.4/syscall.h: Add SYS_[gs]etitimer and
5501 SYS_pgrpsys (from scottb).
5503 * sysdeps/unix/configure: Check for getitimer and setitimer syscalls.
5505 * sysdeps/unix/bsd/sequent/i386/syscall.S: New file from jason.
5507 Sun Jan 16 00:41:03 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5509 * string/strerror.c (strerror): Declare BUF to be array of char.
5513 Sat Jan 15 17:27:26 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5515 * stdlib/testsort.c (main): Rewrite not to read any input; instead
5516 generate some random alphabetic strings.
5518 * stdlib/Makefile (testsort.input): Rules removed.
5520 * sysdeps/unix/sysv/i386/__sigret.S: New file.
5522 * stdio/Makefile (distribute): Add mpn-copy.mk.
5523 Remove 68k rules; include mpn-copy.mk for dir names needing
5524 translation, and rewrite no-68k rules to be generic for the rest.
5525 (mpn-copy-sysdep): New variable.
5526 (mpn-stuff): Include $(mpn-copy-sysdep).
5527 (clean-mpn): Use rm -f.
5529 * configure.in (machine): Match m68... and m88..., not mc[68]8....
5531 * stdio/printf_fp.c: For length arg to __mpn_extract_double, pass
5532 actual number of limbs allocated for F, not LDBL_MANT_DIG.
5534 Fri Jan 14 19:09:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5536 * sysdeps/unix/i386/sysdep.S: Fixed typo: `movl', not `move'.
5538 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Swap args in cmpl insn.
5540 Thu Jan 13 17:09:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5544 * sysdeps/mips/sqrt.c: File removed. Ian says only the r[46]00
5545 have `sqrt.d' and GCC open codes it anyway. Perhaps someday
5546 Brendan will be able to explain his rationale for writing this. :(
5548 Tue Jan 11 18:10:17 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5550 * posix/sys/wait.h (__WAIT_STATUS, __WAIT_STATUS_DEFN): Use snazzy
5551 version only for GCC >= 2.6 (was 2.4); 2.5.7 produces bad code on
5552 sparc when the union arg type is used.
5554 * Makeconfig (libprefix): New variable.
5555 * Makerules ($(libdir)/libc.a, install): Insert $(libprefix)
5556 between `lib' and `c' in the file name.
5557 [install-lib] (install-lib.a, install-lib-non.a): New variables
5558 separate out $(install-lib) elts which do or don't match lib%.a.
5559 ($(libdir)/...): Split into two rules for above two cases. Put
5560 $(libprefix) on installed files; for lib%.a insert it before %
5561 rather than at beginning of file name.
5565 * Makerules (compilation rules): Move directoryless rules (for
5566 finding sources in .) before include sysd-rules. Omit rules to
5567 compile from sources in $(objpfx) if not using $(objdir).
5569 * sysdeps/stub/errlist.c [! HAVE_GNU_LD]: #define _sys_errlist to
5570 sys_errlist and _sys_nerr to sys_nerr.
5572 Mon Jan 10 15:01:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5574 * time/Makefile (z.%): In generated rules, depend on yearistype.
5575 (tzcompile): Pass -y flag with file name of yearistype.
5577 Sun Jan 9 17:51:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5579 * misc/bsd-compat.c (longjmp): Use __NORETURN in type.
5581 * sysdeps/ieee754/dbl2mpn.c [N == 2]: For denormal, when
5582 RES_PTR[1] is zero, return 1 instead of 2.
5584 Sun Jan 9 13:10:25 1994 Torbjorn Granlund (tege@adder.cygnus.com)
5586 * stdio/printf_fp.c: Solve 10+ problems.
5587 * ieee754/dbl2mpn.c: Correctly detect denorms. Get the denom
5590 Sun Jan 9 00:40:48 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5592 * sysdeps/ieee754/dbl2mpn.c: Test BITS_PER_MP_LIMB and handle
5593 either 32 or 64; #error if not one of those.
5595 * sysdeps/stub/udiv_qrnnd.c: Renamed from udiv_qrnnd.S.
5597 Sat Jan 8 00:25:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5601 * Makerules ($(libdir)/libc.a): Depend on subdir_install.
5603 Thu Jan 6 02:17:07 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5605 * Makerules ($(bindir)/$(install)): Use $(INSTALL_PROGRAM), not
5607 ($(libdir)/libc.a): Don't depend on lib-noranlib; on libobjs and
5608 ar-it instead. Run ranlib on target after installing.
5609 (installdirs): Target removed; deps on it removed.
5610 (install-{bin,lib,data,headers,others,no-libc.a}): Renamed to
5611 `install-*-nosubdir'.
5612 (install-%): New pattern rule.
5613 (install): Depend only on install-no-libc.a-nosubdir.
5614 * Rules (subdir_install): Depend on lib-noranlib and stubs.
5615 * Makefile (headers): Remove stubs.h.
5616 (install-others): Define to include $(includedir)/stubs.h.
5617 ($(includedir)/stubs.h): New target for $(objpfx)stubs.h rule.
5618 Depend only on subdir_install, and install directly.
5620 * Makerules (sed-remove-objpfx): Require SPC before $(objpfx) to match.
5622 * time/zic.c (mkdirs): Duplicate passed string in allocated memory
5623 and free it when done.
5625 * dirent/dirent.h [__USE_BSD || __USE_MISC]: Get size_t from stddef.h.
5627 * sysdeps/ieee754/dbl2mpn.c: For zero value, return 1 limb not 0.
5629 * Makerules (make-dummy-dep): Use filter-out to invert sense of
5630 wildcard match, so we produce a command if $@ does *not* exist.c
5632 * stdio/Makefile (routines): Add dbl2mpn.
5634 Wed Jan 5 17:52:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5636 * sysdeps/unix/i386/sysdep.S (syscall_error): Reverse args in
5637 `cmpl' insn; non-GNU assembler is feeble-minded.
5639 Mon Jan 3 18:53:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5641 * configure.in (sysnames): Remove / before $mach; it is prepended
5642 already by the loop constructing $mach from $machine.
5644 Tue Dec 28 07:38:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5646 * stdio/Makefile [gmp-srcdir] (clean-mpn): New target.
5648 * configure.in (machine): Turn i[34]86 into i386/&, sparc* into
5649 sparc/&, m68k into m68k/mc68020, mc680?0 into m68k/&, mips or
5650 r2000 into mips/r3000, r[34]000 into mips/&.
5651 (mach): New variable; processed from $machine as $base from $base_os.
5652 Use that in place of $machine in loop finding sysdep directories.
5654 * stdio/Makefile (aux): Add mp_clz_tab.
5655 (mpn-copy): Add mp_clz_tab.c.
5656 (mpn-routines): Add udiv_qrnnd.
5657 (mpn-sysdep): Look for .s files too.
5658 * sysdeps/stub/udiv_qrnnd.S: New file.
5660 Sat Dec 25 00:20:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5664 * Makefile (distribute): Add install.sh.
5665 * install.sh: New file.
5667 * sysdeps/i386/Makefile: New file.
5668 (asm-CPPFLAGS): Add -DGAS_SYNTAX.
5670 * stdio/printf_fp.c: Major rewrite of sysdeps/generic/printf_fp.c,
5671 working with the fractional parts as multiprecision integers
5672 instead of doubles, using mpn functions from GNU MP. Done with
5673 much help from tege@cygnus.com.
5674 * sysdeps/generic/printf_fp.c, sysdeps/ieee754/printf_fp.c,
5675 sysdeps/m68k/fpu/printf_fp.c: Files removed.
5677 Fri Dec 24 23:09:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5679 * sysdeps/stub/dbl2mpn.c, sysdeps/iee754/dbl2mpn.c: New files.
5680 * sysdeps/stub/asm.h: New file.
5681 * sysdeps/m68k/add_n.S, sysdeps/m68k/addmul_1.S,
5682 sysdeps/m68k/mul_1.S, sysdeps/m68k/sub_n.S,
5683 sysdeps/m68k/submul_1.S, sysdeps/m68k/asm.h,
5684 sysdeps/generic/add_1.c, sysdeps/generic/add_n.c,
5685 sysdeps/generic/addmul_1.c, sysdeps/generic/cmp.c,
5686 sysdeps/generic/divmod.c, sysdeps/generic/divmod_1.c,
5687 sysdeps/generic/lshift.c, sysdeps/generic/rshift.c,
5688 sysdeps/generic/mod_1.c, sysdeps/generic/mul.c,
5689 sysdeps/generic/mul_1.c, sysdeps/generic/mul_n.c,
5690 sysdeps/generic/sub_n.c, sysdeps/generic/submul_1.c,
5691 sysdeps/generic/get_str.c, sysdeps/i386/addmul_1.S,
5692 sysdeps/i386/mul_1.S, sysdeps/i386/submul_1.S,
5693 sysdeps/alpha/gmp-mparam.h, sysdeps/generic/gmp-mparam.h,
5694 sysdeps/i386/asm.h, stdio/longlong.h, stdio/gmp.h,
5695 stdio/gmp-impl.h: New files, taken from GNU MP.
5696 * stdio/Makefile (mpn-headers, mpn-routines): New variables.
5697 (routines): Include $(mpn-routines).
5698 (distribute): Include $(mpn-headers).
5699 [gmp-srcdir]: Much code to copy mpn source from $(gmp-srcdir).
5700 * configure.in: Check for a --with-gmp argument and set gmp-srcdir
5701 in config.make to its value (error if no arg given). Move
5702 config_vars initialization before this (right after arg parsing).
5704 Thu Dec 23 01:44:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5706 * sysdeps/m68k/Makefile (m68k-syntax-flag): New variable.
5707 (compile-command.S): Include $(m68k-syntax-flag) in cpp flags.
5709 * manual/Makefile (install-data): New target.
5710 (install-%): New pattern rule.
5712 * Makerules ($(bindir)/...): Do $(make-target-directory) first.
5714 Thu Dec 23 01:03:19 1993 Brendan Kehoe (brendan@zen.org)
5716 Port to the DEC Alpha running OSF/1. (75% done)
5717 * sysdeps/unix/bsd/osf1/alpha/start.S: New file.
5718 * sysdeps/unix/bsd/osf1/alpha/sysdep.h: New file.
5719 * sysdeps/unix/bsd/osf1/alpha/sysdep.S: New file.
5720 * sysdeps/unix/bsd/osf1/alpha/__brk.S: New file (incomplete).
5721 * sysdeps/unix/bsd/osf1/alpha/__fork.S: New file.
5722 * sysdeps/unix/bsd/osf1/alpha/__pipe.S: New file.
5723 * sysdeps/unix/bsd/osf1/alpha/__getdents.S: New file.
5724 * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: New file.
5725 * sysdeps/unix/bsd/osf1/alpha/__wait4.S: New file.
5726 * sysdeps/unix/bsd/osf1/dirstream.h: New file.
5727 * sysdeps/unix/bsd/osf1/alpha/statbuf.h: New file.
5728 * sysdeps/unix/bsd/osf1/direct.h: New file.
5729 * sysdeps/unix/bsd/osf1/dirstream.h: New file.
5730 * sysdeps/unix/bsd/osf1/Makefile: New file, defining LDFLAGS.
5732 * sysdeps/unix/ioctls-tmpl.c [__osf1__ && __alpha__]: Clean up the
5733 ioctls that we get for an Alpha running OSF/1.
5735 * sysdeps/unix/common/glue-ctype.c: Add code for HAVE__LOCP.
5736 (main): If new macro TABLE_NAME is defined, use that for the name
5737 of the array we're writing out, rather than what's defined in TABLE.
5738 * sysdeps/unix/common/configure.in (AC_HAVE_FUNCS): Add `_locp'.
5740 * sysdeps/unix/bsd/osf1/sigaction.h: Add SA_ONSTACK, SA_RESTART,
5742 * sysdeps/alpha/setjmp.S: Add .end directive.
5744 * time/sys/time.h (struct timeval): Make members TV_SEC and
5745 TV_USEC be `int', not `long', since it won't hurt other hosts, but
5747 * resource/sys/resource.h (struct rusage): Make all non-timeval
5748 members be `long', not `int'.
5750 * sysdeps/alpha/strlen.c (strlen): Go from 0 to 7, not 3, since
5751 there are 8 bytes in a long on the Alpha. Check for '\0' after
5752 checking for C in initial byte-by-byte loop.
5753 * sysdeps/alpha/strchr.c (strchr): Likewise. Shift out to 64 when
5755 * sysdeps/alpha/memchr.c (memchr): Likewise. Return NULL if we
5756 didn't find it in N characters, or N == 0. Declare CP to be an
5759 * sysdeps/alpha/Makefile: Add divrem stuff.
5760 * sysdeps/alpha/DEFS.h: New file.
5761 * sysdeps/alpha/divrem.m4: New file.
5762 * sysdeps/alpha/macros.m4: New file.
5763 * sysdeps/alpha/Dist: Add .S files, divrem.m4, macros.m4, and DEFS.h.
5765 * sysdeps/unix/bsd/osf1/alpha/vhangup.S: New file. (Only a
5766 temporary workaround, until we figure out how to deal with the
5767 SYS_ult syscalls better.)
5768 * sysdeps/unix/bsd/osf1/alpha/killpg.S: Likewise.
5769 * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
5770 * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
5771 * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
5772 * sysdeps/unix/bsd/osf1/alpha/recv.S: Likewise.
5773 * sysdeps/unix/bsd/osf1/alpha/send.S: Likewise.
5775 * sysdeps/alpha/__math.h (__copysign): Add __CONSTVALUE.
5776 * sysdeps/alpha/__copysign.c: Define __NO_MATH_INLINES.
5777 * sysdeps/alpha/fabs.c: Likewise.
5779 Wed Dec 22 17:55:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5781 * crypt/*: New version from glad.
5783 * sysdeps/unix/sysv/sysv4/Dist: Add __getpgid.c and __setpgid.c.
5785 * dirent/Makefile (headers): Define; include dirent.h & dirstream.h.
5787 Tue Dec 21 14:24:38 1993 Brendan Kehoe (brendan@zen.org)
5789 * sysdeps/unix/sysv/sysv4/i386/statbuf.h (struct stat): Add
5790 missing member ST_FSTYPE. Fixup types on various members to make
5791 this properly reflect what the system has.
5793 * misc/ioctl.c (ioctl): Declare 2nd arg to be unsigned long int to
5794 match the change in ioctl.h.
5796 Tue Dec 21 00:01:01 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5800 * dirent/dirent.h (struct dirent): Add `d_reclen'; make `d_namlen'
5801 an `unsigned short int' instead of `size_t'.
5802 (DIR): Move typedef to sysdep file dirstream.h.
5803 * sysdeps/unix/dirstream.h: New file, broken out of dirent.h.
5804 * sysdeps/stub/dirstream.h: New file.
5805 * sysdeps/unix/bsd/dirstream.h: New file.
5806 * sysdeps/unix/bsd/readdir.c: New file.
5808 Mon Dec 20 23:29:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5810 * sysdeps/unix/start.c: Include <sysdep.h>.
5811 * sysdeps/unix/sysv/sysv4/i386/start.c: File removed.
5813 Sat Dec 18 01:37:25 1993 Brendan Kehoe (brendan@zen.org)
5815 * sysdeps/unix/sysv/sysv4/i386/start.c: New file. Same as
5816 sysdeps/unix/i386/start.c, but defines NO_UNDERSCORES.
5818 * sysdeps/unix/sysv/sysv4/waitflags.h: New file, with non-standard
5819 WEXITED and WTRAPPED macros defined.
5820 * sysdeps/unix/sysv/sysv4/__waitpid.c: New file.
5821 * sysdeps/unix/sysv/sysv4/siginfo.h: New file.
5822 * sysdeps/unix/sysv/sysv4/__waitid.S: New file.
5823 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Mention __waitid.
5824 * sysdeps/unix/sysv/sysv4/pipestream.c: New file, to avoid having
5826 * sysdeps/unix/sysv/sysv4/Dist: Added __waitid.S and siginfo.h.
5828 * sysdeps/unix/sysv/sysv4/__getpgid.c: New file.
5829 * sysdeps/unix/sysv/sysv4/__setpgid.c: New file.
5830 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Add them.
5832 * sysdeps/unix/sysv/sysv4/__getpgrp.c (__getpgrp): It's the 0th
5833 subcall for getpgrp, not 4th.
5834 * sysdeps/unix/sysv/sysv4/__setpgrp.c (__setpgrp): Likewise, it's
5835 the 1st, not the 5th.
5837 Fri Dec 17 15:05:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5839 * misc/sys/ioctl.h (__ioctl, ioctl): Make second arg `unsigned
5840 long int' instead of `int' (4.4 uses unsigned long).
5842 * string/string.h (strcat): Parameters names were swapped.
5844 Fri Dec 17 01:18:27 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
5846 * Made the Hurd error system 0x10 again; this undid many
5847 of the changes of Nov 23. Affected all the err_ files in
5848 mach; recreated sysdeps/hurd/err_hurd.sub; changed back
5849 err_kern.sub to have the Unix error codes.
5851 Thu Dec 16 15:40:25 1993 Brendan Kehoe (brendan@zen.org)
5853 * stdio/temptest.c (main): Remove the files we created once we're
5854 done. Make return type int, and exit with 0 status.
5856 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Fix typo of
5857 extra comma in sprintf call.
5859 Tue Dec 14 13:08:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5861 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Rewrote main
5862 logic. Removed INFOS structure array and replaced it with
5863 INDICES, an array of size_t. Removed INFO ptr and replaced it
5864 with IDX, which points to either elt of INDICES. Rewrite main
5865 loop to increment *IDX until it hits 62*62*62. Construct file
5866 name by dividing out two powers of 62 from *IDX and using the
5867 modulus as an index into `letters'.
5869 * sysdeps/unix/common/Makefile (sysdep_routines): Only add
5870 bsd_getgrp here if the sysdep __getgrps.? chosen is unix/common's.
5872 * posix/fnmatch.h: #undef FNM_PATHNAME, FNM_NOESCAPE, and
5873 FNM_PERIOD before defining them.
5875 * time/__tzset.c (compute_change): In M case when tallying time in
5876 months before specified month, count to RULE->m - 1, not ...+1.
5878 * manual/Makefile (realclean): Remove index, aux, and toc files
5881 Mon Dec 13 19:33:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5883 * sysdeps/posix/__wait3.c: Use __WAIT_STATUS_DEFN in place of
5884 __WAIT_STATUS in arg type.
5886 Wed Dec 8 15:59:45 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5888 * malloc/memalign.c: Set L->next and _aligned_blocks only when L
5889 is newly allocated, not when we reuse an old one.
5891 Tue Dec 7 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5893 * io/fcntl.c: Replace function_alias use with:
5894 [HAVE_GNU_LD]: Use symbol_alias.
5895 [! HAVE_GNU_LD]: Define fcntl to use stdarg and call __fcntl.
5897 Mon Dec 6 17:50:05 1993 Brendan Kehoe (brendan@zen.org)
5899 * sysdeps/unix/i386/sysdep.S (syscall_error): Fix labels so
5902 Make the Solaris port work dammit.
5903 * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h (struct stat): Make
5904 ST_DEV member be unsigned long, not short.
5906 * sysdeps/unix/sysv/sysv4/solaris2/direct.h: New file, same as
5907 sysv4/direct.h but uses strlen instead of the offset-based
5908 computation of the name length, since that doesn't reliably work
5911 * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h (PSEUDO): Don't move
5912 %g0 into %o0, since that will clobber the real return value. Take
5913 out the retl at the end, why in the world did I put it in there?
5915 Mon Dec 6 17:27:26 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5917 * Makefile ($(objpfx)crt1.o): Add target to $(objpfx)Mcrt1.o
5918 rule; generalize commands.
5919 (install-lib): Add crt1.o.
5921 * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Use -x flag to
5922 fgrep to match only entire lines.
5924 Sun Dec 5 01:53:43 1993 Brendan Kehoe (brendan@zen.org)
5926 * sysdeps/unix/bsd/ultrix4/mips/start.S: New file.
5927 * sysdeps/unix/bsd/ultrix4/mips/start.c: Deleted.
5929 Thu Dec 2 18:29:01 1993 Brendan Kehoe (brendan@zen.org)
5931 * sysdeps/unix/bsd/ultrix4/mips/sysdep.S: Don't use dollar signs
5934 * sysdeps/stub/{__wait, __wait3, __wait4}.c,
5935 sysdeps/unix/bsd/bsd4.4/{__wait, __wait3}.c,
5936 sysdeps/unix/bsd/sun/sunos4/__wait4.c,
5937 sysdeps/posix/{__wait, __wait3}.c, posix/{wait, wait3, wait4}.c: Use
5938 __WAIT_STATUS_DEFN, not __WAIT_STATUS.
5940 * sysdeps/posix/killpg.c (killpg): Make arg PGRP __pid_t, not pid_t.
5941 * sysdeps/stub/killpg.c (killpg): Likewise.
5943 * setjmp/longjmp.c (longjmp): Only use __NORETURN if !HAVE_GNU_LD.
5944 * setjmp/_longjmp.c (_longjmp): Likewise.
5946 Thu Dec 2 17:31:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5948 * posix/sys/wait.h (__WAIT_STATUS_DEFN): Define new macro.
5950 * Makerules (+install): Variable removed.
5951 (install-bin, install-lib, install-data, install-headers,
5952 install-others): New targets.
5953 (install-no-libc.a): Depend on them instead of $(+install).
5955 * Makefile (+subdir_targets): Add
5956 install-{no-libc.a,bin,lib,data,headers,others}.
5957 (install-no-libc.a): Don't depend on subdir_install.
5959 Thu Dec 2 17:14:39 1993 Brendan Kehoe (brendan@zen.org)
5961 * sysdeps/ieee754/__isnan.c (__isnan): Return __CONSTVALUE, to
5962 match declaration in math/math.h.
5964 Thu Dec 2 15:48:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5966 * time/africa, time/antarctica, time/asia, time/australasia,
5967 time/emkdir.c, time/europe, time/ialloc.c, time/northamerica,
5968 time/pacificnew, time/private.h, time/solar87, time/solar88,
5969 time/southamerica time/systemv, time/tzfile.h, time/zdump.c,
5970 time/zic.c: New data and code from ADO.
5971 * time/Makefile (tzfiles): Added backward.
5972 * time/backward: New file from ADO.
5974 * locale/C-ctype_ct.c: Remove _ISspace bit from BS (8).
5976 Wed Dec 1 00:01:30 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
5978 * mach/err_kern.sub: Frob around lack of GNU ld.
5980 * mach/errsystems.awk: The declaration of __mach_error_systems
5981 should not be static, but it should be const.
5983 * sysdeps/mach/hurd/errlist.awk (BEGIN): Deal with the case
5984 where you don't have GNU ld.
5986 * sysdeps/mach/hurd/Makefile: Define mib_hacks to make.
5988 Tue Nov 30 23:24:07 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
5990 * Makefile: install-no-libc.a needs to depend on subdir_install.
5992 Mon Nov 29 16:21:38 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
5994 * sysdeps/mach/_strerror.c: Include <mach/errorlib.h>.
5996 * hurd/setuids.c: Put entire file inside #ifndef MIB_HACKS;
5997 it uses the old auth_makeauth call.
5999 * hurd/__setauth.c: Put entire file inside #ifndef MIB_HACKS;
6000 it depends on cthreads to compile, which is not yet integrated.
6002 * hurd/hurdpath.c (__hurd_path_lookup): cast to avoid GCC warning.
6004 Wed Nov 24 00:59:15 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
6006 * hurd/Makefile: Commented out hurdauth; recent changes to
6007 auth.defs prevent it from working now.
6009 * mach/mach_error_string.c (do_compat): Change name to
6010 __mach_error_map_compat; make it no longer static.
6011 (mach_error_type, mach_error_string_int): Use
6012 __mach_error_map_compat instead of do_compat.
6013 * sysdeps/mach/_strerror.c: Use __mach_error_map_compat.
6015 * mach/devstream (output/write_some): Cast fourth argument to
6016 device_write_inband to char * to avoid warning.
6017 (output): Call to write_some mentioned variable `start' from
6018 a previous version of the function; changed this to f->__buffer.
6020 Tue Nov 23 23:16:13 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
6022 [ The net effect of the following change is to eliminate error
6023 systems which are specific to single-server Mach systems, and
6024 to put the Hurd errors where the Unix errors were. ]
6025 * mach/{err_bootstrap.sub,err_ipc.sub,err_server.sub,err_us.sub}:
6026 None of these are used for the Hurd; we shouldn't pretend that
6027 they are meaningful in our environment. The files have been
6028 renamed to equivalent names with an equal sign prepended; this
6029 will inhibit distribution and prevent the Makefile from looking at
6031 * mach/err_kern.sub: Deleted the definitios of err_codes_unix;
6032 get the strings from _sys_errlist. Rename `unix' to `hurd'.
6033 Rename err_os_sub to be err_kern_sub to match what errsystems.awk
6035 * sysdeps/mach/hurd/err_hurd.sub: Deleted this file.
6036 * sysdeps/mach/hurd/errnos.awk: Changed definition of _HURD_ERRNO
6039 * sysdeps/mach/hurd/Makefile: use gawk, not awk.
6041 * mach/errsystems.awk: Generally rewrote the printf. It's now
6042 closer to Roland's original, but without the $i mistake at all,
6045 Tue Nov 23 20:21:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6047 * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
6048 bsd/ultrix4/mips,bsd/vax}/sysdep.S: Define _ERRNO_H before
6049 including <errnos.h>; otherwise <errnos.h> does not define most
6050 macros (importantly, EAGAIN!).
6052 Tue Nov 23 12:43:38 1993 Michael I. Bushnell (mib at ernst.gnu.ai.mit.edu)
6054 * mach/errsystems.awk: $i is not an index; make i a variable and
6055 increment it properly. Don't call `err_get_system'; use the
6056 system number as the index in the array directly.
6058 * mach/errorlib.h: Added `const' in all the right places.
6059 * sysdeps/mach/hurd/err_hurd.sub: Cast _sys_errlist to
6060 the right type. Better to declare it right in stdio/stdio.h, but
6061 I don't dare change that file lest Roland call me a twit.
6062 * mach/err_us.sub: Add more brackets to initializer to shut GCC up.
6064 * sysdeps/mach/hurd/err_hurd.sub: Delete keyword `const'; this
6065 is taken care of by the `#define static static const' found in
6066 errsystems.c as created by mach/errsystems.awk.
6067 * mach/errsystems.awk: Ditto for declaration of __mach_error_systems.
6069 * sysdeps/mach/hurd/err_hurd.sub: Change <errnos.h> to <errno.h>;
6070 errnos.h doesn't define most stuff unless it is included from errno.h.
6072 * mach/mach_error_string.c (mach_error_string_int): Delete unused
6075 * mach/mach_error_string.c (do_compat): Declare to be void.
6076 (mach_error_string,mach_error_type, mach_error_string_int):
6077 Declare return type as const char *.
6078 * mach/mach_error.h: Change declarations to match.
6080 * mach/errsystems.awk: The array that split creates is origin 1,
6081 not origin 0; fixed loop to match.
6083 * sysdeps/mach/hurd/errnos.awk: Ernst's awk doesn't grok
6084 backslash-newline inside strings.
6086 Sat Nov 20 19:02:25 1993 Brendan Kehoe (brendan@zen.org)
6088 * math/__finite.c (__finite): Return __CONSTVALUE, to match math.h.
6089 * math/__scalb.c (__scalb): Likewise.
6090 * math/copysign.c (copysign): Likewise.
6091 * math/drem.c (drem): Likewise.
6092 * math/expm1.c (expm1): Likewise.
6093 * math/finite.c (finite): Likewise.
6094 * math/infnan.c (infnan): Likewise.
6095 * math/isinf.c (isinf): Likewise.
6096 * math/isnan.c (isnan): Likewise.
6097 * math/logb.c (logb): Likewise.
6098 * math/rint.c (rint): Likewise.
6099 * math/scalb.c (scalb): Likewise.
6100 * sysdeps/generic/atan.c (atan): Likewise.
6101 * sysdeps/ieee754/__copysign.c (__copysign): Likewise.
6102 * sysdeps/ieee754/__drem.c (__drem): Likewise.
6103 * sysdeps/ieee754/__isinf.c (__isinf): Likewise.
6104 * sysdeps/ieee754/__logb.c (__logb): Likewise.
6105 * sysdeps/ieee754/ldexp.c (ldexp): Likewise.
6106 * sysdeps/ieee754/log10.c (log10): Likewise.
6108 * setjmp/_longjmp (_longjmp): Add __NORETURN.
6109 * setjmp/longjmp (longjmp): Likewise.
6111 Thu Nov 18 04:16:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6113 * string/strerror.c (strerror): Call _strerror_internal to do the
6114 work, passing it a scratch buffer.
6115 * stdio/perror.c: Likewise.
6116 * string/Makefile (routines): Add _strerror.
6117 * sysdeps/generic/_strerror.c (_strerror_internal): New file.
6119 * configure.in (config.status): Make it pass its args to configure.
6121 Thu Nov 18 03:52:32 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
6123 * stdio/__vfscanf.c (__vfscanf): Put the floating point cases
6124 (e,E,f,g,G) inside #ifndef MIB_HACKS; roland thikgs strtod crashes
6125 the compiler. Wheee.
6127 Thu Nov 18 03:21:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6129 * errno.h [__USE_GNU__]: Declare program_invocation_name and
6130 program_invocation_short_name.
6132 Thu Nov 18 00:07:37 1993 Michael I. Bushnell (mib at ernst.gnu.ai.mit.edu)
6134 * sysdeps/mach/hurd/start.c (start1): Don't add one to
6135 the return value of split_args; it counts them just fine by
6136 itself. Do add one when sizing the arrays.
6138 Mon Nov 15 00:19:48 1993 Noel Cragg (noel@geech.gnu.ai.mit.edu)
6140 * time/mktime.c: add TIMES_THROUGH_SEARCH variable to make sure
6141 that we don't get caught in an infinite loop (would be bad,
6142 indeed, for a library routine).
6144 Sun Nov 14 18:48:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6146 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Use
6147 `__attribute__', not `__attributes__'.
6148 Test __GNUC_MINOR__ < 6, not < 5.
6150 Wed Nov 10 05:39:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6152 * sysdeps/unix/morecore.c: Only declare sbrk #ifdef __GNU_LIBRARY__.
6153 Cast its return value.
6155 * sysdeps/unix/bsd/m68k/syscall.S: Use movel in place of moveal.
6157 * configure.in (signed size_t check): Don't use AC_DEFINE; do it
6158 by hand and insert -U__SIZE_TYPE__ before -D.
6160 * posix/unistd.h: Declare syscall.
6162 * sysdeps/m68k/fpu/__math.h (__isnan, __isinf): Use __CONSTVALUE
6165 * configure.in (Makefile): Write ARCH=`pwd`, rather than
6166 substituting in the directory name at configure time.
6168 * sysdeps/mach/i386/syscall.S: New file.
6170 Tue Nov 9 06:29:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6172 * configure.in (os = netbsd* | 386bsd*): base_os=unix/bsd/bsd4.4.
6173 Set --with-gnu-{ld,as} implicitly when base_os is bsd4.4.
6177 * misc/Makefile (routines): Add syscall.
6178 * sysdeps/unix/syscall.S, sysdeps/stub/syscall.c,
6179 sysdeps/unix/bsd/sun/m68k/syscall.S, sysdeps/unix/bsd/m68k/syscall.S,
6180 sysdeps/unix/i386/syscall.S: New files.
6181 * sysdeps/unix/bsd/hp/m68k/sysdep.h (DO_CALL): First arg
6182 is syscall number, not name.
6183 (PSEUDO): Pass POUND (SYS_ify (syscall_name)) to DO_CALL.
6184 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h (DO_CALL, PSEUDO):
6185 Likewise. Also, do movel into d0 before linkw, so the argument
6186 could conceivably pop the stack.
6187 * sysdeps/unix/bsd/hp/m68k/__brk.S: Pass complete number to DO_CALL.
6189 * sysdeps/unix/sysv/Dist: sys_getdents.S was renamed s_getdents.S.
6191 Thu Nov 4 01:23:59 1993 Michael I. Bushnell (mib at ernst.gnu.ai.mit.edu)
6193 * string/stpncpy: Fix typo; according to gnu-stabs.h the name
6194 inside the DEFUN should be the *non* __ version.
6195 * sysdeps/generic/__stpncpy.c: Missing declaration of s.
6197 Wed Nov 3 09:35:30 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6199 * sysdeps/unix/Makefile ($(objpfx)errlist.c): Conditionalize these
6200 rules to be used only when errlist.c is otherwise a stub.
6202 Fri Oct 29 17:29:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6204 * string/stpncpy.c: New file.
6205 * sysdeps/generic/__stpncpy.c: New file.
6206 * string/Makefile (routines): Add stpncpy and __stpncpy.
6207 * string/string.h [__USE_GNU__]: Declare them.
6209 Thu Oct 28 17:13:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6211 * sysdeps/unix/errnos-tmpl.c (DO): If NAME is "EWOULDBLOCK",
6212 write "#define EWOULDBLOCK EAGAIN" and change NAME to
6214 * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
6215 bsd/ultrix4/mips,bsd/vax}/sysdep.S [EWOULDBLOCK_sys]: Translate
6216 EWOULDBLOCK_sys into EAGAIN.
6217 * Makefile (distribute): Add move-if-change.
6218 * move-if-change: New file.
6220 Tue Oct 26 18:19:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6222 * misc/sys/cdefs.h: Define __NORETURN and __CONSTVALUE.
6223 For GCC 2.5 and later, use __attributes__ (({volatile,const})).
6224 * stdlib/stdlib.h: Don't define either here.
6225 * math/math.h: Likewise.
6226 * posix/unistd.h: Likewise.
6227 * time/time.h: Likewise.
6228 * stdio/stdio.h: Likewise.
6229 * setjmp/setjmp.h: Likewise.
6231 * posix/sys/wait.h (__WAIT_STATUS): Use union hack defn for GCC
6232 2.4 and up (testing __GNUC__ and __GNUC_MINOR__).
6234 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Don't include <limits.h>.
6236 * Makerules [inhibit-sysdep-asm]
6237 (open-check-inhibit-asm, close-check-inhibit-asm): New variables.
6238 ($(+sysdir_pfx)sysd-rules): Use them around .s and .S rules.
6239 Depend on existing sysdep makefiles.
6241 Mon Oct 25 15:56:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6243 * sysdeps/mach/hurd/killpg.c: Include <sys/types.h> for pid_t.
6245 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Take new arg
6246 STREAMPTR. When non-nil, use __open with O_EXCL to test for
6247 existence, and set *STREAMPTR to new stream on returned fd.
6248 * stdio/stdio.h: Update prototype.
6249 * sysdeps/stub/tempname.c: Here too.
6250 * stdio/tmpfile.c: Pass &F to __stdio_gen_tempname instead of
6252 * stdio/tmpnam.c: Pass extra NULL arg.
6253 * stdio/tempnam.c: Likewise.
6255 * configure.in (switches): Only put --os-{release,version} here.
6256 (config.status): Write $configure_args in place of $config $switches.
6258 * signal/Makefile (routines): Renamed sigaltstack to sigaltstk.
6259 * sysdeps/stub/sigaltstack.c: Renamed to sigaltstk.c.
6260 * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: Renamed to sigaltstk.S.
6261 * sysdeps/unix/sysv/sys_getdents.S: Renamed to s_getdents.S.
6262 * sysdeps/unix/sysv/Makefile (sysdep_routines): Changed reference.
6264 Fri Oct 22 03:47:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6266 * malloc/realloc.c [MEMMOVE_MISSING]: Test this to use safe_bcopy.
6267 [emacs]: Don't define safe_bcopy.
6269 * time/zdump.c, time/europe: New versions from ADO.
6271 * Rules (dont_distribute): Export this variable.
6272 (subdir_echo-distinfo): Echo its value for +nodist+.
6274 Thu Oct 21 15:58:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6276 * sysdeps/posix/__dup2.c: Include <limits.h>.
6277 [OPEN_MAX]: Fail with EBADF if FD2>=OPEN_MAX.
6279 * sysdeps/unix/Makefile (sys/param.h): Conditionalize all this
6280 code to happen only when there is no sysdep sys/param.h.
6282 Wed Oct 20 03:35:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6284 * Makerules (make-dummy-dep): Change to `ln $(objpfx)dummy.dep $@'.
6285 ($(objpfx)dummy.dep): Create new file containing comment.
6286 ($(objpfx)%.dep: $(objpfx)%.s): Depend on $(objpfx)dummy.dep.
6287 ($(+sysdir_pfx)sysd-rules): Likewise in generated rule.
6289 Mon Oct 18 04:22:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6291 * signal/signal.h (killpg): Make PGRP arg pid_t.
6292 * sysdeps/posix/killpg.c (killpg): Likewise.
6293 * sysdeps/stub/killpg.c (killpg): Here too.
6295 * posix/glob/configure.in: Use AC_HAVE_HEADERS instead of
6296 AC_MEMORY_H and AC_UNISTD_H; omit AC_USG (not needed).
6298 * Rules (generated): New target.
6300 * Makefile (subdirs): Use filters to put mach and hurd first in
6301 the list if they are in it at all.
6302 * Makerules (before-compile): Reorder similarly, matching any
6303 generated mach or hurd files.
6305 Fri Oct 15 17:57:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6307 * sysdeps/posix/mk-stdiolim.c [! OPEN_MAX]: Use _POSIX_OPEN_MAX
6308 for FOPEN_MAX value.
6309 [! PATH_MAX]: Use 1024 (twice _POSIX_PATH_MAX) for FILENAME_MAX value.
6311 * Makerules (in-Makerules): Define this variable before including
6314 Sun Oct 10 14:31:35 1993 Jim Meyering (meyering@comco.com)
6316 * posix/fnmatch.c [CONFIG_BROKETS]: Include <config.h> only under
6317 this condition, else "config.h".
6319 Tue Oct 05 16:08:39 1993 Jim Meyering (meyering@comco.com)
6321 * time/mktime.c [CONFIG_BROKETS]: Include <config.h> only under
6322 this condition, else "config.h".
6324 Thu Sep 23 15:14:08 1993 Brendan Kehoe (brendan@zen.org)
6326 * sysdeps/unix/sysv/sysv4/__dup2.c: New file.
6328 Wed Sep 22 16:58:29 1993 Brendan Kehoe (brendan@zen.org)
6330 * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h: New file.
6331 * sysdeps/unix/sysv/sysv4/i386: New directory.
6332 * sysdeps/unix/sysv/sysv4/i386/statbuf.h: New file.
6334 Fri Sep 17 04:03:26 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6336 * Makerules (+make-deps): Put output in temp file and use atomic mv.
6338 * Makerules ($(+sysdir_pfx)sysd-rules): New target, the rule part
6339 of what was in sysd-Makefile. Include it.
6340 ($(+sysdir_pfx)sysd-Makefile): Do just includes here. Move the
6341 generated implicit rules to sysd-rules. Put the output into a
6342 temp file and use atomic mv to final target.
6343 (before-compile): Filter out existing files from value, after
6344 sysd-Makefile but before sysd-rules.
6346 Thu Sep 9 22:28:13 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6348 * Makefile (%/configure): Copy rule from Make-dist.
6350 Mon Sep 6 19:57:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6352 * Makerules (sources, objects): Move override definitions to
6353 before +depfiles calculation.
6355 * time/{asia,australasia,europe,zdump.c}: New versions from ADO (93e).
6357 Mon Aug 30 13:40:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6359 * string/string.h (memmem): Reverse argument order, to be like strstr.
6360 * sysdeps/generic/memmem.c: Here too.
6362 * dirent/scandir.c: For error return, save errno around closedir.
6363 Call closedir (DP) before returning successfully.
6365 Thu Aug 26 19:26:06 1993 Brendan Kehoe (brendan@zen.org)
6367 * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h: Rewritten to not use
6368 the generic sparc sysdep.h.
6369 (PSEUDO): Use trap 8, not 0. Also just put %g0 in %o0, without
6371 (ENTRY): Align on 4, and add a `.type' directive.
6372 * sysdeps/unix/sysv/sysv4/solaris2/sysdep.S: New file.
6374 Fri Aug 20 19:37:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6376 * sysdeps/generic/abort.c: Remove unused variable ABORTING.
6378 Thu Aug 19 17:45:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6380 * Makeconfig [!objdir] [!..] (common-objdir): Set to `.'.
6382 Wed Aug 18 15:10:13 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6384 * stdio/__vfscanf.c (__vfscanf: number): Reverse sense of
6385 NUMBER_SIGNED conditional in assignment code.
6387 Mon Aug 16 15:49:13 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6389 * sysdeps/unix/Makefile (syscall.h): Add sed
6390 s/SYS_syscall_basenum/syscall_basenum/g. SYSCALL_BASENUM is a
6391 macro both defined and used in <syscall.h>; we must undo our
6392 prependation of `SYS_'.
6396 Fri Aug 13 16:53:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6398 * stdio/__vfscanf.c: New local variable NUMBER_SIGNED.
6399 (%x, %X, %o, %u): Set it to zero.
6400 (%d, %i): Set it to one.
6401 (number): If NUMBER_SIGNED is set, use strtol and store in ...int*.
6402 If clear, use strtoul an store value in unsigned ...int*.
6404 * malloc/malloc.h: Undo last change (_AIX32).
6405 (memory_warnings): Use const instead of __const in prototype.
6407 Fri Aug 13 00:22:01 1993 John Grabowski (johng@whiskey.media.mit.edu)
6409 * configure.in (os = osf1*): base_os=unix/bsd.
6411 Thu Aug 12 16:37:13 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6413 * malloc/valloc.c [__GNU_LIBRARY__ || _LIBC]: Include <stddef.h>
6414 before trying to use size_t to declare __getpagesize.
6415 Include <sys/cdefs.h> before trying to use __P.
6417 * posix/{fnmatch,glob}.c, malloc/malloc.h [HAVE_CONFIG_H]: Include
6418 <config.h> instead of "config.h". This is so that a compilation
6419 using -I. -I$srcdir will use ./config.h rather than
6420 $srcdir/config.h (which it would do when glob.c was found in $srcdir).
6422 * malloc/malloc.h [_AIX32]: Use !__STDC__ defns of __P, const, __ptr_t.
6424 Mon Aug 9 16:56:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6426 * Makerules (-e check): Don't rely on $(findstring e,$(MAKEFLAGS))
6427 since that also trips for --no-print-directory.
6428 Instead actually see if -e's functionality is taking place.
6430 * malloc/realloc.c: Call _free_internal instead of free in most places.
6432 * configure.in (arg parsing): No spaces around = in eval.
6434 * sysdeps/i386/abort.c: New file.
6435 * stdlib/abort.c: Moved to sysdeps/generic/abort.c.
6436 (abort): Don't try to do stdio cleanup, since we can't guarantee
6439 Fri Aug 6 17:59:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6441 * Makerules ($(+install)): Don't depend on installdirs.
6442 (make-target-directory): New define.
6443 (do-install): Do $(make-target-directory) beforehand.
6445 Tue Aug 3 02:22:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6447 * sysdeps/stub/sys/reboot.h: New file.
6448 * sysdeps/unix/bsd/sys/reboot.h: New file, snarfed from 4.4.
6449 * misc/Makefile (headers): Add sys/reboot.h.
6451 * stdio/stdio.h (__io_{read,write,seek,close,fileno}): Renamed to
6452 __io_*_fn, so as not to conflict with the Hurd mig stubs.
6453 * internals.c: Changed uses.
6455 * sysdeps/unix/bsd/signum.h (SIGINFO): Define as 29.
6457 * Makerules (+includes): Don't set this here.
6458 * Makeconfig (+includes): Put $(+sysdep-includes) in the value here.
6460 * posix/unistd.h [__USE_MISC]: Declare mktemp and mkstemp.
6462 Mon Aug 2 16:59:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6464 * malloc/valloc.c: Move getpagesize goop to before malloc.h.
6465 [_LIBC]: Test this as well as __GNU_LIBRARY__ (either one) to use
6466 __getpagesize instead of "getpagesize.h".
6468 Sun Aug 1 16:55:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6470 * configure.in (arg parsing): For `--with-foo=bar', do
6471 "with_foo='bar'". For `--with-fnord', do "with_fnord=yes".
6472 * sysdeps/mach/configure: New file, groks `--with-mach=DIR'.
6474 Fri Jul 30 00:01:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6476 * configure.in (os = gnu*): Set $base_os, not $os, to mach/hurd.
6478 Thu Jul 29 17:46:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6480 * ctype/ctype.h (__isctype): Don't test !=0, to avoid possible
6483 Sun Jul 25 22:19:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6485 * setjmp/setjmp.h [! __FAVOR_BSD] (_longjmp): Define as longjmp.
6487 Thu Jul 22 14:57:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6489 * sysdeps/unix/bsd/osf1/sigaction.h: New file.
6491 * sysdeps/stub/signum.h: Deansideclized.
6492 * sysdeps/stub/pipestream.c (pclose): Test STREAM->__ispipe
6493 instead of __ispipe (STREAM).
6494 * sysdeps/stub/__wait3.c: Fix arg types.
6495 * sysdeps/stub/__ioctl.c: Add missing close paren.
6496 * sysdeps/stub/__getpgsz.c: Include <stddef.h> for size_t.
6497 * sysdeps/stub/__get[gu]id.c: Include <sys/types.h>; fix return type.
6498 * sysdeps/stub/__set[gu]id.c: Include <sys/types.h>; fix arg type.
6499 * sysdeps/stub/__mknod.c: Include <sys/types.h>; fix arg types.
6501 * sysdeps/generic/termbits.h (INLCR, ISTRIP): Fixed typo'd values.
6503 * stdio/stdio.h (vprintf): Fix last arg type to __gnuc_va_list.
6504 * stdio/vprintf.c (vprintf): Here too.
6506 * malloc/malloc.c (malloc) [SUNOS_LOCALTIME_BUG]: Put this crap
6507 after hook and initialization.
6509 * stdio/stdio.h (__validfp): Use a little anonymous struct to find
6510 the real stream ptr from in glue stream. It used to rely on using
6511 `((int *) STREAM)[1]'; but that assumes no struct padding, and
6512 there will be some when int is 32 bits and pointers are 64.
6514 * malloc/mtrace.c: Use %lx instead of %x for `size_t' formats.
6516 Wed Jul 21 18:20:41 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6518 * malloc/malloc.c (malloc): Handle SUNOS_LOCALTIME_BUG.
6520 Wed Jul 21 16:42:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6522 * time/Makefile (extra-objs): Remove gratuitous - in `z.%'.
6524 * Makefile [+gnu-stabs] (generated): Add $(objpfx)munch-init.c.
6525 (distclean): Also remove sysd-Makefile and sysd-dirs in $(objpfx).
6526 (distclean) [objdir]: Also remove $(objpfx)Makefile.
6528 * sysdeps/posix/Makefile (generated): Add $(common-objpfx)mk-stdiolim.
6529 (generated, before-compile): Take defns out of ifeq ($(subdir),posix).
6531 * sysdeps/unix/common/Makefile (generated): Include ctype-glue.c,
6534 * sysdeps/unix/configure (unix_generated): New variable; collect
6535 names of created files in it.
6536 (config_vars): Write an assignment for `unix-generated' to that list.
6537 * sysdeps/unix/Makefile (generated): Append $(unix-generated)
6538 (with either $(objpfx) or $(sysdep_dir)/unix/ prepended to each file).
6540 * Makefile (clean): Pass no_deps=t to subdir_clean make.
6542 Sun Jul 18 21:42:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6544 * malloc/malloc.c (malloc): After getting more core, recompute
6545 BLOCK before adding to _heapinfo[BLOCK].free.size.
6547 Fri Jul 16 16:32:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6549 * stdlib/Makefile (generated): Prepend $(objpfx).
6550 * sysdeps/unix/sysv/Makefile (generated): Likewise.
6552 * sysdeps/posix/mktemp.c: Return when stat fails with ENOENT, not
6555 Wed Jul 14 14:51:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6557 * locale/localeconv.c: Fix copying notice to LGPL.
6559 Mon Jul 12 21:58:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6561 * malloc/mcheck.c (reallochook): Set HDR->magic to MAGICWORD.
6563 Mon Jul 5 15:55:08 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6565 * malloc/realloc.c (memmove): Swap the args when calling safe_bcopy.
6567 Thu Jul 1 16:26:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6569 * malloc/malloc.c [_LIBC] (_malloc, _free, _realloc): Define these
6570 functions to just call malloc, free, and realloc, respectively.
6572 Wed Jun 30 16:42:10 1993 Torbjorn Granlund (tege@gnu.ai.mit.edu)
6574 * sysdeps/generic/memcmp.c (memcmp_bytes): New function for
6575 little endian machines.
6576 (memcmp_common_alignment, memcmp_not_common_alignment): Rework
6577 code computing return values.
6579 Wed Jun 30 14:42:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6581 * sysdeps/unix/Makefile (local_lim.h): Only generate local_lim.h
6582 if the sysdep version would be stub.
6584 * sysdeps/unix/mk-local_lim.c: #include <stdio.h> before all else.
6586 * configure.in (config_{machine,vendor,os}): Store config.sub's
6587 output in these new variables.
6588 (machine, vendor, os): Set these from those.
6589 (config-name.h, config.make): Write $config_* (the original values
6592 * sysdeps/unix/sysv/sysv4/pgrpsys.S: Add arg count (3).
6594 Tue Jun 29 02:47:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6598 Mon Jun 28 00:37:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6600 * stdio/internals.c (__stdio_check_funcs): New function, broken out
6602 (init_stream): Call it.
6603 * sysdeps/posix/pipestream.c (popen): Call __stdio_check_funcs
6604 before frobnicating STREAM's functions.
6606 * sysdeps/posix/pipestream.c (pclose): Free C, our data structure,
6607 not STREAM->__cookie after it's been restored.
6609 * sysdeps/generic/strchr.c: Check for '\0' as well as C, in initial
6612 * conf/portability.h: #undef BSD.
6614 Sun Jun 27 23:46:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6616 * sysdeps/unix/bsd/m68k/__wait.S [__motorola__]: Use Motorola syntax.
6617 * sysdeps/unix/bsd/m68k/sysdep.S: Likewise.
6618 * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
6619 * sysdeps/m68k/__longjmp.c (__longjmp) [__motorola__]: Use
6620 Motorola syntax in jmp insn.
6622 Fri Jun 25 16:17:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6624 * sysdeps/{stub,posix,unix/sysv/sysv4}/__sysconf.c (__sysconf):
6625 For _SC_TZNAME_MAX, just return __tzname_max ().
6626 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Define __sysconf, not
6627 sysconf. For _SC_TZNAME_MAX, just jump to __tzname_max.
6629 Undo June 21 change that made __tzname_max a variable
6630 and expected TZNAME_MAX to sometimes be defined.
6631 POSIX.1 does not require that it be defined; sysconf is enough.
6632 * time/time.h (__tzname_max): Declare as a function.
6633 * posix/posix1_lim.h: Don't include <tzname_max.h>.
6634 * sysdeps/stub/tzname_max.h: File removed.
6635 * time/Makefile (headers): Remove tzname_max.h.
6636 (distribute): Remove make-tzlim.c.
6637 (extra-objs): Remove make-tzlim.o and make-tzlim.
6638 ($(common-objpfx)tzname_max.h): Target removed.
6639 * time/make-tzlim.c: File removed.
6640 * time/__tzset.c (__tzname_cur_max): Define this variable instead
6642 (__tz_compute): Set __tzname_cur_max, not __tzname_max.
6643 (__tzname_max): New function.
6644 * time/tzfile.c (compute_tzname_max): Set __tzname_cur_max, not
6647 * malloc/malloc.h [_MALLOC_INTERNAL] [! (_LIBC || STDC_HEADERS || USG)]
6648 (memmove): Don't define.
6649 * malloc/realloc.c [!_LIBC && !STDC_HEADERS && !USG] (safe_bcopy):
6650 New static function.
6651 (memmove): Define to safe_bcopy.
6653 Wed Jun 23 15:10:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6655 * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: New file, #include sysv4 file.
6656 * sysdeps/unix/sysv/sco3.2.4/Dist: New file, list pgrpsys.S.
6658 Tue Jun 22 02:44:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6660 * sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Use
6661 pgrpsys instead of sco_pgrp.
6662 * sysdeps/unix/sysv/sco3.2.4/{Dist,sco_pgrp.S}: Files removed.
6663 * sysdeps/unix/sysv/sco3.2.4/__{getpgrp,setpgrp,setsid}.c: Just
6664 include the respective unix/sysv/sysv4 files.
6666 * sysdeps/unix/sysv/sysv4/pgrpsys.S: New file.
6667 * sysdeps/unix/sysv/sysv4/__getpgrp.c: New file.
6668 * sysdeps/unix/sysv/sysv4/__setpgrp.c: New file.
6669 * sysdeps/unix/sysv/sysv4/__setsid.c: New file.
6670 * sysdeps/unix/sysv/sysv4/Dist: Add pgrpsys.S.
6671 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Add pgrpsys.
6673 * sysdeps/unix/bsd/bsd4.4/__setsid.S: Moved from unix/sysv/sysv4.
6674 * sysdeps/unix/{bsd/sun/sunos4,bsd/ultrix4,sysv/linux}/__setsid.S:
6675 Include bsd4.4 instead of sysv4 file.
6677 Mon Jun 21 19:08:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6679 * posix/posix1_lim.h: #include <tzname_max.h>.
6680 * sysdeps/stub/tzname_max.h: New file (no-op).
6681 * time/make-tzlim.c: New file.
6682 * time/Makefile (headers): Add tzname_max.h.
6683 (distribute): Add make-tzlim.c.
6684 (extra-objs): Add make-tzlim.o and make-tzlim.
6685 ($(common-objpfx)tzname_max.h): New target.
6687 * sysdeps/unix/sysv/sco3.2.4/confname.h (_SC_TZNAME_MAX): Define.
6688 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Detect arg being
6689 _SC_TZNAME_MAX, and return max of TZNAME_MAX and __tzname_max.
6691 * sysdeps/stub/__sysconf.c: Include <time.h> and <limits.h>.
6692 Handle _SC_TZNAME_MAX and return max of TZNAME_MAX and __tzname_max.
6693 * sysdeps/posix/__sysconf.c: Change _SC_TZNAME_MAX code to that.
6694 * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
6696 * time/time.h (__tzname_max): Declare as variable, not function.
6697 * time/__tzset.c (__tzname_max): Function removed.
6698 (__tz_compute): Set the __tzname_max variable.
6699 * time/tzfile.c (compute_tzname_max): New function.
6700 (__tzfile_{read,default}): Call it.
6702 Sun Jun 20 18:32:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6704 * time/zic.c, time/asia: New versions from ADO.
6706 Wed Jun 16 17:24:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6710 Fri Jun 11 15:44:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6712 * sysdeps/unix/bsd/m68k/__pipe.S: Use `movel' instead of `moveal',
6713 which sun3 as does not appear to grok.
6714 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
6716 Thu Jun 10 20:23:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6718 * sysdeps/m68k/Makefile (as-pipe-ok): Define if -pipe is used in
6719 compiler invocations, or if using GNU as.
6720 (compile-command.S): Define using a pipe if `as-pipe-ok' is defined,
6721 otherwise with a temporary file.
6723 * Makeconfig (gnu-as): Define if -DHAVE_GNU_AS appears in $(CPPFLAGS).
6725 Wed Jun 9 15:14:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6727 * configure.in (os frobnication): Turn underscores as well as
6728 lowercase Vs into dots in os name.
6730 * sysdeps/unix/start.c [__GNUC__] (_start): Use asm name "start"
6731 only if [! NO_UNDERSCORES].
6733 Tue Jun 8 14:51:00 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
6735 * sysdeps/unix/bsd/ultrix4/mips/__handler.S: Don't save the stack
6738 Mon Jun 7 21:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6740 * time/Makefile (tzcompile): Remove -d switch, since zic-cmd has one.
6742 * time/{private.h,zic.c}: New versions from ADO.
6744 * sysdeps/unix/bsd/hp/m68k/__brk.S (error): Renamed label from `1',
6745 (__brk): Use DO_CALL instead of movel and trap.
6747 * sysdeps/unix/bsd/sony/newsos4: Renamed sysdeps/unix/bsd/sony/newsos.
6748 * sysdeps/unix/bsd/sony/m68k/{Implies,sysdep.h}: Moved there.
6750 * sysdeps/unix/bsd/hp/m68k/sysdep.h (DO_CALL): New macro, broken
6753 * sysdeps/unix/bsd/sony/newsos4/m68k/sysdep.h
6754 (DO_CALL, PSEUDO): Likewise.
6756 * configure.in: Set --with-gnu-{ld,as} for os=bsd4.4.
6758 Fri Jun 4 14:11:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6760 * sysdeps/i386/{strlen,memchr}.c: Use `repnz' instead of `repne'.
6762 * time/Makefile (zonenames): Rename zones-* to z.* so they all fit
6764 (extra-objs): Here too.
6766 * sysdeps/unix/sysv/direct.h (D_RECLEN): New macro.
6767 * sysdeps/unix/readdir.c (D_RECLEN): If not defined, define to use
6769 (readdir): Use D_RECLEN (DP) in place of DP->d_reclen.
6771 Thu Jun 3 16:54:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6773 * sysdeps/m68k/bytesex.h: New file.
6775 * sysdeps/unix/ioctls-tmpl.c [sony_news]: Define KANJI before
6776 including <sys/ioctl.h>.
6778 Wed Jun 2 17:45:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6780 * malloc/Makefile (%.gz): Renamed target from %.z; use -v flag.
6781 (malloc/ChangeLog): Use mv -f.
6783 Mon May 31 21:49:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6785 * Version 1.06.2 released.
6787 * manual/Makefile: Remove all uses of $(objpfx). Since the
6788 generated files are distributed, they reside in the source
6791 * malloc/mtrace.c: #include <stdio.h>; malloc.h no longer does.
6793 * sysdeps/posix/sleep.c: Restore signal mask to OSET before
6794 returning. Save errno on entry and restore it before returning.
6796 * Makeconfig (zonedir): New variable.
6797 * time/Makefile (localtime-file, posixrules-file, install-others,
6798 $(localtime-file), $(posixrules-file), tz-cc): Use $(zonedir) in
6799 place of $(datadir)/zoneinfo.
6800 (tzcompile): Omit -d switch.
6801 (zic-cmd): Add `-d $(zonedir)'.
6803 Sun May 30 20:04:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6805 * sysdeps/posix/stdio_init.c: (int)cookie is FD, not *(int*)cookie.
6807 * time/Makefile ($({localtime,posixrules}-file)): Don't pass -d
6808 switch (no need, since directory is compiled into zic). Don't use
6809 $(<F) to find arg for -{l,p}; just use $({localtime,posixrules}).
6811 * Makerules ($(libdir)/libc.a): Depend on installdirs.
6813 * malloc/malloc.c (malloc): #if 0 out ``if (SIZE == 0) return NULL''.
6815 * malloc/malloc.h [_MALLOC_INTERNAL]: Don't include <stdio.h>.
6816 [_MALLOC_INTERNAL]: Move config.h, limits.h, and mem* to front of file.
6817 (NULL): Move after stddef.h.
6819 * malloc/valloc.c: Don't include config.h; malloc.h already did.
6821 * malloc/malloc.c: Undo rms's change.
6823 * malloc/mcheck.c, malloc/malloc.h: Undo rms's change.
6825 Sat May 29 13:04:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6827 * malloc/malloc.c (malloc) [emacs]: If size is 0, make it 1.
6829 * malloc/malloc.h (CONST): Define this always,
6830 rather than `const' sometimes.
6831 (memory_warnings): Use CONST, not __const, in decl.
6832 * malloc/mcheck.c (checkhdr): Use CONST, not const.
6834 Fri May 28 18:29:26 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6836 * sysdeps/unix/Makefile (ioctls): Use fgrep instead of egrep to
6837 omit unwanted symbols. Filter the list of them through sort|uniq
6838 to remove duplicates first.
6840 * sysdeps/unix/Makefile (errlist.c): Use dir and notdir
6841 functions to guarantee qualified path name for make_errlist.
6843 Thu May 27 17:05:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6847 * sysdeps/sparc/Dist: Include sdiv.S, not div.S.
6849 * sysdeps/unix/common/Dist: Remove make_siglist.c.
6851 * stdio/internals.c: Declare __stdio_fileno before reference.
6853 * sysdeps/generic/{memchr,strchr,strlen}.c: Abort if words are
6854 bigger than 64 bits.
6856 Wed May 26 14:44:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6858 * Makerules [objects] (install-others): Don't add libc.a to this.
6859 (install): Depend on $(libdir)/libc.a.
6860 (intall-no-libc.a): New target, depends on $(+install).
6861 (install): Don't depend on $(+install), just on install-no-libc.a.
6862 * Rules (subdir_install): Depend on install-no-libc.a, not install.
6864 * Makefile ($(libc.a)): Don't depend on subdir_lib.
6865 (lib-noranlib): Depend on subdir_lib.
6867 Make `fileno' a per-FILE io operation.
6868 * stdio/stdio.h (__io_fileno): New typedef.
6869 (__io_functions): Add `__fileno' member.
6870 (struct __stdio_file): Remove `__fileno' member.
6871 [__USE_POSIX] [__OPTIMIZE__]: Remove fileno macro defn.
6872 [__USE_POSIX] (fileno): Remove `const' from arg in prototype.
6873 * stdio/fileno.c (fileno): Rewritten to call STREAM's __fileno fn.
6874 * sysdeps/stub/sysd-stdio.c (__stdio_fileno): New function.
6875 (__stdio_open): Return an int (zero for win, nonzero for lose),
6876 and make third arg PTR * (filled in with cookie).
6877 * stdio/stdio.h (__stdio_open): Changed prototype.
6878 * sysdeps/posix/sysd-stdio.c (__stdio_open): Likewise.
6879 (__stdio_{read,write,seek,close}): Use (int) COOKIE as the fd, rather
6880 than *(int *) COOKIE.
6881 (__stdio_fileno): New function; just returns (int) COOKIE.
6882 * sysdeps/posix/fdopen.c: Set cookie to (PTR) FD; don't set fileno.
6883 * stdio/vdprintf.c: Likewise.
6884 * stdio/fmemopen.c: Set STREAM->__io_funcs.__fileno to NULL.
6885 Set STREAM->__cookie to NULL and don't use STREAM->__fileno.
6886 * stdio/internals.c (__default_io_functions): Add __stdio_fileno.
6887 * sysdeps/posix/defs.c (stdstream): Initialize __cookie to (PTR) FD
6888 Remove __fileno initializer.
6889 Add NULL initializer for __io_funcs.__fileno.
6890 * sysdeps/posix/pipestream.c (struct child): Remove `fd' member.
6891 Add `cookie' and `funcs' members.
6892 (FUNC): Macro to define child io_funcs.
6893 (child_funcs): New variable, __io_functions struct of them.
6894 (popen): Store STREAM's original cookie and io_funcs in CHILD, and
6895 then set STREAM->__cookie to CHILD and stream->__io_funcs to
6897 (pclose): Restore STREAM's original cookie and io_funcs before
6900 * configure.in (autoconf checks): Add new check for a
6901 libc-friendly stddef.h.
6903 * sysdeps/unix/configure: Remove __getpgrp from list of syscalls.
6905 * sysdeps/generic/memchr.c: Handle 64-bit longwords.
6906 * sysdeps/generic/strlen.c: Likewise.
6907 * sysdeps/generic/strchr.c: Likewise.
6909 * sysdeps/unix/sysv/sco3.2.4/Makefile: Remove gratuitous `.c'.
6911 * Makerules [objects] (install-others): Add $(libdir)/libc.a to
6912 this, instead of adding $(libc.a) to install-lib.
6913 ($(libdir)/libc.a): New target to install from $(libc.a).
6915 * sysdeps/unix/sysv/sco3.2.4/__setsid.S: New file.
6916 * sysdeps/unix/bsd/bsd4.4/__setsid.S: New file.
6918 Mon May 24 16:49:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6920 * sysdeps/unix/sysv/linux/__setsid.S: Moved to unix/sysv/sysv4,
6921 and replaced with #include of that.
6922 * sysdeps/unix/bsd/sun/sunos4/__setsid.S: New file.
6923 * sysdeps/unix/bsd/ultrix4/__setsid.S: New file.
6925 * posix/Makefile (install): Define to getconf.
6927 * crypt: New version from glad.
6929 * sysdeps/unix/sysv/sysv4/__sysconfig.S: Renamed to sysconfig.S.
6930 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Change reference.
6931 * sysdeps/unix/sysv/sysv4/Dist: Add sysconfig.S.
6933 * sysdeps/generic/Makefile (siglist.c): Use dir and notdir
6934 functions to guarantee qualified path name for make_siglist.
6936 * time/Makefile (tzcompile): Use $(@D) for target directory, not
6937 reference to nonexistent 4th dep.
6938 (localtime-file, posixrules-file): Turn these into absolute names.
6939 (install-others): Simply refer to them.
6940 ($(datadir)/zoneinfo/{localtime,posixrules}): Change targets of
6941 these rules to $(localtime-file) and $(posixrules-file), respectively.
6942 Use $(<D) for directory to pass zic.
6944 * Makerules (installdirs): Use `sort' function to uniquize list of
6947 * time/Makefile (install-others): Use $(datadir)/zoneinfo, not
6948 $(datadir)zoneinfo (missing /).
6950 * Makerules (install-lib): Refer to `$(libc.a)' instead of `libc.a'.
6952 * setjmp/sigjmp_save.c: Renamed to sigjmp.c.
6953 * setjmp/Makefile (routines): Change reference.
6955 * sysdeps/unix/common/Makefile (siglist.c, make_siglist): Targets
6957 * sysdeps/unix/common/make_siglist.c: File removed.
6959 Sun May 23 01:00:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6961 * manual/Makefile (minimal-dist): Remove COPYING.LIB.
6962 (doc-only-dist): Put it here.
6964 Sun May 23 00:12:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6966 * Version 1.06 released.
6968 * sysdeps/sparc/Dist: Add {u,}{div,rem}.S.
6970 Sat May 22 18:17:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6972 * sysdeps/generic/make_siglist.c (main): Call signame_init, not
6975 * Makerules (native-compile): Compile $^, not just $<.
6977 * sysdeps/unix/i386/sysdep.h (PSEUDO): Omit `.text'. Some
6978 assemblers don't like `.text; ...'.
6980 * Rules (all): Mention as target first, so it is the default goal.
6982 * sysdeps/unix/i386/sysdep.S: #undef syscall_error before using it
6984 [NO_UNDERSCORES]: Define __syscall_error instead of syscall_error.
6986 * sysdeps/unix/readdir.c: Decrement d_namlen until it no longer
6989 * Makerules (+install-dirs): Variable removed.
6990 (install): Don't depend on $(+install-dirs).
6991 (installdirs): New target, to make $(dir $(+install)) using
6992 mkinstalldirs. Make $(+install) depend on it.
6993 * Makefile (distribute): Add mkinstalldirs.
6994 * mkinstalldirs: New file.
6996 * manual/Makefile (installdirs):
6997 New target, using mkinstalldirs to create $(infodir).
6998 ($(infodir)/libc.info): Depend on installdirs.
6999 (minimal-dist): Remove Makefile.
7000 (doc-only-dist): New variable, containing Makefile and mkinstalldirs.
7001 (*.tar): Depend on $(doc-only-dist).
7003 Sat May 22 16:31:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7005 Compile zoneinfo files directly into $(datadir)/zoneinfo, rather
7006 than compiling them into the source directory and then copying.
7007 * time/Makefile (zones-%): Put targets of generated rule in
7008 $(datadir)/zoneinfo, not zoneinfo.
7009 Don't make generated rules depend on zoneinfo/.
7010 (zonenames, zones-%): Write into $@.new and then use atomic mv.
7011 (zones, zoneinfo): Targets removed.
7012 (zoneinfo/localtime, zoneinfo/posixrules): Change targets to be in
7013 $(datadir)/zoneinfo; find $(localtime) and $(posixrules) there as well.
7014 ($(localtime-file), $(posixrules-file)): Targets removed.
7015 (install-data): Definition removed.
7016 (install-others): Include $(zonenames) from $(datadir)/zoneinfo; and
7017 $(localtime-file) and $(posixrules-file), from $(datadir)/zoneinfo
7018 if they are not absolute file names.
7020 * time/zic.c (dolink): If FROMFILE or TOFILE begins with a slash,
7021 just set {FROM,TO}NAME to it, instead of prepending DIRECTORY.
7022 Don't free {FROM,TO}NAME if it is {FROM,TO}FILE.
7024 Fri May 21 13:23:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7026 * sysdeps/unix/i386/sysdep.S: Paste : onto syscall_error.
7028 * sysdeps/unix/configure: Use grep -i when looking for syscalls.
7029 (unix_syscall_h): Ignore syscall.h found in sysdeps/stub.
7030 Remove __setpgrp from list of syscalls.
7032 * sysdeps/unix/Makefile ($(common-objpfx)sys/param.h): Write defn
7033 for MAXHOSTNAMELEN. The kludgemeister strikes again.
7035 * posix/Makefile (glob/ChangeLog): Use mv -f.
7037 * configure.in (os frobnication): Translate numbers separated by
7038 `v's into numbers separated by dots.
7040 * sysdeps/unix/sysv/sco3.2.4/syscall.h: New file.
7042 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Rewritten to do the
7043 canonical wait3-style magic.
7045 * sysdeps/unix/sysv/sco3.2.4/{Makefile,Dist,sco_pgrp.S,
7046 __getpgrp.c,__setpgrp.c,__setsid.c}: New files.
7048 * Makerules ($(common-objpfx)stub-$(subdir)): Add /dev/null to
7051 * manual/Makefile ($(objpfx)%.info, $(objpfx)%.dvi): New rules.
7052 ($(infodir)/libc.info): Take basename of each $<* before using it.
7053 (glibc-targets): Add stubs.
7054 (stubs, $(common-objpfx)stub-manual): New targets.
7056 * time/Makefile (distribute): Add yearistype.
7057 * time/yearistype: New file.
7059 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Don't use ARGS_4
7060 macro; just set %ecx to %esp instead. Pop the stack before doing
7061 the system call, so the add doesn't clear the condition codes.
7063 * sysdeps/unix/start.c [HAVE_GNU_LD]: Put `start' symbol alias
7064 under [! NO_UNDERSCORES && ! __GNUC__].
7066 * sysdeps/unix/sysdep.h (C_LABEL): Use ## to paste NAME and : together.
7068 * sysdeps/unix/i386/sysdep.h (DO_CALL): Add missing backslash.
7070 Thu May 20 18:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7072 * Makefile ($(+subdir_targets)): Remove old rule. Replace with
7073 static pattern rule to depend on DIR/TARGET for each subdir and target.
7074 (all-subdirs-targets): Define variable to contain names of all
7076 ($(all-subdir-targets)): Define rule for these to do sub-make.
7078 * sysdeps/unix/sysv/sysv4/direct.h (D_NAMLEN): Subtract one for
7079 the terminating null character.
7080 * sysdeps/unix/sysv/sco3.2.4/direct.h (D_NAMLEN): Copy defn from
7083 Thu May 20 11:02:59 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
7085 * sysdeps/posix/__getpgsz.c: New file.
7086 * sysdeps/unix/sysv/sysv4/__getpgsz.c: New file, include the posix one.
7087 * sysdeps/posix/__getdtsz.c: New file.
7088 * sysdeps/unix/sysv/sysv4/__getdtsz.c: New file, include the posix one.
7090 * sysdeps/unix/sysv/sysv4/{__sysconf.c, __sysconfig.S,
7091 sysconfig.h, Makefile, Dist}: New files.
7093 * sysdeps/generic/confname.h (enum for sysconf): Add _SC_PAGESIZE.
7094 * sysdeps/posix/__sysconf.c: Include stddef.h.
7095 (__getpagesize): Declare.
7096 (__sysconf, case _SC_PAGESIZE): Call __getpagesize.
7098 Wed May 19 14:03:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7100 * manual/Makefile (routines, aux, sources, objects, headers):
7103 * Makeconfig (infodir): Define.
7104 * Makefile (+other_dirs): Add manual.
7105 * manual/Makefile: Include ../Makeconfig if it exists.
7106 (subdir): Export it.
7107 (find-includes): Output variable name is $(@F), not $@.
7108 (distribute): Export it.
7109 (mostlyclean, distclean, realclean, clean, subdir_clean): New targets.
7110 (install, subdir_install): New targets.
7111 (infodir, prefix, INSTALL_DATA, INSTALL): Define vars if undefined.
7112 ($(infodir)/libc.info): New target.
7113 (dist): Use ../Make-dist if it exists.
7114 (glibc-targets): New variable.
7115 ($(glibc-targets)): Make no-op targets.
7117 * config.guess: New file, maintained by Cygnus.
7118 * configure.in: Move AC_PREPARE before arg lossage check.
7119 If $target is unset, try setting it from config.guess.
7120 * Makefile (distribute): Add config.guess.
7122 * inet/getnetbyad.c: Change first arg type to int32_t.
7123 * inet/inet_mkadr.c: Change arg types to u_int32_t.
7124 * inet/inet_lnaof.c: Change return type to u_int32_t.
7125 * inet/inet_net.c: Likewise.
7126 * inet/inet_netof.c: Likewise.
7127 * inet/res_send.c, inet/res_query.c, inet/res_mkqry.c,
7128 inet/res_init.c, inet/res_debug.c, inet/res_comp.c,
7129 inet/inet_addr.c, inet/herror.c, inet/gethstnmad.c, inet/resolv.h,
7130 inet/netdb.h, inet/arpa/nameser.h, inet/arpa/inet.h:
7131 Snarfed latest code from BIND 4.9.1.
7132 * inet/sys/bitypes.h: New file.
7133 * conf/portability.h: New file.
7134 * inet/Makefile (headers): Add sys/bitypes.h.
7135 (distribute): Define to ../conf/portability.h.
7137 * mach/__msg_destroy.c: Renamed to __msg_dest.c.
7138 * mach/mig_syms.c: Renamed from mig_support_syms.c.
7139 Added symbol alias for mig_strncpy.
7140 * mach/__mig_strncpy.c: Renamed to mig_strncpy.c.
7141 * mach/mig_strncpy.c: File removed.
7142 * mach/Makefile (routines): Remove __mig_strncpy; change
7143 mig_support_syms to mig_syms; change __msg_destroy to __msg_dest.
7145 * sysdeps/posix/Makefile: Replace instances of `objpfx' and
7146 `objdir' with `common-objpfx' and `common-objdir'.
7148 Mon May 17 16:29:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7150 * time/asctime.c: Replace ` %2d' with `%3d' in FORMAT.
7151 (asctime): Check return from sprintf being <0, not <25.
7153 * sysdeps/unix/opendir.c: Include <stdio.h> for BUFSIZ.
7155 * sysdeps/unix/i386/sysdep.h (PSEUDO): Put ; after DO_CALL use.
7157 * sysdeps/i386/ffs.c: Use `nonzero' for asm label, instead of `1f'.
7159 Sun May 16 17:59:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7161 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Don't get fancy with
7162 xchg; just push $trampoline and then push our args again, pop them
7163 after the system call.
7165 * time/tzfile.c (__tzfile_default): Don't assume TYPES[0] is
7166 standard and TYPES[1] is DST. Instead, loop through all types:
7167 if a type's isdst flag is set, set its idx to STDLEN and its
7168 offset to DSTOFF; if isdst is clear, set its idx to 0 and its
7171 * time/__tzset.c: When __tzfile_default returns having set
7172 __use_tzfile, set __tzset_run before returning.
7174 * sysdeps/posix/sleep.c: Block SIGALRM with sigprocmask before
7175 changing its handler. Use sigaction instead of signal to set the
7176 handler. Use sigsuspend to restore the blocked signals and pause
7177 atomically, instead of using pause. Be sure to disable the alarm
7178 when a signal other than SIGALRM wakes sigsuspend.
7180 * time/Makefile (zic-cmd): Put the directory before the nondirectory.
7182 * Makerules (stubs): Remove surrounding `ifdef +depfiles'...`endif'.
7184 * time/Makefile: Include ../Makeconfig before trying to use $(objpfx).
7186 * time/tzfile.c (__tzfile_compute): When there are transitions and
7187 TIMER is not before the first one, find the first transition after
7188 TIMER, and then set I to the type of the transition before it.
7189 Set INFO from types[I], not types[type_idxs[I]].
7191 * posix/Makefile (glob/configure): cd to glob before running autoconf.
7193 * time/__tzset.c (compute_change): Don't add 1900 to YEAR.
7194 (__tz_compute): Add 1900 to the year we pass to compute_change.
7196 * time/gmtime.c: After calling __offtime, zero tm_gmtoff and set
7199 * time/time.h [__OPTIMIZE__]: Remove gmtime macro version.
7201 * time/tzfile.c (__tzfile_default): Fail if NUM_TYPES < 2, not if
7204 * time/tzfile.c (__tzfile_compute): Don't take arg TM.
7205 Instead take new args long int *LEAP_CORRECT and int *LEAP_HIT.
7206 Don't apply leap second correction to __timezone; instead set
7207 *LEAP_CORRECT and *LEAP_HIT.
7208 * time/__tzset.c (tzset_run): Renamed to __tzset_run, made global.
7209 (__tzset): Change uses.
7210 (__tz_compute): Change use here as well.
7211 Make second arg be a `const struct tm *'. Don't call __tzfile_compute.
7212 * time/localtime.c: Call __tzset if __tzset_run is clear.
7213 New local vars LEAP_CORRECTION and LEAP_EXTRA_SECS.
7214 If __use_tzfile is set, call __tzfile_compute and pass it their
7215 addresses. Only need to call gmtime if __use_tzfile is clear. If
7216 it is clear, pass result of gmtime to __tz_compute, instead of
7217 dereferencing it first; and zero LEAP_CORRECTION and LEAP_EXTRA_SECS.
7218 Subtract LEAP_CORRECTION from __timezone in __offtime call.
7219 After __offtime, add LEAP_EXTRA_SECS to TP->tm_sec.
7221 * sysdeps/generic/strsep.c: Increment END when writing a null to
7222 it, and set *STRINGP to END rather than END+1, so *STRINGP never
7223 points past the null.
7225 Sat May 15 17:10:02 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7227 * time/strftime.c: Alphabetize switch cases.
7228 Add GNU extensions %h, %C, %k, %l.
7230 * time/asctime.c: Make RESULT big enough for each %d to be 2^64.
7231 Protect against tm_wday and tm_mon being out of bounds; use "???"
7234 * time/{emkdir,ialloc,scheck,zic,zdump}.c: New versions from ADO.
7236 * time/africa, time/antarctica, time/asia, time/australasia,
7237 time/europe, time/northamerica, time/southamerica,
7238 time/pacificnew, time/etcetera, time/factory, time/systemv,
7239 time/solar87, time/solar88, time/solar89, time/leapseconds:
7240 Updated from Arthur David Olsen's latest.
7242 * sysdeps/generic/__expm1.c, sysdeps/generic/asinh.c,
7243 sysdeps/generic/exp__E.c, sysdeps/generic/log.c,
7244 sysdeps/generic/log1p.c, sysdeps/generic/mathimpl.h,
7245 sysdeps/generic/pow.c, sysdeps/mach/hurd/__ioctl.c,
7246 sysdeps/mach/hurd/stdio_init.c, sysdeps/unix/bsd/clock.c: Put
7247 `const' qualifier always after storage classes.
7249 * sysdeps/unix/bsd/sequent/i386/__sigvec.S (trampoline): Use
7251 (__sigvec): Exchange the scratch reg with 16(%esp) (fourth arg
7252 slot), not 0(%esp) (return PC slot). Use ARGS_4 to point the
7253 syscall at the args.
7255 * sysdeps/unix/common/__getgrps.c: When gid_t==int, and SIZE!=0,
7256 return N from __bsd_getgroups.
7258 * posix/unistd.h (__need_NULL): Define before including <stddef.h>.
7259 1003.1-1990 2.7.1 says it should be here.
7261 Sat May 15 14:54:25 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
7263 * time/__tzset.c (compute_change): Add 1900 to YEAR, not 1970.
7265 Fri May 14 21:24:19 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
7267 * sysdeps/unix/sysv/sysv4/solaris2/start.c: Define NO_EXPLICIT_START.
7268 * sysdeps/unix/sparc/start.c [NO_EXPLICIT_START]: Don't asm
7269 `_start' into `start' (e.g., for Solaris).
7271 * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h: New file.
7273 Fri May 14 19:34:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7275 * malloc/Makefile: Remove depend-malloc dependency on malloc/gmalloc.c.
7277 * posix/Makefile (headers): Add sys/unistd.h.
7278 * posix/sys/unistd.h: New file, just includes <unistd.h>.
7280 * sysdeps/unix/common/glue-ctype.c (main): Define generated array
7281 as `unsigned char' rather than `char'.
7283 * sysdeps/unix/start.c [__GNUC__]: Use asm frob to make `start'
7286 * sysdeps/unix/opendir.c [! _STATBUF_ST_BLKSIZE]: Don't fstat and
7287 use st_blksize; try BUFSIZ instead.
7289 * sysdeps/unix/Makefile (ioctls): Don't use sed to remove final |
7290 from snarf-ioctls output; just append a dummy alternative instead.
7292 * sysdeps/posix/__wait3.c: Fix arg types.
7294 * Makerules ($(common-objpfx)stub-$(subdir)): Use @ for sed
7295 separator char. Pass extra file /dev/null in case `...` gets empty.
7297 * sysdeps/unix/sysdep.h (C_LABEL): Define new macro.
7298 * sysdeps/unix/i386/sysdep.h (ENTRY): Use it.
7299 * sysdeps/unix/sparc/sysdep.h (ENTRY): Likewise.
7300 * sysdeps/unix/sparc/__brk.S: Use C_LABEL and ENTRY instead of
7302 * sysdeps/unix/i386/__brk.S: Use C_LABEL instead of C_SYMBOL_NAME.
7304 Fri May 14 17:41:42 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
7306 * sysdeps/mips/sqrt.c [HAVE_GNU_AS]: Use the IEEE 754 version of
7307 sqrt since gas can't handle the `sqrt.d' synthetic instruction.
7309 Fri May 14 16:33:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7311 * stdio/Makefile (routines): Add tempname.
7313 * sysdeps/unix/common/make_siglist.c: #define const to empty
7314 around #include of <signal.h>.
7316 * sysdeps/unix/errnos.awk: Surround generated `DO' macro calls
7317 with #ifdef on the E* symbol.
7319 * sysdeps/unix/common/make_siglist.c [! HAVE_SYS_SIGLIST &&
7320 HAVE__SYS_SIGLIST]: Define sys_siglist to _sys_siglist.
7322 * termios/Makefile (headers): Add termbits.h.
7324 * posix/Makefile (headers): Add waitflags.h and waitstatus.h.
7326 * math/math.h (struct __complex): Rename to struct __cabs_complex.
7327 __complex is now a reserved word in GCC.
7328 * sysdeps/generic/cabs.c (cabs): Likewise.
7329 * sysdeps/ieee754/cabs.c (cabs, z_abs): Likewise.
7331 * sysdeps/unix/common/glue-ctype.c: Test for _ctype__ before _ctype_.
7333 * posix/Makefile (headers): Add confname.h.
7335 Thu May 13 00:25:53 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7337 * ctype/Makefile (tags_sources): Don't define.
7338 * MakeTAGS [subdir==ctype] (tags_sources): Put headers before sources.
7340 * time/__tzset.c (compute_change): Add 1970 to YEAR before using it.
7342 * sysdeps/unix/readdir.c: Pass a BASEP arg to __getdirentries.
7344 Wed May 12 20:36:51 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7346 * Makefile (distribute): Add aclocal.m4.
7348 * dirent/list.c (test): Clear errno before readdir loop. Complain
7349 if errno is set thereafter.
7351 * sysdeps/unix/sysv/sysv4/solaris2/utsnamelen.h: New file.
7352 * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: New file.
7353 * sysdeps/unix/sysv/sysv4/solaris2/sigaltstack.S: New file.
7354 * sysdeps/unix/sysv/sysv4/solaris2/Makefile: New file.
7356 * sysdeps/unix/bsd/sun/sparc/start.c: Moved to sysdeps/unix/sparc.
7357 * sysdeps/unix/sparc/start.c: Moved from sysdeps/unix/bsd/sun/sparc.
7358 Surround all shared library frobnication code with #ifndef NO_SHLIB.
7359 * sysdeps/unix/sysv/sysv4/solaris2/start.c: New file.
7361 * configure.in (os = solaris[2-9]*): base_os=unix/sysv/sysv4.
7363 * sysdeps/sparc/setjmp.S: Include <sysdep.h>, not "DEFS.h".
7364 Use ENTRY(__setjmp) instead of FUNC(___setjmp).
7366 * sysdeps/sparc/divrem.m4: [__svr4__]: Include <sys/trap.h>
7367 instead of <machine/trap.h>.
7369 * sysdeps/sparc/__longjmp.S: Include <sysdep.h>, not "DEFS.h".
7370 Use ENTRY(__longjmp) instead of FUNC(___longjmp).
7371 [__svr4__]: Use <sys/trap.h> instead of <machine/trap.h>.
7373 * sysdeps/unix/i386/sysdep.h (C_SYMBOL_NAME, SYS_ify): Moved to
7374 sysdeps/unix/sysdep.h.
7375 * sysdeps/unix/sparc/sysdep.h: New file.
7376 * sysdeps/unix/bsd/sun/sparc/sysdep.h: File removed.
7378 * sysdeps/unix/sparc/__brk.S: New file.
7379 * sysdeps/unix/sparc/__brk.c: File removed.
7381 Wed May 12 19:43:37 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7383 * malloc/cfree.c: Put malloc.h include in _MALLOC_INTERNAL conditional.
7385 Wed May 12 16:24:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7387 * Makeconfig (+link): Put $(LDFLAGS) in the value.
7388 * sysdeps/unix/bsd/sun/sparc/Makefile (LDFLAGS): Set it.
7390 * posix/glob.c: Move include <unistd.h> before dir includes.
7391 [HAVE_UNISTD_H] [! POSIX] [_POSIX_SOURCE]: Define POSIX.
7393 * grp/initgroups.c [! NGROUPS_MAX || NGROUPS_MAX == 0]: Just
7394 return 0 and do nothing.
7396 * sysdeps/unix/sysv/sco3.2.4/__{sys,path}conf.S: New files.
7397 * posix/unistd.h: Include <confname.h>; remove _{SC,CS,PC}_* defns.
7398 * sysdeps/generic/confname.h: New file.
7399 * sysdeps/unix/sysv/sco3.2.4/confname.h: New file.
7401 * malloc/cfree.c: Include <malloc.h> instead of <stdlib.h>.
7402 [_LIBC]: Use function_alias only under this conditional.
7403 [! _LIBC] (cfree): Define a function that just calls free.
7405 * posix/Makefile (glob.tar): Depend on glob/ChangeLog.
7406 (glob/configure): Just run autoconf, don't do a sub-make.
7407 (glob/ChangeLog): New target.
7408 (%.Z, %.z): New rules.
7410 Mon May 10 16:56:09 1993 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
7412 * malloc/cfree.c: Put the meat of the file inside a "#if
7413 defined(__GNU_LIBRARY__)" clause, so that gmalloc.c, which
7414 incorporates this file, can be used outside of the C library.
7416 Sun May 9 16:57:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7418 * stdio/fseek.c: Don't call __flshfp unless STREAM is writable.
7420 * string/tester.c (main): Remove unused variable.
7422 * sysdeps/unix/bsd/set[er][gu]id.c: New files.
7424 * sysdeps/unix/mk-local_lim.c (NAME_MAX): Define to 255 if undefined.
7426 * malloc/Makefile (malloc-dist): Add ChangeLog and mem-limits.h.
7427 (malloc/ChangeLog): New rule using Noah's changelog-extract.
7428 (malloc.tar): Use o flag to tar to make compatible archives.
7429 (gmalloc-routines): Add calloc, valloc, and cfree.
7430 (dist-routines): Remove [cv]alloc from here.
7431 (routines): Remove cfree from here.
7433 Fri May 7 16:45:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7435 * sysdeps/posix/ttyname.c: Replace fixed-sized NAME array with
7436 static char *NAME and static size_t NAMELEN.
7437 Don't check S_ISCHR.
7438 Don't hack NAME before the loop.
7439 If need more than NAMELEN chars to hold the name, increase NAMELEN
7440 to more than big enough and malloc NAME.
7441 Save errno in local var SAVE before doing anything; restore it
7442 when returning non-error.
7444 * Makefile (generated): Add $(objpfx)stubs.h.
7445 (README): New rule to call Make-dist to do the work.
7447 * mach/Makefile: Don't include mach-syscalls.mk if no_deps=t.
7449 * crypt/GNUmakefile (%.z): New rule for gzipping.
7450 (crypt.tar): Use o flag to tar to make compatible archives.
7452 * Makeconfig: Find config.make in $(common-objpfx), not $(objpfx).
7454 * io/Makefile (headers): Remove filebits.h.
7456 * sysdeps/unix/sysv/sysv4/Dist: File removed.
7458 * Makefile (README): Move from here.
7459 * Make-dist (README): To here.
7461 * sysdeps/unix/Makefile (sys/param.h): Don't depend on sys/. It
7462 was causing sys/param.h to be remade all the time.
7464 * aclocal.m4 (GLIBC_PROVIDES): Add shell comment about configure
7465 being generated and not to be editted.
7467 * sysdeps/unix/swapon.S: Moved to sysdeps/unix/common.
7468 * sysdeps/unix/configure: Add swapon to list of syscalls to check for.
7470 * sysdeps/unix/mk-local_lim.c: New file, modified from
7471 sysdeps/unix/common/mk-local_lim.c.
7472 * sysdeps/unix/common/Makefile: Move local_lim.h rules from here.
7473 * sysdeps/unix/Makefile: Put them there.
7474 (local_lim-CFLAGS): Define new variable.
7475 (mk-local_lim): Replace $(native-compile) with its value plus
7476 $(local_lim-CFLAGS).
7477 * sysdeps/unix/common/Dist: Remove mk-local_lim.c.
7478 * sysdeps/unix/Dist: Add it here.
7480 * Makerules (make-dummy-dep): New variable; canned command.
7481 ($(objpfx)%.dep: {$(objpfx),}%.s): New rules using $(make-dummy-dep).
7482 (sysd-Makefile): Write a $(objpfx)%.dep: $dir/%.s rule using it.
7484 * misc/ioctl.c: Replace function_alias with:
7485 [HAVE_GNU_LD]: Use symbol_alias.
7486 [! HAVE_GNU_LD]: Write out the function; it must fetch its third arg
7487 with va_arg and then call __ioctl.
7489 Thu May 6 14:56:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7491 * misc/sys/ioctl.h (__ioctl, ioctl): Changed prototype to take 2
7492 args and ... rather than a 3rd __ptr_t arg.
7493 * sysdeps/stub/__ioctl.c: Changed defn.
7495 * sysdeps/unix/bsd/sun/sunos4/tcflow.c: Include <sys/ioctl.h>.
7497 * sysdeps/unix/Makefile (make-ioctls-CFLAGS): Define as
7498 -DHAVE_SYS_TERMIOS_H if $(sysincludedir)/sys/termios.h exists.
7499 (make-ioctls): Replace command `$(common-objdir-compile)' with
7500 that var's contents from Makerules, plus $(make-ioctls-CFLAGS).
7501 * sysdeps/unix/ioctls-tmpl.c [HAVE_SYS_TERMIOS_H]: Get <sys/termios.h>.
7503 * misc/sys/ioctl.h: Include <sys/ttydefaults.h> after <ioctls.h>.
7505 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfget[io]speed): Return the
7506 raw speed, rather than using it as an index into `speeds'.
7507 (cfset[io]speed): Treat SPEED being an index into `speeds' just as
7508 if it were the value of that element.
7510 * termios/termios.h: Remove definitions of B[0-9]+ and EXT[AB].
7511 * sysdeps/generic/termbits.h: Put them here instead.
7512 * sysdeps/unix/bsd/sun/sunos4/termbits.h: Add new defns for those.
7514 * sysdeps/unix/Makefile (termbits-edit): If termbits.h is not the
7515 generic version, set this to an | egrep command which filters out
7516 symbols appearing in termbits.h.
7517 (ioctls): Depend on $(sysincludedir)sys/termios.h if it exists.
7518 Pass all deps after first to snarf-ioctls.
7519 Put $(termbits-edit) in cmd line; it may be empty or a pipe.
7520 Pipe through sort|uniq before tr (just to cut down on duplicates).
7522 * sysdeps/generic/Makefile, sysdeps/unix/Makefile: When deciding
7523 whether to generate files whose stub versions are chosen, also
7524 include the generation rules when the chosen directory is
7525 $(common-objpfx), so they continue to be defined after running once.
7527 * sysdeps/posix/Makefile: Use patsubst instead of substition
7528 references when the substitution or replacement contains a $.
7529 Make has a bug (which I just fixed) with such substitution references.
7531 * posix/wait3.c: Fixed arg types in fn alias.
7532 * posix/wait4.c: Likewise.
7534 * sysdeps/posix/Makefile: Remove vpath %.h line.
7535 * Makerules: Add vpath %.h directive.
7537 * sysdeps/posix/Makefile (generated, before-compile): Add
7538 $(common-objpfx)stdio_lim.h, not just plain stdio_lim.h.
7540 * Makerules (depend-$(subdir)): Put $(objpfx) in the output, not
7542 (+make-deps): Add sed clause to translate the expansion of
7543 $(objpfx) back into the variable reference.
7545 Wed May 5 15:59:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7547 * sysdeps/unix/sysv/sco3.2/local_lim.h: New file.
7549 * sysdeps/unix/sysv/sco3.2/Makefile: New file
7550 * sysdeps/unix/sysv/sco3.2/Dist: New file.
7551 * sysdeps/unix/sysv/sco3.2/__fltused.c: New file.
7553 * sysdeps/unix/configure: New file.
7554 * sysdeps/unix/inet/__select.S: Moved to sysdeps/unix/common.
7555 This is because select is a call sysdeps/unix/configure wants to
7556 check for, and it simplifies life for all those to be in unix/common.
7558 * sysdeps/tahoe/Implies: Remove $(bsdmath)tahoe line.
7560 * sysdeps/unix/sysv/sco3.2.4/{__sigact,__sigproc,
7561 sigpending,sigsuspend}.S: New files.
7563 * Makefile (INSTALL): Depend on manual/maint.texi, not
7564 manual/maint.texinfo. Use -- instead of + for long options.
7566 * configure.in: After setting $sysnames initially and adding the
7567 FPU directory, expand and uniquize the list with code that used to
7568 be in find-sysdirs. Make $sysnames blank-separated rather than
7569 newline-separated. Generalize loop iterating over $sysnames, so
7570 it sets $uname and sources sysdep configure scripts. Move
7571 sys_siglist and ctype checks to sysdeps/unix/common/configure.in.
7572 Set Make variable `config-sysdirs' to $sysnames in config.make,
7573 and don't frob Sysnames or sysdirs files at all.
7574 * find-sysdirs: File removed.
7575 * Makefile (distribute): Remove find-sysdirs.
7576 (sysd-dirs): Depend on config.make instead of config.make.
7577 Use $(sysdirs) in place of `cat $<`.
7578 * aclocal.m4: New file.
7579 * sysdeps/unix/common/configure.in: New file, contains checks for
7580 sys_siglist and ctype glue moved from top-level configure.in.
7581 * Makerules (sysdirs, Sysnames): Rules removed.
7582 Don't include sysdirs.
7583 (sysdirs): Define variable from $(config-sysdirs).
7584 (sysd-Makefile): Depend on config.make instead of sysdirs.
7585 Use $(sysdirs) instead of filtering the sysdirs file.
7586 * Make-dist (+sysdep-tsrcs): Include configure and configure.in
7588 (dist.tar): Use o flag to tar for compatible archives.
7589 (dist): Depend on foo.z instead of foo.Z.
7590 ($(tardir){-crypt,}.tar.z): Renamed from .Z.
7592 (%/configure: %/configure.in): New rule.
7594 Mon May 3 17:45:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7596 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: New file.
7598 * sysdeps/unix/sysv/sco3.2.4/direct.h: New file.
7600 * sysdeps/unix/readdir.c: Moved from unix/bsd, rewritten to always
7601 use __getdirentries and D_NAMLEN macro, no #ifdefs.
7602 * sysdeps/unix/sysv/readdir.c, sysdeps/unix/bsd/bsd4.4/readdir.c,
7603 sysdeps/unix/bsd/ultrix4/readdir.c,
7604 sysdeps/unix/bsd/hp/m68k/readdir.c,
7605 sysdeps/unix/bsd/sun/readdir.c: Files removed.
7606 * sysdeps/unix/common/{close,open,rewind,seek,tell}dir.c: Moved to
7608 * sysdeps/unix/sysv/direct.h: New file.
7609 * sysdeps/unix/bsd/direct.h (D_NAMLEN): Define to use d_namlen.
7610 * sysdeps/unix/sysv/sysv4/direct.h (D_NAMLEN): Define to calculate
7612 * sysdeps/unix/__getdents.c: New file.
7613 * sysdeps/stub/direct.h: New file.
7614 * sysdeps/unix/bsd/Dist: Remove bsddir.h.
7615 * sysdeps/unix/sysv/sysv4/readdir.c: Moved to unix/sysv.
7616 * sysdeps/unix/sysv/sysv4/bsddir.h: Renamed to direct.h.
7617 * sysdeps/unix/bsd/bsddir.h: Likewise.
7618 * sysdeps/unix/common/opendir.c: Include "direct.h", not "bsddir.h".
7619 * sysdeps/unix/sysv/sysv4/readdir.c: Likewise.
7620 * dirent/Makefile (distribute): Define to include direct.h.
7622 * sysdeps/unix/common/opendir.c: Be sure to close FD if fcntl fails.
7624 * sysdeps/generic/memcopy.h: #include <sys/cdefs.h> and use __P
7625 prototypes instead of EXFUN.
7627 * sysdeps/generic/memcmp.c (__ptr_t, const): Define as appropriate
7628 conditional on [__cplusplus || __STDC__].
7630 Thu Apr 29 21:48:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7632 * Makefile ($(libc.a)): Make this, not lib, depend on subdir_lib.
7634 * Makerules ($(objpfx)%.{o,dep} rules): Remove spurious / after
7635 $(objpfx) in dependency patterns.
7637 * sysdeps/unix/bsd/sun/sparc/start.c (_start): Define with
7638 `asm ("start")', so its asm name is `start' rather than `__start'.
7639 Remove asm that did a `.set' pseudo-op, which Sun as seems not to grok.
7641 Wed Apr 28 12:59:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7643 * sysdeps/stub/system.c: Return 0 if LINE is nil.
7645 * sysdeps/unix/__execve.S [!SYS_execve && SYS_exec]: Define
7646 SYS_execve to be SYS_exec.
7648 * time/mktime.c: Include <sys/types.h>.
7650 Mon Apr 26 17:10:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7652 * sysdeps/generic/memcmp.c: Deansideclized.
7653 [HAVE_CONFIG_H]: Include "config.h".
7654 [HAVE_STRING_H || _LIBC]: Put #include <string.h> under this.
7655 [_LIBC]: Put #include <memcopy.h> under this conditional.
7656 [! _LIBC]: Define op_t, OPSIZ, byte, and MERGE.
7658 * time/mktime.c: Define __isleap if not defined.
7660 Fri Apr 23 18:08:33 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7662 * sysdeps/unix/sysv/__getdents.c: New file.
7663 * sysdeps/unix/sysv/sysv4/sys_getdents.S: Moved to unix/sysv.
7664 * sysdeps/unix/sysv/Makefile [subdir==dirent]: Add sys_getdents to
7666 * sysdeps/unix/sysv/Dist: Add sys_getdents.S.
7667 * sysdeps/unix/sysv/sysv4/Dist: Remove it from here.
7668 * sysdeps/unix/sysv/sysv4/Makefile: File removed.
7670 Thu Apr 22 17:40:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7672 * sysdeps/unix/bsd/sony/newsos4/m68k/sysdep.h: New file.
7674 * sysdeps/generic/strsep.c: Set *STRINGP to END+1, not END.
7676 * configure.in (arg parsing): Grok --verbose and set verbose=yes.
7678 * sysdeps/sparc/{umul,mul}.S: Remove ' from ! comment.
7680 * sysdeps/sparc/Makefile (*.S): Find divrem.m4 in this sysdeps dir.
7682 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfset[io]speed): Typo fix.
7684 * sysdeps/unix/bsd/sun/sparc/vfork.S: Use a sethi insn and %g1 as
7685 a temporary, rather than expecting the address to fit into a short
7688 * sysdeps/unix/bsd/__fork.S: Moved to sysdeps/unix/__fork.S; we
7689 want unix/MACHINE/__fork.S to come first.
7691 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Make STAT_LOC type
7692 `__WAIT_STATUS' (defined in <sys/wait.h>).
7693 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
7695 * signal/sigvec.c: Change args from `struct __sigvec *' to
7696 `struct sigvec *' in function alias.
7698 * signal/sigproc.c: Make arg SET `const sigset_t *' in fn alias.
7700 * signal/sigaction.c: Change args from `struct __sigaction *' to
7701 `struct sigaction *' in function alias.
7703 * sysdeps/unix/common/glue-ctype.c (main) [! TABLE]: Write just a
7704 comment saying we don't know the table name, rather than barfing
7705 with `TABLE' an undefined variable.
7707 * sysdeps/generic/printf_fp.c: Fixed test to chose %e format.
7708 Make loop condition --J > 0; break out of loop when FPNUM < F.
7709 After loop, use %e format iff J <= 0.
7711 * posix/glob/Makefile.in (.c.o): Put $(CFLAGS) last.
7712 (glob.o): Depend on glob.c.
7713 (fnmatch.o): Depend on fnmatch.c.
7715 Wed Apr 21 12:40:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7717 * sysdeps/posix/Makefile (before-compile): Add stdio_lim.h.
7719 * configure.in (signed size_t test): Remove 's from rhs of AC_DEFINE.
7721 * stdio/internals.c (seek_to_target): If __stdio_check_offset
7722 fails with ESPIPE, do nothing.
7724 * sysdeps/generic/printf_fp.c: For %e type, add K-1 to CUTOFF,
7726 When there are no post-decimal digits, never write a decimal point
7727 for a %g spec unless it had a # modifier.
7728 Move K==-1 test to write decimal point before K==CUTOFF test to
7729 round and write last digit.
7730 Merge code for first post-decimal digit with code for remaining digits.
7731 Move code to write leading fractional zeros inside K<0 test which
7732 determines if any will be needed.
7733 In decimal fraction notation code, use R10 temporary instead of
7734 repeating (R * 10) twice.
7736 * stdio/fwrite.c: Only fail when __stdio_check_offset fails if it
7737 failed with ESPIPE. If offset==-1, don't change it or target.
7739 * sysdeps/posix/defs.c (stdstream): Rearrange initializers, as
7740 FILE has been rearranged. Set offset and target to -1, not 0.
7742 * sysdeps/posix/stdio_init.c: If STREAM isatty, set its seek
7743 function to NULL. Unix bites.
7745 * stdio/ungetc.c: Call __flshfp if linebuf_active or put_limit>buffer.
7747 * sysdeps/unix/bsd/sun/sparc/start.c [__GNUC__ < 2]: #error.
7749 * time/mktime.c: Deansideclized.
7750 Don't include <errno.h> or <limits.h>; we don't need them.
7751 [DEBUG] (printtm): Made static.
7752 [HAVE_CONFIG_H]: Include "config.h".
7753 [__GNU_LIBRARY__ || HAVE_LIMITS_H]: Surround #include <limits.h>
7754 with these conditionals.
7756 * time/offtime.c (__mon_lengths): Move defn to mktime.c; replace
7758 * time/mktime.c (__mon_lengths): Define here; remove extern decl.
7760 Mon Apr 19 18:42:59 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7762 * sysdeps/stub/tempname.c: New file.
7763 * sysdeps/stub/sysd-stdio.c (__stdio_gen_tempname): Moved there.
7764 * sysdeps/posix/tempname.c: New file.
7765 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Moved there.
7767 * stdio/fopen.c: Don't set the offset to zero. That can falsely
7768 give the impression that an unseekable object is seekable.
7770 * stdio/internals.c (__flshfp): Discard any pushed back character
7771 first thing after sanity checks.
7772 (__flshfp): Deconditionalize code to call the output-room
7773 function; we always want to give it a chance to prime the stream.
7774 Remove code that reset bufp if put_limit==buffer. We want to let
7775 the output-room function do that--that is priming the stream.
7777 Fri Apr 16 12:24:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7779 * Makerules ($(libc.a)): Depend on lib-noranlib and have ranlib
7781 (lib): Just depend on $(libc.a).
7783 * sysdeps/unix/bsd/sun/sparc/start.c (init_shlib): Use __environ,
7786 * stdio/internals.c (__flshfp): Don't check that the buffer
7787 actually contains anything when setting the put_limit to the end of
7788 the buffer if linebuf_active.
7789 (__flshfp): To write C into the buffer !FLUSH_ONLY, don't check
7790 that bufp > buffer and get_limit == buffer. Check against
7791 put_limit unless linebuf_active (in which case check against the
7792 real put_limit, fp->__buffer + fp->__bufsize).
7793 (__flshfp): Bother to call the output-room function if !FLUSH_ONLY
7794 or bufp > buffer and get_limit <= linebuf-corrected put_limit.
7795 (__flshfp): Check for a NULL output-room function before checking
7796 if C will fit in the buffer.
7797 (flushbuf): After putting C into the buffer,
7798 set BUFFER_WRITTEN to zero and goto end instead of returning.
7800 * stdio/ungetc.c: Test STREAM->__pushed_back before flushing the
7801 STREAM if it's writable.
7803 * posix/glob.c, posix/fnmatch.c: Surround code with
7804 #if defined (_LIBC) || !defined (__GNU_LIBRARY__)
7806 Thu Apr 15 19:35:59 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7808 * string/tester.c (main): Added tests for strsep.
7810 * sysdeps/ieee754/frexp.c: New file.
7812 Wed Apr 14 12:49:10 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7814 * Makerules (ar-it): Add c flag to ar commands.
7816 * posix/glob.c [USG, NeXT]: Don't test these.
7817 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
7818 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
7819 [! ANSI_STRING]: Put decls of bcopy and #define of memcpy et al here.
7821 * posix/fnmatch.c [HAVE_CONFIG_H]: #include "config.h".
7823 Mon Apr 12 16:34:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7825 * posix/glob.c: Rationalize directory header conditionals.
7827 Sun Apr 11 18:53:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7829 * stdio/internals.c: Remove __libc_fatal.
7830 * sysdeps/stub/sysd-stdio.c: Remove __stdio_errmsg.
7831 * sysdeps/posix/sysd-stdio.c: Likewise.
7832 * sysdeps/stub/libc_fatal.c, sysdeps/posix/libc_fatal.c: New files.
7833 * stdio/Makefile (routines): Add libc_fatal.
7835 * stdio/stdio.h (FILE): Add new member `__linebuf_active' (flag).
7836 Rearranged order of members slightly.
7837 * stdio/setvbuf.c: Clear the linebuf_active flag.
7838 * stdio/fseek.c: Likewise.
7839 * stdio/internals.c (__flshfp): Test linebuf_active, not linebuf,
7840 to decide to reset put_limit before calling the output-room function.
7841 After calling it, if line-buffered, set put_limit to the
7842 beginning of the buffer and set the linebuf_active flag.
7843 (__fillbf): If linebuf_active is set, reset put_limit to the end
7844 of the buffer, and clear the flag.
7846 * stdio/ungetc.c: If STREAM is writable and has something in its
7849 * stdio/internals.c (__fillbf): When flushing all line-buffered
7850 streams, don't test for their put_limits being > than their
7851 buffers. We should let __flshfp figure it out.
7853 * stdio/setvbuf.c: Always set the put_limit to the beginning of
7856 * stdio/stdio.h (__putc): Rewritten to remove all knowledge of
7857 magic for line-buffered streams. It now always calls __flshfp when
7858 the bufp hits the put_limit.
7860 * stdio/fwrite.c: When recalculating BUFFER_SPACE after calling
7861 __flshfp, ignore the put_limit for the sake of line-buffered streams.
7863 * stdio/fseek.c (fseek): Call __flshfp on STREAM unconditionally.
7864 We don't want to try to put the conditions for when it is
7865 necessary here as well.
7867 * sysdeps/generic/printf_fp.c: When deciding whether to use %e
7868 format for %g, break out of the loop on J as soon as F reaches
7869 FPNUM; after the loop, set TYPE to 'e' if J<0, meaning we went all
7872 * misc/getpass.c (TCSASOFT): Define to 0 if undefined.
7873 (getpass): Use a variable OUT to store the stream where output goes.
7874 Use a variable NREAD to notice how much was read; if the last char
7875 in the buffer is a newline, clobber it to a null terminator.
7877 * posix/fnmatch.h [__cplusplus || __STDC__]: Don't #define const.
7879 Thu Apr 8 19:29:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7881 * stdio/tst-printf.c (main): Added some floating-point tests.
7883 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: New file.
7885 * sysdeps/unix/sysv/i386/__sigret.S: Moved to sysdeps/unix/i386.
7886 Use DO_CALL instead of magic.
7888 * sysdeps/unix/bsd/i386/__wait3.S: Use DO_CALL instead of magic.
7889 Use scratch instead of %ecx and r1 instead of %edx.
7891 * sysdeps/unix/bsd/i386/__vfork.S: Rewritten to not use SYSCALL__.
7892 Use DO_CALL instead, and save the return PC in a register around
7895 * sysdeps/unix/i386/sysdep.h (DO_CALL): New macro to do syscall trap.
7896 (PSEUDO): Use it instead of putting the code here.
7898 * stdio/vfprintf.c (number): Write "0x" before padding, not after.
7900 * sysdeps/unix/bsd/sequent/i386/sysdep.h: New file.
7902 * sysdeps/unix/bsd/__setuid.c: #include <sys/types.h>.
7903 Change argument type to uid_t.
7904 * sysdeps/unix/bsd/__setgid.c: #include <sys/types.h>.
7905 Change argument type to gid_t.
7907 * sysdeps/unix/common/__getgrps.c: Restore errno after erroneous
7910 * stdio/tst-printf.c (fp_test): New function, batch of tests from
7914 Wed Apr 7 17:17:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7916 * sysdeps/generic/pow.c (pow_p): Don't initialize K; was a dead store.
7918 Mon Apr 5 21:17:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7920 * sysdeps/unix/common/__getgrps.c: If __bsd_getgroups returns an
7921 error and SIZE==0, alloc temp space for NGROUPS_MAX elts and call
7922 it again on that, so we can find the number of groups.
7924 * stdio/__vfscanf.c (input_error): If DONE is nonzero, return it;
7926 (%c): Don't check for C==EOF at the end; let the following spec get it.
7927 (%[eEfgG]): EOF after sign is conv_error, not input error.
7929 * sysdeps/unix/common/__getgrps.c: If gid_t==int, pass LIST to
7930 __bsd_getgroups, not NULL.
7931 No error for SIZE > NGROUPS_MAX.
7933 Sun Apr 4 18:52:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7935 * sysdeps/unix/{bsd,sysv}/i386/Implies: Files removed.
7936 They should no longer be necessary, since configure now tries more
7937 sysdeps directory permutations.
7939 * sysdeps/unix/bsd/{i386,sun/sparc,hp/m68k,ultrix4/mips}/__set[ug]id.S:
7940 Files removed. They should no longer be necessary, since the new
7941 sysdeps scheme should find unix/bsd/__set[gu]id.c before
7944 * sysdeps/unix/i386/__pipe.S: Use r1 in place of %edx and scratch
7946 * sysdeps/unix/i386/__wait.S: Likewise.
7947 * sysdeps/unix/i386/__fork.S: Use r1 in place of %edx and r0 in
7949 * sysdeps/unix/i386/__vfork.S: Likewise.
7950 * sysdeps/unix/i386/sysdep.h (scratch): #define as %ecx.
7951 * sysdeps/unix/sysv/i386/linux/sysdep.h: Likewise.
7953 * configure.in ($uname = generic): Set kernel_{version,release} to
7954 empty before all else.
7955 If /vmunix doesn't exist, try grovelling over /dynix instead.
7957 * sysdeps/unix/Makefile (syscall.h): Double $ in sed cmd.
7959 Fri Apr 2 15:15:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7961 * configure.in (config_vars): New variable; text to go in config.make.
7962 Use AC_HEADER_EGREP to grovel stdarg.h for __gnuc_va_list and set
7963 stdarg.h in config_vars if we find it.
7965 * sysdeps/unix/bsd/sun/sunos4/tcsendbrk.c,
7966 sysdeps/unix/bsd/sun/sunos4/tcflow.c,
7967 sysdeps/unix/bsd/sun/sunos4/tcflush.c,
7968 sysdeps/unix/bsd/sun/sunos4/tcsetattr.c,
7969 sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: New files.
7971 * sysdeps/unix/Makefile (syscall.h): Add sed cmd to terminate
7972 unterminated comments at the ends of lines.
7974 * sysdeps/posix/getcwd.c: Deansideclized and added four tons of
7977 Mon Mar 29 13:18:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7979 * sysdeps/unix/bsd/sun/sunos4/speed.c: New file.
7981 * sysdeps/generic/termbits.h: New file, contents taken from termios.h.
7982 * termios/termios.h: Remove type & macro defns; #include <termbits.h>.
7983 [__OPTIMIZE__] (cf[gs]et[io]speed): Remove macro versions. They
7984 just cause trouble because they want to be in termbits.h (since
7985 they are sysdep) and also to come after the prototypes (which must
7986 come after termbits.h to get speed_t and struct termios defined).
7987 The optimization was insignificant anyway.
7988 * termios/speed.c: Moved to sysdeps/generic.
7990 * termios/cfsetspeed.c: Call cfset[io]speed, rather than doing it
7993 * time/__tzset.c (tz_rule): Make member `secs' not a bitfield.
7994 (compute_change): Complete rewrite; code basically stolen from
7995 localtime3/localtime.c:transtime.
7996 #include "tzfile.h" for SECSPERDAY; #define NOID first.
7998 * sysdeps/unix/bsd/i386/__vfork.S: Don't try to #include __fork.S.
7999 Instead, copy that code here and change `fork' to `vfork'.
8001 * Makeconfig (+default_cflags): Rename to default_cflags.
8002 (+cflags): Use that name.
8004 * Makefile (configure): New rule.
8006 Sun Mar 28 16:12:33 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8008 * posix/fnmatch.c (case '*'): Before final loop, fold C1, rather
8009 than foling *P before it goes into C1. C might need folding instead.
8011 * posix/Makefile (tests): Add testfnm.
8012 * posix/testfnm.{c,args}: New files.
8014 Fri Mar 26 15:04:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8016 * time/mktime.c: Wholly new implementation from Noel Cragg.
8018 * sysdeps/unix/bsd/sun/__sigret.S: New file.
8019 * sysdeps/unix/bsd/sun/m68k/{Makefile,Dist}: New files.
8020 * sysdeps/unix/bsd/sun/m68k/{sigcontext.h,sigtramp.c}: New files.
8021 * sysdeps/unix/bsd/sun/sparc/__sigvec.S: Moved to sysdeps/unix/bsd/sun.
8023 * Makefile (clean): Remove sysd-Makefile, sysd-dirs, sysdirs
8024 (distclean): New target.
8025 * sysdeps/unix/common/Makefile (generated): Add local_lim.h,
8026 mk-local_lim, glue-ctype, glue-ctype.c, siglist.c, make_siglist.
8027 * sysdeps/generic/Makefile (generated): Add bytesex.h,
8028 det_endian, siglist.c, make_siglist.
8029 * sysdeps/unix/Makefile (generated): Add errnos.h, errnos,
8030 make-errnos, make-errnos.c, ioctls.h, ioctls, make-ioctls,
8031 make-ioctls.c, errlist.c, make_errlist, syscall.h, sys/param.h,
8032 param.h.c, param.h.dep, $(sys/param.h-includes).
8034 * misc/Makefile (extra-objs): Define new var to include bsd-compat.o.
8036 Fri Mar 26 14:53:30 1993 Michael John Haertel (mike@skinner.cs.uoregon.edu)
8038 * malloc/malloc.c (malloc): Start searching at _heapindex, not
8039 MALLOC_SEARCH_START.
8040 * malloc/malloc.h (MALLOC_SEARCH_START): Macro removed.
8041 * malloc/realloc.c (realloc): When malloc returns NULL, handle the
8042 case of the block we need to unfree (which was just freed) having
8043 been coalesced with its neighbors.
8045 Thu Mar 25 13:40:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8047 * Rules (all): Depend on others.
8049 * time/Makefile (zonenames): Change target to $(objpfx)zonenames.
8050 Make the generated file prepend $(objpfx) to
8051 Include that instead of zonenames.
8052 (zones-%): Change target to $(objpfx)zones-%.
8054 * Makefile ($(objpfx)Mcrt1.o): Put temporary Mcrt1.c file in
8055 $(objdir), rather than the current directory.
8057 * configure.in (arg parsing): Recognize `--exec-prefix' rather
8058 than `--exec_prefix'.
8060 * Rules (mostlyclean): Remove the .o files for $(tests) and $(others).
8061 Remove $(objpfx)depend-$(subdir).
8062 (clean): Remove $(extra-objs).
8063 * Makefile (clean): Remove $(install-lib) from $(objdir).
8064 Don't try to remove ansi/ and trad/ or dist.tar or lint.out.
8065 Remove $(objpfx)depend-.
8066 * time/Makefile (extra-objs): Define new var.
8067 * malloc/Makefile (extra-objs): Likewise.
8069 * Rules (+objs): Variable removed.
8070 (clean): Use $(objects) in place of $(+objs).
8072 * sysdeps/unix/Makefile (sys/param.h-includes): Move all this
8073 outside of ifeq ($(subdir),misc).
8074 Fixed sed command to filter out [hn]to[nh][sl].
8075 (sys/param.h-includes): New target; dep on $(sys/param.h-includes).
8077 * posix/fnmatch.h [!_POSIX_C_SOURCE || ...]: Make this test
8078 _GNU_SOURCE, not _BSD_SOURCE; these are our extensions, not theirs.
8079 (FNM_CASEFOLD): New bit.
8080 (__FNM_FLAGS): Removed macro.
8081 * posix/fnmatch.c (fnmatch): Don't test for bogus flag bits; who cares?
8082 (FOLD): New macro to casefold a char if FNM_CASEFOLD.
8083 Use it to fold all chars before comparison.
8085 Wed Mar 24 16:09:26 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8087 * malloc/Makefile (malloc/%.c, malloc/%.h): Rules removed.
8089 * stdio/stdio.h (fopencookie): Rename parameter IO_FUNCTIONS to
8090 IO_FUNCS. The former conflicted with a typedef name, which ist
8093 * time/sys/time.h (enum __itimer_which): Remove trailing comma.
8095 Mon Mar 22 15:35:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8097 * malloc/malloc.h [_MALLOC_INTERNAL]
8098 [__GNU_LIBRARY__ || STDC_HEADERS || USG] (memmove): Define in
8100 * malloc/malloc/gmalloc-head.c: Redo previously undone change.
8102 Thu Mar 18 04:59:21 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8104 * malloc/malloc/gmalloc-head.c: Undo previous change.
8106 Wed Mar 17 12:22:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8108 * mach/mach.h: New file.
8110 * Rules (clean): Remove $(generated), not $(clean-extras).
8111 (subdir_echo-distinfo): Use $(generated) instead of $(dont_distribute).
8112 (generated): Export this instead of dont_distribute.
8113 * stdlib/Makefile (generated): Set this, not dont_distribute.
8114 * sysdeps/posix/Makefile: Likewise.
8115 * sysdeps/unix/sysv/Makefile: Likewise.
8116 * sysdeps/unix/Makefile: Likewise.
8117 * Makefile (generated): Export this instead of dont_distribute.
8118 (parent_echo-distinfo): Use $(generated) instead of $(dont_distribute).
8119 * Make-dist (+tsrcs): Filter out $(generated), not $(dont_distribute).
8121 * mach/mach_init.h (__mach_task_self): Define so as not an lvalue.
8122 (mach_task_self): Surround defn with parens.
8124 * sysdeps/unix/Makefile (sys/param.h): Put "#include <endian.h>" in.
8125 ($(sys/param.h-includes)): Edit out #define's of *_ENDIAN and
8128 * stdlib/tst-strtol.c (tests): Fully bracket initializers.
8130 * stdio/bug4.c: Change #ifdef LIBC to #ifdef _LIBC.
8132 * misc/progname.c (set_progname): Make a useless reference to
8133 set_progname to avoid a `defined but not used' warning.
8135 * sysdeps/mach/i386/start.c (_cthread_{init,exit}_routine): Remove
8136 `extern'; these want to be uninitialized common defns.
8138 Mon Mar 15 18:41:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8140 * sysdeps/unix/bsd/__times.c (timeval_to_clock_t): Put __inline
8141 before storage class in defn.
8143 * sysdeps/unix/sysv/signum.h (SIG_ERR, SIG_DFL, SIG_IGN): Cast
8144 values to __sighandler_t, rather than obsolete ansidecl magic.
8146 * sysdeps/unix/__execve.S [!SYS_execve && SYS_exece]: Define
8147 SYS_execve to be SYS_exece.
8149 * sysvipc: New directory.
8150 * sysvipc/Makefile: New file.
8151 * sysvipc/sys/ipc.h: New file.
8153 Fri Mar 12 15:31:44 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8155 * posix/execlp.c (execlp): Remove spurious second declared parameter.
8156 Don't fill ARGV[0] specially; just let the loop do it.
8157 * posix/unistd.h (execlp): Remove spurious second declared parameter.
8159 Thu Mar 11 13:58:47 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8161 * Makerules (sysd-Makefile): Write %.dep: %.S and %.dep: %.c rules.
8162 Depend on Makerules.
8163 ($(objpfx)%.{o,dep}: $(objpfx)/%.{S,c,s}): New rules to find
8164 sources in $(objpfx) before sysdep directories.
8166 * configure.in (signed size_t check): Use eval on $CPP, since it
8167 contains unexpanded variable refs.
8168 Send grep output to /dev/null.
8169 Put quotes around 'unsigned long int'.
8171 Wed Mar 10 18:32:11 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8173 * features.h [! _LIBC]: #include <stubs.h>.
8174 * Makerules (stubs): New phony target.
8175 ($(common-objpfx)stub-$(subdir)): New target.
8176 * Makefile (headers): Add stubs.h.
8177 ($(objpfx)stubs.h): New target.
8179 * Makeconfig (CPPFLAGS): Define _LIBC, not LIBC.
8181 * Makerules (.SUFFIXES): Remove .m4; we no longer have any such files.
8183 * inet/netinet/in.h: Don't #include <inet-cvt.h>.
8184 (ntohl, ntohs, htonl, htons): Declare.
8185 #include <endian.h>.
8186 [__BYTE_ORDER == __BIG_ENDIAN] (ntohl, ntohs, htonl, htons):
8187 Define no-op macros.
8188 * inet/Makefile (headers): Remove inet-cvt.h.
8189 * sysdeps/vax/inet-cvt.h, sysdeps/generic/inet-cvt.h: Files removed.
8190 * sysdeps/generic/{ntohl,ntohs,htonl,htons}.c
8191 [BYTE_ORDER == LITTLE_ENDIAN]: Byte-swap X before returning it.
8193 Tue Mar 9 11:32:35 1993 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8195 * malloc/malloc/gmalloc-head.c: Remove #definitions of memset,
8196 memcpy, and memmove; this is taken care of by malloc.h anyway.
8198 Mon Mar 8 15:12:32 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8200 * sysdeps/mips/jmp_buf.h (JB_PC): Protect with #ifdef __USE_MISC.
8202 * sysdeps/unix/sysv/sysv4/sigaction.h: Put SA_* except for
8203 SA_NOCLDSTOP inside #ifdef __USE_MISC.
8205 Mon Mar 8 15:05:13 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
8207 * sysdeps/mips/jmp_buf.h (jmp_buf): Use `__ptr_t', not `PTR', for
8209 (JB_PC): New define, for backwards compatability with Ultrix.
8211 * sysdeps/unix/sysv/sysv4/sigaction.h: New file.
8213 Mon Mar 8 13:20:02 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8215 * posix/glob/Makefile.in (VPATH): Set this to @srcdir@.
8216 (srcdir): Set this to $(VPATH).
8218 * posix/glob.c (glob): In no matches with GLOB_NOCHECK set case,
8219 add NULL terminator to PGLOB->gl_pathv.
8220 (prefix_array): Renamed arg PREFIX to DIRNAME, local var PRELEN to
8221 DIRLEN. If DIRNAME is just "/", don't prepend it, so we get
8222 "/foo" instead of "//foo".
8223 (glob): Move qsort call outside of the else clause of the
8224 glob_pattern_p test; it should always be done.
8226 Thu Feb 25 14:49:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8228 * malloc/malloc.h [_MALLOC_INTERNAL]: Move #include <stdio.h> to
8229 front of file; it needs to come before size_t/ptrdiff_t frobnication.
8231 Wed Feb 24 16:34:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8233 * Makerules (compile-command.[Ssc]): New variables; define them if
8234 they are not already defined.
8235 (sysd-Makefile): For each directory, write three rules:
8236 %.o: $dir/%.[Ssc]; $(compile-command.[Ssc]).
8237 (sysdep_path): Remove definition and vpath directives.
8238 * sysdeps/m68k/Makefile (compile-command.S): Define our own version.
8239 ($(objpfx)%.o: %.S): Rule removed.
8241 * sysdeps/unix/sysv/linux/{__dup2,__mkdir,__rmdir,__setpgrp}.S:
8243 * sysdeps/unix/sysv/linux/Implies: Created; implies unix/common.
8245 * sysdeps/unix/sysv/sysv4/{sete[gu]id.S,fchdir.S,signum.h,__sigproc.S}:
8248 * sysdeps/unix/sysv/sysv4/time.S: New file.
8250 * sysdeps/unix/common/Dist: New file; everything from
8251 sysdeps/unix/bsd/Dist except for bsdtty.h and bsddir.h.
8252 * sysdeps/unix/bsd/Dist: Remove things now in sysdeps/unix/common/Dist.
8254 * sysdeps/unix/bsd/sun/sparc/{__brk.c,__fork.S,__pipe.S,__vfork.S}:
8255 Moved to new directory sysdeps/unix/sparc.
8257 * sysdeps/unix/common/Implies: New file, in new directory; implies
8259 * sysdeps/unix/bsd/Implies, sysdeps/unix/sysv/sysv4/Implies: New
8260 files; both imply unix/common.
8261 * sysdeps/unix/common/Makefile: Moved from sysdeps/unix/bsd.
8262 Changed references to unix/bsd to unix/common.
8263 * unix/bsd/{__access.S,__adjtime.S,__fchmod.S,__fchown.S,__getgrps.c,
8264 __getitmr.S,__getpgrp.S,__getrusag.S,__gettod.S,__lstat.S,__mkdir.S,
8265 __readlink.S,__rmdir.S,__setitmr.S,__setpgrp.S,__symlink.S,
8266 bsd_getgrp.S,closedir.c,ftruncate.S,getrlimit.S,glue-ctype.c,
8267 make_siglist.c,mk-local_lim.c,opendir.c,readv.S,rename.S,rewinddir.c,
8268 seekdir.c,setgroups.S,setrlimit.S,telldir.c,truncate.S,vhangup.S,
8269 writev.S,__dup2.S}: Moved to sysdeps/unix/common.
8270 * sysdeps/unix/sysv/sysv4/{__access.S,closedir.c,opendir.c,
8271 rewinddir.c,seekdir.c,telldir.c}: Removed.
8273 Mon Feb 22 12:19:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8275 * sysdeps/generic/pow.c (pow): Use __isnan to test for NaN rather
8276 than expecting "x!=x" to work.
8277 (pow_p): When testing if Y is an integer, use long int rather than
8278 int; they are different on some systems. Compare against
8279 LONG_MIN+1, not LONG_MIN; (long int) (double) LONG_MIN might overflow.
8281 * malloc/dist-Makefile (gmalloc.c): Depend on Makefile.
8283 * malloc/Makefile (gmalloc-routines): New variable.
8284 (dist-routines): Use it.
8285 (malloc/Makefile): Also replace <GMALLOC-SOURCES> with
8286 $(gmalloc-routines).
8287 (malloc/Makefile): Make it unwritable to avoid accidental lossage.
8290 * malloc/dist-Makefile (gmalloc): New variable: <GMALLOC-SOURCES>.
8291 (gmalloc.c): Use $(gmalloc), not $(sources).
8292 Make the file unwritable to avoid accidental lossage.
8294 * malloc/mtrace.c: Don't #include <stdio.h> because <malloc.h> did
8297 * malloc/valloc.c [! __GNU_LIBRARY__]: Replace hairy conditionals
8298 with #include "getpagesize.h".
8299 * malloc/Makefile (distribute, malloc-dist): Add getpagesize.h.
8301 Sun Feb 21 18:29:30 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8303 * sysdeps/sparc/Makefile (nodist-routines): Don't define.
8304 We want to distribute the generated divrem files; otherwise anyone
8305 building the library must have an m4 that works.
8306 ($(divrem).S): Put these in sysdeps/sparc, not in $(objdir).
8307 (routines): Only put this inside ifeq ($(subdir),gnulib).
8309 * sysdeps/unix/bsd/sun/m68k/Makefile: File removed.
8311 Sat Feb 20 16:43:55 1993 Torbjorn Granlund (tege@sics.se)
8313 * sysdeps/i386/memset.c: Move adjustment of LEN before first stosb.
8314 * sysdeps/i386/bzero.c: Likewise.
8316 Thu Feb 18 14:34:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8318 * malloc/mcheck.c (checkhdr): Use `const', not `__const'.
8320 Mon Feb 1 19:19:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8322 * sysdeps/m68k/fpu/__logb.c: Use two-operand forms of 68881 insns
8323 rather than the one-operand source==dest form. Sun's sun3
8324 assembler apparently doesn't grok the one-operand form.
8326 * sysdeps/posix/getcwd.c: Call __lstat instead of stat.
8327 We should not lose on nonexistent symlink targets.
8329 Thu Jan 21 20:12:25 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8331 * posix/glob.c: Put #includes of <glob.h> and <fnmatch.h> after
8332 all system includes, in case one of them has conflicting defns of
8333 FNM_* or GLOB_*, so we will redefine. #undef FNM_* and GLOB_*
8334 before including our headers.
8336 Tue Jan 19 16:16:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8338 * mach/Makefile (routines): Removed __bcopy.
8339 * mach/__bcopy.c: File removed.
8341 * posix/glob.c (my_realloc): Cast result of malloc/realloc to (char *).
8343 Sat Jan 16 14:19:07 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8345 * manual/summary.awk: Handle single word in braces.
8347 Thu Jan 14 13:52:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8349 * posix/glob/Makefile.in (realclean): Remove Makefile.
8351 Mon Jan 11 18:32:56 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8353 * sysdeps/unix/bsd/sony/m68k/Implies: Imply unix/bsd/hp/m68k, not
8356 * sysdeps/unix/bsd/tcsetattr.c: Use cbreak mode if ISIG is set,
8357 not if OPOST is set.
8358 Fixed typo in TOSTOP frobbing.
8360 Tue Jan 5 15:11:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8362 * posix/Makefile (glob.tar): Include glob/configure.in.
8364 Mon Jan 4 17:05:44 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8366 * posix/glob/Makefile.in (RANLIB): Define to @RANLIB@.
8367 (RANLIB_TEST): Removed.
8368 (libglob.a): Don't use it.
8370 Thu Dec 31 13:08:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8372 * sysdeps/unix/bsd/bsd4.4/{chflags,fchflags,setlogin}.S: Fix arg count.
8374 * sysdeps/posix/Makefile (mk-stdiolim): Use $(cded-objdir-CPPFLAGS).
8375 (cded-objdir-CPPFLAGS): Define new var.
8377 * sysdeps/unix/Makefile ($(sys/param.h-includes)): Strip trailing
8378 slash from directory name for mkdir.
8380 Tue Dec 29 18:18:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8382 * sysdeps/posix/sysd-stdio.c (exists): Return true if stat fails
8383 with other than ENOENT.
8385 * sysdeps/posix/__flock.c: New file.
8387 * malloc/Makefile (dist-headers): Define to malloc.h.
8388 (headers): Replace malloc.h with $(dist-headers).
8389 (malloc/Makefile): Use $(dist-headers) in place of $(headers).
8390 (malloc-dist, distribute): Replace ChangeLog with OChangeLog.
8392 * malloc/dist-Makefile (malloc.tar{,.Z}): Depend on FORCE.
8393 (FORCE): Define empty target.
8395 Tue Dec 29 16:45:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8397 * sysdeps/sparc/{umul,mul}.S: Use tege's shift+mask hack to avoid
8398 a test and branch for sign fixup.
8400 * limits.h [__GNUC__ >= 2]: #ifndef _GCC_LIMITS_H_, not _LIMITS_H_,
8401 to #include_next <limits.h>.
8403 * sysdeps/posix/getcwd.c: Call closedir after copying from the
8404 `struct dirent' buffer, not before. That buffer is freed by closedir.
8406 * posix/gnu/types.h (__fd_set): Renamed member to `fds_bits' for
8407 compatibility with braindead extant code.
8409 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Check for BUF
8410 being too small before doing sprintf.
8412 * malloc/malloc.h [_MALLOC_INTERNAL], malloc/valloc.c
8413 [HAVE_CONFIG_H]: #include "config.h".
8415 * Makefile (doc): Removed rule.
8416 (dvi, info): New rule.
8418 Mon Dec 28 15:50:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8420 * posix/glob.c [HAVE_CONFIG_H]: Test this, not SHELL, to decide
8421 whether or not we want to #include "config.h".
8423 Wed Dec 16 12:01:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8425 * inet/Makefile (routines): Removed ruserpass. Why did it get
8426 included in the first place? That version does not match the one
8427 in the NET2 ftp source; whence came it?
8429 Sat Dec 12 16:41:03 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8431 * sysdeps/unix/bsd/sun/sparc/start.c: Use .set, not GNU ld magic,
8432 to alias asm symbol `start' to `__start'.
8434 Fri Nov 20 18:20:50 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8436 * stdio/vfprintf.c (%p): Tests of LEFT for "(nil)" were inverted.
8438 * stdio/tst-printf.c (main): Add `printf ("%#03x\n", 1);'.
8439 Add a width to %p test.
8441 * stdio/vfprintf.c (unsigned_integer): Clear SHOWSIGN and SPACE
8442 flags before falling into `number:'. The `+' and ` ' flags are
8443 only meaningful for signed numbers.
8445 * string/tester.c (main): For strstr #11, correct return is first
8446 arg, not end of first arg.
8448 * stdlib/mbtowc.c: If S is "", return 0. How was I convinced
8449 before that this is not what ANSI says?
8451 * stdio/__vfscanf.c: Initialize MALLOC_STRING to zero on each
8452 iteration (when we zero is_short et al).
8454 * sysdeps/posix/mkstemp.c (mkstemp): New file.
8455 * sysdeps/stub/mkstemp.c (mkstemp): New file.
8456 * misc/Makefile (routines): Add mkstemp.
8458 * sysdeps/posix/mktemp.c: Use `getpid ()' in place of undefined
8460 #include <sys/stat.h>.
8462 * dirent/scandir.c: If SELECT is nil, don't try to call it.
8463 If CMP is nil, don't sort.
8465 Wed Nov 18 13:42:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8467 * sysdeps/stub/__wait4.c: Changed type of 2nd arg to __WAIT_STATUS.
8469 * posix/sys/wait.h (__WAIT_STATUS): #if 0 out gcc2 magic defn.
8470 GCC is broken as of 2.3.1.
8472 * signal/signal.h (__sigaction, sigaction): Fixed type in
8473 prototype from `struct __sigaction' to `struct sigaction'.
8475 * sysdeps/m68k/fpu/atan2.c (PI, PIo4, PIo2): Removed static vars.
8476 (atan2): Declare PIo4 and PIo2 locally, and compute them from pi.
8478 * Makerules (native-CFLAGS): Define as $(config-defines).
8480 * sysdeps/unix/bsd/glue-ctype.c: Upcased all HAVE_* names in #ifdef's.
8482 * posix/fnmatch.h (FNM_LEADING_DIR): New flag.
8483 * posix/fnmatch.c (fnmatch): Support it.
8485 * sysdeps/i386/bytesex.h: New file.
8486 * sysdeps/i386/endian.h: Removed.
8487 * sysdeps/stub/bytesex.h: New file.
8488 * sysdeps/stub/endian.h: Removed.
8489 * sysdeps/generic/Makefile (bytesex.h): Create with det_endian.
8490 (endian.h): Removed old rule.
8491 (before-compile): Replace endian.h with bytesex.h.
8492 * string/Makefile (headers): Add bytesex.h.
8493 * string/endian.h: New file.
8494 * sysdeps/generic/det_endian.c: Rewritten to output just one line,
8495 a #define of __BYTE_ORDER to 1234, or 4321, etc.
8496 * inet/arpa/nameser.h: #include <endian.h>, rather than #ifdef'ing
8497 on misc. things to #define BYTE_ORDER.
8498 * sysdeps/generic/waitstatus.h: Test value of __BYTE_ORDER, not
8499 whether __LITTLE_ENDIAN is #define'd.
8500 * sysdeps/generic/mathimpl.h: Likewise.
8501 * sysdeps/generic/memcopy.h: Likewise.
8502 * sysdeps/ieee754/huge_val.h: Likewise.
8503 * sysdeps/ieee754/nan.h: Likewise.
8504 * sysdeps/ieee754/ieee754.h: Likewise.
8506 Mon Nov 16 12:19:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8508 * Makeconfig (ARCH): Define to empty if $(..)config.make exists.
8510 * misc/getusersh.c (initshells): malloc (STATB.st_size + 1), to
8511 contain the terminating NUL. Pass fgets the real amount of space
8512 left in the buffer, instead of the random number (MAXPATHLEN + 1).
8514 * configure.in (minix*): base_os=unix/sysv.
8515 * sysdeps/unix/sysv/minix/sigaction.h: New file.
8517 * sysdeps/generic/sigaction.h (__SA_*): Renamed to SA_*.
8518 [__USE_BSD]: Put all but SA_NOCLDSTOP under this #ifdef.
8519 * signal/signal.h (SA_*): Remove #define's.
8520 (SIG_*): Moved #define's to sigaction.h.
8522 * sysdeps/generic/sigset.h (__sigmask): Shift ((sigset_t) 1), not
8525 * signal/signal.h (kill): Fix type of first arg to __pid_t, not int.
8527 * sysdeps/unix/Makefile (errnos): Changed regexp to disallow
8528 E[^A-Z0-9], and not to require that the defn be numeric only.
8530 * stdlib/stdlib.h: Don't #include <huge_val.h>; ANSI doesn't say
8531 <stdlib.h> defines HUGE_VAL.
8533 * stdlib/stdlib.h (__compar_fn_t): Use __P around prototype.
8535 * posix/Makefile (headers): Add utsnamelen.h, so it gets installed.
8536 (distribute): Remove it from here.
8538 * setjmp/setjmp.h (sigjmp_buf): Rename `__savemask' to
8539 `__mask_was_saved' and `__sigmask' to `__saved_mask'.
8540 * setjmp/sigjmp_save.c (__sigjmp_save): Change use.
8541 * setjmp/siglongjmp.c (siglongjmp): Likewise.
8543 Fri Nov 13 17:34:00 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8545 * configure.in (config.make): Write assignments for INSTALL,
8546 INSTALL_PROGRAM, INSTALL_DATA, and RANLIB.
8548 Thu Nov 12 17:11:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8550 * sysdeps/stub/stime.c: #include <stddef.h> for NULL.
8552 * sysdeps/stub/morecore.c: Fixed arg type to ptrdiff_t.
8554 * sysdeps/stub/ptrace.c: Fixed `va_start' uses to pass 2nd arg.
8556 * sysdeps/unix/sysv/sysv4/fcntlbits.h: New file, modified from
8557 unix/bsd/sun/sunos4 version.
8559 * sysdeps/unix/bsd/bsd4.4/fcntlbits.h: New file, modified from
8562 * sysdeps/unix/bsd/ultrix4/fcntlbits.h: New file, modified from
8565 * sysdeps/unix/bsd/sun/sunos4/fcntlbits.h: New file, modified from
8568 * sysdeps/unix/sysv/fcntlbits.h: Rewritten from stub version.
8569 * sysdeps/unix/sysv/filebits.h: File removed.
8571 * sysdeps/unix/bsd/fcntlbits.h: Rewritten from stub version.
8572 * sysdeps/unix/bsd/filebits.h: File removed.
8574 * io/fcntl.h: Don't #include <filebits.h>.
8575 Removed all #define's of foo to __foo; <fcntlbits.h> now defines
8578 * sysdeps/stub/fcntlbits.h: Remove leading __ from all symbols.
8580 * misc/sys/file.h (L_SET, L_INCR, L_XTND): Define to literal
8581 values, not to __ versions. These are not system-dependent.
8582 (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Define to literal values,
8583 not to __ versions. These are not actually system-dependent,
8584 because no system has `flock' except for BSD compatibility, and
8585 then they use the same numbers.
8586 * sysdeps/stub/fcntlbits.h (__L_SET, __L_INCR, __L_XTND): Removed.
8587 (__LOCK_SH, __LOCK_EX, __LOCK_UN, __LOCK_NB): Removed.
8589 Tue Nov 10 17:01:11 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8591 * sysdeps/stub/fcntlbits.h: Merged in contents of filebits.h.
8592 (struct __flock): Renamed to `struct flock'.
8593 * sysdeps/stub/filebits.h: File removed.
8595 * posix/unistd.h (access, lseek, close, read, write, pipe, chown,
8596 fchown, chdir, dup, dup2, execve, pathconf, fpathconf, sysconf,
8597 getpid, getppid, setpgrp, setpgid, setsid, getuid, getgid,
8598 geteuid, getegid, setuid, setreuid, setgid, setregid, fork, vfork,
8599 isatty, link, symlink, readlink, unlink, rmdir, gethostname,
8600 getpagesize, getdtablesize): Remove #define's to __ versions.
8602 * posix/sys/types.h: Don't #include <gnu/time.h>.
8603 Instead, use forward decl `struct timeval;'.
8604 (__select): Use `struct timeval', not `struct __timeval', in prototype.
8605 Move into #ifdef __USE_BSD.
8606 (select): Removed #define to __select; added real prototype.
8608 * sysdeps/generic/waitstatus.h: New file.
8609 * sysdeps/stub/waitflags.h: New file.
8610 * sysdeps/unix/bsd/waitflags.h: New file.
8611 * posix/sys/wait.h: Don't #include <gnu/wait.h>.
8612 Do #include <waitflags.h> and <waitstatus.h>.
8613 (WHOHANG, WUNTRACED): Don't #define to __ versions; <waitflags.h>
8614 will define the unmarked cases.
8615 (union __wait): Remove type decl and associated #define's for w_*;
8616 `union wait' (no __) is now defined in <waitstatus.h>.
8617 [__USE_BSD && __GNUC__ >= 2] (__WAIT_STATUS): Define as funky union.
8618 (waitpid, wait3, wait4, wait): Removed #define's to __ versions;
8619 added real prototypes.
8620 * posix/gnu/wait.h: File removed.
8621 * posix/Makefile (headers): Remove gnu/wait.h.
8623 * posix/sys/times.h [__OPTIMIZE__] (times): Removed #define to __times.
8625 * posix/sys/utsname.h: Removed decl of __uname_getnode.
8627 * time/sys/time.h: Don't #include <gnu/time.h>.
8628 Don't support __need_timeval.
8629 (struct timeval, struct timezone, struct itimerval,
8630 enum __itimer_which): Declare these types here.
8631 (gettimeofday, settimeofday, adjtime, getitimer, setitimer,
8632 utimes): Removed #define's to __ versions. Added real prototypes.
8633 Use `struct timeval' instead of `struct __timeval', etc.
8634 * time/gnu/time.h: File removed.
8635 * time/Makefile (headers): Removed gnu/time.h.
8637 * resource/sys/resource.h: Don't #include <gnu/time.h>.
8639 Mon Nov 9 18:41:03 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8641 * socket/sys/socket.h (SO_STYLE): Define instead of SO_TYPE.
8642 (SO_TYPE): Define as SO_STYLE.
8644 * inet/netinet/in.h (struct ip_opts): New type.
8645 (IP_*): New constants snarfed from 4.4's in.h.
8647 Fri Nov 6 15:34:41 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8649 * resource/sys/resource.h (struct rusage): #include <sys/time.h>
8650 before struct defn. Use `struct timeval', not `struct __timeval'
8651 for `ru_utime' and `ru_stime' members.
8653 * resource/sys/resource.h [__OPTIMIZE__] (getrusage, ulimit),
8654 misc/sys/ioctl.h [__OPTIMIZE__] (ioctl): Remove #define's to __
8657 * string/strings.h: Protect against multiple inclusion.
8658 * termios/sys/termios.h: Ditto.
8660 * string/string.h [__GNUC__ && __OPTIMIZE__] (ffs): Remove #define
8663 * stdlib/stdlib.h (comparison_fn_t): Use a typedef, not a #define.
8664 Define this #ifdef __USE_GNU, not #ifdef __GNUC__.
8665 [__GNUC__ && __OPTIMIZE__] (abs, labs): Remove #define's to __builtin_.
8667 Thu Nov 5 20:01:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8669 * signal/Makefile (headers): Remove gnu/signal.h;
8670 add sigaction.h, sigset.h.
8671 * sysdeps/generic/sigaction.h: New file.
8672 * sysdeps/generic/sigset.h: New file.
8673 * signal/gnu/signal.h: Removed.
8674 * signal/signal.h: Move __{BEGIN,END}_DECLS outside all the #if's
8675 (except the outermost one that protects against multiple inclusion).
8676 Don't #include <gnu/signal.h>. Instead #include <sigset.h>
8677 outside of #if's, and #include <sigaction.h> inside #ifdef __USE_POSIX.
8678 (__sighandler_t): Define here; it is not system-specific.
8679 (kill, ssignal, gsignal, sigblock, sigsetmask, sigpause, sigvec,
8680 sigreturn): Remove #define's to __ versions.
8681 (sighandler_t, sigset_t): Use a typedef, not a #define.
8682 [__OPTIMIZE__] (sig{empty,fill,add,del}set, sigismember): Make
8683 these macros take args.
8684 (sigaction): Remove #define.
8685 (struct __sigvec): Renamed `struct sigvec'.
8686 (__sigvec): Use `struct sigvec', not `struct __sigvec', in prototype.
8688 Fri Oct 30 19:45:26 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8690 * configure.in (sco*): base_os=unix/sysv.
8692 Thu Oct 29 16:29:26 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8694 * configure.in: New file; mostly contents of old file `configure'.
8695 (srcdir guessing): Removed this code.
8696 Instead, call AC_PREPARE.
8697 Call AC_PROG_INSTALL and AC_PROG_RANLIB to find those programs.
8698 Use AC_HAVE_FUNCS to find what sys_siglist and _ctype_ are called.
8699 (config.make): Write new var `config-defines' with what autoconf
8701 Append -DHAVE_GNU_LD and -DHAVE_GNU_AS to DEFS if appropriate;
8702 don't write gnu_ld and gnu_as variables.
8703 * configure: Removed.
8704 * Makefile (distribute): Add configure.in.
8705 * Makeconfig (+defines): Include $(config-defines) before $(defines);
8706 don't include $(gnu_as) and $(gnu_ld).
8708 * sysdeps/unix/bsd/glue-ctype.c (TABLE): Test HAVE_* for several
8709 different names and #define this.
8710 (STRINGIFY): Define macro.
8711 (main): Use TABLE instead of hardcoded name.
8713 * configure (sysnames): Try successively less specific base os's.
8715 * Makerules (ar-it): Define commands only ifdef objects.
8717 * sysdeps/mips/setjmp.S: Jump to __setjmp_aux, not ___setjmp_aux.
8718 We are NO_UNDERSCORES.
8720 Tue Oct 27 18:11:19 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8722 * sysdeps/posix/pipestream.c, sysdeps/posix/system.c: Always use
8723 __vfork instead of expecting FORK to be defined.
8724 * sysdeps/unix/bsd/system.c, sysdeps/unix/bsd/pipestream.c:
8725 Removed. sysdeps/unix versions are now what we want.
8727 * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Removed.
8728 * sysdeps/unix/bsd/hp/m68k/__wait.S: Moved to unix/bsd/m68k.
8730 * sysdeps/unix/bsd/hp/m68k/{__pipe,sysdep}.S: Moved to unix/bsd/m68k.
8731 * sysdeps/unix/bsd/sun/m68k/{__pipe,sysdep}.S: Removed.
8733 * sysdeps/unix/bsd/sun/m68k/start.c: Moved to unix/bsd/m68k.
8734 * sysdeps/unix/bsd/sony/m68k/start.c: Removed.
8736 * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Correct file name in #include.
8738 * sysdeps/unix/bsd/sun/m68k/__fork.S: Removed.
8739 * sysdeps/unix/bsd/hp/m68k/__fork.S: Removed.
8740 * sysdeps/unix/bsd/vax/__fork.S: Moved to unix/bsd.
8742 * sysdeps/generic/__vfork.c: New file; fn alias to __fork.
8743 * sysdeps/stub/__vfork.c: Removed.
8745 * limits.h: Only do #include_next #ifndef _LIMITS_H_.
8747 * malloc/mcheck.c (mcheck): Set abortfunc to either FUNC or abort;
8748 never leave it unchanged.
8749 Return 0 if mcheck_used; -1 if not.
8750 * malloc/malloc.h (mcheck): Change return type in decl.
8752 * Makerules (+depfiles): Don't include them if there are none.
8754 Mon Oct 26 16:30:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8756 * sysdeps/posix/fdopen.c: Use fcntl to check that FD is valid and
8757 allows the access MODE specifies.
8759 * sysdeps/stub/getcwd.c: #include <stddef.h>.
8761 * sysdeps/stub/sleep.c: #include <errno.h>.
8763 Sun Oct 25 02:24:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8765 * Makerules (+includes): Add $(+sysdep-includes) to this, leaving
8768 * sysdeps/stub/stime.c: #include <time.h>.
8770 Thu Oct 22 13:36:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8772 * Rules (clean): Also remove $(clean-extras).
8774 Tue Oct 20 18:36:40 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8776 * configure: Write error message and lose for option with missing arg.
8778 * stdio/__vfscanf.c: Add `a' modifier, which makes %s and %[ fill
8779 in a char ** with a malloc'd string.
8780 (STRING_ADD_CHAR, STRING_ARG): New macros to deal with this hair.
8783 * posix/gnu/types.h [__GNUC__] (__fsid_t): Define as long long.
8785 * stdio/vfprintf.c: Add %m, which is %s of strerror (errno).
8787 Mon Oct 19 14:19:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8789 * socket/sys/socket.h (PF_FILE, AF_FILE): Define new macros.
8790 (PF_UNIX, AF_UNIX): Make aliases for [PA]F_FILE.
8792 * sysdeps/ieee754/huge_val.h: #include <sys/cdefs.h>.
8793 [!__GNUC__]: Use __const, not CONST.
8795 * posix/wordexp.h: Fix indentation and syntax errors.
8797 * stdio/vasprintf.c (vasprintf): Set seen bit.
8799 Fri Oct 16 17:18:34 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8801 * Makefile (Mcrt1.o): Create an empty .c file and compile it,
8802 rather than creating an empty .o file.
8804 * sysdeps/unix/Makefile (sys/param.h): Strip / from name for mkdir.
8806 * sysdeps/m68k/fpu/atan2.c [! __GNUC__]: Include generic, not iee754.
8808 * sysdeps/sparc/Makefile ({divrem}.S): Use $(M4) for m4 in cmds.
8809 * Makeconfig (M4): Define it.
8811 * stdio/newstream.c (__newstream): Link STREAM onto __stdio_head
8812 after malloc'ing it.
8814 * time/emkdir.c: #define unix if not already defined.
8816 Thu Oct 15 19:55:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8818 * stdlib/wctomb.c: When passed 0, store a '\0' and return 1.
8819 * stdlib/mbtowc.c: When passed "", store a 0 and return 1.
8821 * sysdeps/generic/strstr.c: When NEEDLE is "", return HAYSTACK.
8823 Thu Oct 15 19:25:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8825 * malloc/malloc.h (__after_morecore_hook): Declare new var.
8826 * malloc/malloc.c (__after_morecore_hook): Define it.
8829 Mon Oct 12 15:56:07 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8831 * malloc/malloc.h (r_alloc, r_alloc_free, r_re_alloc): Declare.
8833 * Makerules (native-compile, common-objdir-compile): Pass
8834 $(native-CFLAGS) to the compiler.
8836 * Makeconfig (+gccwarn): Removed -Wstrict-prototypes and
8837 -Wpointer-arith. They were not really helping, and caused extra
8838 warnings for harmless code.
8840 * malloc/Makefile (dist-routines): Add ralloc.
8841 (gpl2lgpl): Add ralloc.c.
8843 * time/zic.c: #define unix if not already defined.
8845 * Makerules ($(gpl2lgpl)): Make output unwritable; use mv -f.
8847 Mon Oct 12 15:27:40 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu)
8849 * sysdeps/unix/bsd/ultrix4/mips/__set[gu]id.S: Handle returning to
8850 the proper caller ourselves, since setre[gu]id won't be doing it.
8852 Mon Oct 12 13:37:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8854 * malloc/malloc.h: Declare memory_warnings.
8855 * malloc/Makefile (dist-routines): Add vm-limit.
8856 (distribute): Add mem-limits.h.
8857 (gpl2lgpl): Add vm-limit.c, mem-limits.h.
8859 * gpl2lgpl.sed: Remove "This file is part of ..." lines.
8860 Changed regexp to match "foo is free software", not just "This
8863 * Makerules (+make-deps): Put file name before options on command line.
8865 * Makefile (install-lib): Remove libc.a from here.
8866 * Makerules [objects] (install-lib): Append it here instead.
8868 * io/sys/stat.h (S_IRWXO): Fixed typo.
8870 Sun Oct 11 16:58:36 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8872 * posix/glob.c (__glob_{open,read,close}dir_hook): New vars.
8873 (glob_in_dir): Use them.
8874 * posix/glob.h: Declare them.
8876 Thu Oct 8 20:03:30 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
8878 * configure (config.make): Write comment to edit configparms instead.
8880 Wed Oct 7 17:15:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8882 * sysdeps/stub/__chown.c: Fixed arg types (int -> [ug]id_t).
8884 * sysdeps/stub/__geteuid.c: Fixed return type (int -> __uid_t).
8886 * sysdeps/stub/__getegid.c: Fixed return type (int -> __gid_t).
8888 * configure: Write defns in config.make for vars config-machine,
8889 config-vendor, and config-os.
8891 * ctype/ctype.h (__isctype, __tolower, __toupper): Cast argument
8892 and return value to `int'.
8894 * ctype/ctype.h (__ctype_tolower, __ctype_toupper): Changed type
8896 (toupper, tolower): Removed inline functions; restored macros.
8897 * ctype/ctype.c (tolower, toupper): Just call the __ macros.
8898 * ctype/ctype-info.c: Change types here too.
8899 * locale/localeinfo.h: And here.
8900 * locale/C-ctype_ct.c: Ditto.
8902 * crypt: New code from Michael Glad.
8904 * Makefile (munch-init.c), sysdeps/unix/Makefile
8905 ($(sys/param.h-includes), make-errnos.c, make-ioctls.c),
8906 sysdeps/unix/bsd/Makefile (local_lim.h, ctype-glue.c),
8907 sysdeps/posix/Makefile (stdio_lim.h): Changed rules to use a
8908 shorter suffix than `-tmp', to avoid exceeding 14 char limit.
8910 Tue Oct 6 15:13:57 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8912 * Makefile (README, INSTALL): Moved rules here.
8913 * Make-dist: From here.
8915 * sysdeps/unix/bsd/sun/m68k/{__pipe,__fork,sysdep}.S: Change uses
8916 of sysdeps/unix/bsd/hp9k3bsd to sysdeps/unix/bsd/hp/m68k.
8918 * sysdeps/m68k/Makefile: Put .S rule here.
8919 * sysdeps/unix/bsd/hp/m68k/Makefile: Removed file.
8921 Mon Oct 5 19:40:22 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8923 * sysdeps/generic/pow.c (pow_p): Changed code to KY jelly.
8925 * sysdeps/unix/bsd/ultrix4/utsnamelen.h: New file.
8926 * sysdeps/unix/bsd/ultrix4/uname.S: New file.
8928 Fri Oct 2 17:43:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8930 * sysdeps/posix/mktemp.c: Don't use a static index and increment
8931 it on each call. Instead, always start at the beginning and
8932 iterate until we find a file that does not exist.
8934 * sysdeps/unix/sysv/i386/signal.S: Use C_SYMBOL_NAME for __sigreturn.
8935 Added comment about gas bug with `lcall' insn.
8937 * sysdeps/unix/i386/__brk.S: Use C_SYMBOL_NAME for __curbrk and _end.
8939 * sysdeps/unix/i386/sysdep.S: #include <sysdep.h>.
8940 Use C_SYMBOL_NAME(errno) in place of _errno.
8942 * sysdeps/unix/sysdep.h (___errno): Removed #define to _errno.
8943 `errno' is an ANSI name; it doesn't need to be aliased.
8944 * sysdeps/unix/bsd/sun/m68k/sethostid.S,
8945 sysdeps/unix/bsd/sun/m68k/__vfork.S,
8946 sysdeps/unix/bsd/sun/sparc/sysdep.h,
8947 sysdeps/unix/bsd/sun/sparc/sethostid.S,
8948 sysdeps/unix/bsd/vax/sysdep.S,
8949 sysdeps/unix/bsd/vax/__vfork.S: Use _errno, not ___errno.
8951 * sysdeps/unix/sysv/sysdep.h: File removed.
8952 * sysdeps/unix/sysv/i386/sysdep.h: Don't #include it.
8953 #define NO_UNDERSCORES before #include <sysdeps/unix/i386/sysdep.h>.
8955 * sysdeps/unix/i386/sysdep.h (C_SYMBOL_NAME): Define new macro.
8956 [NO_UNDERSCORES]: #define syscall_error to __syscall_error, so we
8957 stay name space tidy.
8959 * sysdeps/unix/sysv/sysv4/sys_getdents.S: Added missing arg count (3).
8961 * sysdeps/unix/sysv/i386/time.S: Fixed to not use bogus addressing
8962 mode `4(%esp,1)'; use `4(%esp)' instead. Added comments.
8964 * sysdeps/stub/__fchmod.c (__fchmod): Fixed arg type to mode_t.
8966 * sysdeps/posix/__wait3.c: #include <stddef.h> for NULL.
8968 * sysdeps/unix/i386/__wait.S: Use asm label `null' instead of
8969 `1f', and actually define the label! Added comments.
8971 * sysdeps/i386/memchr.c: Renamed asm label to `done'; not all
8972 assemblers support numbered labels like `1f' or `1b'.
8974 * stdio/fseek.c (fseek): Discard char pushed back by ungetc.
8975 * stdio/ftell.c (ftell): If we have a pushed-back char, decrement
8976 the file position we return.
8978 * sysdeps/unix/bsd/sun/sparc/vfork.S: New file.
8980 Wed Sep 30 18:48:38 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8982 * limits.h (_LIBC_LIMITS_H_): Define today's name for this.
8983 RMS said it was to be `_LIBC_LIMITS_H', but that is not what
8986 Tue Sep 29 18:17:12 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8988 * time/Makefile (zic-cmd): Define variable.
8989 (tzcompile, zoneinfo/localtime, zoneinfo/posixrules): Use it for
8990 name of `zic' command.
8992 * sysdeps/unix/bsd/Makefile (ctype-glue.c): Make sure the command
8993 is not an unqualified name.
8995 * sysdeps/stub/statbuf.h (struct stat): Contain only POSIX.1
8996 members, with the POSIX.1 types.
8997 (_STATBUF_ST_BLKSIZE): #undef and comment.
8998 * sysdeps/unix/bsd/statbuf.h (_STATBUF_ST_BLKSIZE): Define it.
8999 * sysdeps/posix/stdio_init.c (__stdio_init_stream): Only try to
9000 use st_blksize #ifdef _STATBUF_ST_BLKSIZE.
9002 * sysdeps/unix/__getpgsz.c: #include <stddef.h> for size_t.
9004 * sysdeps/stub/__fchown.c: Fixed arg types ([ug]id_t, not int).
9006 * io/sys/stat.h: #include <gnu/types.h> for __mode_t et al.
9008 * sysdeps/unix/__gete[ug]id.S [SYS_gete[ug]id]: Add arg count of 0.
9009 [! SYS_gete[ug]id]: Fixed arg count to be 0.
9011 * sysdeps/unix/__get[ug]id.S: Fixed arg count to be 0.
9013 * sysdeps/unix/sysv/linux/syscall.h: #if 0'd out 2nd defn of SYS_brk.
9015 Sun Sep 27 21:56:56 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9017 * sysdeps/unix/Makefile (sys/param.h): Depend on $(common-objpfx)sys/.
9019 Fri Sep 25 12:47:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9021 * Makeconfig (INSTALL_DATA): Pass -m 644.
9023 Thu Sep 24 16:13:47 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9025 * sysdeps/unix/sysv/linux/getpeername.S: Renamed to getpeernam.S.
9026 * sysdeps/unix/sysv/linux/getsockname.S: Renamed to getsocknam.S.
9027 * sysdeps/unix/sysv/linux/setsid.S: Renamed to __setsid.S;
9028 function renamed to __setsid.
9032 * Makefile (dist): Depend on $(distribute).
9034 * stdio/__vfscanf.c (%c): Fixed DO_ASSIGN case loop condition to
9035 not write one char too many.
9037 Wed Sep 23 16:32:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9039 * stdlib/qsort.c (_quicksort): Return immediately if TOTAL_ELEMS==0.
9041 Tue Sep 22 19:10:59 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9043 * Makerules [! OUTPUT_OPTION && objpfx]: Define OUTPUT_OPTION.
9045 Mon Sep 21 22:40:55 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9047 * sysdeps/unix/bsd/mk-local_lim.c: Use MAXNAMLEN for NAME_MAX,
9048 rather than hard-wiring 255.
9049 [! MAXNAMLEN]: Define it to 255.
9050 [LINK_MAX && ! MAXLINK]: #define MAXLINK LINK_MAX.
9052 * sysdeps/unix/bsd/glue-ctype.c [ultrix]: #define _ctype_ _ctype__.
9054 * configure: Rename var `gas' to `gnu_as' and use consistently.
9056 Fri Sep 18 16:32:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9058 * sys/errno.h: New file.
9059 * Makefile (headers): Add it.
9061 * Makeconfig (+make-deps): Use = not define.
9063 * time/Makefile (zones-%): Don't clobber zonenames; append to it.
9064 Depend on Makefile so we rebuild when the rule changes.
9065 Changed implicit rule from zoneinfo/%/... to zone%/... so it will
9068 * sysdeps/unix/Makefile (syscall.h): Filter out "#ident" lines.
9070 * Makeconfig (+link): Use $(gnulib) instead of -lgcc.
9071 (gnulib): Define to -lgcc.
9073 * posix/glob/Makefile.in (AR, ARFLAGS): Define.
9074 (libglob.a): Use those vars instead of hardcoding.
9076 * Makeconfig (ARCH) [machine]: Don't define if $(..)config.make exists.
9078 * Makerules (compile.S): Include $(asm-CPPFLAGS).
9079 (S-CPPFLAGS): Define = $(asm-CPPFLAGS).
9080 (+make-deps): Include $(sfx-CPPFLAGS), where `sfx' is S or c.
9081 * Makeconfig (asm-CPPFLAGS): Define (empty) and comment.
9083 * sysdeps/unix/Makefile ($(sys/param.h-includes)): Filter out
9084 decls or macros for host<->net conversion (htonl et al).
9086 Thu Sep 17 17:33:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9088 * sysdeps/unix/sysv/statbuf.h: Define __S_*.
9090 * misc/Makefile (headers): syslog.h -> sys/syslog.h.
9091 * misc/syslog.h: Moved to misc/sys/syslog.h.
9093 * limits.h [__GNUC__ >= 2]: #define _LIBC_LIMITS_H before
9094 #include_next <limits.h>.
9095 Define _LIMITS_H unconditionally.
9097 Wed Sep 16 17:43:59 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9099 * sysdeps/unix/Makefile (syscall.h): Don't use \< in sed commands.
9100 Some seds don't seem to grok it.
9102 * Makerules (+install-dirs): Sort them.
9104 * Makeconfig (stdarg.h): Use $(wildcard va-*.h) instead of va-*.h,
9105 and := instead of =.
9107 * Makeconfig (prefix): Default to $(exec_prefix), not /usr/local.
9109 * Makeconfig (+link): Use $(common-objpfx) rather than $(objpfx)
9110 to find start.o; use $(libc.a) instead of $(objpfx)libc.a.
9112 * sysdeps/sparc/Makefile: crypt subdir is not called uf-crypt.
9114 * sysdeps/unix/Makefile (sys/param.h-includes): Fixed filtering
9115 out of existent glibc headers to remove $(..) pfx after wildcard.
9117 * misc/paths.h: New file, snarfed from 4.4 BSD.
9118 * misc/Makefile (headers): Add paths.h.
9120 Tue Sep 15 14:55:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9122 * Makerules (+sysdir_pfx): Define as $(common-objpfx).
9124 * MakeTAGS (TAGS) [subdir && ! tags_sources]: Create an empty
9125 file, rather than no commands at all.
9127 * string/string.h [__GNUC__ && __OPTIMIZE__] (ffs): Take arg.
9129 * sysdeps/unix/sysv/linux/__wait4.S: New file.
9131 * sysdeps/unix/sysv/linux/syscall.h: New version from hlu.
9133 * sysdeps/unix/Makefile (syscall.h): Upcase `sys_' in input.
9135 * sysdeps/unix/bsd/ultrix4/mips/sysdep.h (MOVE): Insn is `move',
9138 * sysdeps/unix/bsd/ultrix4/mips/sigcontext.h: Deansideclized.
9140 * sysdeps/unix/ioctls-tmpl.c [DIOCGETPT, DEVGETGEOM]: Include
9142 [ultrix]: Mondo cruft.
9144 Sat Sep 12 12:08:29 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
9146 * misc/Makefile (routines): Add ttyslot, syslog.
9147 * misc/ttyslot.c, misc/syslog.[ch]: New, snarfed from 4.4 BSD.
9148 (headers): Add syslog.h
9150 * misc/getttyent.c (getttyent): Parse _TTYS_TRUSTED keyword and
9151 set TTY_TRUSTED bit.
9152 * misc/ttyent.h (TTY_TRUSTED): New bit in ty_status.
9153 (_TTYS_TRUSTED): New keyword.
9154 (_TTYS_CONSOLE): New keyword.
9155 (TTY_CONSOLE): New bit in ty_status.
9157 * dirent/scandir.c (scandir): Don't keep using V after realloc'ing
9158 it. Use the returned new ptr instead.
9160 Thu Sep 10 18:59:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9162 * stdlib/div.c, stdlib/ldiv.c: Rewritten from Berkeley code that works.
9164 * Makeconfig (stdarg.h): Add va-*.h.
9166 * stdlib/Makefile (dont_distribute): Define: testsort.input.
9168 * sysdeps/mach/hurd/i386/_hurd_start_sigthread.c,
9169 sysdeps/stub/_hurd_start_sigthread.c: Renamed to .../startsig.c.
9170 * sysdeps/mach/hurd/sys_errlist.awk: Renamed to .../errlist.awk.
9171 * sysdeps/mach/hurd/Makefile (sys_errlist.c): Change dep.
9172 * sysdeps/unix/bsd/make-local_lim.c: Renamed to .../mk-local_lim.c.
9173 * sysdeps/unix/bsd/Makefile (local_lim.h): Change dep.
9174 (make-local_lim): Change target and dep.
9175 * hurd/_hurd_dead_recv.c: Renamed to hurd/dead_recv.c.
9176 * hurd/setdtablesize.c: Renamed to hurd/setdtsz.c.
9177 * hurd/Makefile (routines): Change references.
9178 * stdio/tstgetline.c: Renamed to stdio/tstgetln.c.
9179 * stdio/tstgetline.input: Renamed to stdio/tstgetln.input.
9180 * stdio/Makefile (tests): Change ref.
9181 * README.template: Remove note about long file names.
9183 * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h (_UTSNAME_LENGTH):
9184 Define here, rather than #include'ing sysv/utsnamelen.h.
9185 This file gets installed.
9187 Wed Sep 9 17:06:14 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9189 * Makeconfig (localtime-file): Put in $(prefix)/etc, not /etc.
9191 * setjmp/Makefile (routines): Remove sigsetjmp.
9193 * sysdeps/posix/Makefile (objdir-CPPFLAGS) [! subdir]: Rewrote
9194 totally broken defn.
9196 * sysdeps/unix/Makefile (syscall.h): Keep lines starting
9197 with #, not only those starting with #define.
9198 We want to preserve any #ifdef in the original.
9200 * Makerules (install): Dep $(+install-dirs), not $(dir $(+install)).
9201 (+install-dirs): Define to get two levels of dirs.
9203 * time/Makefile (tz-cc): Use = instead of define directive.
9205 * sysdeps/unix/bsd/sun/sparc/start.c (_start): Give ARGC, ARGV,
9206 and ENVP `register' storage class; can then clear the FP early.
9208 Sat Sep 5 13:14:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
9210 * Makerules (sysdirs): Pass sysdep_dir in child's environment.
9212 Fri Sep 4 15:37:23 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
9214 * Makeconfig (common-objpfx): Add trailing slash.
9215 Move comment to prev line to avoid extra whitespace.
9217 Thu Sep 3 17:31:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9219 * sysdeps/unix/bsd/setgroups.S: New file. How did this manage not
9224 * sysdeps/generic/memmem.c (memmem): Fixed loop condition not to
9225 use nonexistent variable.
9227 * string/string.h (memmem): Put const qualifier on args.
9229 * sysdeps/stub/sigaltstack.c (sigaltstack): Fix arg type.
9231 * setjmp/sigsetjmp.c: #undef sigsetjmp before defining the function.
9233 Wed Sep 2 16:43:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9235 * misc/Makefile (headers): Add syscall.h.
9236 * sysdeps/unix/Makefile: Only generate syscall.h if it would
9237 otherwise come from stub.
9238 * sysdeps/stub/syscall.h: New file.
9240 * time/Makefile (routines): Add stime.
9242 * io/Makefile (routines): Add fchdir.
9244 * signal/Makefile (routines): Add sigaltstack.
9246 * string/Makefile (routines): Add memmem.
9248 * setjmp/Makefile (routines): Add sigsetjmp, _setjmp.
9250 * misc/Makefile (routines): Add getpass.
9252 * Makefile (distribute): Add NEWS.
9254 * Makerules (ar-it) [! objdir]: Pass `ru' instead of `u' to ar.
9255 Use $(..)libc.a instead of $(libc.a).
9257 * sysdeps/unix/sysv/i386/linux/sysdep.h (PSEUDO): Call numbers are
9260 * sysdeps/unix/sysv/i386/linux/__wait.S: Prepend extra _ to
9261 `__waitpid' for jmp.
9263 * Makerules (check): New rule; alias for `tests'.
9265 * sysdeps/stub/__setregid.c: Args are gid_t, not int.
9267 * sysdeps/posix/readv.c: #include <string.h>.
9269 * sysdeps/generic/printf_fp.c: If LDBL_DIG or LDBL_MAX_10_EXP is
9270 defined by float.h, #define each to DBL_*.
9272 Tue Sep 1 16:29:07 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9274 * sysdeps/unix/Makefile (syscall.h): Add missing backslashes.
9276 * Makeconfig [!objdir && !..] (common-objpfx): Define as
9277 `sysdeps/..'; The Almighty KludgeMeister 2000 wins again.
9279 * Makerules (sysdep-Makefile): Rename to sysd-Makefile.
9281 * Makeconfig (CC): Don't use -pipe by default.
9283 * configure (switches): Put quotes around os-release and
9286 Mon Aug 31 19:33:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9288 * sysdeps/stub/cbrt.c: New file.
9290 * sysdeps/generic/cabs.c: New file.
9292 * sysdeps/generic/ceil.c: New file, split from floor.c.
9293 * sysdeps/generic/__rint.c: Replaced with code split from floor.c.
9294 * sysdeps/generic/Makefile (routines): Don't remove ceil, __rint.
9296 Thu Aug 27 15:58:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
9298 * malloc/malloc.h [! __STDC__] (ptrdiff_t): #define.
9300 Wed Aug 26 18:15:47 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9302 * malloc/free.c (__free): Rename to _free_internal.
9303 (free), malloc/malloc.c (morecore): Change callers.
9304 * malloc/malloc.h: Change decl.
9306 Tue Aug 18 17:38:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9308 * sysdeps/generic/__copysign.c: New file.
9310 * sysdeps/unix/sysv/sysdep.h: #include <syscall.h>, not
9311 <sys/syscall.h>. Don't #define _SYS_SYS_S; should no longer be
9314 * sysdeps/unix/Makefile (syscall.h): Replaced simple code to just
9315 find the file in any of several places, with hairier code to find
9318 * malloc/Makefile (obstack.%): Remove rule.
9319 (gpl2lgpl): Define this instead.
9320 * posix/Makefile (gpl2lgpl): Define to include getopt source files.
9321 * Makerules ($(gpl2lgpl)): New rule to snarf code and frob its
9324 Fri Aug 14 13:28:39 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9326 * Makeconfig (common-objdir, common-objpfx): Define new vars.
9327 (libc.a): Define in terms of $(common-objpfx).
9328 Find config.make with $(common-objpfx), not $(objpfx).
9329 * Makerules (common-objdir-compile): Define canned sequence.
9330 (native-compile): Use $(@D)/$(@F) instead of stripping off $(objpfx).
9331 * sysdeps/unix/Makefile, sysdeps/unix/bsd/Makefile,
9332 sysdeps/generic/Makefile: Use it.
9333 Use $(common-objpfx) for generated things not specific to one subdir.
9335 * sysdeps/unix/Makefile (sysdep_headers): Add
9336 $(sys/param.h-includes) to this instead of to headers.
9338 Thu Aug 13 18:30:58 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9340 * posix/glob.c: Always #include <sys/types.h>.
9341 [! USG]: Don't do it here.
9342 [STDC_HEADERS]: Test this instead of __STDC__ for size_t.
9343 [HAVE_STRCOLL]: Test this instead of ANSI_STRING for strcoll.
9345 * posix/glob/Makefile.in (Makefile): Remove rule.
9347 Wed Aug 12 16:12:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9349 * sysdeps/sparc/jmp_buf.h: Deansideclized.
9351 * sysdeps/generic/make_siglist.c: #undef HAVE_SYS_SIGLIST, not
9352 SYS_SIGLIST_MISSING.
9353 * sysdeps/generic/signame.[ch]: Re-symlinked from /gd/gnu/lib.
9354 Who's been removing random things from my source tree??
9356 Tue Aug 11 15:01:50 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9358 * posix/getconf.c (main): Cast printf field with arg to int.
9360 * Makefile (distribute): Remove ansidecl, ansidecl.m4.
9362 * posix/glob.c [_AIX]: Don't declare alloca.
9364 Mon Aug 10 17:09:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9366 * sysdeps/m68k/fpu/__math.h (__expm1): Define just like expm1.
9368 * sysdeps/unix/ioctls-tmpl.c [SMIOSTATS, SMIOGETREBOOT0,
9369 ZIOCBCMD]: Include headers for these.
9371 Fri Aug 7 16:01:43 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9373 * string/tester.c (main): Use sys_nerr and sys_errlist, not _sys_*.
9375 * stdio/stdio.h [__USE_GNU] (_sys_nerr, _sys_errlist): Declare.
9377 * string/strerror.c, stdio/perror.c
9378 [HAVE_GNU_LD] (_sys_errlist, _sys_nerr): Remove decls.
9380 * stdio/memstream.c (enlarge_buffer): Notice when target is -1 and
9381 don't treat it as a huge value.
9383 * stdio/tst-printf.c: #if 0 code that tickles printf_fp bugs.
9385 * grp/testgrp.c: Don't bomb if uid not in passwd file.
9387 * stdlib/tst-strtol.c (tests): C-t on LONG_MIN and LONG_MIN-1 elts.
9389 * stdlib/strtol.c: Use int flag NEGATIVE instead of char 1/-1 SIGN.
9390 Fixed checking for overflow of long int that fits in unsigned long
9391 int--must cast LONG_MIN before negating!
9393 Thu Aug 6 18:46:24 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9395 * stdio/bug3.c (main): Define ansideclifily.
9397 * sysdeps/unix/bsd/sun/sparc/__pipe.S: Define __pipe, not ___pipe.
9399 * math/test-math.c (main): Remove unused vars.
9401 * io/flock.c: #include <sys/file.h>, and not fcntl.h or sys/types.h.
9403 * sysdeps/m68k/fpu/__math.h (__rint): Define just like rint.
9405 * math/math.h (__rint): Declare.
9407 * configure (esix*): base_os=unix/sysv.
9409 * dirent/getdents.c: #include <dirent.h>.
9411 * Rules (subdir): Avoid TAB before # at end of defn.
9413 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Last arg type is struct rusage *.
9415 Tue Aug 4 18:19:43 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9417 * sysdeps/ieee754/Makefile: Removed.
9419 * math/math.h: Declare __expm1.
9421 Mon Aug 3 13:02:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9423 * sysdeps/ieee754/cabs.c (cabs, z_abs): Members of structure have __.
9425 * sysdeps/unix/bsd/seq386: Remove directory.
9427 Thu Jul 30 15:42:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9429 * sysdeps/unix/bsd/sun/sparc/sigcontext.h: Deansideclized.
9431 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Make last arg struct rusage
9434 * sysdeps/unix/morecore.c (__default_morecore): Make arg ptrdiff_t.
9436 * sysdeps/ieee754/cabs.c (cabs, z_abs): Use `struct __complex' for arg.
9438 * sysdeps/generic/pow.c: #include <limits.h>.
9440 * sysdeps/generic/mathimpl.c: #include <math.h> before frobnication.
9442 * misc/getusersh.c (okshells): Make const.
9443 (initshells): Properly declare static.
9445 * sysdeps/unix/bsd/__tcgetatr.c: Cast sg_[io]speed to (unsigned char)
9446 to avoid gcc warnings.
9448 * math/bsd/common/atan2.c, math/bsd/common/tan.c,
9449 math/bsd/common/sincos.c, math/bsd/common/trig.h,
9450 math/bsd/common_source/__expm1.c, math/bsd/common_source/fmod.c,
9451 math/bsd/common_source/acosh.c, math/bsd/common_source/log.c,
9452 math/bsd/common_source/asincos.c, math/bsd/common_source/asinh.c,
9453 math/bsd/common_source/log1p.c, math/bsd/common_source/atan.c,
9454 math/bsd/common_source/log__L.c, math/bsd/common_source/atanh.c,
9455 math/bsd/common_source/mathimpl.h, math/bsd/common_source/cosh.c,
9456 math/bsd/common_source/exp.c, math/bsd/common_source/sinh.c,
9457 math/bsd/common_source/exp__E.c, math/bsd/common_source/tanh.c,
9458 math/bsd/common_source/floor.c: Moved to sysdeps/generic.
9459 * math/bsd/ieee/{cabs,cbrt,support}.c: Moved to sysdeps/ieee754.
9460 * All above + sysdeps/generic/mathimpl.h, sysdeps/generic/pow.c: New
9463 * sysdeps/generic/ffs.c: #include <string.h>, not <bstring.h>.
9465 * posix/glob/Makefile.in (Makefile): Depend on config.status; invoke
9466 it directly instead of using $(SHELL).
9468 * posix/glob.c [! USG]: #include <sys/types.h> before <sys/dir.h>.
9470 Tue Jul 28 17:54:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9472 * sysdeps/unix/bsd/ultrix42: Renamed to ultrix4.
9474 * sysdeps/unix/sysv/isc2.2/__rename.S: New.
9475 * configure (isc*): base_os=unix/sysv.
9477 * Makefile, Makerules, Rules, math/Makefile, ctype/Makefile: Use
9478 "export foo := $(foo)" instead of ifdef have_export_directive.
9479 * Makeconfig (have_export_directive): Remove; move .NOEXPORT down.
9481 Mon Jul 27 18:01:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9483 * configure: Remove redundant test to set os_used.
9485 Sun Jul 26 17:03:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9487 * README.template: Don't mention Q+A.
9488 * Makefile (distribute): Remove Q+A.
9490 * Makefile, Makerules, Rules, math/Makefile, ctype/Makefile: Put
9491 "ifdef have_export_directive" around uses of `export' directive.
9492 They are only needed for dist and tags anyway.
9493 * Makeconfig (have_export_directive): Add commented-out defn, and
9495 (.NOEXPORT): Add special target for old versions of GNU make.
9497 * posix/glob.c [_AIX]: #pragma alloca first thing.
9498 [ANSI_STRING]: Remove #define's for index et al.
9500 Thu Jul 23 21:49:53 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9502 * misc/getpass.c: New.
9503 * posix/unistd.h (getpass): Declare.
9505 * posix/unistd.h (getusershell, setusershell, endusershell): Declare.
9506 * misc/Makefile (routines): Add getusersh.
9507 * misc/getusersh.c: New.
9509 Tue Jul 14 20:03:57 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9511 * stdlib/Makefile (tests): Add testdiv.
9512 * stdlib/testdiv.c: New.
9514 * sysdeps/unix/sysv/i386/linux/{rename,__mkdir,__rmdir,__dup2,
9515 getpgrp,__setpgrp,setsid}.S: New files.
9517 * sysdeps/unix/__getppid.S: If SYS_getppid is defined, use it rather
9518 than alternate value of getpid.
9519 * __gete[ug]id.S: Similar.
9521 * sysdeps/unix/sysv/i386/linux/__waitpid.S: New file.
9522 * sysdeps/unix/sysv/i386/linux/__wait.S: New file.
9523 * sysdeps/posix/__wait3.c: New file.
9525 * sysdeps/unix/sysv/i386/linux/socket.S: New file.
9526 * bind.S, connect.S, listen.S, accept.S, getsockname.S,
9527 getpeername.S, socketpair.S: Also new (and trivial).
9529 Mon Jul 13 17:41:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9531 * sysdeps/unix/sysv/i386/linux/sysdep.[hS]: New files.
9533 * configure (linux*): base_os=unix/sysv
9534 (gnu*, linux*): Always set --with-gnu-ld and --with-gnu-as.
9536 * stdio/obstream.c: #include <string.h>
9537 (obstack_vprintf): Use bzero rather than memset.
9539 * stdio/glue.c (unix_FILE.glue): Add two members, which will overlap
9540 get_limit and put_limit in GNU stdio.
9541 (_iob): Initialize them to same as `streamp'.
9543 Thu Jul 9 21:27:39 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9545 * stdio/stdio.h (open_obstack_stream, obstack_printf,
9546 obstack_vprintf): Declare.
9548 * posix/glob.c [STDC_STRINGS]: Don't test this.
9549 [! ANSI_STRING]: Put memcpy, strrchr, memset defns here instead.
9551 * posix/glob/Makefile.in (glob.o, fnmatch.o): / after $(srcdir).
9553 Tue Jul 7 03:11:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9555 * stdio/Makefile (routines): Add obstream.
9557 * Makerules (%.o: %.S, %.o: %.c): If using gcc, put the file name
9558 before the options on the command line.
9560 * malloc/Makefile (dist-routines): Define with routines for malloc.tar.
9561 (routines): Define with that plus the rest.
9563 (routines): Add obstack.
9564 (headers): Add obstack.h.
9565 (obstack.%): New rule.
9567 * stdio/glue.c: Add comments.
9569 * stdio/printf.h (struct printf_info.spec): Make unsigned char.
9571 * stdio/stdio.h (__validfp): Fixed glued-stream snarfing.
9573 Mon Jul 6 20:00:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9575 * sysdeps/i386/jmp_buf.h: Deansideclized.
9577 * sysdeps/posix/Makefile (objdir-CPPFLAGS): Define; if in parent
9578 dir, add ..s to -Is.
9579 (mk-stdiolim): Use it in place of $(CPPFLAGS).
9581 Sat Jul 4 20:44:42 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9583 * posix/glob/Makefile.in (glob.o, fnmatch.o): Put $(srcdir) on deps.
9585 Wed Jul 1 00:13:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9587 * sysdeps/generic/strstr.c: If NEEDLE is "", return end of HAYSTACK.
9589 * string/tester.c (main): Remove decls of sys_nerr and sys_errlist.
9591 * configure: Accept --prefix=*, --exec_prefix=* options.
9592 Set values in config.make and config.status.
9594 * io/umask.c: Fixed return type in fn alias.
9596 * posix/glob.c [! ANSI_STRING]: #define strcoll to strcmp.
9597 Remove extra decls of free, qsort, malloc, and realloc.
9599 * dirent/alphasort.c: #include <string.h>, and not <stdlib.h>.
9601 * sysdeps/unix/bsd/i386/__wait3.S: Load SYS_wait into %eax before
9602 trapping. Use literal .byte instead of lcall to avoid gas bug.
9603 Use 0(REG), not (REG), for register-indirect addressing.
9605 * configure: Make config.status executable.
9607 Tue Jun 30 21:14:53 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9609 * configure: Add --os-release=* and --os-version=* options. Record
9610 settings (which might be automagically guessed) in config.status.
9612 * misc/mknod.c: Use __mode_t for arg in fn alias.
9614 * posix/unistd.h (setregid): Declare to take __gid_t args.
9616 * sysdeps/unix/bsd/i386/__wait3.S: Don't use lcall insn gas barfs on.
9618 * posix/vfork.c: Move to sysdeps/generic/.
9620 * Rules (others, tests): Export them.
9622 * io/umask.c, io/mkdir.c, io/chmod.c: Use mode_t not int in arg decls.
9624 * sysdeps/i386/ffs.c: #include <string.h>, not <bstring.h>.
9626 * stdio/vfscanf.c: Use function_alias.
9628 * stdio/vsscanf.c: Use va_list, not PTR, in arg decl in fn alias.
9630 * sysdeps/unix/i386/sysdep.h (PSEUDO): Enough backslashes and
9633 * stdio/stdio.h: For __gnuc_va_list, #test __GNUC_VA_LIST, not
9636 * stdio/fmemopen.c: Use memchr to find NUL for append mode.
9638 * stdio/memstream.c (enlarge_buffer): Double the buffer size, rather
9639 than adding 100. Don't clobber *INFO->bufsize when called with the
9640 put limit reset. If the target has been set, extend and zero-fill
9642 (seek): New function.
9643 (open_memstream): Use it for seek io fn. Call fmemopen with "w+" mode.
9645 Sun Jun 28 19:01:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9647 * stdio/fseek.c: Fail with EINVAL for a negative file pos.
9649 Fri Jun 26 00:07:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9651 * Makeconfig (stdarg.h): New variable.
9652 * Makefile (headers): Add $(stdarg.h).
9654 * stdio/stdio.h: Change __va_list to __gnuc_va_list in decls.
9656 * sysdeps/unix/morecore.c: Include malloc.h #ifndef _MALLOC_INTERNAL.
9657 Don't include <stdio.h>.
9658 (NULL): Define to 0 if not defined.
9660 * sysdeps/i386/bzero.c: Include string.h, not bstring.h.
9662 Thu Jun 25 21:01:40 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9664 * stdio/perror.c, string/strerror.c (_sys_errlist, _sys_nerr): Don't
9665 declare #ifndef HAVE_GNU_LD.
9667 * stdio/fwrite.c: Cast arg to write io func to const char * (from uns).
9669 * sysdeps/unix/Makefile: If syscall.h doesn't exist in
9670 $(sysincludedir), look for sys/syscall.h and create $(objpfx)syscall.h
9673 * sysdeps/unix/morecore.c (__default_morecore): Deansideclized.
9674 * malloc/*.c: Only #include <malloc.h> #ifndef _MALLOC_INTERNAL.
9676 Wed Jun 24 19:09:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9678 * sysdeps/unix/snarf-ioctls: Avoid looking at a few particular
9679 headers which tend to mislead us.
9681 * Makefile (distribute): Add COPYING.
9683 * configure (Makefile): When invoking make in srcdir, set ARCH
9684 rather than objdir on the cmd line.
9686 * posix/glob.c [DIRENT] (direct): Don't define to dirent.
9687 [! DIRENT] (direct): Define to dirent.
9689 * Make-dist [!subdir] (+tsrcs): Don't include $(distribute). It was
9690 already included above.
9692 Mon Jun 22 16:58:34 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9694 * Makerules (sysdep_routines): Export it.
9696 Wed Jun 17 17:58:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9698 * posix/glob.c (my_realloc): Test only __GNU_LIBRARY__. Can't trust
9701 Tue Jun 16 20:20:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9703 * resource/sys/resource.h (enum __rlimit_resource): Added MEMLOCK,
9706 * posix/Makefile (glob.tar): Include Makefile.in & configure, and not
9708 (glob/configure): New rule.
9710 * posix/glob/Makefile: Moved to posix/glob/Makefile.in.
9711 (VPATH, srcdir, CPPFLAGS): Define to be replaced by autoconf.
9713 * posix/glob.c: Rearranged conditionals for use with autoconf.
9715 Thu Jun 11 15:47:43 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9717 * sysdeps/unix/bsd/sun/sparc/start.c: Added alias for start -> __start.
9719 Tue Jun 9 20:15:12 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9721 * sysdeps/posix/rename.c: Return failure and don't remove the old
9722 link if the link failed with other than EEXIST.
9724 * posix/glob/Makefile: Fixed copyright notice.
9725 (realclean): Don't remove ~ backup files.
9727 Thu Jun 4 16:41:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9729 * time/Makefile (install-data): Don't include zoneinfo/.
9730 Makerules already makes sure the necessary directories exist.
9732 * setjmp/setjmp.h (sigsetjmp) [__GNUC__]: Use typeof hackery to
9733 construct the type of the temporary var for the arg.
9734 (_setjmp) [__FAVOR_BSD]: Make same as setjmp.
9736 * malloc/malloc.h (mtrace): Declare.
9738 * malloc/malloc.h, malloc/calloc.c, malloc/free.c, malloc/malloc.c,
9739 malloc/mcheck.c, malloc/memalign.c, malloc/mstats.c,
9740 malloc/mtrace.c, malloc/realloc.c, malloc/valloc.c: Deansideclized;
9741 changed copyright notices to be independent of libc.
9742 * malloc/Makefile (glob/%.c, glob/%.h): Don't need to ansideclificate.
9744 * io/ftw.h, io/ftw.c: New.
9745 * io/Makefile (headers): Added ftw.h.
9746 (routines): Added ftw.
9748 Tue Jun 2 21:49:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9750 * sysdeps/unix/bsd/signum.h (SIG_ERR, SIG_DFL, SIG_IGN): Use
9753 * posix/glob.c (__ptr_t): Define.
9755 Thu May 28 06:57:14 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9757 * sysdeps/m68k/jmp_buf.h: Don't use PTR.
9759 Wed May 27 18:09:40 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9761 * posix/{glob,fnmatch}.[ch]: Deansideclized; changed copyright
9762 notice to be independent of libc.
9763 * posix/Makefile (glob/%.c, glob/%.h): Don't need to ansideclificate.
9765 * posix/unistd.h (_SC_2_FORT_RUN, _SC_2_LOCALDEF): Define.
9767 * posix/unistd.h: Define _POSIX2_* without #ifdef __USE_POSIX2.
9769 * posix/unistd.h (_POSIX2_FORT_DEV): Removed.
9771 * posix/fnmatch.h (FNM_FILE_NAME): Alias for FNM_PATHNAME.
9773 Tue May 26 00:39:39 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9775 * time/Makefile (install-data): Include zoneinfo/, so the directory
9778 * Makeconfig (+gcc-nowarn): Define to -w if using gcc.
9779 * time/Makefile (tz-cc): Use it to suppress warnings for grody code.
9781 * posix/Makefile (libposix.a), math/Makefile (libm.a): Make archive
9782 containing /dev/null instead of nothing; ar won't create an empty
9785 * Makerules (%/): Added generic mkdir rule.
9787 * posix/Makefile (install-lib): Define to libposix.a.
9788 (libposix.a): Create empty archive.
9790 * posix/Makefile (distribute): Added utsnamelen.h.
9792 * ctype/ctype.c (tolower, toupper): If the arg doesn't fit in a
9793 char, return it unchanged.
9794 * ctype/ctype.h (tolower, toupper): Don't define as macros.
9795 [__GNUC__]: Define as extern inline functions.
9797 * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h,
9798 sysdeps/unix/bsd/sun/sunos4/uname.S: New.
9800 * configure: Only do hacking to snarf uname info if the config uses
9801 the generic uname implementation.
9803 * Makeconfig (+defines): Define to include $(gnu_ld), rather than
9805 * configure: Write config.make with gnu_ld/gnu_as defns.
9807 * sysdeps/unix/bsd/sun/sunos411: Renamed back to .../sunos4.
9808 * sysdeps/unix/bsd/bsd44: Renamed to .../bsd4.4.
9810 * Makeconfig: include $(objpfx)configparms instead of
9811 $(objdir)/Makeconfig.
9812 Define objpfx as soon as objdir is defined, so we can use it.
9814 * sysdeps/generic/uname.c: Use UNAME_* from config-name.h.
9816 Mon May 25 19:33:07 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9818 * configure: Accept all standard GNU configure options.
9819 Expect to be run in object directory, and find source directory
9821 Write config.status as a shell script that can be run to recreate
9823 Grok os names containing dots by trying each successively
9824 less-precise substring.
9825 Write Sysnames and config-name.h in current directory.
9826 Write #define's for uname sysname, release, version, and machine
9827 elts in config-name.h. Hackery to intuit release and version info.
9829 * stdio/vsnprintf.c, stdio/vsprintf.c, stdio/vasprintf.c,
9830 stdio/vdprintf.c, stdio/vfscanf.c, stdio/vscanf.c,
9831 stdio/__vsscanf.c: Take arg list as va_list, not PTR.
9833 * stdio/stdio.h: Replaced #include <stdarg.h> with magic.
9834 Properly use __va_list in prototypes.
9836 * Makeconfig (exec_prefix): Define.
9837 (libdir, includedir, bindir): Use it.
9839 * sysdeps/unix/sysv/Makefile [subdir==io] (sysdep-routines): Removed
9841 * sysdeps/unix/sysv/Dist: Removed __utssys.S.
9842 * sysdeps/unix/sysv/__utssys.S, sysdeps/unix/sysv/uname.c: Removed.
9843 * sysdeps/unix/sysv/uname.S, sysdeps/unix/sysv/utsnamelen.h: New.
9845 * posix/sys/utsname.h (_UTSNAME_LENGTH): Don't define; instead,
9846 #include <utsnamelen.h> to define it.
9847 * sysdeps/generic/utsnamelen.h: New.
9849 Sun May 24 00:07:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9851 * sysdeps/generic/inet-cvt.h: Deansideclized.
9853 * string/string.h (memfrob): First arg is __ptr_t, not char *.
9855 * misc/sys/cdefs.h (__ptr_t): Made #define rather than a typedef.
9857 Fri May 22 01:52:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9859 * Makefile, Rules, Makerules: Remove all rules for ansideclificating
9862 * posix/glob.h, posix/fnmatch.h: Use explicit cruft for C++.
9863 Define __P and const for C++/ANSI vs old C ourselves, to avoid
9864 dependence on <sys/cdefs.h>.
9866 * inet/Makefile: Remove cruft to snarf things from bsd/.
9867 * inet/bsd/*.c: Moved to inet/.
9869 * Makerules: Install headers from source directories into
9870 $(includedir), rather than ansidecl madness.
9871 * Makeconfig (ansi-incldir, trad-incldir): Removed.
9872 (includedir): Define instead.
9874 * assert/assert.h, ctype/ctype.h, dirent/dirent.h, grp/grp.h,
9875 locale/locale.h, locale/localeinfo.h, math/math.h,
9876 misc/sys/file.h, misc/sys/ioctl.h, misc/sys/ptrace.h,
9877 misc/sys/uio.h, misc/sgtty.h, misc/nlist.h, posix/gnu/types.h,
9878 posix/sys/wait.h, posix/sys/types.h, posix/sys/times.h,
9879 posix/sys/utsname.h, posix/unistd.h, posix/tar.h, posix/utime.h,
9880 posix/wordexp.h, posix/glob.h, posix/fnmatch.h, pwd/pwd.h,
9881 resource/sys/resource.h, resource/sys/vlimit.h,
9882 resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
9883 signal/gnu/signal.h, socket/sys/socket.h, stdio/stdio.h,
9884 stdio/printf.h, stdlib/alloca.h, stdlib/stdlib.h, string/string.h,
9885 termios/termios.h, time/sys/time.h, time/time.h, io/sys/stat.h,
9886 io/fcntl.h, errno.h, stddef.h, malloc/malloc.h:
9887 Deansideclized. Use <sys/cdefs.h> macros instead of ansidecl and
9889 * features.h: #include <sys/cdefs.h>.
9891 * string/string.h (strfry, memfrob): Declare.
9892 * string/Makefile (routines): Added strfry and memfrob.
9893 * string/strfry.c, string/memfrob.c: New.
9895 * locale/C-ctype_ct.c: Made BS be isspace.
9897 * sysdeps/generic/strstr.c: Return HAYSTACK, not its end, if NEEDLE
9898 is the empty string.
9900 * sysdeps/generic/strncase.c: Fixed for case of empty string.
9902 Wed May 20 02:36:09 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9904 * io/sys/stat.h (fchmod): Declare, rather than two __fchmod decls.
9906 * configure (sysv, bsd): Don't make base_os=unix; unix/{sysv,bsd}
9908 Set os_used if base_os is used.
9910 Tue May 19 21:00:11 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9912 * crypt/*: New files from glad.
9914 * stdio/stdio.h (sys_nerr, sys_errlist): Don't declare const.
9916 Sun May 17 15:50:00 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
9918 * io/Makefile (headers): Remove gnu/stat.h; add sys/stat.h.
9920 * posix/glob.c (glob): Don't let us fall off the end without returning.
9922 * sysdeps/stub/setenv.c, sysdeps/posix/setenv.c: New.
9923 * stdlib/stdlib.h [__USE_BSD] (setenv): Declare.
9924 * stdlib/Makefile (routines): Add setenv.
9926 * malloc/mtrace.c (old_{free,malloc,realloc}_hook): Renamed to tr_&
9927 to not conflict with mcheck.c when combined into gmalloc.c.
9929 Fri May 15 19:07:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9931 * socket/sys/socket.h (PF_NBS, AF_NBS): Removed.
9932 (PF_ISO, PF_OSI, PF_APPLETALK, PF_ROUTE, PF_LINK): Define.
9933 (PF_MAX): Increase accordingly.
9935 * inet/bsd/*.c: Snarfed latest code from 4.4.
9937 * misc/sys/cdefs.h (__BEGIN_DECLS, __END_DECLS): Define cruft for C++.
9939 Thu May 14 01:45:12 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9941 * posix/glob.h (GLOB_MAGCHAR): Check user feature-test macros,
9942 rather than __USE_BSD, so we don't depend on features.h.
9944 * sysdeps/stub/__wait4.c: Last arg is struct rusage *, not PTR.
9946 * math/bsd/common_source/mathimpl.h: Don't #define const.
9947 #include <sys/cdefs.h> instead.
9949 * Makefile (+other_dirs): Add crypt, but only if it exists at run time.
9950 * crypt/GNUmakefile: New file.
9951 * sysdeps/sparc/Makefile, sysdeps/m68k/Makefile (crypt):
9952 Define to use machine-dependent assembly code in crypt/crypt.*.S.
9953 * crypt: New directory.
9955 * find-sysdirs: Don't lose if there are no sysnames.
9957 * termios/Makefile (headers): Added sys/termios.h.
9958 * termios/sys/termios.h: New file; just #include <termios.h>.
9960 * stdlib/qsort.c: Define _quicksort rather than qsort.
9961 * stdlib/msort.c: New file; defines qsort function that does merge
9962 sort. Falls back to _quicksort if it fails to allocate a temp array.
9963 * stdlib/Makefile (routines): Added msort.
9965 * string/string.h (memccpy, strdup): Also declare #ifdef __USE_BSD.
9966 [__USE_BSD] (index, rindex, bcmp, bzero, ffs): Declare.
9967 * string/strings.h: Just #include <string.h>.
9968 * string/Makefile (headers): Removed bstring.h.
9970 * misc/Makefile (routines): Removed swab.
9971 * string/Makefile (routines): Put it here instead.
9972 * misc/swab.c: Moved to string/swab.c.
9974 * stdio/stdio.h [__USE_BSD] (sys_nerr, sys_errlist): Declare.
9976 * grp/grp.h (setgrent, endgrent, getgrent): Also do #ifdef __USE_BSD.
9978 * posix/glob.h [__USE_BSD] (GLOB_MAGCHAR): Declare.
9979 (glob_t): Added member `gl_flags'.
9980 * posix/glob.c (glob, glob_in_dir): Set gl_flags member to FLAGS;
9981 or in GLOB_MAGCHAR if any metachars are seen.
9983 * sysdeps/unix/bsd/bsd44/readdir.c: New.
9985 * sysdeps/unix/bsd/sun/readdir.c: Don't need to declare
9986 __getdirentries here. Use off_t and ssize_t.
9988 * misc/Makefile (routines): Removed getdents and __getdents.
9989 * dirent/Makefile (routines): Put them here instead.
9990 * misc/getdents.c: Moved to dirent/getdents.c.
9991 * dirent/dirent.h [__USE_BSD] (__getdirentries, getdirentries):
9994 * dirent/Makefile (routines): Added scandir and alphasort.
9995 * dirent/scandir.c, dirent/alphasort.c: New.
9996 * dirent/dirent.h [__USE_BSD] (scandir, alphasort): Declare.
9998 * sysdeps/unix/bsd/nice.c, sysdeps/unix/sysv/nice.S,
9999 sysdeps/stub/nice.c: New.
10000 * resource/Makefile (routines): Added nice.
10002 * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): #define to
10003 __ versions, for the sake of 4.4 header files.
10005 Wed May 13 00:35:12 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10007 * stdlib/tst-strtol.c: Fixed typo in test table.
10009 * stdlib/strtol.c: Fixed checking for overflow of long int that fits
10010 in unsigned long int.
10012 * misc/Makefile (headers): Added ttyent.h.
10013 (routines): Added getttyent.
10014 * misc/ttyent.h, misc/getttyent.h: New; snarfed from 4.4.
10016 * posix/sys/wait.h [__USE_BSD]: Added forward decl for struct rusage.
10017 (__wait4, __wait3): Declare arg as struct rusage, not PTR.
10019 * inet/arpa/*.h, inet/protocols/*.h, inet/netdb.h, inet/resolv.h:
10020 New files from 4.4.
10021 * inet/Makefile (headers): Snarf *.h from arpa/ and protocols/.
10023 * sysdeps/m68k/fpu/__math.h, assert/assert.h: #include <sys/cdefs.h>
10024 and use its macros rather than rolling our own.
10026 * misc/sys/cdefs.h: New file.
10027 * misc/Makefile (headers): Add it.
10029 * Makerules: Moved check for headers coming from env to Rules.
10031 Tue May 12 01:04:10 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10033 * sysdeps/generic/strsep.c: New.
10034 * string/string.h [__USE_BSD] (strsep): Declare.
10035 * string/Makefile (routines): Added strsep.
10037 * sysdeps/unix/sysv/__settod.c, sysdeps/unix/sysv/stime.S,
10038 sysdeps/unix/bsd/stime.c, sysdeps/stub/stime.c: New.
10039 * time/time.h [__USE_SVID] (stime): Declare it.
10041 * sysdeps/unix/bsd/bsd44/__getdents.S: New.
10043 * posix/wordexp.h, posix/utime.h, posix/unistd.h, time/time.h,
10044 termios/termios.h, posix/tar.h, string/strings.h, string/string.h,
10045 stdlib/stdlib.h, signal/signal.h, stdio/stdio.h, misc/sgtty.h,
10046 setjmp/setjmp.h, inet/resolv.h, pwd/pwd.h, stdio/printf.h,
10047 misc/nlist.h, inet/netdb.h, math/math.h, malloc/malloc.h,
10048 locale/locale.h, grp/grp.h, posix/glob.h, posix/getopt.h,
10049 posix/fnmatch.h, io/fcntl.h, errno.h, dirent/dirent.h,
10050 ctype/ctype.h, string/bstring.h, assert/assert.h, stdlib/alloca.h,
10051 misc/a.out.h [__cplusplus]: Added stupid cruft for losing C++.
10053 Mon May 11 01:40:49 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10055 * math/Makefile (headers): Added huge_val.h and nan.h.
10057 * io/Makefile (headers): Changed gnu/stat.h to statbuf.h.
10059 * time/Makefile (install-data): Include $(localtime-file) and
10060 $(posixrules-file) if they are relative.
10061 (install-others): Include them if absolute.
10062 ($(posixrules-file), $(localtime-file)): Define rules to install if
10063 absolute file names.
10064 * Makerules (+install): Include $(install-others) verbatim.
10065 * Makeconfig (localtime-file): Made default /etc/localtime.
10067 * sysdeps/generic/Makefile (endian.h): Only generate if would
10068 otherwise use stub version.
10069 * sysdeps/stub/endian.h, sysdeps/i386/endian.h: New.
10071 * Rules, Makefile: Export distribute and dont_distribute.
10072 * Make-dist: Export sysdep_dirs. Unexport things rather than
10073 clobbering their values.
10075 * misc/sys/ptrace.h: Fixed typo.
10077 * stdio/stdio.h (__io_read, __io_write, __io_seek, __io_close):
10080 * stdio/internals.c (flushbuf): If in append mode, don't do aligned
10081 writing, seek to the target, or update the offset.
10083 * posix/unistd.h (lseek): Doc fix.
10085 * misc/swab.c: New.
10086 * misc/Makefile (routines): Added swab.
10088 Wed May 6 12:32:18 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10090 * math/Makefile, inet/Makefile (source_dirs): Export it.
10091 * MakeTAGS (all-dirs): Include $(source_dirs).
10093 * Makefile (TAGS): Removed dep on subdir_TAGS.
10094 (+subdir_targets): Removed subdir_TAGS.
10095 * MakeTAGS [! subdir] (TAGS): Depend on subdir_TAGS.
10096 [! subdir] (subdir_TAGS): Recurse on subdirectories.
10098 * Makerules (headers): Don't take value from the environment.
10100 * Makerules (sysdirs, sysdep_dir): Export them.
10102 * MakeTAGS: New makefile.
10103 * Makefile (distribute): Include it.
10104 * Makefile (TAGS), Rules (TAGS): Removed rules.
10105 * Makerules (TAGS): New rule that uses MakeTAGS.
10106 * Makefile (TAGS): Depend on subdir_TAGS.
10108 * Makerules (install, install-lib, install-data, routines, aux):
10109 Don't bother removing these if they come from the environment, since
10110 they won't with make >= 3.62.8.
10111 * Rules (distribute, headers): Ditto.
10112 (subdir): Export it.
10113 * Makerules (sources, headers): Export these.
10114 * Makefile (subdirs): Export it.
10116 * Rules (+tags_sources): Removed.
10117 * Makerules (tags-sources): Define here.
10118 * ctype/Makefile (tags-sources): Redefine to give headers precedence
10120 * Rules (TAGS), Makefile (TAGS): Rewrote rules.
10121 * Makeconfig (+ctags): Removed.
10124 * sysdeps/posix/getcwd.c: Don't closedir twice.
10126 * sysdeps/unix/bsd/hp/m68k/__wait3.S: Define __wait3, not ___wait3.
10128 * posix/sys/types.h [__USE_BSD] (fsid_t): Define.
10129 * posix/gnu/types.h (__fsid_t): Define.
10131 * io/fcntl.h (F_GETLK): Define.
10133 Tue May 5 18:36:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10135 * misc/Makefile (routines): Added seteuid and setegid.
10136 * sysdeps/stub/sete[ug]id.c, sysdeps/unix/bsd/bsd44/sete[ug]id.S: New.
10137 * posix/unistd.h [__USE_BSD] (seteuid, setegid): Declare.
10139 * sysdeps/unix/bsd/tcsendbrk.c: #include <sys/types.h>
10141 * Makerules: Strip whitespace from $(headers) so ifdef wins.
10143 * sysdeps/unix/bsd/bsdtty.h: #undef a bunch more things.
10145 * sysdeps/unix/bsd/bsd44/errnos.h: New, hacked from 4.4 <sys/errno.h>.
10147 * sysdeps/unix/Makefile (ioctls.h, errnos.h): Only generate if
10148 the files that would be used otherwise are the stub versions.
10150 * sysdeps/unix/bsd/tcflow.c: Don't write VSTOP or VSTART if it is
10153 * sysdeps/unix/bsd/tcflush.c: Use FREAD|FWRITE for TCIOFLUSH.
10155 * sysdeps/unix/bsd/usleep.c: Use select rather than itimers to wait.
10157 * sysdeps/unix/bsd/tcsendbrk.c: Use select rather than itimers to wait.
10159 * termios/cfmakeraw.c: New.
10160 * termios/Makefile (routines): Added cfmakeraw.
10162 * sysdeps/unix/bsd/bsd44/ioctls.h: New file, hacked from 4.4
10164 * sysdeps/unix/bsd/bsd44/__tcgetatr.c: New.
10165 * sysdeps/unix/bsd/bsd44/tcsetattr.c: New.
10166 * sysdeps/unix/bsd/bsd44/tcdrain.c: New.
10168 * termios/sys/ttydefaults.h: New, snarfed from 4.4.
10169 * termios/Makefile (headers): Define.
10170 * termios/termios.h [__USE_BSD]: #include <sys/ttydefaults.h>
10172 * sysdeps/posix/getcwd.c: Removed unused variable.
10174 * time/__tzset.c: Cast string literal to (char *).
10176 * setjmp/sigjmp_save.c: Declare properly to return void.
10178 * sysdeps/ieee754/nan.h: Created; somehow it disappeared.
10180 Mon May 4 18:30:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10182 * sysdeps/unix/bsd/bsd44/__wait4.S: New.
10184 * sysdeps/unix/bsd/4.4: Renamed to sysdeps/unix/bsd/bsd44.
10186 * signal/gnu/signal.h (__SA_DISABLE, __SA_NOCLDSTOP): Use same bits
10189 Sun May 3 13:57:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10191 * stdio/fwrite.c: Use unsigned char to avoid sign extension.
10193 * stdlib/__random.c (randtbl): Replaced default constants so they
10194 match the state produced by "srandom (1)".
10196 * stdlib/mbtowc.c: Test for S == "" before testing for no mbchars.
10198 * stdlib/Makefile (tests): Added testrand.
10199 * stdlib/testrand.c: New test for rand.
10201 * stdlib/testmb.c: Added 2 mblen tests.
10203 * stdlib/wcstombs.c: Don't do anything strange for EOF.
10204 Copy non-MB characters as they are.
10205 Properly increment S after writing.
10207 * stdlib/testmb.c: Added test case for wcstombs.
10209 * signal/signal.h (SA_DISABLE): Define.
10210 * signal/gnu/signal.h (__SA_DISABLE): Define.
10212 * signal/signal.h (struct sigaltstack): Define new type.
10213 (sigaltstack): Declare new fn.
10214 * sysdeps/stub/sigaltstack.c: New.
10215 * sysdeps/unix/bsd/4.4/sigaltstack.S: New.
10217 * misc/Makefile (routines): Added reboot.
10218 * posix/unistd.h (reboot): Declare.
10219 * sysdeps/stub/reboot.c: New.
10221 * sysdeps/unix/bsd/ulimit.c [! HAVE_GNU_LD]: #define _etext -> etext.
10223 * sysdeps/unix/bsd/sun/sparc/sethostid.S: #define _ERRNO_H before
10224 #include <errnos.h>.
10226 * configure (newos*): base_os=unix/bsd.
10228 Fri May 1 12:21:47 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10230 * io/gnu/stat.h: Moved to sysdeps/unix/bsd/statbuf.h.
10231 * sysdeps/unix/bsd/statbuf.h: Define struct stat, not struct __stat.
10232 * io/stat.c: Use struct stat, not struct __stat.
10233 * sysdeps/stub/statbuf.h: New.
10234 * io/sys/stat.h: #include <statbuf.h> instead of gnu/stat.h.
10235 (stat, fstat, lstat, chmod, fchmod, umask, mkdir, mknod): Don't
10236 #define; declare as fns instead.
10237 * sysdeps/unix/sysv/stat.h: New.
10238 * sysdeps/unix/sysv/sysv_stat.h, sysdeps/unix/sysv/sys_stat.S,
10239 sysdeps/unix/sysv/sys_fstat.S: Removed.
10240 * sysdeps/unix/sysv/Makefile (sysdep_routines): Removed sys_stat,
10242 * sysdeps/unix/sysv/Dist: Removed sys_stat.S, sys_fstat.S.
10243 * sysdeps/unix/bsd/__stat.S, sysdeps/unix/bsd/__fstat.S: Moved to
10246 * sysdeps/m68k/fpu/switch/Makefile: Refer to dirs fpu and
10247 fpu/switch, not 68881 and 68881-switch.
10249 * sysdeps/m68k/fpu/switch/switch.c: #include <68881-sw.h>, not
10252 * sysdeps/m68k/fpu/__expm1.c, sysdeps/m68k/fpu/__rint.c,
10253 sysdeps/m68k/fpu/asin.c, sysdeps/m68k/fpu/atan.c,
10254 sysdeps/m68k/fpu/atanh.c, sysdeps/m68k/fpu/ceil.c,
10255 sysdeps/m68k/fpu/cos.c, sysdeps/m68k/fpu/cosh.c,
10256 sysdeps/m68k/fpu/exp.c, sysdeps/m68k/fpu/fabs.c,
10257 sysdeps/m68k/fpu/floor.c, sysdeps/m68k/fpu/log.c,
10258 sysdeps/m68k/fpu/log10.c, sysdeps/m68k/fpu/log1p.c,
10259 sysdeps/m68k/fpu/sin.c, sysdeps/m68k/fpu/sinh.c,
10260 sysdeps/m68k/fpu/sqrt.c, sysdeps/m68k/fpu/tan.c,
10261 sysdeps/m68k/fpu/tanh.c: #include <acos.c> without explicit path
10262 (which has changed).
10264 * sysdeps/unix/bsd/sun/sparc/start.c: #include <syscall.h>.
10265 (syscall): Removed C function; define all inside asm instead.
10266 (init_shlib): Cast return value of syscall to right types.
10268 Thu Apr 30 01:15:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10270 * sysdeps/unix/bsd/sun/sparc/start.c: Added code to use dynamic
10271 linker from trq@dionysos.thphys.ox.ac.uk.
10273 * sysdeps/unix/bsd/sun/sunos4: Renamed to sunos411.
10275 * setjmp/setjmp.h (sigsetjmp): Don't declare as a function.
10276 Define as a macro instead.
10277 (__sigjmp_save): Declare; internal fn used by sigsetjmp macro.
10278 (_setjmp), [__FAVOR_BSD] (setjmp): Always define as a macro.
10279 * setjmp/sigjmp_save.c: New file.
10280 * setjmp/_setjmp.c, setjmp/sigsetjmp.c: Removed.
10281 * Makefile (routines): Removed _setjmp, sigsetjmp; added sigjmp_save.
10282 * misc/bsd-compat.c (setjmp): Don't define.
10284 * configure (sysv, bsd): base_os=unix
10286 * configure: Fatal error if the machine or os did not generate any
10289 * configure: No error message after config.sub fails.
10291 * sysdeps/mips, sysdeps/unix/bsd/ultrix42: New port from
10292 brendan@cs.widener.edu.
10294 * Reorganized sysdeps:
10296 hp9k3bsd -> hp/m68k
10299 sun3/os3 -> sunos3/m68k
10306 68881/68881-switch -> fpu/switch
10307 * sysdeps/unix/bsd/sony/m68k/start.c: Changed #include.
10308 * configure: Use config.sub to canonicalize name.
10309 Then use combinations of machine, vendor, and os (with special
10310 hacks for os flavors) for sysdep dirs to try.
10311 * Makefile (distribute): Added config.sub.
10313 Wed Apr 29 23:06:06 1992 Brendan Kehoe (brendan@churchy.gnu.ai.mit.edu)
10315 * sysdeps/unix/bsd/hp9k3bsd/sysdep.h,
10316 sysdeps/unix/bsd/sun/sun3/sysdep.h, sysdeps/unix/bsd/sun/sun4/sysdep.h,
10317 sysdeps/unix/bsd/vax/sysdep.h,sysdeps/unix/i386/sysdep.h,
10318 sysdeps/mach/i386/sysdep.h: Change all definitions of movl/mov to
10319 MOVE(s, d), for insn sets with d,s instead of s,d move insns.
10320 * sysdeps/unix/__getegid.S, sysdeps/unix/__geteuid.S,
10321 sysdeps/unix/__getppid.S: Use that in each of these.
10323 Wed Apr 29 17:58:21 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10325 * io/getwd.c: Default PATH_MAX if not defined.
10327 * sysdeps/unix/getlogin.c, sysdeps/posix/ttyname.c: Make buffers
10328 only as big as needed, avoiding PATH_MAX.
10330 * sysdeps/posix/getcwd.c: Dynamically extend the buffer as we go,
10331 not afterwards; default PATH_MAX if not defined.
10333 * posix/execvp.c: Dynamically allocate an array on the stack for the
10334 path name, rather than using a fixed-size array.
10336 * pwd/putpwent.c: Print pw_dir field.
10338 * sysdeps/posix/mktemp.c: If the pid has changed, update OLDPID.
10340 Tue Apr 28 19:25:21 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10342 * malloc/valloc.c [emacs]: #include "config.h"
10344 Thu Apr 23 13:55:34 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10346 * sysdeps/m68k/68881/__drem.c: Define __drem, not drem.
10347 Call ____drem, not __drem.
10349 * malloc/realloc.c, malloc/malloc.c: Don't #define memcpy or memset
10350 if already #define'd.
10352 Tue Apr 21 04:16:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10354 * malloc/Makefile: Moved include ../Rules after malloc.tar rules.
10355 They need $(routines), which Rules clears.
10357 * malloc/realloc.c (MIN): Renamed to min. Conflicted with HPUX
10358 system header files.
10360 * Makefile (sysdep-subdirs): Is not called +sysdep-subdirs.
10362 * configure: Don't try to create config.status if . is not writable.
10364 * sysdeps/generic/printf_fp.c: Fixed padding loop condition for zero
10367 * math/math.h: Don't #include <float.h> for HUGE_VAL.
10368 Instead, #include <huge_val.h>.
10369 * stdlib/stdlib.h: Ditto.
10370 * math/math.h [__USE_GNU]: #include <nan.h> to get NAN value.
10371 * float.h: Removed.
10372 * Makefile (headers): Removed float.h and fl.h.
10373 * sysdeps/ieee754/huge_val.h, sysdeps/ieee754/nan.h,
10374 sysdeps/stub/huge_val.h, sysdeps/stub/nan.h, sysdeps/vax/huge_val.h:
10375 Created (from old fl.h files).
10377 * math/bsd/common_source/pow.c (pow_p): When checking if Y is an
10378 integer, don't let it overflow a `long int'.
10379 (pow): Check for NaN with __isnan, not (X != X).
10381 Tue Apr 21 02:26:19 1992 Brendan Kehoe (brendan@cs.widener.edu)
10383 * sysdeps/unix/bsd/sun/sun4/__pipe.S,
10384 sysdeps/unix/bsd/vax/__wait3.S, sysdeps/unix/bsd/hp9k3bsd/__wait3.S:
10385 Use the ENTRY macro for each beginning
10387 * sysdeps/unix/sysdep.h, sysdeps/unix/bsd/hp9k3bsd/sysdep.h,
10388 sysdeps/unix/bsd/sun/sun3/sysdep.h,
10389 sysdeps/unix/bsd/sun/sun4/sysdep.h, sysdeps/unix/bsd/vax/sysdep.h,
10390 sysdeps/unix/i386/sysdep.h, sysdeps/unix/sysdep.h,
10391 sysdeps/unix/sysv/sysdep.h [SYSCALL, SYSCALL__, PSEUDO]: Modify to
10392 also receive the number of args the syscall takes; added for future
10393 ports that will require this information.
10395 * sysdeps/unix/i386/__pipe.S, sysdeps/unix/bsd/vax/__pipe.S,
10396 sysdeps/unix/bsd/sun/sun4/__pipe.S,
10397 sysdeps/unix/bsd/hp9k3bsd/__pipe.S, sysdeps/unix/i386/__brk.S,
10398 sysdeps/unix/bsd/sun/__getdents.S, sysdeps/unix/i386/__fork.S,
10399 sysdeps/unix/bsd/vax/__fork.S, sysdeps/unix/bsd/sun/sun4/__fork.S,
10400 sysdeps/unix/__setgid.S, sysdeps/unix/__setuid.S,
10401 sysdeps/unix/bsd/sun/sun3/__vfork.S,
10402 sysdeps/unix/bsd/sun/sun4/__vfork.S,
10403 sysdeps/unix/bsd/vax/__wait.S, sysdeps/unix/bsd/hp9k3bsd/__wait.S,
10404 sysdeps/unix/i386/__wait.S,
10405 sysdeps/unix/bsd/sun/sunos4/sys_wait4.S,
10406 sysdeps/unix/bsd/sun/sun3/sethostid.S,
10407 sysdeps/unix/bsd/sun/sun4/sethostid.S,
10408 sysdeps/unix/bsd/__sigvec.S, sysdeps/unix/bsd/sun/sun4/__sigvec.S,
10409 sysdeps/unix/sysv/i386/__sigret.S, sysdeps/unix/__getppid.S,
10410 sysdeps/unix/bsd/__access.S, sysdeps/unix/sysv/signal.S,
10411 sysdeps/unix/__getegid.S, sysdeps/unix/__geteuid.S,
10412 sysdeps/unix/bsd/bsd_getgrp.S, sysdeps/unix/bsd/__dup2.S,
10413 sysdeps/unix/bsd/__fchmod.S, sysdeps/unix/bsd/__fchown.S,
10414 sysdeps/unix/bsd/__flock.S, sysdeps/unix/bsd/__fstat.S,
10415 sysdeps/unix/bsd/__lstat.S, sysdeps/unix/bsd/__mkdir.S,
10416 sysdeps/unix/bsd/__readlink.S, sysdeps/unix/bsd/__rmdir.S,
10417 sysdeps/unix/bsd/__stat.S, sysdeps/unix/bsd/__symlink.S,
10418 sysdeps/unix/bsd/4.4/chflags.S, sysdeps/unix/bsd/4.4/fchflags.S,
10419 sysdeps/unix/bsd/4.4/sstk.S, sysdeps/unix/bsd/4.4/setlogin.S,
10420 sysdeps/unix/bsd/__getdtsz.S, sysdeps/unix/bsd/__getpgsz.S,
10421 sysdeps/unix/bsd/__setregid.S, sysdeps/unix/bsd/__setreuid.S,
10422 sysdeps/unix/bsd/__utimes.S, sysdeps/unix/bsd/ftruncate.S,
10423 sysdeps/unix/bsd/readv.S, sysdeps/unix/bsd/truncate.S,
10424 sysdeps/unix/bsd/vhangup.S, sysdeps/unix/bsd/writev.S,
10425 sysdeps/unix/bsd/__getpgrp.S, sysdeps/unix/bsd/__setpgrp.S,
10426 sysdeps/unix/bsd/__getrusag.S, sysdeps/unix/bsd/getprio.S,
10427 sysdeps/unix/bsd/getrlimit.S, sysdeps/unix/bsd/setprio.S,
10428 sysdeps/unix/bsd/__sigblock.S,
10429 sysdeps/unix/bsd/__sigpause.S, sysdeps/unix/bsd/__sigstmsk.S,
10430 sysdeps/unix/bsd/killpg.S, sysdeps/unix/bsd/sigstack.S,
10431 sysdeps/unix/bsd/rename.S, sysdeps/unix/bsd/__adjtime.S,
10432 sysdeps/unix/bsd/__setitmr.S, sysdeps/unix/bsd/__settod.S,
10433 sysdeps/unix/sysv/sys_stat.S, sysdeps/unix/sysv/sys_fstat.S,
10434 sysdeps/unix/sysv/__utssys.S, sysdeps/unix/sysv/utime.S,
10435 sysdeps/unix/sysv/__times.S, sysdeps/unix/sysv/i386/time.S,
10436 sysdeps/unix/sysv/alarm.S, sysdeps/unix/sysv/pause.S,
10437 sysdeps/unix/sysv/ulimit.S, sysdeps/unix/__chdir.S,
10438 sysdeps/unix/__chmod.S, sysdeps/unix/__chown.S,
10439 sysdeps/unix/__close.S, sysdeps/unix/__dup.S,
10440 sysdeps/unix/__fcntl.S, sysdeps/unix/__link.S,
10441 sysdeps/unix/__lseek.S, sysdeps/unix/__open.S,
10442 sysdeps/unix/__read.S, sysdeps/unix/__umask.S,
10443 sysdeps/unix/__unlink.S, sysdeps/unix/__write.S,
10444 sysdeps/unix/__ioctl.S, sysdeps/unix/__mknod.S,
10445 sysdeps/unix/acct.S, sysdeps/unix/chroot.S, sysdeps/unix/fsync.S,
10446 sysdeps/unix/ptrace.S, sysdeps/unix/swapon.S, sysdeps/unix/sync.S,
10447 sysdeps/unix/__execve.S, sysdeps/unix/__getgid.S,
10448 sysdeps/unix/__getpid.S, sysdeps/unix/__getuid.S,
10449 sysdeps/unix/_exit.S, sysdeps/unix/__kill.S,
10450 sysdeps/unix/inet/__gethstnm.S, sysdeps/unix/inet/__select.S,
10451 sysdeps/unix/inet/gethostid.S, sysdeps/unix/inet/sethostid.S,
10452 sysdeps/unix/inet/sethostnam.S, sysdeps/unix/inet/accept.S,
10453 sysdeps/unix/inet/bind.S, sysdeps/unix/inet/connect.S,
10454 sysdeps/unix/inet/getpeernam.S, sysdeps/unix/inet/getsocknam.S,
10455 sysdeps/unix/inet/getsockopt.S, sysdeps/unix/inet/listen.S,
10456 sysdeps/unix/inet/recv.S, sysdeps/unix/inet/recvfrom.S,
10457 sysdeps/unix/inet/recvmsg.S, sysdeps/unix/inet/send.S,
10458 sysdeps/unix/inet/sendmsg.S, sysdeps/unix/inet/sendto.S,
10459 sysdeps/unix/bsd/vax/__wait3.S, sysdeps/unix/bsd/hp9k3bsd/__wait3.S,
10460 sysdeps/unix/inet/setsockopt.S, sysdeps/unix/inet/shutdown.S,
10461 sysdeps/unix/inet/socket.S, sysdeps/unix/inet/socketpair.S: Added the
10462 argument count to every use of SYSCALL, SYSCALL__ or PSEUDO.
10464 Tue Apr 21 00:06:52 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10466 * limits.h [__GNUC__ >= 2]: Use #include_next to get GCC's <limits.h>.
10468 * sysdeps/posix/sysd-stdio.c (__stdio_read, __stdio_write,
10469 __stdio_errmsg) [EINTR && EINTR_REPEAT]: Do EINTR looping.
10470 * sysdeps/unix/sysv/sysd-stdio.c: New.
10471 #define EINTR_REPEAT and #include posix/sysd-stdio.c.
10473 * stdlib/mbstowcs.c: Copy non-MB chars verbatim, instead of error.
10475 * sysdeps/generic/printf_fp.c: Note sign of exponent and take its
10476 absolute value for arithmetic.
10478 * stdlib/testmb.c: New.
10479 * stdlib/Makefile (tests): Added testmb.
10481 * sysdeps/generic/frexp.c [NAN]: If VALUE is infinite, return NAN.
10482 If VALUE is NAN, set errno to EDOM and return VALUE.
10483 If VALUE is zero, return it. In all special cases, clear *EXP.
10485 * stdio/test-fseek.c: New.
10486 * stdio/Makefile (tests): Added test-fseek.
10488 * stdio/fseek.c: Position returned from io_funcs.seek is absolute,
10489 not EOF-relative when using SEEK_END.
10491 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Set errno to
10492 EEXIST when we run out.
10494 * sysdeps/posix/sysd-stdio.c (exists): Use stat rather than open, so
10495 we don't need read access.
10497 * sysdeps/posix/mk-stdiolim.c (TMP_NAM): is 62 ** 3.
10499 Mon Apr 20 23:08:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10501 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Don't return
10502 the same name twice when the file doesn't exist.
10504 * stdio/vfprintf.c (%c format): Tests of LEFT for padding were
10507 * sysdeps/generic/printf_fp.c: If we have written some fractional
10508 digits, write zeros up to the precision.
10510 * sysdeps/unix/bsd/sun/sun4/start.c: Don't clear the FP until just
10511 before calling main.
10513 Wed Apr 15 01:43:38 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10515 * Makerules (libc.a): Don't depend on libc.a(...); only on lib.
10516 (lib-noranlib): Depend on libobjs.
10517 (+libobjs): New var.
10518 (libobjs): Depend on $(+libobjs).
10519 * Rules (others, tests): Don't depend on lib; on libc.a instead.
10521 * locale/C-numeric.c: grouping is "".
10523 * locale/localeconv.c: Set int_frac_digits.
10525 * locale/setlocale.c: Accept "" to mean "C".
10527 * sysdeps/unix/sysv/r4/bsddir.h: Protect against multiple inclusion.
10529 * sysdeps/unix/sysv/r4/Dist: Created; includes bsddir.h and
10532 * sysdeps/unix/i386/sysdep.h [! HAVE_SYSCALLS]: Don't #inlcude
10534 * sysdeps/unix/sysv/sysdep.h, sysdeps/unix/sysdep.h
10535 (HAVE_SYSCALLS): #define.
10536 * sysdeps/unix/sysv/i386/sysdep.h: #include unix/sysv/sysdep.h, then
10537 unix/i386/sysdep.h.
10539 * sysdeps/unix/sysv/Makefile: Fixed typos.
10541 * sysdeps/unix/sysv/Dist: Add utmp.h.
10543 * sysdeps/posix/Makefile (mk-stdiolim): Explicit commands, to
10544 compile it without normal gcc flags.
10546 * configure (i386-sysv): unix/i386/sysv -> unix/sysv/i386.
10547 (i386-sysvr4): New configuration.
10549 Tue Apr 14 16:47:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10551 * setjmp/setjmp.h: Put sigjmp_buf before typedef for jmp_buf, which
10552 needs sigjmp_buf #ifdef __FAVOR_BSD.
10554 * posix/unistd.h (getgroups): Don't #define.
10556 * sysdeps/stub/ptrace.c: #include <stdarg.h>; declare AP in fn.
10559 * sysdeps/posix/sigintr.c: New; sets global sigset_t `_sigintr'.
10560 * sysdeps/posix/signal.c: Use SA_RESTART unless SIG is in _sigintr.
10561 * signal/sigintr.c: Removed.
10562 * sysdeps/stub/sigintr.c: New.
10564 * sysdeps/posix/sysd-stdio.c (__stdio_read, __stdio_write,
10565 __stdio_errmsg): Don't treat EINTR specially.
10567 * sysdeps/unix/Makefile (sys/param.h): Touch the target after mv'ing
10568 from the tmp file, so the file is newer than the directory.
10570 * sysdeps/generic/strcasecmp.c: Simplified loop; fixed returning
10571 wrong value on equal comparison.
10573 * stdlib/bsearch.c: Don't lose if NMEMB is zero.
10575 * sysdeps/unix/bsd/__times.c (timeval_to_clock_t): Microseconds are
10578 Mon Apr 13 18:25:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10580 * sysdeps/generic/strncase.c: New.
10581 * string/Makefile (routines): Add strncase.
10582 * string/string.h [__USE_GNU]: Declare strncasecmp.
10584 * time/__tzset.c: Correctly default DST offset to one hour later
10585 than standard offset.
10587 * time/__tzset.c (tz_rule): Made `name' not be const.
10589 * string/tester.c [! HAVE_GNU_LD]: #define _sys_nerr and
10590 _sys_errlist to sys_nerr and sys_errlist.
10592 * stdio/test_rdwr.c: Fixed printf call missing arg.
10594 * posix/getgrps.c: #undef getgroups first.
10596 * misc/brk.c: Declare __brk.
10597 * misc/sbrk.c: Declare __sbrk.
10598 * misc/setreuid.c, misc/setregid.c: #include <unistd.h>.
10599 Fixed types in DEFUN in fn alias.
10600 * misc/getpgsz.c, misc/getdtsz.c, misc/gethstnm.c: #include <unistd.h>.
10601 * misc/getdents.c: Declare __getdirentries.
10602 * misc/mknod.c: #include <sys/stat.h>.
10603 * posix/unistd.h: Declare many __ versions of things.
10604 [__OPTIMIZE__]: Many #define foo(...) -> __foo(...).
10606 * io/fcntl.c: #include <sys/file.h>.
10608 * sysdeps/unix/Makefile: New hair to install other headers the
10609 system sys/param.h #includes.
10611 * time/__tzset.c (__tzfile_default): Declare.
10613 * time/sys/time.h (timezone): #define to __timezone.
10615 * sysdeps/ieee754/printf_fp.c: #undef outchar before #including
10616 generic/printf_fp.c.
10618 * stdio/__vfscanf.c: For %c, don't lose the first char.
10619 For %s, properly consume the last char when we hit max width.
10621 * posix/gnu/types.h (__dev_t, __mode_t): Made int rather than short.
10622 * io/gnu/stat.h (struct stat): Made st_dev, st_rdev, and st_mode use
10623 {,unsigned} short int instead of __dev_t/__mode_t.
10625 Fri Apr 10 13:55:07 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
10627 * setjmp/setjmp.h: Rearranged so that jmp_buf is defined before any
10628 prototypes are used.
10629 (longjmp): Declare with jmp_buf, not __jmp_buf, to win in BSD mode.
10630 (_longjmp): #define as __longjmp, not longjmp.
10631 (_longjmp, _setjmp): Take jmp_buf args, not __jmp_buf.
10632 Call sig{set,long}jmp with SAVEMASK==0, rather than __{set,long}jmp.
10633 * _longjmp.c, _setjmp.c: #define _BSD_SOURCE before all else.
10634 (_setjmp): Call sigsetjmp, not __setjmp.
10636 * io/sys/stat.h (__fchmod, __mknod): Fixed arg types.
10638 * io/fchmod.c: Fixed typo.
10640 * time/Makefile (\n): Renamed to nl.
10642 * Makerules (native-compile): New variable.
10643 * sysdeps/generic/Makefile, sysdeps/unix/Makefile,
10644 sysdeps/unix/bsd/Makefile: Use it in cmds for generator progs.
10646 * sysdeps/unix/sysv/sysv_termio.h (_SYSV_TAB3): New; same as XTABS.
10648 * sysdeps/unix/sysv/setrlimit.c: Removed extern decl of etext (unused).
10650 * sysdeps/unix/sysv/__tcgetatr.c, sysdeps/unix/sysv/tcdrain.c,
10651 sysdeps/unix/sysv/tcflow.c, sysdeps/unix/sysv/tcflush.c,
10652 sysdeps/unix/sysv/tcgetpgrp.c, sysdeps/unix/sysv/tcsendbrk.c,
10653 sysdeps/unix/sysv/tcsetattr.c, sysdeps/unix/sysv/tcsetpgrp.c:
10654 #include <sys/ioctl.h>
10656 * sysdeps/unix/sysv/__rmdir.c, sysdeps/unix/sysv/__mkdir.c,
10657 sysdeps/posix/writev.c: #include <string.h>.
10659 * sysdeps/posix/clock.c: Removed unused variable.
10661 Thu Apr 9 01:49:39 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10665 * grp/testgrp.c: Print members correctly.
10667 * stdio/test-popen.c: Pipe to cat rather than more, and then check
10668 output file. Better error checking.
10670 * setjmp/tst-setjmp.c: Notice if we didn't jump the right number of
10673 * signal/tst-signal.c, string/testcopy.c, stdio/bug[12345].c: Print
10674 msgs that more clearly say whether we won or lost. Better error
10677 * sysdeps/generic/printf_fp.c: Completely rewritten from scratch.
10678 Now uses Steele & White's "Dragon4" algorithm to do things right.
10680 Wed Apr 8 01:08:41 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10682 * sysdeps/i386/__longjmp.c: Test for VAL==0 before clobbering regs.
10683 Wire V to AX, rather than DX. Use "a" constraint on unused operand
10684 in jmp asm, rather than global reg var, to force value into AX.
10686 Tue Apr 7 17:51:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10688 * posix/Makefile (headers): Added tar.h.
10689 * posix/tar.h: New file, from djm.
10691 Mon Apr 6 01:39:07 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10693 * time/tzfile.c (struct ttinfo): Made `isstd' member be unsigned
10694 char instead of 1-bit bitfield.
10696 * time/tzfile.c (__tzfile_default): New function.
10697 * time/__tzset.c: Call it when no rule is given.
10698 * time/Makefile: Install posixrules just like localtime.
10699 * time/Makeconfig (posixrules, posixrules-file): New config vars.
10701 * time/time.h (struct tm): Add `tz_gmtoff', `tz_zone'.
10702 * time/localtime.c: Set those members.
10704 * sysdeps/ieee754/__drem.c: XOR the signs of X and the result,
10705 rather than setting the sign of the result to that of X.
10707 * sysdeps/unix/bsd/make-local_lim.c: Don't do MAXUPRC or MAXLINK if
10708 <sys/param.h> didn't define them.
10710 * sysdeps/posix/__sigvec.c: Fixed braino: SA_ONSTACK should be
10713 * pwd/getpw.c, pwd/putpwent.c: Use %u fmt for uid and gid (which are
10716 * time/time.h (tzname, daylight, timezone): Don't #define to __.
10717 * time/tzfile.c, time/__tzset.c, time/localtime.c, time/strftime.c
10718 [! HAVE_GNU_LD]: #define __ to plain for above three vars.
10720 Thu Apr 2 03:39:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10722 * locale/Makefile (routines): Add localeconv.
10724 * sysdeps/i386/jmp_buf.h: Removed `__dx' elt; replaced with `__pc'.
10725 __bp and __sp are PTRs.
10726 * sysdeps/i386/setjmp.c: Rewritten. Use global reg vars to save regs.
10727 Use arithmetic on address of arg to get caller's PC, BP, and SP.
10728 * sysdeps/i386/__longjmp.c: Rewritten. Use global reg vars to
10731 Wed Apr 1 23:13:57 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10733 * Moved sysdeps/unix/i386/{bsd,sysv} to
10734 sysdeps/unix/{bsd,sysv}/i386, and updated Implies files.
10735 Implied dirs come before parents, and we want unix/i386 before
10738 * io/chown.c: Fixed types in fn alias.
10740 Wed Apr 1 14:18:58 1992 Torbjorn Granlund (tege@mole.gnu.ai.mit.edu)
10742 * sysdeps/generic/memcmp.c
10743 (memcmp_common_alignment, memcmp_not_common_alignment):
10744 Move back do0 label to its original position, after the loop.
10745 Add comment before do0 labels.
10746 * sysdeps/generic/wordcopy.c (_wordcopy_fwd_aligned): Indentation.
10747 Add comment before do0 labels.
10749 Wed Apr 1 02:16:19 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10751 * sysdeps/unix/sysv/Makefile [subdir==misc]: Generate sysdep header
10752 termio.h from sysv_termio.h.
10754 * sysdeps/generic/make_siglist.c: New file.
10755 * sysdeps/generic/signame.[ch]: Symlink'd from /gd/gnu/lib.
10756 * sysdeps/generic/Makefile: Generate siglist.c with above.
10757 * sysdeps/generic/Dist: Add make_siglist.c, signame.[ch].
10759 * sysdeps/unix/bsd/Makefile (before-compile): Define properly as a
10762 * sysdeps/unix/bsd/make_siglist.c: Generate #define _sys_siglist
10763 sys_siglist #ifndef HAVE_GNU_LD.
10764 * stdio/psignal.h, string/strsignal.h [! HAVE_GNU_LD]:
10765 #define _sys_siglist sys_siglist.
10767 * sysdeps/unix/sysv/signum.h (SIGCHLD): Changed #.
10768 (SIGUSR1, SIGUSR2, SIGPWR): Added.
10771 * sysdeps/unix/sysv/utmp.h: New.
10773 * sysdeps/unix/bsd/getlogin.c: Moved to sysdeps/unix/getlogin.c.
10775 * sysdeps/unix/sysv/r4/bsddir.h, sysdeps/unix/sysv/r4/readdir.c,
10776 sysdeps/unix/sysv/r4/closedir.c, sysdeps/unix/sysv/r4/rewinddir.c,
10777 sysdeps/unix/sysv/r4/opendir.c, sysdeps/unix/sysv/r4/sys_getdents.S,
10778 sysdeps/unix/sysv/r4/Makefile: New.
10780 * sysdeps/unix/sysv/tcflow.c: New.
10782 * sysdeps/unix/sysv/sysv_termio.h: Add lots of bits; VMIN and VTIME
10784 * sysdeps/unix/sysv/__tcgetatr.c, sysdeps/unix/sysv/tcsetattr.c: Use
10785 VMIN and VTIME elts from sysv termio struct.
10787 * sysdeps/unix/sysv/__gethstnm.c: New.
10789 * sysdeps/unix/sysv/local_lim.h (NGROUPS_MAX): Define as 0.
10791 * sysdeps/unix/sysv/fcntlbits.h (struct __flock): Changed l_pid to
10792 short; added l_sysid.
10794 * sysdeps/unix/sysv/__sigact.c: New.
10796 * sysdeps/unix/sysv/r4/__access.S: New; just #include bsd/__access.S.
10798 * sysdeps/unix/sysv/Makefile: Fixed typo: sysdep-routines =>
10801 * sysdeps/unix/i386/sysv/__sigret.S,
10802 sysdeps/unix/i386/sysv/signal.S: New.
10804 * signal/Makefile (routines): Added sigret, __sigret.
10805 * signal/sigret.c: New; fn alias to __sigreturn.
10806 * sysdeps/stub/__sigret.c: New.
10808 * sysdeps/unix/i386/sysdep.h (PSEUDO): Use hard-coded numbers for
10809 lcalls insn--GAS bug.
10811 * sysdeps/unix/bsd/readdir.c (D_NAMLEN): New macro; define if not
10812 already defined, to return length of a direct elt.
10814 * sysdeps/stub/__getgrps.c: #include <limits.h>; if NGROUPS_MAX is
10815 defined as 0, always return 0, and no stub warning.
10817 * sysdeps/posix/system.c: Don't fail if sigprocmask fails with ENOSYS.
10819 * sysdeps/posix/sysd-stdio.c, sysdeps/stub/sysd-stdio.c: Doc fix.
10821 * sysdeps/posix/__gettod.c: Use CONST where appropriate and not
10824 * sysdeps/i386/memchr.c, sysdeps/i386/strlen.c: Changed `repnz' to
10827 * stdio/fgets.c: Notice returned char from __fillbf in length calc.
10829 * misc/sys/ioctl.h: Always define `struct sgttyb'.
10831 * stdlib/alloca.h: #undef __alloca, too.
10832 Always #define alloca == __alloca.
10834 * signal/signal.h (__kill): Fixed type in decl.
10835 * posix/unistd.h (setgid): Fixed type in decl.
10836 * posix/setpgid.c, posix/setgid.c, signal/kill.c, posix/fork.c,
10837 posix/vfork.c, posix/getpid.c, posix/getppid.c, posix/setsid.c:
10838 Fixed DEFUNs in fn aliases.
10839 * pwd/getpw.c: Fixed type in defn.
10841 Mon Mar 30 17:06:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10843 * sysdeps/generic/printf_fp.c: In %f, decrement PREC for each
10844 leading zero in the fractional part.
10846 * sysdeps/ieee754/ieee754.h: Made all elts unsigned.
10847 * sysdeps/ieee754/__drem.c: Return NAN if Y is zero.
10848 * sysdeps/ieee754/ldexp.c: Rewritten.
10849 * sysdeps/ieee754/__logb.c: Handle denormalized numbers.
10851 * posix/sys/wait.h: #include <endian.h>
10853 * sysdeps/ieee754/fl.h: Fixed NAN and HUGE_VAL bit patterns; added
10854 code for little endian.
10856 * sysdeps/generic/frexp.c: Add one to exponent to give the result a
10857 digit before the point. Use negative exponent rather than division.
10859 * math/__finite.c: Return zero for NaN.
10860 * math/math.h: Doc fix for same.
10862 * stdio/__getdelim.c: Correctly notice when the buffer is full.
10864 * sysdeps/unix/bsd/opendir.c: Pass arg to fcntl F_SETFD by value,
10867 * time/__tzset.c: Correct default rule: M4.1.0,M10.5.0.
10869 * time/__tzset.c: Move ptr past Mfoobar syntax after parsing it.
10871 * time/__tzset.c: Properly parse the DST offset (or its absence).
10873 * sysdeps/unix/make_errlist.c: Write an #ifdef HAVE_GNU_LD, rather
10874 than testing it when compiling make_errlist.
10876 * time/tzfile.c (__tzfile_read): Convert transitions to host byte
10879 * Makeconfig (localtime-file): New config var.
10880 * time/Makefile (tzfile.o, zic.o): Use it for TZDEFAULT.
10882 * stdio/Makefile (tests): Added tstgetline.
10883 * stdio/tstgetline.c: New; test for getline.
10885 * Makeconfig (sysincludedir): Define and document.
10886 * sysdeps/unix/snarf-ioctls, sysdeps/unix/Makefile: Use
10887 ${sysincludedirs} in place of hard-coded /usr/include.
10889 Fri Mar 27 13:33:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10891 * string/Makefile (headers): Added endian.h.
10893 * sysdeps/ieee754/__drem.c: Fixed typo which made X and Y be the
10896 * sysdeps/generic/__lstat.c: #include <gnu-stabs.h>
10898 * stdio/internals.c (flushbuf): Increment target as well as offset
10899 when we write out the single char.
10901 * grp/Makefile (tests): Add testgrp (formerly bug1).
10903 Thu Mar 26 14:59:45 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10905 * stdio/fread.c: Don't read directly when we need to seek first.
10907 Wed Mar 25 02:34:49 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10909 * sysdeps/unix/bsd/alarm.c: There are 1000000 usecs in a sec.
10911 * sysdeps/unix/bsd/sun/ptrace.c: Removed.
10913 * stdio/fgets.c: For unbuffered stream, don't return EOF after
10915 Added missing parens.
10917 Tue Mar 24 18:31:07 1992 Torbjorn Granlund (tege@hal)
10919 * sysdeps/i386/memset.c: Move code that puts C in all four nibbles of
10920 X inside `if' statement. Include sysdeps/i386/memset.c (not bzero).
10921 * sysdeps/i386/memchr.c: Rewrite to be faster. Include
10922 sysdeps/generic/memchr.c (not bzero).
10924 Tue Mar 24 01:21:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10926 * io/Makefile (routines): Add getdirname.
10927 * posix/unistd.h [__USE_GNU]: Declare getdirname.
10928 * io/getdirname.c: New.
10930 * Makeconfig (stddef.h): Define and document.
10931 * Makefile (headers): Use $(stddef.h) for stddef.h.
10933 Mon Mar 23 18:04:56 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
10935 * sysdeps/posix/mktemp.c: Do PID % 100000 for 5 digits.
10937 * time/Makefile (tzfiles): Remove pacificnew; it won't compile.
10938 (distribute): Put it here instead.
10940 * stdio/printf-prs.c [HAVE_LONGLONG]: Fixed missed var name change
10943 * stdio/fgets.c: Return NULL when we get EOF.
10945 * posix/execvp.c, sysdeps/posix/putenv.c [! HAVE_GNU_LD]: Define
10946 __environ as environ.
10948 * sysdeps/unix/bsd/Makefile, sysdeps/unix/Makefile: In rules to
10949 compile generator programs, cd into $(objdir) first to avoid
10950 braindead cc clobbering foo.o in cwdir.
10952 * sysdeps/m68k/setjmp.c: Deref fpregs array in asm.
10954 * time/Makefile (zones-%): Fixed generated rules.
10956 * math/Makefile (libm.a): Use r cmd to ar.
10958 * time/Makefile (zones-%): In echo commands, put \\\\n outside of
10959 quotes instead of \\n inside single quotes. SysV echo is braindead.
10961 * io/fchown.c, io/fchmod.c, misc/bsd-compat.c: Fixed DEFUNs in fn
10964 * time/Makefile (echo-zonenames): New target; tell user what all
10965 timezones defined in all zone files are.
10966 * Makeconfig (localtime): Comment about using above.
10968 Sun Mar 22 18:34:02 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10970 * time/australasia (NZ): Updated rules.
10972 Sat Mar 21 01:00:49 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10974 * stdio/printf-prs.c [__GNUC__]: Define HAVE_LONGLONG.
10976 Fri Mar 20 00:35:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10980 * stdio/Makefile (routines): Add __getdelim, __getline.
10982 * sysdeps/unix/i386/start.c: No ../ in #include file name.
10984 * sysdeps/posix/sysd-stdio.c, sysdeps/stub/sysd-stdio.c
10985 (__stdio_seek): Doc fix.
10987 * sysdeps/posix/mk-stdiolim.c: Add one to L_tmpnam, for the null
10990 * sysdeps/posix/__dup2.c: Use an extra fcntl call to check that the
10991 first fd is valid. Close the second fd before doing the dup.
10993 * pwd/pwdread.c, grp/grpread.c: Use __getline. Ignore lines
10996 * Makeconfig (objdir): If $(ARCH) starts with a slash, don't prepend
10999 Thu Mar 19 21:36:57 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11001 * Makefile (install-lib): Add Mcrt1.o.
11002 (Mcrt1.o): Create empty file.
11004 Wed Mar 18 16:00:18 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11006 * Makeconfig (+link): Use $(libdir) for gnulib.
11008 Tue Mar 17 20:12:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11010 * math/bsd/common_source/mathimpl.h: Include <endian.h>.
11011 [__LITTLE_ENDIAN]: #define national.
11013 * stdio/__vfscanf.c: EOF at end of string is not
11016 * stdio/tstscanf.c: Added new sscanf test.
11018 * stdio/vfprintf.c: For %#x, print 0x after padding 0s, not before.
11020 * stdio/fputs.c: Reverse size args to fwrite and test for returning
11021 LEN, rather than 1, so 0-length wins.
11023 * io/gnu/fcntl.h: Moved to sysdeps/unix/bsd/fcntlbits.h.
11024 * io/Makefile (headers), io/fcntl.h: gnu/fcntl.h -> fcntlbits.h.
11025 * sysdeps/stub/fcntlbits.h, sysdeps/unix/sysv/fcntlbits.h: New.
11027 * stdio/fopen.c (__getmode): Don't fall through in switch after 'a'
11030 * locale/C-ctype_ct.c (__ctype_b_C): Use symbolic constants.
11031 9..12 are not _NOgraph.
11033 Tue Mar 17 19:04:01 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu)
11035 * string/testcopy.c: Fix typo in comment.
11037 Tue Mar 17 19:57:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11039 * sysdeps/generic/strstr.c, string/string.h, string/tester.c
11040 (strstr): Arguments were reversed.
11042 Tue Mar 17 18:52:39 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu)
11044 * sysdeps/i386/memcopy.h (WORD_COPY_BWD): Divide nbytes by 4.
11045 * sysdeps/i386/memchr.c: Rewrite. Handle zero length correctly.
11046 Don't ask gcc to allocate eax to two regs.
11048 Tue Mar 17 17:31:06 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11050 * posix/unistd.h (getpagesize): Declare as size_t.
11052 * Makeconfig (CC): Define unless origin is default.
11054 * stdio/__getdelim.c: Be sure to leave room for the terminating null.
11056 * string/testcopy.c: New version from tege.
11058 * malloc/dist-README: Changed mailing list addr to bug-glibc.
11060 * sysdeps/unix/bsd/__sigproc.c: Use right mask for SIG_UNBLOCK.
11062 * Makefile, Rules (clean, mostlyclean): Put - before rm commands.
11064 Tue Mar 17 11:14:40 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu)
11066 * sysdeps/rs6000/memcopy.h (BYTE_COPY_BWD): Assign __nbytes.
11067 * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Copy memory, not just
11068 pointers. Clean up switch expression.
11070 Mon Mar 16 05:09:23 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11072 * posix/wordexp.c: New.
11074 * time/tzfile.c (__tzfile_read): Don't die if some of the sections
11075 of the datafile are empty.
11077 * stdio/getline.c, stdio/getdelim.c: Moved to
11078 __getline.c/__getdelim.c.
11079 New files with fn aliases.
11080 * stdio/stdio.h (__getline, __getdelim): Declare.
11082 * time/Makefile (zonenames): Hair to find the names of zones
11083 described by $(tzfiles).
11084 (install-data): Install zoneinfo/$(zonenames).
11085 Rules to make zones from tzfiles.
11086 [localtime] (zoneinfo/localtime): Make from zoneinfo/$(localtime).
11087 * Makeconfig (localtime): New user-frobbable variable.
11089 Sun Mar 15 00:01:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11091 * Makerules (sysdep-Makefile): Do if ... else true to avoid bogus
11094 * Makefile: Denewlinify +sysdep-subdirs after including sysd-dirs.
11096 * sysdeps/vax/__infnan.c [!__GNUC__]: Error.
11098 * zic.c, scheck.c, emkdir.c, ialloc.c, private.h, tzfile.h: Snarfed
11099 from localtime3 dist.
11100 * time/Makefile (others): Added zic.
11101 (distribute): Added private.h, emkdir.c, ialloc.c, scheck.c.
11102 (install): Defined: zic, zdump.
11104 * Makeconfig (bindir): Define.
11105 * Makerules: Add rule to install $(install) in $(bindir).
11106 (+install): Include $(install) in $(bindir).
11108 * sysdeps/unix/Makefile: Moved siglist.c rules to unix/bsd/Makefile.
11109 * sysdeps/unix/make_siglist.c: Moved to bsd/.
11110 * sysdeps/unix/Dist: Remove it.
11111 * sysdeps/unix/bsd/Dist: Add it.
11113 * malloc/Makefile (malloc/gmalloc.c): Depend on headers and sources.
11115 * sysdeps/unix/bsd/sun/sun4/__sigvec.S: Doc fix.
11117 * sysdeps/stub/stty.c, sysdeps/stub/gtty.c: Include <stddef.h>.
11119 * sysdeps/unix/sysv/__fstat.c: Include sysv_stat.h.
11121 * misc/bsd-compat.c: Define _BSD_SOURCE rather than __FAVOR_BSD.
11122 (longjmp): Use function_alias_void.
11124 * time/Makefile (tzfile.o): Compile with
11125 -DTZDIR='"$(datadir)/zoneinfo"'.d
11127 Sat Mar 14 23:26:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11129 * Makeconfig (INSTALL_DATA, INSTALL_PROGRAM, INSTALL): Don't define
11130 if already defined.
11132 * setjmp/longjmp.c: Use function_alias_void.
11134 * gnu-stabs.h (function_alias_void): New macro.
11136 * gnu-stabs.h [!HAVE_GNU_LD] (function_alias): Fixed not to loop.
11138 Fri Mar 13 17:20:19 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11140 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Include null
11141 terminator in length calculation.
11143 * stdio/fgets.c: Be sure to return NULL on error/eof for unbuffered
11144 stream. If N==1, don't write the first char if !seen.
11145 When the buffer is empty, notice the effect of __fillbf after
11146 calling it, avoiding a (costly) no-op iteration.
11147 Don't return NULL for reading no chars; only for EOF or error.
11148 Don't write terminator at beginning of S if eof on first char.
11150 * malloc/Makefile (libmcheck.a), Makefile (crt0.o): Remove target
11151 first; don't use -f to ln.
11153 * posix/execl.c, posix/execv.c, sysdeps/posix/getenv.c,
11154 sysdeps/posix/system.c [HAVE_GNU_LD]: #define __environ environ
11156 * posix/unistd.h [__OPTIMIZE__] (execv): Removed defn. Can't know
11157 whether to use __environ or environ.
11159 * io/fchown.c, io/chown.c, io/open.c, misc/select.c,
11160 signal/sigvec.c, time/adjtime.c: Fixed DEFUNs in fn aliases.
11162 * time/__tzset.c: Don't dereference NULL if getenv returns it.
11164 Thu Mar 12 16:01:33 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11166 * sysdeps/ieee754/sqrt.c: Replaced undefined var ref `k' with constant.
11168 * sysdeps/i386/__longjmp.c: #include <stdlib.h>.
11170 * time/tzfile.c (__tzfile_compute): Use types[0] if TIMER falls
11171 between transitions[0] and transitions[1].
11172 Always set __tzname[INFO->isdst] to the name for INFO.
11174 * sysdeps/i386/__longjmp.c: Changed register names for gcc; eax/%eax
11177 * sysdeps/unix/snarf-ioctls: Avoid infinite recursion.
11179 Wed Mar 11 00:16:18 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11183 * Makefile (munch-init.c): Made $(objpfx)munch-init.c.
11185 * signal/sigvec.c, signal/sigaction.c, stdio/vsscanf.c: Fixed DEFUNs
11188 * sysdeps/m68k/68881/68881-switch/switch.c: Merged vars have_fpu and
11191 * sysdeps/mach/i386/start.c, sysdeps/vax/setjmp.c,
11192 sysdeps/vax/__longjmp.c, sysdeps/vax/__infnan.c,
11193 sysdeps/unix/start.c, sysdeps/unix/bsd/sun/sun4/sigtramp.c,
11194 sysdeps/unix/bsd/sun/sun4/start.c,
11195 sysdeps/unix/bsd/hp9k3bsd/start.c, sysdeps/sparc/sqrt.c,
11196 sysdeps/rs6000/ffs.c, sysdeps/m88k/ffs.c, sysdeps/m68k/setjmp.c,
11197 sysdeps/m68k/__longjmp.c, sysdeps/m68k/68881/printf_fp.c,
11198 sysdeps/m68k/68881/atan2.c, sysdeps/m68k/68881/__logb.c,
11199 sysdeps/m68k/68881/68881-switch/switch.c, sysdeps/m68k/ffs.c,
11200 sysdeps/i386/memset.c, sysdeps/i386/memchr.c, sysdeps/i386/ffs.c,
11201 sysdeps/i386/bzero.c, sysdeps/i386/__longjmp.c, sysdeps/am29k/ffs.c
11202 [! __GNUC__]: Either include the generic (or in some cases, ieee754)
11203 version, or do a #error.
11205 * Rules: Null out `objects' at end to shrink environment some.
11206 (+objs): Define with := from $(objects).
11207 (clean): Use that instead of $(objects).
11209 * sysdeps/i386/setjmp.c: Doubled % where it wanted to be literal.
11211 * posix/getgrps.c, io/flock.c, io/mkdir.c, io/read.c, io/write.c,
11212 io/stat.c, misc/getdents.c, misc/mknod.c, misc/utimes.c: Fixed
11213 DEFUNs in fn aliases.
11215 * sysdeps/unix/bsd/hp9k3bsd/sysdep.S: Use # instead of kludge cookie.
11217 * posix/getegid.c: Fixed type in DEFUN.
11219 * time/tzfile.c (__tzfile_compute): If TIMER is before any
11220 transition in the file, use the first non-DST type, rather than the
11221 type of the first transition in the file.
11223 Tue Mar 10 20:01:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11225 * configure: Take optional -nfp arg.
11226 (news, sun3, hp300): Prepend m68k/68881 unless -nfp is given.
11227 * sysdeps/unix/bsd/hp9k3bsd/Implies: Don't specify 68881.
11229 * stdio/getdelim.c: When the buffer is empty, notice the effect of
11230 __fillbf after calling it, avoiding a (costly) no-op iteration.
11232 * sysdeps/vax/__memccpy.c: Fixed comments.
11234 * stdio/fmemopen.c: Set all fns and seen bit before we might call
11235 something that would care (fclose).
11237 * configure (sun3, sun-3): Mean sun3os4, not sun3os3.
11238 (sun3os3): Use just unix/bsd/sun/sun3/os3.
11239 * sysdeps/unix/bsd/sun/sun3/os3: New directory.
11240 (sysdeps/unix/bsd/sun/sunos3/__wait.S): Moved to there.
11241 * sysdeps/unix/bsd/sun/sun3/sysdep.h: Fixed; took hp9k3bsd/sysdep.h
11242 and changed movel foo, d0 to pea foo for syscall no.
11243 * sysdeps/unix/bsd/sun/sun3/__brk.S: Fixed pea addr mode.
11244 * sysdeps/unix/bsd/sun/sun3/sethostid.S: errnos.h, not gnu/errno.h.
11245 Use .stabs directly, not gnu-stabs.h (which uses `asm').
11246 * sysdeps/m68k/setjmp.c: Changed asm for first moveml, so it works
11248 * sysdeps/unix/bsd/sun/sun3/start.c: Removed ../ from #include path.
11250 Sun Mar 8 16:33:33 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11252 * misc/makefile (headers): Added stab.h, stab.def.
11253 * Many files: Changed __GNU_STAB__ to HAVE_GNU_LD.
11255 Sat Mar 7 21:21:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11257 * time/mktime.c: Normalize the struct values before checking for out
11260 Fri Mar 6 11:43:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11262 * sysdeps/ieee754/ldexp.c: New.
11264 * stdio/internals.c (flushbuf): When priming the stream for writing,
11265 advance the target pos to account for chars gotten from the buffer.
11267 * sysdeps/generic/Makefile: For math routines, don't filter out
11270 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Fixed bugs.
11272 * misc/Makefile (routines): Remove flock.
11274 * stdlib/strtod.c: Fixed typo in checking for exponent overflow.
11275 Do set *ENDPTR on overflow or underflow.
11277 * sysdeps/sparc/fl.h: Removed. Should use ieee754 version.
11279 * sysdeps/generic/Makefile: For math routines, don't filter out
11280 __copysign, __scalb, __drem and __logb; and don't add support.
11282 * sysdeps/ieee754/__drem.c: New.
11283 * sysdeps/ieee754/sqrt.c: New.
11284 * sysdeps/stub/__drem.c: New.
11285 * sysdeps/stub/sqrt.c: New.
11286 * sysdeps/stub/__logb.c: New.
11287 * sysdeps/ieee754/__logb.c: New.
11289 * sysdeps/ieee754/__infnan.c: Include <float.h> and use NAN macro
11290 rather than cooking one up by hand.
11292 * sysdeps/unix/bsd/getlogin.c: Open /dev/tty, rather than using stdin.
11293 Make sure the name is always null-terminated.
11295 Thu Mar 5 17:11:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11297 * sysdeps/m68k/68881/__scalb.c: Removed.
11298 * sysdeps/m68k/68881/__math.h: Removed defn of __scalb.
11299 * math/math.h [__OPTIMIZE__]: Define __scalb to be ldexp.
11300 * math/__scalb.c: New; fn alias for ldexp.
11302 * stdio/Makefile (tests): Added bug4 and bug5.
11303 * stdio/bug4.c, stdio/bug5.c: Test cases from reported bugs just fixed.
11305 * stdio/internals.c (flushbuf): If nothing was written by the user,
11306 but there is previously gotten data, don't write anything out.
11308 * stdio/internals.c (seek_to_target): Call __stdio_check_offset first.
11310 * sysdeps/unix/sysv/sysv_termio.h: New file.
11311 * sysdeps/unix/sysv/Dist: Include it.
11312 * sysdeps/unix/sysv/tcsetattr.c, sysdeps/unix/sysv/tcsetpgrp.c,
11313 sysdeps/unix/sysv/tcsendbrk.c, sysdeps/unix/sysv/tcgetpgrp.c,
11314 sysdeps/unix/sysv/tcflush.c, sysdeps/unix/sysv/tcdrain.c,
11315 sysdeps/unix/sysv/__tcgetatr.c: New files.
11317 * stdio/internals.c (fillbuf): Don't set the put_limit on writable
11318 streams. Wait for first write attempt to prime them, so we don't
11319 flush the unchanged data unnecessarily.
11321 * stdlib/exit.c: Look for NULL terminator on ld set, rather than
11324 * Makefile (headers): Remove stdarg.h and varargs.h.
11325 Users will get them from GCC.
11326 * stdio/printf.h: Include <stdarg.h> to use va_list.
11327 * stdio/stdio.h: Don't include <stdarg.h> with magic.
11328 Use PTR in place of __va_list in prototypes.
11329 * stdio/__vsscanf.c, stdio/vscanf.c, stdio/vfscanf.c,
11330 stdio/__vfscanf.c, stdio/vdprintf.c, stdio/vasprintf.c,
11331 stdio/vsprintf.c, stdio/vsnprintf.c, stdio/vprintf.c,
11332 stdio/vfprintf.c: Fixed DEFUNs.
11334 * sysdeps/ieee754/ieee754.h: New file; declares union ieee754_double.
11335 * sysdeps/ieee754/Dist: Add it.
11336 * sysdeps/ieee754/__copysign.c, sysdeps/ieee754/__infnan.c,
11337 sysdeps/ieee754/__isinf.c, sysdeps/ieee754/__isnan.c,
11338 sysdeps/ieee754/__printf_fp.c: Use it.
11340 * sysdeps/unix/sysv/uname.c: New.
11341 * sysdeps/unix/sysv/__utssys.S: New.
11342 * sysdeps/unix/sysv/Makefile (routines): Add __utssys.
11343 * sysdeps/unix/sysv/Dist: Add __utssys.S.
11345 * sysdeps/unix/sysv/__rmdir.c: New; runs `rmdir' shell command.
11347 * sysdeps/unix/sysv/__mkdir.c: New; runs `mkdir' shell command.
11349 * sysdeps/generic/__lstat.c: New; fn alias for __stat.
11351 * sysdeps/unix/sysv/__gethostname.c: New; uses uname.
11353 * sysdeps/unix/Makefile (sys/params.h): Protect with
11354 _GNU_SYS_PARAM_H, in case the system's file uses _SYS_PARAM_H itself.
11356 * stdio/internals.c (__stdio_check_offset): Call init_stream to make
11359 * stdio/fread.c: Don't call __fillbf if the put_limit is past the
11360 beginning of the buffer; only if !seen, no buffer, or pushed back.
11362 * stdio/fopen.c (__getmode): Set create bit for "a" mode.
11364 * io/mkdir.c: #undef mkdir before fn alias.
11366 * time/tzfile.c (__tzfile_compute): Don't decrement I if it's zero.
11368 * Makefile (crt0.o): Use ln -f.
11370 * math/Makefile (install): Install libm.a.
11371 (libm.a): Make an empty archive.
11373 Wed Mar 4 19:54:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11375 * README.template: Added note about long filenames in dist.
11377 * io/Makefile (routines): flock -> __flock
11378 * flock.c: New file, fn alias.
11379 * sysdeps/unix/bsd/flock.S: Renamed to sysdeps/unix/bsd/__flock.S;
11381 * sysdeps/mach/hurd/flock.c: Renamed to sysdeps/mach/hurd/__flock.c;
11383 * sysdeps/stub/flock.c: Renamed to sysdeps/stub/__flock.c; made
11386 * time/time.h (__isleap): Fixed; every 400th year is not a leap
11387 year, not every 1000th.
11389 * stdio/internals.c (flushbuf): Increment the target position the
11390 amount the user wrote into the buffer, not the amount we wrote out
11391 to the file (which is greater if we read a block and modified it
11394 * stdio/internals.c (flushbuf): Set get_limit to the beginning of
11395 the buffer for all streams, except when we have just read in a block.
11397 Sat Feb 29 15:56:22 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11399 * posix/Makefile (others): Removed logname, id.
11400 * time/Makefile (others): Removed date.
11402 * sysdeps/unix/bsd/sun/sun4/start.c: Make an alias called `start'
11403 (no leading underscore, so it can't conflict with C symbols) for
11406 Thu Feb 27 14:32:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11408 * set-init.c: Look for NULL terminator on set. ld is broken and
11409 doesn't set the length word correctly.
11411 * setjmp/_longjmp.c, signal/sigaction.c, signal/sigvec.c,
11412 signal/ssignal.c, string/bcmp.c, time/setitmr.c, posix/execve.c,
11413 posix/getegid.c, posix/geteuid.c, posix/getgid.c, posix/getuid.c,
11414 posix/getgrps.c, posix/setuid.c, posix/wait3.c, posix/wait4.c,
11415 posix/waitpid.c, io/lseek.c, io/open.c, io/read.c, io/write.c,
11416 resource/getrusage.c, misc/getpgsz.c, misc/gethstnm.c,
11417 misc/select.c: Fixed DEFUNs in fn aliases.
11419 Wed Feb 26 00:20:25 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11421 * sysdeps/generic/Makefile (routines): Add asincos.
11423 * time/tzfile.c (__tzfile_compute): Set __tzname properly, so isdst
11424 is the right index into it.
11426 Tue Feb 25 01:42:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11428 * sysdeps/unix/bsd/sun/sun4/sysdep.h (ENTRY): .align 2, not .align 4.
11429 This one is powers of two.
11431 * time/__tzset.c: If TZ is :FILE, try FILE and if __tzfile_read
11432 fails, then use defaults.
11434 * sysdeps/generic/Makefile (routines): Add sincos.
11436 * sysdeps/posix/cuserid.c: Set the result to the empty string on
11439 * string/string.h, string/strings.h, sysdeps/i386/memchr.c: Fixed
11440 spelling in comment.
11442 * string/makefile (tests): Include (uncomment) testcopy. We do have
11443 papers for it from tege.
11445 * malloc/dist-README: Fixed mailing list addr.
11447 * resource/sys/vtimes.h (struct vtimes): Renamed vm_outblk to
11448 vm_oublk; fixed comment.
11449 * sysdeps/generic/vtimes.c: Renamed here too.
11451 * Make-dist (README): Depend on version.c.
11453 Tue Feb 18 18:14:50 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11457 * time/tzfile.c (__tzfile_compute): Fixed transition comparison.
11459 * sysdeps/unix/bsd/sun/sun3/Makefile: Fixed typo.
11461 Mon Feb 17 05:04:00 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11465 * Makefile (distribute): Add Q+A.
11466 * Q+A: New doc file from rich@cygnus.com.
11468 * malloc/Makefile (distribute): Add mcheck-init.c.
11470 Mon Feb 17 00:39:38 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11472 * sysdeps/unix/sysv/utime.c: Removed.
11473 * sysdeps/unix/sysv/utime.S: New file.
11475 * sysdeps/unix/sysv/signum.h: New file.
11477 * sysdeps/unix/sysv/local_lim.h: New file.
11479 * sysdeps/unix/sysv/sysv_stat.h: New file.
11480 * sysdeps/unix/sysv/__stat.c, sysdeps/unix/sysv/__fstat.c: New files.
11481 * sysdeps/unix/sysv/Makefile: New file.
11482 (+sysdep-routines): Define to sys_stat and sys_fstat.
11483 * sysdeps/unix/sysv/sys_stat.S, sysdeps/unix/sysv/sys_fstat.S: New
11485 * sysdeps/unix/sysv/Dist: Created to include sysv_stat.h,
11486 sys_stat.S, and sys_fstat.S.
11488 * sysdeps/stub/__setreuid.c: Include <sys/types.h>.
11490 * sysdeps/posix/__sigblock.c: Fixed typo.
11492 * stdio/internals.c (__flshfp): Don't return EOF if at EOF; only
11495 * signal/gnu/signal.h: Move #include <signum.h> outside repeat #ifdef.
11497 * sysdeps/unix/sysv/filebits.h: Created.
11499 * misc/Makefile (distribute): Define to bsd-compat.c.
11501 * misc/Makefile (headers): Remove filebits.h.
11502 * io/Makefile (headers): Put it here.
11504 * Makefile (+posix_dirs): Add io.
11505 * io/Makefile: New file for new subdir.
11506 Contains many headers and routines moved from posix.
11507 * posix/Makefile: Remove many headers and routines now in io.
11508 * Moved many files from posix to io.
11510 * stdlib/alloca.h: Get size_t from stddef.h.
11512 * misc/bsd-compat.c (getgroups): Removed. Not needed, because gid_t
11513 is now the same size as int.
11515 * Makefile (distribute): Include NOTES.
11516 * NOTES: New file, infoized node from intro.texinfo about the
11517 feature-test macros.
11518 * README.template: Mention NOTES.
11520 * sysdeps/unix/bsd/sun/sun3/Makefile: include hp9k3bsd version.
11522 * Makeconfig: Use $(..) for config.status.
11524 * configure (i386-sysv): unix/i386/sysv, not unix/sysv/i386.
11525 * unix/i386/sysv/Implies: unix/sysv, not unix/i386.
11527 Sun Feb 16 00:42:53 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11531 * posix/Makefile (headers): Remove confstr.h.
11532 (distribute): Define this instead to contain it.
11534 * ansidecl: Added copyright notice.
11536 * stdio/getdelim.c: New file.
11537 * stdio/getline.c (getsome): Renamed to getdelim and moved there.
11538 * stdio/Makefile (routines): Add getdelim.
11539 * stdio/stdio.h: Declare getdelim.
11541 * misc/gnu/file.h: Moved to sysdeps/unix/bsd/filebits.h.
11542 * sysdeps/stub/filebits.h: New file.
11543 * misc/Makefile: gnu/file.h is now filebits.h.
11544 * posix/fcntl.h: Changed #include.
11546 * stdio/getline.c (getsome): If MAX_CANON isn't defined, use a default.
11547 Don't leak old *LINEPTR storage if *N < 2.
11548 Don't bang *LINEPTR to NULL if realloc fails.
11550 * Makerules: Don't use override when nulling out sources, routines,
11551 and aux if they came from the environment. Better not make with -e.
11553 * Makefile (sysdirs, Sysnames): Put outside of ifndef sysdirs.
11555 * string/Makefile (tests): No testcopy, pending papers.
11557 * Makefile (headers): No sysdep.h.
11558 (distribute): Here instead.
11559 (no-install): No longer needed.
11561 Sat Feb 15 17:10:38 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11563 * Makefile (distribute): Add INSTALL.
11564 * Make-dist (INSTALL): Make from manual/maint.texinfo.
11565 (README): Make from README.template.
11567 * Makefile (+other-dirs): Removed inet.
11568 * sysdeps/unix/inet/Subdirs: Created, adding inet.
11570 * sysdeps/unix/sysv/setrlimit.c: Include stddef and errno.h.
11572 * math/drem.c, setjmp/longjmp.c, malloc/cfree.c, string/bcmp.c,
11573 time/getitmr.c, misc/ioctl.c: Fixed defuns in function_alias.
11575 * Makefile (headers): Put sysdep.h back.
11576 (no-install): And define this to it.
11577 * Makerules (+install): Filter out $(no-install) from the list.
11579 * string/testcopy.c: New test program for bcopy from tege.
11580 * string/Makefile (tests): Add it.
11582 * Makefile (sysdep-subdirs): Renamed to sysd-dirs.
11584 * Make-dist (tardir): Omit the release name; it made names too long.
11586 Sat Feb 15 12:53:02 1992 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu)
11588 * sysdeps/rs6000/memcopy.h (WORD_COPY_FWD, WORD_COPY_BWD):
11589 Use CTR register for looping (speed enhancement). Don't emit
11590 labels, jump relative from `$' instead (makes multiple expansions
11591 possible). Clean up indentation of asm code (were different in each
11593 * sysdeps/rs6000/memcopy.h (WORD_COPY_BWD):
11594 Add asm output specs (were missing completely).
11596 * sysdeps/generic/{memcpy.c,memmove.c}: Make DSTP and SRCP unsigned
11597 (safer with non-ANSI compilers).
11599 Fri Feb 14 01:52:12 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11603 * Makefile, Rules: Changed clean and clobber targets into
11604 mostlyclean, clean, and realclean.
11606 * Makeconfig: Added comments describing objdir/Makeconfig and
11607 editting Makeconfig.
11608 (prefix, libdir, INSTALL, INSTALL_DATA): New variables for installing.
11609 * Makerules (install): New target.
11610 * Makefile (+subdir_targets): Add subdir_install.
11611 (install): Depend on subdir_install.
11612 (install-lib): Define variable to install libc.a and crt0.o.
11613 * misc/Makefile (install-lib): Install bsd-compat.
11614 * malloc/Makefile (install-lib): Install mcheck-init.
11618 Thu Feb 13 21:39:31 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11620 * sysdeps/unix/glue-ctype.c: Moved to unix/bsd.
11621 * sysdeps/unix/Makefile: Moved glue-ctype stuff to unix/bsd/Makefile.
11622 * sysdeps/unix/Dist: No glue-ctype.
11623 * sysdeps/unix/bsd/Dist: Here instead.
11625 * sysdeps/sparc/divrem.m4: Don't use insn aliases Sun as doesn't grok.
11627 Wed Feb 12 12:12:12 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11629 * sysdeps/m68k/setjmp.c: Use m, rather than g, constraint when
11632 * Renamed oodles of files, changed all the relevant Makefiles (I
11633 think). File names now fit in 14 chars for losing System V. Gag me
11635 See =longnames for translations, and =shorten.el for method.
11637 * grp/initgroups.c: Removed redundant test.
11639 * malloc/mtrace.c: Use %p fmt for pointers.
11641 Tue Feb 11 02:04:39 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11643 * stdlib/alloca.h: New file.
11644 * stdlib/stdlib.h: Moved alloca decls there; #include <alloca.h>
11646 * stdlib/Makefile (headers): Added alloca.h.
11648 * stdio/getline.c (getsome): Fixed bugs.
11650 * math/bsd/common_source/mathimpl.h: #define expm1 __expm1.
11651 * math/bsd/common_source/expm1.c: Renamed to __expm1.c
11652 * math/bsd/mc68881/expm1.s: Renamed to __expm1.s; renamed fn too.
11653 * math/expm1.c: New file, fn alias expm1 -> __expm1.
11655 * math/Makefile (routines): Add __rint.
11656 * math/rint.c: New file, fn alias rint -> __rint.
11657 * math/bsd/common_source/floor.c (rint): Renamed to __rint.
11658 * sysdeps/generic/Makefile: Remove __rint, not rint.
11660 * math/Makefile (BSDmath-files): Always include it, and don't depend
11661 on undependable things.
11663 * Makerules (sysdep-Makefile): Always include it, and make it
11664 without depending on make vars that might not be right yet.
11666 Mon Feb 10 00:55:58 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11668 * stdlib/stdlib.h: #undef alloca before declaring it.
11670 * sysdeps/sparc/__longjmp.S: Use be instead of bz.
11672 * sysdeps/unix/bsd/Dist: Add bsdtty.h.
11674 * tzfile.c (__tzfile_read): Don't allocate space for 0 leaps.
11675 Don't loop infinitely.
11677 * sysdeps/unix/Makefile (make-errnos.c): Use tr to eat newlines in
11680 * sysdeps/unix/bsd/sun/sun4/__brk.S: Fix andn arg order.
11682 * posix/Makefile: Don't get getopt by vpath. Turns out to be too
11683 much hassle for dist. Just made symlinks in posix/ instead.
11685 * manual/Makefile: Renamed summary.out to summary.texinfo.
11687 * manual/summary.awk: New file, to make summary.out.
11688 Replaces `process-definitions.el'.
11689 * manual/Makefile (summary.out): Create using summary.awk.
11691 * manual/Makefile: Created.
11692 * Makefile, Make-dist: Use it to format and distribute the manual.
11694 Mon Feb 10 00:32:17 1992 Jim Meyering (meyering@churchy.gnu.ai.mit.edu)
11697 Whenever using shell redirection to create a target,
11698 do not create the target directly like this
11703 That loses when `process' fails (interrupt, disk full, ...)
11704 and bar exists and looks up-to-date, but isn't.
11705 This sort of failure is particularly insidious when
11706 the initial error message is obscured by lots of subsequent
11707 output (echoed commands etc).
11709 Instead use rules like this
11712 process $< > $@-tmp
11715 Using this paradigm, as long as process returns non-zero
11716 whenever it fails, the target won't be touched.
11718 Sun Feb 9 22:58:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11720 * posix/unistd.h (getopt): Fixed prototype.
11721 * sysdeps/generic/memset.c, stdio/vdprintf.c: Fixed DEFUNs.
11723 * Makerules (lib): Use $(RANLIB) for ranlib.
11724 * Makeconfig: Define it.
11726 * configure: Create config.status to set ARCH, if successful.
11727 * Makeconfig: include config.status ifndef ARCH.
11729 Thu Feb 6 20:57:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11731 * ansidecl.h (INCLUDE, STARTCOMMENT, ENDCOMMENT): New magic words.
11732 * sysdeps/m68k/68881/fl.h: Use new magic to snarf ieee754/fl.h during
11735 * sysdeps/ieee754/fl.h: New file, taken mostly from the old
11736 68881 file. HUGE_VAL redone to be machine independent.
11737 (NAN): New macro for an IEEE NaN, done like HUGE_VAL.
11738 * sysdeps/m68k/68881/fl.h: Now #includes ieee754/fl.h, and overrides
11739 FLT_ROUNDS for 68881 magic. NB: the #include is a prob. for install.
11741 Wed Jan 29 17:11:25 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11743 * sysdeps/posix/getcwd.c: Don't use chdir; use a long ../../../...
11746 Fri Jan 17 02:51:10 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11748 * posix/Makefile (headers): Added getopt.h.
11749 (routines): Added getopt1.
11750 Get getopt* from /home/gd/gnu/lib by vpath.
11752 * Makerules (+ansideclificate): Don't assume . is in PATH.
11754 Thu Jan 16 18:43:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11756 * posix/glob.c [sgi]: No alloca.h, after all.
11758 Wed Jan 15 14:17:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11760 * termios/termios.h: Reworked to be compatible with 4.4BSD.
11761 * termios/speed.c, sysdeps/unix/bsd/{__tcgetattr,tcsetattr}.c: Store
11762 speeds as their own values (B9600==9600, etc.) and translate to BSD
11763 values only for ioctl.
11764 * termios/cfsetpseed.c: New fn to set both speeds at once (from 4.4).
11766 Tue Jan 14 21:18:10 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11768 * sysdeps/unix/i386/__brk.S: __end, not ___end.
11769 Get the arg off the stack correctly.
11771 * sysdeps/unix/Makefile: Allow errnos like EL3HLT.
11773 * sysdeps/posix/{readv,writev}.c: Typos.
11775 * sysdeps/posix/__sigpause.c: Rewritten to know that sigset_t is a
11776 mask, and to pass a (sigset_t *) instead of sigset_t to sigsuspend.
11778 * sysdeps/i386/memset.c: Include <memcopy.h>.
11780 * sysdeps/generic/uname.c (uname): Save and restore errno if
11781 gethostname gets ENOSYS.
11783 * stdio/perror.c (perror): Check correctly for S == "".
11784 Check correctly for ERRNUM being in range.
11786 * find-sysdirs: Don't use fgrep -s, since USG apparently doesn't
11787 have that flag. Just >/dev/null instead.
11789 Mon Jan 13 17:00:15 1992 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu)
11791 * sysdeps/generic/wordcopy.c (all four functions): Move do0 label to
11792 the ultimate store statement at the end of each function. (Used to
11795 Tue Jan 7 18:40:18 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11797 * resource/sys/resource.h (struct rusage): Change `ru_outblock' to
11800 * sysdeps/generic/stpcpy.c: Fixed off-by-one bug.
11802 Thu Jan 2 15:19:01 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11804 * sysdeps/sparc/Dist: Add umul.S and mul.S.
11806 Tue Dec 31 15:33:39 1991 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11808 * signal/signal.h [__USE_GNU]: Add user-visible `sighandler_t' ==
11811 * termios/speed.c (speedtab): Made const.
11813 * posix/Makefile (routines): Add flock.
11815 Tue Dec 31 03:38:30 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu)
11817 * termios/speed.c: Accept and return speeds as actual baud rates.
11818 * termios/termios.h (B110, etc.): Define B110 as 110, etc.
11819 Likewise for _B110, etc.
11821 Thu Oct 24 16:19:49 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11823 * ansidecl: Put `M4OPTS=+quiet' in the environment make GNU m4 quiet.
11825 Sun Oct 20 19:31:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11827 * Make-dist (tardir): Define as `libc-RELEASE-VERSION', strings
11828 snarfed from version.c.
11829 ($(..)$(tardir)): Add rule to make as symlink to . (parent dir).
11830 [subdir] (dist), [parent] (dist.tar): Depend on that.
11831 [subdir] (tarsources), [parent] (+tsrcs): Add $(tardir)/ to files.
11833 * sysdeps/sparc/Makefile (distribute): Move data into Dist file.
11835 Fri Oct 18 15:27:58 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11837 * Makefile (subdirs): Add $(sysdep-subdirs), so sysdep makefiles can
11840 * posix/glob.c [sgi]: Use <sys/dir.h>.
11842 * stdio/fopen.c: If not appending, initialize the offset to 0.
11844 * sysdeps/generic/strcasecmp.c: Fixed losing braindead code.
11846 Tue Oct 8 15:27:54 1991 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11849 * This ChangeLog is lacking much information.
11850 * After this release, I hope to maintain the log well.
11852 Fri Jul 26 18:02:57 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11854 * stdio/Makefile (routines): Remove _cleanup.
11856 Thu Jul 25 23:12:45 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11858 * stdio/memstream.c (close_memstream): Removed.
11859 (trim_buffer): New fn to be io_funcs->__close for memstreams.
11860 (open_memstream): Take arg char **BUFLOC. Stuff it in
11861 stream->__fd, and store the location of the initial buffer in
11863 (enlarge_buffer): Keep *(char **) stream->__fd updated to be the
11864 location of the buffer.
11866 Tue Jul 23 14:11:29 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11868 * posix/glob.c: Don't #include <stddef.h> #ifdef sun.
11869 Is there anyone on the face of the planet other than me capable of
11870 implementing the ANSI C standard to spec????
11872 * posix/glob.c [DIRENT]: #include <sys/types.h> before <dirent.h>
11875 Mon Jul 22 17:06:24 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11877 * sysdeps/posix/make-stdio_limits.c: #include <posix1_limits.h>,
11878 not <posix_limits.h>.
11880 * README: Refer to COPYING.LIB, not COPYING.
11882 * config.libc: Renamed to `configure'.