1 Mon Mar 13 01:48:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3 * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
4 [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
6 Sun Mar 12 18:21:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
8 * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
9 * sysdeps/stub/pause.c: Likewise.
10 * sysdeps/stub/time.c: Likewise.
12 * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
13 locale data format is implemented.
14 * stdlib/wctomb.c: Likewise.
16 * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
18 * mach/errsystems.c: File removed.
20 * Makeconfig (libc.a): Variable removed.
21 (+link): Don't use it.
23 * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
26 * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
27 * malloc/realloc.c (_realloc_internal): Renamed from realloc;
28 don't use __realloc_hook.
29 (realloc): New function; call __realloc_hook ?: _realloc_internal.
30 * malloc/malloc.c (_malloc_internal): Renamed from malloc;
31 don't use __malloc_hook.
32 (malloc): New function; call __malloc_hook ?: _malloc_internal.
33 (initialize): Set up _heaplimit to cover the _heapinfo table.
34 (morecore_recursing): New static variable.
35 (morecore): If that is set, return null immediately.
36 When growing the info table, before getting new core from the
37 system for it, set morecore_recursing and try moving _heapinfo
38 with _realloc_internal. When that fails and we get new core, set
39 _heaplimit to cover the core for the new _heapinfo table.
40 (register_heapinfo): New function. Record the _heapinfo table's
41 own blocks in that table and in the statistics variables.
42 (initialize, _malloc_internal): Use it after allocating new table.
44 Fri Mar 10 22:26:28 1995 Jim Meyering (meyering@comco.com)
46 * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
48 [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
50 Fri Mar 10 13:31:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
52 * mach/errorlib.h (errors): Use const for decl.
54 * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
55 (decode): New inline function; decode signed 32-bit integers, and
56 sign-extend properly when long is longer than 32 bits.
57 (__tzfile_read): Changed all uses of uc2ul to decode.
58 Decode the transition times properly when sizeof (time_t) > 4.
60 * stdio/printf.h: Doc fixes. Don't #include <stddef.h>.
61 (printf_function): Make last arg ARGS a vector of pointers instead of a
64 Fri Mar 10 13:46:25 1995 Ulrich Drepper <drepper@ipd.info.uni-karlsruhe.de>
66 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
67 (buffered_vfprintf): Remove line buffer when flush failed.
69 Fri Mar 10 00:04:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
71 * time/tzfile.c (struct ttinfo): New member `isgmt'.
72 (__tzfile_read): Read isgmt flags for each type.
73 (__tzfile_default): When using TZDEFRULES DST rules, adjust
74 transition times according to the isstd and isgmt flags for the
75 types of each transition, and adjust each transition to point to
76 type index either 0 or 1. Reset type indices 0 and 1 to describe
79 Thu Mar 9 22:29:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
81 * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
82 into just CLASS. Add standard/optional flag to all items.
84 * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
86 * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
87 Rearrange defn to satisfy compiler.
89 * locale/localeinfo.h: Declare _nl_current.
91 * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB. Accept args
92 --enable-shared, --enable-profile, --enable-omitfp; pass settings
93 through to config.make.
94 * config.make.in (build-shared, build-profile, build-omitfp): New
97 * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
100 * locale/nl_langinfo.c: Include errno.h and stddef.h. Fix typos.
102 * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
104 * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
105 MAP_COPY to MAP_PRIVATE.
107 Thu Mar 9 17:16:53 1995 Brendan Kehoe (brendan@zen.org)
109 * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
110 that's used inside the alpha sysdep.h.
112 * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
114 * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
116 * configure.in: Match `osf*', not `osf1*'.
117 * configure: Likewise.
118 * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
120 Wed Mar 8 13:38:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
122 * posix/glob/configure.bat: Fixes from DJ.
124 * time/backward, time/europe, time/northamerica, time/pacificnew,
125 time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
126 time/ialloc.c: Code and data updated from ADO's 95b.
127 * time/emkdir.c: File removed.
128 * time/Makefile (distribute, extra-objs, zic): Omit it.
130 * time/localtime.c: Deansideclized. Never #define __tzname et al
133 * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
134 instead of short int *.
135 * ctype/ctype-info.c: Likewise.
136 * ctype/ctype.h: Likewise.
138 * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
139 of EB and EL versions.
141 Mon Mar 6 12:34:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
143 * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
144 (_IS* enum): Use _ISbit to produce values.
146 Sun Mar 5 19:40:13 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
148 * locale/localeinfo.h: Rewritten for new locale system, using
149 locale data files and with <langinfo.h> interface.
150 * locale/setlocale.c: Rewritten to use locale data files.
151 * langinfo.h: New file.
152 * locale/langinfo.h: New file.
153 * locale/nl_langinfo.c: New file.
154 * locale/loadlocale.c: New file.
155 * locale/lc-ctype.c: New file.
156 * locale/lc-messages.c: New file.
157 * locale/lc-monetary.c: New file.
158 * locale/lc-numeric.c: New file.
159 * locale/lc-time.c: New file.
160 * locale/categories.def: New file.
161 * locale/Makefile (headers): Remove localeinfo.h.
162 (distribute): New variable; put localeinfo.h here, and categories.def.
163 (routines): Add loadlocale.
164 (categories): New variable.
165 (aux): Use that to get C-category and lc-category.
166 * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
167 * ctype/ctype-info.c: For initial tables, use
168 _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
170 * locale/C-ctype.c, locale/C-messages.c: New files.
171 * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
172 Default "C" locale data updated for new locale system.
173 * locale/C-collate.c: File removed.
174 * locale/C-ctype_ct.c: File removed.
175 * locale/C-ctype_mb.c: File removed.
176 * locale/C-response.c: File removed.
177 * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
178 * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
179 stdlib/strtod.c, time/asctime.c, time/strftime.c:
180 Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
182 * time/localtime.c: Don't include <localeinfo.h>.
183 * time/tzset.c: Don't use locale items for default TZ value or
184 "GMT" string (use "UTC").
186 * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
187 WIDTH>0; update DONE.
189 * malloc/malloc.c (morecore): Fix last change to calculate by
190 blocks instead of bytes.
192 Fri Mar 3 12:24:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
194 * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
195 * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
196 * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
197 * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
198 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
199 * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
201 * sysdeps/unix/mman/munmap.S: Likewise.
202 * sysdeps/mach/munmap.c: Likewise.
203 * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
205 * sysdeps/unix/mman/mmap.S: Likewise.
206 * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
207 * sysdeps/stub/mmap.c: Likewise.
209 * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
211 * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
213 Thu Mar 2 12:15:24 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
215 * misc/search.h: Add missing semicolon.
217 * sysdeps/unix/dirfd.c: Fix typo.
219 * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
222 * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
225 Wed Mar 1 00:57:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
227 * stdlib/strtod.c: Fixes from drepper.
228 [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
229 * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
230 * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
232 * stdio/vfprintf.c: Correctly notice Z modifier.
234 * misc/search.h: New file.
235 * misc/Makefile (headers): Add search.h.
236 * misc/insremque.c: Include search.h.
237 (struct qelem): Type removed.
239 Mon Feb 27 07:00:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
241 * elf/libelf.h: New file.
242 * elf/elf_hash.c: New file.
244 Sun Feb 26 15:51:00 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
246 * malloc/malloc.c (morecore): Account in NEWSIZE for the
247 malloc_info structures for each new block.
249 Sat Feb 25 02:17:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
251 * sysdeps/mach/hurd/kill.c: When the process has no message port
252 registered and we have its task port, translate a few signals to
253 task_suspend/task_resume/task_terminate.
255 Fri Feb 24 14:40:48 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
257 * io/Makefile (routines): Add euidaccess.
258 * sysdeps/mach/hurd/euidaccess.c: New file.
259 * sysdeps/stub/euidaccess.c: New file.
260 * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
262 * dirent/Makefile (routines): Add dirfd.
263 * sysdeps/stub/dirfd.c: New file.
264 * sysdeps/unix/dirfd.c: New file.
265 * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
266 * dirent/dirent.h (dirfd): Declare new function. Define as macro
267 _DIR_dirfd if that is defined.
268 * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
270 * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
271 Open the file with `open'; set FD_CLOEXEC on the fd.
272 * sysdeps/mach/hurd/closedir.c: Likewise.
273 * sysdeps/mach/hurd/readdir.c: Likewise.
274 * sysdeps/mach/hurd/dirfd.c: New file.
276 * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
278 (glob/ChangeLog): Likewise.
280 * locale/locale.h (LC_*): Use small integers instead of bit masks.
282 * stdio/bug4.c: Put temporary files in /tmp.
283 * stdio/bug3.c: Likewise.
284 * stdio/bug5.c: Likewise.
285 * stdio/test-fseek.c: Likewise.
286 * stdio/test-popen.c: Likewise.
288 Wed Feb 22 00:44:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
290 * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
292 * libc-symbols.h (weak_symbol): New macro.
294 * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
295 elts with null handlers.
297 * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
299 Tue Feb 21 21:53:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
301 * stdlib/random.c (__srandom): Change algorithm used to populate
303 (randtbl): Recomputed with new algorithm.
305 * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
306 to original value of `crypt'.
307 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
308 (crypt): New variable, set to crypt.solar.
310 Tue Feb 21 11:50:37 1995 Brendan Kehoe (brendan@zen.org)
312 * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
314 * config.h.in: Put comment around ^L to pacify Solaris as here too.
316 Tue Feb 21 00:10:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
318 * string/Makefile (distribute): Add pagecopy.h.
319 * sysdeps/mach/pagecopy.h: New file.
320 * sysdeps/generic/pagecopy.h: New file.
321 * sysdeps/generic/memcpy.c: Include pagecopy.h; call
322 PAGE_COPY_FWD_MAYBE first when word aligned.
323 * sysdeps/generic/memmove.c: Likewise.
325 * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
326 (getpgrp): Call __getpgid instead of __getpgrp.
328 * Makefile (subdirs): Add elf first.
329 * elf/Makefile: New file.
330 * elf/elf.h: New file.
332 * sysdeps/unix/start.c (errno): Only define if it's not #define'd
334 [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
337 * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
339 (install-lib, extra-objs, generated-, omit-deps): Use that.
340 (initfini): New canned sequence, broken out of crt[in].s rule.
341 (crt[in].s rule): Use it.
342 (crt[in]_s.s): New rule.
343 * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
344 (_init, _fini): Use GLOBAL as storage class.
345 Add self reference to avoid GCC optimizing out the functions.
347 * Makefile (headers): Remove $(stddef.h).
348 * Makeconfig (stddef.h): Variable removed; now require gcc version
350 * stddef.h: File removed.
352 Mon Feb 20 19:42:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
354 * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
356 * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
358 * stdlib/strtod.c: Allow the string to start with a decimal point
359 without a leading zero.
361 Mon Feb 20 04:04:57 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
363 * Makefile (subdirs): Put csu first.
365 * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
367 * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
369 (csu-objpfx): New variable.
370 (+link): Use it to find start.o and $(+preinit), $(+postinit).
372 * Rules (subdir_lib, all): Depend on objs.
374 * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
376 * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
377 access to float.h macros.
379 * misc/efgcvt.c: New file.
380 * misc/Makefile (routines): Add efgcvt.
382 Sun Feb 19 20:10:43 1995 Brendan Kehoe <brendan@zen.org>
384 * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
385 * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
386 to avoid a misreference that would override sysdeps/generic/mul.c.
387 * sysdeps/sparc/Dist: Likewise.
389 Sun Feb 19 17:46:13 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
391 * posix/Makefile (aux): Add environ.
392 * posix/environ.c: New file.
393 * sysdeps/unix/sparc/start.c: Remove __environ definition.
394 * sysdeps/unix/start.c: Likewise.
395 * sysdeps/unix/sysv/irix4/start.c: Likewise.
396 * sysdeps/mach/hurd/start.c: Likewise.
397 * sysdeps/mach/start.c: Likewise.
398 * sysdeps/stub/start.c: Likewise.
400 * sysdeps/unix/make_errlist.c: In produced program, test
401 HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
402 * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
403 Remove extra weak alias.
405 * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
408 * libc-symbols.h: Put comment around ^L to pacify Solaris as.
410 * sysdeps/posix/Makefile (cded-objdir-includes): New variable
411 replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
413 (mk-stdiolim): Use it instead.
415 Fri Feb 17 12:16:27 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
417 * mach/mach_init.c (__vm_page_size): Make it initialized. It does
418 not work to make a weak alias to a bss symbol.
420 * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
421 (tests): Add test-fwrite.
422 * stdio/test-fwrite.c: New file.
424 * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
427 * Makefile (autoconf-it): New canned sequence. Do cvs commit if
428 there is a CVS directory.
429 (configure, %/configure): Use $(autoconf-it) for cmds.
430 * Make-dist: Likewise.
431 * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
432 if there is a CVS directory.
433 * sysdeps/sparc/Makefile (divrem output): Likewise.
434 * sysdeps/alpha/Makefile (divrem output): Likewise.
435 * Makerules ($(gpl2lgpl)): Likewise.
437 * Makerules (rule to install lib%.a from $(install-lib)): Fix
438 patsubst to elide ranlib for $(non-lib.a).
440 * stdio/tst-printf.c: Enable FP tests. Add some new tests from rfg.
442 Thu Feb 16 04:06:06 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
444 * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
445 * mach/mig-dealloc.c: Add weak alias mig_deallocate.
447 Wed Feb 15 13:34:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
449 * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
450 DEALLOC_REFPORT; deallocate the refport after use only if it
451 evaluates to nonzero.
452 * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
453 * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
455 * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
456 *STATE_CHANGE to indicate whether or not we changed *STATE and it
457 should be committed to the thread.
458 (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
459 state for a thread, do thread_set_state on that thread. Don't use
460 SS->intr_port for collecting reply ports, it is not safe to
461 clobber that when suspending; instead, alloca a temporary array.
462 (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
463 zero when dying, one when suspending. Pass new arg to abort_rpcs.
465 * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
466 HURD_FD_PORT_USE will. Don't use critical sections around
467 HURD_FD_PORT_USE invocations.
469 * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
470 * sysdeps/posix/stdio_init.c: Likewise.
472 Tue Feb 14 03:01:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
474 * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
475 locking; don't leave the descriptor locked on return.
476 (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
477 Use a critical section around locking the descriptor.
478 Check for an empty descriptor and return EBADF.
479 * sysdeps/mach/hurd/dup2.c: Likewise.
480 * sysdeps/mach/hurd/fcntl.c: Likewise.
481 Use HURD_FD_PORT_USE macro for RPCs.
482 * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
483 using HURD_FD_PORT_USE.
484 * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
485 to lock the descriptor.
486 * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
487 locking the descriptor.
488 * sysdeps/mach/hurd/fdopen.c: Likewise.
489 * hurd/fd-close.c: Likewise.
490 Don't expect the descriptor to be locked on entry.
491 Check for empty descriptor and return EBADF.
493 Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
494 new functions _hurd_ctty_input and _hurd_ctty_output, each
495 called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
496 * hurd/ctty-input.c: New file.
497 * hurd/ctty-output.c: New file.
498 * hurd/Makefile (dtable): Add ctty-input and ctty-output.
499 * hurd/fd-read.c: Use _hurd_ctty_input.
500 * hurd/fd-write.c: Use _hurd_ctty_output.
501 * sysdeps/mach/hurd/ioctl.c: Likewise.
502 * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
504 Mon Feb 13 11:36:12 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
506 * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
507 as appropriate to the type.
509 * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
511 (HUGE_VAL, __huge_val): Use it.
512 [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
513 analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
514 * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
515 (STRTOF): Set to __strtold; define strtold as weak alias.
516 * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
517 (STRTOF): Set to __strtof; define strtof as weak alias.
519 * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
520 (IEEE754_FLOAT_BIAS): New macro.
522 * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
524 * stdlib/testmb.c: Add tests from rfg for using normal chars as
527 * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
528 only the `defined but not used' warning, but also to avoid GCC
529 optimizing out the entire function (!).
531 * stdlib/wctomb.c: Include ctype.h.
533 * Makerules (install-lib-non.a): Don't include $(non-lib.a).
535 * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
537 Sat Feb 11 04:05:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
539 * stdio/printf_fp.c: Include "fpioconst.h".
540 (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
541 (__printf_fp): All references changed.
542 Don't bother computing THOUSANDS_SEP if GROUPING is empty.
543 (group_number): Use memmove instead of memcpy, since operands overlap.
544 * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
545 * stdio/fpioconst.h: New file, header declaring the table data.
546 * stdio/Makefile (aux): Add fpioconst.
547 (distribute): Add fpioconst.h.
548 * stdlib/strtod.c: Complete rewrite from drepper.
549 * stdlib/strtof.c: New file.
550 * stdlib/strtold.c: New file.
551 * stdlib/Makefile (routines): Add strtof, strtold.
552 * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
553 * sysdeps/stub/mpn2flt.c: New file.
554 * sysdeps/stub/mpn2dbl.c: New file.
555 * sysdeps/stub/mpn2ldbl.c: New file.
556 * sysdeps/ieee754/mpn2flt.c: New file.
557 * sysdeps/ieee754/mpn2dbl.c: New file.
558 * sysdeps/ieee754/mpn2ldbl.c: New file.
560 * Makerules (install-lib.a): Don't filter out $(non-lib.a).
561 ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
562 appears in $(non-lib.a).
564 Fri Feb 10 17:20:14 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
566 * stdlib/wctomb.c: A normal ASCII character translates to itself.
567 * stdlib/mbtowc.c: Likewise.
569 Thu Feb 9 03:55:55 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
571 * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
572 Remove `const' from prototypes.
573 * sysdeps/m68k/__longjmp.c: Likewise.
574 * setjmp/longjmp.c: Likewise.
575 * sysdeps/i386/__longjmp.c: Likewise.
577 * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
578 so when we return a name, it is incremented past the value that
579 produces that same name.
581 * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype. Sigh.
582 * stdio/stdio.h (fgets): Likewise.
584 * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
586 * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
587 when it's EBACKGROUND; we need to notice that it is EBACKGROUND
589 * hurd/fd-read.c: Likewise.
591 Wed Feb 8 05:01:11 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
593 * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
594 <mach/mig_support.h>.
595 * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
596 * assert/assert.c: Likewise.
597 * sysdeps/posix/libc_fatal.c: Likewise.
599 Tue Feb 7 12:17:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
601 * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
602 as macros, to satisfy ANSI pedants.
604 * stdio/internals.c (flushbuf): When there is no new data after
605 priming the stream, return without writing out the buffer.
606 * stdio/Makefile (tests): Add bug7.
607 * stdio/bug7.c: New file.
609 * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
610 S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
613 * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
615 * stdio/Makefile (tests): Add errnobug.
616 * stdio/errnobug.c: New file.
618 * mach/mig_strncpy.c: Include string.h.
620 * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>. Its
621 inlines cause trouble for files defining global register variables.
623 * stdio/vfprintf.c: Use _strerror_internal for %m.
625 * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
627 * stdio/printf.h (struct printf_info): New member `group', for %' flag.
628 * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
629 * stdio/vfprintf.c (group_number): New function.
630 (vfprintf): Support %' flag for integer formats, by calling
631 group_number after formatting the number in WORK.
632 * stdio/printf_fp.c (guess_grouping, group_number): New functions.
633 (__printf_fp): Implement `group' flag using them.
635 * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
636 (parent-clean): Remove sysd-rules, not sysdirs.
637 (distclean): Pass avoid-generated=yes to submake.
638 (distclean-1): Remove $(sysdep-$(distclean-1)).
640 * Makerules (objects, objs): Depend on $(extra-objs) too.
641 (include sysd-Makefile): Protect with ifndef avoid-generated.
643 * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
644 (CPPFLAGS): Use $(defines) in place of $(+defines).
645 Replace -D_LIBC with -include $(..)libc-symbols.h.
647 * stdio/freopen.c: Set seen bit before calling fclose.
649 Mon Feb 6 18:34:40 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
651 * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
652 successes and each kind of failure. Return EPERM or EACCES only
653 if every task failed that way.
655 * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
658 * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
659 or resume the process after frobbing.
661 * hurd/hurdsig.c: Use spin lock operations on sigstate locks
663 (_hurd_thread_sigstate): Don't lock the sigstate lock.
664 (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
665 repeated sequences with calls to it. Don't expect the sigstate
666 lock to be held on entry; lock it just before examining sigaction.
667 In handler case, check SS->critical_section after calling
668 abort_rpcs; if set, mark the signal pending and resume the thread.
669 * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
670 (_hurd_self_sigstate): Don't lock the sigstate lock.
671 (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
672 _hurd_self_sigstate_unlocked.
673 * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
675 * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
676 Don't expect _hurd_self_sigstate to lock it. Fix critical section
678 * hurd/hurd-raise.c: Likewise.
679 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
680 * sysdeps/mach/hurd/sigpending.c: Likewise.
681 * sysdeps/mach/hurd/sigaltstack.c: Likewise.
682 * sysdeps/mach/hurd/sigaction.c: Likewise.
683 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
684 * hurd/fd-write.c: Likewise.
685 * hurd/fd-read.c: Likewise.
686 * sysdeps/mach/hurd/ioctl.c: Likewise.
687 * sysdeps/mach/hurd/fork.c: Likewise.
688 * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
689 * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.
690 * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
691 * hurd/hurdmsg.c (get_int): Likewise.
693 * stdio/vfprintf.c: Include stddef.h. Fix typos in libio code.
695 * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
697 (PAD): Caller changed.
698 * stdio/printf_fp.c (__pad): Function removed.
699 (PAD): Use __printf_pad instead.
701 Sun Feb 5 17:59:53 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
703 Merged new FP printer by Ulrich Drepper.
704 * stdio/printf_fp.c: Rewrite by drepper.
705 * stdio/Makefile (routines): Add ldbl2mpn.
706 * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
708 (union ieee854_long_double): New type, from drepper.
709 (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
710 * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
711 * sysdeps/stub/ldbl2mpn.c: New file.
712 * math/Makefile (routines): Add isinfl and isnanl.
713 * sysdeps/ieee754/isinfl.c: New file.
714 * sysdeps/stub/isinfl.c: New file.
715 * sysdeps/ieee754/isnanl.c: New file.
716 * sysdeps/stub/isnanl.c: New file.
718 * malloc/malloc.c (__malloc_extra_blocks): New variable.
719 (malloc): When getting more core, get __malloc_extra_blocks extra;
720 put the new block at the end of the free list and let the next loop
721 iteration use the initial portion of it.
722 * malloc/free.c (_free_internal): Account for twice
723 __malloc_extra_blocks in deciding if we have so much extra memory
724 we should return it to the system.
725 * malloc/malloc.h (__malloc_extra_blocks): Declare it.
726 * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
727 const in parameter decl.
729 * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
731 Fri Feb 3 18:15:52 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
733 * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
735 * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
736 * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
737 * sysdeps/mips/bsd-setjmp.S: Likewise.
738 * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
739 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
740 Use `long int' for sigcode. Use explicit register numbers instead
742 (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
743 * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
745 Thu Feb 2 20:06:45 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
747 * hurd/hurdmalloc.c: Remove bogus bcopy decl.
749 * mach/mig_strncpy.c: Add missing `const' in prototype. Rewritten
752 * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
754 * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
756 Tue Jan 31 13:49:57 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
758 * mach/mig_strncpy.c: Include mach.h instead of string.h. Use
759 vm_size_t instead of size_t for arg and return types.
761 * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
764 Mon Jan 30 00:33:35 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
766 * set-hooks.h (RUN_HOOK): Dereference PTR properly.
768 * configure.in (friendly stddef.h check): Write override defn for
769 `stddef.h' Make variable.
770 (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
772 * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
774 * Rules ($(objpfx)dummy.o): Write an empty function, not just an
777 * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
779 Sat Jan 28 03:38:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
781 * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
783 * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
784 mach/machine/syscall_sw.h with this.
786 Fri Jan 27 18:33:20 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
788 * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
789 instead of <lock-intern.h>.
790 (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
791 (_hurd_critical_section_lock): Use spin lock operators.
792 Don't hold the sigstate lock, unlock it after setting the flag.
793 (_hurd_critical_section_unlock): Take the sigstate lock
794 to clear the flag; while holding it, check pending signals. After
795 unlocking, sig_post ourselves if there were pending signals.
797 * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
798 sigstate lock. If it is locked, clear SS->critical_section and
799 SS->context, and unlock it.
801 * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
803 * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
804 * munch-tmpl.c: Likewise.
806 * mach/Makefile (routines): Don't filter out syscall_% from
809 Fri Jan 27 17:53:49 1995 Jim Meyering (meyering@comco.com)
811 * posix/fnmatch.c: Declare errno if it's not defined.
812 That's simpler than testing #if !defined(__GNU_LIBRARY__)
813 && !defined(STDC_HEADERS).
815 Fri Jan 27 15:40:29 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
817 * csu/Makefile: New file.
818 * csu/initfini.c: New file.
819 * Makefile (+other_dirs): Add csu.
820 (+init): Variable renamed to libc-init. All references changed.
822 (install-lib): Variable removed.
823 (crt0.o, Mcrt1.o crt1.o): Targets removed.
825 * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
826 and $(objpfx)config.h.
827 (static deps of RPC alias *.o): Removed.
829 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
830 Protect macros with this.
831 * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
832 * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
833 * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
834 * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
835 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
836 * sysdeps/unix/mips/sysdep.h: Likewise.
838 Thu Jan 26 00:02:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
840 * Makerules (compile.[Sc]): Match gcc in $(CC) better.
841 (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
843 * hurd/intr-rpc.awk: Emit weak alias.
845 * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
848 * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
850 * sysdeps/unix/i386/sysdep.h: Likewise.
851 * sysdeps/unix/sparc/sysdep.h: Likewise.
853 * io/ftw.c: Avoid `ret' as variable name.
854 * posix/glob.c: Likewise.
856 * ctype/ctype.h (_ISalpha): Define as its own bit.
857 * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
859 * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
860 DEFINE_HOOK with this.
862 Wed Jan 25 00:45:56 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
864 * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
865 * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
866 * mach/shortcut.awk: Emit weak alias.
867 * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
868 * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
870 * mach/Makefile (lock): Remove spin-syms.
871 (routines): Remove __ names, vm_page_size, msgserver_t.
872 ($(mach-syscalls) rule): Generate files without __, add weak alias.
873 Remove symbol alias file rule.
874 ($(mach-shortcuts) rule): Likewise.
875 [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
876 * mach/Machrules (if-calls.c): Variable and rule removed.
877 (interface-headers): Don't add $($(if)-calls).
878 (transform-user-stub): Define to add weak alias.
879 * set-hooks.h: Use new libc-symbols.h set access macros.
880 * time/Makefile (routines): Remove __ names.
881 (aux): Variable removed.
882 * hurd/Makefile: Likewise.
883 * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
884 (data_start): Define as weak alias for __data_start.
885 * sysdeps/mach/hurd/start.c: Likewise.
886 * sysdeps/unix/sparc/start.c: Likewise.
887 * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
889 * sysdeps/mach/hurd/errlist.awk: Likewise.
890 * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
892 * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
893 * sysdeps/stub/setdomain.c: Use new stub_warning macro.
894 * sysdeps/stub/getdomain.c: Likewise.
895 * sysdeps/stub/vhangup.c: Likewise.
896 * sysdeps/stub/swapon.c: Likewise.
897 * sysdeps/stub/sendmsg.c: Likewise.
898 * sysdeps/stub/recvmsg.c: Likewise.
899 * sysdeps/stub/acct.c: Likewise.
900 * sysdeps/stub/isinf.c: Likewise. Add weak alias isinf for __isinf.
901 * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
902 * sysdeps/posix/libc_fatal.c: Likewise.
903 * sysdeps/i386/abort.c: Likewise.
904 * sysdeps/i386/__longjmp.c: Likewise.
905 * sysdeps/generic/make_siglist.c: Emit defn always for
906 _sys_siglist. Emit weak alias to sys_siglist.
907 * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
908 * sysdeps/ieee754/log10.c: Likewise.
909 * time/difftime.c: Likewise.
910 * stdlib/random.c (srand): Define as weak alias for __srandom.
911 * stdlib/exit.c: Remove obsolete __NORETURN keyword. Use set-hooks
912 macros for __libc_atexit.
913 * stdlib/Makefile (routines): Remove __random, srand.
914 * stdio/gets.c: Use new link_warning macro instead of old
916 * stdio/Makefile (routines): Remove __ names.
917 (aux): Remove syms-stdio.
918 * socket/Makefile (routines): Added e on getpeernam and getsocknam.
919 * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
920 * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
921 * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
922 * stdio/stdio.h: Likewise.
923 * misc/Makefile (routines): Remove __ names.
924 (aux): Remove data_start.
925 * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
926 * sysdeps/mach/hurd/brk.c: Likewise.
927 * hurd/hurdid.c: Likewise.
928 * hurd/hurdpid.c: Likewise.
929 * hurd/openport.c: Likewise.
930 * hurd/hurdsock.c: Likewise.
931 * hurd/hurdsig.c: Likewise.
932 * hurd/hurdrlimit.c: Likewise.
933 * hurd/hurdmalloc.c: Likewise.
934 * hurd/dtable.c: Likewise.
935 * hurd/setauth.c: Likewise.
936 * misc/progname.c: Likewise.
937 * misc/init-misc.c: Likewise.
938 * sysdeps/generic/vfork.c: Likewise.
939 * sysdeps/unix/bsd/init-posix.c: Likewise.
940 * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
941 * time/time.h: Likewise.
942 * math/Makefile (routines): Remove __ names.
943 * io/Makefile: Likewise.
944 * termios/Makefile: Likewise.
945 * resource/Makefile: Likewise.
946 * signal/Makefile: Likewise.
947 * dirent/Makefile: Likewise.
948 * assert/assert.h: Replace __NORETURN keyword with __attribute__
949 uses. Functions return void and macros deal with this.
950 * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
951 Return void. Don't include gnu-stabs.h.
952 * assert/assert.c: Likewise.
953 * posix/Makefile (routines): Remove __ names, setpgrp. Add
955 (aux): Remove environ.
956 * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
958 * posix/unistd.h (_exit): Likewise.
959 (__getpgrp, __setpgrp): Declarations removed.
960 (__getpgid, getpid): Declare these.
962 * configure.in (host_os=gnuelf|linuxelf): Set elf=yes. Do AC_SUBST
963 for gnu_ld, gnu_as, elf, and weak. Call AC_LINK_FILEES on
964 $libc_link_{sources,dests}.
965 * sysdeps/unix/configure.in: Remove __ from file names. Don't
966 create files, just add to libc_link_{dests,sources}.
968 * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
970 * config.h.in: Add #undefs used by sysdeps configures.
972 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
973 __setpgid, __getpgid.
974 * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
976 * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
978 * sysdeps/unix/bsd/getpgrp.c: File removed.
979 * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
980 Call __getpgid with zero.
981 * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
982 weak aliases setpgid and setpgrp.
983 * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
984 * sysdeps/unix/common/setpgid.S: Likewise.
985 * sysdeps/mach/hurd/setpgid.c: Likewise.
986 * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
987 Use subcall 5 to __pgrpsys.
988 * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
990 * sysdeps/mach/hurd/getpgid.c: Likewise.
991 * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
992 * sysdeps/unix/common/getpgid.S: Likewise.
993 * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
994 Use subcall 4 to __pgrpsys.
995 * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
996 * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
997 * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
998 * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
999 * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
1000 * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
1001 * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
1002 * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
1003 * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
1004 * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
1005 * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
1006 * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
1008 * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
1011 * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
1012 * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
1014 * sysdeps/stub/fexecve.c: Likewise.
1015 * sysdeps/stub/fchdir.c: Likewise.
1016 * sysdeps/stub/fchflags.c: Likewise.
1017 * sysdeps/stub/chflags.c: Likewise.
1019 * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
1020 * sysdeps/generic/abort.c: Likewise.
1021 * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
1023 * hurd/hurdioctl.c: Include hurd/ioctl.h.
1024 (_hurd_ioctl_handler_lists): Define this set.
1025 (_hurd_lookup_ioctl_handler): New function.
1026 * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
1027 * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
1028 (_hurd_lookup_ioctl_handler): Declare it.
1029 (ioctl_handler_t): New typedef. Use it throughout.
1030 * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
1031 (_hurd_ioctl_handler_lists): Don't define.
1032 (__ioctl): Call _hurd_lookup_ioctl_handler.
1034 * stdlib/strtol.c (maxquad): Make this const.
1035 [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
1037 * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
1040 * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
1041 __msg_sig_post_request, not __sig_post_request.
1043 * misc/getusersh.c: Renamed to getusershell.c.
1044 * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
1045 * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
1046 * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
1047 * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
1049 Tue Jan 24 00:14:30 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1051 * sysdeps/stub/settod.c: Renamed to settimeofday.c.
1052 * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
1053 * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
1054 * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
1055 * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
1056 * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
1057 * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
1058 * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
1059 * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
1060 * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
1061 * sysdeps/stub/getprio.c: Renamed to getpriority.c.
1062 * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
1063 * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
1064 * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
1065 * sysdeps/stub/setprio.c: Renamed to setpriority.c.
1066 * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
1067 * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
1068 * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
1069 * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
1070 * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
1071 * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
1072 * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
1073 * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
1074 * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
1075 * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
1076 * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
1077 * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
1078 * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
1079 * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
1080 * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
1082 * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
1084 * sysdeps/mach/hurd/sigsuspend.c: Likewise.
1085 * sysdeps/mach/hurd/kill.c: Likewise.
1086 * sysdeps/mach/hurd/sigprocmask.c: Likewise.
1088 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
1089 [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
1091 * sysdeps/stub/remove.c: New file.
1092 * sysdeps/posix/remove.c: New file.
1094 Mon Jan 23 03:26:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1096 * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
1098 * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
1100 * mach/msg-destroy.c: Renamed from __msg_dest.c.
1101 (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
1102 * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
1103 * time/tzset.c (tzname, daylight, timezone): Define as weak
1104 aliases for __ names.
1105 * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
1106 * hurd/hurdlookup.c: Add weak aliases for non-__ names.
1107 * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
1110 Sun Jan 22 15:19:51 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1112 * string/Makefile (routines): Remove __ names, index, rindex, and
1114 * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
1116 * sysdeps/generic/strchr.c: Likewise.
1117 * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
1119 * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
1122 * malloc/free.c (cfree): Define this function, with weak_alias if
1123 available, otherwise a C function.
1124 * malloc/Makefile (gmalloc-routines): Remove cfree.
1126 Sat Jan 21 08:08:58 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1128 * stdio/fseek.c: Do move bufp by O when that puts it exactly at
1129 get_limit. This has the effect of no-op'ing properly for zero.
1131 * configure.in: Add AC_CONFIG_HEADER(config.h).
1132 (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
1133 * config.h.in: New file.
1135 * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
1136 All code converted to use weak symbols, defined in the files which
1137 define the real code (with the __ names, the non-__ names are weak).
1138 All old symbol alias files removed.
1139 Many files renamed to remove __ prefix since there is now just
1140 the one file for both the __ and non-__ name for each function.
1141 * libc-symbols.h: New file.
1142 * set-hooks.h: Use libc-symbols.h macros for accessing symbol
1144 * gnu-stabs.h: Prepend #error this file is obsolete.
1145 * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
1146 * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
1148 * sysdeps/unix/common/__access.S: Likewise.
1149 * sysdeps/mach/hurd/__access.c: Likewise.
1150 * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
1152 * sysdeps/unix/common/__adjtime.S: Likewise.
1153 * sysdeps/mach/__adjtime.c: Likewise.
1154 * sysdeps/mach/hurd/__adjtime.c: Likewise.
1155 * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
1156 * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
1157 * sysdeps/unix/bsd/vax/__brk.S: Likewise.
1158 * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
1159 * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
1160 * sysdeps/unix/i386/__brk.S: Likewise.
1161 * sysdeps/unix/sparc/__brk.S: Likewise.
1162 * sysdeps/unix/mips/__brk.S: Likewise.
1163 * sysdeps/mach/hurd/__brk.c: Likewise.
1164 * sysdeps/standalone/__brk.c: Likewise.
1165 * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
1166 * sysdeps/unix/__chdir.S: Likewise.
1167 * sysdeps/mach/hurd/__chdir.c: Likewise.
1168 * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
1169 * sysdeps/unix/__chmod.S: Likewise.
1170 * sysdeps/mach/hurd/__chmod.c: Likewise.
1171 * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
1172 * sysdeps/unix/__chown.S: Likewise.
1173 * sysdeps/mach/hurd/__chown.c: Likewise.
1174 * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
1175 * sysdeps/unix/__close.S: Likewise.
1176 * sysdeps/mach/hurd/__close.c: Likewise.
1177 * sysdeps/standalone/__close.c: Likewise.
1178 * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
1180 * sysdeps/ieee754/__copysign.c: Likewise.
1181 * sysdeps/alpha/__copysign.c: Likewise.
1182 * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
1183 * sysdeps/m68k/fpu/__drem.c: Likewise.
1184 * sysdeps/stub/__drem.c: Likewise.
1185 * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
1186 * sysdeps/stub/__dup.c: Likewise.
1187 * sysdeps/unix/__dup.S: Likewise.
1188 * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
1189 * sysdeps/stub/__dup2.c: Likewise.
1190 * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
1191 * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
1192 * sysdeps/unix/common/__dup2.S: Likewise.
1193 * sysdeps/mach/hurd/__dup2.c: Likewise.
1194 * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
1196 * sysdeps/unix/__execve.S: Likewise.
1197 * sysdeps/mach/hurd/__execve.c: Likewise.
1198 * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
1200 * sysdeps/m68k/fpu/__expm1.c: Likewise.
1201 * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
1203 * sysdeps/unix/common/__fchmod.S: Likewise.
1204 * sysdeps/mach/hurd/__fchmod.c: Likewise.
1205 * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
1207 * sysdeps/unix/common/__fchown.S: Likewise.
1208 * sysdeps/mach/hurd/__fchown.c: Likewise.
1209 * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
1210 * sysdeps/unix/__fcntl.S: Likewise.
1211 * sysdeps/mach/hurd/__fcntl.c: Likewise.
1212 * math/__finite.c: Renamed to finite.c; added weak alias finite.
1213 * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
1214 * sysdeps/stub/__flock.c: Likewise.
1215 * sysdeps/unix/bsd/__flock.S: Likewise.
1216 * sysdeps/mach/hurd/__flock.c: Likewise.
1217 * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
1219 * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
1220 * sysdeps/unix/__fork.S: Likewise.
1221 * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
1222 * sysdeps/unix/i386/__fork.S: Likewise.
1223 * sysdeps/unix/sparc/__fork.S: Likewise.
1224 * sysdeps/unix/mips/__fork.S: Likewise.
1225 * sysdeps/mach/hurd/__fork.c: Likewise.
1226 * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
1228 * sysdeps/stub/__fpathcon.c: Likewise.
1229 * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
1230 * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
1231 * sysdeps/unix/__fstat.S: Likewise.
1232 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
1233 * sysdeps/mach/hurd/__fstat.c: Likewise.
1234 * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
1236 * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
1238 * sysdeps/unix/__getdents.c: Likewise.
1239 * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
1240 * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
1241 * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
1242 * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
1243 * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
1244 * sysdeps/unix/sysv/__getdents.c: Likewise.
1245 * sysdeps/mach/hurd/__getdents.c: Likewise.
1246 * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
1247 * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
1248 alias getdtablesize.
1249 * sysdeps/stub/__getdtsz.c: Likewise.
1250 * sysdeps/unix/bsd/__getdtsz.S: Likewise.
1251 * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
1252 * sysdeps/mach/hurd/__getdtsz.c: Likewise.
1253 * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
1255 * sysdeps/unix/__getegid.S: Likewise.
1256 * sysdeps/mach/hurd/__getegid.c: Likewise.
1257 * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
1259 * sysdeps/unix/__geteuid.S: Likewise.
1260 * sysdeps/mach/hurd/__geteuid.c: Likewise.
1261 * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
1263 * sysdeps/unix/__getgid.S: Likewise.
1264 * sysdeps/mach/hurd/__getgid.c: Likewise.
1265 * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
1267 * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
1268 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
1269 * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
1270 * sysdeps/unix/common/__getgrps.S: Likewise.
1271 * sysdeps/mach/hurd/__getgrps.c: Likewise.
1272 * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
1274 * sysdeps/unix/inet/__gethstnm.S: Likewise.
1275 * sysdeps/unix/sysv/__gethstnm.c: Likewise.
1276 * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
1277 * sysdeps/mach/hurd/__gethstnm.c: Likewise.
1278 * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
1280 * sysdeps/unix/common/__getitmr.S: Likewise.
1281 * sysdeps/mach/hurd/__getitmr.c: Likewise.
1282 * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
1283 * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
1285 * sysdeps/stub/__getpgsz.c: Likewise.
1286 * sysdeps/unix/__getpgsz.c: Likewise.
1287 * sysdeps/unix/bsd/__getpgsz.S: Likewise.
1288 * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
1289 * sysdeps/mach/__getpgsz.c: Likewise.
1290 * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
1292 * sysdeps/unix/__getpid.S: Likewise.
1293 * sysdeps/mach/hurd/__getpid.c: Likewise.
1294 * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
1296 * sysdeps/unix/__getppid.S: Likewise.
1297 * sysdeps/mach/hurd/__getppid.c: Likewise.
1298 * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
1300 * sysdeps/stub/__gettod.c: Likewise.
1301 * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
1302 * sysdeps/unix/common/__gettod.S: Likewise.
1303 * sysdeps/mach/__gettod.c: Likewise.
1304 * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
1306 * sysdeps/unix/__getuid.S: Likewise.
1307 * sysdeps/mach/hurd/__getuid.c: Likewise.
1308 * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
1310 * sysdeps/ieee754/__infnan.c: Likewise.
1311 * sysdeps/vax/__infnan.c: Likewise.
1312 * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
1313 * sysdeps/unix/__ioctl.S: Likewise.
1314 * sysdeps/mach/hurd/__ioctl.c: Likewise.
1315 * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
1317 * sysdeps/stub/__isatty.c: Likewise.
1318 * sysdeps/unix/bsd/__isatty.c: Likewise.
1319 * sysdeps/mach/hurd/__isatty.c: Likewise.
1320 * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
1322 * sysdeps/m68k/fpu/__isinf.c: Likewise.
1323 * sysdeps/stub/__isinf.c: Likewise.
1324 * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
1326 * sysdeps/ieee754/__isnan.c: Likewise.
1327 * sysdeps/m68k/fpu/__isnan.c: Likewise.
1328 * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
1329 * sysdeps/unix/__kill.S: Likewise.
1330 * sysdeps/mach/hurd/__kill.c: Likewise.
1331 * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
1332 * sysdeps/unix/__link.S: Likewise.
1333 * sysdeps/mach/hurd/__link.c: Likewise.
1334 * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
1335 * sysdeps/m68k/fpu/__logb.c: Likewise.
1336 * sysdeps/stub/__logb.c: Likewise.
1337 * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
1338 * sysdeps/unix/__lseek.S: Likewise.
1339 * sysdeps/mach/hurd/__lseek.c: Likewise.
1340 * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
1342 * sysdeps/stub/__lstat.c: Likewise.
1343 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
1344 * sysdeps/unix/common/__lstat.S: Likewise.
1345 * sysdeps/mach/hurd/__lstat.c: Likewise.
1346 * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
1348 * sysdeps/vax/__memccpy.c: Likewise.
1349 * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
1350 * sysdeps/unix/sysv/__mkdir.c: Likewise.
1351 * sysdeps/unix/common/__mkdir.S: Likewise.
1352 * sysdeps/mach/hurd/__mkdir.c: Likewise.
1353 * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
1354 * sysdeps/unix/__mknod.S: Likewise.
1355 * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
1356 * sysdeps/mach/hurd/__mknod.c: Likewise.
1357 * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
1358 * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
1360 * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
1361 * sysdeps/unix/__open.S: Likewise.
1362 * sysdeps/mach/hurd/__open.c: Likewise.
1363 * sysdeps/standalone/__open.c: Likewise.
1364 * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
1366 * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
1367 * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
1368 * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
1369 * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
1370 * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
1371 * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
1372 * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
1373 * sysdeps/unix/i386/__pipe.S: Likewise.
1374 * sysdeps/unix/sparc/__pipe.S: Likewise.
1375 * sysdeps/unix/mips/__pipe.S: Likewise.
1376 * sysdeps/mach/hurd/__pipe.c: Likewise.
1377 * stdlib/__random.c: Renamed to random.c; added weak alias random.
1378 * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
1379 * sysdeps/unix/__read.S: Likewise.
1380 * sysdeps/mach/hurd/__read.c: Likewise.
1381 * sysdeps/standalone/__read.c: Likewise.
1382 * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
1384 * sysdeps/unix/common/__readlink.S: Likewise.
1385 * sysdeps/mach/hurd/__readlink.c: Likewise.
1386 * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
1387 * sysdeps/m68k/fpu/__rint.c: Likewise.
1388 * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
1389 * sysdeps/unix/sysv/__rmdir.c: Likewise.
1390 * sysdeps/unix/common/__rmdir.S: Likewise.
1391 * sysdeps/mach/hurd/__rmdir.c: Likewise.
1392 * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
1393 * sysdeps/stub/__sbrk.c: Likewise.
1394 * sysdeps/mach/hurd/__sbrk.c: Likewise.
1395 * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
1396 * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
1398 * sysdeps/unix/common/__select.S: Likewise.
1399 * sysdeps/mach/hurd/__select.c: Likewise.
1400 * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
1401 * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
1403 * sysdeps/unix/__setgid.S: Likewise.
1404 * sysdeps/unix/bsd/__setgid.c: Likewise.
1405 * sysdeps/mach/hurd/__setgid.c: Likewise.
1406 * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
1408 * sysdeps/unix/common/__setitmr.S: Likewise.
1409 * sysdeps/mach/hurd/__setitmr.c: Likewise.
1410 * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
1412 * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
1413 * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
1414 * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
1415 * sysdeps/unix/common/__setpgrp.S: Likewise.
1416 * sysdeps/mach/hurd/__setpgrp.c: Likewise.
1417 * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
1419 * sysdeps/unix/common/__setregid.S: Likewise.
1420 * sysdeps/mach/hurd/__setregid.c: Likewise.
1421 * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
1423 * sysdeps/unix/common/__setreuid.S: Likewise.
1424 * sysdeps/mach/hurd/__setreuid.c: Likewise.
1425 * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
1427 * sysdeps/unix/bsd/__setsid.c: Likewise.
1428 * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
1429 * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
1430 * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
1431 * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
1432 * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
1433 * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
1434 * sysdeps/mach/hurd/__setsid.c: Likewise.
1435 * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
1437 * sysdeps/unix/bsd/__settod.S: Likewise.
1438 * sysdeps/unix/sysv/__settod.c: Likewise.
1439 * sysdeps/mach/hurd/__settod.c: Likewise.
1440 * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
1442 * sysdeps/unix/__setuid.S: Likewise.
1443 * sysdeps/unix/bsd/__setuid.c: Likewise.
1444 * sysdeps/mach/hurd/__setuid.c: Likewise.
1445 * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
1447 * sysdeps/stub/__sigblock.c: Likewise.
1448 * sysdeps/unix/bsd/__sigblock.S: Likewise.
1449 * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
1450 * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
1451 * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
1453 * sysdeps/stub/__sigpause.c: Likewise.
1454 * sysdeps/unix/bsd/__sigpause.S: Likewise.
1455 * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
1456 * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
1458 * sysdeps/unix/bsd/__sigproc.c: Likewise.
1459 * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
1460 * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
1461 * sysdeps/mach/hurd/__sigproc.c: Likewise.
1462 * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
1464 * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
1465 * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
1466 * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
1467 * sysdeps/unix/i386/__sigret.S: Likewise.
1468 * sysdeps/unix/mips/__sigret.S: Likewise.
1469 * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
1470 * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
1471 * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
1472 * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
1474 * sysdeps/stub/__sigvec.c: Likewise.
1475 * sysdeps/unix/bsd/__sigvec.S: Likewise.
1476 * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
1477 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
1478 * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
1479 * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
1480 * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
1481 * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
1482 * sysdeps/unix/__stat.S: Likewise.
1483 * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
1484 * sysdeps/mach/hurd/__stat.c: Likewise.
1485 * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
1487 * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
1489 * sysdeps/unix/common/__symlink.S: Likewise.
1490 * sysdeps/mach/hurd/__symlink.c: Likewise.
1491 * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
1493 * sysdeps/stub/__sysconf.c: Likewise.
1494 * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
1495 * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
1496 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
1497 * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
1498 * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
1499 * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
1500 * sysdeps/unix/bsd/__times.c: Likewise.
1501 * sysdeps/unix/sysv/__times.S: Likewise.
1502 * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
1503 * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
1504 * sysdeps/unix/__umask.S: Likewise.
1505 * sysdeps/mach/hurd/__umask.c: Likewise.
1506 * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
1508 * sysdeps/unix/__unlink.S: Likewise.
1509 * sysdeps/mach/hurd/__unlink.c: Likewise.
1510 * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
1512 * sysdeps/unix/bsd/__utimes.S: Likewise.
1513 * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
1514 * sysdeps/mach/hurd/__utimes.c: Likewise.
1515 * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
1517 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
1518 * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
1519 * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
1520 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
1521 * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
1522 * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
1523 * sysdeps/unix/sparc/__vfork.S: Likewise.
1524 * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
1525 * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
1526 * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
1527 * sysdeps/stub/__wait.c: Likewise.
1528 * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
1529 * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
1530 * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
1531 * sysdeps/unix/bsd/vax/__wait.S: Likewise.
1532 * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
1533 * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
1534 * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
1535 * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
1536 * sysdeps/unix/i386/__wait.S: Likewise.
1537 * sysdeps/unix/mips/__wait.S: Likewise.
1538 * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
1539 * sysdeps/stub/__wait3.c: Likewise.
1540 * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
1541 * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
1542 * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
1543 * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
1544 * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
1545 * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
1546 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
1547 * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
1548 * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
1549 * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
1550 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
1551 * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
1552 * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
1553 * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
1554 * sysdeps/mach/hurd/__wait4.c: Likewise.
1555 * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
1557 * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
1558 * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
1559 * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
1560 * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
1561 * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
1562 * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
1563 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
1564 * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
1565 * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
1566 * sysdeps/unix/__write.S: Likewise.
1567 * sysdeps/mach/hurd/__write.c: Likewise.
1568 * sysdeps/standalone/__write.c: Likewise.
1569 * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
1571 * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
1572 * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
1573 * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
1574 * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
1575 * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
1577 * sysdeps/unix/bsd/__sigact.c: Likewise.
1578 * sysdeps/unix/sysv/__sigact.c: Likewise.
1579 * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
1580 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
1581 * sysdeps/mach/hurd/__sigact.c: Likewise.
1582 * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
1584 * sysdeps/stub/__sigstmsk.c: Likewise.
1585 * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
1586 * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
1587 * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
1588 * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
1590 * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
1591 * sysdeps/unix/common/__getrusag.S: Likewise.
1592 * hurd/task2pid.c: File removed.
1593 * hurd/setauth.c: File removed.
1594 * hurd/pid2task.c: File removed.
1595 * hurd/hurdsyms.c: File removed.
1596 * hurd/getdport.c: File removed.
1597 * hurd/fopenport.c: File removed.
1598 * mach/thread-sym.c: File removed.
1599 * mach/spin-syms.c: File removed.
1600 * mach/msgserver_t.c: File removed.
1601 * mach/msgserver.c: File removed.
1602 * mach/msg.c: File removed.
1603 * mach/mig_syms.c: File removed.
1604 * malloc/mcheck-init.c: File removed.
1605 * malloc/cfree.c: File removed.
1606 * io/flock.c: File removed.
1607 * io/write.c: File removed.
1608 * io/unlink.c: File removed.
1609 * io/umask.c: File removed.
1610 * io/symlink.c: File removed.
1611 * io/rmdir.c: File removed.
1612 * io/readlink.c: File removed.
1613 * io/read.c: File removed.
1614 * io/pipe.c: File removed.
1615 * io/open.c: File removed.
1616 * io/mkdir.c: File removed.
1617 * io/lstat.c: File removed.
1618 * io/lseek.c: File removed.
1619 * io/link.c: File removed.
1620 * io/isatty.c: File removed.
1621 * io/stat.c: File removed.
1622 * io/fstat.c: File removed.
1623 * io/fchown.c: File removed.
1624 * io/fchmod.c: File removed.
1625 * io/dup2.c: File removed.
1626 * io/dup.c: File removed.
1627 * io/close.c: File removed.
1628 * io/fcntl.c: File removed.
1629 * io/chmod.c: File removed.
1630 * io/chdir.c: File removed.
1631 * io/access.c: File removed.
1632 * io/chown.c: File removed.
1633 * time/tzset.c: File removed.
1634 * time/timelocal.c: File removed.
1635 * time/syms-time.c: File removed.
1636 * time/settod.c: File removed.
1637 * time/setitmr.c: File removed.
1638 * time/gettod.c: File removed.
1639 * time/getitmr.c: File removed.
1640 * time/adjtime.c: File removed.
1641 * termios/tcgetattr.c: File removed.
1642 * string/stpncpy.c: File removed.
1643 * string/rindex.c: File removed.
1644 * string/memccpy.c: File removed.
1645 * string/index.c: File removed.
1646 * string/bcmp.c: File removed.
1647 * stdlib/srand.c: File removed.
1648 * stdlib/random.c: File removed.
1649 * stdio/vsscanf.c: File removed.
1650 * stdio/vfscanf.c: File removed.
1651 * stdio/syms-stdio.c: File removed.
1652 * stdio/remove.c: File removed.
1653 * stdio/getline.c: File removed.
1654 * stdio/getdelim.c: File removed.
1655 * signal/ssignal.c: File removed.
1656 * signal/sigvec.c: File removed.
1657 * signal/sigsetmask.c: File removed.
1658 * signal/sigret.c: File removed.
1659 * signal/sigproc.c: File removed.
1660 * signal/sigpause.c: File removed.
1661 * signal/sigblock.c: File removed.
1662 * signal/sigaction.c: File removed.
1663 * signal/kill.c: File removed.
1664 * signal/gsignal.c: File removed.
1665 * setjmp/siglongjmp.c: File removed.
1666 * setjmp/_longjmp.c: File removed.
1667 * resource/getrusage.c: File removed.
1668 * posix/waitpid.c: File removed.
1669 * posix/wait4.c: File removed.
1670 * posix/wait3.c: File removed.
1671 * posix/wait.c: File removed.
1672 * posix/times.c: File removed.
1673 * posix/sysconf.c: File removed.
1674 * posix/setuid.c: File removed.
1675 * posix/setsid.c: File removed.
1676 * posix/setpgrp.c: File removed.
1677 * posix/setpgid.c: File removed.
1678 * posix/setgid.c: File removed.
1679 * posix/pathconf.c: File removed.
1680 * posix/getuid.c: File removed.
1681 * posix/getppid.c: File removed.
1682 * posix/getpid.c: File removed.
1683 * posix/getgrps.c: File removed.
1684 * posix/getgid.c: File removed.
1685 * posix/geteuid.c: File removed.
1686 * posix/getegid.c: File removed.
1687 * posix/fpathcon.c: File removed.
1688 * posix/fork.c: File removed.
1689 * posix/execve.c: File removed.
1690 * posix/environ.c: File removed.
1691 * misc/utimes.c: File removed.
1692 * misc/setreuid.c: File removed.
1693 * misc/setregid.c: File removed.
1694 * misc/select.c: File removed.
1695 * misc/sbrk.c: File removed.
1696 * misc/mknod.c: File removed.
1697 * misc/ioctl.c: File removed.
1698 * misc/getpgsz.c: File removed.
1699 * misc/gethstnm.c: File removed.
1700 * misc/getdtsz.c: File removed.
1701 * misc/data_start.c: File removed.
1702 * misc/brk.c: File removed.
1703 * math/scalb.c: File removed.
1704 * math/rint.c: File removed.
1705 * math/logb.c: File removed.
1706 * math/isnan.c: File removed.
1707 * math/isinf.c: File removed.
1708 * math/infnan.c: File removed.
1709 * math/finite.c: File removed.
1710 * math/expm1.c: File removed.
1711 * math/drem.c: File removed.
1712 * math/copysign.c: File removed.
1713 * math/__scalb.c: File removed.
1714 * dirent/getdents.c: File removed.
1716 Fri Jan 20 16:11:06 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1718 * sysdeps/generic/morecore.c (__default_morecore): Use
1719 __malloc_ptrdiff_t; don't cast arg to int.
1721 * resolv/getnetnamadr.c: Include "conf/portability.h".
1723 Thu Jan 19 02:20:04 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1725 * stdlib/strtol.c: Include errno.h.
1726 [QUAD] (ULONG_MAX): Define to a static variable initialized to
1727 ULONG_LONG_MAX. This is to work around a GCC bug in using the
1728 constant in arithmetic.
1730 * posix/unistd.h (daemon): Declare it.
1732 * malloc/mcheck-init.c: Remove GNU ld hacks.
1733 (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
1734 * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
1735 (initialize): Call the hook if set.
1736 * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
1737 (__malloc_initialize_hook): Declare new hook variable.
1739 Wed Jan 18 01:43:39 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1741 * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
1742 * hurd/hurdpid.c: Likewise.
1743 * hurd/hurdauth.c: Likewise.
1745 Tue Jan 17 03:16:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1747 * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
1748 if any are successful.
1750 * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
1751 (_S_msg_get_exec_flags, _S_msg_set_exec_flags,
1752 _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
1754 (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
1756 * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
1757 * hurd/hurd-raise.c: Likewise.
1758 * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
1760 * sysdeps/mach/hurd/ptrace.c: New file.
1762 * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
1763 interface, which has normal EINTR semantics. Instead of waiting
1764 for io_select_done notification messages, send io_select messages
1765 with short reply timeout and then wait for io_select_reply
1768 * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
1769 EXEC_INHERITED) to file_exec.
1771 * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
1772 use sig_post_untraced_reply. All callers changed.
1773 (abort_thread, abort_rpcs): Take same new arg and pass it through.
1774 All callers changed.
1775 (_hurd_internal_post_signal): Take new arg UNTRACED.
1776 If zero and process is traced, stop with SIGNO as stop signal. If
1777 nonzero, resume process before delivering signal (unless
1778 ACT==stop). Expand local fn sigwakeup into block at end taken iff
1780 (signal_allowed): New function, broken out of _S_sig_post.
1781 (_S_sig_post): Call it. Pass UNTRACED arg of false to
1782 _hurd_internal_post_signal.
1783 (_S_sig_post_untraced): New function. Just like _S_sig_post, but
1784 pass true for UNTRACED.
1785 * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
1787 * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
1788 to _hurd_internal_post_signal (value zero).
1790 Mon Jan 16 16:40:01 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1792 * hurd/hurdinit.c (_hurd_exec_flags): New variable.
1793 (_hurd_init): Initialize it from FLAGS arg.
1794 (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
1795 raise a SIGTRAP signal (with a sigcode of zero).
1796 * hurd/hurd.h (_hurd_exec_flags): Declare it.
1800 Mon Jan 16 16:16:55 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
1802 * malloc/malloc.c (malloc): Fix 1-off in previous change.
1804 Mon Jan 16 15:49:07 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1806 * posix/glob/Makefile.in: Remove config.h and config.log.
1808 Sun Jan 15 06:56:47 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1810 * posix/glob/configure.in: Add AC_CONST check.
1812 * conf/portability.h: #undef sun.
1813 * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
1814 * resolv/getnetnamadr.c: Likewise.
1816 * socket/Makefile (headers): Add sockaddrcom.h.
1817 * inet/netinet/in.h: Include <sockaddrcom.h>.
1818 (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
1819 * socket/sys/un.h (struct sockaddr_in): Likewise.
1820 * socket/sys/socket.h (struct sockaddr): Likewise.
1821 * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
1822 * sysdeps/generic/sockaddrcom.h: New file.
1824 * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
1825 * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
1826 F_FREESP): New macros.
1827 * sysdeps/posix/truncate.c: New file.
1829 * malloc/malloc.c (malloc): Fix typos in RMS's change.
1831 * malloc/Makefile (dist-routines): Add malloc-find.
1832 * malloc/malloc.h (malloc_find_object_address): Declare it.
1833 * malloc/malloc-find.c: New file.
1835 * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
1837 (malloc_info): Use that type for member `busy.info.size'.
1839 * stdlib/strtol.c: Change uses of `long' keyword throughout to use
1841 [! QUAD] (LONG): Define as long.
1842 [QUAD] (LONG): Define as long long.
1843 [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
1845 [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
1846 * stdlib/Makefile (routines): Add strtoq and strtouq.
1847 * stdlib/strtoq.c, stdlib/strtouq.c: New files.
1848 * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
1851 * stdio/vfprintf.c: If there was a precision specified, ignore the
1852 0 flag and always pad with spaces.
1854 * stdio/vfprintf.c: Don't use strchr to skip text until next %.
1855 Use a loop and also stop on first !isascii char.
1857 Wed Jan 11 00:07:10 1995 Richard Stallman <rms@mole.gnu.ai.mit.edu>
1859 * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
1861 * malloc/malloc.c (malloc): For a multi-block object, store a
1862 negative number into the busy.info.size of all but the first block.
1864 Tue Jan 10 13:45:20 1995 Brendan Kehoe <brendan@zen.org>
1866 * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
1867 instead of t0, t1, and t2.
1869 Tue Jan 10 05:53:50 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1871 * malloc/memalign.c (__memalign_hook): New variable.
1872 (memalign): Call it if set.
1873 * malloc/malloc.h (__memalign_hook): Declare new variable.
1875 Wed Dec 28 03:27:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1877 * conf/portability.h: Include string.h and stdlib.h.
1878 * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
1879 * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
1880 resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
1881 resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
1882 resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
1884 * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro. Replace
1885 all uses of `extern __inline' with `__m81_inline'.
1887 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
1888 * sysdeps/unix/__fork.S: Swap args in subl.
1890 * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
1893 Tue Dec 20 13:33:20 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
1895 * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
1897 * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
1898 * mach/spin-solid.c (__spin_lock_solid): Likewise.
1900 Thu Dec 15 12:01:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1902 * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
1904 (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
1906 * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
1908 Wed Dec 14 18:20:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1910 * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
1911 in `bis' insn; immediate must be second.
1913 * sysdeps/unix/__fork.S: Use subl instead of decl.
1914 * sysdeps/unix/i386/__fork.S: New file.
1916 * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
1917 Remove A macro; just use `asm volatile' with proper quotes in each
1919 * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
1920 jmp target register.
1922 * time/africa, time/asia, time/australasia, time/emkdir.c,
1923 time/europe, time/ialloc.c, time/northamerica, time/private.h,
1924 time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
1925 and data from ADO 94h distribution.
1927 * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
1928 __sigjmp_save in %g1 and jmp there. jmp cannot contain a complete
1929 absolute pointer. Put second store in jmp delay slot.
1931 Tue Dec 13 15:47:52 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1933 * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
1934 __sigsetjmp in %g1 and jmp there. jmp cannot contain a complete
1936 * sysdeps/sparc/bsd-setjmp.S: Likewise.
1938 * configure.in: Use ; before } in { ... } exprs.
1940 Mon Dec 12 01:41:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1944 * sysdeps/mach/hurd/alpha/trampoline.c: Use `long int' for sigcode
1945 values. Use _hurdsig_catch_fault. Pass address of __sigreturn in
1946 $27, SCP value in $25. In trampoline code, use those regs.
1948 * sysdeps/mach/hurd/alpha/__sigret.c: Use asms instead of global
1949 register vars to restore FP regs. Fix typo in REI invocation.
1951 Sun Dec 11 14:10:11 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1953 * hurd/hurd/fd.h (hurd_register_ioctl_handler,
1954 _HURD_HANDLE_IOCTLS): Third arg to handler is a void *, not a
1957 * stdio/memstream.c (enlarge_buffer): Always add one char into
1958 NEED for the char we are writing or the NUL terminator.
1960 * stdio/memstream.c (enlarge_buffer): If realloc fails, just set
1961 error flag and preserve old buffer state.
1963 * stdio/fwrite.c: In fill_buffer case, check for zero buffer space
1964 after fflush and write one char normally.
1966 Sat Dec 10 00:02:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1968 * sysdeps/mach/hurd/__fork.c: Use natural_t in place of int.
1970 * sysdeps/alpha/macros.m4: Use C comments instead of ! comments.
1972 * sysdeps/mach/hurd/mmap.c: Cast -1 to long int before casting to
1975 * sysdeps/mach/alpha/syscall.S: Include
1976 <mach/machine/alpha_instruction.h> to define op_chmk.
1978 * sysdeps/mach/hurd/__mknod.c: Include <string.h>.
1979 * sysdeps/mach/hurd/setegid.c: Likewise.
1980 * sysdeps/mach/hurd/seteuid.c: Likewise.
1981 * sysdeps/mach/hurd/__setregid.c: Likewise.
1982 * sysdeps/mach/hurd/__setreuid.c: Likewise.
1983 * sysdeps/mach/hurd/__ioctl.c: Likewise.
1985 * sysdeps/mach/hurd/recvfrom.c: Include <string.h>. Use
1986 mach_msg_type_number_t in place of unsigned int.
1987 * sysdeps/mach/hurd/recv.c: Likewise.
1988 * sysdeps/mach/hurd/getsockopt.c: Likewise.
1989 * sysdeps/mach/hurd/getsocknam.c: Likewise.
1990 * sysdeps/mach/hurd/getpeernam.c: Likewise.
1991 * sysdeps/mach/hurd/accept.c: Likewise.
1992 * sysdeps/mach/hurd/__gethstnm.c: Likewise.
1994 Fri Dec 9 00:01:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
1996 * sysdeps/mach/hurd/__readlink.c: Use mach_msg_type_number_t in
1997 place of unsigned int.
1998 * sysdeps/mach/hurd/__fork.c: Likewise.
2000 * sysdeps/mach/hurd/__setgid.c: Include <string.h>.
2001 * sysdeps/mach/hurd/__setuid.c: Likewise.
2002 * sysdeps/mach/hurd/__getgrps.c: Likewise.
2003 * hurd/getuids.c: Likewise.
2004 * sysdeps/mach/hurd/__getdents.c: Likewise.
2006 * sysdeps/mach/hurd/dirstream.h (DIR): Use unsigned long int for
2007 `__allocation' and `__size' members.
2009 * sysdeps/mach/hurd/alpha/exc2signal.c: Use `long int' for sigcode
2011 * sysdeps/mach/hurd/i386/exc2signal.c: Likewise.
2013 * mach/devstream.c (input): Use mach_msg_type_number_t for NREAD.
2015 * sysdeps/mach/hurd/__setitmr.c (preempt_sigalrm): Use `long int'
2016 for SIGCODE; take SIGERROR arg.
2018 * sysdeps/alpha/divrem.m4: Include <sysdep.h> instead of
2019 <regdef.h>. Use C comments instead of ! comments.
2021 * sysdeps/alpha/memchr.c: Remove extra shift and OR of CHARMASK.
2022 * sysdeps/alpha/strchr.c: Likewise.
2024 * sysdeps/mach/hurd/sysd-stdio.c: Use mach_msg_type_number_t in
2025 place of unsigned int.
2027 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Cast FD to long
2028 int before casting to pointer.
2030 * stdio/printf_fp.c: Include <string.h>.
2032 * sysdeps/alpha/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
2034 * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
2036 * hurd/hurdioctl.c (fioctl): Pass a mach_msg_type_number_t* to
2039 * hurd/hurd-raise.c: Use `long int' for sigcode values.
2041 * hurd/hurdfault.c: Use `long int' for sigcode values.
2042 * hurd/hurdfault.h: Likewise.
2044 * hurd/hurd/signal.h (struct hurd_signal_preempt): Handler takes
2046 * hurd/preempt-sig.c: Likewise.
2047 * hurd/hurdsig.c (_hurd_internal_post_signal): Pass SIGERROR to
2050 * hurd/hurdlookup.c: Use mach_msg_type_number_t and natural_t in
2051 place of unsigned int and int.
2053 * hurd/hurd/id.h: Use mach_msg_type_number_t in place of unsigned int.
2055 * hurd/catch-exc.c: Use `long int' for sigcode values.
2056 * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
2057 * hurd/preempt-sig.c: Likewise.
2059 * configure.in (machine): Don't recognize r[34]00.
2060 Convert mips64* to mips/mips64/& and mips* to mips/&.
2061 * sysdeps/mips/mipsel/bytesex.h: New file.
2062 * sysdeps/mips/r4000: Directory renamed to sysdeps/mips/mips64.
2064 * sysdeps/mach/alpha/sysdep.h (START_MACHDEP): Add missing
2066 (CALL_WITH_SP): Cast FN to long int.
2068 * sysdeps/mach/alpha/thread_state.h (struct machine_thread_all_state):
2071 * hurd/fd-read.c: Include <string.h>. Use mach_msg_type_number_t
2072 in place of mach_msg_type_size_t.
2074 * hurd/hurdfault.c: Use natural_t instead of int.
2076 * hurd/hurd/signal.h: Use `long int' for sigcode values.
2077 * hurd/hurdsig.c: Use mach_msg_type_number_t and natural_t in
2078 place of unsigned int and int. Use `long int' for sigcode values.
2080 * hurd/vpprintf.c (pwrite): Cast &N to mach_msg_type_number_t *.
2082 * hurd/__fopenport.c: Include <string.h>. Use
2083 mach_msg_type_number_t in place of unsigned int.
2085 * hurd/hurdauth.c: Include <string.h>.
2086 * hurd/hurdsock.c: Likewise.
2088 * sysdeps/mach/alpha/machine-lock.h: Remove ".set noreorder" et
2089 al; GCC already emits them. Fix register constraints in asms.
2090 Set RTN in C, not asm.
2092 * hurd/hurdprio.c: Use mach_msg_type_number_t in place of unsigned
2095 Thu Dec 8 04:00:11 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2097 * sysdeps/mach/hurd/alpha/__sigret.c: Remove ".set noreorder" et
2098 al; GCC already emits them.
2099 * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
2101 * sysdeps/mach/thread_state.h: Use mach_msg_type_number_t and
2102 natural_t in place of unsigned int and int.
2104 * sysdeps/mach/sysdep.h (ENTRY): Don't #error if undefined.
2106 * sysdeps/mach/syscall.h: New file.
2108 * sysdeps/mach/Makefile: Remove debugging printout.
2110 * sysdeps/mach/hurd/configure.in: Converted to an autoconf script
2111 from sysdeps/mach/hurd/configure, to work better with autoconf
2113 * sysdeps/mach/configure.in: Likewise, from sysdeps/mach/configure.
2115 * hurd/hurdmsg.c: Use mach_msg_type_number_t in place of unsigned
2118 * sysdeps/mach/alpha/sysdep.h: Rename variable `sp' to avoid
2119 conflict with #define in <mach/alpha/asm.h>.
2121 * sysdeps/mach/hurd/alpha/__sigret.c: Remove unused variable.
2123 * sysdeps/mach/hurd/__ioctl.c: Pass arg to
2124 __mig_dealloc_reply_port.
2126 * configure.in: Converted to Autoconf version 2.
2127 * sysdeps/generic/configure.in: Likewise.
2128 * sysdeps/unix/common/configure.in: Likewise.
2129 * sysdeps/unix/configure.in: New file, converted to a
2130 part-autoconf script from sysdeps/unix/configure, to work better
2131 with autoconf version 2.
2132 * aclocal.m4: Converted to Autoconf version 2.
2133 (AC_CHECK_SYMBOL): New macro.
2134 * config.make.in: New file.
2135 * config-name.in: New file.
2136 * Makefile (distribute): Rename install.sh to install-sh.
2137 Add config.make.in, config-name.in, Makefile.in.
2138 (distclean-1): Remove config-name.h and config.cache.
2139 * Makefile.in: New file.
2140 * Makeconfig (+gnu-stabs, gnu-as): Match -DHAVE_GNU_{AS,LD}=1 too.
2142 Wed Dec 7 14:05:12 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2144 * sysdeps/mach/mips/cacheflush.c: New file.
2145 * sysdeps/mach/mips/Makefile: New file.
2146 * sysdeps/mach/mips/Dist: New file.
2148 * hurd/hurdmalloc.c (vm_allocate, vm_page_size): #define these to
2151 * posix/glob/Makefile.in (realclean): Remove config.status.
2153 * posix/glob/Makefile.in (DEFS): New variable, set from @DEFS@.
2154 (CPPFLAGS): Remove @DEFS@ from here.
2155 (.c.o): Use $(DEFS).
2157 * setjmp/siglongjmp.c: First arg is const.
2159 Tue Dec 6 19:04:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2161 * posix/glob/Makefile.in (CPPFLAGS): Include @DEFS@.
2163 Mon Dec 5 12:05:10 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2165 * posix/glob/configure.in: Add AC_PROG_CC.
2167 * sysdeps/mach/hurd/alpha/longjmp-ts.c: Use ENV[0].__jmpbuf[0].
2168 * sysdeps/mach/hurd/mips/longjmp-ts.c: Likewise.
2169 * sysdeps/mach/hurd/i386/longjmp-ts.c: Likewise.
2173 * sysdeps/mach/hurd/__select.c: Don't make TO const.
2175 Sun Dec 4 12:06:36 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2177 * sysdeps/unix/configure (config_vars): Add missing backslash
2180 Revamp the `setjmp' interface to be cleaner: only one type
2181 `jmp_buf'/`sigjmp_buf', and only one `longjmp' function (with
2182 aliases `_longjmp', `siglongjmp'). Internal setjmp interface is
2183 now __sigsetjmp, which takes SAVEMASK flag and optionally saves
2184 the signal mask. Add extern entry points `setjmp' and `_setjmp'
2185 for BSD compatiblity; they tail-call __sigsetjmp.
2186 * setjmp/setjmp.h: Include <sigset.h> for __sigset_t, not
2188 (jmp_buf): Define unconditionally with old `sigjmp_buf' defn.
2189 (__sigjmp_save): Declare to return int.
2190 (__setjmp): Remove declaration; this function no longer exists.
2191 (__sigsetjmp): Declare it; this is the new internal function.
2192 (setjmp): Define to call __sigsetjmp, second arg depending on
2194 [__OPTIMIZE__] (longjmp): Remove #define.
2195 [__USE_BSD] (_longjmp): Declare it, another name for `longjmp'.
2196 [__USE_BSD] (_setjmp): Define macro to do __sigsetjmp (ENV, 0).
2197 [__FAVOR_BSD]: Remove all these defns.
2198 [__USE_POSIX] (sigjmp_buf): Define as another name for `jmp_buf'.
2199 [__USE_POSIX] (sigsetjmp): Define to call __sigsetjmp.
2200 * setjmp/sigjmp.c (__sigjmp_save): Return an int, always zero, not
2202 * setjmp/Makefile (routines): Remove _setjmp, add bsd-setjmp and
2204 * setjmp/longjmp.c: Define as a real funciton, which restores
2205 signal mask and calls __longjmp.
2206 * setjmp/siglongjmp.c: Make this an alias to longjmp.
2207 * setjmp/_longjmp.c: Alias to longjmp, not siglongjmp.
2208 * sysdeps/stub/setjmp.c: Implement __sigsetjmp instead of
2209 __setjmp; call __sigjmp_save.
2210 * sysdeps/sparc/setjmp.S: Likewise.
2211 * sysdeps/m68k/setjmp.c: Likewise.
2212 * sysdeps/i386/setjmp.c: Likewise.
2213 * sysdeps/vax/setjmp.c: Likewise.
2214 * sysdeps/mips/setjmp.S: Implement __sigsetjmp instead of
2215 __setjmp; call __sigsetjmp_aux instead of __setjmp_aux. Pass SP
2216 and FP as 3rd and 4th args, not 2nd and 3rd.
2217 * sysdeps/alpha/setjmp.S: Likewise.
2218 * sysdeps/mips/setjmp_aux.c: Implement __sigsetjmp_aux instead of
2219 __setjmp_aux; call __sigjmp_save.
2220 * sysdeps/alpha/setjmp_aux.c: Likewise.
2221 * sysdeps/mips/bsd-setjmp.S, sysdeps/mips/bsd-_setjmp.S: New files.
2222 * sysdeps/alpha/bsd-setjmp.S, sysdeps/alpha/bsd-_setjmp.S: New files.
2223 * sysdeps/vax/bsd-setjmp.S, sysdeps/vax/bsd-_setjmp.S: New files.
2224 * sysdeps/sparc/bsd-setjmp.S, sysdeps/sparc/bsd-_setjmp.S: New files.
2225 * sysdeps/i386/bsd-setjmp.S, sysdeps/i386/bsd-_setjmp.S: New files.
2226 * sysdeps/m68k/bsd-setjmp.S, sysdeps/m68k/bsd-_setjmp.S: New files.
2227 * sysdeps/stub/bsd-setjmp.c, sysdeps/stub/bsd-_setjmp.c: New files.
2228 * setjmp/_setjmp.c: File removed.
2229 * sysdeps/alpha/__longjmp.c: Take arg of type __jmp_buf, not
2231 * sysdeps/vax/__longjmp.c: Likewise.
2232 * sysdeps/stub/__longjmp.c: Likewise.
2233 * sysdeps/i386/__longjmp.c: Likewise.
2234 * sysdeps/m68k/__longjmp.c: Likewise.
2236 Sat Dec 3 09:00:17 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2238 * sysdeps/mach/hurd/alpha/__sigret.c: Set up frame for `rei' to
2239 restore on user stack, aligned to an 8-word boundary and with a PS
2240 value that restores user's stack alignment.
2242 Fri Dec 2 19:31:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2244 * sysdeps/unix/readdir.c: Search one char more than D_NAMLEN(DP)
2245 for the null terminator. Always set D->d_namlen, using
2246 D_NAMLEN(DP) if no null is found.
2248 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Fix typo `.global' to
2249 `.globl'. Silly me, I used a vowel in a Unix program.
2251 Mon Nov 28 16:11:39 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2253 * io/fts.c (ALIGN, ALIGNBYTES): New macros, defined if not already
2256 Tue Nov 22 06:39:49 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2258 * sysdeps/unix/bsd/osf1/dirstream.h: File removed.
2260 * sysdeps/stub/sigcontext.h (struct sigcontext): Use `__sigset_t'
2261 instead of `sigset_t' for `sc_mask'.
2262 * sysdeps/mach/hurd/i386/sigcontext.h: Likewise.
2263 * sysdeps/mach/hurd/alpha/sigcontext.h: Likewise.
2264 * sysdeps/mach/hurd/mips/sigcontext.h: Likewise.
2265 * sysdeps/unix/bsd/ultrix4/mips/sigcontext.h: Likewise.
2266 * sysdeps/unix/bsd/sun/m68k/sigcontext.h: Likewise.
2267 * sysdeps/unix/bsd/sun/sparc/sigcontext.h: Likewise.
2269 * hurd/hurdsig.c (_hurd_internal_post_signal: case handle): Call
2270 abort_thread always, first thing after thread_suspend.
2272 Mon Nov 21 13:18:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2274 * sysdeps/mach/hurd/__fcntl.c: Don't make this whole function a
2277 * sysdeps/generic/strpbrk.c: Don't call strchr; do it by hand for
2280 Wed Nov 16 12:47:22 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2282 * sysdeps/unix/bsd/m68k/sysdep.S [__motorola__]: Swap operands in
2285 * hurd/msgportdemux.c (_hurd_msgport_receive): Call
2286 _hurd_self_sigstate to get sigstate cached before running any
2289 * sysdeps/mach/hurd/__fork.c: Pass _hurd_msgport_thread to
2290 __thread_get_state, not _hurd_sigthread. Don't do
2291 __thread_get_state on THREAD_SELF--the kernel does not allow it.
2293 * hurd/hurdsig.c (_hurd_internal_post_signal): In stopping orphan
2294 test, take sigmask of SIGNO, don't & its value with a mask. In
2295 blocked signal test, be careful not to pass SIGNO=0 to __sigismember.
2297 Tue Nov 15 01:39:36 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2299 * Makerules (stub-$(subdir)): Save absolute name of
2300 $(..)sysdeps/stub before cd'ing, transform gleaned file names to
2301 refer to saved name.
2303 * sysdeps/mach/hurd/socketpair.c: Include <fcntl.h>.
2305 * time/test_time.args: Add CST as a test case.
2307 * sysdeps/mach/hurd/socketpair.c: Rewritten (copying __pipe.c).
2309 * sysdeps/unix/bsd/dirstream.h [__USE_BSD] (dirfd): New macro.
2311 * posix/unistd.h: Declare fchdir.
2313 * io/fts.c (MAXPATHLEN): Define if not defined.
2315 * io/fts.c, io/fts.h: New files, from 4.4 BSD code by Keith Bostic.
2316 * io/Makefile (routines): Add fts.
2317 (headers): Add fts.h.
2319 Mostly ported the Hurd to the DEC Alpha.
2320 * sysdeps/mach/alpha/machine-sp.h: New file.
2321 * sysdeps/mach/alpha/thread_state.h: New file.
2322 * sysdeps/mach/alpha/sysdep.h: New file.
2323 * sysdeps/mach/alpha/machine-lock.h: New file.
2324 * sysdeps/mach/hurd/alpha/sigcontext.h: New file.
2325 * sysdeps/mach/hurd/alpha/longjmp-ts.c: New file.
2326 * sysdeps/mach/hurd/alpha/trampoline.c: New file.
2327 * sysdeps/mach/hurd/alpha/exc2signal.c: New file.
2328 * sysdeps/mach/hurd/alpha/__sigret.c: New file.
2330 * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Make the
2332 * sysdeps/alpha/Makefile (divrem rule): Make the output
2333 unwritable, use mv -f.
2334 * sysdeps/sparc/Makefile (divrem rule): Likewise.
2336 * configure.in (sysnames): Put another loop on $mach inside $base
2337 loop but outside $vendor loop. This should catch .../cpu/vendor.
2339 Mon Nov 14 22:52:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2341 * sysdeps/mach/hurd/start.c: Add missing #endif.
2343 Sun Nov 13 05:04:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2345 * sysdeps/mach/hurd/__select.c: At end of receiving loop, clear TO
2348 * malloc/mcheck-init.c (turn_on_mcheck): Add gratuitous self
2349 reference to silence compiler warning.
2350 (_hurd_preinit_hook): Add the function to this set too.
2352 * time/__tzset.c (__tzset): Give tz_rules coherent default when TZ
2353 value is short or malformed.
2355 * mach/devstream.c: Echo input after reading it.
2357 * Make-dist (generated): Mutate to add .S and .s variations for .c
2360 Fri Nov 11 11:43:26 1994 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu>
2362 * sysdeps/mach/hurd/i386/__sigret.c (__sigreturn): Don't actually
2363 abort here; at least let the user continue with bogus FP; that's
2364 better than a random crash until it's fixed.
2366 Thu Nov 10 04:56:28 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2368 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h (msync): Use __caddr_t
2369 instead of caddr_t in decl.
2371 * sysdeps/mach/start.c (START_ARGS): Define to void if undefined.
2372 [START_MACHDEP]: Reference this if defined.
2373 [START_MACHDEP] (_start): #define to _start0.
2374 (_start): Take args START_ARGS.
2375 * sysdeps/mach/hurd/start.c: Likewise.
2377 Wed Nov 9 08:02:59 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2379 * hurd/Makefile (sig): Remove longjmp-ctx (it is never called).
2381 * sysdeps/mach/hurd/__fork.c: Do thread_get_state on parent's
2382 threads to modify and thread_set_state new child threads.
2384 Mon Nov 7 00:38:45 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2386 * posix/glob/configure.in: Converted to Autoconf v2.
2387 * posix/glob.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H
2388 instead of DIRENT, SYSDIR, NDIR.
2389 * posix/glob/Makefile.in (CC): New variable, set from @CC@.
2390 (CPPFLAGS): Set from @CPPFLAGS@, not @DEFS@.
2392 * sysdeps/unix/__fork.S: Use decrement and AND instead of test and
2394 * sysdeps/unix/sparc/__fork.S: Likewise.
2395 * sysdeps/unix/sparc/__vfork.S: Likewise.
2396 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
2397 * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
2398 * sysdeps/unix/i386/__fork.S: File removed.
2400 Sun Nov 6 19:26:28 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2404 Fri Nov 4 16:52:05 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2408 * manual/Makefile (stamp-summary): Depend on $(chapters-incl) too.
2410 Thu Nov 3 18:33:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2412 * sysdeps/generic/sigset.h (__sigemptyset): Cast to __sigset_t.
2413 (__sigfillset): Likewise. Use ~(__sigset_t)0 in place of -1.
2414 (__SIGSETFN): Don't try to be clever. Test bounds of SIG with <
2417 * sysdeps/mach/hurd/__fork.c: Unlock signal state earlier, just
2418 after unlocking _hurd_ports locks.
2420 * sysdeps/unix/bsd/osf1/direct.h: File removed.
2421 * sysdeps/unix/bsd/direct.h (struct direct): Use `unsigned int'
2422 instead of `unsigned long int' for `d_fileno' member.
2424 * Makerules (common-mostlyclean): Remove $(tests:=.out) too.
2426 * assert/assert-perr.c (__assert_perror_fail): Add missing comma.
2428 * sysdeps/unix/ioctls-tmpl.c [__osf__ && __alpha__] (FIOPIPESTAT,
2429 SIOCSRREQR, SIOCSRREQW, SRVC_REQUEST): #undef these.
2431 Wed Nov 2 23:00:19 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2433 * sysdeps/mach/hurd/setegid.c: Pass poly and count args for
2434 other_handles in correct order in call to auth_makeauth.
2435 * sysdeps/mach/hurd/__setregid.c: Likewise.
2436 * sysdeps/mach/hurd/__setreuid.c: Likewise.
2438 * Makerules (compile.S): Add -DASSEMBLER.
2439 * sysdeps/mach/sysdep.h [ASSEMBLER]: Don't include
2440 <mach/mig_support.h> if this is defined.
2442 Wed Nov 2 22:39:55 1994 Michael I Bushnell <mib@churchy.gnu.ai.mit.edu>
2444 * sysdeps/mach/hurd/seteuid.c: Pass poly and count args for
2445 other_handles in correct order in call to auth_makeauth.
2447 Wed Nov 2 15:03:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2449 * stdio/internals.c (fillbuf): Make sure returned char doesn't get
2452 Tue Nov 1 01:25:28 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2454 * sysdeps/unix/common/Implies: File removed.
2455 * sysdeps/unix/bsd/Implies: Add unix/inet.
2457 * assert/assert-perror.c: Renamed to assert-perr.c.
2458 * assert/Makefile (routines): Rename assert-perror to assert-perr.
2462 * mach/Makefile (generated): Add __%.c for $(mach-shortcuts) too.
2464 * dirent/Makefile (tests): Add tst-seekdir.
2465 * dirent/tst-seekdir.c (main): New file.
2466 * sysdeps/unix/bsd/seekdir.c: New file.
2467 * sysdeps/unix/bsd/telldir.c: New file.
2468 * sysdeps/unix/bsd/dirstream.h (DIR): New member `__pos'.
2469 * sysdeps/unix/bsd/readdir.c: Update DIRP->__pos in getdirentries
2471 * sysdeps/unix/opendir.c: Use calloc in place of malloc, to zero
2474 * sysdeps/standalone/i386/force_cpu386/force_cpu386.ld: Renamed to
2476 * sysdeps/standalone/i386/force_cpu386/Makefile: Install it from
2477 that name (still into $(libdir)/force_cpu386.ld).
2479 * mach/Makefile (headers, user-interfaces, server-interfaces):
2480 Don't add default_pager stuff.
2482 Mon Oct 31 07:00:40 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2484 * sysdeps/unix/bsd/sun/sunos4/termbits.h (TCSASOFT): Macro
2487 * malloc/malloc.h: Change #ifdef __STDC__ to #if defined
2488 (__STDC__) && __STDC__.
2490 Fri Oct 28 00:09:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2492 * sysdeps/mach/sysdep.h: Include <mach/mig_support.h> for decls.
2493 (FATAL_PREPARE): Pass arg to __mig_dealloc_reply_port.
2495 * assert/Makefile (routines): Add assert-perror.
2497 * Makerules (stubs): cd into $(objdir) and use local file names,
2498 making the cmd shorter.
2500 * sysdeps/mach/hurd/getprio.c (getonepriority): Call
2501 proc_getprocinfo with proc port.
2503 * sysdeps/mach/hurd/errnos.awk: Grok "@comment errno %d" in
2504 errno.texi, instead of assigning sequentially.
2505 * sysdeps/mach/hurd/errlist.awk: Likewise.
2507 * stdio/fwrite.c: Reset BUFFER_SPACE after fflush in fill_buffer
2510 * sysdeps/generic/sigset.h (__SIGSETFN): When losing, punt to
2511 `raise (-1)'. Old method looped.
2513 * hurd/hurd/resource.h: Include <hurd/process.h>.
2515 Thu Oct 27 15:00:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2517 * sysdeps/standalone/standalone.h: Fixed typo.
2519 Wed Oct 26 00:21:16 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2521 * sysdeps/unix/i386/vfork.S: New file.
2523 * sysdeps/generic/strchr.c: Increment CP properly in check for 5th
2524 char of quadword hit.
2526 * sysdeps/mach/hurd/getprio.c (getonepriority): Always set ONERR.
2528 Tue Oct 25 03:53:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2530 * hurd/hurd/resource.h: Include <errno.h>.
2532 * stdio/ftell.c: If STREAM->__pushed_back, calculate from
2533 pushback_bufp instead of bufp.
2535 * Makefile (format-me): New canned sequence; runs makeinfo
2538 (NOTES): New file rule.
2540 * manual/intro.texi (Feature Test Macros): Node moved off to
2542 * manual/creature.texi: New file, broken out of intro.texi.
2544 * manual/Makefile (indices): New variable; include ky.
2545 (realclean): Use $(indices) to remove all index and sorted index
2548 * sysdeps/mach/hurd/fcntlbits.h (O_ASYNC, O_FSYNC, O_SYNC):
2549 Protect with [__USE_BSD].
2551 Mon Oct 24 00:16:59 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2553 * sysdeps/unix/bsd/utime.c: Initialize tv_usec fields.
2554 Use __gettimeofday instead of time.
2556 * sunrpc/pmap_rmt.c: Include <sys/param.h> before <net/if.h>.
2557 Undef _POSIX_SOURCE before that.
2558 * sunrpc/pm_getport.c: Likewise.
2559 * sunrpc/pm_getmaps.c: Likewise.
2560 * sunrpc/get_myaddr.c: Likewise.
2562 * misc/sys/cdefs.h: Undef __P first.
2566 * sysdeps/mach/hurd/getprio.c: Rewritten.
2567 * sysdeps/mach/hurd/setprio.c: New file.
2568 * hurd/hurdprio.c: New file.
2569 * hurd/Makefile (routines): Add hurdprio.
2570 * hurd/hurd/resource.h (_hurd_priority_which_map): Declare it.
2571 (NICE_TO_MACH_PRIORITY, MACH_PRIORITY_TO_NICE): New macros.
2573 Sun Oct 23 19:39:18 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2575 * Makerules (sources): Fix typo in last change.
2577 Fri Oct 21 13:15:39 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2579 * sysdeps/generic/termbits.h (ECHOKE): Remove gratuitous leading
2580 space before #define.
2582 * Makerules (sources): Filter out $(elided-routines).
2584 * sysdeps/sparc/divrem.m4 (entry point): For OP=rem, set SIGN from
2585 dividend only, ignoring divisor.
2586 (Lgot_result): Test SIGN here for OP=rem too (as originally).
2588 Wed Oct 19 02:40:02 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2590 * hurd/hurdsig.c: Use assert_perror.
2592 * assert/assert-perror.c (__assert_perror_fail): New file.
2593 * assert/assert.h (assert_perror): New macro.
2597 * hurd/hurdsig.c (abort_rpcs): Actually return a port instead of
2598 boolean, as the type says.
2600 * hurd/hurdsig.c (abort_all_rpcs): If waiting for reply from
2601 interrupted RPC returns error, print debugging msg with error
2604 Mon Oct 17 00:06:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2606 * stdlib/strtol.c: Deansideclized.
2607 * sysdeps/generic/strcspn.c: Deansideclized.
2608 * sysdeps/generic/putenv.c: Deansideclized, added portability
2611 Fri Oct 14 14:00:11 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2613 * sysdeps/unix/sysv/sysv4/solaris2/utsnamelen.h:
2614 Moved to sysdeps/unix/sysv/sysv4.
2616 Thu Oct 13 22:06:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2618 * sysdeps/unix/common/glue-ctype.c [HAVE__LOCP]: Move this defn to
2619 first. Include sys/types.h.
2621 * sysdeps/unix/bsd/readdir.c: Include direct.h.
2623 * socket/sys/socket.h (__SOCKADDR_ARG): Always use non-GCC defn,
2625 * posix/sys/wait.h (__WAIT_STATUS): Likewise.
2627 Tue Oct 11 00:42:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2631 Mon Oct 10 00:33:47 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2633 * malloc/malloc.h [_MALLOC_INTERNAL] (CHAR_BIT): Don't define if
2636 * stdio/__vfscanf.c: Grok %q modifier like %ll.
2638 * mach/__msgserver.c: Increase default MAX_SIZE to two pages.
2640 * misc/init-misc.c: Cast string constant to non-const type.
2642 * sysdeps/i386/ffs.c: Use %1 again instead of listing TMP as an
2643 input with constraint "1". This avoids a warning that TMP may be
2646 Sun Oct 9 22:41:20 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2648 * hurd/hurdsig.c (abort_all_rpcs): Declare SS.
2650 Sun Oct 09 01:19:38 1994 Jim Meyering (meyering@comco.com)
2652 * posix/fnmatch.c: Remove CONFIG_BROKETS conditional.
2654 Fri Oct 7 15:28:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2656 * stdio/__vfscanf.c: Properly grok %a modifier.
2658 * hurd/hurdsig.c (abort_rpcs): Return the reply port or null,
2660 (abort_all_rpcs): Record the returns from abort_rpcs and wait for
2661 a message on each reply port. Don't bother locking _hurd_siglock.
2663 Thu Oct 6 18:57:44 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2665 * hurd/hurd.h (_hurd_socket_server): Take new arg DEAD; explain
2667 * hurd/hurdsock.c (_hurd_socket_server): Take new arg DEAD; if
2668 nonzero, clear any old cached port and always do a fresh lookup.
2669 * sysdeps/mach/hurd/socket.c: Pass new arg to _hurd_socket_server,
2670 cope with dead server on socket_create.
2671 * sysdeps/mach/hurd/__pipe.c: Likewise.
2673 Mon Oct 3 02:09:43 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2675 * sysdeps/generic/utsnamelen.h (_UTSNAME_LENGTH): Increase to
2678 Sun Oct 2 18:35:16 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2680 * posix/glob.h (__P): Change arg name to `protos', for congruence
2682 * posix/fnmatch.h (__P): Likewise.
2684 Sat Oct 1 04:25:35 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2686 * misc/Makefile (routines): Add daemon.
2688 Fri Sep 30 16:49:09 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2690 * misc/daemon.c: New file, incorporated from BSD 4.4-Lite.
2692 * sysdeps/mach/hurd/__setsid.c: Call _hurd_setcttyid with
2693 MACH_PORT_NULL after proc_setsid.
2695 * hurd/hurdioctl.c (_hurd_setcttyid): Don't do mod_refs if port is
2698 Always use fds' `port' cell for the generic port.
2699 For ctty fds, use the `ctty' cell for the ctty-special port.
2700 * hurd/dtable.c (get_dtable_port): Use port, never ctty.
2701 (fork_child_dtable): Reset D->ctty instead of D->port.
2702 (ctty_new_pgrp): Likewise.
2703 * sysdeps/mach/hurd/__ioctl.c: Use ctty port for RPC if set and
2705 * hurd/port2fd.c (_hurd_port2fd): Install normal port in D->port
2706 cell, and ctty-special port in the D->ctty cell, not the reverse.
2707 * hurd/hurdioctl.c (tiocsctty): Don't assume MACH_PORT_NULL is
2709 * hurd/hurdexec.c (_hurd_exec): Always pass fds' normal port,
2710 never its ctty port.
2711 * hurd/fd-write.c (_hurd_fd_write): Use ctty port for RPC if set
2713 * hurd/fd-read.c (_hurd_fd_read): Use ctty port for RPC if set.
2715 Thu Sep 29 18:28:01 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2717 * mach/mig_syms.c (mig_put_reply_port): Add symbol alias to __
2720 Thu Sep 29 12:23:07 1994 Brendan Kehoe (brendan@zen.org)
2722 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (ENTRY): Use
2723 poundfnc instead of \#function, to satisfy gcc-2.6.0 and higher.
2724 (cat, poundfnc): Define macros to pull it off.
2726 * sysdeps/unix/sysv/sysd-stdio.c: Include
2727 sysdeps/generic/sysd-stdio.h,
2728 not looking in sysdeps/posix.
2730 Thu Sep 29 05:38:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2732 * sysdeps/unix/common/configure.in (ctype check): In test prog,
2733 just reference $ctype; we don't care what type it is.
2735 * sysdeps/unix/bsd/bsd4.4/direct.h: New file.
2736 (HAVE_D_TYPE): Define this macro.
2737 * dirent/dirent.h (struct dirent): New member `d_type'; shorten
2738 `d_namlen' to a byte.
2739 * sysdeps/unix/bsd/readdir.c [! HAVE_D_TYPE]: Shuffle d_namlen and
2742 Wed Sep 28 17:23:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2744 * posix/sys/utsname.h [__USE_SVID] (SYS_NMLN): New macro.
2746 * dirent/scandir.c: Free storage on error from readdir.
2748 Mon Sep 26 00:55:34 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2752 * MakeTAGS (all-dist): Prepend the appropriate sysdep dir names.
2754 * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): Create a
2757 Sat Sep 24 13:44:51 1994 Jim Meyering (meyering@comco.com)
2759 * sysdeps/generic/memcmp.c [CMP_LT_OR_GT]: New macro.
2760 (memcmp): Use it in place of each of ten 5-line #ifdef blocks.
2762 Fri Sep 23 16:55:54 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2764 * sysdeps/mach/hurd/sigsuspend.c: Include <hurd/msg.h>.
2766 * sysdeps/mach/hurd/sigsuspend.c: Add missing & in __mach_msg
2769 Thu Sep 15 14:22:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2771 * sysdeps/standalone/i386/force_cpu386/Dist: New file.
2772 * sysdeps/standalone/m68k/m68020/mvme136/Dist: New file.
2773 * sysdeps/standalone/i960/Dist: New file.
2774 * sysdeps/standalone/m68k/m68020/Dist: New file.
2775 * sysdeps/standalone/i386/force_cpu386/force_cpu386.ld: New file.
2776 * sysdeps/standalone/m68k/m68020/mvme136/mvme136.ld: New file.
2777 * sysdeps/standalone/i960/i960ca.h: New file.
2778 * sysdeps/standalone/m68k/m68020/m68020.h: New file.
2780 * sysdeps/unix/common/configure.in: Use AC_COMPILE_CHECK instead
2783 * sysdeps/generic/make_siglist.c (sys_siglist): Define as macro to
2786 * sysdeps/mach/i386/thread_state.h: Include from mach/machine, not
2788 * sysdeps/mach/hurd/i386/sigcontext.h: Likewise.
2790 * mach/mach/mig_support.h (__mig_put_reply_port): Declare.
2791 (__mig_dealloc_reply_port): Take arg.
2792 * sysdeps/mach/hurd/mig-reply.c (__mig_put_reply_port): New
2794 (__mig_dealloc_reply_port): Take arg, ignore it.
2796 Wed Sep 14 18:16:07 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2798 * sysdeps/mach/hurd/Makefile (libc-name): Set to crt.
2799 [!subdir]: Install libc-ldscript as libc.a.
2800 * sysdeps/mach/hurd/Dist: Add libc-ldscript.
2802 Tue Sep 13 19:57:09 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2804 * sysdeps/mach/hurd/sync.c: Don't be synchronous: pass WAIT=0 to
2807 * Makerules (libc-name): New variable.
2808 (install, libc installation rule): Use $(libc-name) in place of `c'.
2810 Sun Sep 11 23:28:20 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2812 * sysdeps/mach/hurd/__readlink.c: Only decrement LEN to remove the
2813 null terminator when LEN is already large enough to include it.
2815 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Add break
2816 after FS_RETRY_MAGICAL case.
2818 Fri Sep 9 04:03:59 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2820 * stdio/vfprintf.c: Grok q modifier like ll.
2822 * Make-dist (sysdep-Subdir-files, subdirs): Set these early on,
2823 before doing distinfo.
2824 [parent] (+distinfo): Set inhibit_interface_rules=t in sub-make.
2826 Thu Sep 8 17:18:14 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2828 * sysdeps/generic/morecore.c (__default_morecore) [! __STDC__]:
2829 Declare arg as `int' instead of `ptrdiff_t'.
2831 Tue Sep 6 19:06:00 1994 Roland McGrath <roland@geech.gnu.ai.mit.edu>
2833 * posix/glob.c (prefix_array, glob): Avoid const on initialized
2834 variables. Some compiler generates bad code.
2836 Mon Sep 5 13:24:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2838 * malloc/Makefile (malloc/%: ../sysdeps/generic/%): New rule, to get
2841 * malloc/malloc.h (size_t, ptrdiff_t): Never define these as macros.
2842 (__malloc_size_t): Define this instead.
2843 Change all uses of size_t to __malloc_size_t.
2844 * malloc/valloc.c: Replace all uses of size_t with __malloc_size_t.
2845 * malloc/memalign.c: Likewise.
2846 * malloc/mcheck.c: Likewise.
2847 * malloc/mtrace.c: Likewise.
2848 * malloc/malloc.c: Likewise.
2849 * malloc/free.c: Likewise.
2850 * malloc/realloc.c: Likewise.
2851 * malloc/calloc.c: Likewise.
2853 * MakeTAGS (TAGS): Define first so as to be default goal.
2854 (sysdep_dirs): Set this by running find, if it is not already set.
2855 (all-dirs): Include that value.
2856 (all-dist): Filter output of cat, not args to it.
2857 * Makerules (TAGS): Depend on distinfo, not distfile.
2859 * resolv/getnetnamadr.c (getnetbyname): Arg is always const,
2860 regardless of [sun].
2862 Sun Sep 4 00:04:55 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2866 * Makerules (distinfo-vars): Double $s in final emitted sources defn.
2868 * inet/Makefile (headers): Add netdb.h.
2869 * resolv/Makefile (headers): Remove netdb.h.
2870 * resolv/netdb.h: Moved to inet.
2871 * inet/netdb.h: Incorporated from BSD 4.4-Lite.
2872 Add back h_errno declaration.
2874 * hurd/Makefile (faultexc.c): Change this to a pattern rule to
2875 build both faultexc.[ch].
2876 (hurdfault.o): Depend on faultexc.h and faultexc.c to get them built.
2878 * sysdeps/mach/hurd/i386/trampoline.c
2879 (_hurdsig_rcv_interrupted_p): Make PC volatile.
2880 (_hurd_setup_sighandler): Cast SS->context to int before comparing to
2881 _hurdsig_fault_sigcode.
2883 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_SET_{SP,PC}):
2884 Cast args to unsigned long int.
2886 * sysdeps/mach/hurd/i386/trampoline.c: Use _hurdsig_catch_fault.
2888 * Make-dist (subdirs): Use sed to remove comments from Subdirs files.
2889 * MakeTAGS (subdirs): Likewise.
2891 * sysdeps/mach/i386/thread_state.h: Include
2892 <mach/i386/thread_status.h> first thing.
2894 * hurd/Makefile (sig): Add faultexc.
2895 ($(objpfx)faultexc.c): New target.
2896 (generated): Append faultexc.c.
2898 * hurd/Makefile (sig): Add hurdfault; remove init-fault.
2899 (distribute): Add hurdfault.h.
2900 * hurd/hurdfault.h: New file.
2901 * hurd/hurdfault.c: New file.
2902 * hurd/hurdsig.c (interrupted_reply_port_location): Use
2903 _hurdsig_catch_fault and _hurdsig_end_catch_fault.
2904 (_hurdsig_getenv): Likewise.
2905 * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
2907 * hurd/catch-exc.c: Return EPERM if TASK is not right.
2909 * hurd/hurdsig.c (_hurd_sigthread_fault_env): Variable moved to
2911 (_hurdsig_fault_init): Function moved to hurdfault.c.
2913 Sat Sep 3 12:22:53 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2915 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_SET_PC,
2916 MACHINE_THREAD_STATE_SET_SP): New macros.
2917 * mach/setup-thread.c: Use MACHINE_THREAD_STATE_SET_PC.
2918 * sysdeps/mach/hurd/__fork.c: Likewise.
2920 * string/test-ffs.c (main: try): Actually call ffs in the test.
2922 Fri Sep 2 21:20:17 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2924 * sysdeps/mach/hurd/mips/__sigret.c: Restore FPU state. Code from
2927 * sysdeps/mach/hurd/__mknod.c: Fixed copying of the translator
2928 name into buffer with major and minor numbers, and setting of LEN.
2930 * sysdeps/unix/configure (unix_syscall): In sed cmd, do = first to
2931 avoid clobbering produced assignments.
2933 Thu Sep 1 03:25:17 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2937 * sysdeps/mach/hurd/connect.c (connect): Fix accidental renaming
2938 of sun_path to sun_file_name.
2940 * bare/Makefile (routines, elided-routines): Set these both to
2942 (distribute): Don't set this.
2944 * Makerules (distinfo-vars): Fix cmd to echo `sources' defn.
2946 * sysdeps/unix/configure: Handle dirs other than common. Check
2947 for [gs]etdomainname.
2948 * misc/Makefile (routines): Add getdomain, setdomain.
2949 * sysdeps/unix/bsd/bsd4.4/setdomain.S: New file.
2950 * sysdeps/unix/bsd/bsd4.4/getdomain.S: New file.
2951 * sysdeps/stub/setdomain.c: New file.
2952 * sysdeps/stub/getdomain.c: New file.
2954 Wed Aug 31 01:15:26 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2956 * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): Take no
2957 args; use parent SS variable. Changed all calls.
2959 * hurd/hurd/signal.h (struct hurd_sigstate): Make `suspended' a
2960 port; remove `arrived'.
2961 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend): Rewritten to set
2962 SS->suspended port and wait for msg on it. Check for and deliver
2963 pending signals properly.
2964 * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): If
2965 SS->suspended is set, send an empty message on it and clear it.
2967 * math/test-math.c (print_trig_stuff): New function, tests many
2969 (main): Call it at end.
2971 * string/Makefile (tests): Added test-ffs.
2972 * string/test-ffs.c: New file.
2974 Tue Aug 30 20:33:49 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2976 * misc/fstab.c (error): Return void.
2977 (fstabscan): Return int.
2979 * sysdeps/i386/ffs.c: Use & modifier in constraint for CNT.
2981 * misc/fstab.c (EFTYPE): If not defined by errno.h, define this to
2983 (fstabscan): Return void.
2985 Tue Aug 30 11:00:01 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
2987 * sysdeps/mach/hurd/__access.c (__access): Use a send right,
2988 not a send-once right, in the new auth protocol.
2989 * hurd/__setauth.c (_hurd_setauth): Likewise.
2990 * hurd/hurdsig.c (reauth_proc): Likewise.
2991 * hurd/dtable.c (reauth_dtable): Likewise.
2992 * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
2994 Tue Aug 30 03:59:38 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2996 * socket/sys/socket.h (__SOCKADDR_ARG) [GCC>=2.6]: Use a typedef
2997 with the transparent_union attribute.
2999 * sysdeps/mach/hurd/__access.c: Use new authentication protocol:
3000 for each port, create a fresh receive right and pass send-once
3001 rights in the auth calls, then destroy the port.
3003 * sysdeps/mach/mips/syscall.S: New file.
3005 * stdio/Makefile (mpn-headers, mpn-sysdep): Change asm.h to
3008 * misc/Makefile (headers): Added fstab.h.
3009 (routines): Added fstab.
3010 * misc/fstab.c: New file.
3011 * misc/fstab.h: New file.
3013 * hurd/Makefile (routines): Changed hurdpath to hurdlookup.
3014 * hurd/hurdpath.c: Renamed to hurd/hurdlookup.c.
3015 * hurd/hurdlookup.c: Globally replace `pathtrans' with `lookup' and
3016 `path' with `file_name'.
3017 (__hurd_file_name_split): Don't bother skipping leading slashes.
3018 * hurd/hurd.h: Rename likewise in decls.
3019 * hurd/fchroot.c: Globally replace `pathtrans' with `lookup' and
3020 `path' with `file_name'.
3021 * hurd/hurdsig.c: Likewise.
3022 * hurd/hurdsock.c: Likewise.
3023 * hurd/hurdsyms.c: Likewise.
3024 * hurd/invoke-trans.c: Likewise.
3025 * sysdeps/mach/hurd/__access.c: Likewise.
3026 * sysdeps/mach/hurd/__chmod.c: Likewise.
3027 * sysdeps/mach/hurd/__chown.c: Likewise.
3028 * sysdeps/mach/hurd/__execve.c: Likewise.
3029 * sysdeps/mach/hurd/__link.c: Likewise.
3030 * sysdeps/mach/hurd/__lstat.c: Likewise.
3031 * sysdeps/mach/hurd/__mkdir.c: Likewise.
3032 * sysdeps/mach/hurd/__mknod.c: Likewise.
3033 * sysdeps/mach/hurd/__open.c: Likewise.
3034 * sysdeps/mach/hurd/__rmdir.c: Likewise.
3035 * sysdeps/mach/hurd/__readlink.c: Likewise.
3036 * sysdeps/mach/hurd/__stat.c: Likewise.
3037 * sysdeps/mach/hurd/__symlink.c: Likewise.
3038 * sysdeps/mach/hurd/__unlink.c: Likewise.
3039 * sysdeps/mach/hurd/__utimes.c: Likewise.
3040 * sysdeps/mach/hurd/bind.c: Likewise.
3041 * sysdeps/mach/hurd/chflags.c: Likewise.
3042 * sysdeps/mach/hurd/connect.c: Likewise.
3043 * sysdeps/mach/hurd/fchdir.c: Likewise.
3044 * sysdeps/mach/hurd/opendir.c: Likewise.
3045 * sysdeps/mach/hurd/sysd-stdio.c: Likewise.
3046 * sysdeps/mach/hurd/truncate.c: Likewise.
3047 * sysdeps/mach/hurd/rename.c: Likewise.
3048 * sysdeps/mach/hurd/getcwd.c: Likewise.
3049 * sysdeps/mach/hurd/chroot.c: Likewise.
3050 * sysdeps/mach/hurd/__chdir.c: Likewise.
3052 * hurd/__setauth.c (_hurd_setauth): Use new authentication
3053 protocol: for each port, create a fresh receive right and pass
3054 send-once rights in the auth calls, then destroy the port.
3055 * hurd/hurdsig.c (reauth_proc): Likewise.
3056 * hurd/dtable.c (reauth_dtable): Likewise.
3058 * hurd/hurdpath.c (__hurd_path_lookup_retry): Don't handle
3059 FS_RETRY_NONE (it's gone). Use new authentication protocol:
3060 create a fresh receive right and pass send-once rights in the auth
3061 calls, then destroy the port.
3063 Mon Aug 29 13:17:39 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
3065 * sysdeps/mach/hurd/__symlink.c (__symlink): Use new
3066 file_set_translator protocol.
3067 * sysdeps/mach/hurd/bind.c (bind): Likewise.
3068 * sysdeps/mach/hurd/__mknod.c (__mknod): Likewise.
3070 * sysdeps/mach/hurd/__pipe.c (__pipe): Use PF_LOCAL instead
3073 Fri Aug 26 01:21:09 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3075 * Makefile ($(objpfx)sysd-dirs): Use sed to remove # comments from
3078 Support for miscellaneous standalone boards (no OS), contributed
3079 by Joel Sherrill (jsherril@redstone-emh2.army.mil), On-Line
3080 Applications Research Corporation.
3081 * sysdeps/standalone: New directory.
3082 * sysdeps/standalone/standalone.h: New file.
3083 * sysdeps/standalone/stdio_lim.h: New file.
3084 * sysdeps/stub/strtsupp.c: New file.
3085 * sysdeps/standalone/filedesc.h: New file.
3086 * sysdeps/posix/{setenv,putenv}.c: Moved to sysdeps/generic.
3087 * sysdeps/unix/getenv.c: Moved to sysdeps/generic.
3088 * sysdeps/unix/morecore.c: Moved to sysdeps/generic.
3089 * sysdeps/posix/sysd-stdio.c: Moved to sysdeps/generic.
3090 * sysdeps/stub/errnos.h: Add ENFILE and EMFILE.
3091 * sysdeps/stub/errlist.c (_sys_errlist): Likewise.
3092 * sysdeps/stub/console.c: New file.
3093 * sysdeps/standalone/__open.c: New file.
3094 * sysdeps/standalone/__read.c: New file.
3095 * sysdeps/standalone/__write.c: New file.
3096 * sysdeps/standalone/__close.c: New file.
3097 * sysdeps/stub/brdinit.c: New file.
3098 * sysdeps/unix/__sbrk.c: Moved to sysdeps/generic.
3099 * sysdeps/standalone/__brk.c: New file.
3100 * sysdeps/standalone/Subdirs: New file
3101 * bare/Makefile: New file (and new directory).
3102 * sysdeps/i960/ffs.c: New file.
3103 * sysdeps/i960/Implies: New file.
3104 * configure.in (os=none): base_os=standalone
3106 Thu Aug 25 23:56:32 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3108 * sysdeps/stub/__sigret.c: Arg is not const.
3109 * signal/sigret.c: Likewise.
3111 Tue Aug 23 14:43:19 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3113 * socket/sys/socket.h (PF_FILE, AF_FILE): Removed (use LOCAL instead).
3114 (PF_XTP, PF_COIP, PF_CNT, PF_RTIP, PF_IPX, PF_SIP, PF_PIP): New
3116 (PF_MAX): Increased to 26.
3117 (pseudo_AF_XTP, AF_COIP, AF_CNT, pseudo_AF_RTIP, AF_IPX, AF_SIP,
3118 pseudo_AF_PIP): New macros.
3119 (MSG_EOR, MSG_TRUNC, MSG_CTRUNC, MSG_WAITALL, MSG_DONTWAIT,
3120 SO_REUSEPORT): New enum constants.
3122 * hurd/hurdsig.c (_hurd_internal_post_signal): If not preempted,
3123 set ACT before checking for SIGCONT. When continuing and
3124 ACT==handle, don't resume SS->thread; record that it is suspended
3125 and in handler-setup code, don't suspend it again.
3127 * sysdeps/mach/hurd/sys/param.h: Include <errno.h> (BSD does).
3129 * sysdeps/mach/hurd/__fork.c: When unchaining old sigstates, check
3130 for SS being head of chain.
3132 Mon Aug 22 00:29:02 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3134 * time/{asia,australasia,europe,northamerica}: New data from ADO.
3136 * hurd/hurdsig.c (abort_rpcs): After destroying MSGING_PORT,
3137 change the return value register in STATE to EINTR.
3138 * sysdeps/mach/mips/thread_state.h (SYSRETURN): New macro.
3139 * sysdeps/mach/i386/thread_state.h (SYSRETURN): New macro.
3141 * hurd/hurdsig.c (default_sigaction): New function.
3142 (_hurd_thread_sigstate): Use it to initialize SS->actions.
3143 Initialize rest of new sigstate by hand, don't just bzero it.
3145 * hurd/hurdsig.c (_hurd_internal_post_signal): Initialize
3146 THREAD_STATE.set to zero.
3148 * posix/execl.c: Use ARG instead of PATH in va_start.
3150 * sysdeps/mach/hurd/__fork.c: In child fork, unchain stale
3151 structures from _hurd_sigstates first, and only free them after
3152 other processing is complete.
3154 * hurd/hurdpath.c (__hurd_path_lookup_retry): For malformed number
3155 in magic "fd/N", return ENOENT instead of treating it as bogus
3158 * sysdeps/mach/hurd/__chdir.c: After __path_lookup on arg, use
3159 __hurd_path_lookup of empty file name on resultant port to check
3160 that it's a directory.
3161 * sysdeps/mach/hurd/chroot.c: Likewise.
3162 * sysdeps/mach/hurd/fchdir.c: Use __hurd_path_lookup of empty file
3163 name on FD port to check that it's a directory and acquire a
3164 reference at the same time.
3165 * hurd/fchroot.c: Likewise.
3167 * hurd/hurdpid.c (init_pids): Add gratuitous self reference to
3170 * hurd/hurdpath.c: Include <hurd/term.h> for cttyid opening rpc.
3171 (__hurd_path_lookup_retry): Fixed typo.
3173 * sysdeps/mach/hurd/i386/__sigret.c: Push state onto the user's
3174 stack, switch to it, pop and return.
3176 Major rewrite of Hurd signal delivery.
3177 * hurd/hurd/signal.h (struct hurd_sigstate): New member `context'.
3178 * sysdeps/mach/hurd/i386/trampoline.c: Include "thread_state.h"
3179 instead of <mach/thread_status.h>.
3180 (struct mach_msg_trap_args): New type.
3181 (trampoline): Function removed.
3182 (_hurd_setup_sighandler): Take struct hurd_sigstate * arg instead
3183 of FLAGS and SIGALTSTACK args; take new flag arg RPC_WAIT; use
3184 struct machine_thread_all_state * for STATE arg. New declared
3185 labels `trampoline', `rpc_wait_trampoline' mark asm code at end of
3186 function (after return). Add another struct sigcontext * to
3187 STACKFRAME after the first one, for the arg to __sigreturn. If
3188 SS->context is set, fill registers in SCP from that instead of
3189 STATE, and reset SS->INTR_PORT from it. Use memcpy to copy from
3190 STATE into SCP; the structures are congruent. If RPC_WAIT is set,
3191 set up to use rpc_wait_trampoline and frob args to mach_msg_trap
3192 syscall in progress so that it will retry the receive operation
3194 {rpc_wait_trampoline, trampoline}: New trampoline code.
3195 (_hurd_rcv_interrupted_p): New function.
3196 * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
3197 * hurd/hurdsig.c (write_corefile): Take new arg SIGERROR. Use
3198 _hurdsig_getenv instead of getenv. Use dir_mkfile to create an
3199 unlinked node for the core file; then use dir_link to name it,
3200 only if core_dump_task succeeded.
3201 (post_reply): New function.
3202 (abort_thread): New function.
3203 (interrupted_reply_port_location): New function.
3204 (interrupted_reply_port): Function removed (replaced by above).
3205 (abort_all_rpcs): Take struct machine_thread_all_state * for STATE.
3206 (abort_rpcs): Likewise.
3207 Return int, nonzero iff interrupt_operation RPC was done. Take
3208 args for reply port and its port type; call abort_thread instead
3209 of doing thread_abort and thread_get_state. Call
3210 _hurdsig_rcv_interrupted_p instead of _hurd_thread_state_msging_p.
3211 Use __interrupt_operation mig stub instead of manual packing. If
3212 we destroy the msging port, and it is the thread's mig reply port,
3213 clear its reply port slot. Fix inverted SA_RESTART test.
3214 (_hurd_internal_post_signal): Take new arg SIGERROR.
3215 Remove `cont' from ACT enum; SIGCONT processing is independent of
3216 handling. Removed local function `check_pending'; add `reply'.
3217 Use mask macro STOPSIGS instead of alternation to check for stop
3218 signals. Process SIGCONT and do continuation before examining the
3219 handler. Use SS->pending_data instead of SS->sigcodes. When
3220 dying, don't lock _hurd_siglock around __proc_dostop call. When
3221 dying, reply immediately after stopping user threads. When
3222 handling, notice return from abort_rpcs and pass it to
3223 _hurd_setup_sighandler; also pass SS instead of its components.
3224 Set SCP->sc_error from SIGERROR; clear SS->intr_port after saving
3225 it in SCP->sc_intr_port. For pending checks, use macro PENDING
3226 and goto pending if returns true.
3227 (_S_sig_post): Eliminate unnecessary variable WIN; pass SIGERROR
3228 value of zero to _hurd_internal_post_signal.
3229 (_hurdsig_getenv): New function.
3230 * sysdeps/mach/hurd/i386/__sigret.c (sp): New global register
3232 (__sigreturn): Arg is not const.
3233 After restoring SCP->sc_mask, check for pending signals (newly
3234 unblocked); if any, set SS->context to SCP, clear SS->intr_port,
3235 and send sig_post to the signal thread to deliver the pending
3236 signals. Point SP directly at &SCP->sc_gs and used popa;iret to
3237 restore. (This does not actually work; iret is unhelpful.)
3238 * sysdeps/mach/hurd/mips/__sigret.c (__sigreturn): Arg is not
3239 const. After restoring SCP->sc_mask, check for pending signals
3240 (newly unblocked); if any, set SS->context to SCP, clear
3241 SS->intr_port, and send sig_post to the signal thread to deliver
3242 the pending signals. Don't write $1 value into the user stack.
3243 Instead, write it into the word just past SCP->sc_pc; then point
3244 $1 at SCP->sc_pc and use `op_sigreturn' pseudo-instruction to
3245 restore the PC and $1 from that.
3247 Fri Aug 19 15:39:54 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3249 * configure.in (machine): Grok i586 -> i386/i586.
3250 * sysdeps/i386/pentium: Directory renamed to sysdeps/i386/i586.
3252 * hurd/hurd.h (_hurd_pids_changed_stamp, _hurd_pids_changed_sync):
3254 * hurd/hurdpid.c (_S_proc_newids): Last thing, increment
3255 _hurd_pids_changed_stamp and broadcast on _hurd_pids_changed_sync.
3256 * sysdeps/mach/hurd/__setpgrp.c: After proc_setpgrp succeeds and
3257 PID is ourself, wait on _hurd_pids_changed_sync until
3258 _hurd_pids_changed_stamp increases from the value before the RPC.
3259 * sysdeps/mach/hurd/__setsid.c: After proc_setsid succeeds, wait
3260 on _hurd_pids_changed_sync until _hurd_pids_changed_stamp
3261 increases from the value before the RPC.
3263 * posix/sys/wait.h [GCC>=2.6] (__WAIT_STATUS): Define this with
3264 typedef as a union with the new (GCC 2.6.1) `transparent_union'
3267 * stdio/printf_fp.c (MPNSIZE): New macro, computed from DBL_MAX_EXP.
3268 (MPN_VAR): Use that for size of bignums.
3270 * sysdeps/mach/hurd/__kill.c: For pgrp, ignore ESRCH error from
3271 kill_pid of individual pids, unless from all of them.
3272 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
3274 Fri Aug 19 00:54:50 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3276 * configure.in (INSTALL): Quote this shell goop from m4.
3278 * sysdeps/stub/start.c (errno, __environ): Define these variables.
3280 * sysdeps/stub/errnos.h (ENOMEM, EACCES): New macros.
3281 * sysdeps/stub/errlist.c (_sys_errlist): Add strings for all
3282 macros defined in stub/errnos.h.
3283 (_sys_nerr): Use value computed from sizeof (_sys_errlist).
3285 Wed Aug 17 15:32:39 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3287 * hurd/hurdmsg.c (_S_io_select_done): Take poly arg for notify
3290 * mach/mach_init.h (vm_page_size): Remove macro defn.
3292 * hurd/Makefile (distribute): Added STATUS.
3294 * sysdeps/mach/thread_state.h: Include <string.h> and
3295 <mach/mach_interface.h>.
3297 * sysdeps/mach/hurd/__select.c: Pass port-type arg to io_select.
3299 * sysdeps/mach/hurd/__fork.c: Include "hurdmalloc.h", so we use
3302 * sysdeps/mach/hurd/__select.c (SELECT_DONE_MSGID): Correct value
3304 (__select): Don't set PORT until just before sending io_select calls.
3305 Pass proper send-size for io_select_done reply message. Clear the
3306 reply port slot in io_select_done reply message header.
3308 * sysdeps/mach/hurd/__kill.c: Rename parameter to ARG_SIG, make
3309 SIG a local variable initialized to that (this to work around a
3311 Initialize PIDS and NPIDS properly for proc_getpgrppids call.
3313 * signal/signal.h (__sigreturn, sigreturn): Arg is not const.
3315 * hurd/hurdpath.c (__hurd_path_lookup_retry): For REAUTH or NORMAL
3316 with empty retryname, treat like NONE (which is now obsolete)
3317 after reauthentication. For magic "tty", use new
3318 termctty_open_terminal RPC on cttyid port.
3320 Tue Aug 16 01:58:21 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3322 * sysdeps/mach/hurd/__kill.c (kill_pid): Make non-inline. Treat
3323 null msgport like EPERM return from sig_post.
3324 * hurd/hurdkill.c (_hurd_sig_post): Treat null msgport like EPERM.
3326 * sysdeps/mach/thread_state.h (machine_get_state,
3327 machine_get_basic_state): Initialize count arg before calling
3330 * hurd/hurdpath.c (__hurd_path_lookup_retry): Initialize ERR to zero.
3332 * hurd/hurdpath.c (__hurd_path_lookup_retry): Grok magic "tty".
3334 * hurd/hurd/signal.h (struct hurd_sigstate): Replace `sigcodes' with
3336 (_hurd_raise_signal, _hurd_setup_sighandler): Update prototypes.
3337 (_hurd_thread_state_msging_p): Don't declare.
3338 (_hurdsig_rcv_interrupted_p): Declare this instead.
3339 (HURD_EINTR_RPC): Invert sense of restart test.
3341 * hurd/hurdrlimit.c (_hurd_rlimits): Add braces to initializer.
3343 * hurd/catch-exc.c: Unlock _hurd_siglock when done with it. Use
3344 __spin_lock_locked on `held' member instead of __mutex_lock_locked.
3346 * sysdeps/mach/thread_state.h: New file.
3347 * sysdeps/mach/i386/thread_state.h: Don't #include
3348 <mach/thread_status.h>. Add #include_next <thread_state.h> at end.
3349 * sysdeps/mach/mips/thread_state.h: Likewise.
3351 * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Lay out
3352 corresponding to i386_thread_state and i386_float_state.
3353 * sysdeps/mach/hurd/mips/sigcontext.h (sc_mips_thread_state,
3354 sc_mips_exc_state, sc_mips_float_state): New macros, marking
3355 members that correspond to thread_state.h structs.
3357 Mon Aug 15 17:21:20 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3359 * Rules [cross-compiling=yes] (tests): Depend on the binaries, not
3362 * Makerules: Replace uses of HOST_CC with BUILD_CC and
3363 native-CFLAGS with BUILD_CFLAGS.
3365 * sysdeps/unix/Makefile (mk-local_lim, make-ioctls): Replace uses
3366 of CC with BUILD_CC and native-CFLAGS with BUILD_CFLAGS.
3367 * sysdeps/unix/sysv/sysv4/solaris2/Makefile: Replace uses of
3368 HOST_CC with BUILD_CC and native-CFLAGS with BUILD_CFLAGS.
3369 * sysdeps/posix/Makefile: Likewise.
3371 * Makeconfig (+cc_version): Variable and associated code removed.
3372 (HOST_CC): Use BUILD_CC instead; all uses changed.
3373 (cross-compiling): Set to no if not the case.
3375 * sysdeps/m68k/fpu/__math.h: Replace all uses of __const with
3378 * Makerules (distinfo-vars): Remove $@.new first thing. Write
3379 elided-routines instead of sysdep_routines. After writing
3380 variables, append to sources from $(elided-routines).
3381 * sysdeps/vax/Makefile (elided-routines): New variable (append to
3383 (aux, routines): Don't set these.
3384 (sysdep_routines): Append things here instead.
3385 * sysdeps/generic/Makefile (elided-routines): New variable (append
3387 (aux): Don't set this.
3388 * sysdeps/generic/Makefile (routines): Don't set this.
3389 (sysdep_routines): Append exp__E and log__L here instead.
3391 * time/test_time.c (main): Set TBUF.tm_isdst to -1 before calling
3394 * stdlib/stdlib.h (atof, atoi, atol, random, srandom, setstate,
3395 initstate, mblen): Never define as macros.
3396 [__OPTIMZE__ && __GNUC__ >= 2]: Define those functions as extern
3399 * hurd/hurdpath.c (__hurd_path_lookup_retry): For magic "fd/%u",
3400 lose on random chars after number; for / after number, retry
3403 * hurd/hurdpath.c (pathtrans_error): New function; filters errors
3404 from dir_pathtrans: EOPNOTSUPP and MIG_BAD_ID become ENOTDIR.
3405 (__hurd_path_lookup, __hurd_path_lookup_retry): Call it.
3407 Thu Aug 11 11:59:33 1994 Noel Cragg (noel@churchy.gnu.ai.mit.edu)
3409 * time/mktime.c (_mktime_internal): Add code to normalize value of
3410 TM_ISDST to -1, 0, or 1 so code doesn't loop forever.
3412 Thu Aug 11 02:26:37 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3414 * resolv/Makefile (subdir): Set to resolv, not res.
3416 * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Pass ERR to
3419 * sysdeps/mach/i386/thread_state.h (struct machine_thread_all_state):
3420 Add new member `fpu'.
3422 Wed Aug 10 23:39:49 1994 Karl Heuer <kwzh@hal.gnu.ai.mit.edu>
3424 * malloc/mcheck.c (mcheck): Remove obsolete extern declaration.
3426 * malloc/mcheck.c (flood): Add an arg.
3427 (freehook, mallochook, reallochook): Use different flood bytes to
3428 distinguish freed space from uninitialized allocated space.
3430 * malloc/mtrace.c (mtrace): Guard against being called twice.
3431 (muntrace): New function, to turn off tracing.
3432 * malloc/malloc.h: Declare it.
3434 Wed Aug 10 02:47:24 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3436 * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Renamed
3437 member `sc_err' to `sc_error'.
3439 * hurd/hurd-raise.c: Take new arg SIGERROR. Set
3440 SS->pending_data[SIGNO] from SIGCODE and SIGERROR instead of
3441 setting SS->sigcodes[SIGNO].
3443 * Makeconfig (+includes): Use text manipulation to avoid
3444 conditional for $(..). Append $(last-includes).
3445 * sysdeps/mach/hurd/Makefile (last-includes): Append
3446 -I.../libthreads to this.
3447 (includes): Not to this.
3449 * hurd/hurd/fd.h (_hurd_fd_error): Pass ERR to _hurd_raise_signal.
3451 * stdlib/stdlib.h [__OPTIMIZE__] (cfree, rand, srand, random,
3452 srandom, initstate, setstate): Macros removed.
3454 * malloc/mcheck.c (reallochook): Fixed typo.
3455 (mabort) [! __GNU_LIBRARY__]: Use fprintf and abort instead of
3458 * hurd/Makefile (sig): Remove msging-p; that function will go in
3460 * sysdeps/stub/msging-p.c: File removed.
3461 * sysdeps/mach/hurd/mips/msging-p.c: File removed.
3462 * sysdeps/mach/hurd/i386/msging-p.c: File removed.
3464 Tue Aug 9 19:20:29 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3466 * hurd/catch-exc.c: Get error code from _hurd_exception2signal and
3467 pass it to _hurd_internal_post_signal. Search for SS manually
3468 rather than using _hurd_thread_sigstate, to avoid locks.
3470 * sysdeps/mach/hurd/mips/msging-p.c: Fetch port argument from
3471 register $8 (t0) instead of stack. Change type of STATE arg to
3472 `struct machine_thread_all_state *'.
3474 * inet/inet_netof.c: Incorporated from BSD 4.4-Lite.
3475 * inet/inet_net.c: Incorporated from BSD 4.4-Lite.
3477 Tue Aug 9 18:28:40 1994 Karl Heuer <kwzh@hal.gnu.ai.mit.edu>
3479 * malloc/mtrace.c (tr_mallochook, tr_reallochook): Don't assume
3480 %lx format matches size_t arg.
3481 * malloc/mtrace.c: Enable file- and line-number tracing.
3482 * malloc/mtrace.awk: Postprocess that trace information.
3484 * malloc/mcheck.c (flood): New function.
3485 (freehook, mallochook, reallochook): Initialize new space and
3486 freed space to non-zero garbage, to help find code that makes
3487 unwarranted assumptions.
3489 Mon Aug 8 01:20:56 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3491 * sysdeps/mach/hurd/mips/exc2signal.c (_hurd_exception2signal): Take
3492 new arg `int *error'; set it.
3493 * sysdeps/mach/hurd/i386/exc2signal.c: Likewise.
3494 * sysdeps/stub/exc2signal.c: Likewise.
3495 * hurd/hurd/signal.h (_hurd_exception2signal): Take new arg
3497 (_hurd_internal_post_signal): Take new arg `int error'.
3499 * res: Directory renamed to resolv.
3500 * sysdeps/unix/inet/Subdirs: Change res to resolv.
3504 * sysdeps/sparc/divrem.m4 (DEVELOP_QUOTIENT_BITS): Use ** instead of
3505 ^ for exponentiation. Pinard says it is more portable.
3507 * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Added
3509 * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Move
3510 sc_err to front machine-independent section; change its comment.
3512 * sysdeps/stub/thread_state.h (struct machine_thread_all_state): New
3514 * sysdeps/mach/i386/thread_state.h: Likewise.
3515 * sysdeps/mach/mips/thread_state.h: Likewise.
3517 * sysdeps/mach/i386/Implies: File removed; it was superfluous.
3519 * sysdeps/sparc/divrem.m4 (Lgot_result): Add more quotes in ifelse.
3521 * configure.in (fpu_dirs): Fixed typo.
3523 Sun Aug 7 01:13:04 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3525 * inet/inet_lnaof.c: Incorporated from BSD 4.4-Lite.
3526 * inet/inet_mkadr.c: Incorporated from BSD 4.4-Lite.
3527 * inet/inet_addr.c: Incorporated from BSD 4.4-Lite.
3528 * res/Makefile (headers): Use only arpa/nameser.h, not arpa/*.h.
3529 * res/arpa/inet.h: Moved to inet/arpa/inet.h.
3530 * inet/arpa/inet.h: Incorporated from BSD 4.4-Lite.
3532 * misc/init-misc.c: New file.
3533 * misc/Makefile (aux): Added init-misc.
3535 * Makeconfig (localtime-file): Use $(sysconfdir) instead of
3538 * Makerules (install-bin-nosubdir): Use $(install-bin) instead of
3540 (install-sbin-nosubdir): New target.
3541 (install-no-libc.a-nosubdir): Depend on that.
3543 * configure.in ($nfp check): Iterate through $mach and use all
3544 fpu/ dirs that exist.
3546 Wed Aug 3 02:46:03 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3548 * sysdeps/mach/hurd/mips/sigcontext.h: Rearranged structure so
3549 machine-dependent portion is laid out like `struct mips_thread_state;
3550 struct mips_exc_state; struct mips_float_state;'.
3554 * sysdeps/mach/hurd/mips/__sigret.c: Compare *reply_port to
3555 MACH_PORT_NULL, not implicit zero.
3556 (restore_gpr): Use N-1 as subscript into sc_gpr (sc_gpr[0] => $1).
3557 Before general regs, restore from sc_mdlo and sc_mdhi. Don't
3558 treat sp, fp specially; use restore_gpr for them too. For final
3559 return, store user $1 value beyond top of user stack ahead of
3560 time; then use $1 to hold the user PC, and restore it from the
3561 stack in the delay slot.
3563 Tue Aug 2 21:03:51 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3565 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
3566 Copy TS to SCP all at once.
3567 * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): sc_gpr
3568 has 31 elts; sc_gpr, sc_pc, sc_mdlo, sc_mdhi are arranged in that
3569 order to mimic struct mips_thread_state.
3571 * Make-dist (all-headers): Instead of removing rpcsvc/%, use
3572 $(wildcard) to remove all headers that don't exist at top level,
3573 but preserve top-level $(headers).
3575 * Make-dist (sysdep_dirs): Avoid directories called RCS.
3576 (%/configure): Pass -f to mv.
3578 * sysdeps/mips/setjmp.S [__sgi__]: Use `fp' instead of `$fp'.
3580 Mon Aug 1 20:12:23 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3582 * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Add
3583 members sc_mdlo, sc_mdhi.
3584 * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
3587 Sun Jul 31 14:21:16 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3589 * time/mktime.c: Remove errant comment end sequence.
3591 * termios/sys/ttydefaults.h: Incorporated from BSD 4.4-Lite.
3592 * sysdeps/vax/DEFS.h: Incorporated from BSD 4.4-Lite.
3593 * sysdeps/unix/bsd/sys/reboot.h: Incorporated from BSD 4.4-Lite.
3594 * sysdeps/unix/bsd/bsd4.4/errnos.h: Updated from 4.4-Lite sys/errno.h.
3595 [__USE_BSD] (EAUTH, ENEEDAUTH, ELAST): New macros.
3596 * sysdeps/ieee754/support.c: Incorporated from BSD 4.4-Lite.
3597 * sysdeps/ieee754/cbrt.c: Incorporated from BSD 4.4-Lite.
3598 * sysdeps/generic/trig.h: Incorporated from BSD 4.4-Lite.
3599 * sysdeps/generic/tanh.c: Incorporated from BSD 4.4-Lite.
3600 * sysdeps/generic/tan.c: Incorporated from BSD 4.4-Lite.
3601 * sysdeps/generic/sinh.c: Incorporated from BSD 4.4-Lite.
3602 * sysdeps/generic/sincos.c: Incorporated from BSD 4.4-Lite.
3603 * sysdeps/generic/pow.c: Incorporated from BSD 4.4-Lite.
3604 * sysdeps/generic/mathimpl.h: Incorporated from BSD 4.4-Lite.
3605 Add back __izing #define's, except for exp__E and log__L, which
3606 have been renamed with __s in 4.4-Lite.
3607 * sysdeps/generic/log__L.c: Incorporated from BSD 4.4-Lite.
3608 * sysdeps/generic/log1p.c: Incorporated from BSD 4.4-Lite.
3609 * sysdeps/generic/log.c: Incorporated from BSD 4.4-Lite.
3610 * sysdeps/generic/fmod.c: Incorporated from BSD 4.4-Lite.
3611 * sysdeps/generic/exp__E.c: Incorporated from BSD 4.4-Lite.
3612 * sysdeps/generic/exp.c: Incorporated from BSD 4.4-Lite.
3613 * sysdeps/generic/cosh.c: Incorporated from BSD 4.4-Lite.
3614 * sysdeps/generic/atanh.c: Incorporated from BSD 4.4-Lite.
3615 * sysdeps/generic/atan2.c: Incorporated from BSD 4.4-Lite.
3616 * sysdeps/generic/asinh.c: Incorporated from BSD 4.4-Lite.
3617 * sysdeps/generic/asincos.c: Incorporated from BSD 4.4-Lite.
3618 * misc/getusersh.c: Incorporated from BSD 4.4-Lite.
3619 (initshells): Reapply fix of 16 Nov 1992.
3620 * sysdeps/generic/acosh.c: Incorporated from BSD 4.4-Lite.
3621 * sysdeps/generic/__expm1.c: Incorporated from BSD 4.4-Lite.
3622 * misc/ttyslot.c: Incorporated from BSD 4.4-Lite.
3623 * misc/ttyent.h: Incorporated from BSD 4.4-Lite.
3624 * misc/syslog.c: Incorporated from BSD 4.4-Lite.
3625 * misc/paths.h: Incorporated from BSD 4.4-Lite.
3626 * misc/getttyent.c: Incorporated from BSD 4.4-Lite.
3627 * misc/sys/syslog.h: Incorporated from BSD 4.4-Lite.
3628 Don't include <machine/ansi>; define _BSD_VA_LIST_ to __gnuc_va_list.
3629 * inet/rexec.c: Incorporated from BSD 4.4-Lite.
3630 * inet/rcmd.c: Incorporated from BSD 4.4-Lite.
3631 (rcmd): Reapply select max fd fix of 3 Jun 1994.
3632 * inet/pathnames.h: File removed.
3633 * inet/inet_ntoa.c: Incorporated from BSD 4.4-Lite.
3634 * inet/getsrvbypt.c: Incorporated from BSD 4.4-Lite.
3635 * inet/getsrvbynm.c: Incorporated from BSD 4.4-Lite.
3636 * inet/getservent.c: Incorporated from BSD 4.4-Lite.
3637 * inet/getprtname.c: Incorporated from BSD 4.4-Lite.
3638 * inet/getprtent.c: Incorporated from BSD 4.4-Lite.
3639 * inet/getproto.c: Incorporated from BSD 4.4-Lite.
3640 * inet/protocols/timed.h: Incorporated from BSD 4.4-Lite.
3641 * inet/protocols/talkd.h: Incorporated from BSD 4.4-Lite.
3642 * inet/protocols/rwhod.h: Incorporated from BSD 4.4-Lite.
3643 * inet/protocols/routed.h: Incorporated from BSD 4.4-Lite.
3644 * inet/arpa/tftp.h: Incorporated from BSD 4.4-Lite.
3645 * inet/arpa/telnet.h: Incorporated from BSD 4.4-Lite.
3646 * inet/arpa/ftp.h: Incorporated from BSD 4.4-Lite.
3648 Fri Jul 29 01:50:37 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3652 * res/Makefile (routines): Add missing backslash.
3654 * sysdeps/mach/hurd/mips/__sigret.c: Rename variable AT (which is
3655 the register's name) to SCPREG. Fix some SCP references in
3656 register loads to use SCPREG instead. Load SCPREG->sc_pc into $24
3657 and jump to it, restoring $at in the delay slot. This still
3658 leaves $24 clobbered.
3660 * sysdeps/mach/hurd/mips/sigcontext.h: Use `unsigned int'
3661 consistently for port names.
3663 * sysdeps/mach/hurd/mips/trampoline.c: Don't set up args on the
3664 stack; pass them in registers.
3666 * Makefile (%/configure, sysd-dirs, munch-init.c): Pass -f to mv.
3668 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Use the
3669 __attribute__ defn for GCC>=2.7, not >=2.6. Use the keyword defn
3670 only for GCC<2.5. Use __volatile__ and __const__ instead of
3671 noreturn and const for namespace safety.
3673 * sysdeps/mach/hurd/__readlink.c: If BUF is null, return the size
3676 Thu Jul 28 17:17:11 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3678 * res/netdb.h: Declare h_errno.
3680 * res: New directory, for all code incoporated from BIND.
3681 * inet/arpa/inet.h, inet/arpa/resolv.h: Moved to res/arpa.
3682 * inet/sys/bitypes.h: Moved to res/sys.
3683 * inet/gethstnamad.c: Renamed to res/gethnamaddr.c.
3684 * inet/getnetbyad.c: Renamed to res/getnetbyaddr.c.
3685 * inet/getnetbynm.c: Renamed to res/getnetbyname.c.
3686 * inet/res_mkqry.c: Renamed to res/res_mkquery.c.
3687 * inet/Makefile (headers): Removed netdb.h, resolv.h, and
3689 (routines): Removed res_comp res_debug res_init res_mkqry res_query
3690 res_send gethstnmad sethostent.
3691 (aux, distribute): Variables removed.
3692 * res/getnetnamadr.c, res/nsap_addr.c: New files.
3693 * All .c and .h in res/ updated from BIND-4.9.3-BETA9.
3694 * res/Makefile: New file.
3695 * sysdeps/unix/inet/Subdirs: Added res.
3697 * Makerules: Replace all uses of `.dep' suffix with `.d' suffix.
3698 (+make-deps): Replace `.dtm' suffix with `.T' suffix.
3700 Wed Jul 27 06:13:30 1994 Noel Cragg (noel@churchy.gnu.ai.mit.edu)
3702 * time/mktime.c: Add code to support tm_isdst flag in struct tm.
3703 Fixed bug with handling of DST sections.
3705 Mon Jul 25 17:17:28 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3707 * sysdeps/sparc/divrem.m4 (Lgot_result) [S=true]: Only test SIGN
3708 and negate for [OP=div].
3710 * socket/sys/socket.h (__SOCKADDR_ARG): New macro; for GCC 2.6 and
3711 later, a funky union similar to __WAIT_STATUS in <sys/wait.h>.
3712 (bind, getsockname, connect, getpeername, sendto, recvfrom,
3713 accept): Use __SOCKADDR_ARG in place of `struct sockaddr *' in
3716 * posix/glob/configure.bat: New file.
3717 * posix/Makefile (glob.tar): Add glob/configure.bat.
3719 * sysdeps/unix/opendir.c: Fail with ENOENT when passed "".
3720 Check STATBUF and fail with ENOTDIR if it's not a directory.
3722 Mon Jul 25 15:44:18 1994 Noel Cragg (noel@churchy.gnu.ai.mit.edu)
3724 * time/mktime.c: Fix range-checking bug in NORMALIZE macro.
3726 Fri Jul 22 02:42:44 1994 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3728 * sysdeps/unix/readdir.c: Search for NUL character to limit
3729 d_namlen. Some systems return very bogus values.
3731 * sysdeps/unix/sysv/sysv4/i386/sysdep.h (PSEUDO): Remove ret at end.
3733 * mach/Makefile (mach-shortcuts): Filter out device_writev_request.
3735 * limits.h (_LIBC_LIMITS_H_): Don't define if already defined.
3736 [__GNUC__ < 2]: Only protect this section from multiple inclusion.
3738 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3739 Declare SIGSP volatile.
3741 * hurd/hurdinit.c (_hurd_setproc): Fixed arg in
3742 _hurd_pgrp_changed_hook decl.
3744 * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): New function.
3745 (HURD_EINTR_RPC): Use it instead of _hurd_self_sigstate followed by
3746 __mutex_unlock; this thread might already hold the lock.
3748 Wed Jul 20 18:53:54 1994 Michael I Bushnell <mib@geech.gnu.ai.mit.edu>
3750 * hurd/fd-read.c (_hurd_fd_read): Test for EBACKGROUND in
3751 do loop was reversed.
3753 * hurd/hurdpath.c (__hurd_path_lookup): Skip over initial slashes
3754 before calling __dir_pathtrans.
3756 Tue Jul 19 15:28:39 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3758 * mach/Makefile (user-interfaces): Add mach/mach4.
3759 (mach-shortcuts): Match all syscall_% again; the missing ones are in
3762 * mach/Machrules (%.ir): Match SimpleRoutine as well as Routine
3765 * sysdeps/mach/hurd/Makefile ($(hurd)/errlist.c): Use -f flag to mv.
3767 Sat Jul 16 00:42:30 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3769 * Makerules [install]: Rewrite this rule to use install-bin.
3770 [install-sbin]: New rule parallel to that one, installs in $(sbindir).
3772 * time/Makefile (install-sbin): Set this instead of install.
3773 * sunrpc/Makefile (install-others): Use $(sysconfdir)/rpc instead
3775 (install-bin): Set this instead of install; set it to just rpocgen.
3776 (install-sbin): Put rpcinfo and portmap here instead.
3777 ($(sysconfdir)/rpc): Rule renamed from $(etcdir)/rpc.
3778 (defines): Rename it in _PATH_RPC defn here too.
3780 * posix/Makefile (install-bin): Set this instead of install.
3782 * Makeconfig (datadir): Default to $(prefix)/share, not $(prefix)/lib.
3783 (sbindir): New variable.
3784 (sysconfdir): Variable renamed from etcdir.
3786 * sysdeps/unix/bsd/sun/signum.h: New file; no SIGINFO, SIGLOST is 29.
3788 * sysdeps/unix/sysv/sco3.2.4/uname.S: New file from Scott Bartram.
3790 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Include alloca.h.
3792 * configure.in (INSTALL): If it is $srcdir/install.sh after
3793 AC_PROG_INSTALL, reset it to '$(..)./install.sh'.
3795 * sysdeps/mach/hurd/__ioctl.c (io2mach_type): Move macro defn before
3797 (__ioctl): Fix swapped args to __sigismember; remove unused variable.
3799 * sysdeps/mach/hurd/send.c: Fix portsPoly arg to __socket_send.
3800 * sysdeps/mach/hurd/sendto.c: Likewise.
3802 * sysdeps/mach/hurd/recv.c: Pass &BUFP, not BUFP.
3803 * sysdeps/mach/hurd/recvfrom.c: Likewise.
3805 * sysdeps/mach/hurd/connect.c: Include <hurd/ifsock.h>.
3807 * sysdeps/mips/dec/bytesex.h: New file.
3808 * sysdeps/mips/p40/bytesex.h: New file.
3810 Fri Jul 15 23:12:06 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3812 * posix/sys/types.h (u_quad, quad): Renamed to &_t.
3813 * posix/gnu/types.h [__GNUC__] (__u_quad_t, __quad_t, __qaddr_t):
3814 New typedefs, using long long int and derivatives.
3815 [! __GNUC__] (__u_quad, __quad): Renamed to &_t.
3816 (__fsid_t): Make this always be __u_quad_t.
3818 * time/sys/time.h (struct timespec): New type.
3819 (TIMEVAL_TO_TIMEPSEC, TIMESPEC_TO_TIMEVAL): New macros.
3821 Thu Jul 14 15:43:39 1994 Brendan Kehoe (brendan@zen.org)
3823 * sysdeps/unix/sysv/sysv4/sysinfo.S: New file.
3824 * sysdeps/unix/sysv/sysv4/Dist: Add sysinfo.S.
3825 * sysdeps/unix/sysv/sysv4/Makefile: Add sysinfo to sysdep_routines
3826 if we're inside misc.
3827 * sysdeps/unix/sysv/sysv4/sethostnam.c: New file.
3828 * sysdeps/unix/sysv/sysv4/__gethstnm.c: New file.
3830 * sysdeps/unix/sysv/sysv4/solaris2/fsync.S: New file.
3832 Tue Jul 12 00:57:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3834 * mach/Makefile (mach-shortcuts): Only match known Mach
3835 subsystems: vm, task, mach_port, and thread.
3837 Mon Jul 11 20:18:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3839 * hurd/intr-rpc.defs, hurd/intr-rpc.awk: New files.
3840 * hurd/Makefile (user-MIGFLAGS): Add -imacros intr-rpc.defs.
3841 (transform-user-stub): New canned sequence.
3842 (transform-user-stub-output): New variable.
3843 Make the .ustamp files depend on intr-rpc.awk.
3845 * mach/Machrules (%.ir): Cull the RPC names from the preceding
3846 comment rather than the definition, so we don't see any userprefix.
3847 (transform-user-stub-output): New variable.
3848 (%.ustamp: %.defs): Invoke $(transform-user-stub) inside for loop.
3849 Use $(transform-user-stub-output) in place of `tmp' in arg to
3852 * mach/Makefile [! mach-shortcuts] (user-interfaces): Also filter
3853 out device/device_request.
3855 Mon Jul 11 17:50:14 1994 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu)
3857 * sysdeps/unix/sysv/sysv4/Makefile: Put the sys-sig.S stuff in
3858 here, rather than in .../sysv4/solaris2/sparc/Makefile.
3859 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile: Removed the
3862 Sun Jul 10 19:04:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3864 * sysdeps/mach/hurd/bind.c: Call __hurd_invoke_translator.
3866 * hurd/hurd.h (__hurd_invoke_translator, hurd_invoke_translator):
3868 * hurd/Makefile (routines): Add invoke-trans.
3869 * hurd/invoke-trans.c (__hurd_invoke_translator): New file.
3870 * hurd/hurdsyms.c (hurd_invoke_translator): New alias.
3872 * hurd/hurdpath.c (__hurd_path_lookup_retry): New function.
3873 * hurd/hurdsyms.c (hurd_path_lookup_retry: New alias.
3874 * hurd/hurd.h (__hurd_path_lookup_retry, hurd_path_lookup_retry):
3877 * hurd/hurd/fd.h (_hurd_fd_error_signal): Return SIGLOST for
3880 * time/strftime.c: Make %j value 1-origin instead of 0-origin.
3882 Sat Jul 9 02:31:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3884 * gnu-stabs.h (__SYMBOL_PREFIX): New macro, based on NO_UNDERSCORES.
3885 Use it in all macros instead of explicit leading underscores.
3886 Removed all [! __STDC__] definitions.
3888 * sysdeps/mach/hurd/mips/trampoline.c: New file.
3889 * sysdeps/mach/hurd/mips/sigcontext.h: New file.
3890 * sysdeps/mach/hurd/mips/longjmp-ts.c: New file.
3891 * sysdeps/mach/hurd/mips/msging-p.c: New file.
3892 * sysdeps/mach/hurd/mips/longjmp-ctx.c: New file.
3893 * sysdeps/mach/hurd/mips/init-fault.c: New file.
3894 * hurd/mach/hurd/mips/__sigret.c: New file.
3895 * sysdeps/mach/hurd/mips/exc2signal.c: New file.
3896 * sysdeps/mach/mips/thread_state.h: New file.
3897 * sysdeps/mach/mips/machine-sp.h: New file.
3898 * sysdeps/mach/mips/machine-lock.h: New file.
3899 * sysdeps/mach/mips/sysdep.h: New file.
3901 * mach/Makefile (mach-syscalls.mk): Snarf 3rd arg from kernel_trap.
3902 ($(mach-syscalls:%=__%.S): Emit kernel_trap instead of SYSCALL_TRAP.
3903 * mach/syscalls.awk: Print nargs-$1 = $3 for each line.
3904 * sysdeps/mach/sysdep.h: Include <mach/machine/syscall_sw.h>.
3905 * sysdeps/mach/i386/sysdep.h (ENTRY, SYSCALL_TRAP): Macros removed.
3907 * sysdeps/mach/i386/machine-lock.h: Use __volatile in place of
3908 volatile to work with -traditional.
3910 Fri Jul 8 21:06:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3912 * hurd/hurdsig.c (_hurd_internal_post_signal): For stop signals,
3913 clear pending SIGCONT no matter what action we choose.
3914 Add new value `cont' to ACT enum; use it for default SIGCONT action.
3915 (_hurd_internal_post_signal: sigwakeup): New local inline.
3917 Fri Jul 8 20:26:49 1994 Brendan Kehoe (brendan@zen.org)
3919 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile (sysdep-CFLAGS): Set
3920 this to include the -mhard-quad-float option.
3922 * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: New file.
3923 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile: New file.
3924 * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
3926 Fri Jul 8 13:54:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3928 * hurd/hurdpath.c (__hurd_path_lookup): Don't treat leading /
3929 specially for FS_RETRY_NORMAL. Handle FS_RETRY_MAGICAL; leading /
3930 here means use crdir. In that case, deallocate *RESULT if nonnull.
3932 * sysdeps/unix/sysv/sysv4/i386/sysdep.h: Don't define _ERRNO_H if
3935 * posix/gnu/types.h (__ino_t): Make this unsigned int instead of
3936 unsigned long int (matters for Alpha).
3938 * Makeconfig (+gccopt): Variable removed.
3939 (+cflags): Don't use it.
3940 (CPPFLAGS): Append $(sysdep-CPPFLAGS).
3941 (CFLAGS): Append $(sysdep-CFLAGS).
3943 * sysdeps/mach/hurd/__ioctl.c: In MSGID calculation, skip blocks
3944 of 100 for request commands >= 100, to allow for the reply msgids.
3946 Thu Jul 7 19:07:00 1994 Brendan Kehoe (brendan@zen.org)
3948 * sysdeps/unix/bsd/osf1/dirstream.h (DIR): Make __allocation
3949 member be int, not size_t (which is a long).
3951 Thu Jul 7 15:21:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3953 * hurd/__fopenport.c (readio, writeio, seekio, closeio): New
3955 (funcsio): New const variable.
3956 (__fopenport): Make the new stream use that for its io functions, and
3957 the default room functions, and set its seen flag.
3959 Tue Jul 5 11:32:38 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3961 * hurd/hurd/signal.h (struct hurd_sigstate): Removed `intr_restart'.
3962 (HURD_EINTR_RPC): Uncommented. Declare label
3963 `__do_call' so it has block instead of function scope. Don't use
3964 SS->intr_restart; instead SS->intr_port being reset to
3965 MACH_PORT_NULL tells us to restart the call.
3967 * sysdeps/mach/hurd/__ioctl.c: Enable use of HURD_EINTR_RPC.
3968 Do ctty magic and check for EBACKGROUND to generate SIGTTOU.
3970 * mach/devstream.c (dealloc_ref): New function.
3971 (mach_open_devstream): Add a user reference to DEV, and set
3972 STREAM's close fn to dealloc_ref, which will release the reference.
3974 * hurd/fd-read.c (_hurd_fd_read): Enabled and rewrote SIGTTIN code.
3975 * hurd/fd-write.c (_hurd_fd_write): Enabled and rewrote SIGTTOU code.
3977 * hurd/hurdsyms.c: Add an alias hurd_sig_post -> _hurd_sig_post.
3978 * hurd/hurdkill.c (_hurd_sig_post): Renamed back from hurd_sig_post.
3979 * hurd/hurd.h: Declare _hurd_sig_post.
3981 * hurd/hurdsig.c (_S_sig_post): Add SIGTTIN and SIGTTOU cases,
3982 handled like SIGINT et al.
3984 * mach/devstream.c: Turn back on NL->CRNL translation.
3986 * stdio/xbug.c (main): Return instead of running off the end.
3988 Mon Jul 4 16:57:13 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3992 Sat Jul 2 00:15:37 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
3994 * sysdeps/mach/hurd/__ioctl.c: Account for three type fields in
3995 message buffer size.
3997 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
3998 Catch faults accessing user stack and return NULL.
3999 * hurd/hurdsig.c (_hurd_internal_post_signal): When it does, die
4000 with SIGILL and dump core.
4002 * hurd/hurdsig.c (_hurd_internal_post_signal): Use
4003 _hurd_msgport_thread instead of __mach_thread_self () to avoid the
4004 system call. (Signals will now lose if _hurd_msgport_thread gets
4006 (abort_rpcs): Always do thread_abort and thread_get_state.
4008 * misc/getpass.c: Fix typo resulting in newline not being removed.
4010 * termios/sys/ttydefaults.h [TTYDEFCHARS] (ttydefchars): Cast
4011 _POSIX_VDISABLE to cc_t to avoid gcc warning.
4013 Fri Jul 1 14:07:40 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4015 * hurd/Makefile (user-interfaces): Add hurd/ifsock.
4017 * socket/sys/socket.h (AF_LOCAL): New macro.
4019 * sysdeps/mach/hurd/__kill.c: Fix SIGKILL loop condition.
4021 Fri Jul 1 13:36:27 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4023 * hurd/hurdkill.c (hurd_sig_post): New var PIDSBUF; initialize
4024 PIDS and NPIDS correctly; only free PIDS if the MiG stub
4027 Thu Jun 30 18:47:48 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4029 * hurd/hurdsock.c (_hurd_socket_server): Zero up to and *including*
4032 Thu Jun 30 08:12:28 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4034 * hurd/hurdsig.c (abort_all_rpcs): Just iterate over _hurd_sigstates.
4036 * hurd/dtable.c (fork_child_dtable): Skip empty descriptor slots.
4038 * sysdeps/mach/hurd/__ioctl.c: Fix MSG.data size calculation.
4040 Wed Jun 29 19:06:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4042 * sysdeps/mach/hurd/bind.c: For AF_LOCAL, create a new node in the
4043 filesystem, put the ifsock translator on it, and fetch the
4045 * sysdeps/mach/hurd/connect.c: For AF_LOCAL, look up the socket
4046 file and fetch the address port using the ifsock protocol.
4048 Tue Jun 28 16:03:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4050 * hurd/Makefile (routines): Add ports-get, ports-set, and hurdmsg.
4051 (aux): Remove msgstub.
4052 * hurd/hurdports.c (get): Just call _hurd_ports_get.
4053 (set): Just call _hurd_ports_set.
4054 (getcttyid, setcttyid): New functions.
4055 * hurd/ports-get.c (_hurd_ports_get): New file, new function.
4056 * hurd/ports-set.c (_hurd_ports_set): New file, new function.
4057 * hurd/hurd.h: Declare _hurd_ports_get and _hurd_ports_set.
4058 Declare getcttyid and setcttyid.
4059 * hurd/__setauth.c (__setauth): Just call _hurd_setauth.
4060 (_hurd_setauth): New function, code moved from __setauth.
4061 * hurd/hurdinit.c (_hurd_setproc): New function.
4062 * hurd/hurdioctl.c (_hurd_setcttyid): New function.
4064 * locale/C-ctype_ct.c (__ctype_tolower_C, __ctype_toupper_C): Use
4065 integer constants instead of character constants for octal values
4066 so they will not be sign extended.
4068 * sysdeps/mach/hurd/__setitmr.c (fork_itimer): New function, on
4069 _hurd_fork_child_hook.
4071 * sysdeps/stub/sysd-stdio.c (__stdio_reopen): Fix typo in arg type.
4072 * sysdeps/stub/__ioctl.c: Fix type of REQUEST arg.
4073 * sysdeps/stub/syscall.c: Include ansidecl.h.
4074 * sysdeps/stub/_exit.c: Add __NORETURN to defn.
4076 * sysdeps/unix/sysv/sysv4/sigset.h (_EXTERN_INLINE): Define to
4077 `extern __inline', not empty.
4079 * sysdeps/mach/hurd/ttyname.c: Don't bother searching /dev.
4081 Sat Jun 25 15:41:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4083 * sysdeps/mach/hurd/__fork.c: Moved proc_task2pid call to just
4084 before proc_child. It is a waste to do it earlier.
4086 Sat Jun 25 13:17:39 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4088 * sysdeps/mach/hurd/__fork.c: Move proc_task2pid call to after
4089 _hurd_ports are unlocked. Call proc_child nearly last thing.
4090 Ignore errors from thread_resume.
4092 Fri Jun 24 20:21:11 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4094 * sysdeps/posix/getcwd.c: Remove empty `#define'.
4096 Fri Jun 24 17:57:36 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4098 * sysdeps/mach/hurd/__fork.c: Call proc_task2pid immediately after
4099 task_create. Add comment explaining why thread_resume must be the
4100 last thing we do to the child.
4102 Fri Jun 24 01:41:41 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4104 * hurd/hurdinit.c (_hurd_proc_init): Call __proc_set_arg_locations
4105 in place of __proc_setprocargs (it was renamed).
4107 * hurd/hurd.h: Rename _hurd_sig_post to hurd_sig_post.
4108 * hurd/hurdkill.c: Likewise.
4110 * hurd/port2fd.c (_hurd_port2fd): Call __term_open_ctty instead of
4111 __term_become_ctty, and don't pass the message port.
4112 * hurd/hurdioctl.c (rectty_dtable): Likewise.
4113 * hurd/dtable.c (fork_child_dtable, ctty_new_pgrp): Likewise.
4115 * sysdeps/mach/hurd/__fork.c: Use __proc_{get,set}_arg_locations
4116 to propagate argv and envp locations to the child.
4118 * stdio/freopen.c (freopen): If STREAM->__seen is clear, pass
4119 __stdio_close to __stdio_reopen.
4121 * misc/Makefile (install-lib): Add libg.a.
4122 ($(objpfx)libg.a): New rule; use make-dummy-lib.
4123 (lib): Depend on $(objpfx)libg.a
4125 Thu Jun 23 01:14:36 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4127 * termios/termios.h (CCEQ): New macro.
4129 * sysdeps/unix/sysv/irix4/__getgrps.c: Add missing __ to fn name.
4131 Don't compile in absolute file names for localtime and posixrules
4132 files if they were specified relative to $(zonedir).
4133 * time/Makefile (installed-localtime-file,
4134 installed-posixrules-file): Set these instead of
4135 {localtime,posixrules}-file to the absolute file names.
4136 ($(localtime-file), $(posixrules-file)): Change targets to
4137 $(installed-localtime-file) and $(installed-posixrules-file).
4139 Wed Jun 22 15:52:26 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4141 * hurd/Makefile (sig): Add hurdkill.
4143 Sat Jun 18 12:57:54 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4145 * stdio/_itoa.h (_itoa): Change type of VALUE to unsigned long long.
4146 * stdio/_itoa.c (_itoa): Likewise.
4148 Thu Jun 16 01:10:41 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4150 * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__filepos' member
4151 with `__entry_ptr' and `__entry_data'. Remove `__block_size' member.
4152 Replace `__offset' member with `__ptr', a char *; no need to include
4154 * sysdeps/mach/hurd/readdir.c: Use those, new dir_readdir protocol.
4155 * sysdeps/mach/hurd/opendir.c: Initialize new members.
4156 Don't do io_stat to set __blocksize.
4157 * sysdeps/mach/hurd/telldir.c: Rewritten; return DIRP->__entry_ptr.
4158 * sysdeps/mach/hurd/seekdir.c: Rewritten; just set DIRP->__entry_ptr
4159 from arg, and zero DIRP->__size so a new block will be read.
4161 * sysdeps/mach/hurd/getcwd.c: Use new dir_readdir protocol.
4163 * hurd/msgstub.c: Add stubs for dir_changed, file_changed.
4165 * hurd/hurdsock.c (_hurd_socket_server): Removed unused label.
4167 * sysdeps/mach/hurd/__getdents.c: Use new dir_readdir protocol.
4169 * sysdeps/mach/hurd/__access.c: Open the file with 0 flags and
4170 then use file_check_access to discover what we are allowed.
4172 Tue Jun 14 14:10:03 1994 Brendan Kehoe (brendan@zen.org)
4174 * sysdeps/mips/setjmp.S: Refer to `$fp', not `fp'.
4176 Tue Jun 14 00:50:54 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4178 * sysdeps/mach/hurd/__pipe.c: Set FDS[1], not FDS[2].
4180 Mon Jun 13 06:48:48 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4182 * sysdeps/unix/bsd/sun/sparc/sigtramp.c (trampoline): Use a
4183 comment instead of a pointless insn to reference %0 in final asm.
4185 * hurd/hurdsock.c (_hurd_socket_server): If realloc fails, don't
4186 fail; just don't cache the port.
4187 Look up the server node only if it is not in the cache.
4188 Translate errno only if path_lookup fails.
4189 (init): New function, on _hurd_preinit_hook.
4191 * sysdeps/mach/hurd/__symlink.c: Complement _hurd_umask before ANDing.
4193 Sat Jun 11 12:52:28 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4195 * sysdeps/mach/hurd/__fork.c: Can't insert dead name rights into
4198 Sat Jun 11 05:19:47 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4200 * sysdeps/mach/hurd/i386/longjmp-ts.c: Set TS->uesp instead of
4201 TS->esp. Set TS->eip.
4203 * gnu-stabs.h (bss_set_element): New macro.
4204 * hurd/dtable.c: Use bss_set_element instead of data_set_element
4205 to put _hurd_dtable_lock in the _hurd_fork_locks set.
4207 Fri Jun 10 02:04:51 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4209 * sysdeps/mach/hurd/__fork.c: Don't apply MACH_PORT_TYPE to result
4210 from __mach_port_names. Unlock SS->lock before return.
4211 Check for KERN_NAME_EXISTS from mach_port_allocate_name when
4212 creating a receive right and possibly ignore it.
4214 * sysdeps/unix/sysv/sco3.2.4/Dist: Add sco_getgrp.S.
4216 * crypt/speeds.c: Include signal.h and stdio.h first thing.
4217 [! SIGVTALRM]: Define NO_ITIMER.
4219 * sysdeps/unix/sysv/isc3/direct.h: New file.
4221 * hurd/hurdinline.c: Include lock-intern.h before #define
4224 * sysdeps/mach/hurd/__fork.c (_hurd_fork_locks): Don't be const.
4225 (__fork): Set SS from _hurd_self_sigstate so it is never null.
4226 New local flag PORTS_LOCKED records when we have spin_locked all
4227 the _hurd_ports cells; unlock them if necessary on error.
4229 * hurd/hurdsig.c (_hurd_siglock): Don't initialize it.
4230 (_hurdsig_init): Initialize _hurd_siglock at runtime.
4232 Wed Jun 8 12:22:27 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4234 * hurd/hurdid.c (_hurd_check_ids): Zero P->nuids and P->ngids after
4235 deallocating P->uids and P->ngids.
4237 * hurd/hurdioctl.c (_hurd_ioctl_handler_lists): Make defn initialized.
4239 * sysdeps/mach/hurd/__ioctl.c: Only try to unpack if IOC_OUT is set.
4241 * hurd/Makefile (routines): Replace $(inlines) with hurdinline.
4242 (inlines): Variable and rule removed.
4243 (generate-inlines): Variable removed.
4244 * hurd/hurdinline.c: New file.
4246 Tue Jun 7 01:58:20 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4248 * Makerules: Add -f to all mv commands missing it.
4250 * hurd/Makefile (generate-inline): New canned sequence.
4251 (inline-%.c): Use it.
4253 * time/asia, time/europe, time/northamerica: New versions from ADO.
4255 Mon Jun 6 21:36:04 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4257 * hurd/hurdid.c (init_id): New function.
4259 * Makerules (+make-deps): Put first s cmd before $(sed-remove-objpfx).
4260 (sed-remove-objpfx): Replace occurrences at beginning of line too.
4262 Sun Jun 5 14:34:12 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4266 * sysdeps/mach/hurd/ioctls.h (_IOR, _IOW): Swap IOC_IN and IOC_OUT.
4268 * sysdeps/mach/hurd/__ioctl.c: Only pack input for ioctls that
4269 take input. Compute expected reply size for ioctls that take
4270 output and check it properly.
4272 Sat Jun 4 00:35:42 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4274 * sysdeps/mach/hurd/ioctls.h (union __ioctl): Type removed.
4275 (enum __ioctl_datum): Name this enum.
4276 (_IOC_INOUT, _IOC_GROUP, _IOC_COMMAND, _IOC_TYPE): New macros.
4277 (_IOT_TYPE[012], _IOT_COUNT[012]): New macros.
4278 * sysdeps/mach/hurd/__ioctl.c: Use those macros instead of the union.
4280 * sysdeps/mach/hurd/__fork.c: Major rewrite. Copy all ports
4281 present in the task, not just library-maintained ones. Handle
4282 sigstate and signal thread setup explicitly here.
4283 * hurd/hurdsig.c (hurdsig_fork, hurdsig_fork_child): Functions
4286 * hurd/hurdpid.c (init_pids): Don't put this on _hurd_fork_child_hook.
4288 * sysdeps/mach/hurd/__isatty.c: New file.
4290 * hurd/hurdsock.c (_hurd_socket_server): Pass NP to __path_lookup,
4291 not NAME (most of which is uninitialized).
4293 * hurd/hurdsig.c (_hurdsig_init): Don't check for _hurd_msgport
4294 being non-null; always initialize it.
4296 Fri Jun 3 21:57:14 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4298 * hurd/hurdrlimit.c (init_rlimit): Restore __mutex_init call.
4299 (_hurd_rlimit_lock): Set initializer to random value; run-time
4300 initialization is always required.
4302 * inet/rcmd.c (rcmd): Compute max fd + 1 for select instead of
4305 Wed Jun 1 10:52:41 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4307 * hurd/hurdrlimit.c (_hurd_rlimits, _hurd_rlimit_lock): Provide
4308 initializers so that the file is included in the link properly.
4309 (init_rlimit): Omit call to __mutex_init.
4311 Tue May 31 18:15:33 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
4313 * hurd/hurdmalloc.c (more_memory): Do spin_lock_init on H->lock.
4314 (malloc_init): New function; put it on _hurd_preinit_hook.
4316 * sysdeps/mach/hurd/defs.c (init_stdio): If stream already
4317 allocated, don't allocate a new one. Don't crash if _hurd_alloc_fd
4318 returns null if __newstream does.
4320 * sysdeps/mach/hurd/__brk.c (init_brk): If _hurd_brk is nonzero,
4321 leave it as it is. Set PAGEND from _hurd_brk instead of &_end.
4323 Mon May 30 18:37:47 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4325 * hurd/hurdrlimit.c (init_rlimit): Put this on _hurd_preinit_hook
4326 instead of _hurd_subinit.
4328 * sysdeps/mach/hurd/mig-reply.c (mig_fork_child): Function removed.
4329 * hurd/dtable.c (fork_parent_dtable): Function removed.
4331 * sysdeps/generic/resourcebits.h: Rename RLIM_NLIMITS to
4332 RLIMIT_NLIMITS, add alias for old name.
4334 * sysdeps/mach/hurd/Makefile (hurd-objpfx): New variable.
4335 (before-compile): Use that instead of $(common-objpfx).
4337 * sysdeps/mach/Makefile [! objpfx] (mach-objpfx): Add trailing slash.
4339 Fri May 27 01:34:56 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4341 * hurd/hurdsig.c (_hurdsig_init): Always initialize _hurd_sigthread.
4343 * hurd/dtable.c: Use data_set_element instead of text_set_element
4344 for _hurd_fork_locks.
4345 * hurd/hurdsig.c: Likewise.
4347 * hurd/hurd.h (_hurd_set_data_limit): Declaration removed.
4349 * hurd/dtable.c (_hurd_dtable_rlimit): Variable removed.
4350 (init_dtable): Don't set it.
4352 * hurd/Makefile (headers): Add hurd/resource.h.
4353 (routines): Add hurdrlimit.
4354 * hurd/hurd/resource.h: New file.
4355 * hurd/hurdrlimit.c: New file.
4356 * sysdeps/mach/hurd/getrlimit.c: Rewritten to just fetch
4358 * sysdeps/mach/hurd/setrlimit.c: Rewritten to just set _hurd_rlimits.
4359 * sysdeps/mach/hurd/__brk.c (_hurd_data_limit): Variable removed.
4360 (_hurd_set_brk): Use _hurd_rlimits[RLIMIT_DATA].
4361 (_hurd_set_data_limit): Function removed.
4362 * hurd/alloc-fd.c (_hurd_dtable_rlimit): Variable removed.
4363 (_hurd_alloc_fd): Use _hurd_rlimits[RLIMIT_OFILE] instead.
4365 * sysdeps/generic/resourcebits.h: Add RLIMIT_NOFILE as an alias
4368 * sysdeps/mach/hurd/mig-reply.c (__mig_init): Argument is stack
4369 on which to set the per-thread reply port variable.
4371 * sysdeps/mach/hurd/__brk.c (init_brk): Set _hurd_data_end to
4372 DATA_SIZE bytes past the beginning of data space, rather than to
4373 DATA_SIZE absolutely. If vm_map fails, set it to PAGEND.
4375 * sysdeps/mach/hurd/start.c (_start): Run _hurd_preinit_hook right
4378 * stdio/freopen.c (freopen): Rewritten using __stdio_reopen to
4379 preserve the old cookie value when possible.
4380 * sysdeps/posix/sysd-stdio.c (__stdio_reopen): New function.
4381 * sysdeps/stub/sysd-stdio.c (__stdio_reopen): New function.
4382 * sysdeps/mach/hurd/sysd-stdio.c (__stdio_reopen): New function.
4384 * stdio/freopen.c (freopen): Close the stream if MODE is invalid.
4386 * hurd/hurdsig.c (_hurd_core_limit): Define variable.
4388 * socket/sys/socket.h (PF_LOCAL): Define in preference to PF_FILE.
4390 Thu May 26 12:09:51 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4392 * hurd/alloc-fd.c (_hurd_alloc_fd): Don't return EINVAL when
4393 FIRST_FD is greater than _hurd_dtablesize and less than
4394 _hurd_dtable_rlimit. If we want to grow _hurd_dtable, but
4395 _hurd_dtablesize is as big as _hurd_dtable_rlimit, then return
4396 EMFILE. When growing _hurd_dtable, actually do something if
4397 _hurd_dtablesize is zero.
4399 * hurd/hurdmalloc.c (malloc_fork_prepare, malloc_fork_parent,
4400 malloc_fork_child): Declare as static so they don't conflict with
4401 the user's version of this file.
4403 Wed May 25 20:55:16 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4405 * sysdeps/mach/hurd/__brk.c: Include <cthreads.h> instead of
4408 * hurd/hurdmalloc.c, hurd/hurdmalloc.h: New files (temporary hack).
4409 * hurd/Makefile (routines): Append hurdmalloc.
4410 (distribute): Append hurdmalloc.h.
4411 * hurd/alloc-fd.c: Include "hurdmalloc.h" (temporary hack).
4412 * hurd/dtable.c: Likewise.
4413 * hurd/hurdinit.c: Likewise.
4414 * hurd/hurdsig.c: Likewise.
4415 * hurd/hurdsock.c: Likewise.
4416 * hurd/new-fd.c: Likewise.
4417 * sysdeps/mach/hurd/start.c: Likewise.
4419 * sysdeps/mach/hurd/start.c (start1): Use malloc and a for loop
4421 * hurd/hurdsig.c (_hurd_thread_sigstate): Use malloc and memset
4424 * sysdeps/mach/hurd/__brk.c (init_brk): Reference self to avoid
4425 compiler warning. Add init_brk to _hurd_preinit_hook instead of
4428 * sysdeps/mach/hurd/start.c (_hurd_preinit_hook): New variable.
4429 (start1): Run _hurd_preinit_hook before threadvar setup.
4431 Tue May 24 17:42:34 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4433 * hurd/dtable.c (init_dtable): Initialize _hurd_dtablesize to
4434 _hurd_init_dtablesize. Initialize _hurd_dtable_rlimit as
4435 _hurd_dtablesize used to be set, but don't let it be zero.
4436 (_hurd_dtable_rlimit): New variable.
4438 Tue May 24 12:57:19 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4440 * sysdeps/mach/sleep.c (sleep): Timeout arg to mach_msg is
4441 in milliseconds, not microseconds; compute it accordingly.
4443 * sysdeps/mach/hurd/__select.c (__select): Deleted variables
4444 DTABLE and DTABLE_ULINK. Use new vars _hurd_dtablesize and
4445 _hurd_dtable instead of old _hurd_dtable structure. Use new
4446 locking protocol on _hurd_dtable.
4448 Tue May 24 01:55:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4450 * sysdeps/mach/hurd/__setitmr.c: Don't include mutex.h.
4452 * sysdeps/mach/hurd/defs.c (init_stdio): Reference self.
4454 * sysdeps/unix/sysv/sysv4/i386/sysdep.h: Include
4455 sysdeps/unix/sysv/i386/sysdep.h, not sysdeps/unix/i386/sysdep.h
4457 Mon May 23 19:05:44 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4459 * sysdeps/mach/hurd/Makefile (mib_hacks, defines): Variables removed.
4461 * mach/devstream.c (mach_open_devstream): Set STREAM's seek and
4462 fileno io functions to null.
4464 * hurd/hurdexec.c (_hurd_exec): Fixed adding of dtable ports to
4465 PLEASE_DEALLOC array.
4467 * sysdeps/mach/hurd/defs.c (init_stdio): Unlock the descriptors
4468 after fetching them. If a standard descriptor is not allocated,
4469 allocate the structure and store its pointer in the stream anyway.
4471 * stdio/gets.c: Only return null on P==S if feof (STREAM).
4473 * stdio/vfprintf.c: Make %Z a type modifier, not a format spec.
4475 * sysdeps/mach/hurd/fdopen.c: Return NULL rather than -1 for error.
4477 Mon May 23 14:24:50 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4479 * sysdeps/mach/hurd/__close.c (__close): Use new _hurd_fd_get
4481 * sysdeps/mach/hurd/__dup2.c (__dup2): Likewise. Use
4482 _hurd_dtablesize and _hurd_dtable instead of old _hurd_dtable
4485 * sysdeps/mach/hurd/sysd-stdio.c (__stdio_seek): Use
4486 HURD_FD_PORT_USE, not HURD_FD_USE.
4487 * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Variable
4490 * hurd/alloc-fd.c (_hurd_alloc_fd): Arg FIRST_FD is not actually
4492 * hurd/hurdsig.c (_hurd_internal_post_signal [case SIGINFO]): If
4493 we are not the process group leader, ignore the signal.
4494 (_S_sig_post [case SIGURG]): Declaration of D was out of place.
4496 * sysdeps/mach/hurd/fdopen.c: Include <hurd/io.h> for
4497 io_get_openmodes prototype.
4499 Sat May 21 16:03:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4501 * assert/assert.c (__assert_fail): Put program name first in msg.
4503 * hurd/Makefile (dtable): Removed setdtsz.
4505 * hurd/hurdexec.c: Use _hurd_dtable and _hurd_dtablesize instead of
4506 old _hurd_dtable structure.
4507 * hurd/hurdsig.c: Likewise.
4508 * hurd/alloc-fd.c: Likewise.
4509 * hurd/hurdioctl.c (rectty_dtable): Likewise.
4511 * Version 1.08 released.
4513 * mach/mach_error_string.c: Renamed to errstring.c.
4514 * mach/Makefile (routines): Renamed mach_error_string to errstring.
4515 * mach/err_mach_ipc.sub: Renamed to err_mach.sub.
4516 * mach/err_bootstrap.sub: Renamed to err_boot.sub.
4518 * sysdeps/generic/sigset.h (__SIGSETFN): Take new arg CONST; use it
4519 for CONST qualifier on SET arg to generated function.
4520 Changed uses to pass it; sigismember passes __const, others empty.
4522 * sysdeps/mach/hurd/sysd-stdio.c: Rewritten to use `struct hurd_fd *'s
4524 * sysdeps/mach/hurd/fdopen.c: Rewritten accordinly.
4525 * sysdeps/mach/hurd/defs.c (init_stdio): Rewritten accordingly.
4526 Add it to the _hurd_fd_subinit hook instead of the __libc_subinit
4528 * sysdeps/mach/hurd/stdio_init.c: New file.
4529 * hurd/dtable.c (_hurd_fd_subinit): New hook variable.
4530 (init_dtable): Run the _hurd_fd_subinit hook.
4532 * hurd/hurd/fd.h (struct hurd_dtable): Type removed.
4533 (_hurd_dtable_users, _hurd_dtable_rlimit): Variables removed.
4534 (_hurd_dtable): Make this a struct hurd_fd **.
4535 (_hurd_dtablesize): New variable.
4536 (struct hurd_fd_user): Type removed.
4537 (_hurd_dtable_get, _hurd_dtable_free, _hurd_dtable_fd): Functions
4539 (_hurd_fd_get): Rewritten. Take just one arg, and look it up in
4540 _hurd_dtable; return a struct hurd_fd *.
4541 (HURD_FD_USE): Rewritten to use new _hurd_fd_get interface.
4542 * hurd/dtable.c (_hurd_dtable_users, _hurd_dtable_rlimit):
4544 (_hurd_dtable): Make this a struct hurd_fd **.
4545 (_hurd_dtablesize): New variable.
4546 (init_dtable, fork_parent_dtable, fork_child_dtable,
4547 ctty_new_pgrp, reauth_dtable): Use new simpler _hurd_dtable format.
4548 * sysdeps/mach/hurd/__getdtsz.c: Use _hurd_dtablesize.
4549 * sysdeps/mach/hurd/__fcntl.c: Use new _hurd_fd_get protocol.
4551 * hurd/dtable.c (get_dtable_port): Return the ctty port if set.
4553 * hurd/hurd/fd.h (_hurd_fd_error_signal): New function, broken out
4555 (_hurd_fd_error): Call it.
4557 * hurd/Makefile (dtable): Add fd-close.
4558 * hurd/fd-close.c: New file.
4559 * hurd/hurd/fd.h: Declare _hurd_fd_close.
4561 * sysdeps/mach/hurd/__close.c: Call _hurd_fd_close.
4563 * signal/Makefile (routines): Add sigsetops.
4564 * signal/sigsetops.c: New file.
4566 * sysdeps/unix/sysv/sysv4/sigset.h (_EXTERN_INLINE): New macro.
4567 Use it for all the inline functions.
4569 * signal/signal.h: Move #include <signum.h> inside #ifdef _SIGNAL_H.
4571 * sysdeps/generic/sigset.h: Protect types with #ifndef
4572 _SIGSET_H_types. Protect rest with #if !defined (_SIGSET_H_fns)
4573 && defined (_SIGNAL_H).
4574 (__SIGSETFN): Add extern declaration of NAME inside function.
4576 * sysdeps/unix/ioctls-tmpl.c: Add missing #endif.
4577 * sysdeps/unix/Makefile (make-ioctls-CFLAGS): Remember -D.
4579 Fri May 20 20:42:33 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4581 * sysdeps/unix/Makefile (sys/termios.h): Variable removed.
4582 (ioctl-includes): New variable.
4583 (make-ioctls-CFLAGS): Compute value generally from $(ioctl-includes).
4584 ($(common-objpfx)ioctls): Depend on $(ioctl-includes), instead of
4587 * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: New file.
4588 * sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Add
4590 * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: New file.
4592 * sysdeps/generic/sigset.h (__sigismember, __sigaddset, __sigdelset):
4593 Rewritten as extern inline functions; check for bogus signal number.
4595 * configure.in (names): Put $implied before $* in new $sysnames
4596 list remaining to be processed; this ensures unix/common precedes
4597 unix/sysv4 for sysv4.
4599 Thu May 19 18:35:02 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4601 * sysdeps/mach/hurd/defs.c (init_stdio): Make stdin and stdout
4602 line buffered and stderr unbuffered.
4604 Thu May 19 16:14:36 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4606 * sysdeps/mach/hurd/getcwd.c: Remember to call io_stat on cwdir.
4608 * sysdeps/generic/configure.in: Use changequote around if expr
4609 to avoid [] elision.
4611 Thu May 19 13:53:59 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4613 * hurd/hurdsock.c (_hurd_socket_server): Return EPFNOSUPPORT
4614 rather than EPROTONOSUPPORT because it's the entire protocol
4615 family that isn't present, not just one protocol.
4617 * sysdeps/mach/hurd/__access.c (__access): Don't deallocate
4618 CRDIR or CWDIR; that's taken care of by the _hurd_port_get
4619 and _hurd_port_free system.
4621 Thu May 19 04:14:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4623 * sysdeps/posix/libc_fatal.c: Include <errno.h>.
4625 * sysdeps/unix/sysv/sysv4/__sigact.c: Include <stddef.h> for NULL.
4627 * sysdeps/mach/hurd/__access.c: Fix swapped poly and count args in
4628 __auth_makeauth call.
4630 * sysdeps/mach/hurd/ioctls.h (_IOC, _IOT): Rewritten using bitwise
4631 operations, so the result is always technically a constant (the
4632 old method of using a union constructor expression was not good
4633 enough for initializers).
4635 * hurd/hurdsock.c (_hurd_socket_server): If path_lookup returns
4636 ENOENT, we return EPROTONOSUPPORT.
4638 * hurd/Makefile (dtable): Add hurdioctl.
4639 * hurd/dtable.c (rectty_dtable, tiocsctty, tiocnotty): Functions
4641 * hurd/hurdioctl.c: New file.
4642 (fioctl, fioclex): New functions.
4643 * sysdeps/mach/hurd/__ioctl.c (_hurd_ioctl_handler_lists): Don't
4644 define it, just declare it.
4646 * sysdeps/mach/hurd/getcwd.c: Use MACH_PORT_RIGHT_SEND, not
4647 MACH_PORT_TYPE_SEND, in mach_port_mod_refs call.
4649 * sysdeps/mach/hurd/__getpgrp.c: Don't lock _hurd_pid_lock.
4651 * sysdeps/unix/common/glue-ctype.c: Don't include <ctype.h>.
4652 Instead, add explicit extern declaration of TABLE in main.
4654 Wed May 18 17:54:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4656 * sysdeps/m68k/Makefile (asm-CPPFLAGS): Append $(m68k-syntax-flag).
4660 * sunrpc/Makefile (+gccwarn): Set to -w.
4662 * sysdeps/unix/Makefile (ifeq testing sys/param.h): Use patsubst
4663 instead of dir to remove directory name from .../sys/param.h but
4666 * inet/sys/bitypes.h: Replaced with just #include <sys/types.h>.
4668 * posix/sys/utsname.h (_UTSNAME_NODENAME_LENGTH): If undefined,
4669 define to _UTSNAME_LENGTH.
4670 (struct utsname): Use _UTSNAME_NODENAME_LENGTH for `nodename' member.
4671 * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h (_UTSNAME_NODENAME_LENGTH):
4674 * resource/sys/resource.h (enum __rlimit_resource): Removed.
4675 Just include <resourcebits.h> instead.
4676 * resource/Makefile (headers): Add resourcebits.h.
4677 * sysdeps/generic/resourcebits.h: New file.
4678 * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: New file.
4680 * stdio/test-popen.c (main): Use popen to read the file back, too.
4682 * sysdeps/unix/sysv/sysv4/i386/sysdep.h: New file.
4684 * sysdeps/unix/sysv/sysv4/i386/sys-sig.S: Fixed typo: movel->movl.
4686 Tue May 17 12:46:31 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4688 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
4689 __mach_task_self, __mach_host_self): New declarations of __
4690 versions of syscall traps.
4691 (swtch, __swtch, swtch_pri, __swtch_pri, thread_switch,
4692 __thread_switch, evc_wait, __evc_wait): New prototypes.
4693 * mach/Makefile (headers): Added mach/mach_traps.h so that the
4694 GNU version is installed instead of the Mach version.
4696 Mon May 16 15:34:12 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4698 * sysdeps/stub/sys/param.h: New file.
4700 * mach/lock-intern.h (__mutex_lock, __mutex_unlock): Real definitions.
4701 (__mutex_lock_solid, __mutex_unlock_solid, __mutex_init): Declare
4703 * mach/mutex-solid.c: New file.
4704 * mach/Makefile (lock): Add mutex-solid.
4705 (lock-headers): Remove mutex.h.
4706 * mach/mutex.h: File removed.
4707 * hurd/hurd/id.h: Include <cthreads.h> instead of <mutex.h>.
4708 * hurd/hurd/signal.h: Likewise.
4709 * hurd/hurdsig.c: Likewise.
4710 * hurd/hurdsock.c: Likewise.
4711 * hurd/dtable.c: Likewise.
4712 * hurd/__setauth.c: Likewise.
4713 * sysdeps/mach/hurd/Makefile (includes): Also append
4714 -I$(hurd-srcdir)/libthreads.
4716 * sysdeps/posix/system.c [WAITPID_CANNOT_BLOCK_SIGCHLD]: Don't
4718 * sysdeps/unix/sysv/sco3.2.4/system.c
4719 (WAITPID_CANNOT_BLOCK_SIGCHLD): Define this macro.
4721 * sysdeps/posix/sigintr.c (siginterrupt) [! SA_RESTART]: Always
4724 * sysdeps/posix/__sigvec.c [! SA_ONSTACK]: Fail with ENOSYS if
4725 SV_ONSTACK is set in VEC->sv_flags.
4726 [SA_RESTART]: Protect SV_INTERRUPT check with this.
4728 * sysdeps/mach/sysdep.h (FATAL_PREPARE): New macro.
4729 * sysdeps/posix/libc_fatal.c: Include <sysdep.h>.
4730 [FATAL_PREPARE]: Invoke the macro.
4731 * assert/assert.c: Likewise.
4733 * sysdeps/generic/memmem.c: Start BEGIN at HAYSTACK, not partway
4734 into it. Loop until BEGIN passes the location in HAYSTACK with
4735 NEEDLE_LEN bytes remaining to the end.
4736 Compare first byte manually before calling memcmp.
4738 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Fix typo.
4740 * posix/sys/types.h [__USE_BSD] (int32_t, int16_t, int8_t,
4741 u_int32_t, u_int16_t, u_int8_t): New typedefs.
4743 * assert/assert.c (__assert_program_name): New variable.
4744 (__assert_fail): Print that in the msg too.
4745 [HAVE_GNU_LD] (set_progname): New function to set it up at startup.
4747 Thu May 12 01:10:52 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4749 * hurd/__setauth.c: Do critical section locking.
4750 * hurd/hurdexec.c: Likewise.
4751 * hurd/hurdauth.c (_S_del_auth): Likewise.
4752 * hurd/getuids.c: Likewise.
4753 * hurd/dtable.c: Likewise.
4754 * hurd/alloc-fd.c: Likewise.
4755 * hurd/hurd/port.h: Likewise.
4756 * hurd/hurd/fd.h: Likewise.
4757 * hurd/setuids.c: Likewise.
4758 * hurd/intern-fd.c: Likewise.
4759 * hurd/hurdsock.c (_hurd_socket_server): Likewise.
4760 * sysdeps/mach/hurd/setrlimit.c: Likewise.
4761 * sysdeps/mach/hurd/setgroups.c: Likewise.
4762 * sysdeps/mach/hurd/seteuid.c: Likewise.
4763 * sysdeps/mach/hurd/setegid.c: Likewise.
4764 * sysdeps/mach/hurd/getrlimit.c: Likewise.
4765 * sysdeps/mach/hurd/__setuid.c: Likewise.
4766 * sysdeps/mach/hurd/__setreuid.c: Likewise.
4767 * sysdeps/mach/hurd/__setregid.c: Likewise.
4768 * sysdeps/mach/hurd/__setitmr.c: Likewise.
4769 * sysdeps/mach/hurd/__setgid.c: Likewise.
4770 * sysdeps/mach/hurd/__select.c: Likewise.
4771 * sysdeps/mach/hurd/__sbrk.c: Likewise.
4772 * sysdeps/mach/hurd/__getuid.c: Likewise.
4773 * sysdeps/mach/hurd/__getpgrp.c: Likewise.
4774 * sysdeps/mach/hurd/__getitmr.c: Likewise.
4775 * sysdeps/mach/hurd/__getgrps.c: Likewise.
4776 * sysdeps/mach/hurd/__getgid.c: Likewise.
4777 * sysdeps/mach/hurd/__geteuid.c: Likewise.
4778 * sysdeps/mach/hurd/__getegid.c: Likewise.
4779 * sysdeps/mach/hurd/__getdtsz.c: Likewise.
4780 * sysdeps/mach/hurd/__fork.c: Likewise.
4781 * sysdeps/mach/hurd/__fcntl.c: Likewise.
4782 * sysdeps/mach/hurd/__dup2.c: Likewise.
4783 * sysdeps/mach/hurd/__close.c: Likewise.
4784 * sysdeps/mach/hurd/__brk.c: Likewise.
4785 * sysdeps/mach/hurd/__access.c: Likewise.
4787 * sysdeps/mach/hurd/reboot.c (reboot): Use the host priv port to
4790 * sysdeps/mach/hurd/__readlink.c: Don't request O_READ access.
4792 * sysdeps/mach/hurd/__ioctl.c: Don't expect result data unless
4793 return code is zero. Translate MIG_BAD_ID or EOPNOTSUPP to ENOTTY.
4795 * mach/devstream.c (output): Use device_write instead of
4796 device_write_inband.
4798 Wed May 11 18:49:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4800 * hurd/hurdinit.c (_hurd_init): Finsih loop of _hurd_port_init on
4801 _hurd_ports elts before doing _hurd_proc_init or
4802 __task_set_special_port.
4804 * hurd/hurd/signal.h (struct hurd_sigstate): Add new
4805 `critical_section' member. Remove #if 0'd out vfork crap.
4806 (_hurd_critical_section_lock, _hurd_critical_section_unlock): New
4808 (HURD_CRITICAL_BEGIN, HURD_CRITICAL_END): New macros.
4810 * io/Makefile (headers): Add poll.h and sys/poll.h.
4811 (routines): Add poll.
4812 * sysdeps/unix/bsd/sun/sunos4/poll.S: New file.
4813 * sysdeps/unix/sysv/poll.S: New file.
4814 * sysdeps/unix/bsd/poll.c: New file.
4815 * sysdeps/stub/poll.c: New file.
4816 * io/poll.h, io/sys/poll.h: New files.
4818 * misc/bsd-compat.c (setjmp): New function.
4820 * sysdeps/unix/Makefile (sysdep_headers): Remove sys/param.h.
4821 * misc/Makefile (headers): Add it here instead.
4823 * io/test-utime.c (main): New file.
4824 * io/Makefile (tests): New variable.
4826 Wed May 11 13:44:33 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4828 * hurd/hurd/threadvar.h (__hurd_errno_location): Remove
4829 __volatile keyword. `volatile int errno' is not the same
4830 as `int errno'; user programs often mention the latter.
4831 * errno.h: Remove __volatile keyword; same reason.
4833 Tue May 10 17:21:41 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4835 * time/zdump.c: New code from ADO.
4837 * time/difftime.c (difftime): Use hairy rounding algorithm from
4838 eggert@twinsun.com when sizeof (time_t) >= sizeof (double).
4840 * Makerules (native-CFLAGS): Remove -I$(sysincludedir). RMS says
4841 people with bogons in /usr/local/include deserve to lose.
4843 * stdio/printf_fp.c (__printf_fp): If IS_NEG gets set, negate
4844 FPNUM before testing it for %g format choice.
4846 * sysdeps/unix/sysv/irix4/fcntlbits.h: New file.
4847 * sysdeps/unix/sysv/irix4/Dist: New file.
4848 * sysdeps/unix/sysv/irix4/readv.c: New file.
4849 * sysdeps/unix/sysv/irix4/writev.c: New file.
4850 * sysdeps/unix/sysv/irix4/__dup2.c: New file.
4852 * sunrpc/xdr_float.c (xdr_float): Change [mc68000 || sparc] to [!
4855 * sysdeps/mips/setjmp.S: Remove spurious $.
4857 * sysdeps/generic/ftime.c: Include <errno.h>.
4859 * sysdeps/unix/mips/sysdep.S: Add .set noreorder.
4861 Tue May 10 16:27:13 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4863 * sysdeps/generic/termbits.h (NCCS): Doc fix.
4865 Mon May 9 18:07:44 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4867 * sysdeps/mach/hurd/uname.c (uname): System uname information
4868 has moved from init to proc.
4870 * sysdeps/mach/usleep.c (usleep): Return correct value. Destroy
4871 RECV when we're done with it.
4873 Thu May 5 17:03:56 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
4875 * sysdeps/mach/hurd/__lstat.c: Use O_NOLINK instead of O_NOTRANS.
4877 Thu May 5 04:20:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4879 * mach/spin-lock.h (spin_lock_init): Define.
4881 * sysdeps/mach/hurd/sigsuspend.c: New local variable NEWMASK, set
4882 it to *SET if SET is not null, before taking SS->lock; don't
4883 dereference SET while holding the lock. Restore SS->blocked to
4884 OLDMASK before unlocking and returning.
4886 * hurd/hurdsig.c (hurdsig_fork_child): Return zero.
4888 * sysdeps/mach/hurd/__fork.c (_hurd_fork_parent_hook,
4889 _hurd_fork_prepare_hook)): Define variables (symbol sets).
4890 (__fork): Run _hurd_fork_prepare_hook and _hurd_fork_parent_hook.
4892 * sysdeps/mach/hurd/sigsuspend.c: Don't test SS->pending; instead
4893 wait until SS->suspended is cleared.
4894 * hurd/hurdsig.c (_hurd_internal_post_signal): Clear SS->suspended
4895 before signalling on SS->arrived.
4897 * mach/Makefile (headers): Added mach/default_pager_helper.defs.
4899 * sysdeps/sparc/Dist: Added alloca.S.
4901 Wed May 4 14:02:29 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4903 * hurd/hurdexec.c (_hurd_exec): Unlock _hurd_dtable_lock when
4906 * sysdeps/mach/hurd/__setitmr.c: Changed _hurd_itimer_lock
4907 to be a spin_lock; changed mutex_lock and mutex_unlock
4908 accordingly throughout.
4909 * sysdeps/mach/hurd/__getitmr.c: Corresponding changes from
4910 mutex calls to spin lock calls here too.
4912 * sysdeps/mach/hurd/__setitmr.c (setitimer_locked): Fixed syntax
4913 of declaration of PREEMPT.
4914 (setitimer_locked): Declare variables ERR and ELAPSED.
4915 (setitimer_locked): Fix some references to REMAINING that
4916 were using it as an itimerval instead of a timeval.
4917 (setitimer_locked): Deleted unused label STILLBORN.
4919 Wed May 4 00:17:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4921 * sysdeps/stub/__getitmr.c: Fix arg name __WHICH to WHICH.
4923 * sysdeps/unix/bsd/alarm.c: Round tv_usec with arithmetic rather
4926 * hurd/Makefile (user-interfaces): Add hurd/msg_request.
4928 * sysdeps/stub/__setitmr.c: Fix arg name __WHICH to WHICH.
4930 * Makeconfig (cross-compiling): Define if $(HOST_CC) and $(CC) differ.
4931 * time/Makefile (install-others): Omit defn ifdef cross-compiling.
4933 Tue May 3 23:12:48 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4935 * mach/Makefile (lock-headers): Add spin-lock.h.
4937 * misc/Makefile (routines): Add madvise.
4939 * malloc/Makefile (non-lib.a): Define.
4940 * misc/Makefile (non-lib.a): Define.
4941 * Makerules (install-lib.a): Filter out $(non-lib.a).
4942 (install-lib-non.a): Append $(non-lib.a).
4944 * mach/Makefile (mach-headers): Rename sys/version.h to
4947 * hurd/Makefile (headers): Added hurd/threadvar.h.
4951 * hurd/port2fd.c (_hurd_port2fd): Use logic copied from
4952 _hurd_port_locked_set to install PORT in D->port, but leave it locked.
4954 * sunrpc/Makefile (generated): Don't add $(objpfx).
4956 * sysdeps/stub/machine-lock.h: New file.
4957 * sysdeps/stub/machine-sp.h: New file.
4959 Tue May 3 22:31:15 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4961 * sysdeps/mach/usleep.c (usleep): Specify MACH_RCV_MSG so that
4962 mach_msg actually waits.
4964 Tue May 3 19:24:48 1994 Karl Heuer (kwzh@hal.gnu.ai.mit.edu)
4966 * malloc/malloc.h (enum mcheck_status): Delete trailing
4967 comma in enum list; some compilers don't like it.
4969 Tue May 3 15:18:15 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
4971 * sysdeps/mach/hurd/__symlink.c (__symlink): Pass port type arg to
4972 __file_set_translator.
4974 Mon May 2 17:56:47 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4976 * hurd/Makefile (generated): Add $(inlines) .c files.
4978 * sysdeps/mach/hurd/__mknod.c: Pass port type arg to
4979 __file_set_translator.
4981 Sun May 1 16:03:13 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
4983 * mach/mig_syms.c: Add de-__ing aliases for mig_init,
4984 mig_get_reply_port, and mig_dealloc_reply_port.
4986 * sysdeps/mach/hurd/errnos.awk: Handle copying errors from
4987 mach/mig_errors.h and device/device_types.h. Omit E*_SUCCESS.
4988 Omit MACH_MSG_MASK and other special bit macros.
4990 * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Added
4991 sc_reply_port member.
4992 * hurd/hurdsig.c (fetch_reply_port): New function.
4993 (_hurd_internal_post_signal): When setting up to run handler, set
4994 SCP->sc_reply_port to the receiving thread's value for
4995 _HURD_THREADVAR_MIG_REPLY.
4996 * sysdeps/mach/hurd/i386/__sigret.c: Destroy the MiG reply port
4997 used by the signal handler, and restore from SCP->sc_reply_port.
4998 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp): New
4999 function; guts from __hurd_threadvar_location.
5000 (__hurd_threadvar_location): Call that.
5002 * hurd/hurdsig.c (check_pending): New function, broken out of:
5003 (_hurd_internal_post_signal): Call that for pending signal check.
5004 If SIGNO is zero, call check_pending on each thread's sigstate.
5006 * sysdeps/mach/hurd/start.c (start1): Use calloc to get
5007 zero-filled space for __hurd_threadvar_stack_offset when
5008 __hurd_threadvar_stack_mask is zero.
5010 Thu Apr 28 21:29:47 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5012 * Merged gmp-1.99.3+ mpn code from tege for printf_fp.
5013 * stdio/printf_fp.c: Include "longlong.h"; gmp-impl.h no longer does.
5015 * Makerules (+depfiles): Filter $(extra-objs) to get only .o files.
5017 Wed Apr 27 00:20:41 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5019 * Makerules (depend-$(subdir)): Put output in tmp file and use mv -f.
5020 Always use $(+depfiles), since sources is no longer exported.
5022 Tue Apr 26 20:05:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5024 * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Don't include <termios.h> to
5025 avoid <sys/ioctl.h> conflicts.
5026 * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Undefine ECHO, MDMBUF,
5027 TOSTOP, FLUSHO, PENDIN, and NOFLSH after including <termios.h> and
5028 before including <sys/ioctl.h>.
5029 * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
5031 Tue Apr 26 14:42:43 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
5033 * sysdeps/mach/sleep.c (sleep): Specify MACH_RCV_MSG or else
5034 mach_msg won't do anything but return immediately.
5035 (sleep): Compute return value correctly.
5037 Tue Apr 26 04:49:56 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5039 * sysdeps/i386/setjmp.c: Put global register decls first thing.
5040 * sysdeps/i386/__longjmp.c: Likewise.
5042 Fri Apr 22 18:10:36 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5044 * sysdeps/unix/sysv/irix4/__wait3.S: New file.
5045 * sysdeps/unix/sysv/irix4/time.S: New file.
5046 * sysdeps/unix/sysv/irix4/__waitpid.c: New file.
5048 Thu Apr 21 16:54:11 1994 Roland McGrath (roland@geech.gnu.ai.mit.edu)
5050 * malloc/malloc.c (initialize, morecore): When allocating the
5051 _heapinfo block itself, account for it in the statistics.
5053 Tue Apr 19 20:17:06 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5055 * sysdeps/unix/sysv/sco3.2.4/pipestream.c: New file.
5057 * malloc/malloc.c (morecore): Only zero the new part of NEWINFO,
5058 not the part we will copy _heapinfo into.
5060 * sysdeps/unix/bsd/signum.h (SIGLOST): Define.
5061 (_NSIG): Increase to 33.
5063 Mon Apr 18 16:56:11 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5065 * configure.in (config.status): Use $configure_args instead of
5067 (after AC_PREPARE): Call AC_LANG_C.
5069 * time/Makefile (routines): Add sys/timeb.h.
5070 (routines): Add ftime.
5071 * time/sys/timeb.h: New file.
5072 * sysdeps/unix/bsd/ftime.c: New file.
5073 * sysdeps/generic/ftime.c: New file.
5075 * sysdeps/posix/getenv.c (getenv): Return NULL if __environ is null.
5077 * malloc/malloc.h [_MALLOC_INTERNAL] [HAVE_UNISTD_H]: Include
5080 * malloc/Makefile (gmalloc-routines): Put valloc first.
5082 Wed Apr 13 14:03:02 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
5084 * sysdeps/mach/hurd/__symlink.c (__symlink): Set the target of the
5085 link to FROM, not TO.
5087 * sysdeps/mach/hurd/__readlink.c (__readlink): Copy just the
5088 target into the user's buffer, not the entire translator spec.
5090 Tue Apr 12 00:13:19 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
5092 * hurd/fd-write.c (_hurd_fd_write): Set noctty for now rather
5093 than depending on what happens to be on the stack.
5095 * sysdeps/mach/hurd/readdir.c (readdir): Notice when hitting
5096 end-of-file and return NULL.
5098 Mon Apr 11 17:36:59 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
5100 * sysdeps/mach/hurd/start.c (start1): Bother to set __environ.
5102 * sysdeps/mach/hurd/__ioctl.c (__ioctl): Comment out use of
5103 HURD_EINTR_RPC until signals work.
5105 Mon Apr 11 14:16:40 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
5107 * sysdeps/mach/hurd/__ioctl.c (__ioctl): Call __mig_get_reply_port
5108 rather than __mig_reply_port (which doesn't exist).
5110 * sysdeps/mach/hurd/__mknod.c: Added temporary declarations
5113 * (This change occurred on April 4, 1994) mach/setup-thread.c
5114 (__mach_setup_thread): The March 31 change had an error; the stack
5115 needs to be allocated with ANYWHERE cleared.
5117 * (This change occurred on April 8, 1994) hurd/hurdexec.c
5118 (_hurd_exec): The arguments to exec_exec had the length and
5119 type parameters transposed. In addition, fetch the correct
5120 procserver port for the new task.
5122 * (This change occurred on April 8, 1994)
5123 sysdeps/mach/hurd/__wait.c (__wait4): Deal properly with a null
5126 * (This change occurred on April 8, 1994)
5127 sysdeps/mach/hurd/_exit.c (_exit): Changed commented-out call to
5128 __proc_exit into a correct call to __proc_mark_exit.
5130 Fri Apr 8 14:58:24 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
5132 * string/strsignal.c (strsignal): Store of NUL into unknown_signal
5135 Tue Apr 5 21:26:25 1994 Brendan Kehoe (brendan@zen.org)
5137 * sysdeps/unix/sysv/sysv4/__sigact.c (__sigaction): Declare member
5138 `oact' in lower case, to match its use in the rest of the function.
5140 Tue Apr 5 03:07:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5142 * Makerules (install-lib.a rule): Run ranlib on the target.
5144 * Makerules (library member rule): Tighten up pattern rule to
5145 match only libc.a, not other libraries.
5147 Mon Apr 4 21:49:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5149 * set-hooks.h: New file.
5150 * Makefile (distribute): Add it.
5151 * set-init.c: Include it and use its macro DEFINE_HOOK_RUNNER.
5153 * Makerules (sysd-Makefile): Put `sysd-Makefile-done=t' in output.
5154 (sysd-rules): Don't include it unless sysd-Makefile-done is defined.
5156 Mon Apr 4 18:33:54 1994 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
5158 * mach/setup-thread.c (__mach_setup_thread): Oops; the vm_allocate
5159 call should have ANYWHERE cleared so that the change of the 31st
5160 has any effect at all.
5162 Thu Mar 31 13:46:13 1994 Michael I Bushnell (mib@churchy.gnu.ai.mit.edu)
5164 * mach/setup-thread.c (__mach_setup_thread): Create a red zone
5165 beneath the stack; also, work around a bug in cthreads by
5166 forcing the stack into high memory. FIXME--this routine
5167 depends on the direction of stack growth; that should be fixed.
5169 Mon Mar 28 12:55:51 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
5171 * Rules (make-dummy-lib): Use `$(AR)' instead of literal `ar'.
5173 * configure.in (arg parsing): Don't take --os-release or --os-version.
5174 (switches): Variable removed; don't write it into config.status.
5175 (config.status): Write release and version values directly.
5177 * sysdeps/unix/common/configure.in: Use changequote around if expr
5178 to avoid [] elision.
5180 Sat Mar 26 18:36:27 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
5182 * malloc/mcheck.c [! _MALLOC_INTERNAL]: #include <stdio.h>
5184 Fri Mar 25 02:17:55 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
5186 * malloc/mcheck.c (mprobe): New function.
5187 (abortfunc): Take enum mcheck_status arg.
5188 (checkhdr): Return an enum mcheck_status, and pass it to abortfunc.
5189 (mabort): New function.
5190 (mcheck): Use mabort as default abortfunc.
5191 * malloc/malloc.h (enum mcheck_status): New type.
5192 (mprobe): Declare new function.
5193 (mcheck): ABORTFUNC takes an `enum mcheck_status' arg.
5195 * posix/unistd.h [__USE_GNU] (TEMP_FAILURE_RETRY): New macro.
5197 * stdio/stdio.h [__USE_GNU && !_LIBC] (cookie_io_functions_t):
5198 Define instead of __io_functions (and make that a typedef for
5199 this); omit __ from member names.
5201 Thu Mar 24 14:59:23 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
5203 * sysdeps/unix/sysv/sco3.2.4/sigaction.h: New file.
5205 * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Put address of
5206 __sigreturn in %ecx before doing syscall trap.
5208 * sysdeps/stub/setegid.c: Fix arg type to __gid_t (was int).
5210 Wed Mar 23 17:33:09 1994 Roland McGrath (roland@mole.gnu.ai.mit.edu)
5212 * Makefile (headers): Remove $(stdarg.h).
5213 * Makeconfig (stdarg.h): Variable removed.
5214 * configure.in: Remove check for __gnuc_va_list in stdarg.h.
5215 It is not safe to replace the compiler's stdarg.h with our own.
5217 Tue Mar 22 12:46:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5219 * Rules (dist): Rule removed.
5220 * Makefile (dist): Likewise.
5221 * Makerules (dist, distinfo): New rules.
5222 (TAGS): Depend on distfile, pass -f distfile to submake.
5224 * math/Makefile: Remove if-ed out old bsdmath copying rules.
5226 * Makerules (sources, headers, sysdep_routines): Don't export these.
5227 * Rules (others, tests): Likewise.
5229 * io/lockf.c: Include fcntl.h and errno.h.
5231 Mon Mar 21 20:27:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5233 * sysdeps/unix/bsd/sony/newsos4/fchdir.S: New file.
5234 * sysdeps/unix/bsd/sony/newsos4/{__wait4.c,__wait3.c,__wait.c,
5235 sys_wait4.S,Makefile,Dist}: New files.
5237 * sysdeps/unix/Makefile (syscall.h): De-SYS_ify `kerncall_basenum'.
5239 * sysdeps/unix/bsd/m68k/sysdep.S [! __motorola__]: Rename label 0
5240 to `store'; a user reports gas 1.38 bombs on numbered labels.
5242 * sysdeps/posix/Makefile (mk-stdiolim): Use $(HOST_CC).
5244 * Rules (distribute, dont_distribute, generated): Don't export them.
5245 (dist): Pass those vars down to sub-make on cmd line.
5246 * Makefile (distribute, generated): Don't export them.
5247 (dist): Pass distribute and generated values to sub-make on cmd line.
5249 * Makerules (install-lib-nosubdir): Insert $(libprefix) appropriately.
5251 Fri Mar 18 01:02:52 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5253 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h (DO_CALL): Use a6 in
5254 place of fp. A user reports gas 1.38 doesn't grok fp.
5256 Tue Mar 8 18:35:02 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5258 * Makerules (common-clean): Prepend $(objpfx) to $(generated).
5259 * Makefile (parent-clean): Prepend $(common-objpfx) to
5260 $(common-generated).
5261 * Makefile (generated): Don't prepend $(objpfx).
5262 * Rules (generated): Likewise.
5263 * sysdeps/unix/common/Makefile (generated): Likewise.
5264 * sysdeps/unix/sysv/Makefile (generated): Likewise.
5265 * sysdeps/unix/Makefile (common-generated): Don't prepend
5267 * sysdeps/posix/Makefile (common-generated): Likewise.
5268 * sysdeps/generic/Makefile (common-generated): Likewise.
5269 (generated): Don't prepend $(objpfx).
5271 * sysdeps/generic/Makefile (common-generated): Set this instead of
5272 generated for bytesex.h and det_endian.
5274 * sysdeps/stub/fexecve.c: New file.
5275 * posix/Makefile (routines): Add fexecve.
5276 * posix/unistd.h [__USE_GNU]: Declare fexecve.
5278 * sysdeps/unix/common/configure.in: Protect siglist and ctype
5279 checks with if [ ! "$inhibit_glue" ].
5280 * sysdeps/generic/configure.in: Likewise for psignal check.
5281 * sysdeps/unix/common/Makefile: Protect body with ifndef inhibit-glue.
5283 Mon Mar 7 17:46:46 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5285 * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: New file from brendan.
5287 Fri Mar 4 01:56:26 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5289 * Makerules (native-compile, common-objdir-compile): Use
5290 $(HOST_CC) in place of $(CC).
5292 * malloc/cfree.c: Move #undef cfree inside #ifdef _LIBC.
5294 * misc/sys/ioctl.h (struct ttysize): If TIOCGSIZE != TIOCGWINSZ,
5295 use two int elts instead of four shorts.
5297 Thu Mar 3 17:35:54 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5299 * malloc/realloc.c (realloc): When shrinking a block by splitting
5300 and then freeing one, bump the _chunks_used counter.
5302 * sysdeps/unix/sysv/sysv4/i386/__mknod.S: New file.
5304 Tue Mar 1 11:42:41 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5306 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Get first argument from
5307 stack at 8(%esp), not 4(%esp).
5309 * sysdeps/unix/sysv/isc2.2/rename.S: Get unix/common, not unix/bsd.
5311 Thu Feb 24 14:40:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5313 * io/lockf.c: New file.
5314 * io/Makefile (routines): Add lockf.
5315 * io/fcntl.h [__USE_MISC] (F_ULOCK, F_LOCK, F_TLOCK, F_TEST): New
5317 [__USE_MISC] (lockf): Declare it.
5318 * posix/unistd.h: Copy those new macros and declaration.
5320 * time/backward, time/etcetera, time/zic.c: New code and data from ADO.
5321 * Makeconfig (posixrules): Default to America/New_York.
5323 * sysdeps/unix/mips/sysdep.S: Store -1 in v0 in the delay slot after
5324 the return, rather than before (leaving the delay slot unfilled and
5327 * sysdeps/unix/sysv/irix4: New directory; mips-sgi-irix4 port
5330 * sysdeps/unix/sysv/sysv4/direct.h: Moved to unix/common; it is right
5331 for irix4 as well as sysv4.
5332 * sysdeps/unix/bsd/ultrix4/__wait.S: Moved to unix/mips.
5333 (noerror): Store register v1 in location pointed to by first arg (if
5335 * sysdeps/unix/bsd/ultrix4/__sigret.S: Moved to unix/mips.
5337 * sysdeps/unix/bsd/bsd4.4/{mmap,munmap,mprotect,msync,madvise}.S:
5338 Moved to sysdeps/unix/mman (new directory).
5339 * sysdeps/unix/bsd/bsd4.4/Implies: New file; imply unix/mman.
5340 * sysdeps/unix/bsd/sunos4/Implies: Likewise.
5341 * sysdeps/unix/bsd/ultrix4/Implies: Likewise.
5342 * sysdeps/unix/bsd/osf1/Implies: Likewise.
5343 * sysdeps/unix/bsd/sun/sunos4/munmap.S,
5344 sysdeps/unix/bsd/sun/sunos4/mprotect.S,
5345 sysdeps/unix/bsd/sun/sunos4/madvise.S,
5346 sysdeps/unix/bsd/ultrix4/mmap.S,
5347 sysdeps/unix/bsd/ultrix4/munmap.S,
5348 sysdeps/unix/bsd/ultrix4/mprotect.S,
5349 sysdeps/unix/bsd/osf1/mmap.S,
5350 sysdeps/unix/bsd/osf1/munmap.S,
5351 sysdeps/unix/bsd/osf1/mprotect.S: Files removed.
5353 * sysdeps/unix/sysv/sysv4/fcntlbits.h: Moved to sysdeps/unix/common.
5355 * stdio/printf_fp.c: Add many assertions to make sure no mpn size
5356 variable is ever zero.
5358 * Makerules (native-CFLAGS): Add -I$(sysincludedir).
5360 * Makerules (depend-$(subdir)) [omit-deps]: Use $(+depfiles) value
5361 instead of shell hackery.
5363 Wed Feb 23 00:09:08 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5365 * sysdeps/sparc/alloca.S [! NO_UNDERSCORES]: Call it ___builtin_alloca.
5367 Tue Feb 22 18:47:10 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5369 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Use __off_t in mmap
5372 * time/setitmr.c: Swap args OLD and NEW.
5373 * time/sys/time.h (setitimer): Likewise.
5374 * sysdeps/stub/__setitmr.c: Likewise.
5376 Mon Feb 21 20:47:55 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5378 * sysdeps/sparc/Makefile [gnulib] (routines): Add alloca.
5379 * sysdeps/sparc/alloca.S: New file; support for SunOS libc's
5380 `__builtin_alloca' function (never needed with GCC).
5382 * sysdeps/unix/sysv/sysv4/__sigact.c (trampoline): Cast handler to
5385 Sun Feb 20 00:46:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5387 * sysdeps/unix/bsd/sun/sunos4/mmap.c: Add missing semicolon.
5389 * sysdeps/unix/sparc/start.c [! NO_SHLIB]: Include <sys/types.h>
5390 before <sys/mman.h>.
5392 * sysdeps/unix/bsd/ultrix4/mips/{sysdep.h,sysdep.S,__pipe.S,
5393 __fork.S,__brk.S}: Moved to sysdeps/unix/mips (new directory).
5395 * sysdeps/unix/bsd/ultrix4/mips/__sigret.S: Use SYS_sigreturn
5396 instead of literal 103; #define to 103 if not already defined.
5398 Sat Feb 19 17:39:13 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5400 * sysdeps/unix/sysv/sysv4/i386/Dist: New file; list sys-sig.S.
5402 Fri Feb 18 18:07:34 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5404 * sysdeps/generic/configure.in: New file; check for psignal.
5406 * sysdeps/unix/common/glue-ctype.c: Check for table named _ctype,
5407 before checking for _ctype_.
5408 * sysdeps/unix/common/configure.in: Check for _ctype.
5410 * sysdeps/unix/Makefile (syscall.h): Look for sys.s before syscall.h.
5411 * sysdeps/unix/configure (unix_syscall_h): Likewise.
5413 * configure.in (os = irix4*): Set base_os=unix/sysv.
5415 * sunrpc/rpc/auth.h (u_int32): Always define, no #ifdefs.
5416 * sunrpc/xdr_float.c: Change [mc68000 || sparc] to [! vax].
5418 Thu Feb 17 18:42:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5422 * sysdeps/unix/bsd/sun/sunos4/Dist: Add sys_mmap.S.
5424 * Makerules (sysdep_dir): Remove defn.
5425 * Makeconfig (sysdep_dir): Define it here instead.
5427 Wed Feb 16 16:54:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5429 * sysdeps/unix/sysv/sysv4/__sigact.c: New file.
5430 * sysdeps/unix/sysv/sysv4/i386/Makefile: New file.
5431 * sysdeps/unix/sysv/sysv4/i386/sys-sig.S: New file.
5433 * time/sys/time.h (timerisset, timercmp, timerclear): New macros.
5435 * misc/Makefile (headers): Add sys/mman.h.
5436 (routines): Add mmap, munmap, mprotect, msync.
5437 * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: New file.
5438 * sysdeps/unix/bsd/sun/sunos4/mmap.c: New file.
5439 * sysdeps/unix/bsd/sun/sunos4/Makefile [$(subdir) == misc]
5440 (sysdep_routines): Add sys_mmap.
5441 * sysdeps/unix/bsd/bsd4.4/mprotect.S: New file.
5442 * sysdeps/unix/bsd/bsd4.4/munmap.S: New file.
5443 * sysdeps/unix/bsd/bsd4.4/msync.S: New file.
5444 * sysdeps/unix/bsd/bsd4.4/mmap.S: New file.
5445 * sysdeps/unix/bsd/bsd4.4/madvise.S: New file.
5446 * sysdeps/unix/bsd/sun/sunos4/mprotect.S: New file.
5447 * sysdeps/unix/bsd/sun/sunos4/munmap.S: New file.
5448 * sysdeps/unix/bsd/sun/sunos4/msync.S: New file.
5449 * sysdeps/unix/bsd/sun/sunos4/madvise.S: New file.
5450 * sysdeps/unix/bsd/ultrix4/sys/mman.h: New file.
5451 * sysdeps/unix/bsd/ultrix4/mmap.S: New file.
5452 * sysdeps/unix/bsd/ultrix4/munmap.S: New file.
5453 * sysdeps/unix/bsd/ultrix4/mprotect.S: New file.
5454 * sysdeps/stub/mprotect.c: New file.
5455 * sysdeps/stub/munmap.c: New file.
5456 * sysdeps/stub/msync.c: New file.
5457 * sysdeps/stub/mmap.c: New file.
5458 * sysdeps/stub/madvise.c: New file.
5459 * sysdeps/generic/sys/mman.h: New file.
5460 * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: New file.
5461 * sysdeps/unix/bsd/osf1/msync.S: New file.
5462 * sysdeps/unix/bsd/osf1/mmap.S: New file.
5463 * sysdeps/unix/bsd/osf1/munmap.S: New file.
5464 * sysdeps/unix/bsd/osf1/mprotect.S: New file.
5465 * sysdeps/unix/bsd/osf1/sys/mman.h: New file.
5467 Tue Feb 15 16:47:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5469 * posix/unistd.h: Declare truncate, ftruncate.
5471 * misc/Makefile (headers): Add syslog.h.
5472 * misc/syslog.h: New file; just includes <sys/syslog.h>.
5474 * posix/unistd.h: Change duplicate seteuid decl to setegid.
5476 * io/Makefile (headers): Add sys/fcntl.h.
5477 * io/sys/fcntl.h: New file; just includes <fcntl.h>.
5479 Mon Feb 14 10:36:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5481 * Makerules (library pattern rule): Depend on
5482 $(objpfx)stamp-$(subdir) and have empty commands.
5483 ($(objpfx)stamp-$(subdir)): Move dep on $(objects) and ar cmds here.
5484 (common-mostlyclean): Remove $(objpfx)stamp-$(subdir).
5486 * Makerules (+depfiles): Filter out deps for modules in $(omit-deps).
5488 * sunrpc/Makefile (omit-deps): Define new variable.
5490 * Makerules ($(libc.a)(__.SYMDEF)): Depend on $(+libobjs), not
5492 * Makefile ($(libc.a)(__.SYMDEF)): Depend on subdir_lib.
5494 * Makerules (+depfiles): Include deps for $(extra-objs).
5496 * sunrpc/rpcsvc/klm_prot.x: Move program definition to end.
5498 * sunrpc/Makefile (lib): Depend on $(objpfx)librpcsvc.a.
5500 * time/zic.c: Set CP to NAME before dereferencing.
5502 * sunrpc/Makefile ($(objpfx)x%.c): Target fixed from $(objpfx)x%.c.
5503 ($(objpfx)rpcsvc/%.h): Target renamed from $(includedir)rpcsvc/%.h.
5504 Make each x%.o file depend on the corresponding rpcsvc/%.h file.
5505 (headers): Add rpcsvc/%.h.
5506 (install-others): Remove generated rpcsvc headers.
5507 (generated): Define to include generated rpcsvc headers and sources.
5509 * sysdeps/m68k/fpu/acos.c: Add __CONSTVALUE to defn.
5510 * sysdeps/m68k/fpu/ldexp.c: Likewise.
5511 * sysdeps/m68k/fpu/pow.c: Likewise.
5512 * sysdeps/m68k/fpu/fmod.c: Likewise.
5513 * sysdeps/m68k/fpu/atan2.c: Likewise.
5514 * sysdeps/m68k/fpu/__drem.c: Likewise.
5515 * sysdeps/m68k/fpu/__isinf.c: Likewise.
5516 * sysdeps/generic/hypot.c: Likewise.
5517 * sysdeps/m68k/fpu/__logb.c: Likewise.
5519 * sysdeps/unix/bsd/m68k/sysdep.S: Swap operands in cmpl.
5521 Sun Feb 13 19:49:24 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5523 * sysdeps/m68k/Makefile (compile-command.S): Remove definition
5524 that did kludgey # hackery.
5525 * sysdeps/unix/bsd/hp/m68k/sysdep.h (PSEUDO): Add missing close paren.
5526 (POUND): Define (no arg) to just `#' (a single pound sign).
5527 (PSEUDO, DO_CALL): Use `POUND foo' in place of `POUND(foo)'.
5528 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
5529 * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
5530 * sysdeps/unix/bsd/sun/m68k/__brk.S: Use #0, not POUND(0).
5531 * sysdeps/unix/bsd/hp/m68k/__brk.S: Use #__end instead of POUND(__end).
5533 Fri Feb 11 00:29:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5535 * configure.in (Makefile): Set objdir instead of ARCH in submake cmd.
5537 * time/mktime.c: Define __P if undefined.
5539 * assert/assert.h (__ASSERT_FUNCTION): Check __GNUC_MINOR__<6 if
5540 defined(__cplusplus).
5542 Thu Feb 10 00:52:31 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5544 * sysdeps/unix/sysv/__sigact.c: Use __sigismember and
5545 __sigemptyset on sa_mask instead of assuming it's an int.
5547 * sysdeps/unix/sysv/sysv4/sigset.h (__sigismember): Declare arg
5548 SET to be a pointer to const.
5550 * sysdeps/posix/__sigpause.c: Convert MASK to a sigset_t with a loop.
5552 * sysdeps/posix/__sigblock.c: When sigset_t==mask, take address of
5553 SET or OSET, cast to int *, and dereference.
5554 * sysdeps/posix/__sigstmsk.c: Likewise.
5555 * sysdeps/posix/__sigvec.c: Likewise.
5557 Add the -lrpcsvc library of XDR routines for standard SunRPC protocols.
5558 * sunrpc/Makefile (install-lib): Define to include librpcsvc.a.
5559 (rpcsvc-objs): New variable.
5560 (extra-objs): Add $(rpcsvc-objs).
5561 ($(objpfxlibrpcsvc.a): New target.
5562 ($(objpfx)x%.o): New rule to rpcgen XDR routines.
5564 Wed Feb 9 11:59:33 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5566 * time/zic.c (mkdirs): Reapply fix to avoid writing into passed ptr.
5568 * sunrpc/Makefile (distribute): Add etc.rpc.
5569 ($(includedir)/bootparam_prot.h): Change target to
5570 $(includedir)/rpcsvc/bootparam_prot.h and dep to
5571 $(includedir)/rpcsvc/bootparam.h.
5572 (install-others): Change reference.
5574 * sunrpc/rpc_util.h: Comment out bogus decl of sprintf.
5576 * Makerules ($(libc.a)(__.SYMDEF)): Depend on lib-noranlib instead
5577 of $(+libobjs); this way makes the parent do subdir_lib.
5579 * sysdeps/unix/sysv/sysv4/sigset.h: Protect types with #ifndef
5580 _SIGSET_H_types. Protect rest with #if !defined (_SIGSET_H_fns)
5581 && defined (_SIGNAL_H).
5583 Tue Feb 8 19:00:42 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5587 * sysdeps/unix/sysv/sysv4/sigset.h: Fix typos (omitted __s).
5589 Mon Feb 7 14:31:00 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5591 * Makerules ($(libc.a)): Depend on $(libc.a)(__.SYMDEF); no commands.
5592 ($(+libobjs)): Remove static pattern rule.
5593 (ar-it): Target removed.
5594 Replace with pattern rule to catch %(*.o) for all $(objects).
5595 ($(libc.a)(__.SYMDEF)): New target.
5596 (lib-noranlib, $(libdir)/lib$(libprefix)c.a): Don't depend on ar-it.
5598 * sysdeps/unix/sparc/sysdep.h (PSEUDO): Add nop after jmp; the
5599 next insn is most likely a retl, which causes interesting behavior.
5601 * stdio/vfprintf.c: Pass WORKEND+1 to _itoa, not WORKEND.
5602 Subtract one from result of _itoa when setting W.
5604 * time/{africa,asia,australasia,backward,europe,leapseconds,
5605 northamerica,southamerica,zic.c}: New code and data from ADO.
5607 Sun Feb 6 13:55:27 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5609 * sunrpc: New directory; code from Sun's RPCSRC-4.0.
5610 * sysdeps/unix/inet/Subdirs: Add sunrpc.
5611 * inet/netdb.h: #include <rpc/netdb.h> at end.
5613 * Make-dist ($(tardir).tar): Use -v when extracting from dist.tar
5614 and pipe output to doschk.
5616 * Makeconfig (etcdir): New variable.
5617 (localtime-file): Use that in default value.
5619 * Makerules (depend-$(subdir)): Include dep files for all .o files
5620 listed in $(extra-objs).
5622 * posix/sys/types.h (NFDBITS): #define to __NFDBITS.
5624 * inet/netinet/in.h (INADDR_LOOPBACK): Don't define if already
5625 defined; avoids changing source which defines it before including this.
5626 (struct sockaddr_in): Rename `__pad' member to `sin_zero'; some
5627 code wants to bzero the area just for paranoia.
5629 Make cleaning targets only remove common (not specific to one
5630 subdir) generated files if run from the parent directory.
5631 * Makefile (parent-clean): Remove $(common-generated) also.
5632 * sysdeps/unix/Makefile (local_lim.h, sys/param.h, errnos.h,
5633 ioctls.h, syscall.h): Append to $(common-generated), not $(generated).
5634 * sysdeps/posix/Makefile (stdio_lim.h): Likewise.
5636 * signal/signal.h: Declare psignal here.
5637 * stdio/stdio.h: Not here.
5639 * stdio/stdio.h [__OPTIMIZE__] (vprintf, vfscanf, vscanf,
5640 vsscanf): Define as extern inline functions instead of macros.
5642 * configure.in (names): Check existence of implied dirs and warn
5645 Sat Feb 5 13:38:26 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5649 * resource/sys/resource.h (RUSAGE_SELF, RUSAGE_CHILDREN): #define
5650 to self for things that test #ifdef.
5652 * sysdeps/unix/common/Dist: Remove bsd_getgrp.S.
5654 * sysdeps/unix/Makefile: Don't include param.h.dep ifdef no_deps.
5656 * Makerules (vpath %.h): Use $(common-objpfx) in place of $(objpfx).
5658 * sysdeps/unix/bsd/i386/__vfork.S: Decrement R1 and AND it with R0
5659 to avoid the test and branch.
5661 * sysdeps/unix/bsd/getprio.S, sysdeps/unix/bsd/setprio.S,
5662 sysdeps/unix/bsd/__setreuid.S, sysdeps/unix/bsd/__setregid.S: Moved to
5663 sysdeps/unix/common.
5665 * sysdeps/unix/reboot.S: New file.
5667 * sysdeps/unix/sysv/sysv4/solaris2/signum.h: New file.
5668 * sysdeps/unix/sysv/sysv4/signum.h: New file.
5669 * sysdeps/unix/sysv/sysv4/sigset.h: New file.
5670 * sysdeps/unix/sysv/sysv4/sigaction.h (struct sigaction): Swap
5671 positions of sa_flags and sa_mask members (sa_flags is first now).
5672 (SA_NOCLDWAIT): Renamed from SA_NOSCLDWAIT.
5674 * sysdeps/unix/bsd/init-posix.c (_posix_start_time): Initialize it.
5676 * Makerules (open-check-inhibit-asm): Use : for empty commands in case.
5678 * time/leapseconds: New version from ADO, adds 1994 leap second.
5680 Thu Feb 3 02:15:30 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5682 * sysdeps/unix/bsd/ulimit.c: Define ulimit instead of __ulimit.
5684 Wed Feb 2 16:56:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5686 * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: Moved to unix/sysv/sysv4.
5687 Replaced with #include of that file.
5689 * sysdeps/unix/sysv/sysv4/solaris2/sigaltstack.S: Moved to
5690 sysdeps/unix/sysv/sysv4/sigaltstk.S.
5692 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Syscall lxstat, not xlstat.
5693 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Syscall fxstat, not xfstat.
5695 Tue Feb 1 18:22:21 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5697 * stdio/_itoa.c, stdio/_itoa.h: New files.
5698 * stdio/Makefile (routines): Add _itoa.
5699 (distribute): Add _itoa.h.
5700 * stdio/vfprintf.c: Use _itoa instead of doing it by hand.
5702 * sysdeps/unix/sparc/vfork.S: Add nop after jmp. Bad delay slot,
5704 * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
5706 Mon Jan 31 19:33:04 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5708 * assert/assert.c (__assert_fail): Take 4th arg FUNCTION; if it is
5709 not null, print it in the message. Also declare __NORETURN.
5710 * assert/assert.h (__assert_fail): Update decl; also add __NORETURN.
5711 (__ASSERT_FUNCTION): #define to be __PRETTY_FUNCTION__ for GCC>=2.4.
5712 (assert): Pass __ASSERT_FUNCTION to __assert_fail.
5714 * sysdeps/unix/bsd/sun/sparc/vfork.S: Moved to sysdeps/unix/sparc.
5715 Use C_SYMBOL_NAME on __vfork instead of prepending an underscore.
5717 * sysdeps/unix/sysv/sysv4/solaris2/{start.c,sysdep.S,sysdep.h}: Moved
5718 to sysdeps/unix/sysv/sysv4/solaris2/sparc.
5720 * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
5721 bsd/ultrix4/mips,bsd/vax}/sysdep.S: Don't do EWOULDBLOCK_sys->EAGAIN
5722 mapping #if EWOULDBLOCK_sys == EAGAIN.
5724 * sysdeps/unix/sparc/sysdep.h [NO_UNDERSCORES]: #define syscall_error
5725 to C_SYMBOL_NAME(__syscall_error).
5726 (PSEUDO): On error, jump to syscall_error instead of setting errno.
5727 * sysdeps/unix/sparc/sysdep.S: New file.
5729 * sysdeps/unix/sysv/sysv4/i386/__vfork.S: New file, just #include
5730 unix/bsd/i386 version.
5732 * sysdeps/unix/bsd/i386/__vfork.S: Use `scratch' in place of %edx.
5734 Thu Jan 27 16:46:03 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5736 * configure.in (asm-CPPFLAGS): Add new check to see if assembling
5737 a .S file loses without -P. If so, set asm-CPPFLAGS=-P in config.make.
5739 * configure.in (stddef.h): Print msg under --verbose.
5741 * manual/Makefile (subdir): Define outside of `export' directive,
5744 * time/mktime.c (search): Take new arg PRODUCER, fn to call
5745 instead of `localtime'.
5746 (_mktime_internal): New function; all code from old `mktime', but
5747 take 2nd arg PRODUCER and pass along to `search'.
5748 (mktime): Rewrite to call _mktime_internal with localtime.
5749 * time/Makefile (routines): Add dysize, timegm, timelocal.
5750 * time/time.h (_mktime_internal): Declare it.
5751 [__USE_MISC]: Declare timegm, timelocal, dysize.
5752 * time/dysize.c: New file.
5753 * time/timegm.c: New file.
5754 * time/timelocal.c: New file.
5756 Wed Jan 26 20:06:23 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5758 Remove the hackery on getgroups for most systems. It is no longer
5759 necessary because gid_t is now the same size as int.
5760 * sysdeps/unix/common/Makefile (sysdep_routines): Don't add bsd_getgrp.
5761 * sysdeps/unix/common/bsd_getgrp.S: File removed.
5762 * sysdeps/unix/common/__getgrps.S: New file.
5763 * sysdeps/unix/bsd/sequent/i386/__getgrps.S: New file.
5765 Clean up the rules for cleaning up.
5766 * Makerules (common-mostlyclean): New target; remove object files.
5767 (common-clean): New target; depend on common-mostlyclean, and
5768 remove dep files and generated files.
5769 (clean): Depend on common-clean.
5770 (mostlyclean): Depend on common-mostlyclean.
5771 * Rules (mostlyclean): Target removed.
5772 (clean): Target removed.
5773 (distclean): New target; depend on clean.
5774 (realclean): New target; depend on distclean.
5775 (subdir_distclean): New target; depend on distclean.
5776 (subdir_realclean): New target; depend on realclean.
5777 (subdir_mostlyclean): New target; depend on mostlyclean.
5778 * Makefile (+subdir_targets): Add subdir_distclean,
5779 subdir_realclean; change mostlyclean to subdir_mostlyclean.
5780 (parent-mostlyclean): New target; depend on common-mostlyclean and
5781 remove libc.a and $(install-lib).
5782 (parent-clean): New target; depend on parent-mostlyclean and
5783 common-clean, and remove sysdirs sysd-dirs sysd-Makefile.
5784 (clean): Depend on parent-clean and just do submake for subdirs.
5785 (mostlyclean): Depend on parent-clean and just do submake for subdirs.
5786 (distclean, realclean): Depend on parent-clean and do submake
5787 distclean-1 passing it variable assignment distclean-1=$@.
5788 (distclean-1): Depend on subdir_$(distclean-1) and remove
5789 $(config-generated), config.status, config.make, Makefile (if not
5791 * manual/Makefile (subdir_clean): Target removed.
5792 (subdir_%): New rule to handle all such targets.
5793 (distclean): Depend on clean, not mostlyclean.
5794 (realclean): Depend on distclean, not clean.
5796 * sysdeps/unix/configure (unix_generated_dirpfx): New variable.
5797 Use it to put created .S files in sysdeps/unix if configured in
5798 srcdir, else in current directory.
5799 (unix_generated): Prepend $unix_generated_dirpfx.
5800 Have generated config.make fragment prepend $(objpfx).
5801 * sysdeps/unix/Makefile (generated): Don't set it.
5802 (config-generated): Set this instead; don't prepend any directory
5803 prefix to $(unix-generated).
5805 Fixes for SVR4 wait from jmc@ksu.ksu.edu (James Michael Chacon):
5806 * sysdeps/unix/sysv/sysv4/siginfo.h (__siginfo_t): Add `__code'
5808 (EXITED, KILLED, CORED, TRAPPED, STOPPED, CONTINUED): New macros.
5809 * sysdeps/unix/sysv/sysv4/__waitpid.c: Switch on INFOP.__code and
5810 construct *STAT_LOC from INFOP.__status accordingly.
5812 * stdlib/testsort.c (main): Use puts to add newlines to printed lines.
5814 Tue Jan 25 14:32:01 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5818 * manual/Makefile (%.z): Change target pattern to %.gz.
5819 (dist): Comment out dep. Don't really need the separate doc dist.
5821 * stdio/stdio.h [__OPTIMIZE__] (getchar, putchar, getdelim,
5822 getline, __getline): Use extern inlines instead of macros.
5824 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Fix typo ($eax for %eax).
5826 * sysdeps/unix/siglist.c [! HAVE_GNU_LD] (_sys_siglist): #define
5828 * sysdeps/posix/__gettod.c [! HAVE_GNU_LD] (__daylight,
5829 __timezone, __tzname): #define to non-__ names.
5831 * math/math.h [__USE_BSD] (M_E, M_LOG2E, M_LOG10E, M_LN2, M-LN10,
5832 M_PI, M_PI_2, M_PI_4, M_1_PI, M_2_PI, M_2_SQRTPI, M_SQRT2,
5833 M_SQRT1_2): New macros.
5835 Tue Jan 25 14:01:28 1994 Michael I. Bushnell (mib at ernst.gnu.ai.mit.edu)
5837 * sysdeps/mach/hurd/start.c (start1): Decide separately whether to
5838 split argv and whether to split envp.
5840 * sysdeps/mach/hurd/i386/sysdep.h: File deleted.
5841 sysdeps/mach/i386/sysdep.h: Delete SET_SP macro.
5842 sysdeps/mach/hurd/start.c (_start): Don't call GET_SP; set globals
5843 instead of locals from exec_startup message.
5845 * misc/progname.c: Don't try to set
5846 program_invocation_name or program_invocation_short_name if argv
5847 or argv[0] is invalid.
5849 Mon Jan 24 16:51:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5851 * sysdeps/unix/sysv/sysv4/__waitpid.c: Return INFOP.__pid instead of
5852 the PID we were called with.
5854 * sysdeps/unix/sysv/__mkdir.c (__mkdir): Restore errno before
5855 returning, not after (lot of good that did).
5857 * sysdeps/unix/bsd/ultrix4/system.c, sysdeps/unix/bsd/bsd4.4/system.c,
5858 sysdeps/unix/bsd/osf1/system.c, sysdeps/unix/sysv/sco3.2.4/system.c,
5859 sysdeps/unix/bsd/sun/sunos4/system.c, sysdeps/unix/sysv/sysv4/system.c:
5860 New files. Avoid sysdeps/unix/system.c, which defines NO_WAITPID.
5862 * set-init.c (__libc_init): Use `n' count field instead of
5863 checking for null terminator. The latter loses when there are no
5864 set elts at all, and only one word is allocated for __libc_subinit.
5866 * sysdeps/generic/waitstatus.h (__WCOREFLAG): New macro.
5867 * posix/sys/wait.h [__USE_BSD] (WCOREFLAG): New; define to __WCOREFLAG.
5869 * stdio/fileno.c (fileno): Call __stdio_check_funcs.
5871 * stdio/tst-fileno.c: New file.
5873 Fri Jan 21 16:56:50 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5875 * Rules (dep-dummy-lib, make-dummy-lib): New variables.
5876 ($(objpfx)dummy.o): New file rule.
5877 * posix/Makefile ($(objpfx)libposix.a): Depend on
5878 $(dep-dummy-lib), and use $(make-dummy-lib) for commands.
5879 * math/Makefile ($(objpfx)libm.a): Likewise.
5881 * sysdeps/unix/sysv/sysv4/i386/__stat.S: New file.
5882 * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
5883 * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
5885 * sysdeps/sparc/bytesex.h: New file.
5887 Thu Jan 20 12:45:35 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5889 * sysdeps/stub/syscall.c (syscall): Declare arg type as int.
5891 Wed Jan 19 18:18:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5893 * Makerules ($(before-compile) rule): Protect w/`ifdef before-compile'.
5895 * manual/Makefile: Change all `mv' uses to `mv -f'.
5896 (subdir_install): Depend on stubs.
5898 * Makerules ($(objpfx)%.dep: %.s): Depend also on $(objpfx)dummy.dep.
5900 Tue Jan 18 19:12:57 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5902 * stdlib/testsort.c (main): Swap dimensions of BUFS array.
5904 Mon Jan 17 17:31:28 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5906 * Version 1.07 released.
5908 * Makerules (install-lib rules): Fix typos: missing / after $(libdir).
5910 * posix/Makefile (lib): Depend on $(objpfx)libposix.a
5911 * malloc/Makefile (lib): Depend on $(objpfx)libmcheck.a.
5912 * math/Makefile (lib): Depend on $(objpfx)libm.a.
5913 * misc/Makefile (lib): Depend on $(objpfx)libbsd-compat.a.
5915 * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: New file.
5917 * stdio/internals.c (flushbuf): Don't try aligned-block writing
5918 calculation when FP->__buffer is nil.
5920 Mon Jan 17 17:27:56 1994 Jim Meyering (meyering@comco.com)
5922 * sysdeps/generic/memcmp.c [!_LIBC]: Include <sys/types.h> for
5923 definition of size_t.
5925 Mon Jan 17 17:13:11 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5927 * sysdeps/unix/sysv/sco3.2.4/syscall.h: Add SYS_[gs]etitimer and
5928 SYS_pgrpsys (from scottb).
5930 * sysdeps/unix/configure: Check for getitimer and setitimer syscalls.
5932 * sysdeps/unix/bsd/sequent/i386/syscall.S: New file from jason.
5934 Sun Jan 16 00:41:03 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5936 * string/strerror.c (strerror): Declare BUF to be array of char.
5940 Sat Jan 15 17:27:26 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5942 * stdlib/testsort.c (main): Rewrite not to read any input; instead
5943 generate some random alphabetic strings.
5945 * stdlib/Makefile (testsort.input): Rules removed.
5947 * sysdeps/unix/sysv/i386/__sigret.S: New file.
5949 * stdio/Makefile (distribute): Add mpn-copy.mk.
5950 Remove 68k rules; include mpn-copy.mk for dir names needing
5951 translation, and rewrite no-68k rules to be generic for the rest.
5952 (mpn-copy-sysdep): New variable.
5953 (mpn-stuff): Include $(mpn-copy-sysdep).
5954 (clean-mpn): Use rm -f.
5956 * configure.in (machine): Match m68... and m88..., not mc[68]8....
5958 * stdio/printf_fp.c: For length arg to __mpn_extract_double, pass
5959 actual number of limbs allocated for F, not LDBL_MANT_DIG.
5961 Fri Jan 14 19:09:29 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5963 * sysdeps/unix/i386/sysdep.S: Fixed typo: `movl', not `move'.
5965 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Swap args in cmpl insn.
5967 Thu Jan 13 17:09:19 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5971 * sysdeps/mips/sqrt.c: File removed. Ian says only the r[46]00
5972 have `sqrt.d' and GCC open codes it anyway. Perhaps someday
5973 Brendan will be able to explain his rationale for writing this. :(
5975 Tue Jan 11 18:10:17 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
5977 * posix/sys/wait.h (__WAIT_STATUS, __WAIT_STATUS_DEFN): Use snazzy
5978 version only for GCC >= 2.6 (was 2.4); 2.5.7 produces bad code on
5979 sparc when the union arg type is used.
5981 * Makeconfig (libprefix): New variable.
5982 * Makerules ($(libdir)/libc.a, install): Insert $(libprefix)
5983 between `lib' and `c' in the file name.
5984 [install-lib] (install-lib.a, install-lib-non.a): New variables
5985 separate out $(install-lib) elts which do or don't match lib%.a.
5986 ($(libdir)/...): Split into two rules for above two cases. Put
5987 $(libprefix) on installed files; for lib%.a insert it before %
5988 rather than at beginning of file name.
5992 * Makerules (compilation rules): Move directoryless rules (for
5993 finding sources in .) before include sysd-rules. Omit rules to
5994 compile from sources in $(objpfx) if not using $(objdir).
5996 * sysdeps/stub/errlist.c [! HAVE_GNU_LD]: #define _sys_errlist to
5997 sys_errlist and _sys_nerr to sys_nerr.
5999 Mon Jan 10 15:01:32 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6001 * time/Makefile (z.%): In generated rules, depend on yearistype.
6002 (tzcompile): Pass -y flag with file name of yearistype.
6004 Sun Jan 9 17:51:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6006 * misc/bsd-compat.c (longjmp): Use __NORETURN in type.
6008 * sysdeps/ieee754/dbl2mpn.c [N == 2]: For denormal, when
6009 RES_PTR[1] is zero, return 1 instead of 2.
6011 Sun Jan 9 13:10:25 1994 Torbjorn Granlund (tege@adder.cygnus.com)
6013 * stdio/printf_fp.c: Solve 10+ problems.
6014 * ieee754/dbl2mpn.c: Correctly detect denorms. Get the denom
6017 Sun Jan 9 00:40:48 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6019 * sysdeps/ieee754/dbl2mpn.c: Test BITS_PER_MP_LIMB and handle
6020 either 32 or 64; #error if not one of those.
6022 * sysdeps/stub/udiv_qrnnd.c: Renamed from udiv_qrnnd.S.
6024 Sat Jan 8 00:25:15 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6028 * Makerules ($(libdir)/libc.a): Depend on subdir_install.
6030 Thu Jan 6 02:17:07 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6032 * Makerules ($(bindir)/$(install)): Use $(INSTALL_PROGRAM), not
6034 ($(libdir)/libc.a): Don't depend on lib-noranlib; on libobjs and
6035 ar-it instead. Run ranlib on target after installing.
6036 (installdirs): Target removed; deps on it removed.
6037 (install-{bin,lib,data,headers,others,no-libc.a}): Renamed to
6038 `install-*-nosubdir'.
6039 (install-%): New pattern rule.
6040 (install): Depend only on install-no-libc.a-nosubdir.
6041 * Rules (subdir_install): Depend on lib-noranlib and stubs.
6042 * Makefile (headers): Remove stubs.h.
6043 (install-others): Define to include $(includedir)/stubs.h.
6044 ($(includedir)/stubs.h): New target for $(objpfx)stubs.h rule.
6045 Depend only on subdir_install, and install directly.
6047 * Makerules (sed-remove-objpfx): Require SPC before $(objpfx) to match.
6049 * time/zic.c (mkdirs): Duplicate passed string in allocated memory
6050 and free it when done.
6052 * dirent/dirent.h [__USE_BSD || __USE_MISC]: Get size_t from stddef.h.
6054 * sysdeps/ieee754/dbl2mpn.c: For zero value, return 1 limb not 0.
6056 * Makerules (make-dummy-dep): Use filter-out to invert sense of
6057 wildcard match, so we produce a command if $@ does *not* exist.c
6059 * stdio/Makefile (routines): Add dbl2mpn.
6061 Wed Jan 5 17:52:43 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6063 * sysdeps/unix/i386/sysdep.S (syscall_error): Reverse args in
6064 `cmpl' insn; non-GNU assembler is feeble-minded.
6066 Mon Jan 3 18:53:45 1994 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6068 * configure.in (sysnames): Remove / before $mach; it is prepended
6069 already by the loop constructing $mach from $machine.
6071 Tue Dec 28 07:38:23 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6073 * stdio/Makefile [gmp-srcdir] (clean-mpn): New target.
6075 * configure.in (machine): Turn i[34]86 into i386/&, sparc* into
6076 sparc/&, m68k into m68k/mc68020, mc680?0 into m68k/&, mips or
6077 r2000 into mips/r3000, r[34]000 into mips/&.
6078 (mach): New variable; processed from $machine as $base from $base_os.
6079 Use that in place of $machine in loop finding sysdep directories.
6081 * stdio/Makefile (aux): Add mp_clz_tab.
6082 (mpn-copy): Add mp_clz_tab.c.
6083 (mpn-routines): Add udiv_qrnnd.
6084 (mpn-sysdep): Look for .s files too.
6085 * sysdeps/stub/udiv_qrnnd.S: New file.
6087 Sat Dec 25 00:20:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6091 * Makefile (distribute): Add install.sh.
6092 * install.sh: New file.
6094 * sysdeps/i386/Makefile: New file.
6095 (asm-CPPFLAGS): Add -DGAS_SYNTAX.
6097 * stdio/printf_fp.c: Major rewrite of sysdeps/generic/printf_fp.c,
6098 working with the fractional parts as multiprecision integers
6099 instead of doubles, using mpn functions from GNU MP. Done with
6100 much help from tege@cygnus.com.
6101 * sysdeps/generic/printf_fp.c, sysdeps/ieee754/printf_fp.c,
6102 sysdeps/m68k/fpu/printf_fp.c: Files removed.
6104 Fri Dec 24 23:09:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6106 * sysdeps/stub/dbl2mpn.c, sysdeps/iee754/dbl2mpn.c: New files.
6107 * sysdeps/stub/asm.h: New file.
6108 * sysdeps/m68k/add_n.S, sysdeps/m68k/addmul_1.S,
6109 sysdeps/m68k/mul_1.S, sysdeps/m68k/sub_n.S,
6110 sysdeps/m68k/submul_1.S, sysdeps/m68k/asm.h,
6111 sysdeps/generic/add_1.c, sysdeps/generic/add_n.c,
6112 sysdeps/generic/addmul_1.c, sysdeps/generic/cmp.c,
6113 sysdeps/generic/divmod.c, sysdeps/generic/divmod_1.c,
6114 sysdeps/generic/lshift.c, sysdeps/generic/rshift.c,
6115 sysdeps/generic/mod_1.c, sysdeps/generic/mul.c,
6116 sysdeps/generic/mul_1.c, sysdeps/generic/mul_n.c,
6117 sysdeps/generic/sub_n.c, sysdeps/generic/submul_1.c,
6118 sysdeps/generic/get_str.c, sysdeps/i386/addmul_1.S,
6119 sysdeps/i386/mul_1.S, sysdeps/i386/submul_1.S,
6120 sysdeps/alpha/gmp-mparam.h, sysdeps/generic/gmp-mparam.h,
6121 sysdeps/i386/asm.h, stdio/longlong.h, stdio/gmp.h,
6122 stdio/gmp-impl.h: New files, taken from GNU MP.
6123 * stdio/Makefile (mpn-headers, mpn-routines): New variables.
6124 (routines): Include $(mpn-routines).
6125 (distribute): Include $(mpn-headers).
6126 [gmp-srcdir]: Much code to copy mpn source from $(gmp-srcdir).
6127 * configure.in: Check for a --with-gmp argument and set gmp-srcdir
6128 in config.make to its value (error if no arg given). Move
6129 config_vars initialization before this (right after arg parsing).
6131 Thu Dec 23 01:44:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6133 * sysdeps/m68k/Makefile (m68k-syntax-flag): New variable.
6134 (compile-command.S): Include $(m68k-syntax-flag) in cpp flags.
6136 * manual/Makefile (install-data): New target.
6137 (install-%): New pattern rule.
6139 * Makerules ($(bindir)/...): Do $(make-target-directory) first.
6141 Thu Dec 23 01:03:19 1993 Brendan Kehoe (brendan@zen.org)
6143 Port to the DEC Alpha running OSF/1. (75% done)
6144 * sysdeps/unix/bsd/osf1/alpha/start.S: New file.
6145 * sysdeps/unix/bsd/osf1/alpha/sysdep.h: New file.
6146 * sysdeps/unix/bsd/osf1/alpha/sysdep.S: New file.
6147 * sysdeps/unix/bsd/osf1/alpha/__brk.S: New file (incomplete).
6148 * sysdeps/unix/bsd/osf1/alpha/__fork.S: New file.
6149 * sysdeps/unix/bsd/osf1/alpha/__pipe.S: New file.
6150 * sysdeps/unix/bsd/osf1/alpha/__getdents.S: New file.
6151 * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: New file.
6152 * sysdeps/unix/bsd/osf1/alpha/__wait4.S: New file.
6153 * sysdeps/unix/bsd/osf1/dirstream.h: New file.
6154 * sysdeps/unix/bsd/osf1/alpha/statbuf.h: New file.
6155 * sysdeps/unix/bsd/osf1/direct.h: New file.
6156 * sysdeps/unix/bsd/osf1/dirstream.h: New file.
6157 * sysdeps/unix/bsd/osf1/Makefile: New file, defining LDFLAGS.
6159 * sysdeps/unix/ioctls-tmpl.c [__osf1__ && __alpha__]: Clean up the
6160 ioctls that we get for an Alpha running OSF/1.
6162 * sysdeps/unix/common/glue-ctype.c: Add code for HAVE__LOCP.
6163 (main): If new macro TABLE_NAME is defined, use that for the name
6164 of the array we're writing out, rather than what's defined in TABLE.
6165 * sysdeps/unix/common/configure.in (AC_HAVE_FUNCS): Add `_locp'.
6167 * sysdeps/unix/bsd/osf1/sigaction.h: Add SA_ONSTACK, SA_RESTART,
6169 * sysdeps/alpha/setjmp.S: Add .end directive.
6171 * time/sys/time.h (struct timeval): Make members TV_SEC and
6172 TV_USEC be `int', not `long', since it won't hurt other hosts, but
6174 * resource/sys/resource.h (struct rusage): Make all non-timeval
6175 members be `long', not `int'.
6177 * sysdeps/alpha/strlen.c (strlen): Go from 0 to 7, not 3, since
6178 there are 8 bytes in a long on the Alpha. Check for '\0' after
6179 checking for C in initial byte-by-byte loop.
6180 * sysdeps/alpha/strchr.c (strchr): Likewise. Shift out to 64 when
6182 * sysdeps/alpha/memchr.c (memchr): Likewise. Return NULL if we
6183 didn't find it in N characters, or N == 0. Declare CP to be an
6186 * sysdeps/alpha/Makefile: Add divrem stuff.
6187 * sysdeps/alpha/DEFS.h: New file.
6188 * sysdeps/alpha/divrem.m4: New file.
6189 * sysdeps/alpha/macros.m4: New file.
6190 * sysdeps/alpha/Dist: Add .S files, divrem.m4, macros.m4, and DEFS.h.
6192 * sysdeps/unix/bsd/osf1/alpha/vhangup.S: New file. (Only a
6193 temporary workaround, until we figure out how to deal with the
6194 SYS_ult syscalls better.)
6195 * sysdeps/unix/bsd/osf1/alpha/killpg.S: Likewise.
6196 * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
6197 * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
6198 * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
6199 * sysdeps/unix/bsd/osf1/alpha/recv.S: Likewise.
6200 * sysdeps/unix/bsd/osf1/alpha/send.S: Likewise.
6202 * sysdeps/alpha/__math.h (__copysign): Add __CONSTVALUE.
6203 * sysdeps/alpha/__copysign.c: Define __NO_MATH_INLINES.
6204 * sysdeps/alpha/fabs.c: Likewise.
6206 Wed Dec 22 17:55:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6208 * crypt/*: New version from glad.
6210 * sysdeps/unix/sysv/sysv4/Dist: Add __getpgid.c and __setpgid.c.
6212 * dirent/Makefile (headers): Define; include dirent.h & dirstream.h.
6214 Tue Dec 21 14:24:38 1993 Brendan Kehoe (brendan@zen.org)
6216 * sysdeps/unix/sysv/sysv4/i386/statbuf.h (struct stat): Add
6217 missing member ST_FSTYPE. Fixup types on various members to make
6218 this properly reflect what the system has.
6220 * misc/ioctl.c (ioctl): Declare 2nd arg to be unsigned long int to
6221 match the change in ioctl.h.
6223 Tue Dec 21 00:01:01 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6227 * dirent/dirent.h (struct dirent): Add `d_reclen'; make `d_namlen'
6228 an `unsigned short int' instead of `size_t'.
6229 (DIR): Move typedef to sysdep file dirstream.h.
6230 * sysdeps/unix/dirstream.h: New file, broken out of dirent.h.
6231 * sysdeps/stub/dirstream.h: New file.
6232 * sysdeps/unix/bsd/dirstream.h: New file.
6233 * sysdeps/unix/bsd/readdir.c: New file.
6235 Mon Dec 20 23:29:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6237 * sysdeps/unix/start.c: Include <sysdep.h>.
6238 * sysdeps/unix/sysv/sysv4/i386/start.c: File removed.
6240 Sat Dec 18 01:37:25 1993 Brendan Kehoe (brendan@zen.org)
6242 * sysdeps/unix/sysv/sysv4/i386/start.c: New file. Same as
6243 sysdeps/unix/i386/start.c, but defines NO_UNDERSCORES.
6245 * sysdeps/unix/sysv/sysv4/waitflags.h: New file, with non-standard
6246 WEXITED and WTRAPPED macros defined.
6247 * sysdeps/unix/sysv/sysv4/__waitpid.c: New file.
6248 * sysdeps/unix/sysv/sysv4/siginfo.h: New file.
6249 * sysdeps/unix/sysv/sysv4/__waitid.S: New file.
6250 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Mention __waitid.
6251 * sysdeps/unix/sysv/sysv4/pipestream.c: New file, to avoid having
6253 * sysdeps/unix/sysv/sysv4/Dist: Added __waitid.S and siginfo.h.
6255 * sysdeps/unix/sysv/sysv4/__getpgid.c: New file.
6256 * sysdeps/unix/sysv/sysv4/__setpgid.c: New file.
6257 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Add them.
6259 * sysdeps/unix/sysv/sysv4/__getpgrp.c (__getpgrp): It's the 0th
6260 subcall for getpgrp, not 4th.
6261 * sysdeps/unix/sysv/sysv4/__setpgrp.c (__setpgrp): Likewise, it's
6262 the 1st, not the 5th.
6264 Fri Dec 17 15:05:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6266 * misc/sys/ioctl.h (__ioctl, ioctl): Make second arg `unsigned
6267 long int' instead of `int' (4.4 uses unsigned long).
6269 * string/string.h (strcat): Parameters names were swapped.
6271 Fri Dec 17 01:18:27 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
6273 * Made the Hurd error system 0x10 again; this undid many
6274 of the changes of Nov 23. Affected all the err_ files in
6275 mach; recreated sysdeps/hurd/err_hurd.sub; changed back
6276 err_kern.sub to have the Unix error codes.
6278 Thu Dec 16 15:40:25 1993 Brendan Kehoe (brendan@zen.org)
6280 * stdio/temptest.c (main): Remove the files we created once we're
6281 done. Make return type int, and exit with 0 status.
6283 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Fix typo of
6284 extra comma in sprintf call.
6286 Tue Dec 14 13:08:35 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6288 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Rewrote main
6289 logic. Removed INFOS structure array and replaced it with
6290 INDICES, an array of size_t. Removed INFO ptr and replaced it
6291 with IDX, which points to either elt of INDICES. Rewrite main
6292 loop to increment *IDX until it hits 62*62*62. Construct file
6293 name by dividing out two powers of 62 from *IDX and using the
6294 modulus as an index into `letters'.
6296 * sysdeps/unix/common/Makefile (sysdep_routines): Only add
6297 bsd_getgrp here if the sysdep __getgrps.? chosen is unix/common's.
6299 * posix/fnmatch.h: #undef FNM_PATHNAME, FNM_NOESCAPE, and
6300 FNM_PERIOD before defining them.
6302 * time/__tzset.c (compute_change): In M case when tallying time in
6303 months before specified month, count to RULE->m - 1, not ...+1.
6305 * manual/Makefile (realclean): Remove index, aux, and toc files
6308 Mon Dec 13 19:33:33 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6310 * sysdeps/posix/__wait3.c: Use __WAIT_STATUS_DEFN in place of
6311 __WAIT_STATUS in arg type.
6313 Wed Dec 8 15:59:45 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6315 * malloc/memalign.c: Set L->next and _aligned_blocks only when L
6316 is newly allocated, not when we reuse an old one.
6318 Tue Dec 7 16:04:22 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6320 * io/fcntl.c: Replace function_alias use with:
6321 [HAVE_GNU_LD]: Use symbol_alias.
6322 [! HAVE_GNU_LD]: Define fcntl to use stdarg and call __fcntl.
6324 Mon Dec 6 17:50:05 1993 Brendan Kehoe (brendan@zen.org)
6326 * sysdeps/unix/i386/sysdep.S (syscall_error): Fix labels so
6329 Make the Solaris port work dammit.
6330 * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h (struct stat): Make
6331 ST_DEV member be unsigned long, not short.
6333 * sysdeps/unix/sysv/sysv4/solaris2/direct.h: New file, same as
6334 sysv4/direct.h but uses strlen instead of the offset-based
6335 computation of the name length, since that doesn't reliably work
6338 * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h (PSEUDO): Don't move
6339 %g0 into %o0, since that will clobber the real return value. Take
6340 out the retl at the end, why in the world did I put it in there?
6342 Mon Dec 6 17:27:26 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6344 * Makefile ($(objpfx)crt1.o): Add target to $(objpfx)Mcrt1.o
6345 rule; generalize commands.
6346 (install-lib): Add crt1.o.
6348 * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Use -x flag to
6349 fgrep to match only entire lines.
6351 Sun Dec 5 01:53:43 1993 Brendan Kehoe (brendan@zen.org)
6353 * sysdeps/unix/bsd/ultrix4/mips/start.S: New file.
6354 * sysdeps/unix/bsd/ultrix4/mips/start.c: Deleted.
6356 Thu Dec 2 18:29:01 1993 Brendan Kehoe (brendan@zen.org)
6358 * sysdeps/unix/bsd/ultrix4/mips/sysdep.S: Don't use dollar signs
6361 * sysdeps/stub/{__wait, __wait3, __wait4}.c,
6362 sysdeps/unix/bsd/bsd4.4/{__wait, __wait3}.c,
6363 sysdeps/unix/bsd/sun/sunos4/__wait4.c,
6364 sysdeps/posix/{__wait, __wait3}.c, posix/{wait, wait3, wait4}.c: Use
6365 __WAIT_STATUS_DEFN, not __WAIT_STATUS.
6367 * sysdeps/posix/killpg.c (killpg): Make arg PGRP __pid_t, not pid_t.
6368 * sysdeps/stub/killpg.c (killpg): Likewise.
6370 * setjmp/longjmp.c (longjmp): Only use __NORETURN if !HAVE_GNU_LD.
6371 * setjmp/_longjmp.c (_longjmp): Likewise.
6373 Thu Dec 2 17:31:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6375 * posix/sys/wait.h (__WAIT_STATUS_DEFN): Define new macro.
6377 * Makerules (+install): Variable removed.
6378 (install-bin, install-lib, install-data, install-headers,
6379 install-others): New targets.
6380 (install-no-libc.a): Depend on them instead of $(+install).
6382 * Makefile (+subdir_targets): Add
6383 install-{no-libc.a,bin,lib,data,headers,others}.
6384 (install-no-libc.a): Don't depend on subdir_install.
6386 Thu Dec 2 17:14:39 1993 Brendan Kehoe (brendan@zen.org)
6388 * sysdeps/ieee754/__isnan.c (__isnan): Return __CONSTVALUE, to
6389 match declaration in math/math.h.
6391 Thu Dec 2 15:48:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6393 * time/africa, time/antarctica, time/asia, time/australasia,
6394 time/emkdir.c, time/europe, time/ialloc.c, time/northamerica,
6395 time/pacificnew, time/private.h, time/solar87, time/solar88,
6396 time/southamerica time/systemv, time/tzfile.h, time/zdump.c,
6397 time/zic.c: New data and code from ADO.
6398 * time/Makefile (tzfiles): Added backward.
6399 * time/backward: New file from ADO.
6401 * locale/C-ctype_ct.c: Remove _ISspace bit from BS (8).
6403 Wed Dec 1 00:01:30 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
6405 * mach/err_kern.sub: Frob around lack of GNU ld.
6407 * mach/errsystems.awk: The declaration of __mach_error_systems
6408 should not be static, but it should be const.
6410 * sysdeps/mach/hurd/errlist.awk (BEGIN): Deal with the case
6411 where you don't have GNU ld.
6413 * sysdeps/mach/hurd/Makefile: Define mib_hacks to make.
6415 Tue Nov 30 23:24:07 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
6417 * Makefile: install-no-libc.a needs to depend on subdir_install.
6419 Mon Nov 29 16:21:38 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
6421 * sysdeps/mach/_strerror.c: Include <mach/errorlib.h>.
6423 * hurd/setuids.c: Put entire file inside #ifndef MIB_HACKS;
6424 it uses the old auth_makeauth call.
6426 * hurd/__setauth.c: Put entire file inside #ifndef MIB_HACKS;
6427 it depends on cthreads to compile, which is not yet integrated.
6429 * hurd/hurdpath.c (__hurd_path_lookup): cast to avoid GCC warning.
6431 Wed Nov 24 00:59:15 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
6433 * hurd/Makefile: Commented out hurdauth; recent changes to
6434 auth.defs prevent it from working now.
6436 * mach/mach_error_string.c (do_compat): Change name to
6437 __mach_error_map_compat; make it no longer static.
6438 (mach_error_type, mach_error_string_int): Use
6439 __mach_error_map_compat instead of do_compat.
6440 * sysdeps/mach/_strerror.c: Use __mach_error_map_compat.
6442 * mach/devstream (output/write_some): Cast fourth argument to
6443 device_write_inband to char * to avoid warning.
6444 (output): Call to write_some mentioned variable `start' from
6445 a previous version of the function; changed this to f->__buffer.
6447 Tue Nov 23 23:16:13 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
6449 [ The net effect of the following change is to eliminate error
6450 systems which are specific to single-server Mach systems, and
6451 to put the Hurd errors where the Unix errors were. ]
6452 * mach/{err_bootstrap.sub,err_ipc.sub,err_server.sub,err_us.sub}:
6453 None of these are used for the Hurd; we shouldn't pretend that
6454 they are meaningful in our environment. The files have been
6455 renamed to equivalent names with an equal sign prepended; this
6456 will inhibit distribution and prevent the Makefile from looking at
6458 * mach/err_kern.sub: Deleted the definitios of err_codes_unix;
6459 get the strings from _sys_errlist. Rename `unix' to `hurd'.
6460 Rename err_os_sub to be err_kern_sub to match what errsystems.awk
6462 * sysdeps/mach/hurd/err_hurd.sub: Deleted this file.
6463 * sysdeps/mach/hurd/errnos.awk: Changed definition of _HURD_ERRNO
6466 * sysdeps/mach/hurd/Makefile: use gawk, not awk.
6468 * mach/errsystems.awk: Generally rewrote the printf. It's now
6469 closer to Roland's original, but without the $i mistake at all,
6472 Tue Nov 23 20:21:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6474 * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
6475 bsd/ultrix4/mips,bsd/vax}/sysdep.S: Define _ERRNO_H before
6476 including <errnos.h>; otherwise <errnos.h> does not define most
6477 macros (importantly, EAGAIN!).
6479 Tue Nov 23 12:43:38 1993 Michael I. Bushnell (mib at ernst.gnu.ai.mit.edu)
6481 * mach/errsystems.awk: $i is not an index; make i a variable and
6482 increment it properly. Don't call `err_get_system'; use the
6483 system number as the index in the array directly.
6485 * mach/errorlib.h: Added `const' in all the right places.
6486 * sysdeps/mach/hurd/err_hurd.sub: Cast _sys_errlist to
6487 the right type. Better to declare it right in stdio/stdio.h, but
6488 I don't dare change that file lest Roland call me a twit.
6489 * mach/err_us.sub: Add more brackets to initializer to shut GCC up.
6491 * sysdeps/mach/hurd/err_hurd.sub: Delete keyword `const'; this
6492 is taken care of by the `#define static static const' found in
6493 errsystems.c as created by mach/errsystems.awk.
6494 * mach/errsystems.awk: Ditto for declaration of __mach_error_systems.
6496 * sysdeps/mach/hurd/err_hurd.sub: Change <errnos.h> to <errno.h>;
6497 errnos.h doesn't define most stuff unless it is included from errno.h.
6499 * mach/mach_error_string.c (mach_error_string_int): Delete unused
6502 * mach/mach_error_string.c (do_compat): Declare to be void.
6503 (mach_error_string,mach_error_type, mach_error_string_int):
6504 Declare return type as const char *.
6505 * mach/mach_error.h: Change declarations to match.
6507 * mach/errsystems.awk: The array that split creates is origin 1,
6508 not origin 0; fixed loop to match.
6510 * sysdeps/mach/hurd/errnos.awk: Ernst's awk doesn't grok
6511 backslash-newline inside strings.
6513 Sat Nov 20 19:02:25 1993 Brendan Kehoe (brendan@zen.org)
6515 * math/__finite.c (__finite): Return __CONSTVALUE, to match math.h.
6516 * math/__scalb.c (__scalb): Likewise.
6517 * math/copysign.c (copysign): Likewise.
6518 * math/drem.c (drem): Likewise.
6519 * math/expm1.c (expm1): Likewise.
6520 * math/finite.c (finite): Likewise.
6521 * math/infnan.c (infnan): Likewise.
6522 * math/isinf.c (isinf): Likewise.
6523 * math/isnan.c (isnan): Likewise.
6524 * math/logb.c (logb): Likewise.
6525 * math/rint.c (rint): Likewise.
6526 * math/scalb.c (scalb): Likewise.
6527 * sysdeps/generic/atan.c (atan): Likewise.
6528 * sysdeps/ieee754/__copysign.c (__copysign): Likewise.
6529 * sysdeps/ieee754/__drem.c (__drem): Likewise.
6530 * sysdeps/ieee754/__isinf.c (__isinf): Likewise.
6531 * sysdeps/ieee754/__logb.c (__logb): Likewise.
6532 * sysdeps/ieee754/ldexp.c (ldexp): Likewise.
6533 * sysdeps/ieee754/log10.c (log10): Likewise.
6535 * setjmp/_longjmp (_longjmp): Add __NORETURN.
6536 * setjmp/longjmp (longjmp): Likewise.
6538 Thu Nov 18 04:16:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6540 * string/strerror.c (strerror): Call _strerror_internal to do the
6541 work, passing it a scratch buffer.
6542 * stdio/perror.c: Likewise.
6543 * string/Makefile (routines): Add _strerror.
6544 * sysdeps/generic/_strerror.c (_strerror_internal): New file.
6546 * configure.in (config.status): Make it pass its args to configure.
6548 Thu Nov 18 03:52:32 1993 Michael I Bushnell (mib@geech.gnu.ai.mit.edu)
6550 * stdio/__vfscanf.c (__vfscanf): Put the floating point cases
6551 (e,E,f,g,G) inside #ifndef MIB_HACKS; roland thikgs strtod crashes
6552 the compiler. Wheee.
6554 Thu Nov 18 03:21:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6556 * errno.h [__USE_GNU__]: Declare program_invocation_name and
6557 program_invocation_short_name.
6559 Thu Nov 18 00:07:37 1993 Michael I. Bushnell (mib at ernst.gnu.ai.mit.edu)
6561 * sysdeps/mach/hurd/start.c (start1): Don't add one to
6562 the return value of split_args; it counts them just fine by
6563 itself. Do add one when sizing the arrays.
6565 Mon Nov 15 00:19:48 1993 Noel Cragg (noel@geech.gnu.ai.mit.edu)
6567 * time/mktime.c: add TIMES_THROUGH_SEARCH variable to make sure
6568 that we don't get caught in an infinite loop (would be bad,
6569 indeed, for a library routine).
6571 Sun Nov 14 18:48:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6573 * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Use
6574 `__attribute__', not `__attributes__'.
6575 Test __GNUC_MINOR__ < 6, not < 5.
6577 Wed Nov 10 05:39:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6579 * sysdeps/unix/morecore.c: Only declare sbrk #ifdef __GNU_LIBRARY__.
6580 Cast its return value.
6582 * sysdeps/unix/bsd/m68k/syscall.S: Use movel in place of moveal.
6584 * configure.in (signed size_t check): Don't use AC_DEFINE; do it
6585 by hand and insert -U__SIZE_TYPE__ before -D.
6587 * posix/unistd.h: Declare syscall.
6589 * sysdeps/m68k/fpu/__math.h (__isnan, __isinf): Use __CONSTVALUE
6592 * configure.in (Makefile): Write ARCH=`pwd`, rather than
6593 substituting in the directory name at configure time.
6595 * sysdeps/mach/i386/syscall.S: New file.
6597 Tue Nov 9 06:29:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6599 * configure.in (os = netbsd* | 386bsd*): base_os=unix/bsd/bsd4.4.
6600 Set --with-gnu-{ld,as} implicitly when base_os is bsd4.4.
6604 * misc/Makefile (routines): Add syscall.
6605 * sysdeps/unix/syscall.S, sysdeps/stub/syscall.c,
6606 sysdeps/unix/bsd/sun/m68k/syscall.S, sysdeps/unix/bsd/m68k/syscall.S,
6607 sysdeps/unix/i386/syscall.S: New files.
6608 * sysdeps/unix/bsd/hp/m68k/sysdep.h (DO_CALL): First arg
6609 is syscall number, not name.
6610 (PSEUDO): Pass POUND (SYS_ify (syscall_name)) to DO_CALL.
6611 * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h (DO_CALL, PSEUDO):
6612 Likewise. Also, do movel into d0 before linkw, so the argument
6613 could conceivably pop the stack.
6614 * sysdeps/unix/bsd/hp/m68k/__brk.S: Pass complete number to DO_CALL.
6616 * sysdeps/unix/sysv/Dist: sys_getdents.S was renamed s_getdents.S.
6618 Thu Nov 4 01:23:59 1993 Michael I. Bushnell (mib at ernst.gnu.ai.mit.edu)
6620 * string/stpncpy: Fix typo; according to gnu-stabs.h the name
6621 inside the DEFUN should be the *non* __ version.
6622 * sysdeps/generic/__stpncpy.c: Missing declaration of s.
6624 Wed Nov 3 09:35:30 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6626 * sysdeps/unix/Makefile ($(objpfx)errlist.c): Conditionalize these
6627 rules to be used only when errlist.c is otherwise a stub.
6629 Fri Oct 29 17:29:20 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6631 * string/stpncpy.c: New file.
6632 * sysdeps/generic/__stpncpy.c: New file.
6633 * string/Makefile (routines): Add stpncpy and __stpncpy.
6634 * string/string.h [__USE_GNU__]: Declare them.
6636 Thu Oct 28 17:13:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6638 * sysdeps/unix/errnos-tmpl.c (DO): If NAME is "EWOULDBLOCK",
6639 write "#define EWOULDBLOCK EAGAIN" and change NAME to
6641 * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
6642 bsd/ultrix4/mips,bsd/vax}/sysdep.S [EWOULDBLOCK_sys]: Translate
6643 EWOULDBLOCK_sys into EAGAIN.
6644 * Makefile (distribute): Add move-if-change.
6645 * move-if-change: New file.
6647 Tue Oct 26 18:19:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6649 * misc/sys/cdefs.h: Define __NORETURN and __CONSTVALUE.
6650 For GCC 2.5 and later, use __attributes__ (({volatile,const})).
6651 * stdlib/stdlib.h: Don't define either here.
6652 * math/math.h: Likewise.
6653 * posix/unistd.h: Likewise.
6654 * time/time.h: Likewise.
6655 * stdio/stdio.h: Likewise.
6656 * setjmp/setjmp.h: Likewise.
6658 * posix/sys/wait.h (__WAIT_STATUS): Use union hack defn for GCC
6659 2.4 and up (testing __GNUC__ and __GNUC_MINOR__).
6661 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Don't include <limits.h>.
6663 * Makerules [inhibit-sysdep-asm]
6664 (open-check-inhibit-asm, close-check-inhibit-asm): New variables.
6665 ($(+sysdir_pfx)sysd-rules): Use them around .s and .S rules.
6666 Depend on existing sysdep makefiles.
6668 Mon Oct 25 15:56:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6670 * sysdeps/mach/hurd/killpg.c: Include <sys/types.h> for pid_t.
6672 * sysdeps/posix/tempname.c (__stdio_gen_tempname): Take new arg
6673 STREAMPTR. When non-nil, use __open with O_EXCL to test for
6674 existence, and set *STREAMPTR to new stream on returned fd.
6675 * stdio/stdio.h: Update prototype.
6676 * sysdeps/stub/tempname.c: Here too.
6677 * stdio/tmpfile.c: Pass &F to __stdio_gen_tempname instead of
6679 * stdio/tmpnam.c: Pass extra NULL arg.
6680 * stdio/tempnam.c: Likewise.
6682 * configure.in (switches): Only put --os-{release,version} here.
6683 (config.status): Write $configure_args in place of $config $switches.
6685 * signal/Makefile (routines): Renamed sigaltstack to sigaltstk.
6686 * sysdeps/stub/sigaltstack.c: Renamed to sigaltstk.c.
6687 * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: Renamed to sigaltstk.S.
6688 * sysdeps/unix/sysv/sys_getdents.S: Renamed to s_getdents.S.
6689 * sysdeps/unix/sysv/Makefile (sysdep_routines): Changed reference.
6691 Fri Oct 22 03:47:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6693 * malloc/realloc.c [MEMMOVE_MISSING]: Test this to use safe_bcopy.
6694 [emacs]: Don't define safe_bcopy.
6696 * time/zdump.c, time/europe: New versions from ADO.
6698 * Rules (dont_distribute): Export this variable.
6699 (subdir_echo-distinfo): Echo its value for +nodist+.
6701 Thu Oct 21 15:58:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6703 * sysdeps/posix/__dup2.c: Include <limits.h>.
6704 [OPEN_MAX]: Fail with EBADF if FD2>=OPEN_MAX.
6706 * sysdeps/unix/Makefile (sys/param.h): Conditionalize all this
6707 code to happen only when there is no sysdep sys/param.h.
6709 Wed Oct 20 03:35:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6711 * Makerules (make-dummy-dep): Change to `ln $(objpfx)dummy.dep $@'.
6712 ($(objpfx)dummy.dep): Create new file containing comment.
6713 ($(objpfx)%.dep: $(objpfx)%.s): Depend on $(objpfx)dummy.dep.
6714 ($(+sysdir_pfx)sysd-rules): Likewise in generated rule.
6716 Mon Oct 18 04:22:42 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6718 * signal/signal.h (killpg): Make PGRP arg pid_t.
6719 * sysdeps/posix/killpg.c (killpg): Likewise.
6720 * sysdeps/stub/killpg.c (killpg): Here too.
6722 * posix/glob/configure.in: Use AC_HAVE_HEADERS instead of
6723 AC_MEMORY_H and AC_UNISTD_H; omit AC_USG (not needed).
6725 * Rules (generated): New target.
6727 * Makefile (subdirs): Use filters to put mach and hurd first in
6728 the list if they are in it at all.
6729 * Makerules (before-compile): Reorder similarly, matching any
6730 generated mach or hurd files.
6732 Fri Oct 15 17:57:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6734 * sysdeps/posix/mk-stdiolim.c [! OPEN_MAX]: Use _POSIX_OPEN_MAX
6735 for FOPEN_MAX value.
6736 [! PATH_MAX]: Use 1024 (twice _POSIX_PATH_MAX) for FILENAME_MAX value.
6738 * Makerules (in-Makerules): Define this variable before including
6741 Sun Oct 10 14:31:35 1993 Jim Meyering (meyering@comco.com)
6743 * posix/fnmatch.c [CONFIG_BROKETS]: Include <config.h> only under
6744 this condition, else "config.h".
6746 Tue Oct 05 16:08:39 1993 Jim Meyering (meyering@comco.com)
6748 * time/mktime.c [CONFIG_BROKETS]: Include <config.h> only under
6749 this condition, else "config.h".
6751 Thu Sep 23 15:14:08 1993 Brendan Kehoe (brendan@zen.org)
6753 * sysdeps/unix/sysv/sysv4/__dup2.c: New file.
6755 Wed Sep 22 16:58:29 1993 Brendan Kehoe (brendan@zen.org)
6757 * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h: New file.
6758 * sysdeps/unix/sysv/sysv4/i386: New directory.
6759 * sysdeps/unix/sysv/sysv4/i386/statbuf.h: New file.
6761 Fri Sep 17 04:03:26 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6763 * Makerules (+make-deps): Put output in temp file and use atomic mv.
6765 * Makerules ($(+sysdir_pfx)sysd-rules): New target, the rule part
6766 of what was in sysd-Makefile. Include it.
6767 ($(+sysdir_pfx)sysd-Makefile): Do just includes here. Move the
6768 generated implicit rules to sysd-rules. Put the output into a
6769 temp file and use atomic mv to final target.
6770 (before-compile): Filter out existing files from value, after
6771 sysd-Makefile but before sysd-rules.
6773 Thu Sep 9 22:28:13 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6775 * Makefile (%/configure): Copy rule from Make-dist.
6777 Mon Sep 6 19:57:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6779 * Makerules (sources, objects): Move override definitions to
6780 before +depfiles calculation.
6782 * time/{asia,australasia,europe,zdump.c}: New versions from ADO (93e).
6784 Mon Aug 30 13:40:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6786 * string/string.h (memmem): Reverse argument order, to be like strstr.
6787 * sysdeps/generic/memmem.c: Here too.
6789 * dirent/scandir.c: For error return, save errno around closedir.
6790 Call closedir (DP) before returning successfully.
6792 Thu Aug 26 19:26:06 1993 Brendan Kehoe (brendan@zen.org)
6794 * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h: Rewritten to not use
6795 the generic sparc sysdep.h.
6796 (PSEUDO): Use trap 8, not 0. Also just put %g0 in %o0, without
6798 (ENTRY): Align on 4, and add a `.type' directive.
6799 * sysdeps/unix/sysv/sysv4/solaris2/sysdep.S: New file.
6801 Fri Aug 20 19:37:55 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6803 * sysdeps/generic/abort.c: Remove unused variable ABORTING.
6805 Thu Aug 19 17:45:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6807 * Makeconfig [!objdir] [!..] (common-objdir): Set to `.'.
6809 Wed Aug 18 15:10:13 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6811 * stdio/__vfscanf.c (__vfscanf: number): Reverse sense of
6812 NUMBER_SIGNED conditional in assignment code.
6814 Mon Aug 16 15:49:13 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6816 * sysdeps/unix/Makefile (syscall.h): Add sed
6817 s/SYS_syscall_basenum/syscall_basenum/g. SYSCALL_BASENUM is a
6818 macro both defined and used in <syscall.h>; we must undo our
6819 prependation of `SYS_'.
6823 Fri Aug 13 16:53:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6825 * stdio/__vfscanf.c: New local variable NUMBER_SIGNED.
6826 (%x, %X, %o, %u): Set it to zero.
6827 (%d, %i): Set it to one.
6828 (number): If NUMBER_SIGNED is set, use strtol and store in ...int*.
6829 If clear, use strtoul an store value in unsigned ...int*.
6831 * malloc/malloc.h: Undo last change (_AIX32).
6832 (memory_warnings): Use const instead of __const in prototype.
6834 Fri Aug 13 00:22:01 1993 John Grabowski (johng@whiskey.media.mit.edu)
6836 * configure.in (os = osf1*): base_os=unix/bsd.
6838 Thu Aug 12 16:37:13 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6840 * malloc/valloc.c [__GNU_LIBRARY__ || _LIBC]: Include <stddef.h>
6841 before trying to use size_t to declare __getpagesize.
6842 Include <sys/cdefs.h> before trying to use __P.
6844 * posix/{fnmatch,glob}.c, malloc/malloc.h [HAVE_CONFIG_H]: Include
6845 <config.h> instead of "config.h". This is so that a compilation
6846 using -I. -I$srcdir will use ./config.h rather than
6847 $srcdir/config.h (which it would do when glob.c was found in $srcdir).
6849 * malloc/malloc.h [_AIX32]: Use !__STDC__ defns of __P, const, __ptr_t.
6851 Mon Aug 9 16:56:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6853 * Makerules (-e check): Don't rely on $(findstring e,$(MAKEFLAGS))
6854 since that also trips for --no-print-directory.
6855 Instead actually see if -e's functionality is taking place.
6857 * malloc/realloc.c: Call _free_internal instead of free in most places.
6859 * configure.in (arg parsing): No spaces around = in eval.
6861 * sysdeps/i386/abort.c: New file.
6862 * stdlib/abort.c: Moved to sysdeps/generic/abort.c.
6863 (abort): Don't try to do stdio cleanup, since we can't guarantee
6866 Fri Aug 6 17:59:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6868 * Makerules ($(+install)): Don't depend on installdirs.
6869 (make-target-directory): New define.
6870 (do-install): Do $(make-target-directory) beforehand.
6872 Tue Aug 3 02:22:41 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6874 * sysdeps/stub/sys/reboot.h: New file.
6875 * sysdeps/unix/bsd/sys/reboot.h: New file, snarfed from 4.4.
6876 * misc/Makefile (headers): Add sys/reboot.h.
6878 * stdio/stdio.h (__io_{read,write,seek,close,fileno}): Renamed to
6879 __io_*_fn, so as not to conflict with the Hurd mig stubs.
6880 * internals.c: Changed uses.
6882 * sysdeps/unix/bsd/signum.h (SIGINFO): Define as 29.
6884 * Makerules (+includes): Don't set this here.
6885 * Makeconfig (+includes): Put $(+sysdep-includes) in the value here.
6887 * posix/unistd.h [__USE_MISC]: Declare mktemp and mkstemp.
6889 Mon Aug 2 16:59:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6891 * malloc/valloc.c: Move getpagesize goop to before malloc.h.
6892 [_LIBC]: Test this as well as __GNU_LIBRARY__ (either one) to use
6893 __getpagesize instead of "getpagesize.h".
6895 Sun Aug 1 16:55:18 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6897 * configure.in (arg parsing): For `--with-foo=bar', do
6898 "with_foo='bar'". For `--with-fnord', do "with_fnord=yes".
6899 * sysdeps/mach/configure: New file, groks `--with-mach=DIR'.
6901 Fri Jul 30 00:01:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6903 * configure.in (os = gnu*): Set $base_os, not $os, to mach/hurd.
6905 Thu Jul 29 17:46:02 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6907 * ctype/ctype.h (__isctype): Don't test !=0, to avoid possible
6910 Sun Jul 25 22:19:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6912 * setjmp/setjmp.h [! __FAVOR_BSD] (_longjmp): Define as longjmp.
6914 Thu Jul 22 14:57:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6916 * sysdeps/unix/bsd/osf1/sigaction.h: New file.
6918 * sysdeps/stub/signum.h: Deansideclized.
6919 * sysdeps/stub/pipestream.c (pclose): Test STREAM->__ispipe
6920 instead of __ispipe (STREAM).
6921 * sysdeps/stub/__wait3.c: Fix arg types.
6922 * sysdeps/stub/__ioctl.c: Add missing close paren.
6923 * sysdeps/stub/__getpgsz.c: Include <stddef.h> for size_t.
6924 * sysdeps/stub/__get[gu]id.c: Include <sys/types.h>; fix return type.
6925 * sysdeps/stub/__set[gu]id.c: Include <sys/types.h>; fix arg type.
6926 * sysdeps/stub/__mknod.c: Include <sys/types.h>; fix arg types.
6928 * sysdeps/generic/termbits.h (INLCR, ISTRIP): Fixed typo'd values.
6930 * stdio/stdio.h (vprintf): Fix last arg type to __gnuc_va_list.
6931 * stdio/vprintf.c (vprintf): Here too.
6933 * malloc/malloc.c (malloc) [SUNOS_LOCALTIME_BUG]: Put this crap
6934 after hook and initialization.
6936 * stdio/stdio.h (__validfp): Use a little anonymous struct to find
6937 the real stream ptr from in glue stream. It used to rely on using
6938 `((int *) STREAM)[1]'; but that assumes no struct padding, and
6939 there will be some when int is 32 bits and pointers are 64.
6941 * malloc/mtrace.c: Use %lx instead of %x for `size_t' formats.
6943 Wed Jul 21 18:20:41 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6945 * malloc/malloc.c (malloc): Handle SUNOS_LOCALTIME_BUG.
6947 Wed Jul 21 16:42:14 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6949 * time/Makefile (extra-objs): Remove gratuitous - in `z.%'.
6951 * Makefile [+gnu-stabs] (generated): Add $(objpfx)munch-init.c.
6952 (distclean): Also remove sysd-Makefile and sysd-dirs in $(objpfx).
6953 (distclean) [objdir]: Also remove $(objpfx)Makefile.
6955 * sysdeps/posix/Makefile (generated): Add $(common-objpfx)mk-stdiolim.
6956 (generated, before-compile): Take defns out of ifeq ($(subdir),posix).
6958 * sysdeps/unix/common/Makefile (generated): Include ctype-glue.c,
6961 * sysdeps/unix/configure (unix_generated): New variable; collect
6962 names of created files in it.
6963 (config_vars): Write an assignment for `unix-generated' to that list.
6964 * sysdeps/unix/Makefile (generated): Append $(unix-generated)
6965 (with either $(objpfx) or $(sysdep_dir)/unix/ prepended to each file).
6967 * Makefile (clean): Pass no_deps=t to subdir_clean make.
6969 Sun Jul 18 21:42:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6971 * malloc/malloc.c (malloc): After getting more core, recompute
6972 BLOCK before adding to _heapinfo[BLOCK].free.size.
6974 Fri Jul 16 16:32:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6976 * stdlib/Makefile (generated): Prepend $(objpfx).
6977 * sysdeps/unix/sysv/Makefile (generated): Likewise.
6979 * sysdeps/posix/mktemp.c: Return when stat fails with ENOENT, not
6982 Wed Jul 14 14:51:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6984 * locale/localeconv.c: Fix copying notice to LGPL.
6986 Mon Jul 12 21:58:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6988 * malloc/mcheck.c (reallochook): Set HDR->magic to MAGICWORD.
6990 Mon Jul 5 15:55:08 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6992 * malloc/realloc.c (memmove): Swap the args when calling safe_bcopy.
6994 Thu Jul 1 16:26:56 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6996 * malloc/malloc.c [_LIBC] (_malloc, _free, _realloc): Define these
6997 functions to just call malloc, free, and realloc, respectively.
6999 Wed Jun 30 16:42:10 1993 Torbjorn Granlund (tege@gnu.ai.mit.edu)
7001 * sysdeps/generic/memcmp.c (memcmp_bytes): New function for
7002 little endian machines.
7003 (memcmp_common_alignment, memcmp_not_common_alignment): Rework
7004 code computing return values.
7006 Wed Jun 30 14:42:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7008 * sysdeps/unix/Makefile (local_lim.h): Only generate local_lim.h
7009 if the sysdep version would be stub.
7011 * sysdeps/unix/mk-local_lim.c: #include <stdio.h> before all else.
7013 * configure.in (config_{machine,vendor,os}): Store config.sub's
7014 output in these new variables.
7015 (machine, vendor, os): Set these from those.
7016 (config-name.h, config.make): Write $config_* (the original values
7019 * sysdeps/unix/sysv/sysv4/pgrpsys.S: Add arg count (3).
7021 Tue Jun 29 02:47:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7025 Mon Jun 28 00:37:12 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7027 * stdio/internals.c (__stdio_check_funcs): New function, broken out
7029 (init_stream): Call it.
7030 * sysdeps/posix/pipestream.c (popen): Call __stdio_check_funcs
7031 before frobnicating STREAM's functions.
7033 * sysdeps/posix/pipestream.c (pclose): Free C, our data structure,
7034 not STREAM->__cookie after it's been restored.
7036 * sysdeps/generic/strchr.c: Check for '\0' as well as C, in initial
7039 * conf/portability.h: #undef BSD.
7041 Sun Jun 27 23:46:05 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7043 * sysdeps/unix/bsd/m68k/__wait.S [__motorola__]: Use Motorola syntax.
7044 * sysdeps/unix/bsd/m68k/sysdep.S: Likewise.
7045 * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
7046 * sysdeps/m68k/__longjmp.c (__longjmp) [__motorola__]: Use
7047 Motorola syntax in jmp insn.
7049 Fri Jun 25 16:17:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7051 * sysdeps/{stub,posix,unix/sysv/sysv4}/__sysconf.c (__sysconf):
7052 For _SC_TZNAME_MAX, just return __tzname_max ().
7053 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Define __sysconf, not
7054 sysconf. For _SC_TZNAME_MAX, just jump to __tzname_max.
7056 Undo June 21 change that made __tzname_max a variable
7057 and expected TZNAME_MAX to sometimes be defined.
7058 POSIX.1 does not require that it be defined; sysconf is enough.
7059 * time/time.h (__tzname_max): Declare as a function.
7060 * posix/posix1_lim.h: Don't include <tzname_max.h>.
7061 * sysdeps/stub/tzname_max.h: File removed.
7062 * time/Makefile (headers): Remove tzname_max.h.
7063 (distribute): Remove make-tzlim.c.
7064 (extra-objs): Remove make-tzlim.o and make-tzlim.
7065 ($(common-objpfx)tzname_max.h): Target removed.
7066 * time/make-tzlim.c: File removed.
7067 * time/__tzset.c (__tzname_cur_max): Define this variable instead
7069 (__tz_compute): Set __tzname_cur_max, not __tzname_max.
7070 (__tzname_max): New function.
7071 * time/tzfile.c (compute_tzname_max): Set __tzname_cur_max, not
7074 * malloc/malloc.h [_MALLOC_INTERNAL] [! (_LIBC || STDC_HEADERS || USG)]
7075 (memmove): Don't define.
7076 * malloc/realloc.c [!_LIBC && !STDC_HEADERS && !USG] (safe_bcopy):
7077 New static function.
7078 (memmove): Define to safe_bcopy.
7080 Wed Jun 23 15:10:51 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7082 * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: New file, #include sysv4 file.
7083 * sysdeps/unix/sysv/sco3.2.4/Dist: New file, list pgrpsys.S.
7085 Tue Jun 22 02:44:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7087 * sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Use
7088 pgrpsys instead of sco_pgrp.
7089 * sysdeps/unix/sysv/sco3.2.4/{Dist,sco_pgrp.S}: Files removed.
7090 * sysdeps/unix/sysv/sco3.2.4/__{getpgrp,setpgrp,setsid}.c: Just
7091 include the respective unix/sysv/sysv4 files.
7093 * sysdeps/unix/sysv/sysv4/pgrpsys.S: New file.
7094 * sysdeps/unix/sysv/sysv4/__getpgrp.c: New file.
7095 * sysdeps/unix/sysv/sysv4/__setpgrp.c: New file.
7096 * sysdeps/unix/sysv/sysv4/__setsid.c: New file.
7097 * sysdeps/unix/sysv/sysv4/Dist: Add pgrpsys.S.
7098 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Add pgrpsys.
7100 * sysdeps/unix/bsd/bsd4.4/__setsid.S: Moved from unix/sysv/sysv4.
7101 * sysdeps/unix/{bsd/sun/sunos4,bsd/ultrix4,sysv/linux}/__setsid.S:
7102 Include bsd4.4 instead of sysv4 file.
7104 Mon Jun 21 19:08:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7106 * posix/posix1_lim.h: #include <tzname_max.h>.
7107 * sysdeps/stub/tzname_max.h: New file (no-op).
7108 * time/make-tzlim.c: New file.
7109 * time/Makefile (headers): Add tzname_max.h.
7110 (distribute): Add make-tzlim.c.
7111 (extra-objs): Add make-tzlim.o and make-tzlim.
7112 ($(common-objpfx)tzname_max.h): New target.
7114 * sysdeps/unix/sysv/sco3.2.4/confname.h (_SC_TZNAME_MAX): Define.
7115 * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Detect arg being
7116 _SC_TZNAME_MAX, and return max of TZNAME_MAX and __tzname_max.
7118 * sysdeps/stub/__sysconf.c: Include <time.h> and <limits.h>.
7119 Handle _SC_TZNAME_MAX and return max of TZNAME_MAX and __tzname_max.
7120 * sysdeps/posix/__sysconf.c: Change _SC_TZNAME_MAX code to that.
7121 * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
7123 * time/time.h (__tzname_max): Declare as variable, not function.
7124 * time/__tzset.c (__tzname_max): Function removed.
7125 (__tz_compute): Set the __tzname_max variable.
7126 * time/tzfile.c (compute_tzname_max): New function.
7127 (__tzfile_{read,default}): Call it.
7129 Sun Jun 20 18:32:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7131 * time/zic.c, time/asia: New versions from ADO.
7133 Wed Jun 16 17:24:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7137 Fri Jun 11 15:44:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7139 * sysdeps/unix/bsd/m68k/__pipe.S: Use `movel' instead of `moveal',
7140 which sun3 as does not appear to grok.
7141 * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
7143 Thu Jun 10 20:23:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7145 * sysdeps/m68k/Makefile (as-pipe-ok): Define if -pipe is used in
7146 compiler invocations, or if using GNU as.
7147 (compile-command.S): Define using a pipe if `as-pipe-ok' is defined,
7148 otherwise with a temporary file.
7150 * Makeconfig (gnu-as): Define if -DHAVE_GNU_AS appears in $(CPPFLAGS).
7152 Wed Jun 9 15:14:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7154 * configure.in (os frobnication): Turn underscores as well as
7155 lowercase Vs into dots in os name.
7157 * sysdeps/unix/start.c [__GNUC__] (_start): Use asm name "start"
7158 only if [! NO_UNDERSCORES].
7160 Tue Jun 8 14:51:00 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
7162 * sysdeps/unix/bsd/ultrix4/mips/__handler.S: Don't save the stack
7165 Mon Jun 7 21:01:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7167 * time/Makefile (tzcompile): Remove -d switch, since zic-cmd has one.
7169 * time/{private.h,zic.c}: New versions from ADO.
7171 * sysdeps/unix/bsd/hp/m68k/__brk.S (error): Renamed label from `1',
7172 (__brk): Use DO_CALL instead of movel and trap.
7174 * sysdeps/unix/bsd/sony/newsos4: Renamed sysdeps/unix/bsd/sony/newsos.
7175 * sysdeps/unix/bsd/sony/m68k/{Implies,sysdep.h}: Moved there.
7177 * sysdeps/unix/bsd/hp/m68k/sysdep.h (DO_CALL): New macro, broken
7180 * sysdeps/unix/bsd/sony/newsos4/m68k/sysdep.h
7181 (DO_CALL, PSEUDO): Likewise.
7183 * configure.in: Set --with-gnu-{ld,as} for os=bsd4.4.
7185 Fri Jun 4 14:11:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7187 * sysdeps/i386/{strlen,memchr}.c: Use `repnz' instead of `repne'.
7189 * time/Makefile (zonenames): Rename zones-* to z.* so they all fit
7191 (extra-objs): Here too.
7193 * sysdeps/unix/sysv/direct.h (D_RECLEN): New macro.
7194 * sysdeps/unix/readdir.c (D_RECLEN): If not defined, define to use
7196 (readdir): Use D_RECLEN (DP) in place of DP->d_reclen.
7198 Thu Jun 3 16:54:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7200 * sysdeps/m68k/bytesex.h: New file.
7202 * sysdeps/unix/ioctls-tmpl.c [sony_news]: Define KANJI before
7203 including <sys/ioctl.h>.
7205 Wed Jun 2 17:45:38 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7207 * malloc/Makefile (%.gz): Renamed target from %.z; use -v flag.
7208 (malloc/ChangeLog): Use mv -f.
7210 Mon May 31 21:49:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7212 * Version 1.06.2 released.
7214 * manual/Makefile: Remove all uses of $(objpfx). Since the
7215 generated files are distributed, they reside in the source
7218 * malloc/mtrace.c: #include <stdio.h>; malloc.h no longer does.
7220 * sysdeps/posix/sleep.c: Restore signal mask to OSET before
7221 returning. Save errno on entry and restore it before returning.
7223 * Makeconfig (zonedir): New variable.
7224 * time/Makefile (localtime-file, posixrules-file, install-others,
7225 $(localtime-file), $(posixrules-file), tz-cc): Use $(zonedir) in
7226 place of $(datadir)/zoneinfo.
7227 (tzcompile): Omit -d switch.
7228 (zic-cmd): Add `-d $(zonedir)'.
7230 Sun May 30 20:04:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7232 * sysdeps/posix/stdio_init.c: (int)cookie is FD, not *(int*)cookie.
7234 * time/Makefile ($({localtime,posixrules}-file)): Don't pass -d
7235 switch (no need, since directory is compiled into zic). Don't use
7236 $(<F) to find arg for -{l,p}; just use $({localtime,posixrules}).
7238 * Makerules ($(libdir)/libc.a): Depend on installdirs.
7240 * malloc/malloc.c (malloc): #if 0 out ``if (SIZE == 0) return NULL''.
7242 * malloc/malloc.h [_MALLOC_INTERNAL]: Don't include <stdio.h>.
7243 [_MALLOC_INTERNAL]: Move config.h, limits.h, and mem* to front of file.
7244 (NULL): Move after stddef.h.
7246 * malloc/valloc.c: Don't include config.h; malloc.h already did.
7248 * malloc/malloc.c: Undo rms's change.
7250 * malloc/mcheck.c, malloc/malloc.h: Undo rms's change.
7252 Sat May 29 13:04:38 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7254 * malloc/malloc.c (malloc) [emacs]: If size is 0, make it 1.
7256 * malloc/malloc.h (CONST): Define this always,
7257 rather than `const' sometimes.
7258 (memory_warnings): Use CONST, not __const, in decl.
7259 * malloc/mcheck.c (checkhdr): Use CONST, not const.
7261 Fri May 28 18:29:26 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7263 * sysdeps/unix/Makefile (ioctls): Use fgrep instead of egrep to
7264 omit unwanted symbols. Filter the list of them through sort|uniq
7265 to remove duplicates first.
7267 * sysdeps/unix/Makefile (errlist.c): Use dir and notdir
7268 functions to guarantee qualified path name for make_errlist.
7270 Thu May 27 17:05:04 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7274 * sysdeps/sparc/Dist: Include sdiv.S, not div.S.
7276 * sysdeps/unix/common/Dist: Remove make_siglist.c.
7278 * stdio/internals.c: Declare __stdio_fileno before reference.
7280 * sysdeps/generic/{memchr,strchr,strlen}.c: Abort if words are
7281 bigger than 64 bits.
7283 Wed May 26 14:44:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7285 * Makerules [objects] (install-others): Don't add libc.a to this.
7286 (install): Depend on $(libdir)/libc.a.
7287 (intall-no-libc.a): New target, depends on $(+install).
7288 (install): Don't depend on $(+install), just on install-no-libc.a.
7289 * Rules (subdir_install): Depend on install-no-libc.a, not install.
7291 * Makefile ($(libc.a)): Don't depend on subdir_lib.
7292 (lib-noranlib): Depend on subdir_lib.
7294 Make `fileno' a per-FILE io operation.
7295 * stdio/stdio.h (__io_fileno): New typedef.
7296 (__io_functions): Add `__fileno' member.
7297 (struct __stdio_file): Remove `__fileno' member.
7298 [__USE_POSIX] [__OPTIMIZE__]: Remove fileno macro defn.
7299 [__USE_POSIX] (fileno): Remove `const' from arg in prototype.
7300 * stdio/fileno.c (fileno): Rewritten to call STREAM's __fileno fn.
7301 * sysdeps/stub/sysd-stdio.c (__stdio_fileno): New function.
7302 (__stdio_open): Return an int (zero for win, nonzero for lose),
7303 and make third arg PTR * (filled in with cookie).
7304 * stdio/stdio.h (__stdio_open): Changed prototype.
7305 * sysdeps/posix/sysd-stdio.c (__stdio_open): Likewise.
7306 (__stdio_{read,write,seek,close}): Use (int) COOKIE as the fd, rather
7307 than *(int *) COOKIE.
7308 (__stdio_fileno): New function; just returns (int) COOKIE.
7309 * sysdeps/posix/fdopen.c: Set cookie to (PTR) FD; don't set fileno.
7310 * stdio/vdprintf.c: Likewise.
7311 * stdio/fmemopen.c: Set STREAM->__io_funcs.__fileno to NULL.
7312 Set STREAM->__cookie to NULL and don't use STREAM->__fileno.
7313 * stdio/internals.c (__default_io_functions): Add __stdio_fileno.
7314 * sysdeps/posix/defs.c (stdstream): Initialize __cookie to (PTR) FD
7315 Remove __fileno initializer.
7316 Add NULL initializer for __io_funcs.__fileno.
7317 * sysdeps/posix/pipestream.c (struct child): Remove `fd' member.
7318 Add `cookie' and `funcs' members.
7319 (FUNC): Macro to define child io_funcs.
7320 (child_funcs): New variable, __io_functions struct of them.
7321 (popen): Store STREAM's original cookie and io_funcs in CHILD, and
7322 then set STREAM->__cookie to CHILD and stream->__io_funcs to
7324 (pclose): Restore STREAM's original cookie and io_funcs before
7327 * configure.in (autoconf checks): Add new check for a
7328 libc-friendly stddef.h.
7330 * sysdeps/unix/configure: Remove __getpgrp from list of syscalls.
7332 * sysdeps/generic/memchr.c: Handle 64-bit longwords.
7333 * sysdeps/generic/strlen.c: Likewise.
7334 * sysdeps/generic/strchr.c: Likewise.
7336 * sysdeps/unix/sysv/sco3.2.4/Makefile: Remove gratuitous `.c'.
7338 * Makerules [objects] (install-others): Add $(libdir)/libc.a to
7339 this, instead of adding $(libc.a) to install-lib.
7340 ($(libdir)/libc.a): New target to install from $(libc.a).
7342 * sysdeps/unix/sysv/sco3.2.4/__setsid.S: New file.
7343 * sysdeps/unix/bsd/bsd4.4/__setsid.S: New file.
7345 Mon May 24 16:49:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7347 * sysdeps/unix/sysv/linux/__setsid.S: Moved to unix/sysv/sysv4,
7348 and replaced with #include of that.
7349 * sysdeps/unix/bsd/sun/sunos4/__setsid.S: New file.
7350 * sysdeps/unix/bsd/ultrix4/__setsid.S: New file.
7352 * posix/Makefile (install): Define to getconf.
7354 * crypt: New version from glad.
7356 * sysdeps/unix/sysv/sysv4/__sysconfig.S: Renamed to sysconfig.S.
7357 * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Change reference.
7358 * sysdeps/unix/sysv/sysv4/Dist: Add sysconfig.S.
7360 * sysdeps/generic/Makefile (siglist.c): Use dir and notdir
7361 functions to guarantee qualified path name for make_siglist.
7363 * time/Makefile (tzcompile): Use $(@D) for target directory, not
7364 reference to nonexistent 4th dep.
7365 (localtime-file, posixrules-file): Turn these into absolute names.
7366 (install-others): Simply refer to them.
7367 ($(datadir)/zoneinfo/{localtime,posixrules}): Change targets of
7368 these rules to $(localtime-file) and $(posixrules-file), respectively.
7369 Use $(<D) for directory to pass zic.
7371 * Makerules (installdirs): Use `sort' function to uniquize list of
7374 * time/Makefile (install-others): Use $(datadir)/zoneinfo, not
7375 $(datadir)zoneinfo (missing /).
7377 * Makerules (install-lib): Refer to `$(libc.a)' instead of `libc.a'.
7379 * setjmp/sigjmp_save.c: Renamed to sigjmp.c.
7380 * setjmp/Makefile (routines): Change reference.
7382 * sysdeps/unix/common/Makefile (siglist.c, make_siglist): Targets
7384 * sysdeps/unix/common/make_siglist.c: File removed.
7386 Sun May 23 01:00:00 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7388 * manual/Makefile (minimal-dist): Remove COPYING.LIB.
7389 (doc-only-dist): Put it here.
7391 Sun May 23 00:12:24 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7393 * Version 1.06 released.
7395 * sysdeps/sparc/Dist: Add {u,}{div,rem}.S.
7397 Sat May 22 18:17:08 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7399 * sysdeps/generic/make_siglist.c (main): Call signame_init, not
7402 * Makerules (native-compile): Compile $^, not just $<.
7404 * sysdeps/unix/i386/sysdep.h (PSEUDO): Omit `.text'. Some
7405 assemblers don't like `.text; ...'.
7407 * Rules (all): Mention as target first, so it is the default goal.
7409 * sysdeps/unix/i386/sysdep.S: #undef syscall_error before using it
7411 [NO_UNDERSCORES]: Define __syscall_error instead of syscall_error.
7413 * sysdeps/unix/readdir.c: Decrement d_namlen until it no longer
7416 * Makerules (+install-dirs): Variable removed.
7417 (install): Don't depend on $(+install-dirs).
7418 (installdirs): New target, to make $(dir $(+install)) using
7419 mkinstalldirs. Make $(+install) depend on it.
7420 * Makefile (distribute): Add mkinstalldirs.
7421 * mkinstalldirs: New file.
7423 * manual/Makefile (installdirs):
7424 New target, using mkinstalldirs to create $(infodir).
7425 ($(infodir)/libc.info): Depend on installdirs.
7426 (minimal-dist): Remove Makefile.
7427 (doc-only-dist): New variable, containing Makefile and mkinstalldirs.
7428 (*.tar): Depend on $(doc-only-dist).
7430 Sat May 22 16:31:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7432 Compile zoneinfo files directly into $(datadir)/zoneinfo, rather
7433 than compiling them into the source directory and then copying.
7434 * time/Makefile (zones-%): Put targets of generated rule in
7435 $(datadir)/zoneinfo, not zoneinfo.
7436 Don't make generated rules depend on zoneinfo/.
7437 (zonenames, zones-%): Write into $@.new and then use atomic mv.
7438 (zones, zoneinfo): Targets removed.
7439 (zoneinfo/localtime, zoneinfo/posixrules): Change targets to be in
7440 $(datadir)/zoneinfo; find $(localtime) and $(posixrules) there as well.
7441 ($(localtime-file), $(posixrules-file)): Targets removed.
7442 (install-data): Definition removed.
7443 (install-others): Include $(zonenames) from $(datadir)/zoneinfo; and
7444 $(localtime-file) and $(posixrules-file), from $(datadir)/zoneinfo
7445 if they are not absolute file names.
7447 * time/zic.c (dolink): If FROMFILE or TOFILE begins with a slash,
7448 just set {FROM,TO}NAME to it, instead of prepending DIRECTORY.
7449 Don't free {FROM,TO}NAME if it is {FROM,TO}FILE.
7451 Fri May 21 13:23:32 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7453 * sysdeps/unix/i386/sysdep.S: Paste : onto syscall_error.
7455 * sysdeps/unix/configure: Use grep -i when looking for syscalls.
7456 (unix_syscall_h): Ignore syscall.h found in sysdeps/stub.
7457 Remove __setpgrp from list of syscalls.
7459 * sysdeps/unix/Makefile ($(common-objpfx)sys/param.h): Write defn
7460 for MAXHOSTNAMELEN. The kludgemeister strikes again.
7462 * posix/Makefile (glob/ChangeLog): Use mv -f.
7464 * configure.in (os frobnication): Translate numbers separated by
7465 `v's into numbers separated by dots.
7467 * sysdeps/unix/sysv/sco3.2.4/syscall.h: New file.
7469 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Rewritten to do the
7470 canonical wait3-style magic.
7472 * sysdeps/unix/sysv/sco3.2.4/{Makefile,Dist,sco_pgrp.S,
7473 __getpgrp.c,__setpgrp.c,__setsid.c}: New files.
7475 * Makerules ($(common-objpfx)stub-$(subdir)): Add /dev/null to
7478 * manual/Makefile ($(objpfx)%.info, $(objpfx)%.dvi): New rules.
7479 ($(infodir)/libc.info): Take basename of each $<* before using it.
7480 (glibc-targets): Add stubs.
7481 (stubs, $(common-objpfx)stub-manual): New targets.
7483 * time/Makefile (distribute): Add yearistype.
7484 * time/yearistype: New file.
7486 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Don't use ARGS_4
7487 macro; just set %ecx to %esp instead. Pop the stack before doing
7488 the system call, so the add doesn't clear the condition codes.
7490 * sysdeps/unix/start.c [HAVE_GNU_LD]: Put `start' symbol alias
7491 under [! NO_UNDERSCORES && ! __GNUC__].
7493 * sysdeps/unix/sysdep.h (C_LABEL): Use ## to paste NAME and : together.
7495 * sysdeps/unix/i386/sysdep.h (DO_CALL): Add missing backslash.
7497 Thu May 20 18:01:15 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7499 * Makefile ($(+subdir_targets)): Remove old rule. Replace with
7500 static pattern rule to depend on DIR/TARGET for each subdir and target.
7501 (all-subdirs-targets): Define variable to contain names of all
7503 ($(all-subdir-targets)): Define rule for these to do sub-make.
7505 * sysdeps/unix/sysv/sysv4/direct.h (D_NAMLEN): Subtract one for
7506 the terminating null character.
7507 * sysdeps/unix/sysv/sco3.2.4/direct.h (D_NAMLEN): Copy defn from
7510 Thu May 20 11:02:59 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
7512 * sysdeps/posix/__getpgsz.c: New file.
7513 * sysdeps/unix/sysv/sysv4/__getpgsz.c: New file, include the posix one.
7514 * sysdeps/posix/__getdtsz.c: New file.
7515 * sysdeps/unix/sysv/sysv4/__getdtsz.c: New file, include the posix one.
7517 * sysdeps/unix/sysv/sysv4/{__sysconf.c, __sysconfig.S,
7518 sysconfig.h, Makefile, Dist}: New files.
7520 * sysdeps/generic/confname.h (enum for sysconf): Add _SC_PAGESIZE.
7521 * sysdeps/posix/__sysconf.c: Include stddef.h.
7522 (__getpagesize): Declare.
7523 (__sysconf, case _SC_PAGESIZE): Call __getpagesize.
7525 Wed May 19 14:03:07 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7527 * manual/Makefile (routines, aux, sources, objects, headers):
7530 * Makeconfig (infodir): Define.
7531 * Makefile (+other_dirs): Add manual.
7532 * manual/Makefile: Include ../Makeconfig if it exists.
7533 (subdir): Export it.
7534 (find-includes): Output variable name is $(@F), not $@.
7535 (distribute): Export it.
7536 (mostlyclean, distclean, realclean, clean, subdir_clean): New targets.
7537 (install, subdir_install): New targets.
7538 (infodir, prefix, INSTALL_DATA, INSTALL): Define vars if undefined.
7539 ($(infodir)/libc.info): New target.
7540 (dist): Use ../Make-dist if it exists.
7541 (glibc-targets): New variable.
7542 ($(glibc-targets)): Make no-op targets.
7544 * config.guess: New file, maintained by Cygnus.
7545 * configure.in: Move AC_PREPARE before arg lossage check.
7546 If $target is unset, try setting it from config.guess.
7547 * Makefile (distribute): Add config.guess.
7549 * inet/getnetbyad.c: Change first arg type to int32_t.
7550 * inet/inet_mkadr.c: Change arg types to u_int32_t.
7551 * inet/inet_lnaof.c: Change return type to u_int32_t.
7552 * inet/inet_net.c: Likewise.
7553 * inet/inet_netof.c: Likewise.
7554 * inet/res_send.c, inet/res_query.c, inet/res_mkqry.c,
7555 inet/res_init.c, inet/res_debug.c, inet/res_comp.c,
7556 inet/inet_addr.c, inet/herror.c, inet/gethstnmad.c, inet/resolv.h,
7557 inet/netdb.h, inet/arpa/nameser.h, inet/arpa/inet.h:
7558 Snarfed latest code from BIND 4.9.1.
7559 * inet/sys/bitypes.h: New file.
7560 * conf/portability.h: New file.
7561 * inet/Makefile (headers): Add sys/bitypes.h.
7562 (distribute): Define to ../conf/portability.h.
7564 * mach/__msg_destroy.c: Renamed to __msg_dest.c.
7565 * mach/mig_syms.c: Renamed from mig_support_syms.c.
7566 Added symbol alias for mig_strncpy.
7567 * mach/__mig_strncpy.c: Renamed to mig_strncpy.c.
7568 * mach/mig_strncpy.c: File removed.
7569 * mach/Makefile (routines): Remove __mig_strncpy; change
7570 mig_support_syms to mig_syms; change __msg_destroy to __msg_dest.
7572 * sysdeps/posix/Makefile: Replace instances of `objpfx' and
7573 `objdir' with `common-objpfx' and `common-objdir'.
7575 Mon May 17 16:29:29 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7577 * time/asctime.c: Replace ` %2d' with `%3d' in FORMAT.
7578 (asctime): Check return from sprintf being <0, not <25.
7580 * sysdeps/unix/opendir.c: Include <stdio.h> for BUFSIZ.
7582 * sysdeps/unix/i386/sysdep.h (PSEUDO): Put ; after DO_CALL use.
7584 * sysdeps/i386/ffs.c: Use `nonzero' for asm label, instead of `1f'.
7586 Sun May 16 17:59:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7588 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Don't get fancy with
7589 xchg; just push $trampoline and then push our args again, pop them
7590 after the system call.
7592 * time/tzfile.c (__tzfile_default): Don't assume TYPES[0] is
7593 standard and TYPES[1] is DST. Instead, loop through all types:
7594 if a type's isdst flag is set, set its idx to STDLEN and its
7595 offset to DSTOFF; if isdst is clear, set its idx to 0 and its
7598 * time/__tzset.c: When __tzfile_default returns having set
7599 __use_tzfile, set __tzset_run before returning.
7601 * sysdeps/posix/sleep.c: Block SIGALRM with sigprocmask before
7602 changing its handler. Use sigaction instead of signal to set the
7603 handler. Use sigsuspend to restore the blocked signals and pause
7604 atomically, instead of using pause. Be sure to disable the alarm
7605 when a signal other than SIGALRM wakes sigsuspend.
7607 * time/Makefile (zic-cmd): Put the directory before the nondirectory.
7609 * Makerules (stubs): Remove surrounding `ifdef +depfiles'...`endif'.
7611 * time/Makefile: Include ../Makeconfig before trying to use $(objpfx).
7613 * time/tzfile.c (__tzfile_compute): When there are transitions and
7614 TIMER is not before the first one, find the first transition after
7615 TIMER, and then set I to the type of the transition before it.
7616 Set INFO from types[I], not types[type_idxs[I]].
7618 * posix/Makefile (glob/configure): cd to glob before running autoconf.
7620 * time/__tzset.c (compute_change): Don't add 1900 to YEAR.
7621 (__tz_compute): Add 1900 to the year we pass to compute_change.
7623 * time/gmtime.c: After calling __offtime, zero tm_gmtoff and set
7626 * time/time.h [__OPTIMIZE__]: Remove gmtime macro version.
7628 * time/tzfile.c (__tzfile_default): Fail if NUM_TYPES < 2, not if
7631 * time/tzfile.c (__tzfile_compute): Don't take arg TM.
7632 Instead take new args long int *LEAP_CORRECT and int *LEAP_HIT.
7633 Don't apply leap second correction to __timezone; instead set
7634 *LEAP_CORRECT and *LEAP_HIT.
7635 * time/__tzset.c (tzset_run): Renamed to __tzset_run, made global.
7636 (__tzset): Change uses.
7637 (__tz_compute): Change use here as well.
7638 Make second arg be a `const struct tm *'. Don't call __tzfile_compute.
7639 * time/localtime.c: Call __tzset if __tzset_run is clear.
7640 New local vars LEAP_CORRECTION and LEAP_EXTRA_SECS.
7641 If __use_tzfile is set, call __tzfile_compute and pass it their
7642 addresses. Only need to call gmtime if __use_tzfile is clear. If
7643 it is clear, pass result of gmtime to __tz_compute, instead of
7644 dereferencing it first; and zero LEAP_CORRECTION and LEAP_EXTRA_SECS.
7645 Subtract LEAP_CORRECTION from __timezone in __offtime call.
7646 After __offtime, add LEAP_EXTRA_SECS to TP->tm_sec.
7648 * sysdeps/generic/strsep.c: Increment END when writing a null to
7649 it, and set *STRINGP to END rather than END+1, so *STRINGP never
7650 points past the null.
7652 Sat May 15 17:10:02 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7654 * time/strftime.c: Alphabetize switch cases.
7655 Add GNU extensions %h, %C, %k, %l.
7657 * time/asctime.c: Make RESULT big enough for each %d to be 2^64.
7658 Protect against tm_wday and tm_mon being out of bounds; use "???"
7661 * time/{emkdir,ialloc,scheck,zic,zdump}.c: New versions from ADO.
7663 * time/africa, time/antarctica, time/asia, time/australasia,
7664 time/europe, time/northamerica, time/southamerica,
7665 time/pacificnew, time/etcetera, time/factory, time/systemv,
7666 time/solar87, time/solar88, time/solar89, time/leapseconds:
7667 Updated from Arthur David Olsen's latest.
7669 * sysdeps/generic/__expm1.c, sysdeps/generic/asinh.c,
7670 sysdeps/generic/exp__E.c, sysdeps/generic/log.c,
7671 sysdeps/generic/log1p.c, sysdeps/generic/mathimpl.h,
7672 sysdeps/generic/pow.c, sysdeps/mach/hurd/__ioctl.c,
7673 sysdeps/mach/hurd/stdio_init.c, sysdeps/unix/bsd/clock.c: Put
7674 `const' qualifier always after storage classes.
7676 * sysdeps/unix/bsd/sequent/i386/__sigvec.S (trampoline): Use
7678 (__sigvec): Exchange the scratch reg with 16(%esp) (fourth arg
7679 slot), not 0(%esp) (return PC slot). Use ARGS_4 to point the
7680 syscall at the args.
7682 * sysdeps/unix/common/__getgrps.c: When gid_t==int, and SIZE!=0,
7683 return N from __bsd_getgroups.
7685 * posix/unistd.h (__need_NULL): Define before including <stddef.h>.
7686 1003.1-1990 2.7.1 says it should be here.
7688 Sat May 15 14:54:25 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
7690 * time/__tzset.c (compute_change): Add 1900 to YEAR, not 1970.
7692 Fri May 14 21:24:19 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
7694 * sysdeps/unix/sysv/sysv4/solaris2/start.c: Define NO_EXPLICIT_START.
7695 * sysdeps/unix/sparc/start.c [NO_EXPLICIT_START]: Don't asm
7696 `_start' into `start' (e.g., for Solaris).
7698 * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h: New file.
7700 Fri May 14 19:34:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7702 * malloc/Makefile: Remove depend-malloc dependency on malloc/gmalloc.c.
7704 * posix/Makefile (headers): Add sys/unistd.h.
7705 * posix/sys/unistd.h: New file, just includes <unistd.h>.
7707 * sysdeps/unix/common/glue-ctype.c (main): Define generated array
7708 as `unsigned char' rather than `char'.
7710 * sysdeps/unix/start.c [__GNUC__]: Use asm frob to make `start'
7713 * sysdeps/unix/opendir.c [! _STATBUF_ST_BLKSIZE]: Don't fstat and
7714 use st_blksize; try BUFSIZ instead.
7716 * sysdeps/unix/Makefile (ioctls): Don't use sed to remove final |
7717 from snarf-ioctls output; just append a dummy alternative instead.
7719 * sysdeps/posix/__wait3.c: Fix arg types.
7721 * Makerules ($(common-objpfx)stub-$(subdir)): Use @ for sed
7722 separator char. Pass extra file /dev/null in case `...` gets empty.
7724 * sysdeps/unix/sysdep.h (C_LABEL): Define new macro.
7725 * sysdeps/unix/i386/sysdep.h (ENTRY): Use it.
7726 * sysdeps/unix/sparc/sysdep.h (ENTRY): Likewise.
7727 * sysdeps/unix/sparc/__brk.S: Use C_LABEL and ENTRY instead of
7729 * sysdeps/unix/i386/__brk.S: Use C_LABEL instead of C_SYMBOL_NAME.
7731 Fri May 14 17:41:42 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
7733 * sysdeps/mips/sqrt.c [HAVE_GNU_AS]: Use the IEEE 754 version of
7734 sqrt since gas can't handle the `sqrt.d' synthetic instruction.
7736 Fri May 14 16:33:47 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7738 * stdio/Makefile (routines): Add tempname.
7740 * sysdeps/unix/common/make_siglist.c: #define const to empty
7741 around #include of <signal.h>.
7743 * sysdeps/unix/errnos.awk: Surround generated `DO' macro calls
7744 with #ifdef on the E* symbol.
7746 * sysdeps/unix/common/make_siglist.c [! HAVE_SYS_SIGLIST &&
7747 HAVE__SYS_SIGLIST]: Define sys_siglist to _sys_siglist.
7749 * termios/Makefile (headers): Add termbits.h.
7751 * posix/Makefile (headers): Add waitflags.h and waitstatus.h.
7753 * math/math.h (struct __complex): Rename to struct __cabs_complex.
7754 __complex is now a reserved word in GCC.
7755 * sysdeps/generic/cabs.c (cabs): Likewise.
7756 * sysdeps/ieee754/cabs.c (cabs, z_abs): Likewise.
7758 * sysdeps/unix/common/glue-ctype.c: Test for _ctype__ before _ctype_.
7760 * posix/Makefile (headers): Add confname.h.
7762 Thu May 13 00:25:53 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7764 * ctype/Makefile (tags_sources): Don't define.
7765 * MakeTAGS [subdir==ctype] (tags_sources): Put headers before sources.
7767 * time/__tzset.c (compute_change): Add 1970 to YEAR before using it.
7769 * sysdeps/unix/readdir.c: Pass a BASEP arg to __getdirentries.
7771 Wed May 12 20:36:51 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7773 * Makefile (distribute): Add aclocal.m4.
7775 * dirent/list.c (test): Clear errno before readdir loop. Complain
7776 if errno is set thereafter.
7778 * sysdeps/unix/sysv/sysv4/solaris2/utsnamelen.h: New file.
7779 * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: New file.
7780 * sysdeps/unix/sysv/sysv4/solaris2/sigaltstack.S: New file.
7781 * sysdeps/unix/sysv/sysv4/solaris2/Makefile: New file.
7783 * sysdeps/unix/bsd/sun/sparc/start.c: Moved to sysdeps/unix/sparc.
7784 * sysdeps/unix/sparc/start.c: Moved from sysdeps/unix/bsd/sun/sparc.
7785 Surround all shared library frobnication code with #ifndef NO_SHLIB.
7786 * sysdeps/unix/sysv/sysv4/solaris2/start.c: New file.
7788 * configure.in (os = solaris[2-9]*): base_os=unix/sysv/sysv4.
7790 * sysdeps/sparc/setjmp.S: Include <sysdep.h>, not "DEFS.h".
7791 Use ENTRY(__setjmp) instead of FUNC(___setjmp).
7793 * sysdeps/sparc/divrem.m4: [__svr4__]: Include <sys/trap.h>
7794 instead of <machine/trap.h>.
7796 * sysdeps/sparc/__longjmp.S: Include <sysdep.h>, not "DEFS.h".
7797 Use ENTRY(__longjmp) instead of FUNC(___longjmp).
7798 [__svr4__]: Use <sys/trap.h> instead of <machine/trap.h>.
7800 * sysdeps/unix/i386/sysdep.h (C_SYMBOL_NAME, SYS_ify): Moved to
7801 sysdeps/unix/sysdep.h.
7802 * sysdeps/unix/sparc/sysdep.h: New file.
7803 * sysdeps/unix/bsd/sun/sparc/sysdep.h: File removed.
7805 * sysdeps/unix/sparc/__brk.S: New file.
7806 * sysdeps/unix/sparc/__brk.c: File removed.
7808 Wed May 12 19:43:37 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
7810 * malloc/cfree.c: Put malloc.h include in _MALLOC_INTERNAL conditional.
7812 Wed May 12 16:24:23 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
7814 * Makeconfig (+link): Put $(LDFLAGS) in the value.
7815 * sysdeps/unix/bsd/sun/sparc/Makefile (LDFLAGS): Set it.
7817 * posix/glob.c: Move include <unistd.h> before dir includes.
7818 [HAVE_UNISTD_H] [! POSIX] [_POSIX_SOURCE]: Define POSIX.
7820 * grp/initgroups.c [! NGROUPS_MAX || NGROUPS_MAX == 0]: Just
7821 return 0 and do nothing.
7823 * sysdeps/unix/sysv/sco3.2.4/__{sys,path}conf.S: New files.
7824 * posix/unistd.h: Include <confname.h>; remove _{SC,CS,PC}_* defns.
7825 * sysdeps/generic/confname.h: New file.
7826 * sysdeps/unix/sysv/sco3.2.4/confname.h: New file.
7828 * malloc/cfree.c: Include <malloc.h> instead of <stdlib.h>.
7829 [_LIBC]: Use function_alias only under this conditional.
7830 [! _LIBC] (cfree): Define a function that just calls free.
7832 * posix/Makefile (glob.tar): Depend on glob/ChangeLog.
7833 (glob/configure): Just run autoconf, don't do a sub-make.
7834 (glob/ChangeLog): New target.
7835 (%.Z, %.z): New rules.
7837 Mon May 10 16:56:09 1993 Jim Blandy (jimb@geech.gnu.ai.mit.edu)
7839 * malloc/cfree.c: Put the meat of the file inside a "#if
7840 defined(__GNU_LIBRARY__)" clause, so that gmalloc.c, which
7841 incorporates this file, can be used outside of the C library.
7843 Sun May 9 16:57:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7845 * stdio/fseek.c: Don't call __flshfp unless STREAM is writable.
7847 * string/tester.c (main): Remove unused variable.
7849 * sysdeps/unix/bsd/set[er][gu]id.c: New files.
7851 * sysdeps/unix/mk-local_lim.c (NAME_MAX): Define to 255 if undefined.
7853 * malloc/Makefile (malloc-dist): Add ChangeLog and mem-limits.h.
7854 (malloc/ChangeLog): New rule using Noah's changelog-extract.
7855 (malloc.tar): Use o flag to tar to make compatible archives.
7856 (gmalloc-routines): Add calloc, valloc, and cfree.
7857 (dist-routines): Remove [cv]alloc from here.
7858 (routines): Remove cfree from here.
7860 Fri May 7 16:45:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7862 * sysdeps/posix/ttyname.c: Replace fixed-sized NAME array with
7863 static char *NAME and static size_t NAMELEN.
7864 Don't check S_ISCHR.
7865 Don't hack NAME before the loop.
7866 If need more than NAMELEN chars to hold the name, increase NAMELEN
7867 to more than big enough and malloc NAME.
7868 Save errno in local var SAVE before doing anything; restore it
7869 when returning non-error.
7871 * Makefile (generated): Add $(objpfx)stubs.h.
7872 (README): New rule to call Make-dist to do the work.
7874 * mach/Makefile: Don't include mach-syscalls.mk if no_deps=t.
7876 * crypt/GNUmakefile (%.z): New rule for gzipping.
7877 (crypt.tar): Use o flag to tar to make compatible archives.
7879 * Makeconfig: Find config.make in $(common-objpfx), not $(objpfx).
7881 * io/Makefile (headers): Remove filebits.h.
7883 * sysdeps/unix/sysv/sysv4/Dist: File removed.
7885 * Makefile (README): Move from here.
7886 * Make-dist (README): To here.
7888 * sysdeps/unix/Makefile (sys/param.h): Don't depend on sys/. It
7889 was causing sys/param.h to be remade all the time.
7891 * aclocal.m4 (GLIBC_PROVIDES): Add shell comment about configure
7892 being generated and not to be editted.
7894 * sysdeps/unix/swapon.S: Moved to sysdeps/unix/common.
7895 * sysdeps/unix/configure: Add swapon to list of syscalls to check for.
7897 * sysdeps/unix/mk-local_lim.c: New file, modified from
7898 sysdeps/unix/common/mk-local_lim.c.
7899 * sysdeps/unix/common/Makefile: Move local_lim.h rules from here.
7900 * sysdeps/unix/Makefile: Put them there.
7901 (local_lim-CFLAGS): Define new variable.
7902 (mk-local_lim): Replace $(native-compile) with its value plus
7903 $(local_lim-CFLAGS).
7904 * sysdeps/unix/common/Dist: Remove mk-local_lim.c.
7905 * sysdeps/unix/Dist: Add it here.
7907 * Makerules (make-dummy-dep): New variable; canned command.
7908 ($(objpfx)%.dep: {$(objpfx),}%.s): New rules using $(make-dummy-dep).
7909 (sysd-Makefile): Write a $(objpfx)%.dep: $dir/%.s rule using it.
7911 * misc/ioctl.c: Replace function_alias with:
7912 [HAVE_GNU_LD]: Use symbol_alias.
7913 [! HAVE_GNU_LD]: Write out the function; it must fetch its third arg
7914 with va_arg and then call __ioctl.
7916 Thu May 6 14:56:16 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7918 * misc/sys/ioctl.h (__ioctl, ioctl): Changed prototype to take 2
7919 args and ... rather than a 3rd __ptr_t arg.
7920 * sysdeps/stub/__ioctl.c: Changed defn.
7922 * sysdeps/unix/bsd/sun/sunos4/tcflow.c: Include <sys/ioctl.h>.
7924 * sysdeps/unix/Makefile (make-ioctls-CFLAGS): Define as
7925 -DHAVE_SYS_TERMIOS_H if $(sysincludedir)/sys/termios.h exists.
7926 (make-ioctls): Replace command `$(common-objdir-compile)' with
7927 that var's contents from Makerules, plus $(make-ioctls-CFLAGS).
7928 * sysdeps/unix/ioctls-tmpl.c [HAVE_SYS_TERMIOS_H]: Get <sys/termios.h>.
7930 * misc/sys/ioctl.h: Include <sys/ttydefaults.h> after <ioctls.h>.
7932 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfget[io]speed): Return the
7933 raw speed, rather than using it as an index into `speeds'.
7934 (cfset[io]speed): Treat SPEED being an index into `speeds' just as
7935 if it were the value of that element.
7937 * termios/termios.h: Remove definitions of B[0-9]+ and EXT[AB].
7938 * sysdeps/generic/termbits.h: Put them here instead.
7939 * sysdeps/unix/bsd/sun/sunos4/termbits.h: Add new defns for those.
7941 * sysdeps/unix/Makefile (termbits-edit): If termbits.h is not the
7942 generic version, set this to an | egrep command which filters out
7943 symbols appearing in termbits.h.
7944 (ioctls): Depend on $(sysincludedir)sys/termios.h if it exists.
7945 Pass all deps after first to snarf-ioctls.
7946 Put $(termbits-edit) in cmd line; it may be empty or a pipe.
7947 Pipe through sort|uniq before tr (just to cut down on duplicates).
7949 * sysdeps/generic/Makefile, sysdeps/unix/Makefile: When deciding
7950 whether to generate files whose stub versions are chosen, also
7951 include the generation rules when the chosen directory is
7952 $(common-objpfx), so they continue to be defined after running once.
7954 * sysdeps/posix/Makefile: Use patsubst instead of substition
7955 references when the substitution or replacement contains a $.
7956 Make has a bug (which I just fixed) with such substitution references.
7958 * posix/wait3.c: Fixed arg types in fn alias.
7959 * posix/wait4.c: Likewise.
7961 * sysdeps/posix/Makefile: Remove vpath %.h line.
7962 * Makerules: Add vpath %.h directive.
7964 * sysdeps/posix/Makefile (generated, before-compile): Add
7965 $(common-objpfx)stdio_lim.h, not just plain stdio_lim.h.
7967 * Makerules (depend-$(subdir)): Put $(objpfx) in the output, not
7969 (+make-deps): Add sed clause to translate the expansion of
7970 $(objpfx) back into the variable reference.
7972 Wed May 5 15:59:40 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
7974 * sysdeps/unix/sysv/sco3.2/local_lim.h: New file.
7976 * sysdeps/unix/sysv/sco3.2/Makefile: New file
7977 * sysdeps/unix/sysv/sco3.2/Dist: New file.
7978 * sysdeps/unix/sysv/sco3.2/__fltused.c: New file.
7980 * sysdeps/unix/configure: New file.
7981 * sysdeps/unix/inet/__select.S: Moved to sysdeps/unix/common.
7982 This is because select is a call sysdeps/unix/configure wants to
7983 check for, and it simplifies life for all those to be in unix/common.
7985 * sysdeps/tahoe/Implies: Remove $(bsdmath)tahoe line.
7987 * sysdeps/unix/sysv/sco3.2.4/{__sigact,__sigproc,
7988 sigpending,sigsuspend}.S: New files.
7990 * Makefile (INSTALL): Depend on manual/maint.texi, not
7991 manual/maint.texinfo. Use -- instead of + for long options.
7993 * configure.in: After setting $sysnames initially and adding the
7994 FPU directory, expand and uniquize the list with code that used to
7995 be in find-sysdirs. Make $sysnames blank-separated rather than
7996 newline-separated. Generalize loop iterating over $sysnames, so
7997 it sets $uname and sources sysdep configure scripts. Move
7998 sys_siglist and ctype checks to sysdeps/unix/common/configure.in.
7999 Set Make variable `config-sysdirs' to $sysnames in config.make,
8000 and don't frob Sysnames or sysdirs files at all.
8001 * find-sysdirs: File removed.
8002 * Makefile (distribute): Remove find-sysdirs.
8003 (sysd-dirs): Depend on config.make instead of config.make.
8004 Use $(sysdirs) in place of `cat $<`.
8005 * aclocal.m4: New file.
8006 * sysdeps/unix/common/configure.in: New file, contains checks for
8007 sys_siglist and ctype glue moved from top-level configure.in.
8008 * Makerules (sysdirs, Sysnames): Rules removed.
8009 Don't include sysdirs.
8010 (sysdirs): Define variable from $(config-sysdirs).
8011 (sysd-Makefile): Depend on config.make instead of sysdirs.
8012 Use $(sysdirs) instead of filtering the sysdirs file.
8013 * Make-dist (+sysdep-tsrcs): Include configure and configure.in
8015 (dist.tar): Use o flag to tar for compatible archives.
8016 (dist): Depend on foo.z instead of foo.Z.
8017 ($(tardir){-crypt,}.tar.z): Renamed from .Z.
8019 (%/configure: %/configure.in): New rule.
8021 Mon May 3 17:45:06 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8023 * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: New file.
8025 * sysdeps/unix/sysv/sco3.2.4/direct.h: New file.
8027 * sysdeps/unix/readdir.c: Moved from unix/bsd, rewritten to always
8028 use __getdirentries and D_NAMLEN macro, no #ifdefs.
8029 * sysdeps/unix/sysv/readdir.c, sysdeps/unix/bsd/bsd4.4/readdir.c,
8030 sysdeps/unix/bsd/ultrix4/readdir.c,
8031 sysdeps/unix/bsd/hp/m68k/readdir.c,
8032 sysdeps/unix/bsd/sun/readdir.c: Files removed.
8033 * sysdeps/unix/common/{close,open,rewind,seek,tell}dir.c: Moved to
8035 * sysdeps/unix/sysv/direct.h: New file.
8036 * sysdeps/unix/bsd/direct.h (D_NAMLEN): Define to use d_namlen.
8037 * sysdeps/unix/sysv/sysv4/direct.h (D_NAMLEN): Define to calculate
8039 * sysdeps/unix/__getdents.c: New file.
8040 * sysdeps/stub/direct.h: New file.
8041 * sysdeps/unix/bsd/Dist: Remove bsddir.h.
8042 * sysdeps/unix/sysv/sysv4/readdir.c: Moved to unix/sysv.
8043 * sysdeps/unix/sysv/sysv4/bsddir.h: Renamed to direct.h.
8044 * sysdeps/unix/bsd/bsddir.h: Likewise.
8045 * sysdeps/unix/common/opendir.c: Include "direct.h", not "bsddir.h".
8046 * sysdeps/unix/sysv/sysv4/readdir.c: Likewise.
8047 * dirent/Makefile (distribute): Define to include direct.h.
8049 * sysdeps/unix/common/opendir.c: Be sure to close FD if fcntl fails.
8051 * sysdeps/generic/memcopy.h: #include <sys/cdefs.h> and use __P
8052 prototypes instead of EXFUN.
8054 * sysdeps/generic/memcmp.c (__ptr_t, const): Define as appropriate
8055 conditional on [__cplusplus || __STDC__].
8057 Thu Apr 29 21:48:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8059 * Makefile ($(libc.a)): Make this, not lib, depend on subdir_lib.
8061 * Makerules ($(objpfx)%.{o,dep} rules): Remove spurious / after
8062 $(objpfx) in dependency patterns.
8064 * sysdeps/unix/bsd/sun/sparc/start.c (_start): Define with
8065 `asm ("start")', so its asm name is `start' rather than `__start'.
8066 Remove asm that did a `.set' pseudo-op, which Sun as seems not to grok.
8068 Wed Apr 28 12:59:46 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8070 * sysdeps/stub/system.c: Return 0 if LINE is nil.
8072 * sysdeps/unix/__execve.S [!SYS_execve && SYS_exec]: Define
8073 SYS_execve to be SYS_exec.
8075 * time/mktime.c: Include <sys/types.h>.
8077 Mon Apr 26 17:10:21 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8079 * sysdeps/generic/memcmp.c: Deansideclized.
8080 [HAVE_CONFIG_H]: Include "config.h".
8081 [HAVE_STRING_H || _LIBC]: Put #include <string.h> under this.
8082 [_LIBC]: Put #include <memcopy.h> under this conditional.
8083 [! _LIBC]: Define op_t, OPSIZ, byte, and MERGE.
8085 * time/mktime.c: Define __isleap if not defined.
8087 Fri Apr 23 18:08:33 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8089 * sysdeps/unix/sysv/__getdents.c: New file.
8090 * sysdeps/unix/sysv/sysv4/sys_getdents.S: Moved to unix/sysv.
8091 * sysdeps/unix/sysv/Makefile [subdir==dirent]: Add sys_getdents to
8093 * sysdeps/unix/sysv/Dist: Add sys_getdents.S.
8094 * sysdeps/unix/sysv/sysv4/Dist: Remove it from here.
8095 * sysdeps/unix/sysv/sysv4/Makefile: File removed.
8097 Thu Apr 22 17:40:28 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8099 * sysdeps/unix/bsd/sony/newsos4/m68k/sysdep.h: New file.
8101 * sysdeps/generic/strsep.c: Set *STRINGP to END+1, not END.
8103 * configure.in (arg parsing): Grok --verbose and set verbose=yes.
8105 * sysdeps/sparc/{umul,mul}.S: Remove ' from ! comment.
8107 * sysdeps/sparc/Makefile (*.S): Find divrem.m4 in this sysdeps dir.
8109 * sysdeps/unix/bsd/sun/sunos4/speed.c (cfset[io]speed): Typo fix.
8111 * sysdeps/unix/bsd/sun/sparc/vfork.S: Use a sethi insn and %g1 as
8112 a temporary, rather than expecting the address to fit into a short
8115 * sysdeps/unix/bsd/__fork.S: Moved to sysdeps/unix/__fork.S; we
8116 want unix/MACHINE/__fork.S to come first.
8118 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Make STAT_LOC type
8119 `__WAIT_STATUS' (defined in <sys/wait.h>).
8120 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
8122 * signal/sigvec.c: Change args from `struct __sigvec *' to
8123 `struct sigvec *' in function alias.
8125 * signal/sigproc.c: Make arg SET `const sigset_t *' in fn alias.
8127 * signal/sigaction.c: Change args from `struct __sigaction *' to
8128 `struct sigaction *' in function alias.
8130 * sysdeps/unix/common/glue-ctype.c (main) [! TABLE]: Write just a
8131 comment saying we don't know the table name, rather than barfing
8132 with `TABLE' an undefined variable.
8134 * sysdeps/generic/printf_fp.c: Fixed test to chose %e format.
8135 Make loop condition --J > 0; break out of loop when FPNUM < F.
8136 After loop, use %e format iff J <= 0.
8138 * posix/glob/Makefile.in (.c.o): Put $(CFLAGS) last.
8139 (glob.o): Depend on glob.c.
8140 (fnmatch.o): Depend on fnmatch.c.
8142 Wed Apr 21 12:40:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8144 * sysdeps/posix/Makefile (before-compile): Add stdio_lim.h.
8146 * configure.in (signed size_t test): Remove 's from rhs of AC_DEFINE.
8148 * stdio/internals.c (seek_to_target): If __stdio_check_offset
8149 fails with ESPIPE, do nothing.
8151 * sysdeps/generic/printf_fp.c: For %e type, add K-1 to CUTOFF,
8153 When there are no post-decimal digits, never write a decimal point
8154 for a %g spec unless it had a # modifier.
8155 Move K==-1 test to write decimal point before K==CUTOFF test to
8156 round and write last digit.
8157 Merge code for first post-decimal digit with code for remaining digits.
8158 Move code to write leading fractional zeros inside K<0 test which
8159 determines if any will be needed.
8160 In decimal fraction notation code, use R10 temporary instead of
8161 repeating (R * 10) twice.
8163 * stdio/fwrite.c: Only fail when __stdio_check_offset fails if it
8164 failed with ESPIPE. If offset==-1, don't change it or target.
8166 * sysdeps/posix/defs.c (stdstream): Rearrange initializers, as
8167 FILE has been rearranged. Set offset and target to -1, not 0.
8169 * sysdeps/posix/stdio_init.c: If STREAM isatty, set its seek
8170 function to NULL. Unix bites.
8172 * stdio/ungetc.c: Call __flshfp if linebuf_active or put_limit>buffer.
8174 * sysdeps/unix/bsd/sun/sparc/start.c [__GNUC__ < 2]: #error.
8176 * time/mktime.c: Deansideclized.
8177 Don't include <errno.h> or <limits.h>; we don't need them.
8178 [DEBUG] (printtm): Made static.
8179 [HAVE_CONFIG_H]: Include "config.h".
8180 [__GNU_LIBRARY__ || HAVE_LIMITS_H]: Surround #include <limits.h>
8181 with these conditionals.
8183 * time/offtime.c (__mon_lengths): Move defn to mktime.c; replace
8185 * time/mktime.c (__mon_lengths): Define here; remove extern decl.
8187 Mon Apr 19 18:42:59 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8189 * sysdeps/stub/tempname.c: New file.
8190 * sysdeps/stub/sysd-stdio.c (__stdio_gen_tempname): Moved there.
8191 * sysdeps/posix/tempname.c: New file.
8192 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Moved there.
8194 * stdio/fopen.c: Don't set the offset to zero. That can falsely
8195 give the impression that an unseekable object is seekable.
8197 * stdio/internals.c (__flshfp): Discard any pushed back character
8198 first thing after sanity checks.
8199 (__flshfp): Deconditionalize code to call the output-room
8200 function; we always want to give it a chance to prime the stream.
8201 Remove code that reset bufp if put_limit==buffer. We want to let
8202 the output-room function do that--that is priming the stream.
8204 Fri Apr 16 12:24:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8206 * Makerules ($(libc.a)): Depend on lib-noranlib and have ranlib
8208 (lib): Just depend on $(libc.a).
8210 * sysdeps/unix/bsd/sun/sparc/start.c (init_shlib): Use __environ,
8213 * stdio/internals.c (__flshfp): Don't check that the buffer
8214 actually contains anything when setting the put_limit to the end of
8215 the buffer if linebuf_active.
8216 (__flshfp): To write C into the buffer !FLUSH_ONLY, don't check
8217 that bufp > buffer and get_limit == buffer. Check against
8218 put_limit unless linebuf_active (in which case check against the
8219 real put_limit, fp->__buffer + fp->__bufsize).
8220 (__flshfp): Bother to call the output-room function if !FLUSH_ONLY
8221 or bufp > buffer and get_limit <= linebuf-corrected put_limit.
8222 (__flshfp): Check for a NULL output-room function before checking
8223 if C will fit in the buffer.
8224 (flushbuf): After putting C into the buffer,
8225 set BUFFER_WRITTEN to zero and goto end instead of returning.
8227 * stdio/ungetc.c: Test STREAM->__pushed_back before flushing the
8228 STREAM if it's writable.
8230 * posix/glob.c, posix/fnmatch.c: Surround code with
8231 #if defined (_LIBC) || !defined (__GNU_LIBRARY__)
8233 Thu Apr 15 19:35:59 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8235 * string/tester.c (main): Added tests for strsep.
8237 * sysdeps/ieee754/frexp.c: New file.
8239 Wed Apr 14 12:49:10 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8241 * Makerules (ar-it): Add c flag to ar commands.
8243 * posix/glob.c [USG, NeXT]: Don't test these.
8244 [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
8245 [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
8246 [! ANSI_STRING]: Put decls of bcopy and #define of memcpy et al here.
8248 * posix/fnmatch.c [HAVE_CONFIG_H]: #include "config.h".
8250 Mon Apr 12 16:34:53 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8252 * posix/glob.c: Rationalize directory header conditionals.
8254 Sun Apr 11 18:53:50 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8256 * stdio/internals.c: Remove __libc_fatal.
8257 * sysdeps/stub/sysd-stdio.c: Remove __stdio_errmsg.
8258 * sysdeps/posix/sysd-stdio.c: Likewise.
8259 * sysdeps/stub/libc_fatal.c, sysdeps/posix/libc_fatal.c: New files.
8260 * stdio/Makefile (routines): Add libc_fatal.
8262 * stdio/stdio.h (FILE): Add new member `__linebuf_active' (flag).
8263 Rearranged order of members slightly.
8264 * stdio/setvbuf.c: Clear the linebuf_active flag.
8265 * stdio/fseek.c: Likewise.
8266 * stdio/internals.c (__flshfp): Test linebuf_active, not linebuf,
8267 to decide to reset put_limit before calling the output-room function.
8268 After calling it, if line-buffered, set put_limit to the
8269 beginning of the buffer and set the linebuf_active flag.
8270 (__fillbf): If linebuf_active is set, reset put_limit to the end
8271 of the buffer, and clear the flag.
8273 * stdio/ungetc.c: If STREAM is writable and has something in its
8276 * stdio/internals.c (__fillbf): When flushing all line-buffered
8277 streams, don't test for their put_limits being > than their
8278 buffers. We should let __flshfp figure it out.
8280 * stdio/setvbuf.c: Always set the put_limit to the beginning of
8283 * stdio/stdio.h (__putc): Rewritten to remove all knowledge of
8284 magic for line-buffered streams. It now always calls __flshfp when
8285 the bufp hits the put_limit.
8287 * stdio/fwrite.c: When recalculating BUFFER_SPACE after calling
8288 __flshfp, ignore the put_limit for the sake of line-buffered streams.
8290 * stdio/fseek.c (fseek): Call __flshfp on STREAM unconditionally.
8291 We don't want to try to put the conditions for when it is
8292 necessary here as well.
8294 * sysdeps/generic/printf_fp.c: When deciding whether to use %e
8295 format for %g, break out of the loop on J as soon as F reaches
8296 FPNUM; after the loop, set TYPE to 'e' if J<0, meaning we went all
8299 * misc/getpass.c (TCSASOFT): Define to 0 if undefined.
8300 (getpass): Use a variable OUT to store the stream where output goes.
8301 Use a variable NREAD to notice how much was read; if the last char
8302 in the buffer is a newline, clobber it to a null terminator.
8304 * posix/fnmatch.h [__cplusplus || __STDC__]: Don't #define const.
8306 Thu Apr 8 19:29:37 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8308 * stdio/tst-printf.c (main): Added some floating-point tests.
8310 * sysdeps/unix/bsd/sequent/i386/__sigvec.S: New file.
8312 * sysdeps/unix/sysv/i386/__sigret.S: Moved to sysdeps/unix/i386.
8313 Use DO_CALL instead of magic.
8315 * sysdeps/unix/bsd/i386/__wait3.S: Use DO_CALL instead of magic.
8316 Use scratch instead of %ecx and r1 instead of %edx.
8318 * sysdeps/unix/bsd/i386/__vfork.S: Rewritten to not use SYSCALL__.
8319 Use DO_CALL instead, and save the return PC in a register around
8322 * sysdeps/unix/i386/sysdep.h (DO_CALL): New macro to do syscall trap.
8323 (PSEUDO): Use it instead of putting the code here.
8325 * stdio/vfprintf.c (number): Write "0x" before padding, not after.
8327 * sysdeps/unix/bsd/sequent/i386/sysdep.h: New file.
8329 * sysdeps/unix/bsd/__setuid.c: #include <sys/types.h>.
8330 Change argument type to uid_t.
8331 * sysdeps/unix/bsd/__setgid.c: #include <sys/types.h>.
8332 Change argument type to gid_t.
8334 * sysdeps/unix/common/__getgrps.c: Restore errno after erroneous
8337 * stdio/tst-printf.c (fp_test): New function, batch of tests from
8341 Wed Apr 7 17:17:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8343 * sysdeps/generic/pow.c (pow_p): Don't initialize K; was a dead store.
8345 Mon Apr 5 21:17:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8347 * sysdeps/unix/common/__getgrps.c: If __bsd_getgroups returns an
8348 error and SIZE==0, alloc temp space for NGROUPS_MAX elts and call
8349 it again on that, so we can find the number of groups.
8351 * stdio/__vfscanf.c (input_error): If DONE is nonzero, return it;
8353 (%c): Don't check for C==EOF at the end; let the following spec get it.
8354 (%[eEfgG]): EOF after sign is conv_error, not input error.
8356 * sysdeps/unix/common/__getgrps.c: If gid_t==int, pass LIST to
8357 __bsd_getgroups, not NULL.
8358 No error for SIZE > NGROUPS_MAX.
8360 Sun Apr 4 18:52:34 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8362 * sysdeps/unix/{bsd,sysv}/i386/Implies: Files removed.
8363 They should no longer be necessary, since configure now tries more
8364 sysdeps directory permutations.
8366 * sysdeps/unix/bsd/{i386,sun/sparc,hp/m68k,ultrix4/mips}/__set[ug]id.S:
8367 Files removed. They should no longer be necessary, since the new
8368 sysdeps scheme should find unix/bsd/__set[gu]id.c before
8371 * sysdeps/unix/i386/__pipe.S: Use r1 in place of %edx and scratch
8373 * sysdeps/unix/i386/__wait.S: Likewise.
8374 * sysdeps/unix/i386/__fork.S: Use r1 in place of %edx and r0 in
8376 * sysdeps/unix/i386/__vfork.S: Likewise.
8377 * sysdeps/unix/i386/sysdep.h (scratch): #define as %ecx.
8378 * sysdeps/unix/sysv/i386/linux/sysdep.h: Likewise.
8380 * configure.in ($uname = generic): Set kernel_{version,release} to
8381 empty before all else.
8382 If /vmunix doesn't exist, try grovelling over /dynix instead.
8384 * sysdeps/unix/Makefile (syscall.h): Double $ in sed cmd.
8386 Fri Apr 2 15:15:44 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8388 * configure.in (config_vars): New variable; text to go in config.make.
8389 Use AC_HEADER_EGREP to grovel stdarg.h for __gnuc_va_list and set
8390 stdarg.h in config_vars if we find it.
8392 * sysdeps/unix/bsd/sun/sunos4/tcsendbrk.c,
8393 sysdeps/unix/bsd/sun/sunos4/tcflow.c,
8394 sysdeps/unix/bsd/sun/sunos4/tcflush.c,
8395 sysdeps/unix/bsd/sun/sunos4/tcsetattr.c,
8396 sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: New files.
8398 * sysdeps/unix/Makefile (syscall.h): Add sed cmd to terminate
8399 unterminated comments at the ends of lines.
8401 * sysdeps/posix/getcwd.c: Deansideclized and added four tons of
8404 Mon Mar 29 13:18:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8406 * sysdeps/unix/bsd/sun/sunos4/speed.c: New file.
8408 * sysdeps/generic/termbits.h: New file, contents taken from termios.h.
8409 * termios/termios.h: Remove type & macro defns; #include <termbits.h>.
8410 [__OPTIMIZE__] (cf[gs]et[io]speed): Remove macro versions. They
8411 just cause trouble because they want to be in termbits.h (since
8412 they are sysdep) and also to come after the prototypes (which must
8413 come after termbits.h to get speed_t and struct termios defined).
8414 The optimization was insignificant anyway.
8415 * termios/speed.c: Moved to sysdeps/generic.
8417 * termios/cfsetspeed.c: Call cfset[io]speed, rather than doing it
8420 * time/__tzset.c (tz_rule): Make member `secs' not a bitfield.
8421 (compute_change): Complete rewrite; code basically stolen from
8422 localtime3/localtime.c:transtime.
8423 #include "tzfile.h" for SECSPERDAY; #define NOID first.
8425 * sysdeps/unix/bsd/i386/__vfork.S: Don't try to #include __fork.S.
8426 Instead, copy that code here and change `fork' to `vfork'.
8428 * Makeconfig (+default_cflags): Rename to default_cflags.
8429 (+cflags): Use that name.
8431 * Makefile (configure): New rule.
8433 Sun Mar 28 16:12:33 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8435 * posix/fnmatch.c (case '*'): Before final loop, fold C1, rather
8436 than foling *P before it goes into C1. C might need folding instead.
8438 * posix/Makefile (tests): Add testfnm.
8439 * posix/testfnm.{c,args}: New files.
8441 Fri Mar 26 15:04:27 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8443 * time/mktime.c: Wholly new implementation from Noel Cragg.
8445 * sysdeps/unix/bsd/sun/__sigret.S: New file.
8446 * sysdeps/unix/bsd/sun/m68k/{Makefile,Dist}: New files.
8447 * sysdeps/unix/bsd/sun/m68k/{sigcontext.h,sigtramp.c}: New files.
8448 * sysdeps/unix/bsd/sun/sparc/__sigvec.S: Moved to sysdeps/unix/bsd/sun.
8450 * Makefile (clean): Remove sysd-Makefile, sysd-dirs, sysdirs
8451 (distclean): New target.
8452 * sysdeps/unix/common/Makefile (generated): Add local_lim.h,
8453 mk-local_lim, glue-ctype, glue-ctype.c, siglist.c, make_siglist.
8454 * sysdeps/generic/Makefile (generated): Add bytesex.h,
8455 det_endian, siglist.c, make_siglist.
8456 * sysdeps/unix/Makefile (generated): Add errnos.h, errnos,
8457 make-errnos, make-errnos.c, ioctls.h, ioctls, make-ioctls,
8458 make-ioctls.c, errlist.c, make_errlist, syscall.h, sys/param.h,
8459 param.h.c, param.h.dep, $(sys/param.h-includes).
8461 * misc/Makefile (extra-objs): Define new var to include bsd-compat.o.
8463 Fri Mar 26 14:53:30 1993 Michael John Haertel (mike@skinner.cs.uoregon.edu)
8465 * malloc/malloc.c (malloc): Start searching at _heapindex, not
8466 MALLOC_SEARCH_START.
8467 * malloc/malloc.h (MALLOC_SEARCH_START): Macro removed.
8468 * malloc/realloc.c (realloc): When malloc returns NULL, handle the
8469 case of the block we need to unfree (which was just freed) having
8470 been coalesced with its neighbors.
8472 Thu Mar 25 13:40:17 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8474 * Rules (all): Depend on others.
8476 * time/Makefile (zonenames): Change target to $(objpfx)zonenames.
8477 Make the generated file prepend $(objpfx) to
8478 Include that instead of zonenames.
8479 (zones-%): Change target to $(objpfx)zones-%.
8481 * Makefile ($(objpfx)Mcrt1.o): Put temporary Mcrt1.c file in
8482 $(objdir), rather than the current directory.
8484 * configure.in (arg parsing): Recognize `--exec-prefix' rather
8485 than `--exec_prefix'.
8487 * Rules (mostlyclean): Remove the .o files for $(tests) and $(others).
8488 Remove $(objpfx)depend-$(subdir).
8489 (clean): Remove $(extra-objs).
8490 * Makefile (clean): Remove $(install-lib) from $(objdir).
8491 Don't try to remove ansi/ and trad/ or dist.tar or lint.out.
8492 Remove $(objpfx)depend-.
8493 * time/Makefile (extra-objs): Define new var.
8494 * malloc/Makefile (extra-objs): Likewise.
8496 * Rules (+objs): Variable removed.
8497 (clean): Use $(objects) in place of $(+objs).
8499 * sysdeps/unix/Makefile (sys/param.h-includes): Move all this
8500 outside of ifeq ($(subdir),misc).
8501 Fixed sed command to filter out [hn]to[nh][sl].
8502 (sys/param.h-includes): New target; dep on $(sys/param.h-includes).
8504 * posix/fnmatch.h [!_POSIX_C_SOURCE || ...]: Make this test
8505 _GNU_SOURCE, not _BSD_SOURCE; these are our extensions, not theirs.
8506 (FNM_CASEFOLD): New bit.
8507 (__FNM_FLAGS): Removed macro.
8508 * posix/fnmatch.c (fnmatch): Don't test for bogus flag bits; who cares?
8509 (FOLD): New macro to casefold a char if FNM_CASEFOLD.
8510 Use it to fold all chars before comparison.
8512 Wed Mar 24 16:09:26 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8514 * malloc/Makefile (malloc/%.c, malloc/%.h): Rules removed.
8516 * stdio/stdio.h (fopencookie): Rename parameter IO_FUNCTIONS to
8517 IO_FUNCS. The former conflicted with a typedef name, which ist
8520 * time/sys/time.h (enum __itimer_which): Remove trailing comma.
8522 Mon Mar 22 15:35:54 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8524 * malloc/malloc.h [_MALLOC_INTERNAL]
8525 [__GNU_LIBRARY__ || STDC_HEADERS || USG] (memmove): Define in
8527 * malloc/malloc/gmalloc-head.c: Redo previously undone change.
8529 Thu Mar 18 04:59:21 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8531 * malloc/malloc/gmalloc-head.c: Undo previous change.
8533 Wed Mar 17 12:22:21 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8535 * mach/mach.h: New file.
8537 * Rules (clean): Remove $(generated), not $(clean-extras).
8538 (subdir_echo-distinfo): Use $(generated) instead of $(dont_distribute).
8539 (generated): Export this instead of dont_distribute.
8540 * stdlib/Makefile (generated): Set this, not dont_distribute.
8541 * sysdeps/posix/Makefile: Likewise.
8542 * sysdeps/unix/sysv/Makefile: Likewise.
8543 * sysdeps/unix/Makefile: Likewise.
8544 * Makefile (generated): Export this instead of dont_distribute.
8545 (parent_echo-distinfo): Use $(generated) instead of $(dont_distribute).
8546 * Make-dist (+tsrcs): Filter out $(generated), not $(dont_distribute).
8548 * mach/mach_init.h (__mach_task_self): Define so as not an lvalue.
8549 (mach_task_self): Surround defn with parens.
8551 * sysdeps/unix/Makefile (sys/param.h): Put "#include <endian.h>" in.
8552 ($(sys/param.h-includes)): Edit out #define's of *_ENDIAN and
8555 * stdlib/tst-strtol.c (tests): Fully bracket initializers.
8557 * stdio/bug4.c: Change #ifdef LIBC to #ifdef _LIBC.
8559 * misc/progname.c (set_progname): Make a useless reference to
8560 set_progname to avoid a `defined but not used' warning.
8562 * sysdeps/mach/i386/start.c (_cthread_{init,exit}_routine): Remove
8563 `extern'; these want to be uninitialized common defns.
8565 Mon Mar 15 18:41:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8567 * sysdeps/unix/bsd/__times.c (timeval_to_clock_t): Put __inline
8568 before storage class in defn.
8570 * sysdeps/unix/sysv/signum.h (SIG_ERR, SIG_DFL, SIG_IGN): Cast
8571 values to __sighandler_t, rather than obsolete ansidecl magic.
8573 * sysdeps/unix/__execve.S [!SYS_execve && SYS_exece]: Define
8574 SYS_execve to be SYS_exece.
8576 * sysvipc: New directory.
8577 * sysvipc/Makefile: New file.
8578 * sysvipc/sys/ipc.h: New file.
8580 Fri Mar 12 15:31:44 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8582 * posix/execlp.c (execlp): Remove spurious second declared parameter.
8583 Don't fill ARGV[0] specially; just let the loop do it.
8584 * posix/unistd.h (execlp): Remove spurious second declared parameter.
8586 Thu Mar 11 13:58:47 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8588 * Makerules (sysd-Makefile): Write %.dep: %.S and %.dep: %.c rules.
8589 Depend on Makerules.
8590 ($(objpfx)%.{o,dep}: $(objpfx)/%.{S,c,s}): New rules to find
8591 sources in $(objpfx) before sysdep directories.
8593 * configure.in (signed size_t check): Use eval on $CPP, since it
8594 contains unexpanded variable refs.
8595 Send grep output to /dev/null.
8596 Put quotes around 'unsigned long int'.
8598 Wed Mar 10 18:32:11 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8600 * features.h [! _LIBC]: #include <stubs.h>.
8601 * Makerules (stubs): New phony target.
8602 ($(common-objpfx)stub-$(subdir)): New target.
8603 * Makefile (headers): Add stubs.h.
8604 ($(objpfx)stubs.h): New target.
8606 * Makeconfig (CPPFLAGS): Define _LIBC, not LIBC.
8608 * Makerules (.SUFFIXES): Remove .m4; we no longer have any such files.
8610 * inet/netinet/in.h: Don't #include <inet-cvt.h>.
8611 (ntohl, ntohs, htonl, htons): Declare.
8612 #include <endian.h>.
8613 [__BYTE_ORDER == __BIG_ENDIAN] (ntohl, ntohs, htonl, htons):
8614 Define no-op macros.
8615 * inet/Makefile (headers): Remove inet-cvt.h.
8616 * sysdeps/vax/inet-cvt.h, sysdeps/generic/inet-cvt.h: Files removed.
8617 * sysdeps/generic/{ntohl,ntohs,htonl,htons}.c
8618 [BYTE_ORDER == LITTLE_ENDIAN]: Byte-swap X before returning it.
8620 Tue Mar 9 11:32:35 1993 Jim Blandy (jimb@wookumz.gnu.ai.mit.edu)
8622 * malloc/malloc/gmalloc-head.c: Remove #definitions of memset,
8623 memcpy, and memmove; this is taken care of by malloc.h anyway.
8625 Mon Mar 8 15:12:32 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8627 * sysdeps/mips/jmp_buf.h (JB_PC): Protect with #ifdef __USE_MISC.
8629 * sysdeps/unix/sysv/sysv4/sigaction.h: Put SA_* except for
8630 SA_NOCLDSTOP inside #ifdef __USE_MISC.
8632 Mon Mar 8 15:05:13 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
8634 * sysdeps/mips/jmp_buf.h (jmp_buf): Use `__ptr_t', not `PTR', for
8636 (JB_PC): New define, for backwards compatability with Ultrix.
8638 * sysdeps/unix/sysv/sysv4/sigaction.h: New file.
8640 Mon Mar 8 13:20:02 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8642 * posix/glob/Makefile.in (VPATH): Set this to @srcdir@.
8643 (srcdir): Set this to $(VPATH).
8645 * posix/glob.c (glob): In no matches with GLOB_NOCHECK set case,
8646 add NULL terminator to PGLOB->gl_pathv.
8647 (prefix_array): Renamed arg PREFIX to DIRNAME, local var PRELEN to
8648 DIRLEN. If DIRNAME is just "/", don't prepend it, so we get
8649 "/foo" instead of "//foo".
8650 (glob): Move qsort call outside of the else clause of the
8651 glob_pattern_p test; it should always be done.
8653 Thu Feb 25 14:49:52 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8655 * malloc/malloc.h [_MALLOC_INTERNAL]: Move #include <stdio.h> to
8656 front of file; it needs to come before size_t/ptrdiff_t frobnication.
8658 Wed Feb 24 16:34:58 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8660 * Makerules (compile-command.[Ssc]): New variables; define them if
8661 they are not already defined.
8662 (sysd-Makefile): For each directory, write three rules:
8663 %.o: $dir/%.[Ssc]; $(compile-command.[Ssc]).
8664 (sysdep_path): Remove definition and vpath directives.
8665 * sysdeps/m68k/Makefile (compile-command.S): Define our own version.
8666 ($(objpfx)%.o: %.S): Rule removed.
8668 * sysdeps/unix/sysv/linux/{__dup2,__mkdir,__rmdir,__setpgrp}.S:
8670 * sysdeps/unix/sysv/linux/Implies: Created; implies unix/common.
8672 * sysdeps/unix/sysv/sysv4/{sete[gu]id.S,fchdir.S,signum.h,__sigproc.S}:
8675 * sysdeps/unix/sysv/sysv4/time.S: New file.
8677 * sysdeps/unix/common/Dist: New file; everything from
8678 sysdeps/unix/bsd/Dist except for bsdtty.h and bsddir.h.
8679 * sysdeps/unix/bsd/Dist: Remove things now in sysdeps/unix/common/Dist.
8681 * sysdeps/unix/bsd/sun/sparc/{__brk.c,__fork.S,__pipe.S,__vfork.S}:
8682 Moved to new directory sysdeps/unix/sparc.
8684 * sysdeps/unix/common/Implies: New file, in new directory; implies
8686 * sysdeps/unix/bsd/Implies, sysdeps/unix/sysv/sysv4/Implies: New
8687 files; both imply unix/common.
8688 * sysdeps/unix/common/Makefile: Moved from sysdeps/unix/bsd.
8689 Changed references to unix/bsd to unix/common.
8690 * unix/bsd/{__access.S,__adjtime.S,__fchmod.S,__fchown.S,__getgrps.c,
8691 __getitmr.S,__getpgrp.S,__getrusag.S,__gettod.S,__lstat.S,__mkdir.S,
8692 __readlink.S,__rmdir.S,__setitmr.S,__setpgrp.S,__symlink.S,
8693 bsd_getgrp.S,closedir.c,ftruncate.S,getrlimit.S,glue-ctype.c,
8694 make_siglist.c,mk-local_lim.c,opendir.c,readv.S,rename.S,rewinddir.c,
8695 seekdir.c,setgroups.S,setrlimit.S,telldir.c,truncate.S,vhangup.S,
8696 writev.S,__dup2.S}: Moved to sysdeps/unix/common.
8697 * sysdeps/unix/sysv/sysv4/{__access.S,closedir.c,opendir.c,
8698 rewinddir.c,seekdir.c,telldir.c}: Removed.
8700 Mon Feb 22 12:19:19 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8702 * sysdeps/generic/pow.c (pow): Use __isnan to test for NaN rather
8703 than expecting "x!=x" to work.
8704 (pow_p): When testing if Y is an integer, use long int rather than
8705 int; they are different on some systems. Compare against
8706 LONG_MIN+1, not LONG_MIN; (long int) (double) LONG_MIN might overflow.
8708 * malloc/dist-Makefile (gmalloc.c): Depend on Makefile.
8710 * malloc/Makefile (gmalloc-routines): New variable.
8711 (dist-routines): Use it.
8712 (malloc/Makefile): Also replace <GMALLOC-SOURCES> with
8713 $(gmalloc-routines).
8714 (malloc/Makefile): Make it unwritable to avoid accidental lossage.
8717 * malloc/dist-Makefile (gmalloc): New variable: <GMALLOC-SOURCES>.
8718 (gmalloc.c): Use $(gmalloc), not $(sources).
8719 Make the file unwritable to avoid accidental lossage.
8721 * malloc/mtrace.c: Don't #include <stdio.h> because <malloc.h> did
8724 * malloc/valloc.c [! __GNU_LIBRARY__]: Replace hairy conditionals
8725 with #include "getpagesize.h".
8726 * malloc/Makefile (distribute, malloc-dist): Add getpagesize.h.
8728 Sun Feb 21 18:29:30 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8730 * sysdeps/sparc/Makefile (nodist-routines): Don't define.
8731 We want to distribute the generated divrem files; otherwise anyone
8732 building the library must have an m4 that works.
8733 ($(divrem).S): Put these in sysdeps/sparc, not in $(objdir).
8734 (routines): Only put this inside ifeq ($(subdir),gnulib).
8736 * sysdeps/unix/bsd/sun/m68k/Makefile: File removed.
8738 Sat Feb 20 16:43:55 1993 Torbjorn Granlund (tege@sics.se)
8740 * sysdeps/i386/memset.c: Move adjustment of LEN before first stosb.
8741 * sysdeps/i386/bzero.c: Likewise.
8743 Thu Feb 18 14:34:00 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8745 * malloc/mcheck.c (checkhdr): Use `const', not `__const'.
8747 Mon Feb 1 19:19:13 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8749 * sysdeps/m68k/fpu/__logb.c: Use two-operand forms of 68881 insns
8750 rather than the one-operand source==dest form. Sun's sun3
8751 assembler apparently doesn't grok the one-operand form.
8753 * sysdeps/posix/getcwd.c: Call __lstat instead of stat.
8754 We should not lose on nonexistent symlink targets.
8756 Thu Jan 21 20:12:25 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8758 * posix/glob.c: Put #includes of <glob.h> and <fnmatch.h> after
8759 all system includes, in case one of them has conflicting defns of
8760 FNM_* or GLOB_*, so we will redefine. #undef FNM_* and GLOB_*
8761 before including our headers.
8763 Tue Jan 19 16:16:05 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8765 * mach/Makefile (routines): Removed __bcopy.
8766 * mach/__bcopy.c: File removed.
8768 * posix/glob.c (my_realloc): Cast result of malloc/realloc to (char *).
8770 Sat Jan 16 14:19:07 1993 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8772 * manual/summary.awk: Handle single word in braces.
8774 Thu Jan 14 13:52:43 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8776 * posix/glob/Makefile.in (realclean): Remove Makefile.
8778 Mon Jan 11 18:32:56 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8780 * sysdeps/unix/bsd/sony/m68k/Implies: Imply unix/bsd/hp/m68k, not
8783 * sysdeps/unix/bsd/tcsetattr.c: Use cbreak mode if ISIG is set,
8784 not if OPOST is set.
8785 Fixed typo in TOSTOP frobbing.
8787 Tue Jan 5 15:11:31 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8789 * posix/Makefile (glob.tar): Include glob/configure.in.
8791 Mon Jan 4 17:05:44 1993 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8793 * posix/glob/Makefile.in (RANLIB): Define to @RANLIB@.
8794 (RANLIB_TEST): Removed.
8795 (libglob.a): Don't use it.
8797 Thu Dec 31 13:08:20 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8799 * sysdeps/unix/bsd/bsd4.4/{chflags,fchflags,setlogin}.S: Fix arg count.
8801 * sysdeps/posix/Makefile (mk-stdiolim): Use $(cded-objdir-CPPFLAGS).
8802 (cded-objdir-CPPFLAGS): Define new var.
8804 * sysdeps/unix/Makefile ($(sys/param.h-includes)): Strip trailing
8805 slash from directory name for mkdir.
8807 Tue Dec 29 18:18:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8809 * sysdeps/posix/sysd-stdio.c (exists): Return true if stat fails
8810 with other than ENOENT.
8812 * sysdeps/posix/__flock.c: New file.
8814 * malloc/Makefile (dist-headers): Define to malloc.h.
8815 (headers): Replace malloc.h with $(dist-headers).
8816 (malloc/Makefile): Use $(dist-headers) in place of $(headers).
8817 (malloc-dist, distribute): Replace ChangeLog with OChangeLog.
8819 * malloc/dist-Makefile (malloc.tar{,.Z}): Depend on FORCE.
8820 (FORCE): Define empty target.
8822 Tue Dec 29 16:45:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8824 * sysdeps/sparc/{umul,mul}.S: Use tege's shift+mask hack to avoid
8825 a test and branch for sign fixup.
8827 * limits.h [__GNUC__ >= 2]: #ifndef _GCC_LIMITS_H_, not _LIMITS_H_,
8828 to #include_next <limits.h>.
8830 * sysdeps/posix/getcwd.c: Call closedir after copying from the
8831 `struct dirent' buffer, not before. That buffer is freed by closedir.
8833 * posix/gnu/types.h (__fd_set): Renamed member to `fds_bits' for
8834 compatibility with braindead extant code.
8836 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Check for BUF
8837 being too small before doing sprintf.
8839 * malloc/malloc.h [_MALLOC_INTERNAL], malloc/valloc.c
8840 [HAVE_CONFIG_H]: #include "config.h".
8842 * Makefile (doc): Removed rule.
8843 (dvi, info): New rule.
8845 Mon Dec 28 15:50:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8847 * posix/glob.c [HAVE_CONFIG_H]: Test this, not SHELL, to decide
8848 whether or not we want to #include "config.h".
8850 Wed Dec 16 12:01:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8852 * inet/Makefile (routines): Removed ruserpass. Why did it get
8853 included in the first place? That version does not match the one
8854 in the NET2 ftp source; whence came it?
8856 Sat Dec 12 16:41:03 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8858 * sysdeps/unix/bsd/sun/sparc/start.c: Use .set, not GNU ld magic,
8859 to alias asm symbol `start' to `__start'.
8861 Fri Nov 20 18:20:50 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
8863 * stdio/vfprintf.c (%p): Tests of LEFT for "(nil)" were inverted.
8865 * stdio/tst-printf.c (main): Add `printf ("%#03x\n", 1);'.
8866 Add a width to %p test.
8868 * stdio/vfprintf.c (unsigned_integer): Clear SHOWSIGN and SPACE
8869 flags before falling into `number:'. The `+' and ` ' flags are
8870 only meaningful for signed numbers.
8872 * string/tester.c (main): For strstr #11, correct return is first
8873 arg, not end of first arg.
8875 * stdlib/mbtowc.c: If S is "", return 0. How was I convinced
8876 before that this is not what ANSI says?
8878 * stdio/__vfscanf.c: Initialize MALLOC_STRING to zero on each
8879 iteration (when we zero is_short et al).
8881 * sysdeps/posix/mkstemp.c (mkstemp): New file.
8882 * sysdeps/stub/mkstemp.c (mkstemp): New file.
8883 * misc/Makefile (routines): Add mkstemp.
8885 * sysdeps/posix/mktemp.c: Use `getpid ()' in place of undefined
8887 #include <sys/stat.h>.
8889 * dirent/scandir.c: If SELECT is nil, don't try to call it.
8890 If CMP is nil, don't sort.
8892 Wed Nov 18 13:42:09 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8894 * sysdeps/stub/__wait4.c: Changed type of 2nd arg to __WAIT_STATUS.
8896 * posix/sys/wait.h (__WAIT_STATUS): #if 0 out gcc2 magic defn.
8897 GCC is broken as of 2.3.1.
8899 * signal/signal.h (__sigaction, sigaction): Fixed type in
8900 prototype from `struct __sigaction' to `struct sigaction'.
8902 * sysdeps/m68k/fpu/atan2.c (PI, PIo4, PIo2): Removed static vars.
8903 (atan2): Declare PIo4 and PIo2 locally, and compute them from pi.
8905 * Makerules (native-CFLAGS): Define as $(config-defines).
8907 * sysdeps/unix/bsd/glue-ctype.c: Upcased all HAVE_* names in #ifdef's.
8909 * posix/fnmatch.h (FNM_LEADING_DIR): New flag.
8910 * posix/fnmatch.c (fnmatch): Support it.
8912 * sysdeps/i386/bytesex.h: New file.
8913 * sysdeps/i386/endian.h: Removed.
8914 * sysdeps/stub/bytesex.h: New file.
8915 * sysdeps/stub/endian.h: Removed.
8916 * sysdeps/generic/Makefile (bytesex.h): Create with det_endian.
8917 (endian.h): Removed old rule.
8918 (before-compile): Replace endian.h with bytesex.h.
8919 * string/Makefile (headers): Add bytesex.h.
8920 * string/endian.h: New file.
8921 * sysdeps/generic/det_endian.c: Rewritten to output just one line,
8922 a #define of __BYTE_ORDER to 1234, or 4321, etc.
8923 * inet/arpa/nameser.h: #include <endian.h>, rather than #ifdef'ing
8924 on misc. things to #define BYTE_ORDER.
8925 * sysdeps/generic/waitstatus.h: Test value of __BYTE_ORDER, not
8926 whether __LITTLE_ENDIAN is #define'd.
8927 * sysdeps/generic/mathimpl.h: Likewise.
8928 * sysdeps/generic/memcopy.h: Likewise.
8929 * sysdeps/ieee754/huge_val.h: Likewise.
8930 * sysdeps/ieee754/nan.h: Likewise.
8931 * sysdeps/ieee754/ieee754.h: Likewise.
8933 Mon Nov 16 12:19:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8935 * Makeconfig (ARCH): Define to empty if $(..)config.make exists.
8937 * misc/getusersh.c (initshells): malloc (STATB.st_size + 1), to
8938 contain the terminating NUL. Pass fgets the real amount of space
8939 left in the buffer, instead of the random number (MAXPATHLEN + 1).
8941 * configure.in (minix*): base_os=unix/sysv.
8942 * sysdeps/unix/sysv/minix/sigaction.h: New file.
8944 * sysdeps/generic/sigaction.h (__SA_*): Renamed to SA_*.
8945 [__USE_BSD]: Put all but SA_NOCLDSTOP under this #ifdef.
8946 * signal/signal.h (SA_*): Remove #define's.
8947 (SIG_*): Moved #define's to sigaction.h.
8949 * sysdeps/generic/sigset.h (__sigmask): Shift ((sigset_t) 1), not
8952 * signal/signal.h (kill): Fix type of first arg to __pid_t, not int.
8954 * sysdeps/unix/Makefile (errnos): Changed regexp to disallow
8955 E[^A-Z0-9], and not to require that the defn be numeric only.
8957 * stdlib/stdlib.h: Don't #include <huge_val.h>; ANSI doesn't say
8958 <stdlib.h> defines HUGE_VAL.
8960 * stdlib/stdlib.h (__compar_fn_t): Use __P around prototype.
8962 * posix/Makefile (headers): Add utsnamelen.h, so it gets installed.
8963 (distribute): Remove it from here.
8965 * setjmp/setjmp.h (sigjmp_buf): Rename `__savemask' to
8966 `__mask_was_saved' and `__sigmask' to `__saved_mask'.
8967 * setjmp/sigjmp_save.c (__sigjmp_save): Change use.
8968 * setjmp/siglongjmp.c (siglongjmp): Likewise.
8970 Fri Nov 13 17:34:00 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8972 * configure.in (config.make): Write assignments for INSTALL,
8973 INSTALL_PROGRAM, INSTALL_DATA, and RANLIB.
8975 Thu Nov 12 17:11:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8977 * sysdeps/stub/stime.c: #include <stddef.h> for NULL.
8979 * sysdeps/stub/morecore.c: Fixed arg type to ptrdiff_t.
8981 * sysdeps/stub/ptrace.c: Fixed `va_start' uses to pass 2nd arg.
8983 * sysdeps/unix/sysv/sysv4/fcntlbits.h: New file, modified from
8984 unix/bsd/sun/sunos4 version.
8986 * sysdeps/unix/bsd/bsd4.4/fcntlbits.h: New file, modified from
8989 * sysdeps/unix/bsd/ultrix4/fcntlbits.h: New file, modified from
8992 * sysdeps/unix/bsd/sun/sunos4/fcntlbits.h: New file, modified from
8995 * sysdeps/unix/sysv/fcntlbits.h: Rewritten from stub version.
8996 * sysdeps/unix/sysv/filebits.h: File removed.
8998 * sysdeps/unix/bsd/fcntlbits.h: Rewritten from stub version.
8999 * sysdeps/unix/bsd/filebits.h: File removed.
9001 * io/fcntl.h: Don't #include <filebits.h>.
9002 Removed all #define's of foo to __foo; <fcntlbits.h> now defines
9005 * sysdeps/stub/fcntlbits.h: Remove leading __ from all symbols.
9007 * misc/sys/file.h (L_SET, L_INCR, L_XTND): Define to literal
9008 values, not to __ versions. These are not system-dependent.
9009 (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Define to literal values,
9010 not to __ versions. These are not actually system-dependent,
9011 because no system has `flock' except for BSD compatibility, and
9012 then they use the same numbers.
9013 * sysdeps/stub/fcntlbits.h (__L_SET, __L_INCR, __L_XTND): Removed.
9014 (__LOCK_SH, __LOCK_EX, __LOCK_UN, __LOCK_NB): Removed.
9016 Tue Nov 10 17:01:11 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9018 * sysdeps/stub/fcntlbits.h: Merged in contents of filebits.h.
9019 (struct __flock): Renamed to `struct flock'.
9020 * sysdeps/stub/filebits.h: File removed.
9022 * posix/unistd.h (access, lseek, close, read, write, pipe, chown,
9023 fchown, chdir, dup, dup2, execve, pathconf, fpathconf, sysconf,
9024 getpid, getppid, setpgrp, setpgid, setsid, getuid, getgid,
9025 geteuid, getegid, setuid, setreuid, setgid, setregid, fork, vfork,
9026 isatty, link, symlink, readlink, unlink, rmdir, gethostname,
9027 getpagesize, getdtablesize): Remove #define's to __ versions.
9029 * posix/sys/types.h: Don't #include <gnu/time.h>.
9030 Instead, use forward decl `struct timeval;'.
9031 (__select): Use `struct timeval', not `struct __timeval', in prototype.
9032 Move into #ifdef __USE_BSD.
9033 (select): Removed #define to __select; added real prototype.
9035 * sysdeps/generic/waitstatus.h: New file.
9036 * sysdeps/stub/waitflags.h: New file.
9037 * sysdeps/unix/bsd/waitflags.h: New file.
9038 * posix/sys/wait.h: Don't #include <gnu/wait.h>.
9039 Do #include <waitflags.h> and <waitstatus.h>.
9040 (WHOHANG, WUNTRACED): Don't #define to __ versions; <waitflags.h>
9041 will define the unmarked cases.
9042 (union __wait): Remove type decl and associated #define's for w_*;
9043 `union wait' (no __) is now defined in <waitstatus.h>.
9044 [__USE_BSD && __GNUC__ >= 2] (__WAIT_STATUS): Define as funky union.
9045 (waitpid, wait3, wait4, wait): Removed #define's to __ versions;
9046 added real prototypes.
9047 * posix/gnu/wait.h: File removed.
9048 * posix/Makefile (headers): Remove gnu/wait.h.
9050 * posix/sys/times.h [__OPTIMIZE__] (times): Removed #define to __times.
9052 * posix/sys/utsname.h: Removed decl of __uname_getnode.
9054 * time/sys/time.h: Don't #include <gnu/time.h>.
9055 Don't support __need_timeval.
9056 (struct timeval, struct timezone, struct itimerval,
9057 enum __itimer_which): Declare these types here.
9058 (gettimeofday, settimeofday, adjtime, getitimer, setitimer,
9059 utimes): Removed #define's to __ versions. Added real prototypes.
9060 Use `struct timeval' instead of `struct __timeval', etc.
9061 * time/gnu/time.h: File removed.
9062 * time/Makefile (headers): Removed gnu/time.h.
9064 * resource/sys/resource.h: Don't #include <gnu/time.h>.
9066 Mon Nov 9 18:41:03 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9068 * socket/sys/socket.h (SO_STYLE): Define instead of SO_TYPE.
9069 (SO_TYPE): Define as SO_STYLE.
9071 * inet/netinet/in.h (struct ip_opts): New type.
9072 (IP_*): New constants snarfed from 4.4's in.h.
9074 Fri Nov 6 15:34:41 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9076 * resource/sys/resource.h (struct rusage): #include <sys/time.h>
9077 before struct defn. Use `struct timeval', not `struct __timeval'
9078 for `ru_utime' and `ru_stime' members.
9080 * resource/sys/resource.h [__OPTIMIZE__] (getrusage, ulimit),
9081 misc/sys/ioctl.h [__OPTIMIZE__] (ioctl): Remove #define's to __
9084 * string/strings.h: Protect against multiple inclusion.
9085 * termios/sys/termios.h: Ditto.
9087 * string/string.h [__GNUC__ && __OPTIMIZE__] (ffs): Remove #define
9090 * stdlib/stdlib.h (comparison_fn_t): Use a typedef, not a #define.
9091 Define this #ifdef __USE_GNU, not #ifdef __GNUC__.
9092 [__GNUC__ && __OPTIMIZE__] (abs, labs): Remove #define's to __builtin_.
9094 Thu Nov 5 20:01:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9096 * signal/Makefile (headers): Remove gnu/signal.h;
9097 add sigaction.h, sigset.h.
9098 * sysdeps/generic/sigaction.h: New file.
9099 * sysdeps/generic/sigset.h: New file.
9100 * signal/gnu/signal.h: Removed.
9101 * signal/signal.h: Move __{BEGIN,END}_DECLS outside all the #if's
9102 (except the outermost one that protects against multiple inclusion).
9103 Don't #include <gnu/signal.h>. Instead #include <sigset.h>
9104 outside of #if's, and #include <sigaction.h> inside #ifdef __USE_POSIX.
9105 (__sighandler_t): Define here; it is not system-specific.
9106 (kill, ssignal, gsignal, sigblock, sigsetmask, sigpause, sigvec,
9107 sigreturn): Remove #define's to __ versions.
9108 (sighandler_t, sigset_t): Use a typedef, not a #define.
9109 [__OPTIMIZE__] (sig{empty,fill,add,del}set, sigismember): Make
9110 these macros take args.
9111 (sigaction): Remove #define.
9112 (struct __sigvec): Renamed `struct sigvec'.
9113 (__sigvec): Use `struct sigvec', not `struct __sigvec', in prototype.
9115 Fri Oct 30 19:45:26 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9117 * configure.in (sco*): base_os=unix/sysv.
9119 Thu Oct 29 16:29:26 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9121 * configure.in: New file; mostly contents of old file `configure'.
9122 (srcdir guessing): Removed this code.
9123 Instead, call AC_PREPARE.
9124 Call AC_PROG_INSTALL and AC_PROG_RANLIB to find those programs.
9125 Use AC_HAVE_FUNCS to find what sys_siglist and _ctype_ are called.
9126 (config.make): Write new var `config-defines' with what autoconf
9128 Append -DHAVE_GNU_LD and -DHAVE_GNU_AS to DEFS if appropriate;
9129 don't write gnu_ld and gnu_as variables.
9130 * configure: Removed.
9131 * Makefile (distribute): Add configure.in.
9132 * Makeconfig (+defines): Include $(config-defines) before $(defines);
9133 don't include $(gnu_as) and $(gnu_ld).
9135 * sysdeps/unix/bsd/glue-ctype.c (TABLE): Test HAVE_* for several
9136 different names and #define this.
9137 (STRINGIFY): Define macro.
9138 (main): Use TABLE instead of hardcoded name.
9140 * configure (sysnames): Try successively less specific base os's.
9142 * Makerules (ar-it): Define commands only ifdef objects.
9144 * sysdeps/mips/setjmp.S: Jump to __setjmp_aux, not ___setjmp_aux.
9145 We are NO_UNDERSCORES.
9147 Tue Oct 27 18:11:19 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9149 * sysdeps/posix/pipestream.c, sysdeps/posix/system.c: Always use
9150 __vfork instead of expecting FORK to be defined.
9151 * sysdeps/unix/bsd/system.c, sysdeps/unix/bsd/pipestream.c:
9152 Removed. sysdeps/unix versions are now what we want.
9154 * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Removed.
9155 * sysdeps/unix/bsd/hp/m68k/__wait.S: Moved to unix/bsd/m68k.
9157 * sysdeps/unix/bsd/hp/m68k/{__pipe,sysdep}.S: Moved to unix/bsd/m68k.
9158 * sysdeps/unix/bsd/sun/m68k/{__pipe,sysdep}.S: Removed.
9160 * sysdeps/unix/bsd/sun/m68k/start.c: Moved to unix/bsd/m68k.
9161 * sysdeps/unix/bsd/sony/m68k/start.c: Removed.
9163 * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Correct file name in #include.
9165 * sysdeps/unix/bsd/sun/m68k/__fork.S: Removed.
9166 * sysdeps/unix/bsd/hp/m68k/__fork.S: Removed.
9167 * sysdeps/unix/bsd/vax/__fork.S: Moved to unix/bsd.
9169 * sysdeps/generic/__vfork.c: New file; fn alias to __fork.
9170 * sysdeps/stub/__vfork.c: Removed.
9172 * limits.h: Only do #include_next #ifndef _LIMITS_H_.
9174 * malloc/mcheck.c (mcheck): Set abortfunc to either FUNC or abort;
9175 never leave it unchanged.
9176 Return 0 if mcheck_used; -1 if not.
9177 * malloc/malloc.h (mcheck): Change return type in decl.
9179 * Makerules (+depfiles): Don't include them if there are none.
9181 Mon Oct 26 16:30:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9183 * sysdeps/posix/fdopen.c: Use fcntl to check that FD is valid and
9184 allows the access MODE specifies.
9186 * sysdeps/stub/getcwd.c: #include <stddef.h>.
9188 * sysdeps/stub/sleep.c: #include <errno.h>.
9190 Sun Oct 25 02:24:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9192 * Makerules (+includes): Add $(+sysdep-includes) to this, leaving
9195 * sysdeps/stub/stime.c: #include <time.h>.
9197 Thu Oct 22 13:36:48 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9199 * Rules (clean): Also remove $(clean-extras).
9201 Tue Oct 20 18:36:40 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9203 * configure: Write error message and lose for option with missing arg.
9205 * stdio/__vfscanf.c: Add `a' modifier, which makes %s and %[ fill
9206 in a char ** with a malloc'd string.
9207 (STRING_ADD_CHAR, STRING_ARG): New macros to deal with this hair.
9210 * posix/gnu/types.h [__GNUC__] (__fsid_t): Define as long long.
9212 * stdio/vfprintf.c: Add %m, which is %s of strerror (errno).
9214 Mon Oct 19 14:19:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9216 * socket/sys/socket.h (PF_FILE, AF_FILE): Define new macros.
9217 (PF_UNIX, AF_UNIX): Make aliases for [PA]F_FILE.
9219 * sysdeps/ieee754/huge_val.h: #include <sys/cdefs.h>.
9220 [!__GNUC__]: Use __const, not CONST.
9222 * posix/wordexp.h: Fix indentation and syntax errors.
9224 * stdio/vasprintf.c (vasprintf): Set seen bit.
9226 Fri Oct 16 17:18:34 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9228 * Makefile (Mcrt1.o): Create an empty .c file and compile it,
9229 rather than creating an empty .o file.
9231 * sysdeps/unix/Makefile (sys/param.h): Strip / from name for mkdir.
9233 * sysdeps/m68k/fpu/atan2.c [! __GNUC__]: Include generic, not iee754.
9235 * sysdeps/sparc/Makefile ({divrem}.S): Use $(M4) for m4 in cmds.
9236 * Makeconfig (M4): Define it.
9238 * stdio/newstream.c (__newstream): Link STREAM onto __stdio_head
9239 after malloc'ing it.
9241 * time/emkdir.c: #define unix if not already defined.
9243 Thu Oct 15 19:55:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9245 * stdlib/wctomb.c: When passed 0, store a '\0' and return 1.
9246 * stdlib/mbtowc.c: When passed "", store a 0 and return 1.
9248 * sysdeps/generic/strstr.c: When NEEDLE is "", return HAYSTACK.
9250 Thu Oct 15 19:25:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9252 * malloc/malloc.h (__after_morecore_hook): Declare new var.
9253 * malloc/malloc.c (__after_morecore_hook): Define it.
9256 Mon Oct 12 15:56:07 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9258 * malloc/malloc.h (r_alloc, r_alloc_free, r_re_alloc): Declare.
9260 * Makerules (native-compile, common-objdir-compile): Pass
9261 $(native-CFLAGS) to the compiler.
9263 * Makeconfig (+gccwarn): Removed -Wstrict-prototypes and
9264 -Wpointer-arith. They were not really helping, and caused extra
9265 warnings for harmless code.
9267 * malloc/Makefile (dist-routines): Add ralloc.
9268 (gpl2lgpl): Add ralloc.c.
9270 * time/zic.c: #define unix if not already defined.
9272 * Makerules ($(gpl2lgpl)): Make output unwritable; use mv -f.
9274 Mon Oct 12 15:27:40 1992 Brendan Kehoe (brendan@mole.gnu.ai.mit.edu)
9276 * sysdeps/unix/bsd/ultrix4/mips/__set[gu]id.S: Handle returning to
9277 the proper caller ourselves, since setre[gu]id won't be doing it.
9279 Mon Oct 12 13:37:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9281 * malloc/malloc.h: Declare memory_warnings.
9282 * malloc/Makefile (dist-routines): Add vm-limit.
9283 (distribute): Add mem-limits.h.
9284 (gpl2lgpl): Add vm-limit.c, mem-limits.h.
9286 * gpl2lgpl.sed: Remove "This file is part of ..." lines.
9287 Changed regexp to match "foo is free software", not just "This
9290 * Makerules (+make-deps): Put file name before options on command line.
9292 * Makefile (install-lib): Remove libc.a from here.
9293 * Makerules [objects] (install-lib): Append it here instead.
9295 * io/sys/stat.h (S_IRWXO): Fixed typo.
9297 Sun Oct 11 16:58:36 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9299 * posix/glob.c (__glob_{open,read,close}dir_hook): New vars.
9300 (glob_in_dir): Use them.
9301 * posix/glob.h: Declare them.
9303 Thu Oct 8 20:03:30 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
9305 * configure (config.make): Write comment to edit configparms instead.
9307 Wed Oct 7 17:15:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9309 * sysdeps/stub/__chown.c: Fixed arg types (int -> [ug]id_t).
9311 * sysdeps/stub/__geteuid.c: Fixed return type (int -> __uid_t).
9313 * sysdeps/stub/__getegid.c: Fixed return type (int -> __gid_t).
9315 * configure: Write defns in config.make for vars config-machine,
9316 config-vendor, and config-os.
9318 * ctype/ctype.h (__isctype, __tolower, __toupper): Cast argument
9319 and return value to `int'.
9321 * ctype/ctype.h (__ctype_tolower, __ctype_toupper): Changed type
9323 (toupper, tolower): Removed inline functions; restored macros.
9324 * ctype/ctype.c (tolower, toupper): Just call the __ macros.
9325 * ctype/ctype-info.c: Change types here too.
9326 * locale/localeinfo.h: And here.
9327 * locale/C-ctype_ct.c: Ditto.
9329 * crypt: New code from Michael Glad.
9331 * Makefile (munch-init.c), sysdeps/unix/Makefile
9332 ($(sys/param.h-includes), make-errnos.c, make-ioctls.c),
9333 sysdeps/unix/bsd/Makefile (local_lim.h, ctype-glue.c),
9334 sysdeps/posix/Makefile (stdio_lim.h): Changed rules to use a
9335 shorter suffix than `-tmp', to avoid exceeding 14 char limit.
9337 Tue Oct 6 15:13:57 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9339 * Makefile (README, INSTALL): Moved rules here.
9340 * Make-dist: From here.
9342 * sysdeps/unix/bsd/sun/m68k/{__pipe,__fork,sysdep}.S: Change uses
9343 of sysdeps/unix/bsd/hp9k3bsd to sysdeps/unix/bsd/hp/m68k.
9345 * sysdeps/m68k/Makefile: Put .S rule here.
9346 * sysdeps/unix/bsd/hp/m68k/Makefile: Removed file.
9348 Mon Oct 5 19:40:22 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9350 * sysdeps/generic/pow.c (pow_p): Changed code to KY jelly.
9352 * sysdeps/unix/bsd/ultrix4/utsnamelen.h: New file.
9353 * sysdeps/unix/bsd/ultrix4/uname.S: New file.
9355 Fri Oct 2 17:43:32 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9357 * sysdeps/posix/mktemp.c: Don't use a static index and increment
9358 it on each call. Instead, always start at the beginning and
9359 iterate until we find a file that does not exist.
9361 * sysdeps/unix/sysv/i386/signal.S: Use C_SYMBOL_NAME for __sigreturn.
9362 Added comment about gas bug with `lcall' insn.
9364 * sysdeps/unix/i386/__brk.S: Use C_SYMBOL_NAME for __curbrk and _end.
9366 * sysdeps/unix/i386/sysdep.S: #include <sysdep.h>.
9367 Use C_SYMBOL_NAME(errno) in place of _errno.
9369 * sysdeps/unix/sysdep.h (___errno): Removed #define to _errno.
9370 `errno' is an ANSI name; it doesn't need to be aliased.
9371 * sysdeps/unix/bsd/sun/m68k/sethostid.S,
9372 sysdeps/unix/bsd/sun/m68k/__vfork.S,
9373 sysdeps/unix/bsd/sun/sparc/sysdep.h,
9374 sysdeps/unix/bsd/sun/sparc/sethostid.S,
9375 sysdeps/unix/bsd/vax/sysdep.S,
9376 sysdeps/unix/bsd/vax/__vfork.S: Use _errno, not ___errno.
9378 * sysdeps/unix/sysv/sysdep.h: File removed.
9379 * sysdeps/unix/sysv/i386/sysdep.h: Don't #include it.
9380 #define NO_UNDERSCORES before #include <sysdeps/unix/i386/sysdep.h>.
9382 * sysdeps/unix/i386/sysdep.h (C_SYMBOL_NAME): Define new macro.
9383 [NO_UNDERSCORES]: #define syscall_error to __syscall_error, so we
9384 stay name space tidy.
9386 * sysdeps/unix/sysv/sysv4/sys_getdents.S: Added missing arg count (3).
9388 * sysdeps/unix/sysv/i386/time.S: Fixed to not use bogus addressing
9389 mode `4(%esp,1)'; use `4(%esp)' instead. Added comments.
9391 * sysdeps/stub/__fchmod.c (__fchmod): Fixed arg type to mode_t.
9393 * sysdeps/posix/__wait3.c: #include <stddef.h> for NULL.
9395 * sysdeps/unix/i386/__wait.S: Use asm label `null' instead of
9396 `1f', and actually define the label! Added comments.
9398 * sysdeps/i386/memchr.c: Renamed asm label to `done'; not all
9399 assemblers support numbered labels like `1f' or `1b'.
9401 * stdio/fseek.c (fseek): Discard char pushed back by ungetc.
9402 * stdio/ftell.c (ftell): If we have a pushed-back char, decrement
9403 the file position we return.
9405 * sysdeps/unix/bsd/sun/sparc/vfork.S: New file.
9407 Wed Sep 30 18:48:38 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9409 * limits.h (_LIBC_LIMITS_H_): Define today's name for this.
9410 RMS said it was to be `_LIBC_LIMITS_H', but that is not what
9413 Tue Sep 29 18:17:12 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9415 * time/Makefile (zic-cmd): Define variable.
9416 (tzcompile, zoneinfo/localtime, zoneinfo/posixrules): Use it for
9417 name of `zic' command.
9419 * sysdeps/unix/bsd/Makefile (ctype-glue.c): Make sure the command
9420 is not an unqualified name.
9422 * sysdeps/stub/statbuf.h (struct stat): Contain only POSIX.1
9423 members, with the POSIX.1 types.
9424 (_STATBUF_ST_BLKSIZE): #undef and comment.
9425 * sysdeps/unix/bsd/statbuf.h (_STATBUF_ST_BLKSIZE): Define it.
9426 * sysdeps/posix/stdio_init.c (__stdio_init_stream): Only try to
9427 use st_blksize #ifdef _STATBUF_ST_BLKSIZE.
9429 * sysdeps/unix/__getpgsz.c: #include <stddef.h> for size_t.
9431 * sysdeps/stub/__fchown.c: Fixed arg types ([ug]id_t, not int).
9433 * io/sys/stat.h: #include <gnu/types.h> for __mode_t et al.
9435 * sysdeps/unix/__gete[ug]id.S [SYS_gete[ug]id]: Add arg count of 0.
9436 [! SYS_gete[ug]id]: Fixed arg count to be 0.
9438 * sysdeps/unix/__get[ug]id.S: Fixed arg count to be 0.
9440 * sysdeps/unix/sysv/linux/syscall.h: #if 0'd out 2nd defn of SYS_brk.
9442 Sun Sep 27 21:56:56 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9444 * sysdeps/unix/Makefile (sys/param.h): Depend on $(common-objpfx)sys/.
9446 Fri Sep 25 12:47:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9448 * Makeconfig (INSTALL_DATA): Pass -m 644.
9450 Thu Sep 24 16:13:47 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9452 * sysdeps/unix/sysv/linux/getpeername.S: Renamed to getpeernam.S.
9453 * sysdeps/unix/sysv/linux/getsockname.S: Renamed to getsocknam.S.
9454 * sysdeps/unix/sysv/linux/setsid.S: Renamed to __setsid.S;
9455 function renamed to __setsid.
9459 * Makefile (dist): Depend on $(distribute).
9461 * stdio/__vfscanf.c (%c): Fixed DO_ASSIGN case loop condition to
9462 not write one char too many.
9464 Wed Sep 23 16:32:18 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9466 * stdlib/qsort.c (_quicksort): Return immediately if TOTAL_ELEMS==0.
9468 Tue Sep 22 19:10:59 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9470 * Makerules [! OUTPUT_OPTION && objpfx]: Define OUTPUT_OPTION.
9472 Mon Sep 21 22:40:55 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9474 * sysdeps/unix/bsd/mk-local_lim.c: Use MAXNAMLEN for NAME_MAX,
9475 rather than hard-wiring 255.
9476 [! MAXNAMLEN]: Define it to 255.
9477 [LINK_MAX && ! MAXLINK]: #define MAXLINK LINK_MAX.
9479 * sysdeps/unix/bsd/glue-ctype.c [ultrix]: #define _ctype_ _ctype__.
9481 * configure: Rename var `gas' to `gnu_as' and use consistently.
9483 Fri Sep 18 16:32:16 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9485 * sys/errno.h: New file.
9486 * Makefile (headers): Add it.
9488 * Makeconfig (+make-deps): Use = not define.
9490 * time/Makefile (zones-%): Don't clobber zonenames; append to it.
9491 Depend on Makefile so we rebuild when the rule changes.
9492 Changed implicit rule from zoneinfo/%/... to zone%/... so it will
9495 * sysdeps/unix/Makefile (syscall.h): Filter out "#ident" lines.
9497 * Makeconfig (+link): Use $(gnulib) instead of -lgcc.
9498 (gnulib): Define to -lgcc.
9500 * posix/glob/Makefile.in (AR, ARFLAGS): Define.
9501 (libglob.a): Use those vars instead of hardcoding.
9503 * Makeconfig (ARCH) [machine]: Don't define if $(..)config.make exists.
9505 * Makerules (compile.S): Include $(asm-CPPFLAGS).
9506 (S-CPPFLAGS): Define = $(asm-CPPFLAGS).
9507 (+make-deps): Include $(sfx-CPPFLAGS), where `sfx' is S or c.
9508 * Makeconfig (asm-CPPFLAGS): Define (empty) and comment.
9510 * sysdeps/unix/Makefile ($(sys/param.h-includes)): Filter out
9511 decls or macros for host<->net conversion (htonl et al).
9513 Thu Sep 17 17:33:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9515 * sysdeps/unix/sysv/statbuf.h: Define __S_*.
9517 * misc/Makefile (headers): syslog.h -> sys/syslog.h.
9518 * misc/syslog.h: Moved to misc/sys/syslog.h.
9520 * limits.h [__GNUC__ >= 2]: #define _LIBC_LIMITS_H before
9521 #include_next <limits.h>.
9522 Define _LIMITS_H unconditionally.
9524 Wed Sep 16 17:43:59 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9526 * sysdeps/unix/Makefile (syscall.h): Don't use \< in sed commands.
9527 Some seds don't seem to grok it.
9529 * Makerules (+install-dirs): Sort them.
9531 * Makeconfig (stdarg.h): Use $(wildcard va-*.h) instead of va-*.h,
9532 and := instead of =.
9534 * Makeconfig (prefix): Default to $(exec_prefix), not /usr/local.
9536 * Makeconfig (+link): Use $(common-objpfx) rather than $(objpfx)
9537 to find start.o; use $(libc.a) instead of $(objpfx)libc.a.
9539 * sysdeps/sparc/Makefile: crypt subdir is not called uf-crypt.
9541 * sysdeps/unix/Makefile (sys/param.h-includes): Fixed filtering
9542 out of existent glibc headers to remove $(..) pfx after wildcard.
9544 * misc/paths.h: New file, snarfed from 4.4 BSD.
9545 * misc/Makefile (headers): Add paths.h.
9547 Tue Sep 15 14:55:11 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9549 * Makerules (+sysdir_pfx): Define as $(common-objpfx).
9551 * MakeTAGS (TAGS) [subdir && ! tags_sources]: Create an empty
9552 file, rather than no commands at all.
9554 * string/string.h [__GNUC__ && __OPTIMIZE__] (ffs): Take arg.
9556 * sysdeps/unix/sysv/linux/__wait4.S: New file.
9558 * sysdeps/unix/sysv/linux/syscall.h: New version from hlu.
9560 * sysdeps/unix/Makefile (syscall.h): Upcase `sys_' in input.
9562 * sysdeps/unix/bsd/ultrix4/mips/sysdep.h (MOVE): Insn is `move',
9565 * sysdeps/unix/bsd/ultrix4/mips/sigcontext.h: Deansideclized.
9567 * sysdeps/unix/ioctls-tmpl.c [DIOCGETPT, DEVGETGEOM]: Include
9569 [ultrix]: Mondo cruft.
9571 Sat Sep 12 12:08:29 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
9573 * misc/Makefile (routines): Add ttyslot, syslog.
9574 * misc/ttyslot.c, misc/syslog.[ch]: New, snarfed from 4.4 BSD.
9575 (headers): Add syslog.h
9577 * misc/getttyent.c (getttyent): Parse _TTYS_TRUSTED keyword and
9578 set TTY_TRUSTED bit.
9579 * misc/ttyent.h (TTY_TRUSTED): New bit in ty_status.
9580 (_TTYS_TRUSTED): New keyword.
9581 (_TTYS_CONSOLE): New keyword.
9582 (TTY_CONSOLE): New bit in ty_status.
9584 * dirent/scandir.c (scandir): Don't keep using V after realloc'ing
9585 it. Use the returned new ptr instead.
9587 Thu Sep 10 18:59:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9589 * stdlib/div.c, stdlib/ldiv.c: Rewritten from Berkeley code that works.
9591 * Makeconfig (stdarg.h): Add va-*.h.
9593 * stdlib/Makefile (dont_distribute): Define: testsort.input.
9595 * sysdeps/mach/hurd/i386/_hurd_start_sigthread.c,
9596 sysdeps/stub/_hurd_start_sigthread.c: Renamed to .../startsig.c.
9597 * sysdeps/mach/hurd/sys_errlist.awk: Renamed to .../errlist.awk.
9598 * sysdeps/mach/hurd/Makefile (sys_errlist.c): Change dep.
9599 * sysdeps/unix/bsd/make-local_lim.c: Renamed to .../mk-local_lim.c.
9600 * sysdeps/unix/bsd/Makefile (local_lim.h): Change dep.
9601 (make-local_lim): Change target and dep.
9602 * hurd/_hurd_dead_recv.c: Renamed to hurd/dead_recv.c.
9603 * hurd/setdtablesize.c: Renamed to hurd/setdtsz.c.
9604 * hurd/Makefile (routines): Change references.
9605 * stdio/tstgetline.c: Renamed to stdio/tstgetln.c.
9606 * stdio/tstgetline.input: Renamed to stdio/tstgetln.input.
9607 * stdio/Makefile (tests): Change ref.
9608 * README.template: Remove note about long file names.
9610 * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h (_UTSNAME_LENGTH):
9611 Define here, rather than #include'ing sysv/utsnamelen.h.
9612 This file gets installed.
9614 Wed Sep 9 17:06:14 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9616 * Makeconfig (localtime-file): Put in $(prefix)/etc, not /etc.
9618 * setjmp/Makefile (routines): Remove sigsetjmp.
9620 * sysdeps/posix/Makefile (objdir-CPPFLAGS) [! subdir]: Rewrote
9621 totally broken defn.
9623 * sysdeps/unix/Makefile (syscall.h): Keep lines starting
9624 with #, not only those starting with #define.
9625 We want to preserve any #ifdef in the original.
9627 * Makerules (install): Dep $(+install-dirs), not $(dir $(+install)).
9628 (+install-dirs): Define to get two levels of dirs.
9630 * time/Makefile (tz-cc): Use = instead of define directive.
9632 * sysdeps/unix/bsd/sun/sparc/start.c (_start): Give ARGC, ARGV,
9633 and ENVP `register' storage class; can then clear the FP early.
9635 Sat Sep 5 13:14:09 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
9637 * Makerules (sysdirs): Pass sysdep_dir in child's environment.
9639 Fri Sep 4 15:37:23 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
9641 * Makeconfig (common-objpfx): Add trailing slash.
9642 Move comment to prev line to avoid extra whitespace.
9644 Thu Sep 3 17:31:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9646 * sysdeps/unix/bsd/setgroups.S: New file. How did this manage not
9651 * sysdeps/generic/memmem.c (memmem): Fixed loop condition not to
9652 use nonexistent variable.
9654 * string/string.h (memmem): Put const qualifier on args.
9656 * sysdeps/stub/sigaltstack.c (sigaltstack): Fix arg type.
9658 * setjmp/sigsetjmp.c: #undef sigsetjmp before defining the function.
9660 Wed Sep 2 16:43:58 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9662 * misc/Makefile (headers): Add syscall.h.
9663 * sysdeps/unix/Makefile: Only generate syscall.h if it would
9664 otherwise come from stub.
9665 * sysdeps/stub/syscall.h: New file.
9667 * time/Makefile (routines): Add stime.
9669 * io/Makefile (routines): Add fchdir.
9671 * signal/Makefile (routines): Add sigaltstack.
9673 * string/Makefile (routines): Add memmem.
9675 * setjmp/Makefile (routines): Add sigsetjmp, _setjmp.
9677 * misc/Makefile (routines): Add getpass.
9679 * Makefile (distribute): Add NEWS.
9681 * Makerules (ar-it) [! objdir]: Pass `ru' instead of `u' to ar.
9682 Use $(..)libc.a instead of $(libc.a).
9684 * sysdeps/unix/sysv/i386/linux/sysdep.h (PSEUDO): Call numbers are
9687 * sysdeps/unix/sysv/i386/linux/__wait.S: Prepend extra _ to
9688 `__waitpid' for jmp.
9690 * Makerules (check): New rule; alias for `tests'.
9692 * sysdeps/stub/__setregid.c: Args are gid_t, not int.
9694 * sysdeps/posix/readv.c: #include <string.h>.
9696 * sysdeps/generic/printf_fp.c: If LDBL_DIG or LDBL_MAX_10_EXP is
9697 defined by float.h, #define each to DBL_*.
9699 Tue Sep 1 16:29:07 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9701 * sysdeps/unix/Makefile (syscall.h): Add missing backslashes.
9703 * Makeconfig [!objdir && !..] (common-objpfx): Define as
9704 `sysdeps/..'; The Almighty KludgeMeister 2000 wins again.
9706 * Makerules (sysdep-Makefile): Rename to sysd-Makefile.
9708 * Makeconfig (CC): Don't use -pipe by default.
9710 * configure (switches): Put quotes around os-release and
9713 Mon Aug 31 19:33:15 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9715 * sysdeps/stub/cbrt.c: New file.
9717 * sysdeps/generic/cabs.c: New file.
9719 * sysdeps/generic/ceil.c: New file, split from floor.c.
9720 * sysdeps/generic/__rint.c: Replaced with code split from floor.c.
9721 * sysdeps/generic/Makefile (routines): Don't remove ceil, __rint.
9723 Thu Aug 27 15:58:13 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
9725 * malloc/malloc.h [! __STDC__] (ptrdiff_t): #define.
9727 Wed Aug 26 18:15:47 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9729 * malloc/free.c (__free): Rename to _free_internal.
9730 (free), malloc/malloc.c (morecore): Change callers.
9731 * malloc/malloc.h: Change decl.
9733 Tue Aug 18 17:38:13 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9735 * sysdeps/generic/__copysign.c: New file.
9737 * sysdeps/unix/sysv/sysdep.h: #include <syscall.h>, not
9738 <sys/syscall.h>. Don't #define _SYS_SYS_S; should no longer be
9741 * sysdeps/unix/Makefile (syscall.h): Replaced simple code to just
9742 find the file in any of several places, with hairier code to find
9745 * malloc/Makefile (obstack.%): Remove rule.
9746 (gpl2lgpl): Define this instead.
9747 * posix/Makefile (gpl2lgpl): Define to include getopt source files.
9748 * Makerules ($(gpl2lgpl)): New rule to snarf code and frob its
9751 Fri Aug 14 13:28:39 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9753 * Makeconfig (common-objdir, common-objpfx): Define new vars.
9754 (libc.a): Define in terms of $(common-objpfx).
9755 Find config.make with $(common-objpfx), not $(objpfx).
9756 * Makerules (common-objdir-compile): Define canned sequence.
9757 (native-compile): Use $(@D)/$(@F) instead of stripping off $(objpfx).
9758 * sysdeps/unix/Makefile, sysdeps/unix/bsd/Makefile,
9759 sysdeps/generic/Makefile: Use it.
9760 Use $(common-objpfx) for generated things not specific to one subdir.
9762 * sysdeps/unix/Makefile (sysdep_headers): Add
9763 $(sys/param.h-includes) to this instead of to headers.
9765 Thu Aug 13 18:30:58 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9767 * posix/glob.c: Always #include <sys/types.h>.
9768 [! USG]: Don't do it here.
9769 [STDC_HEADERS]: Test this instead of __STDC__ for size_t.
9770 [HAVE_STRCOLL]: Test this instead of ANSI_STRING for strcoll.
9772 * posix/glob/Makefile.in (Makefile): Remove rule.
9774 Wed Aug 12 16:12:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9776 * sysdeps/sparc/jmp_buf.h: Deansideclized.
9778 * sysdeps/generic/make_siglist.c: #undef HAVE_SYS_SIGLIST, not
9779 SYS_SIGLIST_MISSING.
9780 * sysdeps/generic/signame.[ch]: Re-symlinked from /gd/gnu/lib.
9781 Who's been removing random things from my source tree??
9783 Tue Aug 11 15:01:50 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9785 * posix/getconf.c (main): Cast printf field with arg to int.
9787 * Makefile (distribute): Remove ansidecl, ansidecl.m4.
9789 * posix/glob.c [_AIX]: Don't declare alloca.
9791 Mon Aug 10 17:09:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9793 * sysdeps/m68k/fpu/__math.h (__expm1): Define just like expm1.
9795 * sysdeps/unix/ioctls-tmpl.c [SMIOSTATS, SMIOGETREBOOT0,
9796 ZIOCBCMD]: Include headers for these.
9798 Fri Aug 7 16:01:43 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9800 * string/tester.c (main): Use sys_nerr and sys_errlist, not _sys_*.
9802 * stdio/stdio.h [__USE_GNU] (_sys_nerr, _sys_errlist): Declare.
9804 * string/strerror.c, stdio/perror.c
9805 [HAVE_GNU_LD] (_sys_errlist, _sys_nerr): Remove decls.
9807 * stdio/memstream.c (enlarge_buffer): Notice when target is -1 and
9808 don't treat it as a huge value.
9810 * stdio/tst-printf.c: #if 0 code that tickles printf_fp bugs.
9812 * grp/testgrp.c: Don't bomb if uid not in passwd file.
9814 * stdlib/tst-strtol.c (tests): C-t on LONG_MIN and LONG_MIN-1 elts.
9816 * stdlib/strtol.c: Use int flag NEGATIVE instead of char 1/-1 SIGN.
9817 Fixed checking for overflow of long int that fits in unsigned long
9818 int--must cast LONG_MIN before negating!
9820 Thu Aug 6 18:46:24 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9822 * stdio/bug3.c (main): Define ansideclifily.
9824 * sysdeps/unix/bsd/sun/sparc/__pipe.S: Define __pipe, not ___pipe.
9826 * math/test-math.c (main): Remove unused vars.
9828 * io/flock.c: #include <sys/file.h>, and not fcntl.h or sys/types.h.
9830 * sysdeps/m68k/fpu/__math.h (__rint): Define just like rint.
9832 * math/math.h (__rint): Declare.
9834 * configure (esix*): base_os=unix/sysv.
9836 * dirent/getdents.c: #include <dirent.h>.
9838 * Rules (subdir): Avoid TAB before # at end of defn.
9840 * sysdeps/unix/bsd/bsd4.4/__wait3.c: Last arg type is struct rusage *.
9842 Tue Aug 4 18:19:43 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9844 * sysdeps/ieee754/Makefile: Removed.
9846 * math/math.h: Declare __expm1.
9848 Mon Aug 3 13:02:05 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9850 * sysdeps/ieee754/cabs.c (cabs, z_abs): Members of structure have __.
9852 * sysdeps/unix/bsd/seq386: Remove directory.
9854 Thu Jul 30 15:42:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9856 * sysdeps/unix/bsd/sun/sparc/sigcontext.h: Deansideclized.
9858 * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Make last arg struct rusage
9861 * sysdeps/unix/morecore.c (__default_morecore): Make arg ptrdiff_t.
9863 * sysdeps/ieee754/cabs.c (cabs, z_abs): Use `struct __complex' for arg.
9865 * sysdeps/generic/pow.c: #include <limits.h>.
9867 * sysdeps/generic/mathimpl.c: #include <math.h> before frobnication.
9869 * misc/getusersh.c (okshells): Make const.
9870 (initshells): Properly declare static.
9872 * sysdeps/unix/bsd/__tcgetatr.c: Cast sg_[io]speed to (unsigned char)
9873 to avoid gcc warnings.
9875 * math/bsd/common/atan2.c, math/bsd/common/tan.c,
9876 math/bsd/common/sincos.c, math/bsd/common/trig.h,
9877 math/bsd/common_source/__expm1.c, math/bsd/common_source/fmod.c,
9878 math/bsd/common_source/acosh.c, math/bsd/common_source/log.c,
9879 math/bsd/common_source/asincos.c, math/bsd/common_source/asinh.c,
9880 math/bsd/common_source/log1p.c, math/bsd/common_source/atan.c,
9881 math/bsd/common_source/log__L.c, math/bsd/common_source/atanh.c,
9882 math/bsd/common_source/mathimpl.h, math/bsd/common_source/cosh.c,
9883 math/bsd/common_source/exp.c, math/bsd/common_source/sinh.c,
9884 math/bsd/common_source/exp__E.c, math/bsd/common_source/tanh.c,
9885 math/bsd/common_source/floor.c: Moved to sysdeps/generic.
9886 * math/bsd/ieee/{cabs,cbrt,support}.c: Moved to sysdeps/ieee754.
9887 * All above + sysdeps/generic/mathimpl.h, sysdeps/generic/pow.c: New
9890 * sysdeps/generic/ffs.c: #include <string.h>, not <bstring.h>.
9892 * posix/glob/Makefile.in (Makefile): Depend on config.status; invoke
9893 it directly instead of using $(SHELL).
9895 * posix/glob.c [! USG]: #include <sys/types.h> before <sys/dir.h>.
9897 Tue Jul 28 17:54:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9899 * sysdeps/unix/bsd/ultrix42: Renamed to ultrix4.
9901 * sysdeps/unix/sysv/isc2.2/__rename.S: New.
9902 * configure (isc*): base_os=unix/sysv.
9904 * Makefile, Makerules, Rules, math/Makefile, ctype/Makefile: Use
9905 "export foo := $(foo)" instead of ifdef have_export_directive.
9906 * Makeconfig (have_export_directive): Remove; move .NOEXPORT down.
9908 Mon Jul 27 18:01:30 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9910 * configure: Remove redundant test to set os_used.
9912 Sun Jul 26 17:03:31 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9914 * README.template: Don't mention Q+A.
9915 * Makefile (distribute): Remove Q+A.
9917 * Makefile, Makerules, Rules, math/Makefile, ctype/Makefile: Put
9918 "ifdef have_export_directive" around uses of `export' directive.
9919 They are only needed for dist and tags anyway.
9920 * Makeconfig (have_export_directive): Add commented-out defn, and
9922 (.NOEXPORT): Add special target for old versions of GNU make.
9924 * posix/glob.c [_AIX]: #pragma alloca first thing.
9925 [ANSI_STRING]: Remove #define's for index et al.
9927 Thu Jul 23 21:49:53 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9929 * misc/getpass.c: New.
9930 * posix/unistd.h (getpass): Declare.
9932 * posix/unistd.h (getusershell, setusershell, endusershell): Declare.
9933 * misc/Makefile (routines): Add getusersh.
9934 * misc/getusersh.c: New.
9936 Tue Jul 14 20:03:57 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9938 * stdlib/Makefile (tests): Add testdiv.
9939 * stdlib/testdiv.c: New.
9941 * sysdeps/unix/sysv/i386/linux/{rename,__mkdir,__rmdir,__dup2,
9942 getpgrp,__setpgrp,setsid}.S: New files.
9944 * sysdeps/unix/__getppid.S: If SYS_getppid is defined, use it rather
9945 than alternate value of getpid.
9946 * __gete[ug]id.S: Similar.
9948 * sysdeps/unix/sysv/i386/linux/__waitpid.S: New file.
9949 * sysdeps/unix/sysv/i386/linux/__wait.S: New file.
9950 * sysdeps/posix/__wait3.c: New file.
9952 * sysdeps/unix/sysv/i386/linux/socket.S: New file.
9953 * bind.S, connect.S, listen.S, accept.S, getsockname.S,
9954 getpeername.S, socketpair.S: Also new (and trivial).
9956 Mon Jul 13 17:41:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
9958 * sysdeps/unix/sysv/i386/linux/sysdep.[hS]: New files.
9960 * configure (linux*): base_os=unix/sysv
9961 (gnu*, linux*): Always set --with-gnu-ld and --with-gnu-as.
9963 * stdio/obstream.c: #include <string.h>
9964 (obstack_vprintf): Use bzero rather than memset.
9966 * stdio/glue.c (unix_FILE.glue): Add two members, which will overlap
9967 get_limit and put_limit in GNU stdio.
9968 (_iob): Initialize them to same as `streamp'.
9970 Thu Jul 9 21:27:39 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9972 * stdio/stdio.h (open_obstack_stream, obstack_printf,
9973 obstack_vprintf): Declare.
9975 * posix/glob.c [STDC_STRINGS]: Don't test this.
9976 [! ANSI_STRING]: Put memcpy, strrchr, memset defns here instead.
9978 * posix/glob/Makefile.in (glob.o, fnmatch.o): / after $(srcdir).
9980 Tue Jul 7 03:11:23 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9982 * stdio/Makefile (routines): Add obstream.
9984 * Makerules (%.o: %.S, %.o: %.c): If using gcc, put the file name
9985 before the options on the command line.
9987 * malloc/Makefile (dist-routines): Define with routines for malloc.tar.
9988 (routines): Define with that plus the rest.
9990 (routines): Add obstack.
9991 (headers): Add obstack.h.
9992 (obstack.%): New rule.
9994 * stdio/glue.c: Add comments.
9996 * stdio/printf.h (struct printf_info.spec): Make unsigned char.
9998 * stdio/stdio.h (__validfp): Fixed glued-stream snarfing.
10000 Mon Jul 6 20:00:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10002 * sysdeps/i386/jmp_buf.h: Deansideclized.
10004 * sysdeps/posix/Makefile (objdir-CPPFLAGS): Define; if in parent
10005 dir, add ..s to -Is.
10006 (mk-stdiolim): Use it in place of $(CPPFLAGS).
10008 Sat Jul 4 20:44:42 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10010 * posix/glob/Makefile.in (glob.o, fnmatch.o): Put $(srcdir) on deps.
10012 Wed Jul 1 00:13:40 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10014 * sysdeps/generic/strstr.c: If NEEDLE is "", return end of HAYSTACK.
10016 * string/tester.c (main): Remove decls of sys_nerr and sys_errlist.
10018 * configure: Accept --prefix=*, --exec_prefix=* options.
10019 Set values in config.make and config.status.
10021 * io/umask.c: Fixed return type in fn alias.
10023 * posix/glob.c [! ANSI_STRING]: #define strcoll to strcmp.
10024 Remove extra decls of free, qsort, malloc, and realloc.
10026 * dirent/alphasort.c: #include <string.h>, and not <stdlib.h>.
10028 * sysdeps/unix/bsd/i386/__wait3.S: Load SYS_wait into %eax before
10029 trapping. Use literal .byte instead of lcall to avoid gas bug.
10030 Use 0(REG), not (REG), for register-indirect addressing.
10032 * configure: Make config.status executable.
10034 Tue Jun 30 21:14:53 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10036 * configure: Add --os-release=* and --os-version=* options. Record
10037 settings (which might be automagically guessed) in config.status.
10039 * misc/mknod.c: Use __mode_t for arg in fn alias.
10041 * posix/unistd.h (setregid): Declare to take __gid_t args.
10043 * sysdeps/unix/bsd/i386/__wait3.S: Don't use lcall insn gas barfs on.
10045 * posix/vfork.c: Move to sysdeps/generic/.
10047 * Rules (others, tests): Export them.
10049 * io/umask.c, io/mkdir.c, io/chmod.c: Use mode_t not int in arg decls.
10051 * sysdeps/i386/ffs.c: #include <string.h>, not <bstring.h>.
10053 * stdio/vfscanf.c: Use function_alias.
10055 * stdio/vsscanf.c: Use va_list, not PTR, in arg decl in fn alias.
10057 * sysdeps/unix/i386/sysdep.h (PSEUDO): Enough backslashes and
10060 * stdio/stdio.h: For __gnuc_va_list, #test __GNUC_VA_LIST, not
10063 * stdio/fmemopen.c: Use memchr to find NUL for append mode.
10065 * stdio/memstream.c (enlarge_buffer): Double the buffer size, rather
10066 than adding 100. Don't clobber *INFO->bufsize when called with the
10067 put limit reset. If the target has been set, extend and zero-fill
10069 (seek): New function.
10070 (open_memstream): Use it for seek io fn. Call fmemopen with "w+" mode.
10072 Sun Jun 28 19:01:01 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10074 * stdio/fseek.c: Fail with EINVAL for a negative file pos.
10076 Fri Jun 26 00:07:53 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10078 * Makeconfig (stdarg.h): New variable.
10079 * Makefile (headers): Add $(stdarg.h).
10081 * stdio/stdio.h: Change __va_list to __gnuc_va_list in decls.
10083 * sysdeps/unix/morecore.c: Include malloc.h #ifndef _MALLOC_INTERNAL.
10084 Don't include <stdio.h>.
10085 (NULL): Define to 0 if not defined.
10087 * sysdeps/i386/bzero.c: Include string.h, not bstring.h.
10089 Thu Jun 25 21:01:40 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10091 * stdio/perror.c, string/strerror.c (_sys_errlist, _sys_nerr): Don't
10092 declare #ifndef HAVE_GNU_LD.
10094 * stdio/fwrite.c: Cast arg to write io func to const char * (from uns).
10096 * sysdeps/unix/Makefile: If syscall.h doesn't exist in
10097 $(sysincludedir), look for sys/syscall.h and create $(objpfx)syscall.h
10100 * sysdeps/unix/morecore.c (__default_morecore): Deansideclized.
10101 * malloc/*.c: Only #include <malloc.h> #ifndef _MALLOC_INTERNAL.
10103 Wed Jun 24 19:09:04 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10105 * sysdeps/unix/snarf-ioctls: Avoid looking at a few particular
10106 headers which tend to mislead us.
10108 * Makefile (distribute): Add COPYING.
10110 * configure (Makefile): When invoking make in srcdir, set ARCH
10111 rather than objdir on the cmd line.
10113 * posix/glob.c [DIRENT] (direct): Don't define to dirent.
10114 [! DIRENT] (direct): Define to dirent.
10116 * Make-dist [!subdir] (+tsrcs): Don't include $(distribute). It was
10117 already included above.
10119 Mon Jun 22 16:58:34 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10121 * Makerules (sysdep_routines): Export it.
10123 Wed Jun 17 17:58:05 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10125 * posix/glob.c (my_realloc): Test only __GNU_LIBRARY__. Can't trust
10128 Tue Jun 16 20:20:01 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10130 * resource/sys/resource.h (enum __rlimit_resource): Added MEMLOCK,
10133 * posix/Makefile (glob.tar): Include Makefile.in & configure, and not
10135 (glob/configure): New rule.
10137 * posix/glob/Makefile: Moved to posix/glob/Makefile.in.
10138 (VPATH, srcdir, CPPFLAGS): Define to be replaced by autoconf.
10140 * posix/glob.c: Rearranged conditionals for use with autoconf.
10142 Thu Jun 11 15:47:43 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10144 * sysdeps/unix/bsd/sun/sparc/start.c: Added alias for start -> __start.
10146 Tue Jun 9 20:15:12 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10148 * sysdeps/posix/rename.c: Return failure and don't remove the old
10149 link if the link failed with other than EEXIST.
10151 * posix/glob/Makefile: Fixed copyright notice.
10152 (realclean): Don't remove ~ backup files.
10154 Thu Jun 4 16:41:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10156 * time/Makefile (install-data): Don't include zoneinfo/.
10157 Makerules already makes sure the necessary directories exist.
10159 * setjmp/setjmp.h (sigsetjmp) [__GNUC__]: Use typeof hackery to
10160 construct the type of the temporary var for the arg.
10161 (_setjmp) [__FAVOR_BSD]: Make same as setjmp.
10163 * malloc/malloc.h (mtrace): Declare.
10165 * malloc/malloc.h, malloc/calloc.c, malloc/free.c, malloc/malloc.c,
10166 malloc/mcheck.c, malloc/memalign.c, malloc/mstats.c,
10167 malloc/mtrace.c, malloc/realloc.c, malloc/valloc.c: Deansideclized;
10168 changed copyright notices to be independent of libc.
10169 * malloc/Makefile (glob/%.c, glob/%.h): Don't need to ansideclificate.
10171 * io/ftw.h, io/ftw.c: New.
10172 * io/Makefile (headers): Added ftw.h.
10173 (routines): Added ftw.
10175 Tue Jun 2 21:49:22 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10177 * sysdeps/unix/bsd/signum.h (SIG_ERR, SIG_DFL, SIG_IGN): Use
10180 * posix/glob.c (__ptr_t): Define.
10182 Thu May 28 06:57:14 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10184 * sysdeps/m68k/jmp_buf.h: Don't use PTR.
10186 Wed May 27 18:09:40 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10188 * posix/{glob,fnmatch}.[ch]: Deansideclized; changed copyright
10189 notice to be independent of libc.
10190 * posix/Makefile (glob/%.c, glob/%.h): Don't need to ansideclificate.
10192 * posix/unistd.h (_SC_2_FORT_RUN, _SC_2_LOCALDEF): Define.
10194 * posix/unistd.h: Define _POSIX2_* without #ifdef __USE_POSIX2.
10196 * posix/unistd.h (_POSIX2_FORT_DEV): Removed.
10198 * posix/fnmatch.h (FNM_FILE_NAME): Alias for FNM_PATHNAME.
10200 Tue May 26 00:39:39 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10202 * time/Makefile (install-data): Include zoneinfo/, so the directory
10205 * Makeconfig (+gcc-nowarn): Define to -w if using gcc.
10206 * time/Makefile (tz-cc): Use it to suppress warnings for grody code.
10208 * posix/Makefile (libposix.a), math/Makefile (libm.a): Make archive
10209 containing /dev/null instead of nothing; ar won't create an empty
10212 * Makerules (%/): Added generic mkdir rule.
10214 * posix/Makefile (install-lib): Define to libposix.a.
10215 (libposix.a): Create empty archive.
10217 * posix/Makefile (distribute): Added utsnamelen.h.
10219 * ctype/ctype.c (tolower, toupper): If the arg doesn't fit in a
10220 char, return it unchanged.
10221 * ctype/ctype.h (tolower, toupper): Don't define as macros.
10222 [__GNUC__]: Define as extern inline functions.
10224 * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h,
10225 sysdeps/unix/bsd/sun/sunos4/uname.S: New.
10227 * configure: Only do hacking to snarf uname info if the config uses
10228 the generic uname implementation.
10230 * Makeconfig (+defines): Define to include $(gnu_ld), rather than
10232 * configure: Write config.make with gnu_ld/gnu_as defns.
10234 * sysdeps/unix/bsd/sun/sunos411: Renamed back to .../sunos4.
10235 * sysdeps/unix/bsd/bsd44: Renamed to .../bsd4.4.
10237 * Makeconfig: include $(objpfx)configparms instead of
10238 $(objdir)/Makeconfig.
10239 Define objpfx as soon as objdir is defined, so we can use it.
10241 * sysdeps/generic/uname.c: Use UNAME_* from config-name.h.
10243 Mon May 25 19:33:07 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10245 * configure: Accept all standard GNU configure options.
10246 Expect to be run in object directory, and find source directory
10248 Write config.status as a shell script that can be run to recreate
10250 Grok os names containing dots by trying each successively
10251 less-precise substring.
10252 Write Sysnames and config-name.h in current directory.
10253 Write #define's for uname sysname, release, version, and machine
10254 elts in config-name.h. Hackery to intuit release and version info.
10256 * stdio/vsnprintf.c, stdio/vsprintf.c, stdio/vasprintf.c,
10257 stdio/vdprintf.c, stdio/vfscanf.c, stdio/vscanf.c,
10258 stdio/__vsscanf.c: Take arg list as va_list, not PTR.
10260 * stdio/stdio.h: Replaced #include <stdarg.h> with magic.
10261 Properly use __va_list in prototypes.
10263 * Makeconfig (exec_prefix): Define.
10264 (libdir, includedir, bindir): Use it.
10266 * sysdeps/unix/sysv/Makefile [subdir==io] (sysdep-routines): Removed
10268 * sysdeps/unix/sysv/Dist: Removed __utssys.S.
10269 * sysdeps/unix/sysv/__utssys.S, sysdeps/unix/sysv/uname.c: Removed.
10270 * sysdeps/unix/sysv/uname.S, sysdeps/unix/sysv/utsnamelen.h: New.
10272 * posix/sys/utsname.h (_UTSNAME_LENGTH): Don't define; instead,
10273 #include <utsnamelen.h> to define it.
10274 * sysdeps/generic/utsnamelen.h: New.
10276 Sun May 24 00:07:45 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10278 * sysdeps/generic/inet-cvt.h: Deansideclized.
10280 * string/string.h (memfrob): First arg is __ptr_t, not char *.
10282 * misc/sys/cdefs.h (__ptr_t): Made #define rather than a typedef.
10284 Fri May 22 01:52:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10286 * Makefile, Rules, Makerules: Remove all rules for ansideclificating
10289 * posix/glob.h, posix/fnmatch.h: Use explicit cruft for C++.
10290 Define __P and const for C++/ANSI vs old C ourselves, to avoid
10291 dependence on <sys/cdefs.h>.
10293 * inet/Makefile: Remove cruft to snarf things from bsd/.
10294 * inet/bsd/*.c: Moved to inet/.
10296 * Makerules: Install headers from source directories into
10297 $(includedir), rather than ansidecl madness.
10298 * Makeconfig (ansi-incldir, trad-incldir): Removed.
10299 (includedir): Define instead.
10301 * assert/assert.h, ctype/ctype.h, dirent/dirent.h, grp/grp.h,
10302 locale/locale.h, locale/localeinfo.h, math/math.h,
10303 misc/sys/file.h, misc/sys/ioctl.h, misc/sys/ptrace.h,
10304 misc/sys/uio.h, misc/sgtty.h, misc/nlist.h, posix/gnu/types.h,
10305 posix/sys/wait.h, posix/sys/types.h, posix/sys/times.h,
10306 posix/sys/utsname.h, posix/unistd.h, posix/tar.h, posix/utime.h,
10307 posix/wordexp.h, posix/glob.h, posix/fnmatch.h, pwd/pwd.h,
10308 resource/sys/resource.h, resource/sys/vlimit.h,
10309 resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
10310 signal/gnu/signal.h, socket/sys/socket.h, stdio/stdio.h,
10311 stdio/printf.h, stdlib/alloca.h, stdlib/stdlib.h, string/string.h,
10312 termios/termios.h, time/sys/time.h, time/time.h, io/sys/stat.h,
10313 io/fcntl.h, errno.h, stddef.h, malloc/malloc.h:
10314 Deansideclized. Use <sys/cdefs.h> macros instead of ansidecl and
10316 * features.h: #include <sys/cdefs.h>.
10318 * string/string.h (strfry, memfrob): Declare.
10319 * string/Makefile (routines): Added strfry and memfrob.
10320 * string/strfry.c, string/memfrob.c: New.
10322 * locale/C-ctype_ct.c: Made BS be isspace.
10324 * sysdeps/generic/strstr.c: Return HAYSTACK, not its end, if NEEDLE
10325 is the empty string.
10327 * sysdeps/generic/strncase.c: Fixed for case of empty string.
10329 Wed May 20 02:36:09 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10331 * io/sys/stat.h (fchmod): Declare, rather than two __fchmod decls.
10333 * configure (sysv, bsd): Don't make base_os=unix; unix/{sysv,bsd}
10335 Set os_used if base_os is used.
10337 Tue May 19 21:00:11 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10339 * crypt/*: New files from glad.
10341 * stdio/stdio.h (sys_nerr, sys_errlist): Don't declare const.
10343 Sun May 17 15:50:00 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10345 * io/Makefile (headers): Remove gnu/stat.h; add sys/stat.h.
10347 * posix/glob.c (glob): Don't let us fall off the end without returning.
10349 * sysdeps/stub/setenv.c, sysdeps/posix/setenv.c: New.
10350 * stdlib/stdlib.h [__USE_BSD] (setenv): Declare.
10351 * stdlib/Makefile (routines): Add setenv.
10353 * malloc/mtrace.c (old_{free,malloc,realloc}_hook): Renamed to tr_&
10354 to not conflict with mcheck.c when combined into gmalloc.c.
10356 Fri May 15 19:07:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10358 * socket/sys/socket.h (PF_NBS, AF_NBS): Removed.
10359 (PF_ISO, PF_OSI, PF_APPLETALK, PF_ROUTE, PF_LINK): Define.
10360 (PF_MAX): Increase accordingly.
10362 * inet/bsd/*.c: Snarfed latest code from 4.4.
10364 * misc/sys/cdefs.h (__BEGIN_DECLS, __END_DECLS): Define cruft for C++.
10366 Thu May 14 01:45:12 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10368 * posix/glob.h (GLOB_MAGCHAR): Check user feature-test macros,
10369 rather than __USE_BSD, so we don't depend on features.h.
10371 * sysdeps/stub/__wait4.c: Last arg is struct rusage *, not PTR.
10373 * math/bsd/common_source/mathimpl.h: Don't #define const.
10374 #include <sys/cdefs.h> instead.
10376 * Makefile (+other_dirs): Add crypt, but only if it exists at run time.
10377 * crypt/GNUmakefile: New file.
10378 * sysdeps/sparc/Makefile, sysdeps/m68k/Makefile (crypt):
10379 Define to use machine-dependent assembly code in crypt/crypt.*.S.
10380 * crypt: New directory.
10382 * find-sysdirs: Don't lose if there are no sysnames.
10384 * termios/Makefile (headers): Added sys/termios.h.
10385 * termios/sys/termios.h: New file; just #include <termios.h>.
10387 * stdlib/qsort.c: Define _quicksort rather than qsort.
10388 * stdlib/msort.c: New file; defines qsort function that does merge
10389 sort. Falls back to _quicksort if it fails to allocate a temp array.
10390 * stdlib/Makefile (routines): Added msort.
10392 * string/string.h (memccpy, strdup): Also declare #ifdef __USE_BSD.
10393 [__USE_BSD] (index, rindex, bcmp, bzero, ffs): Declare.
10394 * string/strings.h: Just #include <string.h>.
10395 * string/Makefile (headers): Removed bstring.h.
10397 * misc/Makefile (routines): Removed swab.
10398 * string/Makefile (routines): Put it here instead.
10399 * misc/swab.c: Moved to string/swab.c.
10401 * stdio/stdio.h [__USE_BSD] (sys_nerr, sys_errlist): Declare.
10403 * grp/grp.h (setgrent, endgrent, getgrent): Also do #ifdef __USE_BSD.
10405 * posix/glob.h [__USE_BSD] (GLOB_MAGCHAR): Declare.
10406 (glob_t): Added member `gl_flags'.
10407 * posix/glob.c (glob, glob_in_dir): Set gl_flags member to FLAGS;
10408 or in GLOB_MAGCHAR if any metachars are seen.
10410 * sysdeps/unix/bsd/bsd44/readdir.c: New.
10412 * sysdeps/unix/bsd/sun/readdir.c: Don't need to declare
10413 __getdirentries here. Use off_t and ssize_t.
10415 * misc/Makefile (routines): Removed getdents and __getdents.
10416 * dirent/Makefile (routines): Put them here instead.
10417 * misc/getdents.c: Moved to dirent/getdents.c.
10418 * dirent/dirent.h [__USE_BSD] (__getdirentries, getdirentries):
10421 * dirent/Makefile (routines): Added scandir and alphasort.
10422 * dirent/scandir.c, dirent/alphasort.c: New.
10423 * dirent/dirent.h [__USE_BSD] (scandir, alphasort): Declare.
10425 * sysdeps/unix/bsd/nice.c, sysdeps/unix/sysv/nice.S,
10426 sysdeps/stub/nice.c: New.
10427 * resource/Makefile (routines): Added nice.
10429 * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): #define to
10430 __ versions, for the sake of 4.4 header files.
10432 Wed May 13 00:35:12 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10434 * stdlib/tst-strtol.c: Fixed typo in test table.
10436 * stdlib/strtol.c: Fixed checking for overflow of long int that fits
10437 in unsigned long int.
10439 * misc/Makefile (headers): Added ttyent.h.
10440 (routines): Added getttyent.
10441 * misc/ttyent.h, misc/getttyent.h: New; snarfed from 4.4.
10443 * posix/sys/wait.h [__USE_BSD]: Added forward decl for struct rusage.
10444 (__wait4, __wait3): Declare arg as struct rusage, not PTR.
10446 * inet/arpa/*.h, inet/protocols/*.h, inet/netdb.h, inet/resolv.h:
10447 New files from 4.4.
10448 * inet/Makefile (headers): Snarf *.h from arpa/ and protocols/.
10450 * sysdeps/m68k/fpu/__math.h, assert/assert.h: #include <sys/cdefs.h>
10451 and use its macros rather than rolling our own.
10453 * misc/sys/cdefs.h: New file.
10454 * misc/Makefile (headers): Add it.
10456 * Makerules: Moved check for headers coming from env to Rules.
10458 Tue May 12 01:04:10 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10460 * sysdeps/generic/strsep.c: New.
10461 * string/string.h [__USE_BSD] (strsep): Declare.
10462 * string/Makefile (routines): Added strsep.
10464 * sysdeps/unix/sysv/__settod.c, sysdeps/unix/sysv/stime.S,
10465 sysdeps/unix/bsd/stime.c, sysdeps/stub/stime.c: New.
10466 * time/time.h [__USE_SVID] (stime): Declare it.
10468 * sysdeps/unix/bsd/bsd44/__getdents.S: New.
10470 * posix/wordexp.h, posix/utime.h, posix/unistd.h, time/time.h,
10471 termios/termios.h, posix/tar.h, string/strings.h, string/string.h,
10472 stdlib/stdlib.h, signal/signal.h, stdio/stdio.h, misc/sgtty.h,
10473 setjmp/setjmp.h, inet/resolv.h, pwd/pwd.h, stdio/printf.h,
10474 misc/nlist.h, inet/netdb.h, math/math.h, malloc/malloc.h,
10475 locale/locale.h, grp/grp.h, posix/glob.h, posix/getopt.h,
10476 posix/fnmatch.h, io/fcntl.h, errno.h, dirent/dirent.h,
10477 ctype/ctype.h, string/bstring.h, assert/assert.h, stdlib/alloca.h,
10478 misc/a.out.h [__cplusplus]: Added stupid cruft for losing C++.
10480 Mon May 11 01:40:49 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10482 * math/Makefile (headers): Added huge_val.h and nan.h.
10484 * io/Makefile (headers): Changed gnu/stat.h to statbuf.h.
10486 * time/Makefile (install-data): Include $(localtime-file) and
10487 $(posixrules-file) if they are relative.
10488 (install-others): Include them if absolute.
10489 ($(posixrules-file), $(localtime-file)): Define rules to install if
10490 absolute file names.
10491 * Makerules (+install): Include $(install-others) verbatim.
10492 * Makeconfig (localtime-file): Made default /etc/localtime.
10494 * sysdeps/generic/Makefile (endian.h): Only generate if would
10495 otherwise use stub version.
10496 * sysdeps/stub/endian.h, sysdeps/i386/endian.h: New.
10498 * Rules, Makefile: Export distribute and dont_distribute.
10499 * Make-dist: Export sysdep_dirs. Unexport things rather than
10500 clobbering their values.
10502 * misc/sys/ptrace.h: Fixed typo.
10504 * stdio/stdio.h (__io_read, __io_write, __io_seek, __io_close):
10507 * stdio/internals.c (flushbuf): If in append mode, don't do aligned
10508 writing, seek to the target, or update the offset.
10510 * posix/unistd.h (lseek): Doc fix.
10512 * misc/swab.c: New.
10513 * misc/Makefile (routines): Added swab.
10515 Wed May 6 12:32:18 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10517 * math/Makefile, inet/Makefile (source_dirs): Export it.
10518 * MakeTAGS (all-dirs): Include $(source_dirs).
10520 * Makefile (TAGS): Removed dep on subdir_TAGS.
10521 (+subdir_targets): Removed subdir_TAGS.
10522 * MakeTAGS [! subdir] (TAGS): Depend on subdir_TAGS.
10523 [! subdir] (subdir_TAGS): Recurse on subdirectories.
10525 * Makerules (headers): Don't take value from the environment.
10527 * Makerules (sysdirs, sysdep_dir): Export them.
10529 * MakeTAGS: New makefile.
10530 * Makefile (distribute): Include it.
10531 * Makefile (TAGS), Rules (TAGS): Removed rules.
10532 * Makerules (TAGS): New rule that uses MakeTAGS.
10533 * Makefile (TAGS): Depend on subdir_TAGS.
10535 * Makerules (install, install-lib, install-data, routines, aux):
10536 Don't bother removing these if they come from the environment, since
10537 they won't with make >= 3.62.8.
10538 * Rules (distribute, headers): Ditto.
10539 (subdir): Export it.
10540 * Makerules (sources, headers): Export these.
10541 * Makefile (subdirs): Export it.
10543 * Rules (+tags_sources): Removed.
10544 * Makerules (tags-sources): Define here.
10545 * ctype/Makefile (tags-sources): Redefine to give headers precedence
10547 * Rules (TAGS), Makefile (TAGS): Rewrote rules.
10548 * Makeconfig (+ctags): Removed.
10551 * sysdeps/posix/getcwd.c: Don't closedir twice.
10553 * sysdeps/unix/bsd/hp/m68k/__wait3.S: Define __wait3, not ___wait3.
10555 * posix/sys/types.h [__USE_BSD] (fsid_t): Define.
10556 * posix/gnu/types.h (__fsid_t): Define.
10558 * io/fcntl.h (F_GETLK): Define.
10560 Tue May 5 18:36:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10562 * misc/Makefile (routines): Added seteuid and setegid.
10563 * sysdeps/stub/sete[ug]id.c, sysdeps/unix/bsd/bsd44/sete[ug]id.S: New.
10564 * posix/unistd.h [__USE_BSD] (seteuid, setegid): Declare.
10566 * sysdeps/unix/bsd/tcsendbrk.c: #include <sys/types.h>
10568 * Makerules: Strip whitespace from $(headers) so ifdef wins.
10570 * sysdeps/unix/bsd/bsdtty.h: #undef a bunch more things.
10572 * sysdeps/unix/bsd/bsd44/errnos.h: New, hacked from 4.4 <sys/errno.h>.
10574 * sysdeps/unix/Makefile (ioctls.h, errnos.h): Only generate if
10575 the files that would be used otherwise are the stub versions.
10577 * sysdeps/unix/bsd/tcflow.c: Don't write VSTOP or VSTART if it is
10580 * sysdeps/unix/bsd/tcflush.c: Use FREAD|FWRITE for TCIOFLUSH.
10582 * sysdeps/unix/bsd/usleep.c: Use select rather than itimers to wait.
10584 * sysdeps/unix/bsd/tcsendbrk.c: Use select rather than itimers to wait.
10586 * termios/cfmakeraw.c: New.
10587 * termios/Makefile (routines): Added cfmakeraw.
10589 * sysdeps/unix/bsd/bsd44/ioctls.h: New file, hacked from 4.4
10591 * sysdeps/unix/bsd/bsd44/__tcgetatr.c: New.
10592 * sysdeps/unix/bsd/bsd44/tcsetattr.c: New.
10593 * sysdeps/unix/bsd/bsd44/tcdrain.c: New.
10595 * termios/sys/ttydefaults.h: New, snarfed from 4.4.
10596 * termios/Makefile (headers): Define.
10597 * termios/termios.h [__USE_BSD]: #include <sys/ttydefaults.h>
10599 * sysdeps/posix/getcwd.c: Removed unused variable.
10601 * time/__tzset.c: Cast string literal to (char *).
10603 * setjmp/sigjmp_save.c: Declare properly to return void.
10605 * sysdeps/ieee754/nan.h: Created; somehow it disappeared.
10607 Mon May 4 18:30:52 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10609 * sysdeps/unix/bsd/bsd44/__wait4.S: New.
10611 * sysdeps/unix/bsd/4.4: Renamed to sysdeps/unix/bsd/bsd44.
10613 * signal/gnu/signal.h (__SA_DISABLE, __SA_NOCLDSTOP): Use same bits
10616 Sun May 3 13:57:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10618 * stdio/fwrite.c: Use unsigned char to avoid sign extension.
10620 * stdlib/__random.c (randtbl): Replaced default constants so they
10621 match the state produced by "srandom (1)".
10623 * stdlib/mbtowc.c: Test for S == "" before testing for no mbchars.
10625 * stdlib/Makefile (tests): Added testrand.
10626 * stdlib/testrand.c: New test for rand.
10628 * stdlib/testmb.c: Added 2 mblen tests.
10630 * stdlib/wcstombs.c: Don't do anything strange for EOF.
10631 Copy non-MB characters as they are.
10632 Properly increment S after writing.
10634 * stdlib/testmb.c: Added test case for wcstombs.
10636 * signal/signal.h (SA_DISABLE): Define.
10637 * signal/gnu/signal.h (__SA_DISABLE): Define.
10639 * signal/signal.h (struct sigaltstack): Define new type.
10640 (sigaltstack): Declare new fn.
10641 * sysdeps/stub/sigaltstack.c: New.
10642 * sysdeps/unix/bsd/4.4/sigaltstack.S: New.
10644 * misc/Makefile (routines): Added reboot.
10645 * posix/unistd.h (reboot): Declare.
10646 * sysdeps/stub/reboot.c: New.
10648 * sysdeps/unix/bsd/ulimit.c [! HAVE_GNU_LD]: #define _etext -> etext.
10650 * sysdeps/unix/bsd/sun/sparc/sethostid.S: #define _ERRNO_H before
10651 #include <errnos.h>.
10653 * configure (newos*): base_os=unix/bsd.
10655 Fri May 1 12:21:47 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10657 * io/gnu/stat.h: Moved to sysdeps/unix/bsd/statbuf.h.
10658 * sysdeps/unix/bsd/statbuf.h: Define struct stat, not struct __stat.
10659 * io/stat.c: Use struct stat, not struct __stat.
10660 * sysdeps/stub/statbuf.h: New.
10661 * io/sys/stat.h: #include <statbuf.h> instead of gnu/stat.h.
10662 (stat, fstat, lstat, chmod, fchmod, umask, mkdir, mknod): Don't
10663 #define; declare as fns instead.
10664 * sysdeps/unix/sysv/stat.h: New.
10665 * sysdeps/unix/sysv/sysv_stat.h, sysdeps/unix/sysv/sys_stat.S,
10666 sysdeps/unix/sysv/sys_fstat.S: Removed.
10667 * sysdeps/unix/sysv/Makefile (sysdep_routines): Removed sys_stat,
10669 * sysdeps/unix/sysv/Dist: Removed sys_stat.S, sys_fstat.S.
10670 * sysdeps/unix/bsd/__stat.S, sysdeps/unix/bsd/__fstat.S: Moved to
10673 * sysdeps/m68k/fpu/switch/Makefile: Refer to dirs fpu and
10674 fpu/switch, not 68881 and 68881-switch.
10676 * sysdeps/m68k/fpu/switch/switch.c: #include <68881-sw.h>, not
10679 * sysdeps/m68k/fpu/__expm1.c, sysdeps/m68k/fpu/__rint.c,
10680 sysdeps/m68k/fpu/asin.c, sysdeps/m68k/fpu/atan.c,
10681 sysdeps/m68k/fpu/atanh.c, sysdeps/m68k/fpu/ceil.c,
10682 sysdeps/m68k/fpu/cos.c, sysdeps/m68k/fpu/cosh.c,
10683 sysdeps/m68k/fpu/exp.c, sysdeps/m68k/fpu/fabs.c,
10684 sysdeps/m68k/fpu/floor.c, sysdeps/m68k/fpu/log.c,
10685 sysdeps/m68k/fpu/log10.c, sysdeps/m68k/fpu/log1p.c,
10686 sysdeps/m68k/fpu/sin.c, sysdeps/m68k/fpu/sinh.c,
10687 sysdeps/m68k/fpu/sqrt.c, sysdeps/m68k/fpu/tan.c,
10688 sysdeps/m68k/fpu/tanh.c: #include <acos.c> without explicit path
10689 (which has changed).
10691 * sysdeps/unix/bsd/sun/sparc/start.c: #include <syscall.h>.
10692 (syscall): Removed C function; define all inside asm instead.
10693 (init_shlib): Cast return value of syscall to right types.
10695 Thu Apr 30 01:15:33 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10697 * sysdeps/unix/bsd/sun/sparc/start.c: Added code to use dynamic
10698 linker from trq@dionysos.thphys.ox.ac.uk.
10700 * sysdeps/unix/bsd/sun/sunos4: Renamed to sunos411.
10702 * setjmp/setjmp.h (sigsetjmp): Don't declare as a function.
10703 Define as a macro instead.
10704 (__sigjmp_save): Declare; internal fn used by sigsetjmp macro.
10705 (_setjmp), [__FAVOR_BSD] (setjmp): Always define as a macro.
10706 * setjmp/sigjmp_save.c: New file.
10707 * setjmp/_setjmp.c, setjmp/sigsetjmp.c: Removed.
10708 * Makefile (routines): Removed _setjmp, sigsetjmp; added sigjmp_save.
10709 * misc/bsd-compat.c (setjmp): Don't define.
10711 * configure (sysv, bsd): base_os=unix
10713 * configure: Fatal error if the machine or os did not generate any
10716 * configure: No error message after config.sub fails.
10718 * sysdeps/mips, sysdeps/unix/bsd/ultrix42: New port from
10719 brendan@cs.widener.edu.
10721 * Reorganized sysdeps:
10723 hp9k3bsd -> hp/m68k
10726 sun3/os3 -> sunos3/m68k
10733 68881/68881-switch -> fpu/switch
10734 * sysdeps/unix/bsd/sony/m68k/start.c: Changed #include.
10735 * configure: Use config.sub to canonicalize name.
10736 Then use combinations of machine, vendor, and os (with special
10737 hacks for os flavors) for sysdep dirs to try.
10738 * Makefile (distribute): Added config.sub.
10740 Wed Apr 29 23:06:06 1992 Brendan Kehoe (brendan@churchy.gnu.ai.mit.edu)
10742 * sysdeps/unix/bsd/hp9k3bsd/sysdep.h,
10743 sysdeps/unix/bsd/sun/sun3/sysdep.h, sysdeps/unix/bsd/sun/sun4/sysdep.h,
10744 sysdeps/unix/bsd/vax/sysdep.h,sysdeps/unix/i386/sysdep.h,
10745 sysdeps/mach/i386/sysdep.h: Change all definitions of movl/mov to
10746 MOVE(s, d), for insn sets with d,s instead of s,d move insns.
10747 * sysdeps/unix/__getegid.S, sysdeps/unix/__geteuid.S,
10748 sysdeps/unix/__getppid.S: Use that in each of these.
10750 Wed Apr 29 17:58:21 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10752 * io/getwd.c: Default PATH_MAX if not defined.
10754 * sysdeps/unix/getlogin.c, sysdeps/posix/ttyname.c: Make buffers
10755 only as big as needed, avoiding PATH_MAX.
10757 * sysdeps/posix/getcwd.c: Dynamically extend the buffer as we go,
10758 not afterwards; default PATH_MAX if not defined.
10760 * posix/execvp.c: Dynamically allocate an array on the stack for the
10761 path name, rather than using a fixed-size array.
10763 * pwd/putpwent.c: Print pw_dir field.
10765 * sysdeps/posix/mktemp.c: If the pid has changed, update OLDPID.
10767 Tue Apr 28 19:25:21 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10769 * malloc/valloc.c [emacs]: #include "config.h"
10771 Thu Apr 23 13:55:34 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
10773 * sysdeps/m68k/68881/__drem.c: Define __drem, not drem.
10774 Call ____drem, not __drem.
10776 * malloc/realloc.c, malloc/malloc.c: Don't #define memcpy or memset
10777 if already #define'd.
10779 Tue Apr 21 04:16:56 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10781 * malloc/Makefile: Moved include ../Rules after malloc.tar rules.
10782 They need $(routines), which Rules clears.
10784 * malloc/realloc.c (MIN): Renamed to min. Conflicted with HPUX
10785 system header files.
10787 * Makefile (sysdep-subdirs): Is not called +sysdep-subdirs.
10789 * configure: Don't try to create config.status if . is not writable.
10791 * sysdeps/generic/printf_fp.c: Fixed padding loop condition for zero
10794 * math/math.h: Don't #include <float.h> for HUGE_VAL.
10795 Instead, #include <huge_val.h>.
10796 * stdlib/stdlib.h: Ditto.
10797 * math/math.h [__USE_GNU]: #include <nan.h> to get NAN value.
10798 * float.h: Removed.
10799 * Makefile (headers): Removed float.h and fl.h.
10800 * sysdeps/ieee754/huge_val.h, sysdeps/ieee754/nan.h,
10801 sysdeps/stub/huge_val.h, sysdeps/stub/nan.h, sysdeps/vax/huge_val.h:
10802 Created (from old fl.h files).
10804 * math/bsd/common_source/pow.c (pow_p): When checking if Y is an
10805 integer, don't let it overflow a `long int'.
10806 (pow): Check for NaN with __isnan, not (X != X).
10808 Tue Apr 21 02:26:19 1992 Brendan Kehoe (brendan@cs.widener.edu)
10810 * sysdeps/unix/bsd/sun/sun4/__pipe.S,
10811 sysdeps/unix/bsd/vax/__wait3.S, sysdeps/unix/bsd/hp9k3bsd/__wait3.S:
10812 Use the ENTRY macro for each beginning
10814 * sysdeps/unix/sysdep.h, sysdeps/unix/bsd/hp9k3bsd/sysdep.h,
10815 sysdeps/unix/bsd/sun/sun3/sysdep.h,
10816 sysdeps/unix/bsd/sun/sun4/sysdep.h, sysdeps/unix/bsd/vax/sysdep.h,
10817 sysdeps/unix/i386/sysdep.h, sysdeps/unix/sysdep.h,
10818 sysdeps/unix/sysv/sysdep.h [SYSCALL, SYSCALL__, PSEUDO]: Modify to
10819 also receive the number of args the syscall takes; added for future
10820 ports that will require this information.
10822 * sysdeps/unix/i386/__pipe.S, sysdeps/unix/bsd/vax/__pipe.S,
10823 sysdeps/unix/bsd/sun/sun4/__pipe.S,
10824 sysdeps/unix/bsd/hp9k3bsd/__pipe.S, sysdeps/unix/i386/__brk.S,
10825 sysdeps/unix/bsd/sun/__getdents.S, sysdeps/unix/i386/__fork.S,
10826 sysdeps/unix/bsd/vax/__fork.S, sysdeps/unix/bsd/sun/sun4/__fork.S,
10827 sysdeps/unix/__setgid.S, sysdeps/unix/__setuid.S,
10828 sysdeps/unix/bsd/sun/sun3/__vfork.S,
10829 sysdeps/unix/bsd/sun/sun4/__vfork.S,
10830 sysdeps/unix/bsd/vax/__wait.S, sysdeps/unix/bsd/hp9k3bsd/__wait.S,
10831 sysdeps/unix/i386/__wait.S,
10832 sysdeps/unix/bsd/sun/sunos4/sys_wait4.S,
10833 sysdeps/unix/bsd/sun/sun3/sethostid.S,
10834 sysdeps/unix/bsd/sun/sun4/sethostid.S,
10835 sysdeps/unix/bsd/__sigvec.S, sysdeps/unix/bsd/sun/sun4/__sigvec.S,
10836 sysdeps/unix/sysv/i386/__sigret.S, sysdeps/unix/__getppid.S,
10837 sysdeps/unix/bsd/__access.S, sysdeps/unix/sysv/signal.S,
10838 sysdeps/unix/__getegid.S, sysdeps/unix/__geteuid.S,
10839 sysdeps/unix/bsd/bsd_getgrp.S, sysdeps/unix/bsd/__dup2.S,
10840 sysdeps/unix/bsd/__fchmod.S, sysdeps/unix/bsd/__fchown.S,
10841 sysdeps/unix/bsd/__flock.S, sysdeps/unix/bsd/__fstat.S,
10842 sysdeps/unix/bsd/__lstat.S, sysdeps/unix/bsd/__mkdir.S,
10843 sysdeps/unix/bsd/__readlink.S, sysdeps/unix/bsd/__rmdir.S,
10844 sysdeps/unix/bsd/__stat.S, sysdeps/unix/bsd/__symlink.S,
10845 sysdeps/unix/bsd/4.4/chflags.S, sysdeps/unix/bsd/4.4/fchflags.S,
10846 sysdeps/unix/bsd/4.4/sstk.S, sysdeps/unix/bsd/4.4/setlogin.S,
10847 sysdeps/unix/bsd/__getdtsz.S, sysdeps/unix/bsd/__getpgsz.S,
10848 sysdeps/unix/bsd/__setregid.S, sysdeps/unix/bsd/__setreuid.S,
10849 sysdeps/unix/bsd/__utimes.S, sysdeps/unix/bsd/ftruncate.S,
10850 sysdeps/unix/bsd/readv.S, sysdeps/unix/bsd/truncate.S,
10851 sysdeps/unix/bsd/vhangup.S, sysdeps/unix/bsd/writev.S,
10852 sysdeps/unix/bsd/__getpgrp.S, sysdeps/unix/bsd/__setpgrp.S,
10853 sysdeps/unix/bsd/__getrusag.S, sysdeps/unix/bsd/getprio.S,
10854 sysdeps/unix/bsd/getrlimit.S, sysdeps/unix/bsd/setprio.S,
10855 sysdeps/unix/bsd/__sigblock.S,
10856 sysdeps/unix/bsd/__sigpause.S, sysdeps/unix/bsd/__sigstmsk.S,
10857 sysdeps/unix/bsd/killpg.S, sysdeps/unix/bsd/sigstack.S,
10858 sysdeps/unix/bsd/rename.S, sysdeps/unix/bsd/__adjtime.S,
10859 sysdeps/unix/bsd/__setitmr.S, sysdeps/unix/bsd/__settod.S,
10860 sysdeps/unix/sysv/sys_stat.S, sysdeps/unix/sysv/sys_fstat.S,
10861 sysdeps/unix/sysv/__utssys.S, sysdeps/unix/sysv/utime.S,
10862 sysdeps/unix/sysv/__times.S, sysdeps/unix/sysv/i386/time.S,
10863 sysdeps/unix/sysv/alarm.S, sysdeps/unix/sysv/pause.S,
10864 sysdeps/unix/sysv/ulimit.S, sysdeps/unix/__chdir.S,
10865 sysdeps/unix/__chmod.S, sysdeps/unix/__chown.S,
10866 sysdeps/unix/__close.S, sysdeps/unix/__dup.S,
10867 sysdeps/unix/__fcntl.S, sysdeps/unix/__link.S,
10868 sysdeps/unix/__lseek.S, sysdeps/unix/__open.S,
10869 sysdeps/unix/__read.S, sysdeps/unix/__umask.S,
10870 sysdeps/unix/__unlink.S, sysdeps/unix/__write.S,
10871 sysdeps/unix/__ioctl.S, sysdeps/unix/__mknod.S,
10872 sysdeps/unix/acct.S, sysdeps/unix/chroot.S, sysdeps/unix/fsync.S,
10873 sysdeps/unix/ptrace.S, sysdeps/unix/swapon.S, sysdeps/unix/sync.S,
10874 sysdeps/unix/__execve.S, sysdeps/unix/__getgid.S,
10875 sysdeps/unix/__getpid.S, sysdeps/unix/__getuid.S,
10876 sysdeps/unix/_exit.S, sysdeps/unix/__kill.S,
10877 sysdeps/unix/inet/__gethstnm.S, sysdeps/unix/inet/__select.S,
10878 sysdeps/unix/inet/gethostid.S, sysdeps/unix/inet/sethostid.S,
10879 sysdeps/unix/inet/sethostnam.S, sysdeps/unix/inet/accept.S,
10880 sysdeps/unix/inet/bind.S, sysdeps/unix/inet/connect.S,
10881 sysdeps/unix/inet/getpeernam.S, sysdeps/unix/inet/getsocknam.S,
10882 sysdeps/unix/inet/getsockopt.S, sysdeps/unix/inet/listen.S,
10883 sysdeps/unix/inet/recv.S, sysdeps/unix/inet/recvfrom.S,
10884 sysdeps/unix/inet/recvmsg.S, sysdeps/unix/inet/send.S,
10885 sysdeps/unix/inet/sendmsg.S, sysdeps/unix/inet/sendto.S,
10886 sysdeps/unix/bsd/vax/__wait3.S, sysdeps/unix/bsd/hp9k3bsd/__wait3.S,
10887 sysdeps/unix/inet/setsockopt.S, sysdeps/unix/inet/shutdown.S,
10888 sysdeps/unix/inet/socket.S, sysdeps/unix/inet/socketpair.S: Added the
10889 argument count to every use of SYSCALL, SYSCALL__ or PSEUDO.
10891 Tue Apr 21 00:06:52 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10893 * limits.h [__GNUC__ >= 2]: Use #include_next to get GCC's <limits.h>.
10895 * sysdeps/posix/sysd-stdio.c (__stdio_read, __stdio_write,
10896 __stdio_errmsg) [EINTR && EINTR_REPEAT]: Do EINTR looping.
10897 * sysdeps/unix/sysv/sysd-stdio.c: New.
10898 #define EINTR_REPEAT and #include posix/sysd-stdio.c.
10900 * stdlib/mbstowcs.c: Copy non-MB chars verbatim, instead of error.
10902 * sysdeps/generic/printf_fp.c: Note sign of exponent and take its
10903 absolute value for arithmetic.
10905 * stdlib/testmb.c: New.
10906 * stdlib/Makefile (tests): Added testmb.
10908 * sysdeps/generic/frexp.c [NAN]: If VALUE is infinite, return NAN.
10909 If VALUE is NAN, set errno to EDOM and return VALUE.
10910 If VALUE is zero, return it. In all special cases, clear *EXP.
10912 * stdio/test-fseek.c: New.
10913 * stdio/Makefile (tests): Added test-fseek.
10915 * stdio/fseek.c: Position returned from io_funcs.seek is absolute,
10916 not EOF-relative when using SEEK_END.
10918 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Set errno to
10919 EEXIST when we run out.
10921 * sysdeps/posix/sysd-stdio.c (exists): Use stat rather than open, so
10922 we don't need read access.
10924 * sysdeps/posix/mk-stdiolim.c (TMP_NAM): is 62 ** 3.
10926 Mon Apr 20 23:08:02 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
10928 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Don't return
10929 the same name twice when the file doesn't exist.
10931 * stdio/vfprintf.c (%c format): Tests of LEFT for padding were
10934 * sysdeps/generic/printf_fp.c: If we have written some fractional
10935 digits, write zeros up to the precision.
10937 * sysdeps/unix/bsd/sun/sun4/start.c: Don't clear the FP until just
10938 before calling main.
10940 Wed Apr 15 01:43:38 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10942 * Makerules (libc.a): Don't depend on libc.a(...); only on lib.
10943 (lib-noranlib): Depend on libobjs.
10944 (+libobjs): New var.
10945 (libobjs): Depend on $(+libobjs).
10946 * Rules (others, tests): Don't depend on lib; on libc.a instead.
10948 * locale/C-numeric.c: grouping is "".
10950 * locale/localeconv.c: Set int_frac_digits.
10952 * locale/setlocale.c: Accept "" to mean "C".
10954 * sysdeps/unix/sysv/r4/bsddir.h: Protect against multiple inclusion.
10956 * sysdeps/unix/sysv/r4/Dist: Created; includes bsddir.h and
10959 * sysdeps/unix/i386/sysdep.h [! HAVE_SYSCALLS]: Don't #inlcude
10961 * sysdeps/unix/sysv/sysdep.h, sysdeps/unix/sysdep.h
10962 (HAVE_SYSCALLS): #define.
10963 * sysdeps/unix/sysv/i386/sysdep.h: #include unix/sysv/sysdep.h, then
10964 unix/i386/sysdep.h.
10966 * sysdeps/unix/sysv/Makefile: Fixed typos.
10968 * sysdeps/unix/sysv/Dist: Add utmp.h.
10970 * sysdeps/posix/Makefile (mk-stdiolim): Explicit commands, to
10971 compile it without normal gcc flags.
10973 * configure (i386-sysv): unix/i386/sysv -> unix/sysv/i386.
10974 (i386-sysvr4): New configuration.
10976 Tue Apr 14 16:47:47 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10978 * setjmp/setjmp.h: Put sigjmp_buf before typedef for jmp_buf, which
10979 needs sigjmp_buf #ifdef __FAVOR_BSD.
10981 * posix/unistd.h (getgroups): Don't #define.
10983 * sysdeps/stub/ptrace.c: #include <stdarg.h>; declare AP in fn.
10986 * sysdeps/posix/sigintr.c: New; sets global sigset_t `_sigintr'.
10987 * sysdeps/posix/signal.c: Use SA_RESTART unless SIG is in _sigintr.
10988 * signal/sigintr.c: Removed.
10989 * sysdeps/stub/sigintr.c: New.
10991 * sysdeps/posix/sysd-stdio.c (__stdio_read, __stdio_write,
10992 __stdio_errmsg): Don't treat EINTR specially.
10994 * sysdeps/unix/Makefile (sys/param.h): Touch the target after mv'ing
10995 from the tmp file, so the file is newer than the directory.
10997 * sysdeps/generic/strcasecmp.c: Simplified loop; fixed returning
10998 wrong value on equal comparison.
11000 * stdlib/bsearch.c: Don't lose if NMEMB is zero.
11002 * sysdeps/unix/bsd/__times.c (timeval_to_clock_t): Microseconds are
11005 Mon Apr 13 18:25:17 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11007 * sysdeps/generic/strncase.c: New.
11008 * string/Makefile (routines): Add strncase.
11009 * string/string.h [__USE_GNU]: Declare strncasecmp.
11011 * time/__tzset.c: Correctly default DST offset to one hour later
11012 than standard offset.
11014 * time/__tzset.c (tz_rule): Made `name' not be const.
11016 * string/tester.c [! HAVE_GNU_LD]: #define _sys_nerr and
11017 _sys_errlist to sys_nerr and sys_errlist.
11019 * stdio/test_rdwr.c: Fixed printf call missing arg.
11021 * posix/getgrps.c: #undef getgroups first.
11023 * misc/brk.c: Declare __brk.
11024 * misc/sbrk.c: Declare __sbrk.
11025 * misc/setreuid.c, misc/setregid.c: #include <unistd.h>.
11026 Fixed types in DEFUN in fn alias.
11027 * misc/getpgsz.c, misc/getdtsz.c, misc/gethstnm.c: #include <unistd.h>.
11028 * misc/getdents.c: Declare __getdirentries.
11029 * misc/mknod.c: #include <sys/stat.h>.
11030 * posix/unistd.h: Declare many __ versions of things.
11031 [__OPTIMIZE__]: Many #define foo(...) -> __foo(...).
11033 * io/fcntl.c: #include <sys/file.h>.
11035 * sysdeps/unix/Makefile: New hair to install other headers the
11036 system sys/param.h #includes.
11038 * time/__tzset.c (__tzfile_default): Declare.
11040 * time/sys/time.h (timezone): #define to __timezone.
11042 * sysdeps/ieee754/printf_fp.c: #undef outchar before #including
11043 generic/printf_fp.c.
11045 * stdio/__vfscanf.c: For %c, don't lose the first char.
11046 For %s, properly consume the last char when we hit max width.
11048 * posix/gnu/types.h (__dev_t, __mode_t): Made int rather than short.
11049 * io/gnu/stat.h (struct stat): Made st_dev, st_rdev, and st_mode use
11050 {,unsigned} short int instead of __dev_t/__mode_t.
11052 Fri Apr 10 13:55:07 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11054 * setjmp/setjmp.h: Rearranged so that jmp_buf is defined before any
11055 prototypes are used.
11056 (longjmp): Declare with jmp_buf, not __jmp_buf, to win in BSD mode.
11057 (_longjmp): #define as __longjmp, not longjmp.
11058 (_longjmp, _setjmp): Take jmp_buf args, not __jmp_buf.
11059 Call sig{set,long}jmp with SAVEMASK==0, rather than __{set,long}jmp.
11060 * _longjmp.c, _setjmp.c: #define _BSD_SOURCE before all else.
11061 (_setjmp): Call sigsetjmp, not __setjmp.
11063 * io/sys/stat.h (__fchmod, __mknod): Fixed arg types.
11065 * io/fchmod.c: Fixed typo.
11067 * time/Makefile (\n): Renamed to nl.
11069 * Makerules (native-compile): New variable.
11070 * sysdeps/generic/Makefile, sysdeps/unix/Makefile,
11071 sysdeps/unix/bsd/Makefile: Use it in cmds for generator progs.
11073 * sysdeps/unix/sysv/sysv_termio.h (_SYSV_TAB3): New; same as XTABS.
11075 * sysdeps/unix/sysv/setrlimit.c: Removed extern decl of etext (unused).
11077 * sysdeps/unix/sysv/__tcgetatr.c, sysdeps/unix/sysv/tcdrain.c,
11078 sysdeps/unix/sysv/tcflow.c, sysdeps/unix/sysv/tcflush.c,
11079 sysdeps/unix/sysv/tcgetpgrp.c, sysdeps/unix/sysv/tcsendbrk.c,
11080 sysdeps/unix/sysv/tcsetattr.c, sysdeps/unix/sysv/tcsetpgrp.c:
11081 #include <sys/ioctl.h>
11083 * sysdeps/unix/sysv/__rmdir.c, sysdeps/unix/sysv/__mkdir.c,
11084 sysdeps/posix/writev.c: #include <string.h>.
11086 * sysdeps/posix/clock.c: Removed unused variable.
11088 Thu Apr 9 01:49:39 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11092 * grp/testgrp.c: Print members correctly.
11094 * stdio/test-popen.c: Pipe to cat rather than more, and then check
11095 output file. Better error checking.
11097 * setjmp/tst-setjmp.c: Notice if we didn't jump the right number of
11100 * signal/tst-signal.c, string/testcopy.c, stdio/bug[12345].c: Print
11101 msgs that more clearly say whether we won or lost. Better error
11104 * sysdeps/generic/printf_fp.c: Completely rewritten from scratch.
11105 Now uses Steele & White's "Dragon4" algorithm to do things right.
11107 Wed Apr 8 01:08:41 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11109 * sysdeps/i386/__longjmp.c: Test for VAL==0 before clobbering regs.
11110 Wire V to AX, rather than DX. Use "a" constraint on unused operand
11111 in jmp asm, rather than global reg var, to force value into AX.
11113 Tue Apr 7 17:51:25 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11115 * posix/Makefile (headers): Added tar.h.
11116 * posix/tar.h: New file, from djm.
11118 Mon Apr 6 01:39:07 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11120 * time/tzfile.c (struct ttinfo): Made `isstd' member be unsigned
11121 char instead of 1-bit bitfield.
11123 * time/tzfile.c (__tzfile_default): New function.
11124 * time/__tzset.c: Call it when no rule is given.
11125 * time/Makefile: Install posixrules just like localtime.
11126 * time/Makeconfig (posixrules, posixrules-file): New config vars.
11128 * time/time.h (struct tm): Add `tz_gmtoff', `tz_zone'.
11129 * time/localtime.c: Set those members.
11131 * sysdeps/ieee754/__drem.c: XOR the signs of X and the result,
11132 rather than setting the sign of the result to that of X.
11134 * sysdeps/unix/bsd/make-local_lim.c: Don't do MAXUPRC or MAXLINK if
11135 <sys/param.h> didn't define them.
11137 * sysdeps/posix/__sigvec.c: Fixed braino: SA_ONSTACK should be
11140 * pwd/getpw.c, pwd/putpwent.c: Use %u fmt for uid and gid (which are
11143 * time/time.h (tzname, daylight, timezone): Don't #define to __.
11144 * time/tzfile.c, time/__tzset.c, time/localtime.c, time/strftime.c
11145 [! HAVE_GNU_LD]: #define __ to plain for above three vars.
11147 Thu Apr 2 03:39:04 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11149 * locale/Makefile (routines): Add localeconv.
11151 * sysdeps/i386/jmp_buf.h: Removed `__dx' elt; replaced with `__pc'.
11152 __bp and __sp are PTRs.
11153 * sysdeps/i386/setjmp.c: Rewritten. Use global reg vars to save regs.
11154 Use arithmetic on address of arg to get caller's PC, BP, and SP.
11155 * sysdeps/i386/__longjmp.c: Rewritten. Use global reg vars to
11158 Wed Apr 1 23:13:57 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11160 * Moved sysdeps/unix/i386/{bsd,sysv} to
11161 sysdeps/unix/{bsd,sysv}/i386, and updated Implies files.
11162 Implied dirs come before parents, and we want unix/i386 before
11165 * io/chown.c: Fixed types in fn alias.
11167 Wed Apr 1 14:18:58 1992 Torbjorn Granlund (tege@mole.gnu.ai.mit.edu)
11169 * sysdeps/generic/memcmp.c
11170 (memcmp_common_alignment, memcmp_not_common_alignment):
11171 Move back do0 label to its original position, after the loop.
11172 Add comment before do0 labels.
11173 * sysdeps/generic/wordcopy.c (_wordcopy_fwd_aligned): Indentation.
11174 Add comment before do0 labels.
11176 Wed Apr 1 02:16:19 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11178 * sysdeps/unix/sysv/Makefile [subdir==misc]: Generate sysdep header
11179 termio.h from sysv_termio.h.
11181 * sysdeps/generic/make_siglist.c: New file.
11182 * sysdeps/generic/signame.[ch]: Symlink'd from /gd/gnu/lib.
11183 * sysdeps/generic/Makefile: Generate siglist.c with above.
11184 * sysdeps/generic/Dist: Add make_siglist.c, signame.[ch].
11186 * sysdeps/unix/bsd/Makefile (before-compile): Define properly as a
11189 * sysdeps/unix/bsd/make_siglist.c: Generate #define _sys_siglist
11190 sys_siglist #ifndef HAVE_GNU_LD.
11191 * stdio/psignal.h, string/strsignal.h [! HAVE_GNU_LD]:
11192 #define _sys_siglist sys_siglist.
11194 * sysdeps/unix/sysv/signum.h (SIGCHLD): Changed #.
11195 (SIGUSR1, SIGUSR2, SIGPWR): Added.
11198 * sysdeps/unix/sysv/utmp.h: New.
11200 * sysdeps/unix/bsd/getlogin.c: Moved to sysdeps/unix/getlogin.c.
11202 * sysdeps/unix/sysv/r4/bsddir.h, sysdeps/unix/sysv/r4/readdir.c,
11203 sysdeps/unix/sysv/r4/closedir.c, sysdeps/unix/sysv/r4/rewinddir.c,
11204 sysdeps/unix/sysv/r4/opendir.c, sysdeps/unix/sysv/r4/sys_getdents.S,
11205 sysdeps/unix/sysv/r4/Makefile: New.
11207 * sysdeps/unix/sysv/tcflow.c: New.
11209 * sysdeps/unix/sysv/sysv_termio.h: Add lots of bits; VMIN and VTIME
11211 * sysdeps/unix/sysv/__tcgetatr.c, sysdeps/unix/sysv/tcsetattr.c: Use
11212 VMIN and VTIME elts from sysv termio struct.
11214 * sysdeps/unix/sysv/__gethstnm.c: New.
11216 * sysdeps/unix/sysv/local_lim.h (NGROUPS_MAX): Define as 0.
11218 * sysdeps/unix/sysv/fcntlbits.h (struct __flock): Changed l_pid to
11219 short; added l_sysid.
11221 * sysdeps/unix/sysv/__sigact.c: New.
11223 * sysdeps/unix/sysv/r4/__access.S: New; just #include bsd/__access.S.
11225 * sysdeps/unix/sysv/Makefile: Fixed typo: sysdep-routines =>
11228 * sysdeps/unix/i386/sysv/__sigret.S,
11229 sysdeps/unix/i386/sysv/signal.S: New.
11231 * signal/Makefile (routines): Added sigret, __sigret.
11232 * signal/sigret.c: New; fn alias to __sigreturn.
11233 * sysdeps/stub/__sigret.c: New.
11235 * sysdeps/unix/i386/sysdep.h (PSEUDO): Use hard-coded numbers for
11236 lcalls insn--GAS bug.
11238 * sysdeps/unix/bsd/readdir.c (D_NAMLEN): New macro; define if not
11239 already defined, to return length of a direct elt.
11241 * sysdeps/stub/__getgrps.c: #include <limits.h>; if NGROUPS_MAX is
11242 defined as 0, always return 0, and no stub warning.
11244 * sysdeps/posix/system.c: Don't fail if sigprocmask fails with ENOSYS.
11246 * sysdeps/posix/sysd-stdio.c, sysdeps/stub/sysd-stdio.c: Doc fix.
11248 * sysdeps/posix/__gettod.c: Use CONST where appropriate and not
11251 * sysdeps/i386/memchr.c, sysdeps/i386/strlen.c: Changed `repnz' to
11254 * stdio/fgets.c: Notice returned char from __fillbf in length calc.
11256 * misc/sys/ioctl.h: Always define `struct sgttyb'.
11258 * stdlib/alloca.h: #undef __alloca, too.
11259 Always #define alloca == __alloca.
11261 * signal/signal.h (__kill): Fixed type in decl.
11262 * posix/unistd.h (setgid): Fixed type in decl.
11263 * posix/setpgid.c, posix/setgid.c, signal/kill.c, posix/fork.c,
11264 posix/vfork.c, posix/getpid.c, posix/getppid.c, posix/setsid.c:
11265 Fixed DEFUNs in fn aliases.
11266 * pwd/getpw.c: Fixed type in defn.
11268 Mon Mar 30 17:06:54 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11270 * sysdeps/generic/printf_fp.c: In %f, decrement PREC for each
11271 leading zero in the fractional part.
11273 * sysdeps/ieee754/ieee754.h: Made all elts unsigned.
11274 * sysdeps/ieee754/__drem.c: Return NAN if Y is zero.
11275 * sysdeps/ieee754/ldexp.c: Rewritten.
11276 * sysdeps/ieee754/__logb.c: Handle denormalized numbers.
11278 * posix/sys/wait.h: #include <endian.h>
11280 * sysdeps/ieee754/fl.h: Fixed NAN and HUGE_VAL bit patterns; added
11281 code for little endian.
11283 * sysdeps/generic/frexp.c: Add one to exponent to give the result a
11284 digit before the point. Use negative exponent rather than division.
11286 * math/__finite.c: Return zero for NaN.
11287 * math/math.h: Doc fix for same.
11289 * stdio/__getdelim.c: Correctly notice when the buffer is full.
11291 * sysdeps/unix/bsd/opendir.c: Pass arg to fcntl F_SETFD by value,
11294 * time/__tzset.c: Correct default rule: M4.1.0,M10.5.0.
11296 * time/__tzset.c: Move ptr past Mfoobar syntax after parsing it.
11298 * time/__tzset.c: Properly parse the DST offset (or its absence).
11300 * sysdeps/unix/make_errlist.c: Write an #ifdef HAVE_GNU_LD, rather
11301 than testing it when compiling make_errlist.
11303 * time/tzfile.c (__tzfile_read): Convert transitions to host byte
11306 * Makeconfig (localtime-file): New config var.
11307 * time/Makefile (tzfile.o, zic.o): Use it for TZDEFAULT.
11309 * stdio/Makefile (tests): Added tstgetline.
11310 * stdio/tstgetline.c: New; test for getline.
11312 * Makeconfig (sysincludedir): Define and document.
11313 * sysdeps/unix/snarf-ioctls, sysdeps/unix/Makefile: Use
11314 ${sysincludedirs} in place of hard-coded /usr/include.
11316 Fri Mar 27 13:33:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11318 * string/Makefile (headers): Added endian.h.
11320 * sysdeps/ieee754/__drem.c: Fixed typo which made X and Y be the
11323 * sysdeps/generic/__lstat.c: #include <gnu-stabs.h>
11325 * stdio/internals.c (flushbuf): Increment target as well as offset
11326 when we write out the single char.
11328 * grp/Makefile (tests): Add testgrp (formerly bug1).
11330 Thu Mar 26 14:59:45 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11332 * stdio/fread.c: Don't read directly when we need to seek first.
11334 Wed Mar 25 02:34:49 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11336 * sysdeps/unix/bsd/alarm.c: There are 1000000 usecs in a sec.
11338 * sysdeps/unix/bsd/sun/ptrace.c: Removed.
11340 * stdio/fgets.c: For unbuffered stream, don't return EOF after
11342 Added missing parens.
11344 Tue Mar 24 18:31:07 1992 Torbjorn Granlund (tege@hal)
11346 * sysdeps/i386/memset.c: Move code that puts C in all four nibbles of
11347 X inside `if' statement. Include sysdeps/i386/memset.c (not bzero).
11348 * sysdeps/i386/memchr.c: Rewrite to be faster. Include
11349 sysdeps/generic/memchr.c (not bzero).
11351 Tue Mar 24 01:21:32 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11353 * io/Makefile (routines): Add getdirname.
11354 * posix/unistd.h [__USE_GNU]: Declare getdirname.
11355 * io/getdirname.c: New.
11357 * Makeconfig (stddef.h): Define and document.
11358 * Makefile (headers): Use $(stddef.h) for stddef.h.
11360 Mon Mar 23 18:04:56 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11362 * sysdeps/posix/mktemp.c: Do PID % 100000 for 5 digits.
11364 * time/Makefile (tzfiles): Remove pacificnew; it won't compile.
11365 (distribute): Put it here instead.
11367 * stdio/printf-prs.c [HAVE_LONGLONG]: Fixed missed var name change
11370 * stdio/fgets.c: Return NULL when we get EOF.
11372 * posix/execvp.c, sysdeps/posix/putenv.c [! HAVE_GNU_LD]: Define
11373 __environ as environ.
11375 * sysdeps/unix/bsd/Makefile, sysdeps/unix/Makefile: In rules to
11376 compile generator programs, cd into $(objdir) first to avoid
11377 braindead cc clobbering foo.o in cwdir.
11379 * sysdeps/m68k/setjmp.c: Deref fpregs array in asm.
11381 * time/Makefile (zones-%): Fixed generated rules.
11383 * math/Makefile (libm.a): Use r cmd to ar.
11385 * time/Makefile (zones-%): In echo commands, put \\\\n outside of
11386 quotes instead of \\n inside single quotes. SysV echo is braindead.
11388 * io/fchown.c, io/fchmod.c, misc/bsd-compat.c: Fixed DEFUNs in fn
11391 * time/Makefile (echo-zonenames): New target; tell user what all
11392 timezones defined in all zone files are.
11393 * Makeconfig (localtime): Comment about using above.
11395 Sun Mar 22 18:34:02 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11397 * time/australasia (NZ): Updated rules.
11399 Sat Mar 21 01:00:49 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11401 * stdio/printf-prs.c [__GNUC__]: Define HAVE_LONGLONG.
11403 Fri Mar 20 00:35:36 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11407 * stdio/Makefile (routines): Add __getdelim, __getline.
11409 * sysdeps/unix/i386/start.c: No ../ in #include file name.
11411 * sysdeps/posix/sysd-stdio.c, sysdeps/stub/sysd-stdio.c
11412 (__stdio_seek): Doc fix.
11414 * sysdeps/posix/mk-stdiolim.c: Add one to L_tmpnam, for the null
11417 * sysdeps/posix/__dup2.c: Use an extra fcntl call to check that the
11418 first fd is valid. Close the second fd before doing the dup.
11420 * pwd/pwdread.c, grp/grpread.c: Use __getline. Ignore lines
11423 * Makeconfig (objdir): If $(ARCH) starts with a slash, don't prepend
11426 Thu Mar 19 21:36:57 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11428 * Makefile (install-lib): Add Mcrt1.o.
11429 (Mcrt1.o): Create empty file.
11431 Wed Mar 18 16:00:18 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11433 * Makeconfig (+link): Use $(libdir) for gnulib.
11435 Tue Mar 17 20:12:35 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11437 * math/bsd/common_source/mathimpl.h: Include <endian.h>.
11438 [__LITTLE_ENDIAN]: #define national.
11440 * stdio/__vfscanf.c: EOF at end of string is not
11443 * stdio/tstscanf.c: Added new sscanf test.
11445 * stdio/vfprintf.c: For %#x, print 0x after padding 0s, not before.
11447 * stdio/fputs.c: Reverse size args to fwrite and test for returning
11448 LEN, rather than 1, so 0-length wins.
11450 * io/gnu/fcntl.h: Moved to sysdeps/unix/bsd/fcntlbits.h.
11451 * io/Makefile (headers), io/fcntl.h: gnu/fcntl.h -> fcntlbits.h.
11452 * sysdeps/stub/fcntlbits.h, sysdeps/unix/sysv/fcntlbits.h: New.
11454 * stdio/fopen.c (__getmode): Don't fall through in switch after 'a'
11457 * locale/C-ctype_ct.c (__ctype_b_C): Use symbolic constants.
11458 9..12 are not _NOgraph.
11460 Tue Mar 17 19:04:01 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu)
11462 * string/testcopy.c: Fix typo in comment.
11464 Tue Mar 17 19:57:49 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11466 * sysdeps/generic/strstr.c, string/string.h, string/tester.c
11467 (strstr): Arguments were reversed.
11469 Tue Mar 17 18:52:39 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu)
11471 * sysdeps/i386/memcopy.h (WORD_COPY_BWD): Divide nbytes by 4.
11472 * sysdeps/i386/memchr.c: Rewrite. Handle zero length correctly.
11473 Don't ask gcc to allocate eax to two regs.
11475 Tue Mar 17 17:31:06 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11477 * posix/unistd.h (getpagesize): Declare as size_t.
11479 * Makeconfig (CC): Define unless origin is default.
11481 * stdio/__getdelim.c: Be sure to leave room for the terminating null.
11483 * string/testcopy.c: New version from tege.
11485 * malloc/dist-README: Changed mailing list addr to bug-glibc.
11487 * sysdeps/unix/bsd/__sigproc.c: Use right mask for SIG_UNBLOCK.
11489 * Makefile, Rules (clean, mostlyclean): Put - before rm commands.
11491 Tue Mar 17 11:14:40 1992 Torbjorn Granlund (tege@hal.gnu.ai.mit.edu)
11493 * sysdeps/rs6000/memcopy.h (BYTE_COPY_BWD): Assign __nbytes.
11494 * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Copy memory, not just
11495 pointers. Clean up switch expression.
11497 Mon Mar 16 05:09:23 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11499 * posix/wordexp.c: New.
11501 * time/tzfile.c (__tzfile_read): Don't die if some of the sections
11502 of the datafile are empty.
11504 * stdio/getline.c, stdio/getdelim.c: Moved to
11505 __getline.c/__getdelim.c.
11506 New files with fn aliases.
11507 * stdio/stdio.h (__getline, __getdelim): Declare.
11509 * time/Makefile (zonenames): Hair to find the names of zones
11510 described by $(tzfiles).
11511 (install-data): Install zoneinfo/$(zonenames).
11512 Rules to make zones from tzfiles.
11513 [localtime] (zoneinfo/localtime): Make from zoneinfo/$(localtime).
11514 * Makeconfig (localtime): New user-frobbable variable.
11516 Sun Mar 15 00:01:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11518 * Makerules (sysdep-Makefile): Do if ... else true to avoid bogus
11521 * Makefile: Denewlinify +sysdep-subdirs after including sysd-dirs.
11523 * sysdeps/vax/__infnan.c [!__GNUC__]: Error.
11525 * zic.c, scheck.c, emkdir.c, ialloc.c, private.h, tzfile.h: Snarfed
11526 from localtime3 dist.
11527 * time/Makefile (others): Added zic.
11528 (distribute): Added private.h, emkdir.c, ialloc.c, scheck.c.
11529 (install): Defined: zic, zdump.
11531 * Makeconfig (bindir): Define.
11532 * Makerules: Add rule to install $(install) in $(bindir).
11533 (+install): Include $(install) in $(bindir).
11535 * sysdeps/unix/Makefile: Moved siglist.c rules to unix/bsd/Makefile.
11536 * sysdeps/unix/make_siglist.c: Moved to bsd/.
11537 * sysdeps/unix/Dist: Remove it.
11538 * sysdeps/unix/bsd/Dist: Add it.
11540 * malloc/Makefile (malloc/gmalloc.c): Depend on headers and sources.
11542 * sysdeps/unix/bsd/sun/sun4/__sigvec.S: Doc fix.
11544 * sysdeps/stub/stty.c, sysdeps/stub/gtty.c: Include <stddef.h>.
11546 * sysdeps/unix/sysv/__fstat.c: Include sysv_stat.h.
11548 * misc/bsd-compat.c: Define _BSD_SOURCE rather than __FAVOR_BSD.
11549 (longjmp): Use function_alias_void.
11551 * time/Makefile (tzfile.o): Compile with
11552 -DTZDIR='"$(datadir)/zoneinfo"'.d
11554 Sat Mar 14 23:26:46 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
11556 * Makeconfig (INSTALL_DATA, INSTALL_PROGRAM, INSTALL): Don't define
11557 if already defined.
11559 * setjmp/longjmp.c: Use function_alias_void.
11561 * gnu-stabs.h (function_alias_void): New macro.
11563 * gnu-stabs.h [!HAVE_GNU_LD] (function_alias): Fixed not to loop.
11565 Fri Mar 13 17:20:19 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11567 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Include null
11568 terminator in length calculation.
11570 * stdio/fgets.c: Be sure to return NULL on error/eof for unbuffered
11571 stream. If N==1, don't write the first char if !seen.
11572 When the buffer is empty, notice the effect of __fillbf after
11573 calling it, avoiding a (costly) no-op iteration.
11574 Don't return NULL for reading no chars; only for EOF or error.
11575 Don't write terminator at beginning of S if eof on first char.
11577 * malloc/Makefile (libmcheck.a), Makefile (crt0.o): Remove target
11578 first; don't use -f to ln.
11580 * posix/execl.c, posix/execv.c, sysdeps/posix/getenv.c,
11581 sysdeps/posix/system.c [HAVE_GNU_LD]: #define __environ environ
11583 * posix/unistd.h [__OPTIMIZE__] (execv): Removed defn. Can't know
11584 whether to use __environ or environ.
11586 * io/fchown.c, io/chown.c, io/open.c, misc/select.c,
11587 signal/sigvec.c, time/adjtime.c: Fixed DEFUNs in fn aliases.
11589 * time/__tzset.c: Don't dereference NULL if getenv returns it.
11591 Thu Mar 12 16:01:33 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11593 * sysdeps/ieee754/sqrt.c: Replaced undefined var ref `k' with constant.
11595 * sysdeps/i386/__longjmp.c: #include <stdlib.h>.
11597 * time/tzfile.c (__tzfile_compute): Use types[0] if TIMER falls
11598 between transitions[0] and transitions[1].
11599 Always set __tzname[INFO->isdst] to the name for INFO.
11601 * sysdeps/i386/__longjmp.c: Changed register names for gcc; eax/%eax
11604 * sysdeps/unix/snarf-ioctls: Avoid infinite recursion.
11606 Wed Mar 11 00:16:18 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11610 * Makefile (munch-init.c): Made $(objpfx)munch-init.c.
11612 * signal/sigvec.c, signal/sigaction.c, stdio/vsscanf.c: Fixed DEFUNs
11615 * sysdeps/m68k/68881/68881-switch/switch.c: Merged vars have_fpu and
11618 * sysdeps/mach/i386/start.c, sysdeps/vax/setjmp.c,
11619 sysdeps/vax/__longjmp.c, sysdeps/vax/__infnan.c,
11620 sysdeps/unix/start.c, sysdeps/unix/bsd/sun/sun4/sigtramp.c,
11621 sysdeps/unix/bsd/sun/sun4/start.c,
11622 sysdeps/unix/bsd/hp9k3bsd/start.c, sysdeps/sparc/sqrt.c,
11623 sysdeps/rs6000/ffs.c, sysdeps/m88k/ffs.c, sysdeps/m68k/setjmp.c,
11624 sysdeps/m68k/__longjmp.c, sysdeps/m68k/68881/printf_fp.c,
11625 sysdeps/m68k/68881/atan2.c, sysdeps/m68k/68881/__logb.c,
11626 sysdeps/m68k/68881/68881-switch/switch.c, sysdeps/m68k/ffs.c,
11627 sysdeps/i386/memset.c, sysdeps/i386/memchr.c, sysdeps/i386/ffs.c,
11628 sysdeps/i386/bzero.c, sysdeps/i386/__longjmp.c, sysdeps/am29k/ffs.c
11629 [! __GNUC__]: Either include the generic (or in some cases, ieee754)
11630 version, or do a #error.
11632 * Rules: Null out `objects' at end to shrink environment some.
11633 (+objs): Define with := from $(objects).
11634 (clean): Use that instead of $(objects).
11636 * sysdeps/i386/setjmp.c: Doubled % where it wanted to be literal.
11638 * posix/getgrps.c, io/flock.c, io/mkdir.c, io/read.c, io/write.c,
11639 io/stat.c, misc/getdents.c, misc/mknod.c, misc/utimes.c: Fixed
11640 DEFUNs in fn aliases.
11642 * sysdeps/unix/bsd/hp9k3bsd/sysdep.S: Use # instead of kludge cookie.
11644 * posix/getegid.c: Fixed type in DEFUN.
11646 * time/tzfile.c (__tzfile_compute): If TIMER is before any
11647 transition in the file, use the first non-DST type, rather than the
11648 type of the first transition in the file.
11650 Tue Mar 10 20:01:55 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11652 * configure: Take optional -nfp arg.
11653 (news, sun3, hp300): Prepend m68k/68881 unless -nfp is given.
11654 * sysdeps/unix/bsd/hp9k3bsd/Implies: Don't specify 68881.
11656 * stdio/getdelim.c: When the buffer is empty, notice the effect of
11657 __fillbf after calling it, avoiding a (costly) no-op iteration.
11659 * sysdeps/vax/__memccpy.c: Fixed comments.
11661 * stdio/fmemopen.c: Set all fns and seen bit before we might call
11662 something that would care (fclose).
11664 * configure (sun3, sun-3): Mean sun3os4, not sun3os3.
11665 (sun3os3): Use just unix/bsd/sun/sun3/os3.
11666 * sysdeps/unix/bsd/sun/sun3/os3: New directory.
11667 (sysdeps/unix/bsd/sun/sunos3/__wait.S): Moved to there.
11668 * sysdeps/unix/bsd/sun/sun3/sysdep.h: Fixed; took hp9k3bsd/sysdep.h
11669 and changed movel foo, d0 to pea foo for syscall no.
11670 * sysdeps/unix/bsd/sun/sun3/__brk.S: Fixed pea addr mode.
11671 * sysdeps/unix/bsd/sun/sun3/sethostid.S: errnos.h, not gnu/errno.h.
11672 Use .stabs directly, not gnu-stabs.h (which uses `asm').
11673 * sysdeps/m68k/setjmp.c: Changed asm for first moveml, so it works
11675 * sysdeps/unix/bsd/sun/sun3/start.c: Removed ../ from #include path.
11677 Sun Mar 8 16:33:33 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11679 * misc/makefile (headers): Added stab.h, stab.def.
11680 * Many files: Changed __GNU_STAB__ to HAVE_GNU_LD.
11682 Sat Mar 7 21:21:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11684 * time/mktime.c: Normalize the struct values before checking for out
11687 Fri Mar 6 11:43:35 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11689 * sysdeps/ieee754/ldexp.c: New.
11691 * stdio/internals.c (flushbuf): When priming the stream for writing,
11692 advance the target pos to account for chars gotten from the buffer.
11694 * sysdeps/generic/Makefile: For math routines, don't filter out
11697 * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Fixed bugs.
11699 * misc/Makefile (routines): Remove flock.
11701 * stdlib/strtod.c: Fixed typo in checking for exponent overflow.
11702 Do set *ENDPTR on overflow or underflow.
11704 * sysdeps/sparc/fl.h: Removed. Should use ieee754 version.
11706 * sysdeps/generic/Makefile: For math routines, don't filter out
11707 __copysign, __scalb, __drem and __logb; and don't add support.
11709 * sysdeps/ieee754/__drem.c: New.
11710 * sysdeps/ieee754/sqrt.c: New.
11711 * sysdeps/stub/__drem.c: New.
11712 * sysdeps/stub/sqrt.c: New.
11713 * sysdeps/stub/__logb.c: New.
11714 * sysdeps/ieee754/__logb.c: New.
11716 * sysdeps/ieee754/__infnan.c: Include <float.h> and use NAN macro
11717 rather than cooking one up by hand.
11719 * sysdeps/unix/bsd/getlogin.c: Open /dev/tty, rather than using stdin.
11720 Make sure the name is always null-terminated.
11722 Thu Mar 5 17:11:46 1992 Roland McGrath (roland@geech.gnu.ai.mit.edu)
11724 * sysdeps/m68k/68881/__scalb.c: Removed.
11725 * sysdeps/m68k/68881/__math.h: Removed defn of __scalb.
11726 * math/math.h [__OPTIMIZE__]: Define __scalb to be ldexp.
11727 * math/__scalb.c: New; fn alias for ldexp.
11729 * stdio/Makefile (tests): Added bug4 and bug5.
11730 * stdio/bug4.c, stdio/bug5.c: Test cases from reported bugs just fixed.
11732 * stdio/internals.c (flushbuf): If nothing was written by the user,
11733 but there is previously gotten data, don't write anything out.
11735 * stdio/internals.c (seek_to_target): Call __stdio_check_offset first.
11737 * sysdeps/unix/sysv/sysv_termio.h: New file.
11738 * sysdeps/unix/sysv/Dist: Include it.
11739 * sysdeps/unix/sysv/tcsetattr.c, sysdeps/unix/sysv/tcsetpgrp.c,
11740 sysdeps/unix/sysv/tcsendbrk.c, sysdeps/unix/sysv/tcgetpgrp.c,
11741 sysdeps/unix/sysv/tcflush.c, sysdeps/unix/sysv/tcdrain.c,
11742 sysdeps/unix/sysv/__tcgetatr.c: New files.
11744 * stdio/internals.c (fillbuf): Don't set the put_limit on writable
11745 streams. Wait for first write attempt to prime them, so we don't
11746 flush the unchanged data unnecessarily.
11748 * stdlib/exit.c: Look for NULL terminator on ld set, rather than
11751 * Makefile (headers): Remove stdarg.h and varargs.h.
11752 Users will get them from GCC.
11753 * stdio/printf.h: Include <stdarg.h> to use va_list.
11754 * stdio/stdio.h: Don't include <stdarg.h> with magic.
11755 Use PTR in place of __va_list in prototypes.
11756 * stdio/__vsscanf.c, stdio/vscanf.c, stdio/vfscanf.c,
11757 stdio/__vfscanf.c, stdio/vdprintf.c, stdio/vasprintf.c,
11758 stdio/vsprintf.c, stdio/vsnprintf.c, stdio/vprintf.c,
11759 stdio/vfprintf.c: Fixed DEFUNs.
11761 * sysdeps/ieee754/ieee754.h: New file; declares union ieee754_double.
11762 * sysdeps/ieee754/Dist: Add it.
11763 * sysdeps/ieee754/__copysign.c, sysdeps/ieee754/__infnan.c,
11764 sysdeps/ieee754/__isinf.c, sysdeps/ieee754/__isnan.c,
11765 sysdeps/ieee754/__printf_fp.c: Use it.
11767 * sysdeps/unix/sysv/uname.c: New.
11768 * sysdeps/unix/sysv/__utssys.S: New.
11769 * sysdeps/unix/sysv/Makefile (routines): Add __utssys.
11770 * sysdeps/unix/sysv/Dist: Add __utssys.S.
11772 * sysdeps/unix/sysv/__rmdir.c: New; runs `rmdir' shell command.
11774 * sysdeps/unix/sysv/__mkdir.c: New; runs `mkdir' shell command.
11776 * sysdeps/generic/__lstat.c: New; fn alias for __stat.
11778 * sysdeps/unix/sysv/__gethostname.c: New; uses uname.
11780 * sysdeps/unix/Makefile (sys/params.h): Protect with
11781 _GNU_SYS_PARAM_H, in case the system's file uses _SYS_PARAM_H itself.
11783 * stdio/internals.c (__stdio_check_offset): Call init_stream to make
11786 * stdio/fread.c: Don't call __fillbf if the put_limit is past the
11787 beginning of the buffer; only if !seen, no buffer, or pushed back.
11789 * stdio/fopen.c (__getmode): Set create bit for "a" mode.
11791 * io/mkdir.c: #undef mkdir before fn alias.
11793 * time/tzfile.c (__tzfile_compute): Don't decrement I if it's zero.
11795 * Makefile (crt0.o): Use ln -f.
11797 * math/Makefile (install): Install libm.a.
11798 (libm.a): Make an empty archive.
11800 Wed Mar 4 19:54:50 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
11802 * README.template: Added note about long filenames in dist.
11804 * io/Makefile (routines): flock -> __flock
11805 * flock.c: New file, fn alias.
11806 * sysdeps/unix/bsd/flock.S: Renamed to sysdeps/unix/bsd/__flock.S;
11808 * sysdeps/mach/hurd/flock.c: Renamed to sysdeps/mach/hurd/__flock.c;
11810 * sysdeps/stub/flock.c: Renamed to sysdeps/stub/__flock.c; made
11813 * time/time.h (__isleap): Fixed; every 400th year is not a leap
11814 year, not every 1000th.
11816 * stdio/internals.c (flushbuf): Increment the target position the
11817 amount the user wrote into the buffer, not the amount we wrote out
11818 to the file (which is greater if we read a block and modified it
11821 * stdio/internals.c (flushbuf): Set get_limit to the beginning of
11822 the buffer for all streams, except when we have just read in a block.
11824 Sat Feb 29 15:56:22 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11826 * posix/Makefile (others): Removed logname, id.
11827 * time/Makefile (others): Removed date.
11829 * sysdeps/unix/bsd/sun/sun4/start.c: Make an alias called `start'
11830 (no leading underscore, so it can't conflict with C symbols) for
11833 Thu Feb 27 14:32:20 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11835 * set-init.c: Look for NULL terminator on set. ld is broken and
11836 doesn't set the length word correctly.
11838 * setjmp/_longjmp.c, signal/sigaction.c, signal/sigvec.c,
11839 signal/ssignal.c, string/bcmp.c, time/setitmr.c, posix/execve.c,
11840 posix/getegid.c, posix/geteuid.c, posix/getgid.c, posix/getuid.c,
11841 posix/getgrps.c, posix/setuid.c, posix/wait3.c, posix/wait4.c,
11842 posix/waitpid.c, io/lseek.c, io/open.c, io/read.c, io/write.c,
11843 resource/getrusage.c, misc/getpgsz.c, misc/gethstnm.c,
11844 misc/select.c: Fixed DEFUNs in fn aliases.
11846 Wed Feb 26 00:20:25 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11848 * sysdeps/generic/Makefile (routines): Add asincos.
11850 * time/tzfile.c (__tzfile_compute): Set __tzname properly, so isdst
11851 is the right index into it.
11853 Tue Feb 25 01:42:16 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11855 * sysdeps/unix/bsd/sun/sun4/sysdep.h (ENTRY): .align 2, not .align 4.
11856 This one is powers of two.
11858 * time/__tzset.c: If TZ is :FILE, try FILE and if __tzfile_read
11859 fails, then use defaults.
11861 * sysdeps/generic/Makefile (routines): Add sincos.
11863 * sysdeps/posix/cuserid.c: Set the result to the empty string on
11866 * string/string.h, string/strings.h, sysdeps/i386/memchr.c: Fixed
11867 spelling in comment.
11869 * string/makefile (tests): Include (uncomment) testcopy. We do have
11870 papers for it from tege.
11872 * malloc/dist-README: Fixed mailing list addr.
11874 * resource/sys/vtimes.h (struct vtimes): Renamed vm_outblk to
11875 vm_oublk; fixed comment.
11876 * sysdeps/generic/vtimes.c: Renamed here too.
11878 * Make-dist (README): Depend on version.c.
11880 Tue Feb 18 18:14:50 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11884 * time/tzfile.c (__tzfile_compute): Fixed transition comparison.
11886 * sysdeps/unix/bsd/sun/sun3/Makefile: Fixed typo.
11888 Mon Feb 17 05:04:00 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11892 * Makefile (distribute): Add Q+A.
11893 * Q+A: New doc file from rich@cygnus.com.
11895 * malloc/Makefile (distribute): Add mcheck-init.c.
11897 Mon Feb 17 00:39:38 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11899 * sysdeps/unix/sysv/utime.c: Removed.
11900 * sysdeps/unix/sysv/utime.S: New file.
11902 * sysdeps/unix/sysv/signum.h: New file.
11904 * sysdeps/unix/sysv/local_lim.h: New file.
11906 * sysdeps/unix/sysv/sysv_stat.h: New file.
11907 * sysdeps/unix/sysv/__stat.c, sysdeps/unix/sysv/__fstat.c: New files.
11908 * sysdeps/unix/sysv/Makefile: New file.
11909 (+sysdep-routines): Define to sys_stat and sys_fstat.
11910 * sysdeps/unix/sysv/sys_stat.S, sysdeps/unix/sysv/sys_fstat.S: New
11912 * sysdeps/unix/sysv/Dist: Created to include sysv_stat.h,
11913 sys_stat.S, and sys_fstat.S.
11915 * sysdeps/stub/__setreuid.c: Include <sys/types.h>.
11917 * sysdeps/posix/__sigblock.c: Fixed typo.
11919 * stdio/internals.c (__flshfp): Don't return EOF if at EOF; only
11922 * signal/gnu/signal.h: Move #include <signum.h> outside repeat #ifdef.
11924 * sysdeps/unix/sysv/filebits.h: Created.
11926 * misc/Makefile (distribute): Define to bsd-compat.c.
11928 * misc/Makefile (headers): Remove filebits.h.
11929 * io/Makefile (headers): Put it here.
11931 * Makefile (+posix_dirs): Add io.
11932 * io/Makefile: New file for new subdir.
11933 Contains many headers and routines moved from posix.
11934 * posix/Makefile: Remove many headers and routines now in io.
11935 * Moved many files from posix to io.
11937 * stdlib/alloca.h: Get size_t from stddef.h.
11939 * misc/bsd-compat.c (getgroups): Removed. Not needed, because gid_t
11940 is now the same size as int.
11942 * Makefile (distribute): Include NOTES.
11943 * NOTES: New file, infoized node from intro.texinfo about the
11944 feature-test macros.
11945 * README.template: Mention NOTES.
11947 * sysdeps/unix/bsd/sun/sun3/Makefile: include hp9k3bsd version.
11949 * Makeconfig: Use $(..) for config.status.
11951 * configure (i386-sysv): unix/i386/sysv, not unix/sysv/i386.
11952 * unix/i386/sysv/Implies: unix/sysv, not unix/i386.
11954 Sun Feb 16 00:42:53 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11958 * posix/Makefile (headers): Remove confstr.h.
11959 (distribute): Define this instead to contain it.
11961 * ansidecl: Added copyright notice.
11963 * stdio/getdelim.c: New file.
11964 * stdio/getline.c (getsome): Renamed to getdelim and moved there.
11965 * stdio/Makefile (routines): Add getdelim.
11966 * stdio/stdio.h: Declare getdelim.
11968 * misc/gnu/file.h: Moved to sysdeps/unix/bsd/filebits.h.
11969 * sysdeps/stub/filebits.h: New file.
11970 * misc/Makefile: gnu/file.h is now filebits.h.
11971 * posix/fcntl.h: Changed #include.
11973 * stdio/getline.c (getsome): If MAX_CANON isn't defined, use a default.
11974 Don't leak old *LINEPTR storage if *N < 2.
11975 Don't bang *LINEPTR to NULL if realloc fails.
11977 * Makerules: Don't use override when nulling out sources, routines,
11978 and aux if they came from the environment. Better not make with -e.
11980 * Makefile (sysdirs, Sysnames): Put outside of ifndef sysdirs.
11982 * string/Makefile (tests): No testcopy, pending papers.
11984 * Makefile (headers): No sysdep.h.
11985 (distribute): Here instead.
11986 (no-install): No longer needed.
11988 Sat Feb 15 17:10:38 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
11990 * Makefile (distribute): Add INSTALL.
11991 * Make-dist (INSTALL): Make from manual/maint.texinfo.
11992 (README): Make from README.template.
11994 * Makefile (+other-dirs): Removed inet.
11995 * sysdeps/unix/inet/Subdirs: Created, adding inet.
11997 * sysdeps/unix/sysv/setrlimit.c: Include stddef and errno.h.
11999 * math/drem.c, setjmp/longjmp.c, malloc/cfree.c, string/bcmp.c,
12000 time/getitmr.c, misc/ioctl.c: Fixed defuns in function_alias.
12002 * Makefile (headers): Put sysdep.h back.
12003 (no-install): And define this to it.
12004 * Makerules (+install): Filter out $(no-install) from the list.
12006 * string/testcopy.c: New test program for bcopy from tege.
12007 * string/Makefile (tests): Add it.
12009 * Makefile (sysdep-subdirs): Renamed to sysd-dirs.
12011 * Make-dist (tardir): Omit the release name; it made names too long.
12013 Sat Feb 15 12:53:02 1992 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu)
12015 * sysdeps/rs6000/memcopy.h (WORD_COPY_FWD, WORD_COPY_BWD):
12016 Use CTR register for looping (speed enhancement). Don't emit
12017 labels, jump relative from `$' instead (makes multiple expansions
12018 possible). Clean up indentation of asm code (were different in each
12020 * sysdeps/rs6000/memcopy.h (WORD_COPY_BWD):
12021 Add asm output specs (were missing completely).
12023 * sysdeps/generic/{memcpy.c,memmove.c}: Make DSTP and SRCP unsigned
12024 (safer with non-ANSI compilers).
12026 Fri Feb 14 01:52:12 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
12030 * Makefile, Rules: Changed clean and clobber targets into
12031 mostlyclean, clean, and realclean.
12033 * Makeconfig: Added comments describing objdir/Makeconfig and
12034 editting Makeconfig.
12035 (prefix, libdir, INSTALL, INSTALL_DATA): New variables for installing.
12036 * Makerules (install): New target.
12037 * Makefile (+subdir_targets): Add subdir_install.
12038 (install): Depend on subdir_install.
12039 (install-lib): Define variable to install libc.a and crt0.o.
12040 * misc/Makefile (install-lib): Install bsd-compat.
12041 * malloc/Makefile (install-lib): Install mcheck-init.
12045 Thu Feb 13 21:39:31 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
12047 * sysdeps/unix/glue-ctype.c: Moved to unix/bsd.
12048 * sysdeps/unix/Makefile: Moved glue-ctype stuff to unix/bsd/Makefile.
12049 * sysdeps/unix/Dist: No glue-ctype.
12050 * sysdeps/unix/bsd/Dist: Here instead.
12052 * sysdeps/sparc/divrem.m4: Don't use insn aliases Sun as doesn't grok.
12054 Wed Feb 12 12:12:12 1992 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
12056 * sysdeps/m68k/setjmp.c: Use m, rather than g, constraint when
12059 * Renamed oodles of files, changed all the relevant Makefiles (I
12060 think). File names now fit in 14 chars for losing System V. Gag me
12062 See =longnames for translations, and =shorten.el for method.
12064 * grp/initgroups.c: Removed redundant test.
12066 * malloc/mtrace.c: Use %p fmt for pointers.
12068 Tue Feb 11 02:04:39 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
12070 * stdlib/alloca.h: New file.
12071 * stdlib/stdlib.h: Moved alloca decls there; #include <alloca.h>
12073 * stdlib/Makefile (headers): Added alloca.h.
12075 * stdio/getline.c (getsome): Fixed bugs.
12077 * math/bsd/common_source/mathimpl.h: #define expm1 __expm1.
12078 * math/bsd/common_source/expm1.c: Renamed to __expm1.c
12079 * math/bsd/mc68881/expm1.s: Renamed to __expm1.s; renamed fn too.
12080 * math/expm1.c: New file, fn alias expm1 -> __expm1.
12082 * math/Makefile (routines): Add __rint.
12083 * math/rint.c: New file, fn alias rint -> __rint.
12084 * math/bsd/common_source/floor.c (rint): Renamed to __rint.
12085 * sysdeps/generic/Makefile: Remove __rint, not rint.
12087 * math/Makefile (BSDmath-files): Always include it, and don't depend
12088 on undependable things.
12090 * Makerules (sysdep-Makefile): Always include it, and make it
12091 without depending on make vars that might not be right yet.
12093 Mon Feb 10 00:55:58 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
12095 * stdlib/stdlib.h: #undef alloca before declaring it.
12097 * sysdeps/sparc/__longjmp.S: Use be instead of bz.
12099 * sysdeps/unix/bsd/Dist: Add bsdtty.h.
12101 * tzfile.c (__tzfile_read): Don't allocate space for 0 leaps.
12102 Don't loop infinitely.
12104 * sysdeps/unix/Makefile (make-errnos.c): Use tr to eat newlines in
12107 * sysdeps/unix/bsd/sun/sun4/__brk.S: Fix andn arg order.
12109 * posix/Makefile: Don't get getopt by vpath. Turns out to be too
12110 much hassle for dist. Just made symlinks in posix/ instead.
12112 * manual/Makefile: Renamed summary.out to summary.texinfo.
12114 * manual/summary.awk: New file, to make summary.out.
12115 Replaces `process-definitions.el'.
12116 * manual/Makefile (summary.out): Create using summary.awk.
12118 * manual/Makefile: Created.
12119 * Makefile, Make-dist: Use it to format and distribute the manual.
12121 Mon Feb 10 00:32:17 1992 Jim Meyering (meyering@churchy.gnu.ai.mit.edu)
12124 Whenever using shell redirection to create a target,
12125 do not create the target directly like this
12130 That loses when `process' fails (interrupt, disk full, ...)
12131 and bar exists and looks up-to-date, but isn't.
12132 This sort of failure is particularly insidious when
12133 the initial error message is obscured by lots of subsequent
12134 output (echoed commands etc).
12136 Instead use rules like this
12139 process $< > $@-tmp
12142 Using this paradigm, as long as process returns non-zero
12143 whenever it fails, the target won't be touched.
12145 Sun Feb 9 22:58:51 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
12147 * posix/unistd.h (getopt): Fixed prototype.
12148 * sysdeps/generic/memset.c, stdio/vdprintf.c: Fixed DEFUNs.
12150 * Makerules (lib): Use $(RANLIB) for ranlib.
12151 * Makeconfig: Define it.
12153 * configure: Create config.status to set ARCH, if successful.
12154 * Makeconfig: include config.status ifndef ARCH.
12156 Thu Feb 6 20:57:10 1992 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
12158 * ansidecl.h (INCLUDE, STARTCOMMENT, ENDCOMMENT): New magic words.
12159 * sysdeps/m68k/68881/fl.h: Use new magic to snarf ieee754/fl.h during
12162 * sysdeps/ieee754/fl.h: New file, taken mostly from the old
12163 68881 file. HUGE_VAL redone to be machine independent.
12164 (NAN): New macro for an IEEE NaN, done like HUGE_VAL.
12165 * sysdeps/m68k/68881/fl.h: Now #includes ieee754/fl.h, and overrides
12166 FLT_ROUNDS for 68881 magic. NB: the #include is a prob. for install.
12168 Wed Jan 29 17:11:25 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
12170 * sysdeps/posix/getcwd.c: Don't use chdir; use a long ../../../...
12173 Fri Jan 17 02:51:10 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
12175 * posix/Makefile (headers): Added getopt.h.
12176 (routines): Added getopt1.
12177 Get getopt* from /home/gd/gnu/lib by vpath.
12179 * Makerules (+ansideclificate): Don't assume . is in PATH.
12181 Thu Jan 16 18:43:05 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
12183 * posix/glob.c [sgi]: No alloca.h, after all.
12185 Wed Jan 15 14:17:37 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
12187 * termios/termios.h: Reworked to be compatible with 4.4BSD.
12188 * termios/speed.c, sysdeps/unix/bsd/{__tcgetattr,tcsetattr}.c: Store
12189 speeds as their own values (B9600==9600, etc.) and translate to BSD
12190 values only for ioctl.
12191 * termios/cfsetpseed.c: New fn to set both speeds at once (from 4.4).
12193 Tue Jan 14 21:18:10 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
12195 * sysdeps/unix/i386/__brk.S: __end, not ___end.
12196 Get the arg off the stack correctly.
12198 * sysdeps/unix/Makefile: Allow errnos like EL3HLT.
12200 * sysdeps/posix/{readv,writev}.c: Typos.
12202 * sysdeps/posix/__sigpause.c: Rewritten to know that sigset_t is a
12203 mask, and to pass a (sigset_t *) instead of sigset_t to sigsuspend.
12205 * sysdeps/i386/memset.c: Include <memcopy.h>.
12207 * sysdeps/generic/uname.c (uname): Save and restore errno if
12208 gethostname gets ENOSYS.
12210 * stdio/perror.c (perror): Check correctly for S == "".
12211 Check correctly for ERRNUM being in range.
12213 * find-sysdirs: Don't use fgrep -s, since USG apparently doesn't
12214 have that flag. Just >/dev/null instead.
12216 Mon Jan 13 17:00:15 1992 Torbjorn Granlund (tege at mole.gnu.ai.mit.edu)
12218 * sysdeps/generic/wordcopy.c (all four functions): Move do0 label to
12219 the ultimate store statement at the end of each function. (Used to
12222 Tue Jan 7 18:40:18 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
12224 * resource/sys/resource.h (struct rusage): Change `ru_outblock' to
12227 * sysdeps/generic/stpcpy.c: Fixed off-by-one bug.
12229 Thu Jan 2 15:19:01 1992 Roland McGrath (roland@albert.gnu.ai.mit.edu)
12231 * sysdeps/sparc/Dist: Add umul.S and mul.S.
12233 Tue Dec 31 15:33:39 1991 Roland McGrath (roland@albert.gnu.ai.mit.edu)
12235 * signal/signal.h [__USE_GNU]: Add user-visible `sighandler_t' ==
12238 * termios/speed.c (speedtab): Made const.
12240 * posix/Makefile (routines): Add flock.
12242 Tue Dec 31 03:38:30 1991 Richard Stallman (rms at mole.gnu.ai.mit.edu)
12244 * termios/speed.c: Accept and return speeds as actual baud rates.
12245 * termios/termios.h (B110, etc.): Define B110 as 110, etc.
12246 Likewise for _B110, etc.
12248 Thu Oct 24 16:19:49 1991 Roland McGrath (roland@wookumz.gnu.ai.mit.edu)
12250 * ansidecl: Put `M4OPTS=+quiet' in the environment make GNU m4 quiet.
12252 Sun Oct 20 19:31:28 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
12254 * Make-dist (tardir): Define as `libc-RELEASE-VERSION', strings
12255 snarfed from version.c.
12256 ($(..)$(tardir)): Add rule to make as symlink to . (parent dir).
12257 [subdir] (dist), [parent] (dist.tar): Depend on that.
12258 [subdir] (tarsources), [parent] (+tsrcs): Add $(tardir)/ to files.
12260 * sysdeps/sparc/Makefile (distribute): Move data into Dist file.
12262 Fri Oct 18 15:27:58 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
12264 * Makefile (subdirs): Add $(sysdep-subdirs), so sysdep makefiles can
12267 * posix/glob.c [sgi]: Use <sys/dir.h>.
12269 * stdio/fopen.c: If not appending, initialize the offset to 0.
12271 * sysdeps/generic/strcasecmp.c: Fixed losing braindead code.
12273 Tue Oct 8 15:27:54 1991 Roland McGrath (roland@albert.gnu.ai.mit.edu)
12276 * This ChangeLog is lacking much information.
12277 * After this release, I hope to maintain the log well.
12279 Fri Jul 26 18:02:57 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
12281 * stdio/Makefile (routines): Remove _cleanup.
12283 Thu Jul 25 23:12:45 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
12285 * stdio/memstream.c (close_memstream): Removed.
12286 (trim_buffer): New fn to be io_funcs->__close for memstreams.
12287 (open_memstream): Take arg char **BUFLOC. Stuff it in
12288 stream->__fd, and store the location of the initial buffer in
12290 (enlarge_buffer): Keep *(char **) stream->__fd updated to be the
12291 location of the buffer.
12293 Tue Jul 23 14:11:29 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
12295 * posix/glob.c: Don't #include <stddef.h> #ifdef sun.
12296 Is there anyone on the face of the planet other than me capable of
12297 implementing the ANSI C standard to spec????
12299 * posix/glob.c [DIRENT]: #include <sys/types.h> before <dirent.h>
12302 Mon Jul 22 17:06:24 1991 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
12304 * sysdeps/posix/make-stdio_limits.c: #include <posix1_limits.h>,
12305 not <posix_limits.h>.
12307 * README: Refer to COPYING.LIB, not COPYING.
12309 * config.libc: Renamed to `configure'.