* sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
[glibc.git] / ChangeLog
blob3d23dc9cb9bd3f68b639d5f32cd359ea330ef2f8
1 Thu Mar 30 20:43:02 1995  Brendan Kehoe  <brendan@zen.org>
3         * sysdeps/mips/__longjmp.c (__longjmp): Take out CONST.
4         * sysdeps/alpha/__longjmp.c (__longjmp): Take out const.
6 Thu Mar 30 01:38:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
8         * elf/elf.h (STN_UNDEF): New macro (distinct from SHN_UNDEF, though
9         both are zero).
11 Wed Mar 29 11:26:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
13         * elf/dlfcn.h: New file.
15         * Make-dist (README): Commit it to CVS if there is a CVS directory.
17         More changes from Germano Caronni <caronni@tik.ethz.ch>:
18         * malloc/free.c: Relocate _heapinfo when that allows us to return
19         core to the system.
21         * malloc/malloc.c: Move #include <errno.h> outside #ifndef
22         _MALLOC_INTERNAL.
24 Mon Mar 27 02:23:15 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
26         * mach/Makefile (headers): Add mach/mach_traps.h.
28         * Makerules ($(installed-libcs) rule): Fix typos.
30         * sysdeps/unix/bsd/bsd4.4/revoke.S: New file.
31         * sysdeps/stub/revoke.c: New file.
32         * misc/Makefile (routines): Add revoke.
33         * posix/unistd.h [__USE_BSD] (revoke): Declare it.
34         * sysdeps/generic/pty.c (openpty, forkpty): Declare return types.
35         (forkpty): Declare login_tty.
36         * misc/logwtmp.c (logwtmp): Declare to return void.
37         * misc/login_tty.c (login_tty): Include unistd.h.  Declare return type.
39         * posix/unistd.h [__USE_BSD] (ttyslot): Declare it.
41         * posix/unistd.h [__USE_BSD] (L_SET, L_INCR, L_XTND): Define
42         unless L_SET already defined.
43         * misc/sys/file.h (L_SET, L_INCR, L_XTND): Don't define if L_SET
44         already defined.
46         Incorporated -lutil library from 4.4-Lite.
47         * misc/Makefile (extra-libs, libutil-routines): New variables.
48         * misc/login.c, misc/login_tty.c, misc/logout.c, misc/logwtmp.c,
49         sysdeps/generic/pty.c: New files for -lutil incorporated from 4.4-Lite.
51         Support simple, light-weight unwind-protect mechanism for longjmp.
52         * setjmp/longjmp.c: Call _longjmp_unwind first thing.
53         * sysdeps/mach/hurd/jmp-unwind.c: New file.
54         * sysdeps/stub/jmp-unwind.c: New file.
55         * sysdeps/i386/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
56         * sysdeps/mips/jmp_buf.h (_JMPBUF_UNWINDS): New macro.
57         * setjmp/Makefile (routines): Add jmp-unwind.
58         * hurd/hurd/userlink.h (struct hurd_userlink): Move `next' and
59         `prevp' members into new substructure `resource'; add another such
60         substructure `thread' and members `cleanup' (function ptr) and
61         `cleanup_data' (generic ptr).
62         (_hurd_userlink_link, _hurd_userlink_unlink): Insert/remove LINK
63         into the `_hurd_self_sigstate ()->active_resources' list via the
64         `thread' substructure.
65         * hurd/hurd/port.h (_hurd_port_cleanup): Declare it.
66         (_hurd_port_locked_get): Set LINK->cleanup to _hurd_port_cleanup and
67         LINK->cleanup_data' to the port extracted.
68         * hurd/hurd/signal.h (struct hurd_sigstate): New member
69         `active_resources'.
70         * hurd/port-cleanup.c: New file.
71         * hurd/Makefile (routines): Add port-cleanup.
73         * malloc/malloc.c: Include errno.h.
75 Sat Mar 25 18:24:21 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
77         * locale/loadlocale.c (_nl_load_locale): Avoid */ inside comment.
79 Fri Mar 24 02:35:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
81         * misc/Makefile (headers): Add utmp.h.
82         * misc/utmp.h: New file, incorporated from 4.4-Lite.
84         * stdio/printf-parse.h: New file, mostly written by drepper.
85         * stdio/vfprintf.c: Rewritten, mostly by drepper.
86         * stdio/printf-prs.c: Rewritten.
87         * stdio/Makefile (distribute): Add printf-parse.h.
89 Thu Mar 23 22:03:44 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
91         * sysdeps/unix/start.c [! NO_UNDERSCORES]: Don't declare _start
92         with asm name.  Just do a ".set start, __start".
94         * malloc/realloc.c: Call _free_internal instead of free.
96 Tue Mar 21 00:14:27 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
98         * locale/loadlocale.c (_nl_load_locale): If LOCALE/LC_* is a
99         directory, open LOCALE/LC_*/SYS_LC_* instead.
101 Mon Mar 20 03:19:23 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
103         * stdio/fpioconst.c, stdio/fpioconst.h, stdio/gmp-impl.h,
104         stdio/gmp.h, stdio/longlong.h, stdio/mp_clz_tab.c,
105         stdio/gen-mpn-copy: Files moved to stdlib.
106         * stdio/Makefile: All mpn stuff moved to stdlib/Makefile.
107         * stdlib/Makefile: All the mpn stuff moved here from stdio/Makefile.
108         * stdio/printf_fp.c: Use ../stdlib to find fpioconst.h and gmp
109         headers.
110         * stdlib/strtod.c: Don't use ../stdio to find fpioconst.h and gmp
111         headers.
113         * Makefile (parent-mostlyclean): Don't use $(libc.a).
114         (parent-clean): Use $(objpfx) to find sysd-*.
115         * Rules (generated): Append dummy.o dummy.c.
116         * Makerules (lib): Depend on lib-noranlib.
117         (lib-noranlib): Depend on $(install-lib) in objdir.
118         (common-mostlyclean): Remove $(install-lib) and stub-$(subdir)
119         from objdir.  Don't remove TAGS; it comes in the distribution.
121         * malloc/malloc.c (morecore): Save errno around call to
122         _realloc_internal.  Don't account for the additional new blocks of
123         the info table itself when choosing the new table size for the
124         first crack; if it succeeds, the new blocks will have been found
125         in existing free space already described by the existing info
126         table.
128         * stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
129         read-ahead character.
131 Sat Mar 18 14:07:08 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
133         * hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
134           hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
135           hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
136           hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
137         Get anal with unsigned to pacify compiler.
139         * stdio/vfscanf.c: Grok positional parameter specs (i.e. %3$d
140         means %d from 3rd arg).
142         * sysdeps/mach/hurd/closedir.c: Include hurd/fd.h.
144         * stdlib/strtol.c: If !GROUP, set END to null.  In loop, test only
145         END, not GROUP.
147 Fri Mar 17 12:58:37 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
149         * Makefile (subdirs): Put elf last.
151         * sunrpc/Makefile (install-lib): Variable removed.
152         (rpcsvc-objs): Variable removed.
153         (extra-objs): Don't include $(rpcsvc-objs).
154         (extra-libs): New variable, contains librpcsvc.
155         (librpcsvc-routines): New variable.
156         (librpcsvc-inhibit-o): New variable, contains .so.
157         (omit-deps): Set this to $(librpcsvc-routines).
158         ($(objpfx)rpcgen): Don't use $(libc.a).
159         (lib, $(objpfx)librpcsvc.a): Targets removed.
161         * o-iterator.mk, extra-lib.mk: New files.
162         * Makerules (o-iterator): New variable.
163         [extra-libs]: Include extra-lib.mk to generate rules for each word
164         of $(extra-libs).
165         * Makefile (distribute): Add extra-lib.mk, o-iterator.mk.
167 Fri Mar 17 13:28:04 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
169         * sysdeps/ieee754/ldbl2mpn.c (__mpn_extract_long_double):
170         Handle 80-bit denormalized numbers correctly.
172         * stdlib/strtod.c, stdlib/strtof.c, stdlib/strtold.c:
173         (IMPLICIT_ONE, *_MAX_10_EXP_LOG): Macros removed; no longer needed.
174         * stdlib/strtod.c (RETURN): Add parentheses around return value.
175         (round_and_return): Correct handling of denormalized numbers.
177         * stdio/fpioconst.c, stdio/fpioconst.h: Don't use
178         LDBL_MAX_10_EXP_LOG; LAST_POW10 defines the maximal available
179         exponent.
181 Thu Mar 16 00:04:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
183         * locale/C-ctype.c: New correct data generated by drepper.
185         * Rules: Don't use $(libc.a).
187         Parsing of grouped numbers contributed by Ulrich Drepper.
188         * stdlib/strtol.c (__strtol_internal): Renamed from strtol.  Take
189         new flag arg; if nonzero, parse locale-dependent thousands
190         grouping and interpret only the prefix that is correctly grouped.
191         (strtol): Define this to call _strtol_internal with zero for the flag.
192         Use a weak symbol for the definition.
193         * stdlib/strtod.c (strtod, __strtod_internal): Likewise.
194         Check for the exponent of the number overflowing the float format.
195         * stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
196         (__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
197         [__OPTIMIZE__]: Define inline functions calling those.
198         * stdlib/strtold.c (STRTOF): Set to strtold, not __strtold.
199         (strtold): Remove weak alias.
200         * stdlib/strtof.c (STRTOF): Set to strtof, not __strtof.
201         (strtof): Remove weak alias.
202         * stdlib/grouping.h: New file, written by drepper.
203         * stdlib/Makefile (distribute): Add grouping.h.
204         * stdio/vfscanf.c: Grok %' modifier to numeric conversions.  Call
205         __strtoX_internal with the grouping flag set iff the modifier is
206         present.
208 Wed Mar 15 00:40:54 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
210         * sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
212         * mach/Machrules: Produce static deps for all object flavors.
213         [interface-library]: Remove all these variables and rules.
214         ($(interface-library)-routines): Define this variable.
215         (extra-libs): Append $(interface-library) to this.
216         * mach/Makefile (interface-library): Omit .a suffix.
217         * hurd/Makefile: Likewise.
219 Tue Mar 14 23:40:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
221         * stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
222         early if no new data in buffer after priming.
224 Mon Mar 13 01:48:16 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
226         * Makerules (object-suffixes, libtypes): Move all these variables
227         to Makeconfig.
228         * Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
230         * Makerules (build-extra-lib): New canned sequence.
232         * sysdeps/mach/hurd/euidaccess.c: Include fcntl.h.  Declare ERR;
233         fix uses of FILE and PORT.  Remove bogus weak alias for `access'.
235         * sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
236         Add missing semicolon.
237         * sysdeps/mach/hurd/opendir.c: Include hurd/fd.h.  Use a `struct
238         hurd_fd *' temp var, since DIRP->__fd is a `void *'.
239         * sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
241         * stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
242         locale data format is implemented.
244         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
245         Pass &__sigreturn on the stack to the trampoline code, so it is
246         not position-dependent.
248         * stdio/printf_fp.c (NDEBUG): Define this to disable assert.
249         Don't include <stdarg.h>.
250         (__printf_fp): Last arg ARGS is now `const void **const'; 
251         dereference ARGS[0] instead of using va_arg.
253         * locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
254         loop to install data.
256         * locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
257         to extract number from item code.
258         (_nl_load_locale): Close the descriptor when finished.
260         * malloc/realloc.c (_realloc_internal): Call _malloc_internal in
261         place of malloc.
263         * time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
265         * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
266         to avoid warning.
267         * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
268         int to avoid warning.
270         Support building several flavors of objects and libraries.
271         * Makerules (libtypes, object-suffixes): New variables.
272         (libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
273         suffix.
274         (CFLAGS, CPPFLAGS): Append $(C{,CPP}FLAGS-$(suffix $@)).
275         (%.so, %.po, %.go): New compilation rules for %.S, %.s, %.c.
276         (close-check-inhibit-asm): Append a semicolon.
277         (sysd-rules): Generate rules for each object suffix.
278         (compile.S, compile.c): Always assume gcc.
279         (OUTPUT_OPTION): Define unconditionally.
280         (+make-deps): In generated rule, produce a dependent for each
281         object suffix.
282         (.SUFFIXES): Add $(object-suffixes) in place of .o.
283         (.PRECIOUS): Make all suffix flavors precious.
284         ($(libc.a)): Target removed.
285         (lib): Depend on each enabled libtype.
286         (libobjs, objects, objs): Depend on all the enabled object flavors.
287         (lib%.a): New pattern rule.
288         [$(build-shared)=yes] (lib%.so: lib%_pic.a): New pattern rule.
289         (stamp-$(subdir)): Rewritten to a pattern rule for stamp.%-$(subdir)
290         to make one for each flavor; library dep rule likewise rewritten.
291         ($(libc.a)(__.SYMDEF)): Target replaced with one target for each
292         flavor.
293         (symdef.%): New pattern rule; helper for __.SYMDEF targets.
294         (installed-libcs): New variable.
295         (install): Depend on that instead of
296         $(libdir)/lib$(libprefix)$(libc-name).a;
297         that file's rule rewritten to make each enabled libtype.
298         (install-lib.so): New variable, filters lib%.so from $(install-lib).
299         (install-lib): Filter out lib%.so after setting install-lib.so.
300         [$(build-shared)=yes] (install): Install $(install-lib.so).
301         (common-mostlyclean): Remove all flavors of objects.
302         * Makefile ($(libc.a)(__.SYMDEF)): Target removed.
303         [$(build-shared)=yes] (lib): Depend on $(common-objpfx)libc.so.
305 Sun Mar 12 18:21:10 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
307         * sysdeps/stub/ulimit.c: Don't include gnu-stabs.h.
308         * sysdeps/stub/pause.c: Likewise.
309         * sysdeps/stub/time.c: Likewise.
311         * stdlib/mbtowc.c: #if 0 out code for non-ASCII chars until the
312         locale data format is implemented.
313         * stdlib/wctomb.c: Likewise.
315         * mach/Makefile ($(objpfx)errsystems.c): Reenable this rule; the
316         gcc bug is fixed.
317         * mach/errsystems.c: File removed.
319         * Makeconfig (libc.a): Variable removed.
320         (+link): Don't use it.
322         * configure.in (AC_ARG_ENABLE calls): Use $enableval instead of
323         assuming `yes'.
325         * malloc/malloc.h (_malloc_internal, _realloc_internal): Declare these.
326         * malloc/realloc.c (_realloc_internal): Renamed from realloc;
327         don't use __realloc_hook.
328         (realloc): New function; call __realloc_hook ?: _realloc_internal.
329         * malloc/malloc.c (_malloc_internal): Renamed from malloc;
330         don't use __malloc_hook.
331         (malloc): New function; call __malloc_hook ?: _malloc_internal.
332         Changes from Germano Caronni <caronni@tik.ethz.ch>:
333         (initialize): Set up _heaplimit to cover the _heapinfo table.
334         (morecore_recursing): New static variable.
335         (morecore): If that is set, return null immediately.
336         When growing the info table, before getting new core from the
337         system for it, set morecore_recursing and try moving _heapinfo
338         with _realloc_internal.  When that fails and we get new core, set
339         _heaplimit to cover the core for the new _heapinfo table.
340         (register_heapinfo): New function.  Record the _heapinfo table's
341         own blocks in that table and in the statistics variables.
342         (initialize, _malloc_internal): Use it after allocating new table.
344 Fri Mar 10 22:26:28 1995  Jim Meyering  (meyering@comco.com)
346         * sysdeps/generic/memchr.c: Remove ansidecl.h and clean up for use
347         by other packages.
348         [LONG_MAX <= LONG_MAX_32_BITS]: Don't compile 64-bit code.
350 Fri Mar 10 13:31:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
352         * mach/errorlib.h (errors): Use const for decl.
354         * time/tzfile.c (uc2ul, _uc2ul): Macros removed.
355         (decode): New inline function; decode signed 32-bit integers, and
356         sign-extend properly when long is longer than 32 bits.
357         (__tzfile_read): Changed all uses of uc2ul to decode.
358         Decode the transition times properly when sizeof (time_t) > 4.
360         * stdio/printf.h: Doc fixes.  Don't #include <stddef.h>.
361         (printf_function): Make last arg ARGS a vector of pointers instead of a
362         pointer to va_list.
364 Fri Mar 10 13:46:25 1995  Ulrich Drepper  <drepper@ipd.info.uni-karlsruhe.de>
366         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Use return value of _IO_padn.
367         (buffered_vfprintf): Remove line buffer when flush failed.
369 Fri Mar 10 00:04:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
371         * time/tzfile.c (struct ttinfo): New member `isgmt'.
372         (__tzfile_read): Read isgmt flags for each type.
373         (__tzfile_default): When using TZDEFRULES DST rules, adjust
374         transition times according to the isstd and isgmt flags for the
375         types of each transition, and adjust each transition to point to
376         type index either 0 or 1.  Reset type indices 0 and 1 to describe
377         the user's settings.
379 Thu Mar  9 22:29:03 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
381         * locale/categories.def (LC_CTYPE): Merge CLASS_EB and CLASS_EL
382         into just CLASS.  Add standard/optional flag to all items.
384         * locale/localeinfo.h (_NL_CURRENT_DEFINE): Fix typo.
386         * ctype/ctype.h [__BYTE_ORDER == __LITTLE_ENDIAN] (_ISbit):
387         Rearrange defn to satisfy compiler.
389         * locale/localeinfo.h: Declare _nl_current.
391         * configure.in: Use AC_CHECK_TOOL for CC, AR, RANLIB.  Accept args
392         --enable-shared, --enable-profile, --enable-omitfp; pass settings
393         through to config.make.
394         * config.make.in (build-shared, build-profile, build-omitfp): New
395         config vars.
397         * elf/elf.h (STN_UNDEF): Renamed to SHN_UNDEF (typo).
398         (DT_NUM): New macro.
400         * locale/nl_langinfo.c: Include errno.h and stddef.h.  Fix typos.
402         * locale/lc-ctype.c (_nl_postload_ctype): Fix macro insanity.
404         * locale/loadlocale.c (_nl_load_locale) [! MAP_COPY]: Define
405         MAP_COPY to MAP_PRIVATE.
407 Thu Mar  9 17:16:53 1995  Brendan Kehoe  (brendan@zen.org)
409         * sysdeps/alpha/divrem.m4: Undefine `ret' to avoid the definition
410         that's used inside the alpha sysdep.h.
412         * sysdeps/alpha/__longjmp.c (__longjmp): Remove obsolete __NORETURN
413         keyword.
414         * sysdeps/alpha/__math.h (__copysign): Remove obsolete __CONSTVALUE.
416         * configure.in: Match `osf*', not `osf1*'.
417         * configure: Likewise.
418         * sysdeps/unix/bsd/osf: Renamed from `sysdeps/unix/bsd/osf1'.
420 Wed Mar  8 13:38:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
422         * posix/glob/configure.bat: Fixes from DJ.
424         * time/backward, time/europe, time/northamerica, time/pacificnew,
425         time/zdump.c, time/zic.c, time/tzfile.h, time/private.h,
426         time/ialloc.c: Code and data updated from ADO's 95b.
427         * time/emkdir.c: File removed.
428         * time/Makefile (distribute, extra-objs, zic): Omit it.
429         
430         * time/localtime.c: Deansideclized.  Never #define __tzname et al
431         to non-__ names.
433         * locale/lc-ctype.c (__ctype_tolower, __ctype_toupper): Use int *
434         instead of short int *.
435         * ctype/ctype-info.c: Likewise.
436         * ctype/ctype.h: Likewise.
438         * locale/langinfo.h (_NL_CTYPE_CLASS): Use this (just one) instead
439         of EB and EL versions.
441 Mon Mar  6 12:34:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
443         * ctype/ctype.h (_ISbit): New macro, defined dependent on byte order.
444         (_IS* enum): Use _ISbit to produce values.
446 Sun Mar  5 19:40:13 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
448         * locale/localeinfo.h: Rewritten for new locale system, using
449         locale data files and with <langinfo.h> interface.
450         * locale/setlocale.c: Rewritten to use locale data files.
451         * langinfo.h: New file.
452         * locale/langinfo.h: New file.
453         * locale/nl_langinfo.c: New file.
454         * locale/loadlocale.c: New file.
455         * locale/lc-ctype.c: New file.
456         * locale/lc-messages.c: New file.
457         * locale/lc-monetary.c: New file.
458         * locale/lc-numeric.c: New file.
459         * locale/lc-time.c: New file.
460         * locale/categories.def: New file.
461         * locale/Makefile (headers): Remove localeinfo.h.
462         (distribute): New variable; put localeinfo.h here, and categories.def.
463         (routines): Add loadlocale.
464         (categories): New variable.
465         (aux): Use that to get C-category and lc-category.
466         * ctype/ctype.h (_IS*): Use independent bits for all but _ISalnum.
467         * ctype/ctype-info.c: For initial tables, use
468         _nl_C_LC_CTYPE_{class,toupper,tolower} constant tables defined in
469         locale/C-ctype.c. 
470         * locale/C-ctype.c, locale/C-messages.c: New files.
471         * locale/C-monetary.c, locale/C-numeric.c, locale/C-time.c:
472         Default "C" locale data updated for new locale system.
473         * locale/C-collate.c: File removed.
474         * locale/C-ctype_ct.c: File removed.
475         * locale/C-ctype_mb.c: File removed.
476         * locale/C-response.c: File removed.
477         * locale/localeconv.c: Use _NL_CURRENT macro to access locale data.
478         * stdio/printf_fp.c, stdio/vfprintf.c, stdio/vfscanf.c,
479           stdlib/strtod.c, time/asctime.c, time/strftime.c:
480         Include ../locale/localeinfo.h and use _NL_CURRENT macro to access
481         locale data.
482         * time/localtime.c: Don't include <localeinfo.h>.
483         * time/tzset.c: Don't use locale items for default TZ value or
484         "GMT" string (use "UTC").
486         * stdio/vfprintf.c [USE_IN_LIBIO] (PAD): Only call the function if
487         WIDTH>0; update DONE.
489         * malloc/malloc.c (morecore): Fix last change to calculate by
490         blocks instead of bytes.
492 Fri Mar  3 12:24:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
494         * sysdeps/generic/sys/mman.h (__mmap, __munmap): Declare these.
495         * sysdeps/unix/sysv/irix4/sys/mman.h: Likewise.
496         * sysdeps/unix/bsd/ultrix4/sys/mman.h: Likewise.
497         * sysdeps/unix/bsd/osf1/sys/mman.h: Likewise.
498         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Likewise.
499         * sysdeps/stub/munmap.c (munmap): Rename to __munmap, add weak
500         alias munmap.
501         * sysdeps/unix/mman/munmap.S: Likewise.
502         * sysdeps/mach/munmap.c: Likewise.
503         * sysdeps/mach/hurd/mmap.c (mmap): Rename to __mmap, add weak
504         alias mmap.
505         * sysdeps/unix/mman/mmap.S: Likewise.
506         * sysdeps/unix/bsd/sun/sunos4/mmap.c: Likewise.
507         * sysdeps/stub/mmap.c: Likewise.
509         * sysdeps/unix/bsd/setsid.c: Use __getpgid instead of __getpgrp.
511         * sysdeps/unix/dirfd.c: #undef dirfd before function defn.
513 Thu Mar  2 12:15:24 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
515         * misc/search.h: Add missing semicolon.
517         * sysdeps/unix/dirfd.c: Fix typo.
519         * sysdeps/generic/sys/mman.h (mmap): Use __off_t instead of off_t
520         in decl.
522         * stdio/vfscanf.c (%c): In no-assign case, fix loop to decrement
523         WIDTH before test.
525 Wed Mar  1 00:57:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
527         * stdlib/strtod.c: Fixes from drepper.
528         [IMPLICIT_ONE]: New macro, one for IEEE754 formats.
529         * stdlib/strtold.c [IMPLICIT_ONE]: New macro, 0.
530         * stdlib/strtof.c [IMPLICIT_ONE]: New macro, 1.
532         * stdio/vfprintf.c: Correctly notice Z modifier.
534         * misc/search.h: New file.
535         * misc/Makefile (headers): Add search.h.
536         * misc/insremque.c: Include search.h.
537         (struct qelem): Type removed.
539 Mon Feb 27 07:00:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
541         * elf/libelf.h: New file.
542         * elf/elf_hash.c: New file.
544 Sun Feb 26 15:51:00 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
546         Changes from Germano Caronni <caronni@tik.ethz.ch>:
547         * malloc/malloc.c (morecore): Account in NEWSIZE for the
548         malloc_info structures for each new block.
550 Sat Feb 25 02:17:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
552         * sysdeps/mach/hurd/kill.c: When the process has no message port
553         registered and we have its task port, translate a few signals to
554         task_suspend/task_resume/task_terminate.
556 Fri Feb 24 14:40:48 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
558         * io/Makefile (routines): Add euidaccess.
559         * sysdeps/mach/hurd/euidaccess.c: New file.
560         * sysdeps/stub/euidaccess.c: New file.
561         * posix/unistd.h [__USE_GNU] (euidaccess): Declare it.
563         * dirent/Makefile (routines): Add dirfd.
564         * sysdeps/stub/dirfd.c: New file.
565         * sysdeps/unix/dirfd.c: New file.
566         * sysdeps/unix/dirstream.h (_DIR_dirfd): New macro.
567         * dirent/dirent.h (dirfd): Declare new function.  Define as macro
568         _DIR_dirfd if that is defined.
569         * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__port' member
570         with `void *__fd'.
571         * sysdeps/mach/hurd/opendir.c: Use DIRP->__fd instead of DIRP->__port.
572         Open the file with `open'; set FD_CLOEXEC on the fd.
573         * sysdeps/mach/hurd/closedir.c: Likewise.
574         * sysdeps/mach/hurd/readdir.c: Likewise.
575         * sysdeps/mach/hurd/dirfd.c: New file.
577         * posix/Makefile (glob/configure): Do cvs commit if there is a CVS
578         directory.
579         (glob/ChangeLog): Likewise.
581         * locale/locale.h (LC_*): Use small integers instead of bit masks.
583         * stdio/bug4.c: Put temporary files in /tmp.
584         * stdio/bug3.c: Likewise.
585         * stdio/bug5.c: Likewise.
586         * stdio/test-fseek.c: Likewise.
587         * stdio/test-popen.c: Likewise.
589 Wed Feb 22 00:44:41 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
591         * posix/glob/configure.in: Put AC_ISC_POSIX before AC_CONST.
593         * libc-symbols.h (weak_symbol): New macro.
595         * hurd/hurdsig.c (_hurd_internal_post_signal): Ignore preempter
596         elts with null handlers.
598         * sysdeps/mach/hurd/i386/sigreturn.c: Restore the FPU state.
600 Tue Feb 21 21:53:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
602         * stdlib/random.c (__srandom): Change algorithm used to populate
603         the state array.
604         (randtbl): Recomputed with new algorithm.
606         * sysdeps/sparc/Makefile [subdir=crypt] (crypt): Reset only if set
607         to original value of `crypt'.
608         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile [subdir=crypt]
609         (crypt): New variable, set to crypt.solar.
611 Tue Feb 21 11:50:37 1995  Brendan Kehoe  (brendan@zen.org)
613         * sysdeps/sparc/Makefile (routines): Reference `dotmul', not `mul'.
615         * config.h.in: Put comment around ^L to pacify Solaris as here too.
617 Tue Feb 21 00:10:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
619         * string/Makefile (distribute): Add pagecopy.h.
620         * sysdeps/mach/pagecopy.h: New file.
621         * sysdeps/generic/pagecopy.h: New file.
622         * sysdeps/generic/memcpy.c: Include pagecopy.h; call
623         PAGE_COPY_FWD_MAYBE first when word aligned.
624         * sysdeps/generic/memmove.c: Likewise.
626         * misc/bsd-compat.c (longjmp, setjmp): Functions removed.
627         (getpgrp): Call __getpgid instead of __getpgrp.
629         * Makefile (subdirs): Add elf first.
630         * elf/Makefile: New file.
631         * elf/elf.h: New file.
633         * sysdeps/unix/start.c (errno): Only define if it's not #define'd
634         as a macro.
635         [! NO_UNDERSCORES]: Define `start' as a weak alias, not a symbol
636         indirection.
638         * csu/Makefile (crtstuff): New variable consolidates crti, crtn;
639         add crti_s, crtn_s.
640         (install-lib, extra-objs, generated-, omit-deps): Use that.
641         (initfini): New canned sequence, broken out of crt[in].s rule.
642         (crt[in].s rule): Use it.
643         (crt[in]_s.s): New rule.
644         * csu/initfini.c (GLOBAL): New macro; define it to empty if undefined.
645         (_init, _fini): Use GLOBAL as storage class.
646         Add self reference to avoid GCC optimizing out the functions.
648         * Makefile (headers): Remove $(stddef.h).
649         * Makeconfig (stddef.h): Variable removed; now require gcc version
650         >= 2.2.
651         * stddef.h: File removed.
653 Mon Feb 20 19:42:31 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
655         * sysdeps/unix/bsd/ultrix4/mips/start.S: Remove `__environ'
656         definition.
657         * sysdeps/unix/bsd/osf1/alpha/start.S: Likewise.
659         * stdlib/strtod.c: Allow the string to start with a decimal point
660         without a leading zero.
662 Mon Feb 20 04:04:57 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
664         * Makefile (subdirs): Put csu first.
666         * sysdeps/mach/hurd/start.c: Include unistd.h for __environ decl.
668         * Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
669         to crt[in].o.
670         (csu-objpfx): New variable.
671         (+link): Use it to find start.o and $(+preinit), $(+postinit).
673         * Rules (subdir_lib, all): Depend on objs.
675         * config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
677         * stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
678         access to float.h macros.
680         * misc/efgcvt.c: New file.
681         * misc/Makefile (routines): Add efgcvt.
683 Sun Feb 19 20:10:43 1995  Brendan Kehoe  <brendan@zen.org>
685         * sysdeps/sparc/mul.S: Renamed to `dotmul.S'.
686         * sysdeps/sparc/Makefile (routines): Reference `dotmul.S', not `mul.S',
687         to avoid a misreference that would override sysdeps/generic/mul.c.
688         * sysdeps/sparc/Dist: Likewise.
690 Sun Feb 19 17:46:13 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
692         * posix/Makefile (aux): Add environ.
693         * posix/environ.c: New file.
694         * sysdeps/unix/sparc/start.c: Remove __environ definition.
695         * sysdeps/unix/start.c: Likewise.
696         * sysdeps/unix/sysv/irix4/start.c: Likewise.
697         * sysdeps/mach/hurd/start.c: Likewise.
698         * sysdeps/mach/start.c: Likewise.
699         * sysdeps/stub/start.c: Likewise.
701         * sysdeps/unix/make_errlist.c: In produced program, test
702         HAVE_WEAK_SYMBOLS instead of HAVE_GNU_LD.
703         * sysdeps/unix/sysv/sysv4/dup2.c: Fix #include of renamed file.
704         Remove extra weak alias.
706         * sysdeps/unix/sysv/sysv4/sigaltstack.S: Fix unsquashed file name
707         in #include.
709         * libc-symbols.h: Put comment around ^L to pacify Solaris as.
711         * sysdeps/posix/Makefile (cded-objdir-includes): New variable
712         replaced cded-objdir-CPPFLAGS; transform $(+includes) instead of
713         $(CPPFLAGS).
714         (mk-stdiolim): Use it instead.
716 Fri Feb 17 12:16:27 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
718         * mach/mach_init.c (__vm_page_size): Make it initialized.  It does
719         not work to make a weak alias to a bss symbol.
721         * stdio/Makefile (distribute): Remove mpn-copy.mk; add gen-mpn-copy.
722         (tests): Add test-fwrite.
723         * stdio/test-fwrite.c: New file.
725         * stdlib/stdlib.h [__USE_GNU]: Declare strtof, strtold, __strtof,
726         __strtold.
728         * Makefile (autoconf-it): New canned sequence.  Do cvs commit if
729         there is a CVS directory.
730         (configure, %/configure): Use $(autoconf-it) for cmds.
731         * Make-dist: Likewise.
732         * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Do cvs commit
733         if there is a CVS directory.
734         * sysdeps/sparc/Makefile (divrem output): Likewise.
735         * sysdeps/alpha/Makefile (divrem output): Likewise.
736         * Makerules ($(gpl2lgpl)): Likewise.
738         * Makerules (rule to install lib%.a from $(install-lib)): Fix
739         patsubst to elide ranlib for $(non-lib.a).
741         * stdio/tst-printf.c: Enable FP tests.  Add some new tests from rfg.
743 Thu Feb 16 04:06:06 1995  Roland McGrath  <roland@duality.gnu.ai.mit.edu>
745         * sysdeps/mach/hurd/mig-reply.c: Add weak aliases to non-__ names.
746         * mach/mig-dealloc.c: Add weak alias mig_deallocate.
748 Wed Feb 15 13:34:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
750         * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Take new arg
751         DEALLOC_REFPORT; deallocate the refport after use only if it
752         evaluates to nonzero.
753         * sysdeps/mach/hurd/kill.c: Pass DEALLOC_REFPORT arg of one.
754         * hurd/hurdkill.c: Pass DEALLOC_REFPORT arg of zero.
756         * hurd/hurdsig.c (abort_rpcs): Take new arg int *STATE_CHANGE; set
757         *STATE_CHANGE to indicate whether or not we changed *STATE and it
758         should be committed to the thread.
759         (abort_all_rpcs): Take new arg LIVE; if nonzero and abort_rpcs changes
760         state for a thread, do thread_set_state on that thread.  Don't use
761         SS->intr_port for collecting reply ports, it is not safe to
762         clobber that when suspending; instead, alloca a temporary array.
763         (_hurd_internal_post_signal): Pass LIVE flag to abort_all_rpcs:
764         zero when dying, one when suspending.  Pass new arg to abort_rpcs.
766         * sysdeps/mach/hurd/stdio_init.c: Don't lock the file descriptor;
767         HURD_FD_PORT_USE will.  Don't use critical sections around
768         HURD_FD_PORT_USE invocations.
770         * sysdeps/mach/hurd/stdio_init.c: Don't make pipes/FIFOs unbuffered.
771         * sysdeps/posix/stdio_init.c: Likewise.
773 Tue Feb 14 03:01:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
775         * hurd/hurd/fd.h (_hurd_fd_get): Don't do critical section
776         locking; don't leave the descriptor locked on return.
777         (HURD_FD_PORT_USE): Don't expect _hurd_fd_get to return the fd locked.
778         Use a critical section around locking the descriptor.
779         Check for an empty descriptor and return EBADF.
780         * sysdeps/mach/hurd/dup2.c: Likewise.
781         * sysdeps/mach/hurd/fcntl.c: Likewise.
782         Use HURD_FD_PORT_USE macro for RPCs.
783         * sysdeps/mach/hurd/sysd-stdio.c: Don't lock the descriptor before
784         using HURD_FD_PORT_USE.
785         * sysdeps/mach/hurd/defs.c (init_stdio): Don't expect _hurd_fd_get
786         to lock the descriptor.
787         * sysdeps/mach/hurd/stdio_init.c: Use critical sections while
788         locking the descriptor.
789         * sysdeps/mach/hurd/fdopen.c: Likewise.
790         * hurd/fd-close.c: Likewise.
791         Don't expect the descriptor to be locked on entry.
792         Check for empty descriptor and return EBADF.
794         Factor ctty RPC code for SIGTTIN/SIGTTOU generation out into
795         new functions _hurd_ctty_input and _hurd_ctty_output, each
796         called with (io_t port, io_t ctty, error_t (*rpc) (io_t)).
797         * hurd/ctty-input.c: New file.
798         * hurd/ctty-output.c: New file.
799         * hurd/Makefile (dtable): Add ctty-input and ctty-output.
800         * hurd/fd-read.c: Use _hurd_ctty_input.
801         * hurd/fd-write.c: Use _hurd_ctty_output.
802         * sysdeps/mach/hurd/ioctl.c: Likewise.
803         * hurd/hurd/fd.h (_hurd_ctty_input, _hurd_ctty_output): Declare them.
805 Mon Feb 13 11:36:12 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
807         * stdio/vfscanf.c (%e, %f, %g): Use strtod, __strtold, or __strtof
808         as appropriate to the type.
810         * sysdeps/ieee754/huge_val.h (__huge_val_t): New macro to avoid
811         repeating the union.
812         (HUGE_VAL, __huge_val): Use it.
813         [__USE_GNU] (HUGE_VALf, HUGE_VALl): New macros, along with
814         analogous macros to HUGE_VAL's: __huge_val[fl]_t, __HUGE_VAL[fl]_bytes.
815         * stdlib/strtold.c (FLOAT_HUGE_VAL): Define this to HUGE_VALl.
816         (STRTOF): Set to __strtold; define strtold as weak alias.
817         * stdlib/strtof.c (FLOAT_HUGE_VAL): Define this to HUGE_VALf.
818         (STRTOF): Set to __strtof; define strtof as weak alias.
820         * sysdeps/ieee754/ieee754.h (union ieee754_float): New type.
821         (IEEE754_FLOAT_BIAS): New macro.
823         * sysdeps/ieee754/mpn2ldbl.c: Fix typos.
825         * stdlib/testmb.c: Add tests from rfg for using normal chars as
826         multibyte chars.
828         * hurd/hurdmalloc.c (malloc_init): Add self reference to avoid not
829         only the `defined but not used' warning, but also to avoid GCC
830         optimizing out the entire function (!).
832         * stdlib/wctomb.c: Include ctype.h.
834         * Makerules (install-lib-non.a): Don't include $(non-lib.a).
836         * hurd/hurdmalloc.c: Include string.h; #define bcopy using memcpy.
838 Sat Feb 11 04:05:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
840         * stdio/printf_fp.c: Include "fpioconst.h".
841         (_tens_p): Table moved to fpioconst.c, renamed to _fpioconst_pow10.
842         (__printf_fp): All references changed.
843         Don't bother computing THOUSANDS_SEP if GROUPING is empty.
844         (group_number): Use memmove instead of memcpy, since operands overlap.
845         * stdio/fpioconst.c: New file, tables broken out of stdio/printf_fp.c.
846         * stdio/fpioconst.h: New file, header declaring the table data.
847         * stdio/Makefile (aux): Add fpioconst.
848         (distribute): Add fpioconst.h.
849         * stdlib/strtod.c: Complete rewrite from drepper.
850         * stdlib/strtof.c: New file.
851         * stdlib/strtold.c: New file.
852         * stdlib/Makefile (routines): Add strtof, strtold.
853         * stdio/Makefile (routines): Add mpn2flt, mpn2dbl, mpn2ldbl.
854         * sysdeps/stub/mpn2flt.c: New file.
855         * sysdeps/stub/mpn2dbl.c: New file.
856         * sysdeps/stub/mpn2ldbl.c: New file.
857         * sysdeps/ieee754/mpn2flt.c: New file.
858         * sysdeps/ieee754/mpn2dbl.c: New file.
859         * sysdeps/ieee754/mpn2ldbl.c: New file.
861         * Makerules (install-lib.a): Don't filter out $(non-lib.a).
862         ($(install-lib.a) in $(libdir) rule): Elide ranlib command when $@
863         appears in $(non-lib.a).
865 Fri Feb 10 17:20:14 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
867         * stdlib/wctomb.c: A normal ASCII character translates to itself.
868         * stdlib/mbtowc.c: Likewise.
870 Thu Feb  9 03:55:55 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
872         * setjmp/setjmp.h (longjmp, _longjmp, __longjmp, siglongjmp):
873         Remove `const' from prototypes.
874         * sysdeps/m68k/__longjmp.c: Likewise.
875         * setjmp/longjmp.c: Likewise.
876         * sysdeps/i386/__longjmp.c: Likewise.
878         * sysdeps/posix/tempname.c: Increment *IDX at beginning of loop,
879         so when we return a name, it is incremented past the value that
880         produces that same name.
882         * stdio/fgets.c (fgets): Change `size_t' to `int' in prototype.  Sigh.
883         * stdio/stdio.h (fgets): Likewise.
885         * stdio/vfprintf.c (printf_unknown): Print ' for INFO->group flag.
887         * hurd/fd-write.c: Don't clobber ERR with the msg_sig_post call
888         when it's EBACKGROUND; we need to notice that it is EBACKGROUND
889         and retry the RPC.
890         * hurd/fd-read.c: Likewise.
892 Wed Feb  8 05:01:11 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
894         * sysdeps/mach/sysdep.h (FATAL_PREPARE_INCLUDE): New macro, set to
895         <mach/mig_support.h>.
896         * assert/assert-perr.c [FATAL_PREPARE_INCLUDE]: Include it.
897         * assert/assert.c: Likewise.
898         * sysdeps/posix/libc_fatal.c: Likewise.
900 Tue Feb  7 12:17:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
902         * stdio/stdio.h [__STRICT_ANSI__] (stdin, stdout, stderr): Define
903         as macros, to satisfy ANSI pedants.
905         * stdio/internals.c (flushbuf): When there is no new data after
906         priming the stream, return without writing out the buffer.
907         * stdio/Makefile (tests): Add bug7.
908         * stdio/bug7.c: New file.
910         * io/sys/stat.h (S_IFIFO, S_IFLNK, S_IFSOCK, S_ISFIFO, S_ISLNK,
911         S_ISSOCK): Define only if the corresponding underlying __S_IF* macro
912         is defined.
914         * stdio/getdelim.c: Decrement COPY after getting a char from __fillbf.
916         * stdio/Makefile (tests): Add errnobug.
917         * stdio/errnobug.c: New file.
919         * mach/mig_strncpy.c: Include string.h.
921         * sysdeps/mach/sysdep.h: Don't #include <mach/mig_support.h>.  Its
922         inlines cause trouble for files defining global register variables.
924         * stdio/vfprintf.c: Use _strerror_internal for %m.
926         * sysdeps/ieee754/dbl2mpn.c: Fixes from drepper for 64-bit limbs.
928         * stdio/printf.h (struct printf_info): New member `group', for %' flag.
929         * stdio/printf-prs.c (parse_printf_format): Grok %' flag and set flag.
930         * stdio/vfprintf.c (group_number): New function.
931         (vfprintf): Support %' flag for integer formats, by calling
932         group_number after formatting the number in WORK.
933         * stdio/printf_fp.c (guess_grouping, group_number): New functions.
934         (__printf_fp): Implement `group' flag using them.
936         * Makefile (include sysd-dirs): Protect with ifndef avoid-generated.
937         (parent-clean): Remove sysd-rules, not sysdirs.
938         (distclean): Pass avoid-generated=yes to submake.
939         (distclean-1): Remove $(sysdep-$(distclean-1)).
941         * Makerules (objects, objs): Depend on $(extra-objs) too.
942         (include sysd-Makefile): Protect with ifndef avoid-generated.
944         * Makeconfig (+defines, +gnu-stabs, gnu-as): Variables removed.
945         (CPPFLAGS): Use $(defines) in place of $(+defines).
946         Replace -D_LIBC with -include $(..)libc-symbols.h.
948         * stdio/freopen.c: Set seen bit before calling fclose.
950 Mon Feb  6 18:34:40 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
952         * sysdeps/mach/hurd/setpriority.c: Keep track of numbers of
953         successes and each kind of failure.  Return EPERM or EACCES only
954         if every task failed that way.
956         * sysdeps/mach/hurd/getpriority.c: Handle out of band buffers
957         correctly.
959         * sysdeps/mach/hurd/ptrace.c (PTRACE_ATTACH, PTRACE_DETACH): Stop
960         or resume the process after frobbing.
962         * hurd/hurdsig.c: Use spin lock operations on sigstate locks
963         throughout.
964         (_hurd_thread_sigstate): Don't lock the sigstate lock.
965         (_hurd_internal_post_signal): New subfunction `mark_pending'; replace
966         repeated sequences with calls to it.  Don't expect the sigstate
967         lock to be held on entry; lock it just before examining sigaction.
968         In handler case, check SS->critical_section after calling
969         abort_rpcs; if set, mark the signal pending and resume the thread.
970         * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): Function removed.
971         (_hurd_self_sigstate): Don't lock the sigstate lock.
972         (HURD_EINTR_RPC): Call _hurd_self_sigstate instead of
973         _hurd_self_sigstate_unlocked.
974         * hurd/msgportdemux.c: Don't expect _hurd_self_sigstate to lock
975         the sigstate lock.
976         * hurd/hurdexec.c: Use spin lock operations on sigstate lock.
977         Don't expect _hurd_self_sigstate to lock it.  Fix critical section
978         locking.
979         * hurd/hurd-raise.c: Likewise.
980         * sysdeps/mach/hurd/sigsuspend.c: Likewise. 
981         * sysdeps/mach/hurd/sigpending.c: Likewise.
982         * sysdeps/mach/hurd/sigaltstack.c: Likewise.
983         * sysdeps/mach/hurd/sigaction.c: Likewise.
984         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
985         * hurd/fd-write.c: Likewise.
986         * hurd/fd-read.c: Likewise.
987         * sysdeps/mach/hurd/ioctl.c: Likewise.
988         * sysdeps/mach/hurd/fork.c: Likewise.
989         * sysdeps/mach/hurd/i386/sigreturn.c: Likewise.
990         * sysdeps/mach/hurd/mips/sigreturn.c: Likewise.  
991         * sysdeps/mach/hurd/alpha/sigreturn.c: Likewise.
992         * hurd/hurdmsg.c (get_int): Likewise.
994         * stdio/vfprintf.c: Include stddef.h.  Fix typos in libio code.
996         * stdio/vfprintf.c (__pad): Function renamed to __printf_pad, made
997         global.
998         (PAD): Caller changed.
999         * stdio/printf_fp.c (__pad): Function removed.
1000         (PAD): Use __printf_pad instead.
1002 Sun Feb  5 17:59:53 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1004         Merged new FP printer by Ulrich Drepper.
1005         * stdio/printf_fp.c: Rewrite by drepper.
1006         * stdio/Makefile (routines): Add ldbl2mpn.
1007         * sysdeps/ieee754/ieee754.h (union ieee754_double): Add `ieee_nan'
1008         member.
1009         (union ieee854_long_double): New type, from drepper.
1010         (IEEE754_DOUBLE_BIAS, IEEE854_LONG_DOUBLE_BIAS): New macros.
1011         * sysdeps/ieee754/ldbl2mpn.c: New file, by drepper.
1012         * sysdeps/stub/ldbl2mpn.c: New file.
1013         * math/Makefile (routines): Add isinfl and isnanl.
1014         * sysdeps/ieee754/isinfl.c: New file.
1015         * sysdeps/stub/isinfl.c: New file.
1016         * sysdeps/ieee754/isnanl.c: New file.
1017         * sysdeps/stub/isnanl.c: New file.
1019         * malloc/malloc.c (__malloc_extra_blocks): New variable.
1020         (malloc): When getting more core, get __malloc_extra_blocks extra;
1021         put the new block at the end of the free list and let the next loop
1022         iteration use the initial portion of it.
1023         * malloc/free.c (_free_internal): Account for twice
1024         __malloc_extra_blocks in deciding if we have so much extra memory
1025         we should return it to the system.
1026         * malloc/malloc.h (__malloc_extra_blocks): Declare it.
1027         * posix/glob.c (prefix_array, glob_pattern_p): Remove gratuitous
1028         const in parameter decl.
1030         * sysdeps/unix/mips/sysdep.h (ENTRY): Add `.ent' directive.
1032 Fri Feb  3 18:15:52 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1034         * munch.awk (EXTERNS): Print decls using __P instead of EXFUN.
1036         * sysdeps/mips/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
1037         * sysdeps/mips/bsd-_setjmp.S: Use `li' insn instead of `move'.
1038         * sysdeps/mips/bsd-setjmp.S: Likewise.
1039         * sysdeps/mips/__longjmp.c: Remove obsolete __NORETURN keyword.
1040         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
1041         Use `long int' for sigcode.  Use explicit register numbers instead
1042         of names.
1043         (_hurdsig_rcv_interrupted_p): Use _hurdsig_catch_fault.
1044         * sysdeps/mach/hurd/mips/exc2signal.c: Use `long int' for sigcode.
1046 Thu Feb  2 20:06:45 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1048         * hurd/hurdmalloc.c: Remove bogus bcopy decl.
1050         * mach/mig_strncpy.c: Add missing `const' in prototype.  Rewritten
1051         using __stpncpy.
1053         * io/ftw.c (ftw, ftw_dir): Treat ENOENT from stat like EACCES.
1055         * stdio/vfprintf.c: Set PREC to zero for %. without following digit.
1057 Tue Jan 31 13:49:57 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1059         * mach/mig_strncpy.c: Include mach.h instead of string.h.  Use
1060         vm_size_t instead of size_t for arg and return types.
1062         * mach/mach_init.c: Don't declare __mig_init; mach/mig_support.h
1063         already does.
1065 Mon Jan 30 00:33:35 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1067         * set-hooks.h (RUN_HOOK): Dereference PTR properly.
1069         * configure.in (friendly stddef.h check): Write override defn for
1070         `stddef.h' Make variable.
1071         (AC_LINK_FILES): Use `echo ...` to avoid " " appearing nonempty.
1073         * configure.in (host_os=sysv4*|solaris2*): Set elf=yes.
1075         * Rules ($(objpfx)dummy.o): Write an empty function, not just an
1076         empty file.
1078         * sysdeps/sparc/Makefile (sysdep-realclean): New variable.
1080 Sat Jan 28 03:38:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1082         * Makefile (distribute): Remove gnu-stabs.h; add libc-symbols.h.
1084         * sysdeps/mach/sysdep.h [ASSEMBLER]: Protect include of
1085         mach/machine/syscall_sw.h with this.
1087 Fri Jan 27 18:33:20 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1089         * hurd/hurd/signal.h: Include <hurd/msg.h>, and <spin-lock.h>
1090         instead of <lock-intern.h>.
1091         (struct hurd_sigstate): Member `lock' changed to a `spin_lock_t'.
1092         (_hurd_critical_section_lock): Use spin lock operators.
1093         Don't hold the sigstate lock, unlock it after setting the flag.
1094         (_hurd_critical_section_unlock): Take the sigstate lock
1095         to clear the flag; while holding it, check pending signals.  After
1096         unlocking, sig_post ourselves if there were pending signals.
1098         * hurd/catch-exc.c (_S_catch_exception_raise): Don't take the
1099         sigstate lock.  If it is locked, clear SS->critical_section and
1100         SS->context, and unlock it.
1102         * sysdeps/mach/sysdep.h (EXT, LEXT): New macros.
1104         * set-init.c (__libc_init) [HAVE_ELF]: Run _init and atexit (_fini).
1105         * munch-tmpl.c: Likewise.
1107         * mach/Makefile (routines): Don't filter out syscall_% from
1108         $(mach-syscalls).
1110 Fri Jan 27 17:53:49 1995  Jim Meyering  (meyering@comco.com)
1112         * posix/fnmatch.c: Declare errno if it's not defined.
1113         That's simpler than testing #if !defined(__GNU_LIBRARY__)
1114         && !defined(STDC_HEADERS).
1116 Fri Jan 27 15:40:29 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1118         * csu/Makefile: New file.
1119         * csu/initfini.c: New file.
1120         * Makefile (+other_dirs): Add csu.
1121         (+init): Variable renamed to libc-init.  All references changed.
1122         (aux): Remove start.
1123         (install-lib): Variable removed.
1124         (crt0.o, Mcrt1.o  crt1.o): Targets removed.
1126         * mach/Machrules (static deps of RPC_*.o): Add $(..)libc-symbols.h
1127         and $(objpfx)config.h.
1128         (static deps of RPC alias *.o): Removed.
1130         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h [ASSEMBLER]:
1131         Protect macros with this.
1132         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: Likewise.
1133         * sysdeps/unix/bsd/sequent/i386/sysdep.h: Likewise.
1134         * sysdeps/unix/bsd/vax/sysdep.h: Likewise.
1135         * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
1136         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
1137         * sysdeps/unix/mips/sysdep.h: Likewise.
1139 Thu Jan 26 00:02:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1141         * Makerules (compile.[Sc]): Match gcc in $(CC) better.
1142         (BUILD_CFLAGS): Instead of $(config-defines), use -include config.h.
1144         * hurd/intr-rpc.awk: Emit weak alias.
1146         * sysdeps/unix/bsd/sun/sunos4/wait4.c: Call getpgrp instead of
1147         __getpgrp.
1149         * sysdeps/unix/bsd/hp/m68k/sysdep.h [ASSEMBLER]: Protect macros with
1150         this.
1151         * sysdeps/unix/i386/sysdep.h: Likewise.
1152         * sysdeps/unix/sparc/sysdep.h: Likewise.
1154         * io/ftw.c: Avoid `ret' as variable name.
1155         * posix/glob.c: Likewise.
1157         * ctype/ctype.h (_ISalpha): Define as its own bit.
1158         * locale/C-ctype_ct.c (__ctype_b_C): Set _ISalpha bit in all letters.
1160         * stdlib/exit.c [HAVE_GNU_LD]: Protect #include "set-hooks.h" and
1161         DEFINE_HOOK with this.
1163 Wed Jan 25 00:45:56 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1165         * hurd/hurdinit.c: Use DECLARE_HOOK instead of `extern DEFINE_HOOK'.
1166         * mach/spin-solid.c (spin_lock_solid): Define as weak alias to __name.
1167         * mach/shortcut.awk: Emit weak alias.
1168         * mach/spin-lock.c: Add weak aliases for all spin-lock.h functions.
1169         * mach/mach_init.c (mach_init, vm_page_size): Defin weak aliases for
1170         __ names.
1171         * mach/Makefile (lock): Remove spin-syms.
1172         (routines): Remove __ names, vm_page_size, msgserver_t.
1173         ($(mach-syscalls) rule): Generate files without __, add weak alias.
1174         Remove symbol alias file rule.
1175         ($(mach-shortcuts) rule): Likewise.
1176         [!mach-shortcuts] (user-interfaces): Filter out mach/mach4 too.
1177         * mach/Machrules (if-calls.c): Variable and rule removed.
1178         (interface-headers): Don't add $($(if)-calls).
1179         (transform-user-stub): Define to add weak alias.
1180         * set-hooks.h: Use new libc-symbols.h set access macros.
1181         * time/Makefile (routines): Remove __ names.
1182         (aux): Variable removed.
1183         * hurd/Makefile: Likewise.
1184         * sysdeps/unix/start.c (environ): Define as weak alias for __environ.
1185         (data_start): Define as weak alias for __data_start.
1186         * sysdeps/mach/hurd/start.c: Likewise.
1187         * sysdeps/unix/sparc/start.c: Likewise.
1188         * sysdeps/unix/make_errlist.c: Emit weak aliases for sys_nerr and
1189         sys_errlist.
1190         * sysdeps/mach/hurd/errlist.awk: Likewise.
1191         * sysdeps/unix/bsd/osf1/alpha/start.S (environ): Define as weak
1192         alias for __environ.
1193         * sysdeps/unix/bsd/ultrix4/mips/start.S: Likewise.
1194         * sysdeps/stub/setdomain.c: Use new stub_warning macro.
1195         * sysdeps/stub/getdomain.c: Likewise.
1196         * sysdeps/stub/vhangup.c: Likewise.
1197         * sysdeps/stub/swapon.c: Likewise.
1198         * sysdeps/stub/sendmsg.c: Likewise.
1199         * sysdeps/stub/recvmsg.c: Likewise.
1200         * sysdeps/stub/acct.c: Likewise.
1201         * sysdeps/stub/isinf.c: Likewise.  Add weak alias isinf for __isinf.
1202         * sysdeps/mach/hurd/_exit.c: Remove obsolete __NORETURN keyword.
1203         * sysdeps/posix/libc_fatal.c: Likewise.
1204         * sysdeps/i386/abort.c: Likewise.
1205         * sysdeps/i386/__longjmp.c: Likewise.
1206         * sysdeps/generic/make_siglist.c: Emit defn always for
1207         _sys_siglist.  Emit weak alias to sys_siglist.
1208         * sysdeps/generic/atan.c: Remove obsolete __CONSTVALUE keyword.
1209         * sysdeps/ieee754/log10.c: Likewise.
1210         * time/difftime.c: Likewise.
1211         * stdlib/random.c (srand): Define as weak alias for __srandom.
1212         * stdlib/exit.c: Remove obsolete __NORETURN keyword.  Use set-hooks
1213         macros for __libc_atexit.
1214         * stdlib/Makefile (routines): Remove __random, srand.
1215         * stdio/gets.c: Use new link_warning macro instead of old
1216         warn_references.
1217         * stdio/Makefile (routines): Remove __ names.
1218         (aux): Remove syms-stdio.
1219         * socket/Makefile (routines): Added e on getpeernam and getsocknam.
1220         * setjmp/longjmp.c: Remove obsolete __NORETURN keyword.
1221         * setjmp/Makefile (routines): Remove _longjmp, siglongjmp.
1222         * setjmp/setjmp.h: Replace __NORETURN keyword with __attribute__ uses.
1223         * stdio/stdio.h: Likewise.
1224         * misc/Makefile (routines): Remove __ names.
1225         (aux): Remove data_start.
1226         * sysdeps/mach/hurd/defs.c: Don't include gnu-stabs.h.
1227         * sysdeps/mach/hurd/brk.c: Likewise.
1228         * hurd/hurdid.c: Likewise.
1229         * hurd/hurdpid.c: Likewise.
1230         * hurd/openport.c: Likewise.
1231         * hurd/hurdsock.c: Likewise.
1232         * hurd/hurdsig.c: Likewise.
1233         * hurd/hurdrlimit.c: Likewise.
1234         * hurd/hurdmalloc.c: Likewise.
1235         * hurd/dtable.c: Likewise.
1236         * hurd/setauth.c: Likewise.
1237         * misc/progname.c: Likewise.
1238         * misc/init-misc.c: Likewise.
1239         * sysdeps/generic/vfork.c: Likewise.
1240         * sysdeps/unix/bsd/init-posix.c: Likewise.
1241         * math/math.h: Replace __CONSTVALUE keyword with __attribute__ uses.
1242         * time/time.h: Likewise.
1243         * math/Makefile (routines): Remove __ names.
1244         * io/Makefile: Likewise.
1245         * termios/Makefile: Likewise.
1246         * resource/Makefile: Likewise.
1247         * signal/Makefile: Likewise.
1248         * dirent/Makefile: Likewise.
1249         * assert/assert.h: Replace __NORETURN keyword with __attribute__
1250         uses.  Functions return void and macros deal with this.
1251         * assert/assert-perr.c: Remove obsolete __NORETURN keyword.
1252         Return void.  Don't include gnu-stabs.h.
1253         * assert/assert.c: Likewise.
1254         * posix/Makefile (routines): Remove __ names, setpgrp.  Add
1255         getpgid.
1256         (aux): Remove environ.
1257         * stdlib/stdlib.h (abort, exit): Replace __NORETURN keyword with
1258         __attribute__ use.
1259         * posix/unistd.h (_exit): Likewise.
1260         (__getpgrp, __setpgrp): Declarations removed.
1261         (__getpgid, getpid): Declare these.
1263         * configure.in (host_os=gnuelf|linuxelf): Set elf=yes.  Do AC_SUBST
1264         for gnu_ld, gnu_as, elf, and weak.  Call AC_LINK_FILEES on
1265         $libc_link_{sources,dests}.
1266         * sysdeps/unix/configure.in: Remove __ from file names.  Don't
1267         create files, just add to libc_link_{dests,sources}.
1269         * config.make.in (gnu-as, gnu-ld, elf, weak-symbols): New variables.
1271         * config.h.in: Add #undefs used by sysdeps configures.
1273         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Removed
1274         __setpgid, __getpgid.
1275         * sysdeps/unix/sysv/sco3.2.4/setpgid.c: Included file was renamed
1276         from setpgrp.c.
1277         * sysdeps/unix/sysv/sco3.2.4/getpgid.c: Included file was renamed
1278         from __getpgrp.c.
1279         * sysdeps/unix/bsd/getpgrp.c: File removed.
1280         * sysdeps/generic/getpgrp.c: Moved from sysdeps/stub/getpgrp.c.
1281         Call __getpgid with zero.
1282         * sysdeps/stub/setpgid.c: Renamed __setpgrp to __setpgid, added
1283         weak aliases setpgid and setpgrp.
1284         * sysdeps/unix/sysv/irix4/setpgid.S: Likewise.
1285         * sysdeps/unix/common/setpgid.S: Likewise.
1286         * sysdeps/mach/hurd/setpgid.c: Likewise.
1287         * sysdeps/unix/sysv/sysv4/setpgid.c: Likewise.
1288         Use subcall 5 to __pgrpsys.
1289         * sysdeps/stub/getpgid.c: Renamed __getpgrp to __getpgid, added
1290         weak alias getpgid.
1291         * sysdeps/mach/hurd/getpgid.c: Likewise.
1292         * sysdeps/unix/sysv/irix4/getpgid.S: Likewise.
1293         * sysdeps/unix/common/getpgid.S: Likewise.
1294         * sysdeps/unix/sysv/sysv4/getpgid.c: Likewise.
1295         Use subcall 4 to __pgrpsys.
1296         * sysdeps/stub/__getpgrp.c: Renamed to getpgid.c.
1297         * sysdeps/unix/sysv/sysv4/__getpgrp.c: Renamed to getpgid.c.
1298         * sysdeps/unix/sysv/sco3.2.4/__getpgrp.c: Renamed to getpgid.c.
1299         * sysdeps/unix/sysv/irix4/__getpgrp.S: Renamed to getpgid.S.
1300         * sysdeps/unix/common/__getpgrp.S: Renamed to getpgid.S.
1301         * sysdeps/mach/hurd/__getpgrp.c: Renamed to getpgid.c.
1302         * sysdeps/stub/setpgrp.c: Renamed to setpgid.c.
1303         * sysdeps/unix/sysv/sysv4/setpgrp.c: Renamed to setpgid.c.
1304         * sysdeps/unix/sysv/sco3.2.4/setpgrp.c: Renamed to setpgid.c.
1305         * sysdeps/unix/sysv/irix4/setpgrp.S: Renamed to setpgid.S.
1306         * sysdeps/unix/common/setpgrp.S: Renamed to setpgid.S.
1307         * sysdeps/mach/hurd/setpgrp.c: Renamed to setpgid.c.
1309         * sysdeps/unix/bsd/hp/m68k/getdents.S: Included file was renamed
1310         from __getdents.S.
1312         * sysdeps/posix/defs.c: Don't include gnu-stabs.h.
1313         * sysdeps/stub/sigpending.c: Use new libc-symbols.h macro for stub
1314         warning.
1315         * sysdeps/stub/fexecve.c: Likewise.
1316         * sysdeps/stub/fchdir.c: Likewise.
1317         * sysdeps/stub/fchflags.c: Likewise.
1318         * sysdeps/stub/chflags.c: Likewise.
1320         * sysdeps/m68k/__longjmp.c: Remove __NORETURN; it's obsolete.
1321         * sysdeps/generic/abort.c: Likewise.
1322         * sysdeps/ieee754/ldexp.c: Remove __CONSTVALUE; it's obsolete.
1324         * hurd/hurdioctl.c: Include hurd/ioctl.h.
1325         (_hurd_ioctl_handler_lists): Define this set.
1326         (_hurd_lookup_ioctl_handler): New function.
1327         * hurd/hurd/fd.h: ioctl handler stuff moved to hurd/ioctl.h.
1328         * hurd/hurd/ioctl.h: New file, broken out of hurd/fd.h.
1329         (_hurd_lookup_ioctl_handler): Declare it.
1330         (ioctl_handler_t): New typedef.  Use it throughout.
1331         * sysdeps/mach/hurd/ioctl.c: Include hurd/ioctl.h.
1332         (_hurd_ioctl_handler_lists): Don't define.
1333         (__ioctl): Call _hurd_lookup_ioctl_handler.
1335         * stdlib/strtol.c (maxquad): Make this const.
1336         [__GNUC__ == 2 && __GNUC_MINOR__ < 7]: Only use maxquad in this case.
1338         * posix/glob/configure.in: Put AC_AIX and AC_MINIX early, before
1339         any compile tests.
1341         * sysdeps/mach/hurd/setitimer.c (timer_thread): Call
1342         __msg_sig_post_request, not __sig_post_request.
1344         * misc/getusersh.c: Renamed to getusershell.c.
1345         * sysdeps/stub/sethostnam.c: Renamed to sethostname.c.
1346         * sysdeps/unix/inet/sethostnam.S: Renamed to sethostname.S.
1347         * sysdeps/unix/sysv/sysv4/sethostnam.c: Renamed to sethostname.c.
1348         * sysdeps/mach/hurd/sethostnam.c: Renamed to sethostname.c.
1350 Tue Jan 24 00:14:30 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1352         * sysdeps/stub/settod.c: Renamed to settimeofday.c.
1353         * sysdeps/unix/bsd/settod.S: Renamed to settimeofday.c.
1354         * sysdeps/unix/sysv/settod.c: Renamed to settimeofday.c.
1355         * sysdeps/mach/hurd/settod.c: Renamed to settimeofday.c.
1356         * sysdeps/stub/setitmr.c: Renamed to setitimer.c.
1357         * sysdeps/unix/common/setitmr.S: Renamed to setitimer.S.
1358         * sysdeps/mach/hurd/setitmr.c: Renamed to setitimer.c.
1359         * sysdeps/posix/fpathcon.c: Renamed to fpathconf.c.
1360         * sysdeps/stub/fpathcon.c: Renamed to fpathconf.c.
1361         * sysdeps/unix/sysv/irix4/fpathcon.c: Renamed to fpathconf.c.
1362         * sysdeps/stub/getprio.c: Renamed to getpriority.c.
1363         * sysdeps/unix/sysv/irix4/getprio.c: Renamed to getpriority.c.
1364         * sysdeps/unix/common/getprio.S: Renamed to getpriority.S.
1365         * sysdeps/mach/hurd/getprio.c: Renamed to getpriority.c.
1366         * sysdeps/stub/setprio.c: Renamed to setpriority.c.
1367         * sysdeps/unix/sysv/irix4/setprio.c: Renamed to setpriority.c.
1368         * sysdeps/unix/common/setprio.S: Renamed to setpriority.S.
1369         * sysdeps/mach/hurd/setprio.c: Renamed to setpriority.c.
1370         * sysdeps/stub/getpeernam.c: Renamed to getpeername.c.
1371         * sysdeps/unix/inet/getpeernam.S: Renamed to getpeername.S.
1372         * sysdeps/unix/sysv/linux/getpeernam.S: Renamed to getpeername.S.
1373         * sysdeps/mach/hurd/getpeernam.c: Renamed to getpeername.c.
1374         * sysdeps/stub/getsocknam.c: Renamed to getsockname.c.
1375         * sysdeps/unix/inet/getsocknam.S: Renamed to getsockname.S.
1376         * sysdeps/unix/sysv/linux/getsocknam.S: Renamed to getsockname.S.
1377         * sysdeps/mach/hurd/getsocknam.c: Renamed to getsockname.c.
1378         * sysdeps/stub/sigaltstk.c: Renamed to sigaltstack.c.
1379         * sysdeps/unix/bsd/bsd4.4/sigaltstk.S: Renamed to sigaltstack.S.
1380         * sysdeps/unix/sysv/sysv4/sigaltstk.S: Renamed to sigaltstack.S.
1381         * sysdeps/mach/hurd/sigaltstk.c: Renamed to sigaltstack.c.
1383         * sysdeps/mach/hurd/i386/sigreturn.c: Call __msg_sig_post instead
1384         of __sig_post.
1385         * sysdeps/mach/hurd/sigsuspend.c: Likewise.
1386         * sysdeps/mach/hurd/kill.c: Likewise.
1387         * sysdeps/mach/hurd/sigprocmask.c: Likewise.
1389         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Macros removed.
1390         [!__GNUC__ || __GNUC__<2] (__attribute__): Define to empty.
1392         * sysdeps/stub/remove.c: New file.
1393         * sysdeps/posix/remove.c: New file.
1395 Mon Jan 23 03:26:09 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1397         * time/mktime.c [weak_alias] (timelocal): Define as weak alias for
1398         mktime.
1399         * mach/mig_strncpy.c (mig_strncpy): Define as weak alias for
1400         __mig_strncpy.
1401         * mach/msg-destroy.c: Renamed from __msg_dest.c.
1402         (mach_msg_destroy): Define as weak alias for __mach_msg_destroy.
1403         * mach/setup-thread.c (mach_setup_thread): Define as weak alias.
1404         * time/tzset.c (tzname, daylight, timezone): Define as weak
1405         aliases for __ names.
1406         * hurd/hurdkill.c (hurd_sig_post): Define as weak alias.
1407         * hurd/hurdlookup.c: Add weak aliases for non-__ names.
1408         * Makefile (+init): Test $(gnu-ld)=yes, not for $(+gnu-stabs)
1409         being defined.
1411 Sun Jan 22 15:19:51 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1413         * string/Makefile (routines): Remove __ names, index, rindex, and
1414         bcmp.
1415         * sysdeps/alpha/strchr.c [weak_alias] (index): Define as weak
1416         alias for strchr.
1417         * sysdeps/generic/strchr.c: Likewise.
1418         * sysdeps/generic/strrchr.c [weak_alias] (rindex): Define as weak
1419         alias for strrchr.
1420         * sysdeps/generic/memcmp.c [weak_alias] (bcmp): Define as weak
1421         alias for memcmp.
1423         * malloc/free.c (cfree): Define this function, with weak_alias if
1424         available, otherwise a C function.
1425         * malloc/Makefile (gmalloc-routines): Remove cfree.
1427 Sat Jan 21 08:08:58 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
1429         * stdio/fseek.c: Do move bufp by O when that puts it exactly at
1430         get_limit.  This has the effect of no-op'ing properly for zero.
1432         * configure.in: Add AC_CONFIG_HEADER(config.h).
1433         (--with-elf, --with-weak-symbols): Grok these and define HAVE_*.
1434         * config.h.in: New file.
1436         * setjmp/longjmp.c: Add weak aliases _longjmp, siglongjmp.
1437         All code converted to use weak symbols, defined in the files which
1438         define the real code (with the __ names, the non-__ names are weak).
1439         All old symbol alias files removed.
1440         Many files renamed to remove __ prefix since there is now just
1441         the one file for both the __ and non-__ name for each function.
1442         * libc-symbols.h: New file.
1443         * set-hooks.h: Use libc-symbols.h macros for accessing symbol
1444         sets.
1445         * gnu-stabs.h: Prepend #error this file is obsolete.
1446         * sysdeps/ieee754/ldexp.c: Add weak aliases scalb and __scalb.
1447         * sysdeps/stub/__access.c: Renamed to access.c; added weak alias
1448         access.
1449         * sysdeps/unix/common/__access.S: Likewise.
1450         * sysdeps/mach/hurd/__access.c: Likewise.
1451         * sysdeps/stub/__adjtime.c: Renamed to adjtime.c; added weak alias
1452         adjtime.
1453         * sysdeps/unix/common/__adjtime.S: Likewise.
1454         * sysdeps/mach/__adjtime.c: Likewise.
1455         * sysdeps/mach/hurd/__adjtime.c: Likewise.
1456         * sysdeps/stub/__brk.c: Renamed to brk.c; added weak alias brk.
1457         * sysdeps/unix/bsd/sun/m68k/__brk.S: Likewise.
1458         * sysdeps/unix/bsd/vax/__brk.S: Likewise.
1459         * sysdeps/unix/bsd/hp/m68k/__brk.S: Likewise.
1460         * sysdeps/unix/bsd/osf1/alpha/__brk.S: Likewise.
1461         * sysdeps/unix/i386/__brk.S: Likewise.
1462         * sysdeps/unix/sparc/__brk.S: Likewise.
1463         * sysdeps/unix/mips/__brk.S: Likewise.
1464         * sysdeps/mach/hurd/__brk.c: Likewise.
1465         * sysdeps/standalone/__brk.c: Likewise.
1466         * sysdeps/stub/__chdir.c: Renamed to chdir.c; added weak alias chdir.
1467         * sysdeps/unix/__chdir.S: Likewise.
1468         * sysdeps/mach/hurd/__chdir.c: Likewise.
1469         * sysdeps/stub/__chmod.c: Renamed to chmod.c; added weak alias chmod.
1470         * sysdeps/unix/__chmod.S: Likewise.
1471         * sysdeps/mach/hurd/__chmod.c: Likewise.
1472         * sysdeps/stub/__chown.c: Renamed to chown.c; added weak alias chown.
1473         * sysdeps/unix/__chown.S: Likewise.
1474         * sysdeps/mach/hurd/__chown.c: Likewise.
1475         * sysdeps/stub/__close.c: Renamed to close.c; added weak alias close.
1476         * sysdeps/unix/__close.S: Likewise.
1477         * sysdeps/mach/hurd/__close.c: Likewise.
1478         * sysdeps/standalone/__close.c: Likewise.
1479         * sysdeps/generic/__copysign.c: Renamed to copysign.c; added weak
1480         alias copysign.
1481         * sysdeps/ieee754/__copysign.c: Likewise.
1482         * sysdeps/alpha/__copysign.c: Likewise.
1483         * sysdeps/ieee754/__drem.c: Renamed to drem.c; added weak alias drem.
1484         * sysdeps/m68k/fpu/__drem.c: Likewise.
1485         * sysdeps/stub/__drem.c: Likewise.
1486         * sysdeps/posix/__dup.c: Renamed to dup.c; added weak alias dup.
1487         * sysdeps/stub/__dup.c: Likewise.
1488         * sysdeps/unix/__dup.S: Likewise.
1489         * sysdeps/posix/__dup2.c: Renamed to dup2.c; added weak alias dup2.
1490         * sysdeps/stub/__dup2.c: Likewise.
1491         * sysdeps/unix/sysv/sysv4/__dup2.c: Likewise.
1492         * sysdeps/unix/sysv/irix4/__dup2.c: Likewise.
1493         * sysdeps/unix/common/__dup2.S: Likewise.
1494         * sysdeps/mach/hurd/__dup2.c: Likewise.
1495         * sysdeps/stub/__execve.c: Renamed to execve.c; added weak alias
1496         execve.
1497         * sysdeps/unix/__execve.S: Likewise.
1498         * sysdeps/mach/hurd/__execve.c: Likewise.
1499         * sysdeps/generic/__expm1.c: Renamed to expm1.c; added weak alias
1500         expm1.
1501         * sysdeps/m68k/fpu/__expm1.c: Likewise.
1502         * sysdeps/stub/__fchmod.c: Renamed to fchmod.c; added weak alias
1503         fchmod.
1504         * sysdeps/unix/common/__fchmod.S: Likewise.
1505         * sysdeps/mach/hurd/__fchmod.c: Likewise.
1506         * sysdeps/stub/__fchown.c: Renamed to fchown.c; added weak alias
1507         fchown.
1508         * sysdeps/unix/common/__fchown.S: Likewise.
1509         * sysdeps/mach/hurd/__fchown.c: Likewise.
1510         * sysdeps/stub/__fcntl.c: Renamed to fcntl.c; added weak alias fcntl.
1511         * sysdeps/unix/__fcntl.S: Likewise.
1512         * sysdeps/mach/hurd/__fcntl.c: Likewise.
1513         * math/__finite.c: Renamed to finite.c; added weak alias finite.
1514         * sysdeps/posix/__flock.c: Renamed to flock.c; added weak alias flock.
1515         * sysdeps/stub/__flock.c: Likewise.
1516         * sysdeps/unix/bsd/__flock.S: Likewise.
1517         * sysdeps/mach/hurd/__flock.c: Likewise.
1518         * hurd/__fopenport.c: Renamed to fopenport.c; added weak alias
1519         fopenport.
1520         * sysdeps/stub/__fork.c: Renamed to fork.c; added weak alias fork.
1521         * sysdeps/unix/__fork.S: Likewise.
1522         * sysdeps/unix/bsd/osf1/alpha/__fork.S: Likewise.
1523         * sysdeps/unix/i386/__fork.S: Likewise.
1524         * sysdeps/unix/sparc/__fork.S: Likewise.
1525         * sysdeps/unix/mips/__fork.S: Likewise.
1526         * sysdeps/mach/hurd/__fork.c: Likewise.
1527         * sysdeps/posix/__fpathcon.c: Renamed to fpathcon.c; added weak
1528         alias fpathconf.
1529         * sysdeps/stub/__fpathcon.c: Likewise.
1530         * sysdeps/unix/sysv/irix4/__fpathcon.c: Likewise.
1531         * sysdeps/stub/__fstat.c: Renamed to fstat.c; added weak alias fstat.
1532         * sysdeps/unix/__fstat.S: Likewise.
1533         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
1534         * sysdeps/mach/hurd/__fstat.c: Likewise.
1535         * stdio/__getdelim.c: Renamed to getdelim.c; added weak alias
1536         getdelim.
1537         * sysdeps/stub/__getdents.c: Renamed to getdents.c; added weak
1538         alias getdents.
1539         * sysdeps/unix/__getdents.c: Likewise.
1540         * sysdeps/unix/bsd/sun/__getdents.S: Likewise.
1541         * sysdeps/unix/bsd/hp/m68k/__getdents.S: Likewise.
1542         * sysdeps/unix/bsd/ultrix4/__getdents.S: Likewise.
1543         * sysdeps/unix/bsd/bsd4.4/__getdents.S: Likewise.
1544         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: Likewise.
1545         * sysdeps/unix/sysv/__getdents.c: Likewise.
1546         * sysdeps/mach/hurd/__getdents.c: Likewise.
1547         * hurd/__getdport.c: Renamed to getdport.c; added weak alias getdport.
1548         * sysdeps/posix/__getdtsz.c: Renamed to getdtsz.c; added weak
1549         alias getdtablesize.
1550         * sysdeps/stub/__getdtsz.c: Likewise.
1551         * sysdeps/unix/bsd/__getdtsz.S: Likewise.
1552         * sysdeps/unix/sysv/sysv4/__getdtsz.c: Likewise.
1553         * sysdeps/mach/hurd/__getdtsz.c: Likewise.
1554         * sysdeps/stub/__getegid.c: Renamed to getegid.c; added weak alias
1555         getegid.
1556         * sysdeps/unix/__getegid.S: Likewise.
1557         * sysdeps/mach/hurd/__getegid.c: Likewise.
1558         * sysdeps/stub/__geteuid.c: Renamed to geteuid.c; added weak alias
1559         geteuid.
1560         * sysdeps/unix/__geteuid.S: Likewise.
1561         * sysdeps/mach/hurd/__geteuid.c: Likewise.
1562         * sysdeps/stub/__getgid.c: Renamed to getgid.c; added weak alias
1563         getgid.
1564         * sysdeps/unix/__getgid.S: Likewise.
1565         * sysdeps/mach/hurd/__getgid.c: Likewise.
1566         * sysdeps/stub/__getgrps.c: Renamed to getgroups.c; added weak
1567         alias getgroups.
1568         * sysdeps/unix/bsd/sequent/i386/__getgrps.S: Likewise.
1569         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Likewise.
1570         * sysdeps/unix/sysv/irix4/__getgrps.c: Likewise.
1571         * sysdeps/unix/common/__getgrps.S: Likewise.
1572         * sysdeps/mach/hurd/__getgrps.c: Likewise.
1573         * sysdeps/stub/__gethstnm.c: Renamed to gethostname.c; added weak
1574         alias gethostname. 
1575         * sysdeps/unix/inet/__gethstnm.S: Likewise.
1576         * sysdeps/unix/sysv/__gethstnm.c: Likewise.
1577         * sysdeps/unix/sysv/sysv4/__gethstnm.c: Likewise.
1578         * sysdeps/mach/hurd/__gethstnm.c: Likewise.
1579         * sysdeps/stub/__getitmr.c: Renamed to getitimer.c; added weak
1580         alias getitimer.
1581         * sysdeps/unix/common/__getitmr.S: Likewise.
1582         * sysdeps/mach/hurd/__getitmr.c: Likewise.
1583         * stdio/__getline.c: Renamed to getline.c; added weak alias getline.
1584         * sysdeps/posix/__getpgsz.c: Renamed to getpagesize.c; added weak
1585         alias getpagesize.
1586         * sysdeps/stub/__getpgsz.c: Likewise.
1587         * sysdeps/unix/__getpgsz.c: Likewise.
1588         * sysdeps/unix/bsd/__getpgsz.S: Likewise.
1589         * sysdeps/unix/sysv/sysv4/__getpgsz.c: Likewise.
1590         * sysdeps/mach/__getpgsz.c: Likewise.
1591         * sysdeps/stub/__getpid.c: Renamed to getpid.c; added weak alias
1592         getpid.
1593         * sysdeps/unix/__getpid.S: Likewise.
1594         * sysdeps/mach/hurd/__getpid.c: Likewise.
1595         * sysdeps/stub/__getppid.c: Renamed to getppid.c; added weak alias
1596         getppid.
1597         * sysdeps/unix/__getppid.S: Likewise.
1598         * sysdeps/mach/hurd/__getppid.c: Likewise.
1599         * sysdeps/posix/__gettod.c: Renamed to gettimeofday.c; added weak
1600         alias gettimeofday.
1601         * sysdeps/stub/__gettod.c: Likewise.
1602         * sysdeps/unix/sysv/irix4/__gettod.c: Likewise.
1603         * sysdeps/unix/common/__gettod.S: Likewise.
1604         * sysdeps/mach/__gettod.c: Likewise.
1605         * sysdeps/stub/__getuid.c: Renamed to getuid.c; added weak alias
1606         getuid.
1607         * sysdeps/unix/__getuid.S: Likewise.
1608         * sysdeps/mach/hurd/__getuid.c: Likewise.
1609         * sysdeps/generic/__infnan.c: Renamed to infnan.c; added weak
1610         alias infnan.
1611         * sysdeps/ieee754/__infnan.c: Likewise.
1612         * sysdeps/vax/__infnan.c: Likewise.
1613         * sysdeps/stub/__ioctl.c: Renamed to ioctl.c; added weak alias ioctl.
1614         * sysdeps/unix/__ioctl.S: Likewise.
1615         * sysdeps/mach/hurd/__ioctl.c: Likewise.
1616         * sysdeps/posix/__isatty.c: Renamed to isatty.c; added weak alias
1617         isatty.
1618         * sysdeps/stub/__isatty.c: Likewise.
1619         * sysdeps/unix/bsd/__isatty.c: Likewise.
1620         * sysdeps/mach/hurd/__isatty.c: Likewise.
1621         * sysdeps/ieee754/__isinf.c: Renamed to isinf.c; added weak alias
1622         isinf.
1623         * sysdeps/m68k/fpu/__isinf.c: Likewise.
1624         * sysdeps/stub/__isinf.c: Likewise.
1625         * sysdeps/generic/__isnan.c: Renamed to isnan.c; added weak alias
1626         isnan.
1627         * sysdeps/ieee754/__isnan.c: Likewise.
1628         * sysdeps/m68k/fpu/__isnan.c: Likewise.
1629         * sysdeps/stub/__kill.c: Renamed to kill.c; added weak alias kill.
1630         * sysdeps/unix/__kill.S: Likewise.
1631         * sysdeps/mach/hurd/__kill.c: Likewise.
1632         * sysdeps/stub/__link.c: Renamed to link.c; added weak alias link.
1633         * sysdeps/unix/__link.S: Likewise.
1634         * sysdeps/mach/hurd/__link.c: Likewise.
1635         * sysdeps/ieee754/__logb.c: Renamed to logb.c; added weak alias logb.
1636         * sysdeps/m68k/fpu/__logb.c: Likewise.
1637         * sysdeps/stub/__logb.c: Likewise.
1638         * sysdeps/stub/__lseek.c: Renamed to lseek.c; added weak alias lseek.
1639         * sysdeps/unix/__lseek.S: Likewise.
1640         * sysdeps/mach/hurd/__lseek.c: Likewise.
1641         * sysdeps/generic/__lstat.c: Renamed to lstat.c; added weak alias
1642         lstat.
1643         * sysdeps/stub/__lstat.c: Likewise.
1644         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
1645         * sysdeps/unix/common/__lstat.S: Likewise.
1646         * sysdeps/mach/hurd/__lstat.c: Likewise.
1647         * sysdeps/generic/__memccpy.c: Renamed to memccpy.c; added weak
1648         alias memccpy.
1649         * sysdeps/vax/__memccpy.c: Likewise.
1650         * sysdeps/stub/__mkdir.c: Renamed to mkdir.c; added weak alias mkdir.
1651         * sysdeps/unix/sysv/__mkdir.c: Likewise.
1652         * sysdeps/unix/common/__mkdir.S: Likewise.
1653         * sysdeps/mach/hurd/__mkdir.c: Likewise.
1654         * sysdeps/stub/__mknod.c: Renamed to mknod.c; added weak alias mknod.
1655         * sysdeps/unix/__mknod.S: Likewise.
1656         * sysdeps/unix/sysv/sysv4/i386/__mknod.S: Likewise.
1657         * sysdeps/mach/hurd/__mknod.c: Likewise.
1658         * mach/__msg.c: Renamed to msg.c; added weak alias mach_msg.
1659         * mach/__msgserver.c: Renamed to msgserver.c; added weak alias
1660         mach_msg_server.
1661         * sysdeps/stub/__open.c: Renamed to open.c; added weak alias open.
1662         * sysdeps/unix/__open.S: Likewise.
1663         * sysdeps/mach/hurd/__open.c: Likewise.
1664         * sysdeps/standalone/__open.c: Likewise.
1665         * sysdeps/stub/__pathconf.c: Renamed to pathconf.c; added weak
1666         alias pathconf.
1667         * sysdeps/unix/sysv/sco3.2.4/__pathconf.S: Likewise.
1668         * sysdeps/unix/sysv/irix4/__pathconf.c: Likewise.
1669         * hurd/__pid2task.c: Renamed to pid2task.c; added weak alias pid2task.
1670         * sysdeps/stub/__pipe.c: Renamed to pipe.c; added weak alias pipe.
1671         * sysdeps/unix/bsd/vax/__pipe.S: Likewise.
1672         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
1673         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: Likewise.
1674         * sysdeps/unix/i386/__pipe.S: Likewise.
1675         * sysdeps/unix/sparc/__pipe.S: Likewise.
1676         * sysdeps/unix/mips/__pipe.S: Likewise.
1677         * sysdeps/mach/hurd/__pipe.c: Likewise.
1678         * stdlib/__random.c: Renamed to random.c; added weak alias random.
1679         * sysdeps/stub/__read.c: Renamed to read.c; added weak alias read.
1680         * sysdeps/unix/__read.S: Likewise.
1681         * sysdeps/mach/hurd/__read.c: Likewise.
1682         * sysdeps/standalone/__read.c: Likewise.
1683         * sysdeps/stub/__readlink.c: Renamed to readlink.c; added weak
1684         alias readlink.
1685         * sysdeps/unix/common/__readlink.S: Likewise.
1686         * sysdeps/mach/hurd/__readlink.c: Likewise.
1687         * sysdeps/generic/__rint.c: Renamed to rint.c; added weak alias rint.
1688         * sysdeps/m68k/fpu/__rint.c: Likewise.
1689         * sysdeps/stub/__rmdir.c: Renamed to rmdir.c; added weak alias rmdir.
1690         * sysdeps/unix/sysv/__rmdir.c: Likewise.
1691         * sysdeps/unix/common/__rmdir.S: Likewise.
1692         * sysdeps/mach/hurd/__rmdir.c: Likewise.
1693         * sysdeps/generic/__sbrk.c: Renamed to sbrk.c; added weak alias sbrk.
1694         * sysdeps/stub/__sbrk.c: Likewise.
1695         * sysdeps/mach/hurd/__sbrk.c: Likewise.
1696         * math/__scalb.c: Renamed to scalb.c; added weak alias scalb.
1697         * sysdeps/stub/__select.c: Renamed to select.c; added weak alias
1698         select.
1699         * sysdeps/unix/common/__select.S: Likewise.
1700         * sysdeps/mach/hurd/__select.c: Likewise.
1701         * hurd/__setauth.c: Renamed to setauth.c; added weak alias setauth.
1702         * sysdeps/stub/__setgid.c: Renamed to setgid.c; added weak alias
1703         setgid.
1704         * sysdeps/unix/__setgid.S: Likewise.
1705         * sysdeps/unix/bsd/__setgid.c: Likewise.
1706         * sysdeps/mach/hurd/__setgid.c: Likewise.
1707         * sysdeps/stub/__setitmr.c: Renamed to setitmr.c; added weak alias
1708         setitmr 
1709         * sysdeps/unix/common/__setitmr.S: Likewise.
1710         * sysdeps/mach/hurd/__setitmr.c: Likewise.
1711         * sysdeps/stub/__setpgrp.c: Renamed to setpgrp.c; added weak alias
1712         setpgrp 
1713         * sysdeps/unix/sysv/sysv4/__setpgrp.c: Likewise.
1714         * sysdeps/unix/sysv/sco3.2.4/__setpgrp.c: Likewise.
1715         * sysdeps/unix/sysv/irix4/__setpgrp.S: Likewise.
1716         * sysdeps/unix/common/__setpgrp.S: Likewise.
1717         * sysdeps/mach/hurd/__setpgrp.c: Likewise.
1718         * sysdeps/stub/__setregid.c: Renamed to setregid.c; added weak
1719         alias setregid.
1720         * sysdeps/unix/common/__setregid.S: Likewise.
1721         * sysdeps/mach/hurd/__setregid.c: Likewise.
1722         * sysdeps/stub/__setreuid.c: Renamed to setreuid.c; added weak
1723         alias setreuid.
1724         * sysdeps/unix/common/__setreuid.S: Likewise.
1725         * sysdeps/mach/hurd/__setreuid.c: Likewise.
1726         * sysdeps/stub/__setsid.c: Renamed to setsid.c; added weak alias
1727         setsid.
1728         * sysdeps/unix/bsd/__setsid.c: Likewise.
1729         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: Likewise.
1730         * sysdeps/unix/bsd/ultrix4/__setsid.S: Likewise.
1731         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Likewise.
1732         * sysdeps/unix/sysv/linux/__setsid.S: Likewise.
1733         * sysdeps/unix/sysv/sysv4/__setsid.c: Likewise.
1734         * sysdeps/unix/sysv/sco3.2.4/__setsid.c: Likewise.
1735         * sysdeps/mach/hurd/__setsid.c: Likewise.
1736         * sysdeps/stub/__settod.c: Renamed to settod.c; added weak alias
1737         settimeofday.
1738         * sysdeps/unix/bsd/__settod.S: Likewise.
1739         * sysdeps/unix/sysv/__settod.c: Likewise.
1740         * sysdeps/mach/hurd/__settod.c: Likewise.
1741         * sysdeps/stub/__setuid.c: Renamed to setuid.c; added weak alias
1742         setuid.
1743         * sysdeps/unix/__setuid.S: Likewise.
1744         * sysdeps/unix/bsd/__setuid.c: Likewise.
1745         * sysdeps/mach/hurd/__setuid.c: Likewise.
1746         * sysdeps/posix/__sigblock.c: Renamed to sigblock.c; added weak
1747         alias sigblock.
1748         * sysdeps/stub/__sigblock.c: Likewise.
1749         * sysdeps/unix/bsd/__sigblock.S: Likewise.
1750         * sysdeps/unix/bsd/bsd4.4/__sigblock.c: Likewise.
1751         * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: Likewise.
1752         * sysdeps/posix/__sigpause.c: Renamed to sigpause.c; added weak
1753         alias sigpause.
1754         * sysdeps/stub/__sigpause.c: Likewise.
1755         * sysdeps/unix/bsd/__sigpause.S: Likewise.
1756         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
1757         * sysdeps/stub/__sigproc.c: Renamed to sigprocmask.c; added weak
1758         alias sigprocmask.
1759         * sysdeps/unix/bsd/__sigproc.c: Likewise.
1760         * sysdeps/unix/sysv/sysv4/__sigproc.S: Likewise.
1761         * sysdeps/unix/sysv/sco3.2.4/__sigproc.S: Likewise.
1762         * sysdeps/mach/hurd/__sigproc.c: Likewise.
1763         * sysdeps/stub/__sigret.c: Renamed to sigreturn.c; added weak
1764         alias sigreturn.
1765         * sysdeps/unix/bsd/sun/__sigret.S: Likewise.
1766         * sysdeps/unix/sysv/i386/__sigret.S: Likewise.
1767         * sysdeps/unix/sysv/irix4/__sigret.S: Likewise.
1768         * sysdeps/unix/i386/__sigret.S: Likewise.
1769         * sysdeps/unix/mips/__sigret.S: Likewise.
1770         * sysdeps/mach/hurd/i386/__sigret.c: Likewise.
1771         * sysdeps/mach/hurd/alpha/__sigret.c: Likewise.
1772         * sysdeps/mach/hurd/mips/__sigret.c: Likewise.
1773         * sysdeps/posix/__sigvec.c: Renamed to sigvec.c; added weak alias
1774         sigvec.
1775         * sysdeps/stub/__sigvec.c: Likewise.
1776         * sysdeps/unix/bsd/__sigvec.S: Likewise.
1777         * sysdeps/unix/bsd/sun/__sigvec.S: Likewise.
1778         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Likewise.
1779         * sysdeps/unix/bsd/ultrix4/mips/__sigvec.S: Likewise.
1780         * sysdeps/unix/bsd/bsd4.4/__sigvec.c: Likewise.
1781         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
1782         * sysdeps/stub/__stat.c: Renamed to stat.c; added weak alias stat.
1783         * sysdeps/unix/__stat.S: Likewise.
1784         * sysdeps/unix/sysv/sysv4/i386/__stat.S: Likewise.
1785         * sysdeps/mach/hurd/__stat.c: Likewise.
1786         * sysdeps/generic/__stpncpy.c: Renamed to stpncpy.c; added weak
1787         alias stpncpy.
1788         * sysdeps/stub/__symlink.c: Renamed to symlink.c; added weak alias
1789         symlink.
1790         * sysdeps/unix/common/__symlink.S: Likewise.
1791         * sysdeps/mach/hurd/__symlink.c: Likewise.
1792         * sysdeps/posix/__sysconf.c: Renamed to sysconf.c; added weak
1793         alias sysconf.
1794         * sysdeps/stub/__sysconf.c: Likewise.
1795         * sysdeps/unix/bsd/ultrix4/__sysconf.c: Likewise.
1796         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
1797         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Likewise.
1798         * sysdeps/unix/sysv/irix4/__sysconf.c: Likewise.
1799         * hurd/__task2pid.c: Renamed to task2pid.c; added weak alias task2pid.
1800         * sysdeps/stub/__times.c: Renamed to times.c; added weak alias times.
1801         * sysdeps/unix/bsd/__times.c: Likewise.
1802         * sysdeps/unix/sysv/__times.S: Likewise.
1803         * time/__tzset.c: Renamed to tzset.c; added weak alias tzset.
1804         * sysdeps/stub/__umask.c: Renamed to umask.c; added weak alias umask.
1805         * sysdeps/unix/__umask.S: Likewise.
1806         * sysdeps/mach/hurd/__umask.c: Likewise.
1807         * sysdeps/stub/__unlink.c: Renamed to unlink.c; added weak alias
1808         unlink.
1809         * sysdeps/unix/__unlink.S: Likewise.
1810         * sysdeps/mach/hurd/__unlink.c: Likewise.
1811         * sysdeps/stub/__utimes.c: Renamed to utimes.c; added weak alias
1812         utimes.
1813         * sysdeps/unix/bsd/__utimes.S: Likewise.
1814         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: Likewise.
1815         * sysdeps/mach/hurd/__utimes.c: Likewise.
1816         * sysdeps/generic/__vfork.c: Renamed to vfork.c; added weak alias
1817         vfork.
1818         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
1819         * sysdeps/unix/bsd/vax/__vfork.S: Likewise.
1820         * sysdeps/unix/bsd/i386/__vfork.S: Likewise.
1821         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
1822         * sysdeps/unix/bsd/ultrix4/mips/__vfork.S: Likewise.
1823         * sysdeps/unix/sysv/sysv4/i386/__vfork.S: Likewise.
1824         * sysdeps/unix/sparc/__vfork.S: Likewise.
1825         * stdio/__vfscanf.c: Renamed to vfscanf.c; added weak alias vfscanf.
1826         * stdio/__vsscanf.c: Renamed to vsscanf.c; added weak alias vsscanf.
1827         * sysdeps/posix/__wait.c: Renamed to wait.c; added weak alias wait.
1828         * sysdeps/stub/__wait.c: Likewise.
1829         * sysdeps/unix/bsd/sony/newsos4/__wait.c: Likewise.
1830         * sysdeps/unix/bsd/sun/sunos4/__wait.c: Likewise.
1831         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Likewise.
1832         * sysdeps/unix/bsd/vax/__wait.S: Likewise.
1833         * sysdeps/unix/bsd/m68k/__wait.S: Likewise.
1834         * sysdeps/unix/bsd/bsd4.4/__wait.c: Likewise.
1835         * sysdeps/unix/sysv/i386/linux/__wait.S: Likewise.
1836         * sysdeps/unix/sysv/irix4/__wait.S: Likewise.
1837         * sysdeps/unix/i386/__wait.S: Likewise.
1838         * sysdeps/unix/mips/__wait.S: Likewise.
1839         * sysdeps/posix/__wait3.c: Renamed to wait3.c; added weak alias wait3.
1840         * sysdeps/stub/__wait3.c: Likewise.
1841         * sysdeps/unix/bsd/sony/newsos4/__wait3.c: Likewise.
1842         * sysdeps/unix/bsd/sun/sunos4/__wait3.c: Likewise.
1843         * sysdeps/unix/bsd/vax/__wait3.S: Likewise.
1844         * sysdeps/unix/bsd/i386/__wait3.S: Likewise.
1845         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Likewise.
1846         * sysdeps/unix/bsd/ultrix4/__wait3.S: Likewise.
1847         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Likewise.
1848         * sysdeps/unix/sysv/irix4/__wait3.S: Likewise.
1849         * sysdeps/stub/__wait4.c: Renamed to wait4.c; added weak alias wait4.
1850         * sysdeps/unix/bsd/sony/newsos4/__wait4.c: Likewise.
1851         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
1852         * sysdeps/unix/bsd/bsd4.4/__wait4.S: Likewise.
1853         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: Likewise.
1854         * sysdeps/unix/sysv/linux/__wait4.S: Likewise.
1855         * sysdeps/mach/hurd/__wait4.c: Likewise.
1856         * sysdeps/stub/__waitpid.c: Renamed to waitpid.c; added weak alias
1857         waitpid.
1858         * sysdeps/unix/bsd/sun/sunos4/__waitpid.c: Likewise.
1859         * sysdeps/unix/bsd/ultrix4/__waitpid.S: Likewise.
1860         * sysdeps/unix/bsd/bsd4.4/__waitpid.c: Likewise.
1861         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: Likewise.
1862         * sysdeps/unix/sysv/linux/__waitpid.S: Likewise.
1863         * sysdeps/unix/sysv/sysv4/__waitpid.c: Likewise.
1864         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Likewise.
1865         * sysdeps/unix/sysv/irix4/__waitpid.c: Likewise.
1866         * sysdeps/stub/__write.c: Renamed to write.c; added weak alias write.
1867         * sysdeps/unix/__write.S: Likewise.
1868         * sysdeps/mach/hurd/__write.c: Likewise.
1869         * sysdeps/standalone/__write.c: Likewise.
1870         * sysdeps/stub/__tcgetatr.c: Renamed to tcgetattr.c; added weak
1871         alias tcgetattr.
1872         * sysdeps/unix/bsd/__tcgetatr.c: Likewise.
1873         * sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: Likewise.
1874         * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
1875         * sysdeps/unix/sysv/__tcgetatr.c: Likewise.
1876         * sysdeps/stub/__sigact.c: Renamed to sigaction.c; added weak
1877         alias sigaction.
1878         * sysdeps/unix/bsd/__sigact.c: Likewise.
1879         * sysdeps/unix/sysv/__sigact.c: Likewise.
1880         * sysdeps/unix/sysv/sysv4/__sigact.c: Likewise.
1881         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Likewise.
1882         * sysdeps/mach/hurd/__sigact.c: Likewise.
1883         * sysdeps/posix/__sigstmsk.c: Renamed to sigsetmask.c; added weak
1884         alias sigsetmask.
1885         * sysdeps/stub/__sigstmsk.c: Likewise.
1886         * sysdeps/unix/bsd/__sigstmsk.S: Likewise.
1887         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Likewise.
1888         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
1889         * sysdeps/stub/__getrusag.c: Renamed to getrusage.c; added weak
1890         alias getrusage.
1891         * sysdeps/unix/sysv/irix4/__getrusag.c: Likewise.
1892         * sysdeps/unix/common/__getrusag.S: Likewise.
1893         * hurd/task2pid.c: File removed.
1894         * hurd/setauth.c: File removed.
1895         * hurd/pid2task.c: File removed.
1896         * hurd/hurdsyms.c: File removed.
1897         * hurd/getdport.c: File removed.
1898         * hurd/fopenport.c: File removed.
1899         * mach/thread-sym.c: File removed.
1900         * mach/spin-syms.c: File removed.
1901         * mach/msgserver_t.c: File removed.
1902         * mach/msgserver.c: File removed.
1903         * mach/msg.c: File removed.
1904         * mach/mig_syms.c: File removed.
1905         * malloc/mcheck-init.c: File removed.
1906         * malloc/cfree.c: File removed.
1907         * io/flock.c: File removed.
1908         * io/write.c: File removed.
1909         * io/unlink.c: File removed.
1910         * io/umask.c: File removed.
1911         * io/symlink.c: File removed.
1912         * io/rmdir.c: File removed.
1913         * io/readlink.c: File removed.
1914         * io/read.c: File removed.
1915         * io/pipe.c: File removed.
1916         * io/open.c: File removed.
1917         * io/mkdir.c: File removed.
1918         * io/lstat.c: File removed.
1919         * io/lseek.c: File removed.
1920         * io/link.c: File removed.
1921         * io/isatty.c: File removed.
1922         * io/stat.c: File removed.
1923         * io/fstat.c: File removed.
1924         * io/fchown.c: File removed.
1925         * io/fchmod.c: File removed.
1926         * io/dup2.c: File removed.
1927         * io/dup.c: File removed.
1928         * io/close.c: File removed.
1929         * io/fcntl.c: File removed.
1930         * io/chmod.c: File removed.
1931         * io/chdir.c: File removed.
1932         * io/access.c: File removed.
1933         * io/chown.c: File removed.
1934         * time/tzset.c: File removed.
1935         * time/timelocal.c: File removed.
1936         * time/syms-time.c: File removed.
1937         * time/settod.c: File removed.
1938         * time/setitmr.c: File removed.
1939         * time/gettod.c: File removed.
1940         * time/getitmr.c: File removed.
1941         * time/adjtime.c: File removed.
1942         * termios/tcgetattr.c: File removed.
1943         * string/stpncpy.c: File removed.
1944         * string/rindex.c: File removed.
1945         * string/memccpy.c: File removed.
1946         * string/index.c: File removed.
1947         * string/bcmp.c: File removed.
1948         * stdlib/srand.c: File removed.
1949         * stdlib/random.c: File removed.
1950         * stdio/vsscanf.c: File removed.
1951         * stdio/vfscanf.c: File removed.
1952         * stdio/syms-stdio.c: File removed.
1953         * stdio/remove.c: File removed.
1954         * stdio/getline.c: File removed.
1955         * stdio/getdelim.c: File removed.
1956         * signal/ssignal.c: File removed.
1957         * signal/sigvec.c: File removed.
1958         * signal/sigsetmask.c: File removed.
1959         * signal/sigret.c: File removed.
1960         * signal/sigproc.c: File removed.
1961         * signal/sigpause.c: File removed.
1962         * signal/sigblock.c: File removed.
1963         * signal/sigaction.c: File removed.
1964         * signal/kill.c: File removed.
1965         * signal/gsignal.c: File removed.
1966         * setjmp/siglongjmp.c: File removed.
1967         * setjmp/_longjmp.c: File removed.
1968         * resource/getrusage.c: File removed.
1969         * posix/waitpid.c: File removed.
1970         * posix/wait4.c: File removed.
1971         * posix/wait3.c: File removed.
1972         * posix/wait.c: File removed.
1973         * posix/times.c: File removed.
1974         * posix/sysconf.c: File removed.
1975         * posix/setuid.c: File removed.
1976         * posix/setsid.c: File removed.
1977         * posix/setpgrp.c: File removed.
1978         * posix/setpgid.c: File removed.
1979         * posix/setgid.c: File removed.
1980         * posix/pathconf.c: File removed.
1981         * posix/getuid.c: File removed.
1982         * posix/getppid.c: File removed.
1983         * posix/getpid.c: File removed.
1984         * posix/getgrps.c: File removed.
1985         * posix/getgid.c: File removed.
1986         * posix/geteuid.c: File removed.
1987         * posix/getegid.c: File removed.
1988         * posix/fpathcon.c: File removed.
1989         * posix/fork.c: File removed.
1990         * posix/execve.c: File removed.
1991         * posix/environ.c: File removed.
1992         * misc/utimes.c: File removed.
1993         * misc/setreuid.c: File removed.
1994         * misc/setregid.c: File removed.
1995         * misc/select.c: File removed.
1996         * misc/sbrk.c: File removed.
1997         * misc/mknod.c: File removed.
1998         * misc/ioctl.c: File removed.
1999         * misc/getpgsz.c: File removed.
2000         * misc/gethstnm.c: File removed.
2001         * misc/getdtsz.c: File removed.
2002         * misc/data_start.c: File removed.
2003         * misc/brk.c: File removed.
2004         * math/scalb.c: File removed.
2005         * math/rint.c: File removed.
2006         * math/logb.c: File removed.
2007         * math/isnan.c: File removed.
2008         * math/isinf.c: File removed.
2009         * math/infnan.c: File removed.
2010         * math/finite.c: File removed.
2011         * math/expm1.c: File removed.
2012         * math/drem.c: File removed.
2013         * math/copysign.c: File removed.
2014         * math/__scalb.c: File removed.
2015         * dirent/getdents.c: File removed.
2017 Fri Jan 20 16:11:06 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2019         * sysdeps/generic/morecore.c (__default_morecore): Use
2020         __malloc_ptrdiff_t; don't cast arg to int.
2022         * resolv/getnetnamadr.c: Include "conf/portability.h".
2024 Thu Jan 19 02:20:04 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2026         * stdlib/strtol.c: Include errno.h.
2027         [QUAD] (ULONG_MAX): Define to a static variable initialized to
2028         ULONG_LONG_MAX. This is to work around a GCC bug in using the
2029         constant in arithmetic.
2031         * posix/unistd.h (daemon): Declare it.
2033         * malloc/mcheck-init.c: Remove GNU ld hacks.
2034         (__malloc_initialize_hook): Initialize this hook to turn_on_mcheck.
2035         * malloc/malloc.c (__malloc_initialize_hook): New hook variable.
2036         (initialize): Call the hook if set.
2037         * malloc/malloc.h: Use __malloc_{size,ptrdiff}_t in prototypes.
2038         (__malloc_initialize_hook): Declare new hook variable.
2040 Wed Jan 18 01:43:39 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2042         * hurd/hurdsig.c: Prepend `msg_' to server RPC names.
2043         * hurd/hurdpid.c: Likewise.
2044         * hurd/hurdauth.c: Likewise.
2046 Tue Jan 17 03:16:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2048         * sysdeps/mach/hurd/__select.c: If some replies are EINTR, succeed
2049         if any are successful.
2051         * hurd/hurdmsg.c: Prepend `msg_' to all RPC names.
2052         (_S_msg_get_exec_flags, _S_msg_set_exec_flags, 
2053         _S_msg_set_some_exec_flags, _S_msg_clear_some_exec_flags): New
2054         functions.
2055         (_S_io_select_done, _S_dir_changed, _S_file_changed): Stubs removed.
2057         * hurd/hurdkill.c: __sig_post renamed to __msg_sig_post.
2058         * hurd/hurd-raise.c: Likewise.
2059         * hurd/hurdsig.c (post_reply): Prepend `msg_' to RPC names.
2061         * sysdeps/mach/hurd/ptrace.c: New file.
2063         * sysdeps/mach/hurd/__select.c: Revamped to use new io_select
2064         interface, which has normal EINTR semantics.  Instead of waiting
2065         for io_select_done notification messages, send io_select messages
2066         with short reply timeout and then wait for io_select_reply
2067         messages.
2069         * hurd/hurdexec.c (_hurd_exec): Pass (_hurd_exec_flags &
2070         EXEC_INHERITED) to file_exec.
2072         * hurd/hurdsig.c (post_reply): Take new arg UNTRACED; if nonzero,
2073         use sig_post_untraced_reply.  All callers changed.
2074         (abort_thread, abort_rpcs): Take same new arg and pass it through.  
2075         All callers changed.
2076         (_hurd_internal_post_signal): Take new arg UNTRACED.
2077         If zero and process is traced, stop with SIGNO as stop signal.  If
2078         nonzero, resume process before delivering signal (unless
2079         ACT==stop).  Expand local fn sigwakeup into block at end taken iff
2080         SIGNO!=0.
2081         (signal_allowed): New function, broken out of _S_sig_post.
2082         (_S_sig_post): Call it.  Pass UNTRACED arg of false to
2083         _hurd_internal_post_signal.
2084         (_S_sig_post_untraced): New function.  Just like _S_sig_post, but
2085         pass true for UNTRACED.
2086         * hurd/hurd/signal.h (_hurd_internal_post_signal): Take new arg
2087         UNTRACED.
2088         * hurd/catch-exc.c (_S_catch_exception_raise): Pass UNTRACED arg
2089         to _hurd_internal_post_signal (value zero).
2091 Mon Jan 16 16:40:01 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2093         * hurd/hurdinit.c (_hurd_exec_flags): New variable.
2094         (_hurd_init): Initialize it from FLAGS arg.
2095         (_hurd_proc_init): If EXEC_TRACED is set in _hurd_exec_flags,
2096         raise a SIGTRAP signal (with a sigcode of zero).
2097         * hurd/hurd.h (_hurd_exec_flags): Declare it.
2099         * Version 1.09.5.
2101 Mon Jan 16 16:16:55 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
2103         * malloc/malloc.c (malloc): Fix 1-off in previous change.
2105 Mon Jan 16 15:49:07 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2107         * posix/glob/Makefile.in: Remove config.h and config.log.
2109 Sun Jan 15 06:56:47 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2111         * posix/glob/configure.in: Add AC_CONST check.
2113         * conf/portability.h: #undef sun.
2114         * resolv/res_query.c: Updated from BIND-4.9.3-BETA17.
2115         * resolv/getnetnamadr.c: Likewise.
2117         * socket/Makefile (headers): Add sockaddrcom.h.
2118         * inet/netinet/in.h: Include <sockaddrcom.h>.
2119         (struct sockaddr_in): Use the __SOCKADDR_COMMON macro.
2120         * socket/sys/un.h (struct sockaddr_in): Likewise.
2121         * socket/sys/socket.h (struct sockaddr): Likewise.
2122         * sysdeps/unix/bsd/bsd4.4/sockaddrcom.h: New file.
2123         * sysdeps/generic/sockaddrcom.h: New file.
2125         * sysdeps/unix/sysv/sysv4/ftruncate.c: New file.
2126         * sysdeps/unix/common/fcntlbits.h [__USE_SVID] (F_ALLOCSP,
2127         F_FREESP): New macros.
2128         * sysdeps/posix/truncate.c: New file.
2130         * malloc/malloc.c (malloc): Fix typos in RMS's change.
2132         * malloc/Makefile (dist-routines): Add malloc-find.
2133         * malloc/malloc.h (malloc_find_object_address): Declare it.
2134         * malloc/malloc-find.c: New file.
2136         * malloc/malloc.h (__malloc_ptrdiff_t): New macro, defined a la
2137         __malloc_size_t.
2138         (malloc_info): Use that type for member `busy.info.size'.
2140         * stdlib/strtol.c: Change uses of `long' keyword throughout to use
2141         `LONG' macro.
2142         [! QUAD] (LONG): Define as long.
2143         [QUAD] (LONG): Define as long long.
2144         [QUAD] (LONG_MIN, LONG_MAX, ULONG_MAX): Redefine to long long
2145         versions.
2146         [QUAD] (strtoul, strtol): Define to strtouq, strtoq.
2147         * stdlib/Makefile (routines): Add strtoq and strtouq.
2148         * stdlib/strtoq.c, stdlib/strtouq.c: New files.
2149         * stdlib/stdlib.h [__GNUC__ && __USE_BSD] (strtoq, strtouq):
2150         Declare them.
2152         * stdio/vfprintf.c: If there was a precision specified, ignore the
2153         0 flag and always pad with spaces.
2155         * stdio/vfprintf.c: Don't use strchr to skip text until next %.
2156         Use a loop and also stop on first !isascii char.
2158 Wed Jan 11 00:07:10 1995  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
2160         * malloc/malloc.h (malloc_info): Change usage of .busy.info.size.
2162         * malloc/malloc.c (malloc): For a multi-block object, store a
2163         negative number into the busy.info.size of all but the first block.
2165 Tue Jan 10 13:45:20 1995  Brendan Kehoe  <brendan@zen.org>
2167         * sysdeps/unix/bsd/ultrix4/mips/start.S: Use s0, s1, and s2
2168         instead of t0, t1, and t2.
2170 Tue Jan 10 05:53:50 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2172         * malloc/memalign.c (__memalign_hook): New variable.
2173         (memalign): Call it if set.
2174         * malloc/malloc.h (__memalign_hook): Declare new variable.
2176 Wed Dec 28 03:27:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2178         * conf/portability.h: Include string.h and stdlib.h.
2179         * inet/netdb.h (NETDB_INTERNAL, NETDB_SUCCESS): New macros.
2180         * resolv/resolv.h, resolv/arpa/nameser.h, resolv/gethnamaddr.c,
2181         resolv/getnetbyname.c, resolv/getnetent.c, resolv/herror.c,
2182         resolv/res_mkquery.c, resolv/res_send.c, resolv/res_comp.c,
2183         resolv/res_debug.c, resolv/res_init.c: Updated from BIND 4.9.3-BETA14.
2185         * sysdeps/m68k/fpu/__math.h (__m81_inline): New macro.  Replace
2186         all uses of `extern __inline' with `__m81_inline'.
2188         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Use subl, not decl.
2189         * sysdeps/unix/__fork.S: Swap args in subl.
2191         * posix/sys/types.h [__USE_MISC] (ushort, uint): New typedefs, for
2192         compatibility.
2194 Tue Dec 20 13:33:20 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
2196         * sysdeps/mach/hurd/__setpgrp.c (__setpgrp): Use __swtch_pri instead
2197         of swtch.
2198         * sysdeps/mach/hurd/__setsid.c (__setsid): Likewise.
2199         * mach/spin-solid.c (__spin_lock_solid): Likewise.
2201 Thu Dec 15 12:01:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2203         * inet/rcmd.c (iruserok): Use alloca instead of fixed-size buffer
2204         for PBUF.
2205         (__ivaliduser): Use getline instead of fgets with fixed-size buffer.
2207         * sysdeps/mach/hurd/Makefile (subdirs): Don't elide inet.
2209 Wed Dec 14 18:20:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2211         * sysdeps/alpha/bsd-setjmp.S: Reverse register and immediate args
2212         in `bis' insn; immediate must be second.
2214         * sysdeps/unix/__fork.S: Use subl instead of decl.
2215         * sysdeps/unix/i386/__fork.S: New file.
2217         * sysdeps/mach/hurd/alpha/trampoline.c (_hurd_setup_sighandler):
2218         Remove A macro; just use `asm volatile' with proper quotes in each
2219         line.
2220         * sysdeps/mach/alpha/sysdep.h (CALL_WITH_SP): Put parens around
2221         jmp target register.
2223         * time/africa, time/asia, time/australasia, time/emkdir.c,
2224         time/europe, time/ialloc.c, time/northamerica, time/private.h,
2225         time/scheck.c, time/yearistype, time/zdump.c, time/zic.c: New code
2226         and data from ADO 94h distribution.
2228         * sysdeps/sparc/setjmp.S: Use sethi and or to put address of
2229         __sigjmp_save in %g1 and jmp there.  jmp cannot contain a complete
2230         absolute pointer.  Put second store in jmp delay slot.
2232 Tue Dec 13 15:47:52 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2234         * sysdeps/sparc/bsd-_setjmp.S: Use sethi and or to put address of
2235         __sigsetjmp in %g1 and jmp there.  jmp cannot contain a complete
2236         absolute pointer.
2237         * sysdeps/sparc/bsd-setjmp.S: Likewise.
2239         * configure.in: Use ; before } in { ... } exprs.
2241 Mon Dec 12 01:41:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2243         * Version 1.09.3.
2245         * sysdeps/mach/hurd/alpha/trampoline.c: Use `long int' for sigcode
2246         values.  Use _hurdsig_catch_fault.  Pass address of __sigreturn in
2247         $27, SCP value in $25.  In trampoline code, use those regs.
2249         * sysdeps/mach/hurd/alpha/__sigret.c: Use asms instead of global
2250         register vars to restore FP regs.  Fix typo in REI invocation.
2252 Sun Dec 11 14:10:11 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2254         * hurd/hurd/fd.h (hurd_register_ioctl_handler,
2255         _HURD_HANDLE_IOCTLS): Third arg to handler is a void *, not a
2256         __gnuc_va_list.
2258         * stdio/memstream.c (enlarge_buffer): Always add one char into
2259         NEED for the char we are writing or the NUL terminator.
2261         * stdio/memstream.c (enlarge_buffer): If realloc fails, just set
2262         error flag and preserve old buffer state.
2264         * stdio/fwrite.c: In fill_buffer case, check for zero buffer space
2265         after fflush and write one char normally.
2267 Sat Dec 10 00:02:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2269         * sysdeps/mach/hurd/__fork.c: Use natural_t in place of int.
2271         * sysdeps/alpha/macros.m4: Use C comments instead of ! comments.
2273         * sysdeps/mach/hurd/mmap.c: Cast -1 to long int before casting to
2274         caddr_t.
2276         * sysdeps/mach/alpha/syscall.S: Include
2277         <mach/machine/alpha_instruction.h> to define op_chmk.
2279         * sysdeps/mach/hurd/__mknod.c: Include <string.h>.
2280         * sysdeps/mach/hurd/setegid.c: Likewise.
2281         * sysdeps/mach/hurd/seteuid.c: Likewise.
2282         * sysdeps/mach/hurd/__setregid.c: Likewise.
2283         * sysdeps/mach/hurd/__setreuid.c: Likewise.
2284         * sysdeps/mach/hurd/__ioctl.c: Likewise.
2286         * sysdeps/mach/hurd/recvfrom.c: Include <string.h>.  Use
2287         mach_msg_type_number_t in place of unsigned int.
2288         * sysdeps/mach/hurd/recv.c: Likewise.
2289         * sysdeps/mach/hurd/getsockopt.c: Likewise.
2290         * sysdeps/mach/hurd/getsocknam.c: Likewise.
2291         * sysdeps/mach/hurd/getpeernam.c: Likewise.
2292         * sysdeps/mach/hurd/accept.c: Likewise.
2293         * sysdeps/mach/hurd/__gethstnm.c: Likewise.
2295 Fri Dec  9 00:01:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2297         * sysdeps/mach/hurd/__readlink.c: Use mach_msg_type_number_t in
2298         place of unsigned int.
2299         * sysdeps/mach/hurd/__fork.c: Likewise.
2301         * sysdeps/mach/hurd/__setgid.c: Include <string.h>.
2302         * sysdeps/mach/hurd/__setuid.c: Likewise.
2303         * sysdeps/mach/hurd/__getgrps.c: Likewise.
2304         * hurd/getuids.c: Likewise.
2305         * sysdeps/mach/hurd/__getdents.c: Likewise.
2307         * sysdeps/mach/hurd/dirstream.h (DIR): Use unsigned long int for
2308         `__allocation' and `__size' members.
2310         * sysdeps/mach/hurd/alpha/exc2signal.c: Use `long int' for sigcode
2311         values.
2312         * sysdeps/mach/hurd/i386/exc2signal.c: Likewise.
2314         * mach/devstream.c (input): Use mach_msg_type_number_t for NREAD.
2316         * sysdeps/mach/hurd/__setitmr.c (preempt_sigalrm): Use `long int'
2317         for SIGCODE; take SIGERROR arg.
2319         * sysdeps/alpha/divrem.m4: Include <sysdep.h> instead of
2320         <regdef.h>.  Use C comments instead of ! comments.
2322         * sysdeps/alpha/memchr.c: Remove extra shift and OR of CHARMASK.
2323         * sysdeps/alpha/strchr.c: Likewise.
2325         * sysdeps/mach/hurd/sysd-stdio.c: Use mach_msg_type_number_t in
2326         place of unsigned int.
2328         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Cast FD to long
2329         int before casting to pointer.
2331         * stdio/printf_fp.c: Include <string.h>.
2333         * sysdeps/alpha/setjmp_aux.c: Use ENV[0].__jmpbuf[0].
2335         * sysdeps/mach/alpha/sysdep.h (ENTRY): New macro.
2337         * hurd/hurdioctl.c (fioctl): Pass a mach_msg_type_number_t* to
2338         __io_readable.
2340         * hurd/hurd-raise.c: Use `long int' for sigcode values.
2342         * hurd/hurdfault.c: Use `long int' for sigcode values.
2343         * hurd/hurdfault.h: Likewise.
2345         * hurd/hurd/signal.h (struct hurd_signal_preempt): Handler takes
2346         new SIGERROR arg.
2347         * hurd/preempt-sig.c: Likewise.
2348         * hurd/hurdsig.c (_hurd_internal_post_signal): Pass SIGERROR to
2349         PREEMPT.
2351         * hurd/hurdlookup.c: Use mach_msg_type_number_t and natural_t in
2352         place of unsigned int and int.
2354         * hurd/hurd/id.h: Use mach_msg_type_number_t in place of unsigned int.
2356         * hurd/catch-exc.c: Use `long int' for sigcode values.
2357         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
2358         * hurd/preempt-sig.c: Likewise.
2360         * configure.in (machine): Don't recognize r[34]00.  
2361         Convert mips64* to mips/mips64/& and mips* to mips/&.
2362         * sysdeps/mips/mipsel/bytesex.h: New file.
2363         * sysdeps/mips/r4000: Directory renamed to sysdeps/mips/mips64.
2365         * sysdeps/mach/alpha/sysdep.h (START_MACHDEP): Add missing
2366         backslashes.
2367         (CALL_WITH_SP): Cast FN to long int.
2369         * sysdeps/mach/alpha/thread_state.h (struct machine_thread_all_state):
2370         New member `exc'.
2372         * hurd/fd-read.c: Include <string.h>.  Use mach_msg_type_number_t
2373         in place of mach_msg_type_size_t.
2375         * hurd/hurdfault.c: Use natural_t instead of int.
2377         * hurd/hurd/signal.h: Use `long int' for sigcode values.
2378         * hurd/hurdsig.c: Use mach_msg_type_number_t and natural_t in
2379         place of unsigned int and int.  Use `long int' for sigcode values.
2381         * hurd/vpprintf.c (pwrite): Cast &N to mach_msg_type_number_t *.
2383         * hurd/__fopenport.c: Include <string.h>.  Use
2384         mach_msg_type_number_t in place of unsigned int.
2386         * hurd/hurdauth.c: Include <string.h>.
2387         * hurd/hurdsock.c: Likewise.
2389         * sysdeps/mach/alpha/machine-lock.h: Remove ".set noreorder" et
2390         al; GCC already emits them.  Fix register constraints in asms.
2391         Set RTN in C, not asm.
2393         * hurd/hurdprio.c: Use mach_msg_type_number_t in place of unsigned
2394         int.
2396 Thu Dec  8 04:00:11 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2398         * sysdeps/mach/hurd/alpha/__sigret.c: Remove ".set noreorder" et
2399         al; GCC already emits them.
2400         * sysdeps/mach/hurd/alpha/trampoline.c: Likewise.
2402         * sysdeps/mach/thread_state.h: Use mach_msg_type_number_t and
2403         natural_t in place of unsigned int and int.
2405         * sysdeps/mach/sysdep.h (ENTRY): Don't #error if undefined.
2407         * sysdeps/mach/syscall.h: New file.
2409         * sysdeps/mach/Makefile: Remove debugging printout.
2411         * sysdeps/mach/hurd/configure.in: Converted to an autoconf script
2412         from sysdeps/mach/hurd/configure, to work better with autoconf
2413         version 2.
2414         * sysdeps/mach/configure.in: Likewise, from sysdeps/mach/configure.
2416         * hurd/hurdmsg.c: Use mach_msg_type_number_t in place of unsigned
2417         int.
2419         * sysdeps/mach/alpha/sysdep.h: Rename variable `sp' to avoid
2420         conflict with #define in <mach/alpha/asm.h>.
2422         * sysdeps/mach/hurd/alpha/__sigret.c: Remove unused variable.
2424         * sysdeps/mach/hurd/__ioctl.c: Pass arg to
2425         __mig_dealloc_reply_port.
2427         * configure.in: Converted to Autoconf version 2.
2428         * sysdeps/generic/configure.in: Likewise.
2429         * sysdeps/unix/common/configure.in: Likewise.
2430         * sysdeps/unix/configure.in: New file, converted to a
2431         part-autoconf script from sysdeps/unix/configure, to work better
2432         with autoconf version 2.
2433         * aclocal.m4: Converted to Autoconf version 2.
2434         (AC_CHECK_SYMBOL): New macro.
2435         * config.make.in: New file.
2436         * config-name.in: New file.
2437         * Makefile (distribute): Rename install.sh to install-sh.
2438         Add config.make.in, config-name.in, Makefile.in.
2439         (distclean-1): Remove config-name.h and config.cache.
2440         * Makefile.in: New file.
2441         * Makeconfig (+gnu-stabs, gnu-as): Match -DHAVE_GNU_{AS,LD}=1 too.
2443 Wed Dec  7 14:05:12 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2445         * sysdeps/mach/mips/cacheflush.c: New file.
2446         * sysdeps/mach/mips/Makefile: New file.
2447         * sysdeps/mach/mips/Dist: New file.
2449         * hurd/hurdmalloc.c (vm_allocate, vm_page_size): #define these to
2450         __ names at top.
2452         * posix/glob/Makefile.in (realclean): Remove config.status.
2454         * posix/glob/Makefile.in (DEFS): New variable, set from @DEFS@.
2455         (CPPFLAGS): Remove @DEFS@ from here.
2456         (.c.o): Use $(DEFS).
2458         * setjmp/siglongjmp.c: First arg is const.
2460 Tue Dec  6 19:04:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2462         * posix/glob/Makefile.in (CPPFLAGS): Include @DEFS@.
2464 Mon Dec  5 12:05:10 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2466         * posix/glob/configure.in: Add AC_PROG_CC.
2468         * sysdeps/mach/hurd/alpha/longjmp-ts.c: Use ENV[0].__jmpbuf[0].
2469         * sysdeps/mach/hurd/mips/longjmp-ts.c: Likewise.
2470         * sysdeps/mach/hurd/i386/longjmp-ts.c: Likewise.
2472         * Version 1.09.2.
2474         * sysdeps/mach/hurd/__select.c: Don't make TO const.
2476 Sun Dec  4 12:06:36 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2478         * sysdeps/unix/configure (config_vars): Add missing backslash
2479         before a $.
2481         Revamp the `setjmp' interface to be cleaner: only one type
2482         `jmp_buf'/`sigjmp_buf', and only one `longjmp' function (with
2483         aliases `_longjmp', `siglongjmp').  Internal setjmp interface is
2484         now __sigsetjmp, which takes SAVEMASK flag and optionally saves
2485         the signal mask.  Add extern entry points `setjmp' and `_setjmp'
2486         for BSD compatiblity; they tail-call __sigsetjmp.
2487         * setjmp/setjmp.h: Include <sigset.h> for __sigset_t, not
2488         <signal.h>
2489         (jmp_buf): Define unconditionally with old `sigjmp_buf' defn.
2490         (__sigjmp_save): Declare to return int.
2491         (__setjmp): Remove declaration; this function no longer exists.
2492         (__sigsetjmp): Declare it; this is the new internal function.
2493         (setjmp): Define to call __sigsetjmp, second arg depending on
2494         __FAVOR_BSD.
2495         [__OPTIMIZE__] (longjmp): Remove #define.
2496         [__USE_BSD] (_longjmp): Declare it, another name for `longjmp'.
2497         [__USE_BSD] (_setjmp): Define macro to do __sigsetjmp (ENV, 0). 
2498         [__FAVOR_BSD]: Remove all these defns.
2499         [__USE_POSIX] (sigjmp_buf): Define as another name for `jmp_buf'.
2500         [__USE_POSIX] (sigsetjmp): Define to call __sigsetjmp.
2501         * setjmp/sigjmp.c (__sigjmp_save): Return an int, always zero, not
2502         void.
2503         * setjmp/Makefile (routines): Remove _setjmp, add bsd-setjmp and
2504         bsd-_setjmp.
2505         * setjmp/longjmp.c: Define as a real funciton, which restores
2506         signal mask and calls __longjmp.
2507         * setjmp/siglongjmp.c: Make this an alias to longjmp.
2508         * setjmp/_longjmp.c: Alias to longjmp, not siglongjmp.
2509         * sysdeps/stub/setjmp.c: Implement __sigsetjmp instead of
2510         __setjmp; call __sigjmp_save.
2511         * sysdeps/sparc/setjmp.S: Likewise.
2512         * sysdeps/m68k/setjmp.c: Likewise.
2513         * sysdeps/i386/setjmp.c: Likewise.
2514         * sysdeps/vax/setjmp.c: Likewise.
2515         * sysdeps/mips/setjmp.S: Implement __sigsetjmp instead of
2516         __setjmp; call __sigsetjmp_aux instead of __setjmp_aux.  Pass SP
2517         and FP as 3rd and 4th args, not 2nd and 3rd.
2518         * sysdeps/alpha/setjmp.S: Likewise.
2519         * sysdeps/mips/setjmp_aux.c: Implement __sigsetjmp_aux instead of
2520         __setjmp_aux; call __sigjmp_save.
2521         * sysdeps/alpha/setjmp_aux.c: Likewise.
2522         * sysdeps/mips/bsd-setjmp.S, sysdeps/mips/bsd-_setjmp.S: New files.
2523         * sysdeps/alpha/bsd-setjmp.S, sysdeps/alpha/bsd-_setjmp.S: New files.
2524         * sysdeps/vax/bsd-setjmp.S, sysdeps/vax/bsd-_setjmp.S: New files.
2525         * sysdeps/sparc/bsd-setjmp.S, sysdeps/sparc/bsd-_setjmp.S: New files.
2526         * sysdeps/i386/bsd-setjmp.S, sysdeps/i386/bsd-_setjmp.S: New files.
2527         * sysdeps/m68k/bsd-setjmp.S, sysdeps/m68k/bsd-_setjmp.S: New files.
2528         * sysdeps/stub/bsd-setjmp.c, sysdeps/stub/bsd-_setjmp.c: New files.
2529         * setjmp/_setjmp.c: File removed.
2530         * sysdeps/alpha/__longjmp.c: Take arg of type __jmp_buf, not
2531         jmp_buf.
2532         * sysdeps/vax/__longjmp.c: Likewise.
2533         * sysdeps/stub/__longjmp.c: Likewise.
2534         * sysdeps/i386/__longjmp.c: Likewise.
2535         * sysdeps/m68k/__longjmp.c: Likewise.
2537 Sat Dec  3 09:00:17 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2539         * sysdeps/mach/hurd/alpha/__sigret.c: Set up frame for `rei' to
2540         restore on user stack, aligned to an 8-word boundary and with a PS
2541         value that restores user's stack alignment.
2543 Fri Dec  2 19:31:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2545         * sysdeps/unix/readdir.c: Search one char more than D_NAMLEN(DP)
2546         for the null terminator.  Always set D->d_namlen, using
2547         D_NAMLEN(DP) if no null is found.
2549         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Fix typo `.global' to
2550         `.globl'.  Silly me, I used a vowel in a Unix program.
2552 Mon Nov 28 16:11:39 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2554         * io/fts.c (ALIGN, ALIGNBYTES): New macros, defined if not already
2555         defined.
2557 Tue Nov 22 06:39:49 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2559         * sysdeps/unix/bsd/osf1/dirstream.h: File removed.
2561         * sysdeps/stub/sigcontext.h (struct sigcontext): Use `__sigset_t'
2562         instead of `sigset_t' for `sc_mask'.
2563         * sysdeps/mach/hurd/i386/sigcontext.h: Likewise.
2564         * sysdeps/mach/hurd/alpha/sigcontext.h: Likewise.
2565         * sysdeps/mach/hurd/mips/sigcontext.h: Likewise.
2566         * sysdeps/unix/bsd/ultrix4/mips/sigcontext.h: Likewise.
2567         * sysdeps/unix/bsd/sun/m68k/sigcontext.h: Likewise.
2568         * sysdeps/unix/bsd/sun/sparc/sigcontext.h: Likewise.
2570         * hurd/hurdsig.c (_hurd_internal_post_signal: case handle): Call
2571         abort_thread always, first thing after thread_suspend.
2573 Mon Nov 21 13:18:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2575         * sysdeps/mach/hurd/__fcntl.c: Don't make this whole function a
2576         critical section.
2578         * sysdeps/generic/strpbrk.c: Don't call strchr; do it by hand for
2579         efficiency.
2581 Wed Nov 16 12:47:22 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2583         * sysdeps/unix/bsd/m68k/sysdep.S [__motorola__]: Swap operands in
2584         cmp.l.
2586         * hurd/msgportdemux.c (_hurd_msgport_receive): Call
2587         _hurd_self_sigstate to get sigstate cached before running any
2588         signal thread code.
2590         * sysdeps/mach/hurd/__fork.c: Pass _hurd_msgport_thread to
2591         __thread_get_state, not _hurd_sigthread.  Don't do
2592         __thread_get_state on THREAD_SELF--the kernel does not allow it.
2594         * hurd/hurdsig.c (_hurd_internal_post_signal): In stopping orphan
2595         test, take sigmask of SIGNO, don't & its value with a mask.  In
2596         blocked signal test, be careful not to pass SIGNO=0 to __sigismember.
2598 Tue Nov 15 01:39:36 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2600         * Makerules (stub-$(subdir)): Save absolute name of
2601         $(..)sysdeps/stub before cd'ing, transform gleaned file names to
2602         refer to saved name.
2604         * sysdeps/mach/hurd/socketpair.c: Include <fcntl.h>.
2606         * time/test_time.args: Add CST as a test case.
2608         * sysdeps/mach/hurd/socketpair.c: Rewritten (copying __pipe.c).
2610         * sysdeps/unix/bsd/dirstream.h [__USE_BSD] (dirfd): New macro.
2612         * posix/unistd.h: Declare fchdir.
2614         * io/fts.c (MAXPATHLEN): Define if not defined.
2616         * io/fts.c, io/fts.h: New files, from 4.4 BSD code by Keith Bostic.
2617         * io/Makefile (routines): Add fts.
2618         (headers): Add fts.h.
2620         Mostly ported the Hurd to the DEC Alpha.
2621         * sysdeps/mach/alpha/machine-sp.h: New file.
2622         * sysdeps/mach/alpha/thread_state.h: New file.
2623         * sysdeps/mach/alpha/sysdep.h: New file.
2624         * sysdeps/mach/alpha/machine-lock.h: New file.
2625         * sysdeps/mach/hurd/alpha/sigcontext.h: New file.
2626         * sysdeps/mach/hurd/alpha/longjmp-ts.c: New file.
2627         * sysdeps/mach/hurd/alpha/trampoline.c: New file.
2628         * sysdeps/mach/hurd/alpha/exc2signal.c: New file.
2629         * sysdeps/mach/hurd/alpha/__sigret.c: New file.
2631         * sysdeps/mach/hurd/Makefile (errlist.c, errnos.h): Make the
2632         output unwritable.
2633         * sysdeps/alpha/Makefile (divrem rule): Make the output
2634         unwritable, use mv -f.
2635         * sysdeps/sparc/Makefile (divrem rule): Likewise.
2637         * configure.in (sysnames): Put another loop on $mach inside $base
2638         loop but outside $vendor loop.  This should catch .../cpu/vendor.
2640 Mon Nov 14 22:52:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2642         * sysdeps/mach/hurd/start.c: Add missing #endif.
2644 Sun Nov 13 05:04:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2646         * sysdeps/mach/hurd/__select.c: At end of receiving loop, clear TO
2647         instead of TIMEOUT.
2649         * malloc/mcheck-init.c (turn_on_mcheck): Add gratuitous self
2650         reference to silence compiler warning.
2651         (_hurd_preinit_hook): Add the function to this set too.
2653         * time/__tzset.c (__tzset): Give tz_rules coherent default when TZ
2654         value is short or malformed.
2656         * mach/devstream.c: Echo input after reading it.
2658         * Make-dist (generated): Mutate to add .S and .s variations for .c
2659         files.
2661 Fri Nov 11 11:43:26 1994  Michael I Bushnell  <mib@churchy.gnu.ai.mit.edu>
2663         * sysdeps/mach/hurd/i386/__sigret.c (__sigreturn): Don't actually
2664         abort here; at least let the user continue with bogus FP; that's
2665         better than a random crash until it's fixed.
2667 Thu Nov 10 04:56:28 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2669         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h (msync): Use __caddr_t
2670         instead of caddr_t in decl.
2672         * sysdeps/mach/start.c (START_ARGS): Define to void if undefined.
2673         [START_MACHDEP]: Reference this if defined.
2674         [START_MACHDEP] (_start): #define to _start0.
2675         (_start): Take args START_ARGS.
2676         * sysdeps/mach/hurd/start.c: Likewise.
2678 Wed Nov  9 08:02:59 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2680         * hurd/Makefile (sig): Remove longjmp-ctx (it is never called).
2682         * sysdeps/mach/hurd/__fork.c: Do thread_get_state on parent's
2683         threads to modify and thread_set_state new child threads.
2685 Mon Nov  7 00:38:45 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2687         * posix/glob/configure.in: Converted to Autoconf v2.
2688         * posix/glob.c: Test HAVE_DIRENT_H, HAVE_SYS_DIR_H, HAVE_NDIR_H
2689         instead of DIRENT, SYSDIR, NDIR.
2690         * posix/glob/Makefile.in (CC): New variable, set from @CC@.
2691         (CPPFLAGS): Set from @CPPFLAGS@, not @DEFS@.
2693         * sysdeps/unix/__fork.S: Use decrement and AND instead of test and
2694         branch.
2695         * sysdeps/unix/sparc/__fork.S: Likewise.
2696         * sysdeps/unix/sparc/__vfork.S: Likewise.
2697         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
2698         * sysdeps/unix/bsd/hp/m68k/__vfork.S: Likewise.
2699         * sysdeps/unix/i386/__fork.S: File removed.
2701 Sun Nov  6 19:26:28 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2703         * Version 1.09.
2705 Fri Nov  4 16:52:05 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2707         * Version 1.08.14.
2709         * manual/Makefile (stamp-summary): Depend on $(chapters-incl) too.
2711 Thu Nov  3 18:33:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2713         * sysdeps/generic/sigset.h (__sigemptyset): Cast to __sigset_t.
2714         (__sigfillset): Likewise.  Use ~(__sigset_t)0 in place of -1.
2715         (__SIGSETFN): Don't try to be clever.  Test bounds of SIG with <
2716         and >.
2718         * sysdeps/mach/hurd/__fork.c: Unlock signal state earlier, just
2719         after unlocking _hurd_ports locks.
2721         * sysdeps/unix/bsd/osf1/direct.h: File removed.
2722         * sysdeps/unix/bsd/direct.h (struct direct): Use `unsigned int'
2723         instead of `unsigned long int' for `d_fileno' member.
2725         * Makerules (common-mostlyclean): Remove $(tests:=.out) too.
2727         * assert/assert-perr.c (__assert_perror_fail): Add missing comma.
2729         * sysdeps/unix/ioctls-tmpl.c [__osf__ && __alpha__] (FIOPIPESTAT,
2730         SIOCSRREQR, SIOCSRREQW, SRVC_REQUEST): #undef these.
2732 Wed Nov  2 23:00:19 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2734         * sysdeps/mach/hurd/setegid.c: Pass poly and count args for
2735         other_handles in correct order in call to auth_makeauth.
2736         * sysdeps/mach/hurd/__setregid.c: Likewise.
2737         * sysdeps/mach/hurd/__setreuid.c: Likewise.
2739         * Makerules (compile.S): Add -DASSEMBLER.
2740         * sysdeps/mach/sysdep.h [ASSEMBLER]: Don't include
2741         <mach/mig_support.h> if this is defined.
2743 Wed Nov  2 22:39:55 1994  Michael I Bushnell  <mib@churchy.gnu.ai.mit.edu>
2745         * sysdeps/mach/hurd/seteuid.c: Pass poly and count args for
2746         other_handles in correct order in call to auth_makeauth.
2748 Wed Nov  2 15:03:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2750         * stdio/internals.c (fillbuf): Make sure returned char doesn't get
2751         sign extended.
2753 Tue Nov  1 01:25:28 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2755         * sysdeps/unix/common/Implies: File removed.
2756         * sysdeps/unix/bsd/Implies: Add unix/inet.
2758         * assert/assert-perror.c: Renamed to assert-perr.c.
2759         * assert/Makefile (routines): Rename assert-perror to assert-perr.
2761         * Version 1.08.13.
2763         * mach/Makefile (generated): Add __%.c for $(mach-shortcuts) too.
2765         * dirent/Makefile (tests): Add tst-seekdir.
2766         * dirent/tst-seekdir.c (main): New file.
2767         * sysdeps/unix/bsd/seekdir.c: New file.
2768         * sysdeps/unix/bsd/telldir.c: New file.
2769         * sysdeps/unix/bsd/dirstream.h (DIR): New member `__pos'.
2770         * sysdeps/unix/bsd/readdir.c: Update DIRP->__pos in getdirentries
2771         call.
2772         * sysdeps/unix/opendir.c: Use calloc in place of malloc, to zero
2773         fill new DIRs.
2775         * sysdeps/standalone/i386/force_cpu386/force_cpu386.ld: Renamed to
2776         target.ld.
2777         * sysdeps/standalone/i386/force_cpu386/Makefile: Install it from
2778         that name (still into $(libdir)/force_cpu386.ld).
2780         * mach/Makefile (headers, user-interfaces, server-interfaces):
2781         Don't add default_pager stuff.
2783 Mon Oct 31 07:00:40 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2785         * sysdeps/unix/bsd/sun/sunos4/termbits.h (TCSASOFT): Macro
2786         removed.
2788         * malloc/malloc.h: Change #ifdef __STDC__ to #if defined
2789         (__STDC__) && __STDC__.
2791 Fri Oct 28 00:09:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2793         * sysdeps/mach/sysdep.h: Include <mach/mig_support.h> for decls.
2794         (FATAL_PREPARE): Pass arg to __mig_dealloc_reply_port.
2796         * assert/Makefile (routines): Add assert-perror.
2798         * Makerules (stubs): cd into $(objdir) and use local file names,
2799         making the cmd shorter.
2801         * sysdeps/mach/hurd/getprio.c (getonepriority): Call
2802         proc_getprocinfo with proc port.
2804         * sysdeps/mach/hurd/errnos.awk: Grok "@comment errno %d" in
2805         errno.texi, instead of assigning sequentially.
2806         * sysdeps/mach/hurd/errlist.awk: Likewise.
2808         * stdio/fwrite.c: Reset BUFFER_SPACE after fflush in fill_buffer
2809         case.
2811         * sysdeps/generic/sigset.h (__SIGSETFN): When losing, punt to
2812         `raise (-1)'.  Old method looped.
2814         * hurd/hurd/resource.h: Include <hurd/process.h>.
2816 Thu Oct 27 15:00:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2818         * sysdeps/standalone/standalone.h: Fixed typo.
2820 Wed Oct 26 00:21:16 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2822         * sysdeps/unix/i386/vfork.S: New file.
2824         * sysdeps/generic/strchr.c: Increment CP properly in check for 5th
2825         char of quadword hit.
2827         * sysdeps/mach/hurd/getprio.c (getonepriority): Always set ONERR.
2829 Tue Oct 25 03:53:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2831         * hurd/hurd/resource.h: Include <errno.h>.
2833         * stdio/ftell.c: If STREAM->__pushed_back, calculate from
2834         pushback_bufp instead of bufp.
2836         * Makefile (format-me): New canned sequence; runs makeinfo
2837         --no-headers.
2838         (INSTALL): Use it.
2839         (NOTES): New file rule.
2841         * manual/intro.texi (Feature Test Macros): Node moved off to
2842         creature.texi.
2843         * manual/creature.texi: New file, broken out of intro.texi.
2845         * manual/Makefile (indices): New variable; include ky.
2846         (realclean): Use $(indices) to remove all index and sorted index
2847         files.
2849         * sysdeps/mach/hurd/fcntlbits.h (O_ASYNC, O_FSYNC, O_SYNC):
2850         Protect with [__USE_BSD].
2852 Mon Oct 24 00:16:59 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2854         * sysdeps/unix/bsd/utime.c: Initialize tv_usec fields.
2855         Use __gettimeofday instead of time.
2857         * sunrpc/pmap_rmt.c: Include <sys/param.h> before <net/if.h>.
2858         Undef _POSIX_SOURCE before that.
2859         * sunrpc/pm_getport.c: Likewise.
2860         * sunrpc/pm_getmaps.c: Likewise.
2861         * sunrpc/get_myaddr.c: Likewise.
2863         * misc/sys/cdefs.h: Undef __P first.
2865         * Version 1.08.12.
2867         * sysdeps/mach/hurd/getprio.c: Rewritten.
2868         * sysdeps/mach/hurd/setprio.c: New file.
2869         * hurd/hurdprio.c: New file.
2870         * hurd/Makefile (routines): Add hurdprio.
2871         * hurd/hurd/resource.h (_hurd_priority_which_map): Declare it.
2872         (NICE_TO_MACH_PRIORITY, MACH_PRIORITY_TO_NICE): New macros.
2874 Sun Oct 23 19:39:18 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2876         * Makerules (sources): Fix typo in last change.
2878 Fri Oct 21 13:15:39 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2880         * sysdeps/generic/termbits.h (ECHOKE): Remove gratuitous leading
2881         space before #define.
2883         * Makerules (sources): Filter out $(elided-routines).
2885         * sysdeps/sparc/divrem.m4 (entry point): For OP=rem, set SIGN from
2886         dividend only, ignoring divisor.
2887         (Lgot_result): Test SIGN here for OP=rem too (as originally).
2889 Wed Oct 19 02:40:02 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2891         * hurd/hurdsig.c: Use assert_perror.
2893         * assert/assert-perror.c (__assert_perror_fail): New file.
2894         * assert/assert.h (assert_perror): New macro.
2896         * Version 1.08.11.
2898         * hurd/hurdsig.c (abort_rpcs): Actually return a port instead of
2899         boolean, as the type says.
2901         * hurd/hurdsig.c (abort_all_rpcs): If waiting for reply from
2902         interrupted RPC returns error, print debugging msg with error
2903         test, don't assert.
2905 Mon Oct 17 00:06:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2907         * stdlib/strtol.c: Deansideclized.
2908         * sysdeps/generic/strcspn.c: Deansideclized.
2909         * sysdeps/generic/putenv.c: Deansideclized, added portability
2910         cruft.
2912 Fri Oct 14 14:00:11 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2914         * sysdeps/unix/sysv/sysv4/solaris2/utsnamelen.h:
2915         Moved to sysdeps/unix/sysv/sysv4.
2917 Thu Oct 13 22:06:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2919         * sysdeps/unix/common/glue-ctype.c [HAVE__LOCP]: Move this defn to
2920         first.  Include sys/types.h.
2922         * sysdeps/unix/bsd/readdir.c: Include direct.h.
2924         * socket/sys/socket.h (__SOCKADDR_ARG): Always use non-GCC defn,
2925         for now.
2926         * posix/sys/wait.h (__WAIT_STATUS): Likewise.
2928 Tue Oct 11 00:42:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2930         * Version 1.08.10.
2932 Mon Oct 10 00:33:47 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2934         * malloc/malloc.h [_MALLOC_INTERNAL] (CHAR_BIT): Don't define if
2935         already defined.
2937         * stdio/__vfscanf.c: Grok %q modifier like %ll.
2939         * mach/__msgserver.c: Increase default MAX_SIZE to two pages.
2941         * misc/init-misc.c: Cast string constant to non-const type.
2943         * sysdeps/i386/ffs.c: Use %1 again instead of listing TMP as an
2944         input with constraint "1".  This avoids a warning that TMP may be
2945         used before set.
2947 Sun Oct  9 22:41:20 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2949         * hurd/hurdsig.c (abort_all_rpcs): Declare SS.
2951 Sun Oct 09 01:19:38 1994  Jim Meyering  (meyering@comco.com)
2953         * posix/fnmatch.c: Remove CONFIG_BROKETS conditional.
2955 Fri Oct  7 15:28:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2957         * stdio/__vfscanf.c: Properly grok %a modifier.
2959         * hurd/hurdsig.c (abort_rpcs): Return the reply port or null,
2960         instead of boolean.
2961         (abort_all_rpcs): Record the returns from abort_rpcs and wait for
2962         a message on each reply port.  Don't bother locking _hurd_siglock.
2964 Thu Oct  6 18:57:44 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2966         * hurd/hurd.h (_hurd_socket_server): Take new arg DEAD; explain
2967         its use in comment.
2968         * hurd/hurdsock.c (_hurd_socket_server): Take new arg DEAD; if
2969         nonzero, clear any old cached port and always do a fresh lookup.
2970         * sysdeps/mach/hurd/socket.c: Pass new arg to _hurd_socket_server,
2971         cope with dead server on socket_create.
2972         * sysdeps/mach/hurd/__pipe.c: Likewise.
2974 Mon Oct  3 02:09:43 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2976         * sysdeps/generic/utsnamelen.h (_UTSNAME_LENGTH): Increase to
2977         1024.
2979 Sun Oct  2 18:35:16 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2981         * posix/glob.h (__P): Change arg name to `protos', for congruence
2982         with 4.4 BSD.
2983         * posix/fnmatch.h (__P): Likewise.
2985 Sat Oct  1 04:25:35 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2987         * misc/Makefile (routines): Add daemon.
2989 Fri Sep 30 16:49:09 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
2991         * misc/daemon.c: New file, incorporated from BSD 4.4-Lite.
2993         * sysdeps/mach/hurd/__setsid.c: Call _hurd_setcttyid with
2994         MACH_PORT_NULL after proc_setsid.
2996         * hurd/hurdioctl.c (_hurd_setcttyid): Don't do mod_refs if port is
2997         null.
2999         Always use fds' `port' cell for the generic port.
3000         For ctty fds, use the `ctty' cell for the ctty-special port.
3001         * hurd/dtable.c (get_dtable_port): Use port, never ctty.
3002         (fork_child_dtable): Reset D->ctty instead of D->port.
3003         (ctty_new_pgrp): Likewise. 
3004         * sysdeps/mach/hurd/__ioctl.c: Use ctty port for RPC if set and
3005         !NOCTTY.
3006         * hurd/port2fd.c (_hurd_port2fd): Install normal port in D->port
3007         cell, and ctty-special port in the D->ctty cell, not the reverse.
3008         * hurd/hurdioctl.c (tiocsctty): Don't assume MACH_PORT_NULL is
3009         zero.
3010         * hurd/hurdexec.c (_hurd_exec): Always pass fds' normal port,
3011         never its ctty port.
3012         * hurd/fd-write.c (_hurd_fd_write): Use ctty port for RPC if set
3013         and !NOCTTY.
3014         * hurd/fd-read.c (_hurd_fd_read): Use ctty port for RPC if set.
3016 Thu Sep 29 18:28:01 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3018         * mach/mig_syms.c (mig_put_reply_port): Add symbol alias to __
3019         name.
3021 Thu Sep 29 12:23:07 1994  Brendan Kehoe  (brendan@zen.org)
3023         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sysdep.h (ENTRY): Use
3024         poundfnc instead of \#function, to satisfy gcc-2.6.0 and higher.
3025         (cat, poundfnc): Define macros to pull it off.
3027         * sysdeps/unix/sysv/sysd-stdio.c: Include
3028         sysdeps/generic/sysd-stdio.h,
3029         not looking in sysdeps/posix.
3031 Thu Sep 29 05:38:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3033         * sysdeps/unix/common/configure.in (ctype check): In test prog,
3034         just reference $ctype; we don't care what type it is.
3036         * sysdeps/unix/bsd/bsd4.4/direct.h: New file.
3037         (HAVE_D_TYPE): Define this macro.
3038         * dirent/dirent.h (struct dirent): New member `d_type'; shorten
3039         `d_namlen' to a byte.
3040         * sysdeps/unix/bsd/readdir.c [! HAVE_D_TYPE]: Shuffle d_namlen and
3041         clear d_type.
3043 Wed Sep 28 17:23:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3045         * posix/sys/utsname.h [__USE_SVID] (SYS_NMLN): New macro.
3047         * dirent/scandir.c: Free storage on error from readdir.
3049 Mon Sep 26 00:55:34 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3051         * Version 1.08.9.
3053         * MakeTAGS (all-dist): Prepend the appropriate sysdep dir names.
3055         * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): Create a
3056         send right.
3058 Sat Sep 24 13:44:51 1994  Jim Meyering  (meyering@comco.com)
3060         * sysdeps/generic/memcmp.c [CMP_LT_OR_GT]: New macro.
3061         (memcmp): Use it in place of each of ten 5-line #ifdef blocks.
3063 Fri Sep 23 16:55:54 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3065         * sysdeps/mach/hurd/sigsuspend.c: Include <hurd/msg.h>.
3067         * sysdeps/mach/hurd/sigsuspend.c: Add missing & in __mach_msg
3068         call.
3070 Thu Sep 15 14:22:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3072         * sysdeps/standalone/i386/force_cpu386/Dist: New file.
3073         * sysdeps/standalone/m68k/m68020/mvme136/Dist: New file.
3074         * sysdeps/standalone/i960/Dist: New file.
3075         * sysdeps/standalone/m68k/m68020/Dist: New file.
3076         * sysdeps/standalone/i386/force_cpu386/force_cpu386.ld: New file.
3077         * sysdeps/standalone/m68k/m68020/mvme136/mvme136.ld: New file.
3078         * sysdeps/standalone/i960/i960ca.h: New file.
3079         * sysdeps/standalone/m68k/m68020/m68020.h: New file.
3081         * sysdeps/unix/common/configure.in: Use AC_COMPILE_CHECK instead
3082         of AC_HAVE_FUNCS.
3084         * sysdeps/generic/make_siglist.c (sys_siglist): Define as macro to
3085         my_siglist.
3087         * sysdeps/mach/i386/thread_state.h: Include from mach/machine, not
3088         mach/i386.
3089         * sysdeps/mach/hurd/i386/sigcontext.h: Likewise.
3091         * mach/mach/mig_support.h (__mig_put_reply_port): Declare.
3092         (__mig_dealloc_reply_port): Take arg.
3093         * sysdeps/mach/hurd/mig-reply.c (__mig_put_reply_port): New
3094         function.
3095         (__mig_dealloc_reply_port): Take arg, ignore it.
3097 Wed Sep 14 18:16:07 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3099         * sysdeps/mach/hurd/Makefile (libc-name): Set to crt.
3100         [!subdir]: Install libc-ldscript as libc.a.
3101         * sysdeps/mach/hurd/Dist: Add libc-ldscript.
3103 Tue Sep 13 19:57:09 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3105         * sysdeps/mach/hurd/sync.c: Don't be synchronous: pass WAIT=0 to
3106         file_syncfs.
3108         * Makerules (libc-name): New variable.
3109         (install, libc installation rule): Use $(libc-name) in place of `c'.
3111 Sun Sep 11 23:28:20 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3113         * sysdeps/mach/hurd/__readlink.c: Only decrement LEN to remove the
3114         null terminator when LEN is already large enough to include it.
3116         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Add break
3117         after FS_RETRY_MAGICAL case.
3119 Fri Sep  9 04:03:59 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3121         * stdio/vfprintf.c: Grok q modifier like ll.
3123         * Make-dist (sysdep-Subdir-files, subdirs): Set these early on,
3124         before doing distinfo.
3125         [parent] (+distinfo): Set inhibit_interface_rules=t in sub-make.
3127 Thu Sep  8 17:18:14 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3129         * sysdeps/generic/morecore.c (__default_morecore) [! __STDC__]:
3130         Declare arg as `int' instead of `ptrdiff_t'.
3132 Tue Sep  6 19:06:00 1994  Roland McGrath  <roland@geech.gnu.ai.mit.edu>
3134         * posix/glob.c (prefix_array, glob): Avoid const on initialized
3135         variables.  Some compiler generates bad code.
3137 Mon Sep  5 13:24:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3139         * malloc/Makefile (malloc/%: ../sysdeps/generic/%): New rule, to get
3140         morecore.c.
3142         * malloc/malloc.h (size_t, ptrdiff_t): Never define these as macros.
3143         (__malloc_size_t): Define this instead.
3144         Change all uses of size_t to __malloc_size_t.
3145         * malloc/valloc.c: Replace all uses of size_t with __malloc_size_t.
3146         * malloc/memalign.c: Likewise.
3147         * malloc/mcheck.c: Likewise.
3148         * malloc/mtrace.c: Likewise.
3149         * malloc/malloc.c: Likewise.
3150         * malloc/free.c: Likewise.
3151         * malloc/realloc.c: Likewise.
3152         * malloc/calloc.c: Likewise.
3154         * MakeTAGS (TAGS): Define first so as to be default goal.
3155         (sysdep_dirs): Set this by running find, if it is not already set.
3156         (all-dirs): Include that value.
3157         (all-dist): Filter output of cat, not args to it.
3158         * Makerules (TAGS): Depend on distinfo, not distfile.
3160         * resolv/getnetnamadr.c (getnetbyname): Arg is always const,
3161         regardless of [sun].
3163 Sun Sep  4 00:04:55 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3165         * Version 1.08.8.
3167         * Makerules (distinfo-vars): Double $s in final emitted sources defn.
3169         * inet/Makefile (headers): Add netdb.h.
3170         * resolv/Makefile (headers): Remove netdb.h.
3171         * resolv/netdb.h: Moved to inet.
3172         * inet/netdb.h: Incorporated from BSD 4.4-Lite.
3173         Add back h_errno declaration.
3175         * hurd/Makefile (faultexc.c): Change this to a pattern rule to
3176         build both faultexc.[ch].
3177         (hurdfault.o): Depend on faultexc.h and faultexc.c to get them built.
3179         * sysdeps/mach/hurd/i386/trampoline.c
3180         (_hurdsig_rcv_interrupted_p): Make PC volatile.
3181         (_hurd_setup_sighandler): Cast SS->context to int before comparing to
3182         _hurdsig_fault_sigcode.
3184         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_SET_{SP,PC}):
3185         Cast args to unsigned long int.
3187         * sysdeps/mach/hurd/i386/trampoline.c: Use _hurdsig_catch_fault.
3189         * Make-dist (subdirs): Use sed to remove comments from Subdirs files.
3190         * MakeTAGS (subdirs): Likewise.
3192         * sysdeps/mach/i386/thread_state.h: Include
3193         <mach/i386/thread_status.h> first thing.
3195         * hurd/Makefile (sig): Add faultexc.
3196         ($(objpfx)faultexc.c): New target.
3197         (generated): Append faultexc.c.
3199         * hurd/Makefile (sig): Add hurdfault; remove init-fault.
3200         (distribute): Add hurdfault.h.
3201         * hurd/hurdfault.h: New file.
3202         * hurd/hurdfault.c: New file.
3203         * hurd/hurdsig.c (interrupted_reply_port_location): Use
3204         _hurdsig_catch_fault and _hurdsig_end_catch_fault.
3205         (_hurdsig_getenv): Likewise.
3206         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
3208         * hurd/catch-exc.c: Return EPERM if TASK is not right.
3210         * hurd/hurdsig.c (_hurd_sigthread_fault_env): Variable moved to
3211         hurdfault.c.
3212         (_hurdsig_fault_init): Function moved to hurdfault.c.
3214 Sat Sep  3 12:22:53 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3216         * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_SET_PC,
3217         MACHINE_THREAD_STATE_SET_SP): New macros.
3218         * mach/setup-thread.c: Use MACHINE_THREAD_STATE_SET_PC.
3219         * sysdeps/mach/hurd/__fork.c: Likewise.
3221         * string/test-ffs.c (main: try): Actually call ffs in the test.
3223 Fri Sep  2 21:20:17 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3225         * sysdeps/mach/hurd/mips/__sigret.c: Restore FPU state.  Code from
3226         kkojima.
3228         * sysdeps/mach/hurd/__mknod.c: Fixed copying of the translator
3229         name into buffer with major and minor numbers, and setting of LEN.
3231         * sysdeps/unix/configure (unix_syscall): In sed cmd, do = first to
3232         avoid clobbering produced assignments.
3234 Thu Sep  1 03:25:17 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3236         * Version 1.08.7.
3238         * sysdeps/mach/hurd/connect.c (connect): Fix accidental renaming
3239         of sun_path to sun_file_name.
3241         * bare/Makefile (routines, elided-routines): Set these both to
3242         $(bare-routines).
3243         (distribute): Don't set this.
3245         * Makerules (distinfo-vars): Fix cmd to echo `sources' defn.
3247         * sysdeps/unix/configure: Handle dirs other than common.  Check
3248         for [gs]etdomainname.
3249         * misc/Makefile (routines): Add getdomain, setdomain.
3250         * sysdeps/unix/bsd/bsd4.4/setdomain.S: New file.
3251         * sysdeps/unix/bsd/bsd4.4/getdomain.S: New file.
3252         * sysdeps/stub/setdomain.c: New file.
3253         * sysdeps/stub/getdomain.c: New file.
3255 Wed Aug 31 01:15:26 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3257         * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): Take no
3258         args; use parent SS variable.  Changed all calls.
3260         * hurd/hurd/signal.h (struct hurd_sigstate): Make `suspended' a
3261         port; remove `arrived'.
3262         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend): Rewritten to set
3263         SS->suspended port and wait for msg on it.  Check for and deliver
3264         pending signals properly.
3265         * hurd/hurdsig.c (_hurd_internal_post_signal: sigwakeup): If
3266         SS->suspended is set, send an empty message on it and clear it.
3268         * math/test-math.c (print_trig_stuff): New function, tests many
3269         math functions.
3270         (main): Call it at end.
3272         * string/Makefile (tests): Added test-ffs.
3273         * string/test-ffs.c: New file.
3275 Tue Aug 30 20:33:49 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3277         * misc/fstab.c (error): Return void.
3278         (fstabscan): Return int.
3280         * sysdeps/i386/ffs.c: Use & modifier in constraint for CNT.
3282         * misc/fstab.c (EFTYPE): If not defined by errno.h, define this to
3283         EINVAL.
3284         (fstabscan): Return void.
3286 Tue Aug 30 11:00:01 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
3288         * sysdeps/mach/hurd/__access.c (__access): Use a send right,
3289         not a send-once right, in the new auth protocol.
3290         * hurd/__setauth.c (_hurd_setauth): Likewise.
3291         * hurd/hurdsig.c (reauth_proc): Likewise.
3292         * hurd/dtable.c (reauth_dtable): Likewise.
3293         * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): Likewise.
3295 Tue Aug 30 03:59:38 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3297         * socket/sys/socket.h (__SOCKADDR_ARG) [GCC>=2.6]: Use a typedef
3298         with the transparent_union attribute.
3300         * sysdeps/mach/hurd/__access.c: Use new authentication protocol:
3301         for each port, create a fresh receive right and pass send-once
3302         rights in the auth calls, then destroy the port.
3304         * sysdeps/mach/mips/syscall.S: New file.
3306         * stdio/Makefile (mpn-headers, mpn-sysdep): Change asm.h to
3307         asm-syntax.h.
3309         * misc/Makefile (headers): Added fstab.h.
3310         (routines): Added fstab.
3311         * misc/fstab.c: New file.
3312         * misc/fstab.h: New file.
3314         * hurd/Makefile (routines): Changed hurdpath to hurdlookup.
3315         * hurd/hurdpath.c: Renamed to hurd/hurdlookup.c.
3316         * hurd/hurdlookup.c: Globally replace `pathtrans' with `lookup' and
3317         `path' with `file_name'.
3318         (__hurd_file_name_split): Don't bother skipping leading slashes.
3319         * hurd/hurd.h: Rename likewise in decls.
3320         * hurd/fchroot.c: Globally replace `pathtrans' with `lookup' and
3321         `path' with `file_name'.
3322         * hurd/hurdsig.c: Likewise.
3323         * hurd/hurdsock.c: Likewise.
3324         * hurd/hurdsyms.c: Likewise.
3325         * hurd/invoke-trans.c: Likewise.
3326         * sysdeps/mach/hurd/__access.c: Likewise.
3327         * sysdeps/mach/hurd/__chmod.c: Likewise.
3328         * sysdeps/mach/hurd/__chown.c: Likewise.
3329         * sysdeps/mach/hurd/__execve.c: Likewise.
3330         * sysdeps/mach/hurd/__link.c: Likewise.
3331         * sysdeps/mach/hurd/__lstat.c: Likewise.
3332         * sysdeps/mach/hurd/__mkdir.c: Likewise.
3333         * sysdeps/mach/hurd/__mknod.c: Likewise.
3334         * sysdeps/mach/hurd/__open.c: Likewise.
3335         * sysdeps/mach/hurd/__rmdir.c: Likewise.
3336         * sysdeps/mach/hurd/__readlink.c: Likewise.
3337         * sysdeps/mach/hurd/__stat.c: Likewise.
3338         * sysdeps/mach/hurd/__symlink.c: Likewise.
3339         * sysdeps/mach/hurd/__unlink.c: Likewise.
3340         * sysdeps/mach/hurd/__utimes.c: Likewise.
3341         * sysdeps/mach/hurd/bind.c: Likewise.
3342         * sysdeps/mach/hurd/chflags.c: Likewise.
3343         * sysdeps/mach/hurd/connect.c: Likewise.
3344         * sysdeps/mach/hurd/fchdir.c: Likewise.
3345         * sysdeps/mach/hurd/opendir.c: Likewise.
3346         * sysdeps/mach/hurd/sysd-stdio.c: Likewise.
3347         * sysdeps/mach/hurd/truncate.c: Likewise.
3348         * sysdeps/mach/hurd/rename.c: Likewise.
3349         * sysdeps/mach/hurd/getcwd.c: Likewise.
3350         * sysdeps/mach/hurd/chroot.c: Likewise.
3351         * sysdeps/mach/hurd/__chdir.c: Likewise.
3353         * hurd/__setauth.c (_hurd_setauth): Use new authentication
3354         protocol: for each port, create a fresh receive right and pass
3355         send-once rights in the auth calls, then destroy the port.
3356         * hurd/hurdsig.c (reauth_proc): Likewise.
3357         * hurd/dtable.c (reauth_dtable): Likewise.
3359         * hurd/hurdpath.c (__hurd_path_lookup_retry): Don't handle
3360         FS_RETRY_NONE (it's gone).  Use new authentication protocol:
3361         create a fresh receive right and pass send-once rights in the auth
3362         calls, then destroy the port.
3364 Mon Aug 29 13:17:39 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
3366         * sysdeps/mach/hurd/__symlink.c (__symlink): Use new
3367         file_set_translator protocol.
3368         * sysdeps/mach/hurd/bind.c (bind): Likewise.
3369         * sysdeps/mach/hurd/__mknod.c (__mknod): Likewise.
3371         * sysdeps/mach/hurd/__pipe.c (__pipe): Use PF_LOCAL instead
3372         of AF_FILE.
3374 Fri Aug 26 01:21:09 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3376         * Makefile ($(objpfx)sysd-dirs): Use sed to remove # comments from
3377         Subdirs files.
3379         Support for miscellaneous standalone boards (no OS), contributed
3380         by Joel Sherrill (jsherril@redstone-emh2.army.mil), On-Line
3381         Applications Research Corporation.
3382         * sysdeps/standalone: New directory.
3383         * sysdeps/standalone/standalone.h: New file.
3384         * sysdeps/standalone/stdio_lim.h: New file.
3385         * sysdeps/stub/strtsupp.c: New file.
3386         * sysdeps/standalone/filedesc.h: New file.
3387         * sysdeps/posix/{setenv,putenv}.c: Moved to sysdeps/generic.
3388         * sysdeps/unix/getenv.c: Moved to sysdeps/generic.
3389         * sysdeps/unix/morecore.c: Moved to sysdeps/generic.
3390         * sysdeps/posix/sysd-stdio.c: Moved to sysdeps/generic.
3391         * sysdeps/stub/errnos.h: Add ENFILE and EMFILE.
3392         * sysdeps/stub/errlist.c (_sys_errlist): Likewise.
3393         * sysdeps/stub/console.c: New file.
3394         * sysdeps/standalone/__open.c: New file.
3395         * sysdeps/standalone/__read.c: New file.
3396         * sysdeps/standalone/__write.c: New file.
3397         * sysdeps/standalone/__close.c: New file.
3398         * sysdeps/stub/brdinit.c: New file.
3399         * sysdeps/unix/__sbrk.c: Moved to sysdeps/generic.
3400         * sysdeps/standalone/__brk.c: New file.
3401         * sysdeps/standalone/Subdirs: New file
3402         * bare/Makefile: New file (and new directory).
3403         * sysdeps/i960/ffs.c: New file.
3404         * sysdeps/i960/Implies: New file.
3405         * configure.in (os=none): base_os=standalone
3407 Thu Aug 25 23:56:32 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3409         * sysdeps/stub/__sigret.c: Arg is not const.
3410         * signal/sigret.c: Likewise.
3412 Tue Aug 23 14:43:19 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3414         * socket/sys/socket.h (PF_FILE, AF_FILE): Removed (use LOCAL instead).
3415         (PF_XTP, PF_COIP, PF_CNT, PF_RTIP, PF_IPX, PF_SIP, PF_PIP): New
3416         macros.
3417         (PF_MAX): Increased to 26.
3418         (pseudo_AF_XTP, AF_COIP, AF_CNT, pseudo_AF_RTIP, AF_IPX, AF_SIP,
3419         pseudo_AF_PIP): New macros.
3420         (MSG_EOR, MSG_TRUNC, MSG_CTRUNC, MSG_WAITALL, MSG_DONTWAIT,
3421         SO_REUSEPORT): New enum constants.
3423         * hurd/hurdsig.c (_hurd_internal_post_signal): If not preempted,
3424         set ACT before checking for SIGCONT.  When continuing and
3425         ACT==handle, don't resume SS->thread; record that it is suspended
3426         and in handler-setup code, don't suspend it again.
3428         * sysdeps/mach/hurd/sys/param.h: Include <errno.h> (BSD does).
3430         * sysdeps/mach/hurd/__fork.c: When unchaining old sigstates, check
3431         for SS being head of chain.
3433 Mon Aug 22 00:29:02 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3435         * time/{asia,australasia,europe,northamerica}: New data from ADO.
3437         * hurd/hurdsig.c (abort_rpcs): After destroying MSGING_PORT,
3438         change the return value register in STATE to EINTR.
3439         * sysdeps/mach/mips/thread_state.h (SYSRETURN): New macro.
3440         * sysdeps/mach/i386/thread_state.h (SYSRETURN): New macro.
3442         * hurd/hurdsig.c (default_sigaction): New function.
3443         (_hurd_thread_sigstate): Use it to initialize SS->actions.
3444         Initialize rest of new sigstate by hand, don't just bzero it.
3446         * hurd/hurdsig.c (_hurd_internal_post_signal): Initialize
3447         THREAD_STATE.set to zero.
3449         * posix/execl.c: Use ARG instead of PATH in va_start.
3451         * sysdeps/mach/hurd/__fork.c: In child fork, unchain stale
3452         structures from _hurd_sigstates first, and only free them after
3453         other processing is complete.
3455         * hurd/hurdpath.c (__hurd_path_lookup_retry): For malformed number
3456         in magic "fd/N", return ENOENT instead of treating it as bogus
3457         magic.
3459         * sysdeps/mach/hurd/__chdir.c: After __path_lookup on arg, use
3460         __hurd_path_lookup of empty file name on resultant port to check
3461         that it's a directory.
3462         * sysdeps/mach/hurd/chroot.c: Likewise.
3463         * sysdeps/mach/hurd/fchdir.c: Use __hurd_path_lookup of empty file
3464         name on FD port to check that it's a directory and acquire a
3465         reference at the same time.
3466         * hurd/fchroot.c: Likewise.
3468         * hurd/hurdpid.c (init_pids): Add gratuitous self reference to
3469         silence compiler.
3471         * hurd/hurdpath.c: Include <hurd/term.h> for cttyid opening rpc.
3472         (__hurd_path_lookup_retry): Fixed typo.
3474         * sysdeps/mach/hurd/i386/__sigret.c: Push state onto the user's
3475         stack, switch to it, pop and return.
3477         Major rewrite of Hurd signal delivery.
3478         * hurd/hurd/signal.h (struct hurd_sigstate): New member `context'.
3479         * sysdeps/mach/hurd/i386/trampoline.c: Include "thread_state.h"
3480         instead of <mach/thread_status.h>.
3481         (struct mach_msg_trap_args): New type.
3482         (trampoline): Function removed.
3483         (_hurd_setup_sighandler): Take struct hurd_sigstate * arg instead
3484         of FLAGS and SIGALTSTACK args; take new flag arg RPC_WAIT; use
3485         struct machine_thread_all_state * for STATE arg.  New declared
3486         labels `trampoline', `rpc_wait_trampoline' mark asm code at end of
3487         function (after return).  Add another struct sigcontext * to
3488         STACKFRAME after the first one, for the arg to __sigreturn.  If
3489         SS->context is set, fill registers in SCP from that instead of
3490         STATE, and reset SS->INTR_PORT from it.  Use memcpy to copy from
3491         STATE into SCP; the structures are congruent.  If RPC_WAIT is set,
3492         set up to use rpc_wait_trampoline and frob args to mach_msg_trap
3493         syscall in progress so that it will retry the receive operation
3494         (but not resend!).
3495         {rpc_wait_trampoline, trampoline}: New trampoline code.
3496         (_hurd_rcv_interrupted_p): New function.
3497         * sysdeps/mach/hurd/mips/trampoline.c: Likewise.
3498         * hurd/hurdsig.c (write_corefile): Take new arg SIGERROR.  Use
3499         _hurdsig_getenv instead of getenv.  Use dir_mkfile to create an
3500         unlinked node for the core file; then use dir_link to name it,
3501         only if core_dump_task succeeded.
3502         (post_reply): New function.
3503         (abort_thread): New function.
3504         (interrupted_reply_port_location): New function.
3505         (interrupted_reply_port): Function removed (replaced by above).
3506         (abort_all_rpcs): Take struct machine_thread_all_state * for STATE.
3507         (abort_rpcs): Likewise.
3508         Return int, nonzero iff interrupt_operation RPC was done.  Take
3509         args for reply port and its port type; call abort_thread instead
3510         of doing thread_abort and thread_get_state.  Call
3511         _hurdsig_rcv_interrupted_p instead of _hurd_thread_state_msging_p.
3512         Use __interrupt_operation mig stub instead of manual packing.  If
3513         we destroy the msging port, and it is the thread's mig reply port,
3514         clear its reply port slot.  Fix inverted SA_RESTART test.
3515         (_hurd_internal_post_signal): Take new arg SIGERROR.
3516         Remove `cont' from ACT enum; SIGCONT processing is independent of
3517         handling.  Removed local function `check_pending'; add `reply'.
3518         Use mask macro STOPSIGS instead of alternation to check for stop
3519         signals.  Process SIGCONT and do continuation before examining the
3520         handler.  Use SS->pending_data instead of SS->sigcodes.  When
3521         dying, don't lock _hurd_siglock around __proc_dostop call.  When
3522         dying, reply immediately after stopping user threads.  When
3523         handling, notice return from abort_rpcs and pass it to
3524         _hurd_setup_sighandler; also pass SS instead of its components.
3525         Set SCP->sc_error from SIGERROR; clear SS->intr_port after saving
3526         it in SCP->sc_intr_port.  For pending checks, use macro PENDING
3527         and goto pending if returns true.
3528         (_S_sig_post): Eliminate unnecessary variable WIN; pass SIGERROR
3529         value of zero to _hurd_internal_post_signal.
3530         (_hurdsig_getenv): New function.
3531         * sysdeps/mach/hurd/i386/__sigret.c (sp): New global register
3532         variable.
3533         (__sigreturn): Arg is not const.
3534         After restoring SCP->sc_mask, check for pending signals (newly
3535         unblocked); if any, set SS->context to SCP, clear SS->intr_port,
3536         and send sig_post to the signal thread to deliver the pending
3537         signals.  Point SP directly at &SCP->sc_gs and used popa;iret to
3538         restore.  (This does not actually work; iret is unhelpful.)
3539         * sysdeps/mach/hurd/mips/__sigret.c (__sigreturn): Arg is not
3540         const.  After restoring SCP->sc_mask, check for pending signals
3541         (newly unblocked); if any, set SS->context to SCP, clear
3542         SS->intr_port, and send sig_post to the signal thread to deliver
3543         the pending signals.  Don't write $1 value into the user stack.
3544         Instead, write it into the word just past SCP->sc_pc; then point
3545         $1 at SCP->sc_pc and use `op_sigreturn' pseudo-instruction to
3546         restore the PC and $1 from that.
3548 Fri Aug 19 15:39:54 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3550         * configure.in (machine): Grok i586 -> i386/i586.
3551         * sysdeps/i386/pentium: Directory renamed to sysdeps/i386/i586.
3553         * hurd/hurd.h (_hurd_pids_changed_stamp, _hurd_pids_changed_sync):
3554         New variables.
3555         * hurd/hurdpid.c (_S_proc_newids): Last thing, increment
3556         _hurd_pids_changed_stamp and broadcast on _hurd_pids_changed_sync.
3557         * sysdeps/mach/hurd/__setpgrp.c: After proc_setpgrp succeeds and
3558         PID is ourself, wait on _hurd_pids_changed_sync until
3559         _hurd_pids_changed_stamp increases from the value before the RPC.
3560         * sysdeps/mach/hurd/__setsid.c: After proc_setsid succeeds, wait
3561         on _hurd_pids_changed_sync until _hurd_pids_changed_stamp
3562         increases from the value before the RPC.
3564         * posix/sys/wait.h [GCC>=2.6] (__WAIT_STATUS): Define this with
3565         typedef as a union with the new (GCC 2.6.1) `transparent_union'
3566         attribute.
3568         * stdio/printf_fp.c (MPNSIZE): New macro, computed from DBL_MAX_EXP.
3569         (MPN_VAR): Use that for size of bignums.
3571         * sysdeps/mach/hurd/__kill.c: For pgrp, ignore ESRCH error from
3572         kill_pid of individual pids, unless from all of them.
3573         * hurd/hurdkill.c (_hurd_sig_post): Likewise.
3575 Fri Aug 19 00:54:50 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3577         * configure.in (INSTALL): Quote this shell goop from m4.
3579         * sysdeps/stub/start.c (errno, __environ): Define these variables.
3581         * sysdeps/stub/errnos.h (ENOMEM, EACCES): New macros.
3582         * sysdeps/stub/errlist.c (_sys_errlist): Add strings for all
3583         macros defined in stub/errnos.h.
3584         (_sys_nerr): Use value computed from sizeof (_sys_errlist).
3586 Wed Aug 17 15:32:39 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3588         * hurd/hurdmsg.c (_S_io_select_done): Take poly arg for notify
3589         port arg.
3591         * mach/mach_init.h (vm_page_size): Remove macro defn.
3593         * hurd/Makefile (distribute): Added STATUS.
3595         * sysdeps/mach/thread_state.h: Include <string.h> and
3596         <mach/mach_interface.h>.
3598         * sysdeps/mach/hurd/__select.c: Pass port-type arg to io_select.
3600         * sysdeps/mach/hurd/__fork.c: Include "hurdmalloc.h", so we use
3601         the right `free'.
3603         * sysdeps/mach/hurd/__select.c (SELECT_DONE_MSGID): Correct value
3604         to 23020.
3605         (__select): Don't set PORT until just before sending io_select calls.
3606         Pass proper send-size for io_select_done reply message.  Clear the
3607         reply port slot in io_select_done reply message header.
3609         * sysdeps/mach/hurd/__kill.c: Rename parameter to ARG_SIG, make
3610         SIG a local variable initialized to that (this to work around a
3611         GCC bug).
3612         Initialize PIDS and NPIDS properly for proc_getpgrppids call.
3614         * signal/signal.h (__sigreturn, sigreturn): Arg is not const.
3616         * hurd/hurdpath.c (__hurd_path_lookup_retry): For REAUTH or NORMAL
3617         with empty retryname, treat like NONE (which is now obsolete)
3618         after reauthentication.  For magic "tty", use new
3619         termctty_open_terminal RPC on cttyid port.
3621 Tue Aug 16 01:58:21 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3623         * sysdeps/mach/hurd/__kill.c (kill_pid): Make non-inline.  Treat
3624         null msgport like EPERM return from sig_post.
3625         * hurd/hurdkill.c (_hurd_sig_post): Treat null msgport like EPERM.
3627         * sysdeps/mach/thread_state.h (machine_get_state,
3628         machine_get_basic_state): Initialize count arg before calling
3629         thread_get_state.
3631         * hurd/hurdpath.c (__hurd_path_lookup_retry): Initialize ERR to zero.
3633         * hurd/hurdpath.c (__hurd_path_lookup_retry): Grok magic "tty".
3635         * hurd/hurd/signal.h (struct hurd_sigstate): Replace `sigcodes' with
3636         `pending_data'.
3637         (_hurd_raise_signal, _hurd_setup_sighandler): Update prototypes.
3638         (_hurd_thread_state_msging_p): Don't declare.
3639         (_hurdsig_rcv_interrupted_p): Declare this instead.
3640         (HURD_EINTR_RPC): Invert sense of restart test.
3642         * hurd/hurdrlimit.c (_hurd_rlimits): Add braces to initializer.
3644         * hurd/catch-exc.c: Unlock _hurd_siglock when done with it.  Use
3645         __spin_lock_locked on `held' member instead of __mutex_lock_locked.
3647         * sysdeps/mach/thread_state.h: New file.
3648         * sysdeps/mach/i386/thread_state.h: Don't #include
3649         <mach/thread_status.h>.  Add #include_next <thread_state.h> at end.
3650         * sysdeps/mach/mips/thread_state.h: Likewise.
3652         * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Lay out
3653         corresponding to i386_thread_state and i386_float_state.
3654         * sysdeps/mach/hurd/mips/sigcontext.h (sc_mips_thread_state,
3655         sc_mips_exc_state, sc_mips_float_state): New macros, marking
3656         members that correspond to thread_state.h structs.
3658 Mon Aug 15 17:21:20 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3660         * Rules [cross-compiling=yes] (tests): Depend on the binaries, not
3661         the output files.
3663         * Makerules: Replace uses of HOST_CC with BUILD_CC and
3664         native-CFLAGS with BUILD_CFLAGS.
3666         * sysdeps/unix/Makefile (mk-local_lim, make-ioctls): Replace uses
3667         of CC with BUILD_CC and native-CFLAGS with BUILD_CFLAGS.
3668         * sysdeps/unix/sysv/sysv4/solaris2/Makefile: Replace uses of
3669         HOST_CC with BUILD_CC and native-CFLAGS with BUILD_CFLAGS.
3670         * sysdeps/posix/Makefile: Likewise.
3672         * Makeconfig (+cc_version): Variable and associated code removed.
3673         (HOST_CC): Use BUILD_CC instead; all uses changed.
3674         (cross-compiling): Set to no if not the case.
3676         * sysdeps/m68k/fpu/__math.h: Replace all uses of __const with
3677         __CONSTVALUE.
3679         * Makerules (distinfo-vars): Remove $@.new first thing.  Write
3680         elided-routines instead of sysdep_routines.  After writing
3681         variables, append to sources from $(elided-routines).
3682         * sysdeps/vax/Makefile (elided-routines): New variable (append to
3683         it).
3684         (aux, routines): Don't set these.
3685         (sysdep_routines): Append things here instead.
3686         * sysdeps/generic/Makefile (elided-routines): New variable (append
3687         to it).
3688         (aux): Don't set this.
3689         * sysdeps/generic/Makefile (routines): Don't set this.
3690         (sysdep_routines): Append exp__E and log__L here instead.
3692         * time/test_time.c (main): Set TBUF.tm_isdst to -1 before calling
3693         mktime.
3695         * stdlib/stdlib.h (atof, atoi, atol, random, srandom, setstate,
3696         initstate, mblen): Never define as macros.
3697         [__OPTIMZE__ && __GNUC__ >= 2]: Define those functions as extern
3698         inlines.
3700         * hurd/hurdpath.c (__hurd_path_lookup_retry): For magic "fd/%u",
3701         lose on random chars after number; for / after number, retry
3702         remainder properly.
3704         * hurd/hurdpath.c (pathtrans_error): New function; filters errors
3705         from dir_pathtrans: EOPNOTSUPP and MIG_BAD_ID become ENOTDIR.
3706         (__hurd_path_lookup, __hurd_path_lookup_retry): Call it.
3708 Thu Aug 11 11:59:33 1994  Noel Cragg  (noel@churchy.gnu.ai.mit.edu)
3710         * time/mktime.c (_mktime_internal): Add code to normalize value of
3711         TM_ISDST to -1, 0, or 1 so code doesn't loop forever.
3713 Thu Aug 11 02:26:37 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3715         * resolv/Makefile (subdir): Set to resolv, not res.
3717         * sysdeps/mach/hurd/sysd-stdio.c (fd_fail): Pass ERR to
3718         _hurd_raise_signal.
3720         * sysdeps/mach/i386/thread_state.h (struct machine_thread_all_state):
3721         Add new member `fpu'.
3723 Wed Aug 10 23:39:49 1994  Karl Heuer  <kwzh@hal.gnu.ai.mit.edu>
3725         * malloc/mcheck.c (mcheck): Remove obsolete extern declaration.
3727         * malloc/mcheck.c (flood): Add an arg.
3728         (freehook, mallochook, reallochook): Use different flood bytes to
3729         distinguish freed space from uninitialized allocated space.
3731         * malloc/mtrace.c (mtrace): Guard against being called twice.
3732         (muntrace): New function, to turn off tracing.
3733         * malloc/malloc.h: Declare it.
3735 Wed Aug 10 02:47:24 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3737         * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Renamed
3738         member `sc_err' to `sc_error'.
3740         * hurd/hurd-raise.c: Take new arg SIGERROR.  Set
3741         SS->pending_data[SIGNO] from SIGCODE and SIGERROR instead of
3742         setting SS->sigcodes[SIGNO].
3744         * Makeconfig (+includes): Use text manipulation to avoid
3745         conditional for $(..).  Append $(last-includes).
3746         * sysdeps/mach/hurd/Makefile (last-includes): Append
3747         -I.../libthreads to this.
3748         (includes): Not to this.
3750         * hurd/hurd/fd.h (_hurd_fd_error): Pass ERR to _hurd_raise_signal.
3752         * stdlib/stdlib.h [__OPTIMIZE__] (cfree, rand, srand, random,
3753         srandom, initstate, setstate): Macros removed.
3755         * malloc/mcheck.c (reallochook): Fixed typo.
3756         (mabort) [! __GNU_LIBRARY__]: Use fprintf and abort instead of
3757         __libc_fatal.
3759         * hurd/Makefile (sig): Remove msging-p; that function will go in
3760         trampoline.c.
3761         * sysdeps/stub/msging-p.c: File removed.
3762         * sysdeps/mach/hurd/mips/msging-p.c: File removed.
3763         * sysdeps/mach/hurd/i386/msging-p.c: File removed.
3765 Tue Aug  9 19:20:29 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3767         * hurd/catch-exc.c: Get error code from _hurd_exception2signal and
3768         pass it to _hurd_internal_post_signal.  Search for SS manually
3769         rather than using _hurd_thread_sigstate, to avoid locks.
3771         * sysdeps/mach/hurd/mips/msging-p.c: Fetch port argument from
3772         register $8 (t0) instead of stack.  Change type of STATE arg to
3773         `struct machine_thread_all_state *'.
3775         * inet/inet_netof.c: Incorporated from BSD 4.4-Lite.
3776         * inet/inet_net.c: Incorporated from BSD 4.4-Lite.
3778 Tue Aug  9 18:28:40 1994  Karl Heuer  <kwzh@hal.gnu.ai.mit.edu>
3780         * malloc/mtrace.c (tr_mallochook, tr_reallochook): Don't assume
3781         %lx format matches size_t arg.
3782         * malloc/mtrace.c: Enable file- and line-number tracing.
3783         * malloc/mtrace.awk: Postprocess that trace information.
3785         * malloc/mcheck.c (flood): New function.
3786         (freehook, mallochook, reallochook): Initialize new space and
3787         freed space to non-zero garbage, to help find code that makes
3788         unwarranted assumptions.
3790 Mon Aug  8 01:20:56 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3792         * sysdeps/mach/hurd/mips/exc2signal.c (_hurd_exception2signal): Take
3793         new arg `int *error'; set it.
3794         * sysdeps/mach/hurd/i386/exc2signal.c: Likewise.
3795         * sysdeps/stub/exc2signal.c: Likewise.
3796         * hurd/hurd/signal.h (_hurd_exception2signal): Take new arg
3797         `int *error'.
3798         (_hurd_internal_post_signal): Take new arg `int error'.
3800         * res: Directory renamed to resolv.
3801         * sysdeps/unix/inet/Subdirs: Change res to resolv.
3803         * Version 1.08.6.
3805         * sysdeps/sparc/divrem.m4 (DEVELOP_QUOTIENT_BITS): Use ** instead of
3806         ^ for exponentiation.  Pinard says it is more portable.
3808         * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Added
3809         member `sc_err'.
3810         * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Move
3811         sc_err to front machine-independent section; change its comment.
3813         * sysdeps/stub/thread_state.h (struct machine_thread_all_state): New
3814         type.
3815         * sysdeps/mach/i386/thread_state.h: Likewise.
3816         * sysdeps/mach/mips/thread_state.h: Likewise.
3818         * sysdeps/mach/i386/Implies: File removed; it was superfluous.
3820         * sysdeps/sparc/divrem.m4 (Lgot_result): Add more quotes in ifelse.
3822         * configure.in (fpu_dirs): Fixed typo.
3824 Sun Aug  7 01:13:04 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3826         * inet/inet_lnaof.c: Incorporated from BSD 4.4-Lite.
3827         * inet/inet_mkadr.c: Incorporated from BSD 4.4-Lite.
3828         * inet/inet_addr.c: Incorporated from BSD 4.4-Lite.
3829         * res/Makefile (headers): Use only arpa/nameser.h, not arpa/*.h.
3830         * res/arpa/inet.h: Moved to inet/arpa/inet.h.
3831         * inet/arpa/inet.h: Incorporated from BSD 4.4-Lite.
3833         * misc/init-misc.c: New file.
3834         * misc/Makefile (aux): Added init-misc.
3836         * Makeconfig (localtime-file): Use $(sysconfdir) instead of
3837         $(etcdir).
3839         * Makerules (install-bin-nosubdir): Use $(install-bin) instead of
3840         $(install).
3841         (install-sbin-nosubdir): New target.
3842         (install-no-libc.a-nosubdir): Depend on that.
3844         * configure.in ($nfp check): Iterate through $mach and use all
3845         fpu/ dirs that exist.
3847 Wed Aug  3 02:46:03 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3849         * sysdeps/mach/hurd/mips/sigcontext.h: Rearranged structure so
3850         machine-dependent portion is laid out like `struct mips_thread_state;
3851         struct mips_exc_state; struct mips_float_state;'.
3853         * Version 1.08.5.
3855         * sysdeps/mach/hurd/mips/__sigret.c: Compare *reply_port to
3856         MACH_PORT_NULL, not implicit zero.
3857         (restore_gpr): Use N-1 as subscript into sc_gpr (sc_gpr[0] => $1).
3858         Before general regs, restore from sc_mdlo and sc_mdhi.  Don't
3859         treat sp, fp specially; use restore_gpr for them too.  For final
3860         return, store user $1 value beyond top of user stack ahead of
3861         time; then use $1 to hold the user PC, and restore it from the
3862         stack in the delay slot.
3864 Tue Aug  2 21:03:51 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3866         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
3867         Copy TS to SCP all at once.
3868         * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): sc_gpr
3869         has 31 elts; sc_gpr, sc_pc, sc_mdlo, sc_mdhi are arranged in that
3870         order to mimic struct mips_thread_state.
3872         * Make-dist (all-headers): Instead of removing rpcsvc/%, use
3873         $(wildcard) to remove all headers that don't exist at top level,
3874         but preserve top-level $(headers).
3876         * Make-dist (sysdep_dirs): Avoid directories called RCS.
3877         (%/configure): Pass -f to mv.
3879         * sysdeps/mips/setjmp.S [__sgi__]: Use `fp' instead of `$fp'.
3881 Mon Aug  1 20:12:23 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3883         * sysdeps/mach/hurd/mips/sigcontext.h (struct sigcontext): Add
3884         members sc_mdlo, sc_mdhi.
3885         * sysdeps/mach/hurd/mips/trampoline.c (_hurd_setup_sighandler):
3886         Save mdlo and mdhi.
3888 Sun Jul 31 14:21:16 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3890         * time/mktime.c: Remove errant comment end sequence.
3892         * termios/sys/ttydefaults.h: Incorporated from BSD 4.4-Lite.
3893         * sysdeps/vax/DEFS.h: Incorporated from BSD 4.4-Lite.
3894         * sysdeps/unix/bsd/sys/reboot.h: Incorporated from BSD 4.4-Lite.
3895         * sysdeps/unix/bsd/bsd4.4/errnos.h: Updated from 4.4-Lite sys/errno.h.
3896         [__USE_BSD] (EAUTH, ENEEDAUTH, ELAST): New macros.
3897         * sysdeps/ieee754/support.c: Incorporated from BSD 4.4-Lite.
3898         * sysdeps/ieee754/cbrt.c: Incorporated from BSD 4.4-Lite.
3899         * sysdeps/generic/trig.h: Incorporated from BSD 4.4-Lite.
3900         * sysdeps/generic/tanh.c: Incorporated from BSD 4.4-Lite.
3901         * sysdeps/generic/tan.c: Incorporated from BSD 4.4-Lite.
3902         * sysdeps/generic/sinh.c: Incorporated from BSD 4.4-Lite.
3903         * sysdeps/generic/sincos.c: Incorporated from BSD 4.4-Lite.
3904         * sysdeps/generic/pow.c: Incorporated from BSD 4.4-Lite.
3905         * sysdeps/generic/mathimpl.h: Incorporated from BSD 4.4-Lite.
3906         Add back __izing #define's, except for exp__E and log__L, which
3907         have been renamed with __s in 4.4-Lite.
3908         * sysdeps/generic/log__L.c: Incorporated from BSD 4.4-Lite.
3909         * sysdeps/generic/log1p.c: Incorporated from BSD 4.4-Lite.
3910         * sysdeps/generic/log.c: Incorporated from BSD 4.4-Lite.
3911         * sysdeps/generic/fmod.c: Incorporated from BSD 4.4-Lite.
3912         * sysdeps/generic/exp__E.c: Incorporated from BSD 4.4-Lite.
3913         * sysdeps/generic/exp.c: Incorporated from BSD 4.4-Lite.
3914         * sysdeps/generic/cosh.c: Incorporated from BSD 4.4-Lite.
3915         * sysdeps/generic/atanh.c: Incorporated from BSD 4.4-Lite.
3916         * sysdeps/generic/atan2.c: Incorporated from BSD 4.4-Lite.
3917         * sysdeps/generic/asinh.c: Incorporated from BSD 4.4-Lite.
3918         * sysdeps/generic/asincos.c: Incorporated from BSD 4.4-Lite.
3919         * misc/getusersh.c: Incorporated from BSD 4.4-Lite.
3920         (initshells): Reapply fix of 16 Nov 1992.
3921         * sysdeps/generic/acosh.c: Incorporated from BSD 4.4-Lite.
3922         * sysdeps/generic/__expm1.c: Incorporated from BSD 4.4-Lite.
3923         * misc/ttyslot.c: Incorporated from BSD 4.4-Lite.
3924         * misc/ttyent.h: Incorporated from BSD 4.4-Lite.
3925         * misc/syslog.c: Incorporated from BSD 4.4-Lite.
3926         * misc/paths.h: Incorporated from BSD 4.4-Lite.
3927         * misc/getttyent.c: Incorporated from BSD 4.4-Lite.
3928         * misc/sys/syslog.h: Incorporated from BSD 4.4-Lite.
3929         Don't include <machine/ansi>; define _BSD_VA_LIST_ to __gnuc_va_list.
3930         * inet/rexec.c: Incorporated from BSD 4.4-Lite.
3931         * inet/rcmd.c: Incorporated from BSD 4.4-Lite.
3932         (rcmd): Reapply select max fd fix of 3 Jun 1994.
3933         * inet/pathnames.h: File removed.
3934         * inet/inet_ntoa.c: Incorporated from BSD 4.4-Lite.
3935         * inet/getsrvbypt.c: Incorporated from BSD 4.4-Lite.
3936         * inet/getsrvbynm.c: Incorporated from BSD 4.4-Lite.
3937         * inet/getservent.c: Incorporated from BSD 4.4-Lite.
3938         * inet/getprtname.c: Incorporated from BSD 4.4-Lite.
3939         * inet/getprtent.c: Incorporated from BSD 4.4-Lite.
3940         * inet/getproto.c: Incorporated from BSD 4.4-Lite.
3941         * inet/protocols/timed.h: Incorporated from BSD 4.4-Lite.
3942         * inet/protocols/talkd.h: Incorporated from BSD 4.4-Lite.
3943         * inet/protocols/rwhod.h: Incorporated from BSD 4.4-Lite.
3944         * inet/protocols/routed.h: Incorporated from BSD 4.4-Lite.
3945         * inet/arpa/tftp.h: Incorporated from BSD 4.4-Lite.
3946         * inet/arpa/telnet.h: Incorporated from BSD 4.4-Lite.
3947         * inet/arpa/ftp.h: Incorporated from BSD 4.4-Lite.
3949 Fri Jul 29 01:50:37 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3951         * Version 1.08.4.
3953         * res/Makefile (routines): Add missing backslash.
3955         * sysdeps/mach/hurd/mips/__sigret.c: Rename variable AT (which is
3956         the register's name) to SCPREG.  Fix some SCP references in
3957         register loads to use SCPREG instead.  Load SCPREG->sc_pc into $24
3958         and jump to it, restoring $at in the delay slot.  This still
3959         leaves $24 clobbered.
3961         * sysdeps/mach/hurd/mips/sigcontext.h: Use `unsigned int'
3962         consistently for port names.
3964         * sysdeps/mach/hurd/mips/trampoline.c: Don't set up args on the
3965         stack; pass them in registers.
3967         * Makefile (%/configure, sysd-dirs, munch-init.c): Pass -f to mv.
3969         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Use the
3970         __attribute__ defn for GCC>=2.7, not >=2.6.  Use the keyword defn
3971         only for GCC<2.5.  Use __volatile__ and __const__ instead of
3972         noreturn and const for namespace safety.
3974         * sysdeps/mach/hurd/__readlink.c: If BUF is null, return the size
3975         of buffer required.
3977 Thu Jul 28 17:17:11 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3979         * res/netdb.h: Declare h_errno.
3981         * res: New directory, for all code incoporated from BIND.
3982         * inet/arpa/inet.h, inet/arpa/resolv.h: Moved to res/arpa.
3983         * inet/sys/bitypes.h: Moved to res/sys.
3984         * inet/gethstnamad.c: Renamed to res/gethnamaddr.c.
3985         * inet/getnetbyad.c: Renamed to res/getnetbyaddr.c.
3986         * inet/getnetbynm.c: Renamed to res/getnetbyname.c.
3987         * inet/res_mkqry.c: Renamed to res/res_mkquery.c.
3988         * inet/Makefile (headers): Removed netdb.h, resolv.h, and
3989         sys/bitypes.h.
3990         (routines): Removed res_comp res_debug res_init res_mkqry res_query
3991         res_send gethstnmad sethostent.
3992         (aux, distribute): Variables removed.
3993         * res/getnetnamadr.c, res/nsap_addr.c: New files.
3994         * All .c and .h in res/ updated from BIND-4.9.3-BETA9.
3995         * res/Makefile: New file.
3996         * sysdeps/unix/inet/Subdirs: Added res.
3998         * Makerules: Replace all uses of `.dep' suffix with `.d' suffix.
3999         (+make-deps): Replace `.dtm' suffix with `.T' suffix.
4001 Wed Jul 27 06:13:30 1994  Noel Cragg  (noel@churchy.gnu.ai.mit.edu)
4003         * time/mktime.c: Add code to support tm_isdst flag in struct tm.
4004         Fixed bug with handling of DST sections.
4006 Mon Jul 25 17:17:28 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4008         * sysdeps/sparc/divrem.m4 (Lgot_result) [S=true]: Only test SIGN
4009         and negate for [OP=div].
4011         * socket/sys/socket.h (__SOCKADDR_ARG): New macro; for GCC 2.6 and
4012         later, a funky union similar to __WAIT_STATUS in <sys/wait.h>.
4013         (bind, getsockname, connect, getpeername, sendto, recvfrom,
4014         accept): Use __SOCKADDR_ARG in place of `struct sockaddr *' in
4015         declarations.
4017         * posix/glob/configure.bat: New file.
4018         * posix/Makefile (glob.tar): Add glob/configure.bat.
4020         * sysdeps/unix/opendir.c: Fail with ENOENT when passed "".
4021         Check STATBUF and fail with ENOTDIR if it's not a directory.
4023 Mon Jul 25 15:44:18 1994  Noel Cragg  (noel@churchy.gnu.ai.mit.edu)
4025         * time/mktime.c: Fix range-checking bug in NORMALIZE macro.
4027 Fri Jul 22 02:42:44 1994  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4029         * sysdeps/unix/readdir.c: Search for NUL character to limit
4030         d_namlen.  Some systems return very bogus values.
4032         * sysdeps/unix/sysv/sysv4/i386/sysdep.h (PSEUDO): Remove ret at end.
4034         * mach/Makefile (mach-shortcuts): Filter out device_writev_request.
4036         * limits.h (_LIBC_LIMITS_H_): Don't define if already defined.
4037         [__GNUC__ < 2]: Only protect this section from multiple inclusion.
4039         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4040         Declare SIGSP volatile.
4042         * hurd/hurdinit.c (_hurd_setproc): Fixed arg in
4043         _hurd_pgrp_changed_hook decl.
4045         * hurd/hurd/signal.h (_hurd_self_sigstate_unlocked): New function.
4046         (HURD_EINTR_RPC): Use it instead of _hurd_self_sigstate followed by
4047         __mutex_unlock; this thread might already hold the lock.
4049 Wed Jul 20 18:53:54 1994  Michael I Bushnell  <mib@geech.gnu.ai.mit.edu>
4051         * hurd/fd-read.c (_hurd_fd_read): Test for EBACKGROUND in
4052         do loop was reversed.
4054         * hurd/hurdpath.c (__hurd_path_lookup): Skip over initial slashes
4055         before calling __dir_pathtrans.
4057 Tue Jul 19 15:28:39 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4059         * mach/Makefile (user-interfaces): Add mach/mach4.
4060         (mach-shortcuts): Match all syscall_% again; the missing ones are in
4061         mach4.defs.
4063         * mach/Machrules (%.ir): Match SimpleRoutine as well as Routine
4064         comments.
4066         * sysdeps/mach/hurd/Makefile ($(hurd)/errlist.c): Use -f flag to mv.
4068 Sat Jul 16 00:42:30 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4070         * Makerules [install]: Rewrite this rule to use install-bin.
4071         [install-sbin]: New rule parallel to that one, installs in $(sbindir).
4073         * time/Makefile (install-sbin): Set this instead of install.
4074         * sunrpc/Makefile (install-others): Use $(sysconfdir)/rpc instead
4075         of $(etcdir)/rpc.
4076         (install-bin): Set this instead of install; set it to just rpocgen.
4077         (install-sbin): Put rpcinfo and portmap here instead.
4078         ($(sysconfdir)/rpc): Rule renamed from $(etcdir)/rpc.
4079         (defines): Rename it in _PATH_RPC defn here too.
4081         * posix/Makefile (install-bin): Set this instead of install.
4083         * Makeconfig (datadir): Default to $(prefix)/share, not $(prefix)/lib.
4084         (sbindir): New variable.
4085         (sysconfdir): Variable renamed from etcdir.
4087         * sysdeps/unix/bsd/sun/signum.h: New file; no SIGINFO, SIGLOST is 29.
4089         * sysdeps/unix/sysv/sco3.2.4/uname.S: New file from Scott Bartram.
4091         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: Include alloca.h.
4093         * configure.in (INSTALL): If it is $srcdir/install.sh after
4094         AC_PROG_INSTALL, reset it to '$(..)./install.sh'.
4096         * sysdeps/mach/hurd/__ioctl.c (io2mach_type): Move macro defn before
4097         first use.
4098         (__ioctl): Fix swapped args to __sigismember; remove unused variable.
4100         * sysdeps/mach/hurd/send.c: Fix portsPoly arg to __socket_send.
4101         * sysdeps/mach/hurd/sendto.c: Likewise.
4103         * sysdeps/mach/hurd/recv.c: Pass &BUFP, not BUFP.
4104         * sysdeps/mach/hurd/recvfrom.c: Likewise.
4106         * sysdeps/mach/hurd/connect.c: Include <hurd/ifsock.h>.
4108         * sysdeps/mips/dec/bytesex.h: New file.
4109         * sysdeps/mips/p40/bytesex.h: New file.
4111 Fri Jul 15 23:12:06 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4113         * posix/sys/types.h (u_quad, quad): Renamed to &_t.
4114         * posix/gnu/types.h [__GNUC__] (__u_quad_t, __quad_t, __qaddr_t):
4115         New typedefs, using long long int and derivatives.
4116         [! __GNUC__] (__u_quad, __quad): Renamed to &_t.
4117         (__fsid_t): Make this always be __u_quad_t.
4119         * time/sys/time.h (struct timespec): New type.
4120         (TIMEVAL_TO_TIMEPSEC, TIMESPEC_TO_TIMEVAL): New macros.
4122 Thu Jul 14 15:43:39 1994  Brendan Kehoe  (brendan@zen.org)
4124         * sysdeps/unix/sysv/sysv4/sysinfo.S: New file.
4125         * sysdeps/unix/sysv/sysv4/Dist: Add sysinfo.S.
4126         * sysdeps/unix/sysv/sysv4/Makefile: Add sysinfo to sysdep_routines
4127         if we're inside misc.
4128         * sysdeps/unix/sysv/sysv4/sethostnam.c: New file.
4129         * sysdeps/unix/sysv/sysv4/__gethstnm.c: New file.
4131         * sysdeps/unix/sysv/sysv4/solaris2/fsync.S: New file.
4133 Tue Jul 12 00:57:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4135         * mach/Makefile (mach-shortcuts): Only match known Mach
4136         subsystems: vm, task, mach_port, and thread.
4138 Mon Jul 11 20:18:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4140         * hurd/intr-rpc.defs, hurd/intr-rpc.awk: New files.
4141         * hurd/Makefile (user-MIGFLAGS): Add -imacros intr-rpc.defs.
4142         (transform-user-stub): New canned sequence.
4143         (transform-user-stub-output): New variable.
4144         Make the .ustamp files depend on intr-rpc.awk.
4146         * mach/Machrules (%.ir): Cull the RPC names from the preceding
4147         comment rather than the definition, so we don't see any userprefix.
4148         (transform-user-stub-output): New variable.
4149         (%.ustamp: %.defs): Invoke $(transform-user-stub) inside for loop.
4150         Use $(transform-user-stub-output) in place of `tmp' in arg to
4151         move-if-change.
4153         * mach/Makefile [! mach-shortcuts] (user-interfaces): Also filter
4154         out device/device_request.
4156 Mon Jul 11 17:50:14 1994  Brendan Kehoe  (brendan@mole.gnu.ai.mit.edu)
4158         * sysdeps/unix/sysv/sysv4/Makefile: Put the sys-sig.S stuff in
4159         here, rather than in .../sysv4/solaris2/sparc/Makefile.
4160         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile: Removed the
4161         sys-sig.S part.
4163 Sun Jul 10 19:04:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4165         * sysdeps/mach/hurd/bind.c: Call __hurd_invoke_translator.
4167         * hurd/hurd.h (__hurd_invoke_translator, hurd_invoke_translator):
4168         Declare them.
4169         * hurd/Makefile (routines): Add invoke-trans.
4170         * hurd/invoke-trans.c (__hurd_invoke_translator): New file.
4171         * hurd/hurdsyms.c (hurd_invoke_translator): New alias.
4173         * hurd/hurdpath.c (__hurd_path_lookup_retry): New function.
4174         * hurd/hurdsyms.c (hurd_path_lookup_retry: New alias.
4175         * hurd/hurd.h (__hurd_path_lookup_retry, hurd_path_lookup_retry):
4176         Declare them.
4178         * hurd/hurd/fd.h (_hurd_fd_error_signal): Return SIGLOST for
4179         MIG_SERVER_DIED.
4181         * time/strftime.c: Make %j value 1-origin instead of 0-origin.
4183 Sat Jul  9 02:31:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4185         * gnu-stabs.h (__SYMBOL_PREFIX): New macro, based on NO_UNDERSCORES.
4186         Use it in all macros instead of explicit leading underscores.
4187         Removed all [! __STDC__] definitions.
4189         * sysdeps/mach/hurd/mips/trampoline.c: New file.
4190         * sysdeps/mach/hurd/mips/sigcontext.h: New file.
4191         * sysdeps/mach/hurd/mips/longjmp-ts.c: New file.
4192         * sysdeps/mach/hurd/mips/msging-p.c: New file.
4193         * sysdeps/mach/hurd/mips/longjmp-ctx.c: New file.
4194         * sysdeps/mach/hurd/mips/init-fault.c: New file.
4195         * hurd/mach/hurd/mips/__sigret.c: New file.
4196         * sysdeps/mach/hurd/mips/exc2signal.c: New file.
4197         * sysdeps/mach/mips/thread_state.h: New file.
4198         * sysdeps/mach/mips/machine-sp.h: New file.
4199         * sysdeps/mach/mips/machine-lock.h: New file.
4200         * sysdeps/mach/mips/sysdep.h: New file.
4202         * mach/Makefile (mach-syscalls.mk): Snarf 3rd arg from kernel_trap.
4203         ($(mach-syscalls:%=__%.S): Emit kernel_trap instead of SYSCALL_TRAP.
4204         * mach/syscalls.awk: Print nargs-$1 = $3 for each line.
4205         * sysdeps/mach/sysdep.h: Include <mach/machine/syscall_sw.h>.
4206         * sysdeps/mach/i386/sysdep.h (ENTRY, SYSCALL_TRAP): Macros removed.
4208         * sysdeps/mach/i386/machine-lock.h: Use __volatile in place of
4209         volatile to work with -traditional.
4211 Fri Jul  8 21:06:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4213         * hurd/hurdsig.c (_hurd_internal_post_signal): For stop signals,
4214         clear pending SIGCONT no matter what action we choose.
4215         Add new value `cont' to ACT enum; use it for default SIGCONT action.
4216         (_hurd_internal_post_signal: sigwakeup): New local inline.
4218 Fri Jul  8 20:26:49 1994  Brendan Kehoe  (brendan@zen.org)
4220         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile (sysdep-CFLAGS): Set
4221         this to include the -mhard-quad-float option.
4223         * sysdeps/unix/sysv/sysv4/solaris2/sparc/sys-sig.S: New file.
4224         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Makefile: New file.
4225         * sysdeps/unix/sysv/sysv4/solaris2/sparc/Dist: New file.
4227 Fri Jul  8 13:54:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4229         * hurd/hurdpath.c (__hurd_path_lookup): Don't treat leading /
4230         specially for FS_RETRY_NORMAL.  Handle FS_RETRY_MAGICAL; leading /
4231         here means use crdir.  In that case, deallocate *RESULT if nonnull.
4233         * sysdeps/unix/sysv/sysv4/i386/sysdep.h: Don't define _ERRNO_H if
4234         already defined.
4236         * posix/gnu/types.h (__ino_t): Make this unsigned int instead of
4237         unsigned long int (matters for Alpha).
4239         * Makeconfig (+gccopt): Variable removed.
4240         (+cflags): Don't use it.
4241         (CPPFLAGS): Append $(sysdep-CPPFLAGS).
4242         (CFLAGS): Append $(sysdep-CFLAGS).
4244         * sysdeps/mach/hurd/__ioctl.c: In MSGID calculation, skip blocks
4245         of 100 for request commands >= 100, to allow for the reply msgids.
4247 Thu Jul  7 19:07:00 1994  Brendan Kehoe  (brendan@zen.org)
4249         * sysdeps/unix/bsd/osf1/dirstream.h (DIR): Make __allocation
4250         member be int, not size_t (which is a long).
4252 Thu Jul  7 15:21:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4254         * hurd/__fopenport.c (readio, writeio, seekio, closeio): New
4255         functions.
4256         (funcsio): New const variable.
4257         (__fopenport): Make the new stream use that for its io functions, and
4258         the default room functions, and set its seen flag.
4260 Tue Jul  5 11:32:38 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4262         * hurd/hurd/signal.h (struct hurd_sigstate): Removed `intr_restart'.
4263         (HURD_EINTR_RPC): Uncommented.  Declare label
4264         `__do_call' so it has block instead of function scope.  Don't use
4265         SS->intr_restart; instead SS->intr_port being reset to
4266         MACH_PORT_NULL tells us to restart the call.
4268         * sysdeps/mach/hurd/__ioctl.c: Enable use of HURD_EINTR_RPC.
4269         Do ctty magic and check for EBACKGROUND to generate SIGTTOU.
4271         * mach/devstream.c (dealloc_ref): New function.
4272         (mach_open_devstream): Add a user reference to DEV, and set
4273         STREAM's close fn to dealloc_ref, which will release the reference.
4275         * hurd/fd-read.c (_hurd_fd_read): Enabled and rewrote SIGTTIN code.
4276         * hurd/fd-write.c (_hurd_fd_write): Enabled and rewrote SIGTTOU code.
4278         * hurd/hurdsyms.c: Add an alias hurd_sig_post -> _hurd_sig_post.
4279         * hurd/hurdkill.c (_hurd_sig_post): Renamed back from hurd_sig_post.
4280         * hurd/hurd.h: Declare _hurd_sig_post.
4282         * hurd/hurdsig.c (_S_sig_post): Add SIGTTIN and SIGTTOU cases,
4283         handled like SIGINT et al.
4285         * mach/devstream.c: Turn back on NL->CRNL translation.
4287         * stdio/xbug.c (main): Return instead of running off the end.
4289 Mon Jul  4 16:57:13 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4291         * Version 1.08.3.
4293 Sat Jul  2 00:15:37 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4295         * sysdeps/mach/hurd/__ioctl.c: Account for three type fields in
4296         message buffer size.
4298         * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
4299         Catch faults accessing user stack and return NULL.
4300         * hurd/hurdsig.c (_hurd_internal_post_signal): When it does, die
4301         with SIGILL and dump core.
4303         * hurd/hurdsig.c (_hurd_internal_post_signal): Use
4304         _hurd_msgport_thread instead of __mach_thread_self () to avoid the
4305         system call.  (Signals will now lose if _hurd_msgport_thread gets
4306         clobbered.)
4307         (abort_rpcs): Always do thread_abort and thread_get_state.
4309         * misc/getpass.c: Fix typo resulting in newline not being removed.
4311         * termios/sys/ttydefaults.h [TTYDEFCHARS] (ttydefchars): Cast
4312         _POSIX_VDISABLE to cc_t to avoid gcc warning.
4314 Fri Jul  1 14:07:40 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4316         * hurd/Makefile (user-interfaces): Add hurd/ifsock.
4318         * socket/sys/socket.h (AF_LOCAL): New macro.
4320         * sysdeps/mach/hurd/__kill.c: Fix SIGKILL loop condition.
4322 Fri Jul  1 13:36:27 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4324         * hurd/hurdkill.c (hurd_sig_post): New var PIDSBUF; initialize
4325         PIDS and NPIDS correctly; only free PIDS if the MiG stub
4326         changed it.
4328 Thu Jun 30 18:47:48 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4330         * hurd/hurdsock.c (_hurd_socket_server): Zero up to and *including*
4331         new[DOMAIN].
4333 Thu Jun 30 08:12:28 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4335         * hurd/hurdsig.c (abort_all_rpcs): Just iterate over _hurd_sigstates.
4337         * hurd/dtable.c (fork_child_dtable): Skip empty descriptor slots.
4339         * sysdeps/mach/hurd/__ioctl.c: Fix MSG.data size calculation.
4341 Wed Jun 29 19:06:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4343         * sysdeps/mach/hurd/bind.c: For AF_LOCAL, create a new node in the
4344         filesystem, put the ifsock translator on it, and fetch the
4345         address port.
4346         * sysdeps/mach/hurd/connect.c: For AF_LOCAL, look up the socket
4347         file and fetch the address port using the ifsock protocol.
4349 Tue Jun 28 16:03:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4351         * hurd/Makefile (routines): Add ports-get, ports-set, and hurdmsg.
4352         (aux): Remove msgstub.
4353         * hurd/hurdports.c (get): Just call _hurd_ports_get.
4354         (set): Just call _hurd_ports_set.
4355         (getcttyid, setcttyid): New functions.
4356         * hurd/ports-get.c (_hurd_ports_get): New file, new function.
4357         * hurd/ports-set.c (_hurd_ports_set): New file, new function.
4358         * hurd/hurd.h: Declare _hurd_ports_get and _hurd_ports_set.
4359         Declare getcttyid and setcttyid.
4360         * hurd/__setauth.c (__setauth): Just call _hurd_setauth.
4361         (_hurd_setauth): New function, code moved from __setauth.
4362         * hurd/hurdinit.c (_hurd_setproc): New function.
4363         * hurd/hurdioctl.c (_hurd_setcttyid): New function.
4365         * locale/C-ctype_ct.c (__ctype_tolower_C, __ctype_toupper_C): Use
4366         integer constants instead of character constants for octal values
4367         so they will not be sign extended.
4369         * sysdeps/mach/hurd/__setitmr.c (fork_itimer): New function, on
4370         _hurd_fork_child_hook.
4372         * sysdeps/stub/sysd-stdio.c (__stdio_reopen): Fix typo in arg type.
4373         * sysdeps/stub/__ioctl.c: Fix type of REQUEST arg.
4374         * sysdeps/stub/syscall.c: Include ansidecl.h.
4375         * sysdeps/stub/_exit.c: Add __NORETURN to defn.
4377         * sysdeps/unix/sysv/sysv4/sigset.h (_EXTERN_INLINE): Define to
4378         `extern __inline', not empty.
4380         * sysdeps/mach/hurd/ttyname.c: Don't bother searching /dev.
4382 Sat Jun 25 15:41:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4384         * sysdeps/mach/hurd/__fork.c: Moved proc_task2pid call to just
4385         before proc_child.  It is a waste to do it earlier.
4387 Sat Jun 25 13:17:39 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4389         * sysdeps/mach/hurd/__fork.c: Move proc_task2pid call to after
4390         _hurd_ports are unlocked.  Call proc_child nearly last thing.
4391         Ignore errors from thread_resume.
4393 Fri Jun 24 20:21:11 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4395         * sysdeps/posix/getcwd.c: Remove empty `#define'.
4397 Fri Jun 24 17:57:36 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4399         * sysdeps/mach/hurd/__fork.c: Call proc_task2pid immediately after
4400         task_create.  Add comment explaining why thread_resume must be the
4401         last thing we do to the child.
4403 Fri Jun 24 01:41:41 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4405         * hurd/hurdinit.c (_hurd_proc_init): Call __proc_set_arg_locations
4406         in place of __proc_setprocargs (it was renamed).
4408         * hurd/hurd.h: Rename _hurd_sig_post to hurd_sig_post.
4409         * hurd/hurdkill.c: Likewise.
4411         * hurd/port2fd.c (_hurd_port2fd): Call __term_open_ctty instead of
4412         __term_become_ctty, and don't pass the message port.
4413         * hurd/hurdioctl.c (rectty_dtable): Likewise.
4414         * hurd/dtable.c (fork_child_dtable, ctty_new_pgrp): Likewise.
4416         * sysdeps/mach/hurd/__fork.c: Use __proc_{get,set}_arg_locations
4417         to propagate argv and envp locations to the child.
4419         * stdio/freopen.c (freopen): If STREAM->__seen is clear, pass
4420         __stdio_close to __stdio_reopen.
4422         * misc/Makefile (install-lib): Add libg.a.
4423         ($(objpfx)libg.a): New rule; use make-dummy-lib.
4424         (lib): Depend on $(objpfx)libg.a
4426 Thu Jun 23 01:14:36 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4428         * termios/termios.h (CCEQ): New macro.
4430         * sysdeps/unix/sysv/irix4/__getgrps.c: Add missing __ to fn name.
4432         Don't compile in absolute file names for localtime and posixrules
4433         files if they were specified relative to $(zonedir).
4434         * time/Makefile (installed-localtime-file,
4435         installed-posixrules-file): Set these instead of
4436         {localtime,posixrules}-file to the absolute file names.
4437         ($(localtime-file), $(posixrules-file)): Change targets to
4438         $(installed-localtime-file) and $(installed-posixrules-file).
4440 Wed Jun 22 15:52:26 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4442         * hurd/Makefile (sig): Add hurdkill.
4444 Sat Jun 18 12:57:54 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4446         * stdio/_itoa.h (_itoa): Change type of VALUE to unsigned long long.
4447         * stdio/_itoa.c (_itoa): Likewise.
4449 Thu Jun 16 01:10:41 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4451         * sysdeps/mach/hurd/dirstream.h (DIR): Replace `__filepos' member
4452         with `__entry_ptr' and `__entry_data'.  Remove `__block_size' member.
4453         Replace `__offset' member with `__ptr', a char *; no need to include
4454         <gnu/types.h>.
4455         * sysdeps/mach/hurd/readdir.c: Use those, new dir_readdir protocol.
4456         * sysdeps/mach/hurd/opendir.c: Initialize new members.
4457         Don't do io_stat to set __blocksize.
4458         * sysdeps/mach/hurd/telldir.c: Rewritten; return DIRP->__entry_ptr.
4459         * sysdeps/mach/hurd/seekdir.c: Rewritten; just set DIRP->__entry_ptr
4460         from arg, and zero DIRP->__size so a new block will be read.
4462         * sysdeps/mach/hurd/getcwd.c: Use new dir_readdir protocol.
4464         * hurd/msgstub.c: Add stubs for dir_changed, file_changed.
4466         * hurd/hurdsock.c (_hurd_socket_server): Removed unused label.
4468         * sysdeps/mach/hurd/__getdents.c: Use new dir_readdir protocol.
4470         * sysdeps/mach/hurd/__access.c: Open the file with 0 flags and
4471         then use file_check_access to discover what we are allowed.
4473 Tue Jun 14 14:10:03 1994  Brendan Kehoe  (brendan@zen.org)
4475         * sysdeps/mips/setjmp.S: Refer to `$fp', not `fp'.
4477 Tue Jun 14 00:50:54 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4479         * sysdeps/mach/hurd/__pipe.c: Set FDS[1], not FDS[2].
4481 Mon Jun 13 06:48:48 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4483         * sysdeps/unix/bsd/sun/sparc/sigtramp.c (trampoline): Use a
4484         comment instead of a pointless insn to reference %0 in final asm.
4486         * hurd/hurdsock.c (_hurd_socket_server): If realloc fails, don't
4487         fail; just don't cache the port.
4488         Look up the server node only if it is not in the cache.
4489         Translate errno only if path_lookup fails.
4490         (init): New function, on _hurd_preinit_hook.
4492         * sysdeps/mach/hurd/__symlink.c: Complement _hurd_umask before ANDing.
4494 Sat Jun 11 12:52:28 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4496         * sysdeps/mach/hurd/__fork.c: Can't insert dead name rights into
4497         child.
4499 Sat Jun 11 05:19:47 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4501         * sysdeps/mach/hurd/i386/longjmp-ts.c: Set TS->uesp instead of
4502         TS->esp.  Set TS->eip.
4504         * gnu-stabs.h (bss_set_element): New macro.
4505         * hurd/dtable.c: Use bss_set_element instead of data_set_element
4506         to put _hurd_dtable_lock in the _hurd_fork_locks set.
4508 Fri Jun 10 02:04:51 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4510         * sysdeps/mach/hurd/__fork.c: Don't apply MACH_PORT_TYPE to result
4511         from __mach_port_names.  Unlock SS->lock before return.
4512         Check for KERN_NAME_EXISTS from mach_port_allocate_name when
4513         creating a receive right and possibly ignore it.
4515         * sysdeps/unix/sysv/sco3.2.4/Dist: Add sco_getgrp.S.
4517         * crypt/speeds.c: Include signal.h and stdio.h first thing.
4518         [! SIGVTALRM]: Define NO_ITIMER.
4520         * sysdeps/unix/sysv/isc3/direct.h: New file.
4522         * hurd/hurdinline.c: Include lock-intern.h before #define
4523         _EXTERN_INLINE.
4525         * sysdeps/mach/hurd/__fork.c (_hurd_fork_locks): Don't be const.
4526         (__fork): Set SS from _hurd_self_sigstate so it is never null.
4527         New local flag PORTS_LOCKED records when we have spin_locked all
4528         the _hurd_ports cells; unlock them if necessary on error.
4530         * hurd/hurdsig.c (_hurd_siglock): Don't initialize it.
4531         (_hurdsig_init): Initialize _hurd_siglock at runtime.
4533 Wed Jun  8 12:22:27 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4535         * hurd/hurdid.c (_hurd_check_ids): Zero P->nuids and P->ngids after
4536         deallocating P->uids and P->ngids.
4538         * hurd/hurdioctl.c (_hurd_ioctl_handler_lists): Make defn initialized.
4540         * sysdeps/mach/hurd/__ioctl.c: Only try to unpack if IOC_OUT is set.
4542         * hurd/Makefile (routines): Replace $(inlines) with hurdinline.
4543         (inlines): Variable and rule removed.
4544         (generate-inlines): Variable removed.
4545         * hurd/hurdinline.c: New file.
4547 Tue Jun  7 01:58:20 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4549         * Makerules: Add -f to all mv commands missing it.
4551         * hurd/Makefile (generate-inline): New canned sequence.
4552         (inline-%.c): Use it.
4554         * time/asia, time/europe, time/northamerica: New versions from ADO.
4556 Mon Jun  6 21:36:04 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4558         * hurd/hurdid.c (init_id): New function.
4560         * Makerules (+make-deps): Put first s cmd before $(sed-remove-objpfx).
4561         (sed-remove-objpfx): Replace occurrences at beginning of line too.
4563 Sun Jun  5 14:34:12 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4565         * Version 1.08.1.
4567         * sysdeps/mach/hurd/ioctls.h (_IOR, _IOW): Swap IOC_IN and IOC_OUT.
4569         * sysdeps/mach/hurd/__ioctl.c: Only pack input for ioctls that
4570         take input.  Compute expected reply size for ioctls that take
4571         output and check it properly.
4573 Sat Jun  4 00:35:42 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4575         * sysdeps/mach/hurd/ioctls.h (union __ioctl): Type removed.
4576         (enum __ioctl_datum): Name this enum.
4577         (_IOC_INOUT, _IOC_GROUP, _IOC_COMMAND, _IOC_TYPE): New macros.
4578         (_IOT_TYPE[012], _IOT_COUNT[012]): New macros.
4579         * sysdeps/mach/hurd/__ioctl.c: Use those macros instead of the union.
4581         * sysdeps/mach/hurd/__fork.c: Major rewrite.  Copy all ports
4582         present in the task, not just library-maintained ones.  Handle
4583         sigstate and signal thread setup explicitly here.
4584         * hurd/hurdsig.c (hurdsig_fork, hurdsig_fork_child): Functions
4585         removed.
4587         * hurd/hurdpid.c (init_pids): Don't put this on _hurd_fork_child_hook.
4589         * sysdeps/mach/hurd/__isatty.c: New file.
4591         * hurd/hurdsock.c (_hurd_socket_server): Pass NP to __path_lookup,
4592         not NAME (most of which is uninitialized).
4594         * hurd/hurdsig.c (_hurdsig_init): Don't check for _hurd_msgport
4595         being non-null; always initialize it.
4597 Fri Jun  3 21:57:14 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4599         * hurd/hurdrlimit.c (init_rlimit): Restore __mutex_init call.
4600         (_hurd_rlimit_lock): Set initializer to random value; run-time
4601         initialization is always required.
4603         * inet/rcmd.c (rcmd): Compute max fd + 1 for select instead of
4604         hardcoding 32.
4606 Wed Jun  1 10:52:41 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4608         * hurd/hurdrlimit.c (_hurd_rlimits, _hurd_rlimit_lock): Provide
4609         initializers so that the file is included in the link properly.
4610         (init_rlimit): Omit call to __mutex_init.
4612 Tue May 31 18:15:33 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
4614         * hurd/hurdmalloc.c (more_memory): Do spin_lock_init on H->lock.
4615         (malloc_init): New function; put it on _hurd_preinit_hook.
4617         * sysdeps/mach/hurd/defs.c (init_stdio): If stream already
4618         allocated, don't allocate a new one.  Don't crash if _hurd_alloc_fd
4619         returns null if __newstream does.
4621         * sysdeps/mach/hurd/__brk.c (init_brk): If _hurd_brk is nonzero,
4622         leave it as it is.  Set PAGEND from _hurd_brk instead of &_end.
4624 Mon May 30 18:37:47 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4626         * hurd/hurdrlimit.c (init_rlimit): Put this on _hurd_preinit_hook
4627         instead of _hurd_subinit.
4629         * sysdeps/mach/hurd/mig-reply.c (mig_fork_child): Function removed.
4630         * hurd/dtable.c (fork_parent_dtable): Function removed.
4632         * sysdeps/generic/resourcebits.h: Rename RLIM_NLIMITS to
4633         RLIMIT_NLIMITS, add alias for old name.
4635         * sysdeps/mach/hurd/Makefile (hurd-objpfx): New variable.
4636         (before-compile): Use that instead of $(common-objpfx).
4638         * sysdeps/mach/Makefile [! objpfx] (mach-objpfx): Add trailing slash.
4640 Fri May 27 01:34:56 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4642         * hurd/hurdsig.c (_hurdsig_init): Always initialize _hurd_sigthread.
4644         * hurd/dtable.c: Use data_set_element instead of text_set_element
4645         for _hurd_fork_locks.
4646         * hurd/hurdsig.c: Likewise.
4648         * hurd/hurd.h (_hurd_set_data_limit): Declaration removed.
4650         * hurd/dtable.c (_hurd_dtable_rlimit): Variable removed.
4651         (init_dtable): Don't set it.
4653         * hurd/Makefile (headers): Add hurd/resource.h.
4654         (routines): Add hurdrlimit.
4655         * hurd/hurd/resource.h: New file.
4656         * hurd/hurdrlimit.c: New file.
4657         * sysdeps/mach/hurd/getrlimit.c: Rewritten to just fetch
4658         _hurd_rlimits.
4659         * sysdeps/mach/hurd/setrlimit.c: Rewritten to just set _hurd_rlimits.
4660         * sysdeps/mach/hurd/__brk.c (_hurd_data_limit): Variable removed.
4661         (_hurd_set_brk): Use _hurd_rlimits[RLIMIT_DATA].
4662         (_hurd_set_data_limit): Function removed.
4663         * hurd/alloc-fd.c (_hurd_dtable_rlimit): Variable removed.
4664         (_hurd_alloc_fd): Use _hurd_rlimits[RLIMIT_OFILE] instead.
4666         * sysdeps/generic/resourcebits.h: Add RLIMIT_NOFILE as an alias
4667         for RLIMIT_OFILE.
4669         * sysdeps/mach/hurd/mig-reply.c (__mig_init): Argument is stack
4670         on which to set the per-thread reply port variable.
4672         * sysdeps/mach/hurd/__brk.c (init_brk): Set _hurd_data_end to
4673         DATA_SIZE bytes past the beginning of data space, rather than to
4674         DATA_SIZE absolutely.  If vm_map fails, set it to PAGEND.
4676         * sysdeps/mach/hurd/start.c (_start): Run _hurd_preinit_hook right
4677         after __mach_init.
4679         * stdio/freopen.c (freopen): Rewritten using __stdio_reopen to
4680         preserve the old cookie value when possible.
4681         * sysdeps/posix/sysd-stdio.c (__stdio_reopen): New function.
4682         * sysdeps/stub/sysd-stdio.c (__stdio_reopen): New function.
4683         * sysdeps/mach/hurd/sysd-stdio.c (__stdio_reopen): New function.
4685         * stdio/freopen.c (freopen): Close the stream if MODE is invalid.
4687         * hurd/hurdsig.c (_hurd_core_limit): Define variable.
4689         * socket/sys/socket.h (PF_LOCAL): Define in preference to PF_FILE.
4691 Thu May 26 12:09:51 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4693         * hurd/alloc-fd.c (_hurd_alloc_fd): Don't return EINVAL when
4694         FIRST_FD is greater than _hurd_dtablesize and less than
4695         _hurd_dtable_rlimit.  If we want to grow _hurd_dtable, but
4696         _hurd_dtablesize is as big as _hurd_dtable_rlimit, then return
4697         EMFILE.  When growing _hurd_dtable, actually do something if
4698         _hurd_dtablesize is zero.
4699         
4700         * hurd/hurdmalloc.c (malloc_fork_prepare, malloc_fork_parent,
4701         malloc_fork_child): Declare as static so they don't conflict with
4702         the user's version of this file.
4704 Wed May 25 20:55:16 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4706         * sysdeps/mach/hurd/__brk.c: Include <cthreads.h> instead of
4707         <mutex.h>.
4709         * hurd/hurdmalloc.c, hurd/hurdmalloc.h: New files (temporary hack).
4710         * hurd/Makefile (routines): Append hurdmalloc.
4711         (distribute): Append hurdmalloc.h.
4712         * hurd/alloc-fd.c: Include "hurdmalloc.h" (temporary hack).
4713         * hurd/dtable.c: Likewise.
4714         * hurd/hurdinit.c: Likewise.
4715         * hurd/hurdsig.c: Likewise.
4716         * hurd/hurdsock.c: Likewise.
4717         * hurd/new-fd.c: Likewise.
4718         * sysdeps/mach/hurd/start.c: Likewise.
4720         * sysdeps/mach/hurd/start.c (start1): Use malloc and a for loop
4721         instead of calloc.
4722         * hurd/hurdsig.c (_hurd_thread_sigstate): Use malloc and memset
4723         instead of calloc.
4725         * sysdeps/mach/hurd/__brk.c (init_brk): Reference self to avoid
4726         compiler warning.  Add init_brk to _hurd_preinit_hook instead of
4727         __libc_subinit.
4729         * sysdeps/mach/hurd/start.c (_hurd_preinit_hook): New variable.
4730         (start1): Run _hurd_preinit_hook before threadvar setup.
4732 Tue May 24 17:42:34 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4734         * hurd/dtable.c (init_dtable): Initialize _hurd_dtablesize to
4735         _hurd_init_dtablesize.  Initialize _hurd_dtable_rlimit as
4736         _hurd_dtablesize used to be set, but don't let it be zero.
4737         (_hurd_dtable_rlimit): New variable.
4739 Tue May 24 12:57:19 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4741         * sysdeps/mach/sleep.c (sleep): Timeout arg to mach_msg is
4742         in milliseconds, not microseconds; compute it accordingly.
4744         * sysdeps/mach/hurd/__select.c (__select): Deleted variables
4745         DTABLE and DTABLE_ULINK.  Use new vars _hurd_dtablesize and
4746         _hurd_dtable instead of old _hurd_dtable structure.  Use new
4747         locking protocol on _hurd_dtable.
4749 Tue May 24 01:55:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4751         * sysdeps/mach/hurd/__setitmr.c: Don't include mutex.h.
4753         * sysdeps/mach/hurd/defs.c (init_stdio): Reference self.
4755         * sysdeps/unix/sysv/sysv4/i386/sysdep.h: Include
4756         sysdeps/unix/sysv/i386/sysdep.h, not sysdeps/unix/i386/sysdep.h
4758 Mon May 23 19:05:44 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4760         * sysdeps/mach/hurd/Makefile (mib_hacks, defines): Variables removed.
4762         * mach/devstream.c (mach_open_devstream): Set STREAM's seek and
4763         fileno io functions to null.
4765         * hurd/hurdexec.c (_hurd_exec): Fixed adding of dtable ports to
4766         PLEASE_DEALLOC array.
4768         * sysdeps/mach/hurd/defs.c (init_stdio): Unlock the descriptors
4769         after fetching them.  If a standard descriptor is not allocated,
4770         allocate the structure and store its pointer in the stream anyway.
4772         * stdio/gets.c: Only return null on P==S if feof (STREAM).
4774         * stdio/vfprintf.c: Make %Z a type modifier, not a format spec.
4776         * sysdeps/mach/hurd/fdopen.c: Return NULL rather than -1 for error.
4778 Mon May 23 14:24:50 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4780         * sysdeps/mach/hurd/__close.c (__close): Use new _hurd_fd_get
4781         protocol.
4782         * sysdeps/mach/hurd/__dup2.c (__dup2): Likewise.  Use
4783         _hurd_dtablesize and _hurd_dtable instead of old _hurd_dtable
4784         structure.
4786         * sysdeps/mach/hurd/sysd-stdio.c (__stdio_seek): Use
4787         HURD_FD_PORT_USE, not HURD_FD_USE.
4788         * sysdeps/mach/hurd/stdio_init.c (__stdio_init_stream): Variable
4789         is D, not FD.
4791         * hurd/alloc-fd.c (_hurd_alloc_fd): Arg FIRST_FD is not actually
4792         const. 
4793         * hurd/hurdsig.c (_hurd_internal_post_signal [case SIGINFO]): If
4794         we are not the process group leader, ignore the signal.
4795         (_S_sig_post [case SIGURG]): Declaration of D was out of place.
4797         * sysdeps/mach/hurd/fdopen.c: Include <hurd/io.h> for 
4798         io_get_openmodes prototype.
4800 Sat May 21 16:03:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4802         * assert/assert.c (__assert_fail): Put program name first in msg.
4804         * hurd/Makefile (dtable): Removed setdtsz.
4806         * hurd/hurdexec.c: Use _hurd_dtable and _hurd_dtablesize instead of
4807         old _hurd_dtable structure.
4808         * hurd/hurdsig.c: Likewise.
4809         * hurd/alloc-fd.c: Likewise.
4810         * hurd/hurdioctl.c (rectty_dtable): Likewise.
4812         * Version 1.08 released.
4814         * mach/mach_error_string.c: Renamed to errstring.c.
4815         * mach/Makefile (routines): Renamed mach_error_string to errstring.
4816         * mach/err_mach_ipc.sub: Renamed to err_mach.sub.
4817         * mach/err_bootstrap.sub: Renamed to err_boot.sub.
4819         * sysdeps/generic/sigset.h (__SIGSETFN): Take new arg CONST; use it
4820         for CONST qualifier on SET arg to generated function.
4821         Changed uses to pass it; sigismember passes __const, others empty.
4823         * sysdeps/mach/hurd/sysd-stdio.c: Rewritten to use `struct hurd_fd *'s
4824         for cookies.
4825         * sysdeps/mach/hurd/fdopen.c: Rewritten accordinly.
4826         * sysdeps/mach/hurd/defs.c (init_stdio): Rewritten accordingly.
4827         Add it to the _hurd_fd_subinit hook instead of the __libc_subinit
4828         hook.
4829         * sysdeps/mach/hurd/stdio_init.c: New file.
4830         * hurd/dtable.c (_hurd_fd_subinit): New hook variable.
4831         (init_dtable): Run the _hurd_fd_subinit hook.
4833         * hurd/hurd/fd.h (struct hurd_dtable): Type removed.
4834         (_hurd_dtable_users, _hurd_dtable_rlimit): Variables removed.
4835         (_hurd_dtable): Make this a struct hurd_fd **.
4836         (_hurd_dtablesize): New variable.
4837         (struct hurd_fd_user): Type removed.
4838         (_hurd_dtable_get, _hurd_dtable_free, _hurd_dtable_fd): Functions
4839         removed.
4840         (_hurd_fd_get): Rewritten.  Take just one arg, and look it up in
4841         _hurd_dtable; return a struct hurd_fd *.
4842         (HURD_FD_USE): Rewritten to use new _hurd_fd_get interface.
4843         * hurd/dtable.c (_hurd_dtable_users, _hurd_dtable_rlimit):
4844         Variables removed.
4845         (_hurd_dtable): Make this a struct hurd_fd **.
4846         (_hurd_dtablesize): New variable.
4847         (init_dtable, fork_parent_dtable, fork_child_dtable,
4848         ctty_new_pgrp, reauth_dtable): Use new simpler _hurd_dtable format.
4849         * sysdeps/mach/hurd/__getdtsz.c: Use _hurd_dtablesize.
4850         * sysdeps/mach/hurd/__fcntl.c: Use new _hurd_fd_get protocol.
4852         * hurd/dtable.c (get_dtable_port): Return the ctty port if set.
4854         * hurd/hurd/fd.h (_hurd_fd_error_signal): New function, broken out
4855         of _hurd_fd_error.
4856         (_hurd_fd_error): Call it.
4858         * hurd/Makefile (dtable): Add fd-close.
4859         * hurd/fd-close.c: New file.
4860         * hurd/hurd/fd.h: Declare _hurd_fd_close.
4862         * sysdeps/mach/hurd/__close.c: Call _hurd_fd_close.
4864         * signal/Makefile (routines): Add sigsetops.
4865         * signal/sigsetops.c: New file.
4867         * sysdeps/unix/sysv/sysv4/sigset.h (_EXTERN_INLINE): New macro.
4868         Use it for all the inline functions.
4870         * signal/signal.h: Move #include <signum.h> inside #ifdef _SIGNAL_H.
4872         * sysdeps/generic/sigset.h: Protect types with #ifndef
4873         _SIGSET_H_types.  Protect rest with #if !defined (_SIGSET_H_fns)
4874         && defined (_SIGNAL_H).
4875         (__SIGSETFN): Add extern declaration of NAME inside function.
4877         * sysdeps/unix/ioctls-tmpl.c: Add missing #endif.
4878         * sysdeps/unix/Makefile (make-ioctls-CFLAGS): Remember -D.
4880 Fri May 20 20:42:33 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4882         * sysdeps/unix/Makefile (sys/termios.h): Variable removed.
4883         (ioctl-includes): New variable.
4884         (make-ioctls-CFLAGS): Compute value generally from $(ioctl-includes).
4885         ($(common-objpfx)ioctls): Depend on $(ioctl-includes), instead of
4886         $(sys/termios.h).
4888         * sysdeps/unix/sysv/sco3.2.4/sco_getgrp.S: New file.
4889         * sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Add
4890         sco_getgrp.
4891         * sysdeps/unix/sysv/sco3.2.4/__getgrps.c: New file.
4893         * sysdeps/generic/sigset.h (__sigismember, __sigaddset, __sigdelset):
4894         Rewritten as extern inline functions; check for bogus signal number.
4896         * configure.in (names): Put $implied before $* in new $sysnames
4897         list remaining to be processed; this ensures unix/common precedes
4898         unix/sysv4 for sysv4.
4900 Thu May 19 18:35:02 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4902         * sysdeps/mach/hurd/defs.c (init_stdio): Make stdin and stdout
4903         line buffered and stderr unbuffered.
4905 Thu May 19 16:14:36 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4907         * sysdeps/mach/hurd/getcwd.c: Remember to call io_stat on cwdir.
4909         * sysdeps/generic/configure.in: Use changequote around if expr
4910         to avoid [] elision.
4912 Thu May 19 13:53:59 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
4914         * hurd/hurdsock.c (_hurd_socket_server): Return EPFNOSUPPORT
4915         rather than EPROTONOSUPPORT because it's the entire protocol
4916         family that isn't present, not just one protocol.
4918         * sysdeps/mach/hurd/__access.c (__access): Don't deallocate
4919         CRDIR or CWDIR; that's taken care of by the _hurd_port_get
4920         and _hurd_port_free system.
4922 Thu May 19 04:14:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4924         * sysdeps/posix/libc_fatal.c: Include <errno.h>.
4926         * sysdeps/unix/sysv/sysv4/__sigact.c: Include <stddef.h> for NULL.
4928         * sysdeps/mach/hurd/__access.c: Fix swapped poly and count args in
4929         __auth_makeauth call.
4931         * sysdeps/mach/hurd/ioctls.h (_IOC, _IOT): Rewritten using bitwise
4932         operations, so the result is always technically a constant (the
4933         old method of using a union constructor expression was not good
4934         enough for initializers).
4936         * hurd/hurdsock.c (_hurd_socket_server): If path_lookup returns
4937         ENOENT, we return EPROTONOSUPPORT.
4939         * hurd/Makefile (dtable): Add hurdioctl.
4940         * hurd/dtable.c (rectty_dtable, tiocsctty, tiocnotty): Functions
4941         moved:
4942         * hurd/hurdioctl.c: New file.
4943         (fioctl, fioclex): New functions.
4944         * sysdeps/mach/hurd/__ioctl.c (_hurd_ioctl_handler_lists): Don't
4945         define it, just declare it.
4947         * sysdeps/mach/hurd/getcwd.c: Use MACH_PORT_RIGHT_SEND, not
4948         MACH_PORT_TYPE_SEND, in mach_port_mod_refs call.
4950         * sysdeps/mach/hurd/__getpgrp.c: Don't lock _hurd_pid_lock.
4952         * sysdeps/unix/common/glue-ctype.c: Don't include <ctype.h>.
4953         Instead, add explicit extern declaration of TABLE in main.
4955 Wed May 18 17:54:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4957         * sysdeps/m68k/Makefile (asm-CPPFLAGS): Append $(m68k-syntax-flag).
4959         * Version 1.07.6.
4961         * sunrpc/Makefile (+gccwarn): Set to -w.
4963         * sysdeps/unix/Makefile (ifeq testing sys/param.h): Use patsubst
4964         instead of dir to remove directory name from .../sys/param.h but
4965         preserve "sys/".
4967         * inet/sys/bitypes.h: Replaced with just #include <sys/types.h>.
4969         * posix/sys/utsname.h (_UTSNAME_NODENAME_LENGTH): If undefined,
4970         define to _UTSNAME_LENGTH.
4971         (struct utsname): Use _UTSNAME_NODENAME_LENGTH for `nodename' member.
4972         * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h (_UTSNAME_NODENAME_LENGTH):
4973         Define it.
4975         * resource/sys/resource.h (enum __rlimit_resource): Removed.
4976         Just include <resourcebits.h> instead.
4977         * resource/Makefile (headers): Add resourcebits.h.
4978         * sysdeps/generic/resourcebits.h: New file.
4979         * sysdeps/unix/bsd/sun/sunos4/resourcebits.h: New file.
4981         * stdio/test-popen.c (main): Use popen to read the file back, too.
4983         * sysdeps/unix/sysv/sysv4/i386/sysdep.h: New file.
4985         * sysdeps/unix/sysv/sysv4/i386/sys-sig.S: Fixed typo: movel->movl.
4987 Tue May 17 12:46:31 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
4989         * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
4990         __mach_task_self, __mach_host_self): New declarations of __ 
4991         versions of syscall traps.
4992         (swtch, __swtch, swtch_pri, __swtch_pri, thread_switch,
4993         __thread_switch, evc_wait, __evc_wait): New prototypes.
4994         * mach/Makefile (headers): Added mach/mach_traps.h so that the
4995         GNU version is installed instead of the Mach version.
4996         
4997 Mon May 16 15:34:12 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
4999         * sysdeps/stub/sys/param.h: New file.
5001         * mach/lock-intern.h (__mutex_lock, __mutex_unlock): Real definitions.
5002         (__mutex_lock_solid, __mutex_unlock_solid, __mutex_init): Declare
5003         them.
5004         * mach/mutex-solid.c: New file.
5005         * mach/Makefile (lock): Add mutex-solid.
5006         (lock-headers): Remove mutex.h.
5007         * mach/mutex.h: File removed.
5008         * hurd/hurd/id.h: Include <cthreads.h> instead of <mutex.h>.
5009         * hurd/hurd/signal.h: Likewise.
5010         * hurd/hurdsig.c: Likewise.
5011         * hurd/hurdsock.c: Likewise.
5012         * hurd/dtable.c: Likewise.
5013         * hurd/__setauth.c: Likewise.
5014         * sysdeps/mach/hurd/Makefile (includes): Also append
5015         -I$(hurd-srcdir)/libthreads.
5017         * sysdeps/posix/system.c [WAITPID_CANNOT_BLOCK_SIGCHLD]: Don't
5018         block SIGCHLD.
5019         * sysdeps/unix/sysv/sco3.2.4/system.c
5020         (WAITPID_CANNOT_BLOCK_SIGCHLD): Define this macro.
5022         * sysdeps/posix/sigintr.c (siginterrupt) [! SA_RESTART]: Always
5023         fail with ENOSYS.
5025         * sysdeps/posix/__sigvec.c [! SA_ONSTACK]: Fail with ENOSYS if
5026         SV_ONSTACK is set in VEC->sv_flags.
5027         [SA_RESTART]: Protect SV_INTERRUPT check with this.
5029         * sysdeps/mach/sysdep.h (FATAL_PREPARE): New macro.
5030         * sysdeps/posix/libc_fatal.c: Include <sysdep.h>.
5031         [FATAL_PREPARE]: Invoke the macro.
5032         * assert/assert.c: Likewise.
5034         * sysdeps/generic/memmem.c: Start BEGIN at HAYSTACK, not partway
5035         into it.  Loop until BEGIN passes the location in HAYSTACK with
5036         NEEDLE_LEN bytes remaining to the end.
5037         Compare first byte manually before calling memcmp.
5039         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Fix typo.
5041         * posix/sys/types.h [__USE_BSD] (int32_t, int16_t, int8_t,
5042         u_int32_t, u_int16_t, u_int8_t): New typedefs.
5044         * assert/assert.c (__assert_program_name): New variable.
5045         (__assert_fail): Print that in the msg too.
5046         [HAVE_GNU_LD] (set_progname): New function to set it up at startup.
5048 Thu May 12 01:10:52 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5050         * hurd/__setauth.c: Do critical section locking.
5051         * hurd/hurdexec.c: Likewise.
5052         * hurd/hurdauth.c (_S_del_auth): Likewise.
5053         * hurd/getuids.c: Likewise.
5054         * hurd/dtable.c: Likewise.
5055         * hurd/alloc-fd.c: Likewise.
5056         * hurd/hurd/port.h: Likewise.
5057         * hurd/hurd/fd.h: Likewise.
5058         * hurd/setuids.c: Likewise.
5059         * hurd/intern-fd.c: Likewise.
5060         * hurd/hurdsock.c (_hurd_socket_server): Likewise.
5061         * sysdeps/mach/hurd/setrlimit.c: Likewise.
5062         * sysdeps/mach/hurd/setgroups.c: Likewise.
5063         * sysdeps/mach/hurd/seteuid.c: Likewise.
5064         * sysdeps/mach/hurd/setegid.c: Likewise.
5065         * sysdeps/mach/hurd/getrlimit.c: Likewise.
5066         * sysdeps/mach/hurd/__setuid.c: Likewise.
5067         * sysdeps/mach/hurd/__setreuid.c: Likewise.
5068         * sysdeps/mach/hurd/__setregid.c: Likewise.
5069         * sysdeps/mach/hurd/__setitmr.c: Likewise.
5070         * sysdeps/mach/hurd/__setgid.c: Likewise.
5071         * sysdeps/mach/hurd/__select.c: Likewise.
5072         * sysdeps/mach/hurd/__sbrk.c: Likewise.
5073         * sysdeps/mach/hurd/__getuid.c: Likewise.
5074         * sysdeps/mach/hurd/__getpgrp.c: Likewise.
5075         * sysdeps/mach/hurd/__getitmr.c: Likewise.
5076         * sysdeps/mach/hurd/__getgrps.c: Likewise.
5077         * sysdeps/mach/hurd/__getgid.c: Likewise.
5078         * sysdeps/mach/hurd/__geteuid.c: Likewise.
5079         * sysdeps/mach/hurd/__getegid.c: Likewise.
5080         * sysdeps/mach/hurd/__getdtsz.c: Likewise.
5081         * sysdeps/mach/hurd/__fork.c: Likewise.
5082         * sysdeps/mach/hurd/__fcntl.c: Likewise.
5083         * sysdeps/mach/hurd/__dup2.c: Likewise.
5084         * sysdeps/mach/hurd/__close.c: Likewise.
5085         * sysdeps/mach/hurd/__brk.c: Likewise.
5086         * sysdeps/mach/hurd/__access.c: Likewise.
5088         * sysdeps/mach/hurd/reboot.c (reboot): Use the host priv port to
5089         prove authority.
5091         * sysdeps/mach/hurd/__readlink.c: Don't request O_READ access.
5093         * sysdeps/mach/hurd/__ioctl.c: Don't expect result data unless
5094         return code is zero.  Translate MIG_BAD_ID or EOPNOTSUPP to ENOTTY.
5096         * mach/devstream.c (output): Use device_write instead of
5097         device_write_inband.
5099 Wed May 11 18:49:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5101         * hurd/hurdinit.c (_hurd_init): Finsih loop of _hurd_port_init on
5102         _hurd_ports elts before doing _hurd_proc_init or
5103         __task_set_special_port.
5105         * hurd/hurd/signal.h (struct hurd_sigstate): Add new
5106         `critical_section' member.  Remove #if 0'd out vfork crap.
5107         (_hurd_critical_section_lock, _hurd_critical_section_unlock): New
5108         functions. 
5109         (HURD_CRITICAL_BEGIN, HURD_CRITICAL_END): New macros.
5111         * io/Makefile (headers): Add poll.h and sys/poll.h.
5112         (routines): Add poll.
5113         * sysdeps/unix/bsd/sun/sunos4/poll.S: New file.
5114         * sysdeps/unix/sysv/poll.S: New file.
5115         * sysdeps/unix/bsd/poll.c: New file.
5116         * sysdeps/stub/poll.c: New file.
5117         * io/poll.h, io/sys/poll.h: New files.
5119         * misc/bsd-compat.c (setjmp): New function.
5121         * sysdeps/unix/Makefile (sysdep_headers): Remove sys/param.h.
5122         * misc/Makefile (headers): Add it here instead.
5124         * io/test-utime.c (main): New file.
5125         * io/Makefile (tests): New variable.
5127 Wed May 11 13:44:33 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
5129         * hurd/hurd/threadvar.h (__hurd_errno_location): Remove 
5130         __volatile keyword.  `volatile int errno' is not the same
5131         as `int errno'; user programs often mention the latter.
5132         * errno.h: Remove __volatile keyword; same reason.
5134 Tue May 10 17:21:41 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5136         * time/zdump.c: New code from ADO.
5138         * time/difftime.c (difftime): Use hairy rounding algorithm from
5139         eggert@twinsun.com when sizeof (time_t) >= sizeof (double).
5141         * Makerules (native-CFLAGS): Remove -I$(sysincludedir).  RMS says
5142         people with bogons in /usr/local/include deserve to lose.
5144         * stdio/printf_fp.c (__printf_fp): If IS_NEG gets set, negate
5145         FPNUM before testing it for %g format choice.
5147         * sysdeps/unix/sysv/irix4/fcntlbits.h: New file.
5148         * sysdeps/unix/sysv/irix4/Dist: New file.
5149         * sysdeps/unix/sysv/irix4/readv.c: New file.
5150         * sysdeps/unix/sysv/irix4/writev.c: New file.
5151         * sysdeps/unix/sysv/irix4/__dup2.c: New file.
5153         * sunrpc/xdr_float.c (xdr_float): Change [mc68000 || sparc] to [!
5154         vax].
5156         * sysdeps/mips/setjmp.S: Remove spurious $.
5158         * sysdeps/generic/ftime.c: Include <errno.h>.
5160         * sysdeps/unix/mips/sysdep.S: Add .set noreorder.
5162 Tue May 10 16:27:13 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
5164         * sysdeps/generic/termbits.h (NCCS): Doc fix.
5166 Mon May  9 18:07:44 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
5168         * sysdeps/mach/hurd/uname.c (uname): System uname information
5169         has moved from init to proc.
5171         * sysdeps/mach/usleep.c (usleep): Return correct value.  Destroy
5172         RECV when we're done with it.
5174 Thu May  5 17:03:56 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
5176         * sysdeps/mach/hurd/__lstat.c: Use O_NOLINK instead of O_NOTRANS.
5178 Thu May  5 04:20:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5180         * mach/spin-lock.h (spin_lock_init): Define.
5182         * sysdeps/mach/hurd/sigsuspend.c: New local variable NEWMASK, set
5183         it to *SET if SET is not null, before taking SS->lock; don't
5184         dereference SET while holding the lock.  Restore SS->blocked to
5185         OLDMASK before unlocking and returning.
5187         * hurd/hurdsig.c (hurdsig_fork_child): Return zero.
5189         * sysdeps/mach/hurd/__fork.c (_hurd_fork_parent_hook,
5190         _hurd_fork_prepare_hook)): Define variables (symbol sets).
5191         (__fork): Run _hurd_fork_prepare_hook and _hurd_fork_parent_hook.
5193         * sysdeps/mach/hurd/sigsuspend.c: Don't test SS->pending; instead
5194         wait until SS->suspended is cleared.
5195         * hurd/hurdsig.c (_hurd_internal_post_signal): Clear SS->suspended
5196         before signalling on SS->arrived.
5198         * mach/Makefile (headers): Added mach/default_pager_helper.defs.
5200         * sysdeps/sparc/Dist: Added alloca.S.
5202 Wed May  4 14:02:29 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
5204         * hurd/hurdexec.c (_hurd_exec): Unlock _hurd_dtable_lock when
5205         all through.
5207         * sysdeps/mach/hurd/__setitmr.c: Changed _hurd_itimer_lock
5208         to be a spin_lock; changed mutex_lock and mutex_unlock
5209         accordingly throughout.
5210         * sysdeps/mach/hurd/__getitmr.c: Corresponding changes from
5211         mutex calls to spin lock calls here too.
5213         * sysdeps/mach/hurd/__setitmr.c (setitimer_locked): Fixed syntax 
5214         of declaration of PREEMPT.
5215         (setitimer_locked): Declare variables ERR and ELAPSED.
5216         (setitimer_locked): Fix some references to REMAINING that 
5217         were using it as an itimerval instead of a timeval.
5218         (setitimer_locked): Deleted unused label STILLBORN.
5220 Wed May  4 00:17:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5222         * sysdeps/stub/__getitmr.c: Fix arg name __WHICH to WHICH.
5224         * sysdeps/unix/bsd/alarm.c: Round tv_usec with arithmetic rather
5225         than a test.
5227         * hurd/Makefile (user-interfaces): Add hurd/msg_request.
5229         * sysdeps/stub/__setitmr.c: Fix arg name __WHICH to WHICH.
5231         * Makeconfig (cross-compiling): Define if $(HOST_CC) and $(CC) differ.
5232         * time/Makefile (install-others): Omit defn ifdef cross-compiling.
5234 Tue May  3 23:12:48 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5236         * mach/Makefile (lock-headers): Add spin-lock.h.
5238         * misc/Makefile (routines): Add madvise.
5240         * malloc/Makefile (non-lib.a): Define.
5241         * misc/Makefile (non-lib.a): Define.
5242         * Makerules (install-lib.a): Filter out $(non-lib.a).
5243         (install-lib-non.a): Append $(non-lib.a).
5245         * mach/Makefile (mach-headers): Rename sys/version.h to
5246         mach/version.h.
5248         * hurd/Makefile (headers): Added hurd/threadvar.h.
5250         * Version 1.07.5.
5252         * hurd/port2fd.c (_hurd_port2fd): Use logic copied from
5253         _hurd_port_locked_set to install PORT in D->port, but leave it locked.
5255         * sunrpc/Makefile (generated): Don't add $(objpfx).
5257         * sysdeps/stub/machine-lock.h: New file.
5258         * sysdeps/stub/machine-sp.h: New file.
5260 Tue May  3 22:31:15 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
5262         * sysdeps/mach/usleep.c (usleep): Specify MACH_RCV_MSG so that
5263         mach_msg actually waits.
5265 Tue May  3 19:24:48 1994  Karl Heuer  (kwzh@hal.gnu.ai.mit.edu)
5267         * malloc/malloc.h (enum mcheck_status): Delete trailing
5268         comma in enum list; some compilers don't like it.
5270 Tue May  3 15:18:15 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
5272         * sysdeps/mach/hurd/__symlink.c (__symlink): Pass port type arg to
5273         __file_set_translator.
5275 Mon May  2 17:56:47 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5277         * hurd/Makefile (generated): Add $(inlines) .c files.
5279         * sysdeps/mach/hurd/__mknod.c: Pass port type arg to
5280         __file_set_translator.
5282 Sun May  1 16:03:13 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5284         * mach/mig_syms.c: Add de-__ing aliases for mig_init,
5285         mig_get_reply_port, and mig_dealloc_reply_port.
5287         * sysdeps/mach/hurd/errnos.awk: Handle copying errors from
5288         mach/mig_errors.h and device/device_types.h.  Omit E*_SUCCESS.
5289         Omit MACH_MSG_MASK and other special bit macros.
5291         * sysdeps/mach/hurd/i386/sigcontext.h (struct sigcontext): Added
5292         sc_reply_port member.
5293         * hurd/hurdsig.c (fetch_reply_port): New function.
5294         (_hurd_internal_post_signal): When setting up to run handler, set
5295         SCP->sc_reply_port to the receiving thread's value for
5296         _HURD_THREADVAR_MIG_REPLY.
5297         * sysdeps/mach/hurd/i386/__sigret.c: Destroy the MiG reply port
5298         used by the signal handler, and restore from SCP->sc_reply_port.
5299         * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp): New
5300         function; guts from __hurd_threadvar_location.
5301         (__hurd_threadvar_location): Call that.
5303         * hurd/hurdsig.c (check_pending): New function, broken out of:
5304         (_hurd_internal_post_signal): Call that for pending signal check.
5305         If SIGNO is zero, call check_pending on each thread's sigstate.
5307         * sysdeps/mach/hurd/start.c (start1): Use calloc to get
5308         zero-filled space for __hurd_threadvar_stack_offset when
5309         __hurd_threadvar_stack_mask is zero.
5311 Thu Apr 28 21:29:47 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5313         * Merged gmp-1.99.3+ mpn code from tege for printf_fp.
5314         * stdio/printf_fp.c: Include "longlong.h"; gmp-impl.h no longer does.
5315         
5316         * Makerules (+depfiles): Filter $(extra-objs) to get only .o files.
5318 Wed Apr 27 00:20:41 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5320         * Makerules (depend-$(subdir)): Put output in tmp file and use mv -f.
5321         Always use $(+depfiles), since sources is no longer exported.
5323 Tue Apr 26 20:05:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5325         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Don't include <termios.h> to 
5326         avoid <sys/ioctl.h> conflicts.
5327         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Undefine ECHO, MDMBUF,
5328         TOSTOP, FLUSHO, PENDIN, and NOFLSH after including <termios.h> and
5329         before including <sys/ioctl.h>.
5330         * sysdeps/unix/bsd/bsd4.4/__tcgetatr.c: Likewise.
5332 Tue Apr 26 14:42:43 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
5334         * sysdeps/mach/sleep.c (sleep): Specify MACH_RCV_MSG or else
5335         mach_msg won't do anything but return immediately.
5336         (sleep): Compute return value correctly.
5338 Tue Apr 26 04:49:56 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5340         * sysdeps/i386/setjmp.c: Put global register decls first thing.
5341         * sysdeps/i386/__longjmp.c: Likewise.
5343 Fri Apr 22 18:10:36 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5345         * sysdeps/unix/sysv/irix4/__wait3.S: New file.
5346         * sysdeps/unix/sysv/irix4/time.S: New file.
5347         * sysdeps/unix/sysv/irix4/__waitpid.c: New file.
5349 Thu Apr 21 16:54:11 1994  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
5351         * malloc/malloc.c (initialize, morecore): When allocating the
5352         _heapinfo block itself, account for it in the statistics.
5354 Tue Apr 19 20:17:06 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5356         * sysdeps/unix/sysv/sco3.2.4/pipestream.c: New file.
5358         * malloc/malloc.c (morecore): Only zero the new part of NEWINFO,
5359         not the part we will copy _heapinfo into.
5361         * sysdeps/unix/bsd/signum.h (SIGLOST): Define.
5362         (_NSIG): Increase to 33.
5364 Mon Apr 18 16:56:11 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5366         * configure.in (config.status): Use $configure_args instead of
5367         $ac_configure_args.
5368         (after AC_PREPARE): Call AC_LANG_C.
5370         * time/Makefile (routines): Add sys/timeb.h.
5371         (routines): Add ftime.
5372         * time/sys/timeb.h: New file.
5373         * sysdeps/unix/bsd/ftime.c: New file.
5374         * sysdeps/generic/ftime.c: New file.
5376         * sysdeps/posix/getenv.c (getenv): Return NULL if __environ is null.
5378         * malloc/malloc.h [_MALLOC_INTERNAL] [HAVE_UNISTD_H]: Include
5379         unistd.h.
5381         * malloc/Makefile (gmalloc-routines): Put valloc first.
5383 Wed Apr 13 14:03:02 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
5385         * sysdeps/mach/hurd/__symlink.c (__symlink): Set the target of the
5386         link to FROM, not TO.
5388         * sysdeps/mach/hurd/__readlink.c (__readlink): Copy just the
5389         target into the user's buffer, not the entire translator spec.
5391 Tue Apr 12 00:13:19 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
5393         * hurd/fd-write.c (_hurd_fd_write): Set noctty for now rather
5394         than depending on what happens to be on the stack.
5396         * sysdeps/mach/hurd/readdir.c (readdir): Notice when hitting
5397         end-of-file and return NULL.
5399 Mon Apr 11 17:36:59 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
5401         * sysdeps/mach/hurd/start.c (start1): Bother to set __environ.
5403         * sysdeps/mach/hurd/__ioctl.c (__ioctl): Comment out use of 
5404         HURD_EINTR_RPC until signals work.
5406 Mon Apr 11 14:16:40 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
5408         * sysdeps/mach/hurd/__ioctl.c (__ioctl): Call __mig_get_reply_port
5409         rather than __mig_reply_port (which doesn't exist).
5411         * sysdeps/mach/hurd/__mknod.c: Added temporary declarations
5412         of major and minor.
5414         * (This change occurred on April 4, 1994) mach/setup-thread.c
5415         (__mach_setup_thread): The March 31 change had an error; the stack
5416         needs to be allocated with ANYWHERE cleared.
5418         * (This change occurred on April 8, 1994) hurd/hurdexec.c
5419         (_hurd_exec): The arguments to exec_exec had the length and 
5420         type parameters transposed.  In addition, fetch the correct
5421         procserver port for the new task.
5423         * (This change occurred on April 8, 1994)
5424         sysdeps/mach/hurd/__wait.c (__wait4): Deal properly with a null
5425         USAGE argument.
5427         * (This change occurred on April 8, 1994)
5428         sysdeps/mach/hurd/_exit.c (_exit): Changed commented-out call to
5429         __proc_exit into a correct call to __proc_mark_exit.
5431 Fri Apr  8 14:58:24 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
5433         * string/strsignal.c (strsignal): Store of NUL into unknown_signal
5434         was off by one.
5436 Tue Apr  5 21:26:25 1994  Brendan Kehoe  (brendan@zen.org)
5438         * sysdeps/unix/sysv/sysv4/__sigact.c (__sigaction): Declare member
5439         `oact' in lower case, to match its use in the rest of the function.
5441 Tue Apr  5 03:07:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5443         * Makerules (install-lib.a rule): Run ranlib on the target.
5445         * Makerules (library member rule): Tighten up pattern rule to
5446         match only libc.a, not other libraries.
5448 Mon Apr  4 21:49:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5450         * set-hooks.h: New file.
5451         * Makefile (distribute): Add it.
5452         * set-init.c: Include it and use its macro DEFINE_HOOK_RUNNER.
5454         * Makerules (sysd-Makefile): Put `sysd-Makefile-done=t' in output.
5455         (sysd-rules): Don't include it unless sysd-Makefile-done is defined.
5457 Mon Apr  4 18:33:54 1994  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
5459         * mach/setup-thread.c (__mach_setup_thread): Oops; the vm_allocate
5460         call should have ANYWHERE cleared so that the change of the 31st
5461         has any effect at all.
5463 Thu Mar 31 13:46:13 1994  Michael I Bushnell  (mib@churchy.gnu.ai.mit.edu)
5465         * mach/setup-thread.c (__mach_setup_thread): Create a red zone
5466         beneath the stack; also, work around a bug in cthreads by
5467         forcing the stack into high memory.  FIXME--this routine
5468         depends on the direction of stack growth; that should be fixed.
5470 Mon Mar 28 12:55:51 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
5472         * Rules (make-dummy-lib): Use `$(AR)' instead of literal `ar'.
5474         * configure.in (arg parsing): Don't take --os-release or --os-version.
5475         (switches): Variable removed; don't write it into config.status.
5476         (config.status): Write release and version values directly.
5478         * sysdeps/unix/common/configure.in: Use changequote around if expr
5479         to avoid [] elision.
5481 Sat Mar 26 18:36:27 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
5483         * malloc/mcheck.c [! _MALLOC_INTERNAL]: #include <stdio.h>
5485 Fri Mar 25 02:17:55 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
5487         * malloc/mcheck.c (mprobe): New function.
5488         (abortfunc): Take enum mcheck_status arg.
5489         (checkhdr): Return an enum mcheck_status, and pass it to abortfunc.
5490         (mabort): New function.
5491         (mcheck): Use mabort as default abortfunc.
5492         * malloc/malloc.h (enum mcheck_status): New type.
5493         (mprobe): Declare new function.
5494         (mcheck): ABORTFUNC takes an `enum mcheck_status' arg.
5496         * posix/unistd.h [__USE_GNU] (TEMP_FAILURE_RETRY): New macro.
5498         * stdio/stdio.h [__USE_GNU && !_LIBC] (cookie_io_functions_t):
5499         Define instead of __io_functions (and make that a typedef for
5500         this); omit __ from member names.
5502 Thu Mar 24 14:59:23 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
5504         * sysdeps/unix/sysv/sco3.2.4/sigaction.h: New file.
5506         * sysdeps/unix/sysv/sco3.2.4/__sigact.S: Put address of
5507         __sigreturn in %ecx before doing syscall trap.
5509         * sysdeps/stub/setegid.c: Fix arg type to __gid_t (was int).
5511 Wed Mar 23 17:33:09 1994  Roland McGrath  (roland@mole.gnu.ai.mit.edu)
5513         * Makefile (headers): Remove $(stdarg.h).
5514         * Makeconfig (stdarg.h): Variable removed.
5515         * configure.in: Remove check for __gnuc_va_list in stdarg.h.
5516         It is not safe to replace the compiler's stdarg.h with our own.
5518 Tue Mar 22 12:46:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5520         * Rules (dist): Rule removed.
5521         * Makefile (dist): Likewise.
5522         * Makerules (dist, distinfo): New rules.
5523         (TAGS): Depend on distfile, pass -f distfile to submake.
5525         * math/Makefile: Remove if-ed out old bsdmath copying rules.
5527         * Makerules (sources, headers, sysdep_routines): Don't export these.
5528         * Rules (others, tests): Likewise.
5530         * io/lockf.c: Include fcntl.h and errno.h.
5532 Mon Mar 21 20:27:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5534         * sysdeps/unix/bsd/sony/newsos4/fchdir.S: New file.
5535         * sysdeps/unix/bsd/sony/newsos4/{__wait4.c,__wait3.c,__wait.c,
5536         sys_wait4.S,Makefile,Dist}: New files.
5538         * sysdeps/unix/Makefile (syscall.h): De-SYS_ify `kerncall_basenum'.
5540         * sysdeps/unix/bsd/m68k/sysdep.S [! __motorola__]: Rename label 0
5541         to `store'; a user reports gas 1.38 bombs on numbered labels.
5543         * sysdeps/posix/Makefile (mk-stdiolim): Use $(HOST_CC).
5545         * Rules (distribute, dont_distribute, generated): Don't export them.
5546         (dist): Pass those vars down to sub-make on cmd line.
5547         * Makefile (distribute, generated): Don't export them.
5548         (dist): Pass distribute and generated values to sub-make on cmd line.
5550         * Makerules (install-lib-nosubdir): Insert $(libprefix) appropriately.
5552 Fri Mar 18 01:02:52 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5554         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h (DO_CALL): Use a6 in
5555         place of fp.  A user reports gas 1.38 doesn't grok fp.
5557 Tue Mar  8 18:35:02 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5559         * Makerules (common-clean): Prepend $(objpfx) to $(generated).
5560         * Makefile (parent-clean): Prepend $(common-objpfx) to
5561         $(common-generated).
5562         * Makefile (generated): Don't prepend $(objpfx).
5563         * Rules (generated): Likewise.
5564         * sysdeps/unix/common/Makefile (generated): Likewise.
5565         * sysdeps/unix/sysv/Makefile (generated): Likewise.
5566         * sysdeps/unix/Makefile (common-generated): Don't prepend
5567         $(common-objpfx).
5568         * sysdeps/posix/Makefile (common-generated): Likewise.
5569         * sysdeps/generic/Makefile (common-generated): Likewise.
5570         (generated): Don't prepend $(objpfx).
5572         * sysdeps/generic/Makefile (common-generated): Set this instead of
5573         generated for bytesex.h and det_endian.
5575         * sysdeps/stub/fexecve.c: New file.
5576         * posix/Makefile (routines): Add fexecve.
5577         * posix/unistd.h [__USE_GNU]: Declare fexecve.
5579         * sysdeps/unix/common/configure.in: Protect siglist and ctype
5580         checks with if [ ! "$inhibit_glue" ].
5581         * sysdeps/generic/configure.in: Likewise for psignal check.
5582         * sysdeps/unix/common/Makefile: Protect body with ifndef inhibit-glue.
5584 Mon Mar  7 17:46:46 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5586         * sysdeps/unix/bsd/osf1/alpha/__sigblock.S: New file from brendan.
5588 Fri Mar  4 01:56:26 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5590         * Makerules (native-compile, common-objdir-compile): Use
5591         $(HOST_CC) in place of $(CC).
5593         * malloc/cfree.c: Move #undef cfree inside #ifdef _LIBC.
5595         * misc/sys/ioctl.h (struct ttysize): If TIOCGSIZE != TIOCGWINSZ,
5596         use two int elts instead of four shorts.
5598 Thu Mar  3 17:35:54 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5600         * malloc/realloc.c (realloc): When shrinking a block by splitting
5601         and then freeing one, bump the _chunks_used counter.
5603         * sysdeps/unix/sysv/sysv4/i386/__mknod.S: New file.
5605 Tue Mar  1 11:42:41 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5607         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Get first argument from
5608         stack at 8(%esp), not 4(%esp).
5610         * sysdeps/unix/sysv/isc2.2/rename.S: Get unix/common, not unix/bsd.
5612 Thu Feb 24 14:40:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5614         * io/lockf.c: New file.
5615         * io/Makefile (routines): Add lockf.
5616         * io/fcntl.h [__USE_MISC] (F_ULOCK, F_LOCK, F_TLOCK, F_TEST): New
5617         macros.
5618         [__USE_MISC] (lockf): Declare it.
5619         * posix/unistd.h: Copy those new macros and declaration.
5621         * time/backward, time/etcetera, time/zic.c: New code and data from ADO.
5622         * Makeconfig (posixrules): Default to America/New_York.
5624         * sysdeps/unix/mips/sysdep.S: Store -1 in v0 in the delay slot after
5625         the return, rather than before (leaving the delay slot unfilled and
5626         without a nop!).
5628         * sysdeps/unix/sysv/irix4: New directory; mips-sgi-irix4 port
5629         courtesy Tom Quinn.
5631         * sysdeps/unix/sysv/sysv4/direct.h: Moved to unix/common; it is right
5632         for irix4 as well as sysv4.
5633         * sysdeps/unix/bsd/ultrix4/__wait.S: Moved to unix/mips.
5634         (noerror): Store register v1 in location pointed to by first arg (if
5635         not NULL).
5636         * sysdeps/unix/bsd/ultrix4/__sigret.S: Moved to unix/mips.
5638         * sysdeps/unix/bsd/bsd4.4/{mmap,munmap,mprotect,msync,madvise}.S:
5639         Moved to sysdeps/unix/mman (new directory).
5640         * sysdeps/unix/bsd/bsd4.4/Implies: New file; imply unix/mman.
5641         * sysdeps/unix/bsd/sunos4/Implies: Likewise.
5642         * sysdeps/unix/bsd/ultrix4/Implies: Likewise.
5643         * sysdeps/unix/bsd/osf1/Implies: Likewise.
5644         * sysdeps/unix/bsd/sun/sunos4/munmap.S,
5645         sysdeps/unix/bsd/sun/sunos4/mprotect.S,
5646         sysdeps/unix/bsd/sun/sunos4/madvise.S,
5647         sysdeps/unix/bsd/ultrix4/mmap.S,
5648         sysdeps/unix/bsd/ultrix4/munmap.S,
5649         sysdeps/unix/bsd/ultrix4/mprotect.S,
5650         sysdeps/unix/bsd/osf1/mmap.S,
5651         sysdeps/unix/bsd/osf1/munmap.S,
5652         sysdeps/unix/bsd/osf1/mprotect.S: Files removed.
5654         * sysdeps/unix/sysv/sysv4/fcntlbits.h: Moved to sysdeps/unix/common.
5656         * stdio/printf_fp.c: Add many assertions to make sure no mpn size
5657         variable is ever zero.
5659         * Makerules (native-CFLAGS): Add -I$(sysincludedir).
5661         * Makerules (depend-$(subdir)) [omit-deps]: Use $(+depfiles) value
5662         instead of shell hackery.
5664 Wed Feb 23 00:09:08 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5666         * sysdeps/sparc/alloca.S [! NO_UNDERSCORES]: Call it ___builtin_alloca.
5668 Tue Feb 22 18:47:10 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5670         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: Use __off_t in mmap
5671         prototype.
5673         * time/setitmr.c: Swap args OLD and NEW.
5674         * time/sys/time.h (setitimer): Likewise.
5675         * sysdeps/stub/__setitmr.c: Likewise.
5677 Mon Feb 21 20:47:55 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5679         * sysdeps/sparc/Makefile [gnulib] (routines): Add alloca.
5680         * sysdeps/sparc/alloca.S: New file; support for SunOS libc's
5681         `__builtin_alloca' function (never needed with GCC).
5683         * sysdeps/unix/sysv/sysv4/__sigact.c (trampoline): Cast handler to
5684         three-arg type.
5686 Sun Feb 20 00:46:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5688         * sysdeps/unix/bsd/sun/sunos4/mmap.c: Add missing semicolon.
5690         * sysdeps/unix/sparc/start.c [! NO_SHLIB]: Include <sys/types.h>
5691         before <sys/mman.h>.
5693         * sysdeps/unix/bsd/ultrix4/mips/{sysdep.h,sysdep.S,__pipe.S,
5694         __fork.S,__brk.S}: Moved to sysdeps/unix/mips (new directory).
5696         * sysdeps/unix/bsd/ultrix4/mips/__sigret.S: Use SYS_sigreturn
5697         instead of literal 103; #define to 103 if not already defined.
5699 Sat Feb 19 17:39:13 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5701         * sysdeps/unix/sysv/sysv4/i386/Dist: New file; list sys-sig.S.
5703 Fri Feb 18 18:07:34 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5705         * sysdeps/generic/configure.in: New file; check for psignal.
5707         * sysdeps/unix/common/glue-ctype.c: Check for table named _ctype,
5708         before checking for _ctype_.
5709         * sysdeps/unix/common/configure.in: Check for _ctype.
5711         * sysdeps/unix/Makefile (syscall.h): Look for sys.s before syscall.h.
5712         * sysdeps/unix/configure (unix_syscall_h): Likewise.
5714         * configure.in (os = irix4*): Set base_os=unix/sysv.
5716         * sunrpc/rpc/auth.h (u_int32): Always define, no #ifdefs.
5717         * sunrpc/xdr_float.c: Change [mc68000 || sparc] to [! vax].
5719 Thu Feb 17 18:42:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5721         * Version 1.07.4.
5723         * sysdeps/unix/bsd/sun/sunos4/Dist: Add sys_mmap.S.
5725         * Makerules (sysdep_dir): Remove defn.
5726         * Makeconfig (sysdep_dir): Define it here instead.
5728 Wed Feb 16 16:54:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5730         * sysdeps/unix/sysv/sysv4/__sigact.c: New file.
5731         * sysdeps/unix/sysv/sysv4/i386/Makefile: New file.
5732         * sysdeps/unix/sysv/sysv4/i386/sys-sig.S: New file.
5734         * time/sys/time.h (timerisset, timercmp, timerclear): New macros.
5736         * misc/Makefile (headers): Add sys/mman.h.
5737         (routines): Add mmap, munmap, mprotect, msync.
5738         * sysdeps/unix/bsd/sun/sunos4/sys_mmap.S: New file.
5739         * sysdeps/unix/bsd/sun/sunos4/mmap.c: New file.
5740         * sysdeps/unix/bsd/sun/sunos4/Makefile [$(subdir) == misc]
5741         (sysdep_routines): Add sys_mmap.
5742         * sysdeps/unix/bsd/bsd4.4/mprotect.S: New file.
5743         * sysdeps/unix/bsd/bsd4.4/munmap.S: New file.
5744         * sysdeps/unix/bsd/bsd4.4/msync.S: New file.
5745         * sysdeps/unix/bsd/bsd4.4/mmap.S: New file.
5746         * sysdeps/unix/bsd/bsd4.4/madvise.S: New file.
5747         * sysdeps/unix/bsd/sun/sunos4/mprotect.S: New file.
5748         * sysdeps/unix/bsd/sun/sunos4/munmap.S: New file.
5749         * sysdeps/unix/bsd/sun/sunos4/msync.S: New file.
5750         * sysdeps/unix/bsd/sun/sunos4/madvise.S: New file.
5751         * sysdeps/unix/bsd/ultrix4/sys/mman.h: New file.
5752         * sysdeps/unix/bsd/ultrix4/mmap.S: New file.
5753         * sysdeps/unix/bsd/ultrix4/munmap.S: New file.
5754         * sysdeps/unix/bsd/ultrix4/mprotect.S: New file.
5755         * sysdeps/stub/mprotect.c: New file.
5756         * sysdeps/stub/munmap.c: New file.
5757         * sysdeps/stub/msync.c: New file.
5758         * sysdeps/stub/mmap.c: New file.
5759         * sysdeps/stub/madvise.c: New file.
5760         * sysdeps/generic/sys/mman.h: New file.
5761         * sysdeps/unix/bsd/sun/sunos4/sys/mman.h: New file.
5762         * sysdeps/unix/bsd/osf1/msync.S: New file.
5763         * sysdeps/unix/bsd/osf1/mmap.S: New file.
5764         * sysdeps/unix/bsd/osf1/munmap.S: New file.
5765         * sysdeps/unix/bsd/osf1/mprotect.S: New file.
5766         * sysdeps/unix/bsd/osf1/sys/mman.h: New file.
5768 Tue Feb 15 16:47:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5770         * posix/unistd.h: Declare truncate, ftruncate.
5772         * misc/Makefile (headers): Add syslog.h.
5773         * misc/syslog.h: New file; just includes <sys/syslog.h>.
5775         * posix/unistd.h: Change duplicate seteuid decl to setegid.
5777         * io/Makefile (headers): Add sys/fcntl.h.
5778         * io/sys/fcntl.h: New file; just includes <fcntl.h>.
5780 Mon Feb 14 10:36:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5782         * Makerules (library pattern rule): Depend on
5783         $(objpfx)stamp-$(subdir) and have empty commands.
5784         ($(objpfx)stamp-$(subdir)): Move dep on $(objects) and ar cmds here.
5785         (common-mostlyclean): Remove $(objpfx)stamp-$(subdir).
5787         * Makerules (+depfiles): Filter out deps for modules in $(omit-deps).
5789         * sunrpc/Makefile (omit-deps): Define new variable.
5791         * Makerules ($(libc.a)(__.SYMDEF)): Depend on $(+libobjs), not
5792         lib-noranlib.
5793         * Makefile ($(libc.a)(__.SYMDEF)): Depend on subdir_lib.
5795         * Makerules (+depfiles): Include deps for $(extra-objs).
5797         * sunrpc/rpcsvc/klm_prot.x: Move program definition to end.
5799         * sunrpc/Makefile (lib): Depend on $(objpfx)librpcsvc.a.
5801         * time/zic.c: Set CP to NAME before dereferencing.
5803         * sunrpc/Makefile ($(objpfx)x%.c): Target fixed from $(objpfx)x%.c.
5804         ($(objpfx)rpcsvc/%.h): Target renamed from $(includedir)rpcsvc/%.h.
5805         Make each x%.o file depend on the corresponding rpcsvc/%.h file.
5806         (headers): Add rpcsvc/%.h.
5807         (install-others): Remove generated rpcsvc headers.
5808         (generated): Define to include generated rpcsvc headers and sources.
5810         * sysdeps/m68k/fpu/acos.c: Add __CONSTVALUE to defn.
5811         * sysdeps/m68k/fpu/ldexp.c: Likewise.
5812         * sysdeps/m68k/fpu/pow.c: Likewise.
5813         * sysdeps/m68k/fpu/fmod.c: Likewise.
5814         * sysdeps/m68k/fpu/atan2.c: Likewise.
5815         * sysdeps/m68k/fpu/__drem.c: Likewise.
5816         * sysdeps/m68k/fpu/__isinf.c: Likewise.
5817         * sysdeps/generic/hypot.c: Likewise.
5818         * sysdeps/m68k/fpu/__logb.c: Likewise.
5820         * sysdeps/unix/bsd/m68k/sysdep.S: Swap operands in cmpl.
5822 Sun Feb 13 19:49:24 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5824         * sysdeps/m68k/Makefile (compile-command.S): Remove definition
5825         that did kludgey # hackery.
5826         * sysdeps/unix/bsd/hp/m68k/sysdep.h (PSEUDO): Add missing close paren.
5827         (POUND): Define (no arg) to just `#' (a single pound sign).
5828         (PSEUDO, DO_CALL): Use `POUND foo' in place of `POUND(foo)'.
5829         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h: Likewise.
5830         * sysdeps/unix/bsd/sun/m68k/sysdep.h: Likewise.
5831         * sysdeps/unix/bsd/sun/m68k/__brk.S: Use #0, not POUND(0).
5832         * sysdeps/unix/bsd/hp/m68k/__brk.S: Use #__end instead of POUND(__end).
5834 Fri Feb 11 00:29:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5836         * configure.in (Makefile): Set objdir instead of ARCH in submake cmd.
5838         * time/mktime.c: Define __P if undefined.
5840         * assert/assert.h (__ASSERT_FUNCTION): Check __GNUC_MINOR__<6 if
5841         defined(__cplusplus).
5843 Thu Feb 10 00:52:31 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5845         * sysdeps/unix/sysv/__sigact.c: Use __sigismember and
5846         __sigemptyset on sa_mask instead of assuming it's an int.
5848         * sysdeps/unix/sysv/sysv4/sigset.h (__sigismember): Declare arg
5849         SET to be a pointer to const.
5851         * sysdeps/posix/__sigpause.c: Convert MASK to a sigset_t with a loop.
5853         * sysdeps/posix/__sigblock.c: When sigset_t==mask, take address of
5854         SET or OSET, cast to int *, and dereference.
5855         * sysdeps/posix/__sigstmsk.c: Likewise.
5856         * sysdeps/posix/__sigvec.c: Likewise.
5858         Add the -lrpcsvc library of XDR routines for standard SunRPC protocols.
5859         * sunrpc/Makefile (install-lib): Define to include librpcsvc.a.
5860         (rpcsvc-objs): New variable.
5861         (extra-objs): Add $(rpcsvc-objs).
5862         ($(objpfxlibrpcsvc.a): New target.
5863         ($(objpfx)x%.o): New rule to rpcgen XDR routines.
5865 Wed Feb  9 11:59:33 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5867         * time/zic.c (mkdirs): Reapply fix to avoid writing into passed ptr.
5869         * sunrpc/Makefile (distribute): Add etc.rpc.
5870         ($(includedir)/bootparam_prot.h): Change target to
5871         $(includedir)/rpcsvc/bootparam_prot.h and dep to
5872         $(includedir)/rpcsvc/bootparam.h.
5873         (install-others): Change reference.
5875         * sunrpc/rpc_util.h: Comment out bogus decl of sprintf.
5877         * Makerules ($(libc.a)(__.SYMDEF)): Depend on lib-noranlib instead
5878         of $(+libobjs); this way makes the parent do subdir_lib.
5880         * sysdeps/unix/sysv/sysv4/sigset.h: Protect types with #ifndef
5881         _SIGSET_H_types.  Protect rest with #if !defined (_SIGSET_H_fns)
5882         && defined (_SIGNAL_H).
5884 Tue Feb  8 19:00:42 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5886         * Version 1.07.3.
5888         * sysdeps/unix/sysv/sysv4/sigset.h: Fix typos (omitted __s).
5890 Mon Feb  7 14:31:00 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5892         * Makerules ($(libc.a)): Depend on $(libc.a)(__.SYMDEF); no commands.
5893         ($(+libobjs)): Remove static pattern rule.
5894         (ar-it): Target removed.
5895         Replace with pattern rule to catch %(*.o) for all $(objects).
5896         ($(libc.a)(__.SYMDEF)): New target.
5897         (lib-noranlib, $(libdir)/lib$(libprefix)c.a): Don't depend on ar-it.
5899         * sysdeps/unix/sparc/sysdep.h (PSEUDO): Add nop after jmp; the
5900         next insn is most likely a retl, which causes interesting behavior.
5902         * stdio/vfprintf.c: Pass WORKEND+1 to _itoa, not WORKEND.
5903         Subtract one from result of _itoa when setting W.
5905         * time/{africa,asia,australasia,backward,europe,leapseconds,
5906         northamerica,southamerica,zic.c}: New code and data from ADO.
5908 Sun Feb  6 13:55:27 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5910         * sunrpc: New directory; code from Sun's RPCSRC-4.0.
5911         * sysdeps/unix/inet/Subdirs: Add sunrpc.
5912         * inet/netdb.h: #include <rpc/netdb.h> at end.
5914         * Make-dist ($(tardir).tar): Use -v when extracting from dist.tar
5915         and pipe output to doschk.
5917         * Makeconfig (etcdir): New variable.
5918         (localtime-file): Use that in default value.
5920         * Makerules (depend-$(subdir)): Include dep files for all .o files
5921         listed in $(extra-objs).
5923         * posix/sys/types.h (NFDBITS): #define to __NFDBITS.
5925         * inet/netinet/in.h (INADDR_LOOPBACK): Don't define if already
5926         defined; avoids changing source which defines it before including this.
5927         (struct sockaddr_in): Rename `__pad' member to `sin_zero'; some
5928         code wants to bzero the area just for paranoia.
5930         Make cleaning targets only remove common (not specific to one
5931         subdir) generated files if run from the parent directory.
5932         * Makefile (parent-clean): Remove $(common-generated) also.
5933         * sysdeps/unix/Makefile (local_lim.h, sys/param.h, errnos.h,
5934         ioctls.h, syscall.h): Append to $(common-generated), not $(generated).
5935         * sysdeps/posix/Makefile (stdio_lim.h): Likewise.
5937         * signal/signal.h: Declare psignal here.
5938         * stdio/stdio.h: Not here.
5940         * stdio/stdio.h [__OPTIMIZE__] (vprintf, vfscanf, vscanf,
5941         vsscanf): Define as extern inline functions instead of macros.
5943         * configure.in (names): Check existence of implied dirs and warn
5944         for absentees.
5946 Sat Feb  5 13:38:26 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5948         * Version 1.07.2.
5950         * resource/sys/resource.h (RUSAGE_SELF, RUSAGE_CHILDREN): #define
5951         to self for things that test #ifdef.
5953         * sysdeps/unix/common/Dist: Remove bsd_getgrp.S.
5955         * sysdeps/unix/Makefile: Don't include param.h.dep ifdef no_deps.
5957         * Makerules (vpath %.h): Use $(common-objpfx) in place of $(objpfx).
5959         * sysdeps/unix/bsd/i386/__vfork.S: Decrement R1 and AND it with R0
5960         to avoid the test and branch.
5962         * sysdeps/unix/bsd/getprio.S, sysdeps/unix/bsd/setprio.S,
5963         sysdeps/unix/bsd/__setreuid.S, sysdeps/unix/bsd/__setregid.S: Moved to
5964         sysdeps/unix/common.
5966         * sysdeps/unix/reboot.S: New file.
5968         * sysdeps/unix/sysv/sysv4/solaris2/signum.h: New file.
5969         * sysdeps/unix/sysv/sysv4/signum.h: New file.
5970         * sysdeps/unix/sysv/sysv4/sigset.h: New file.
5971         * sysdeps/unix/sysv/sysv4/sigaction.h (struct sigaction): Swap
5972         positions of sa_flags and sa_mask members (sa_flags is first now).
5973         (SA_NOCLDWAIT): Renamed from SA_NOSCLDWAIT.
5975         * sysdeps/unix/bsd/init-posix.c (_posix_start_time): Initialize it.
5977         * Makerules (open-check-inhibit-asm): Use : for empty commands in case.
5979         * time/leapseconds: New version from ADO, adds 1994 leap second.
5981 Thu Feb  3 02:15:30 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5983         * sysdeps/unix/bsd/ulimit.c: Define ulimit instead of __ulimit.
5985 Wed Feb  2 16:56:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5987         * sysdeps/unix/sysv/sco3.2.4/sigsuspend.S: Moved to unix/sysv/sysv4.
5988         Replaced with #include of that file.
5990         * sysdeps/unix/sysv/sysv4/solaris2/sigaltstack.S: Moved to 
5991         sysdeps/unix/sysv/sysv4/sigaltstk.S.
5993         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Syscall lxstat, not xlstat.
5994         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Syscall fxstat, not xfstat.
5996 Tue Feb  1 18:22:21 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
5998         * stdio/_itoa.c, stdio/_itoa.h: New files.
5999         * stdio/Makefile (routines): Add _itoa.
6000         (distribute): Add _itoa.h.
6001         * stdio/vfprintf.c: Use _itoa instead of doing it by hand.
6003         * sysdeps/unix/sparc/vfork.S: Add nop after jmp.  Bad delay slot,
6004         no pipeline.
6005         * sysdeps/unix/bsd/ultrix4/mips/vfork.S: Likewise.
6007 Mon Jan 31 19:33:04 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6009         * assert/assert.c (__assert_fail): Take 4th arg FUNCTION; if it is
6010         not null, print it in the message.  Also declare __NORETURN.
6011         * assert/assert.h (__assert_fail): Update decl; also add __NORETURN.
6012         (__ASSERT_FUNCTION): #define to be __PRETTY_FUNCTION__ for GCC>=2.4.
6013         (assert): Pass __ASSERT_FUNCTION to __assert_fail.
6015         * sysdeps/unix/bsd/sun/sparc/vfork.S: Moved to sysdeps/unix/sparc.
6016         Use C_SYMBOL_NAME on __vfork instead of prepending an underscore.
6018         * sysdeps/unix/sysv/sysv4/solaris2/{start.c,sysdep.S,sysdep.h}: Moved
6019         to sysdeps/unix/sysv/sysv4/solaris2/sparc.
6021         * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
6022         bsd/ultrix4/mips,bsd/vax}/sysdep.S: Don't do EWOULDBLOCK_sys->EAGAIN
6023         mapping #if EWOULDBLOCK_sys == EAGAIN.
6025         * sysdeps/unix/sparc/sysdep.h [NO_UNDERSCORES]: #define syscall_error
6026         to C_SYMBOL_NAME(__syscall_error).
6027         (PSEUDO): On error, jump to syscall_error instead of setting errno.
6028         * sysdeps/unix/sparc/sysdep.S: New file.
6030         * sysdeps/unix/sysv/sysv4/i386/__vfork.S: New file, just #include
6031         unix/bsd/i386 version. 
6033         * sysdeps/unix/bsd/i386/__vfork.S: Use `scratch' in place of %edx.
6035 Thu Jan 27 16:46:03 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6037         * configure.in (asm-CPPFLAGS): Add new check to see if assembling
6038         a .S file loses without -P.  If so, set asm-CPPFLAGS=-P in config.make.
6040         * configure.in (stddef.h): Print msg under --verbose.
6042         * manual/Makefile (subdir): Define outside of `export' directive,
6043         for old make.
6045         * time/mktime.c (search): Take new arg PRODUCER, fn to call
6046         instead of `localtime'.
6047         (_mktime_internal): New function; all code from old `mktime', but
6048         take 2nd arg PRODUCER and pass along to `search'.
6049         (mktime): Rewrite to call _mktime_internal with localtime.
6050         * time/Makefile (routines): Add dysize, timegm, timelocal.
6051         * time/time.h (_mktime_internal): Declare it.
6052         [__USE_MISC]: Declare timegm, timelocal, dysize.
6053         * time/dysize.c: New file.
6054         * time/timegm.c: New file.
6055         * time/timelocal.c: New file.
6057 Wed Jan 26 20:06:23 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6059         Remove the hackery on getgroups for most systems.  It is no longer
6060         necessary because gid_t is now the same size as int.
6061         * sysdeps/unix/common/Makefile (sysdep_routines): Don't add bsd_getgrp.
6062         * sysdeps/unix/common/bsd_getgrp.S: File removed.
6063         * sysdeps/unix/common/__getgrps.S: New file.
6064         * sysdeps/unix/bsd/sequent/i386/__getgrps.S: New file.
6066         Clean up the rules for cleaning up.
6067         * Makerules (common-mostlyclean): New target; remove object files.
6068         (common-clean): New target; depend on common-mostlyclean, and
6069         remove dep files and generated files.
6070         (clean): Depend on common-clean.
6071         (mostlyclean): Depend on common-mostlyclean.
6072         * Rules (mostlyclean): Target removed.
6073         (clean): Target removed.
6074         (distclean): New target; depend on clean.
6075         (realclean): New target; depend on distclean.
6076         (subdir_distclean): New target; depend on distclean.
6077         (subdir_realclean): New target; depend on realclean.
6078         (subdir_mostlyclean): New target; depend on mostlyclean.
6079         * Makefile (+subdir_targets): Add subdir_distclean,
6080         subdir_realclean; change mostlyclean to subdir_mostlyclean.
6081         (parent-mostlyclean): New target; depend on common-mostlyclean and
6082         remove libc.a and $(install-lib).
6083         (parent-clean): New target; depend on parent-mostlyclean and
6084         common-clean, and remove sysdirs sysd-dirs sysd-Makefile.
6085         (clean): Depend on parent-clean and just do submake for subdirs.
6086         (mostlyclean): Depend on parent-clean and just do submake for subdirs.
6087         (distclean, realclean): Depend on parent-clean and do submake
6088         distclean-1 passing it variable assignment distclean-1=$@.
6089         (distclean-1): Depend on subdir_$(distclean-1) and remove
6090         $(config-generated), config.status, config.make, Makefile (if not
6091         in srcdir).
6092         * manual/Makefile (subdir_clean): Target removed.
6093         (subdir_%): New rule to handle all such targets.
6094         (distclean): Depend on clean, not mostlyclean.
6095         (realclean): Depend on distclean, not clean.
6097         * sysdeps/unix/configure (unix_generated_dirpfx): New variable.
6098         Use it to put created .S files in sysdeps/unix if configured in
6099         srcdir, else in current directory.
6100         (unix_generated): Prepend $unix_generated_dirpfx.
6101         Have generated config.make fragment prepend $(objpfx).
6102         * sysdeps/unix/Makefile (generated): Don't set it.
6103         (config-generated): Set this instead; don't prepend any directory
6104         prefix to $(unix-generated).
6106         Fixes for SVR4 wait from jmc@ksu.ksu.edu (James Michael Chacon):
6107         * sysdeps/unix/sysv/sysv4/siginfo.h (__siginfo_t): Add `__code'
6108         and `__pid' fields.
6109         (EXITED, KILLED, CORED, TRAPPED, STOPPED, CONTINUED): New macros.
6110         * sysdeps/unix/sysv/sysv4/__waitpid.c: Switch on INFOP.__code and
6111         construct *STAT_LOC from INFOP.__status accordingly.
6113         * stdlib/testsort.c (main): Use puts to add newlines to printed lines.
6115 Tue Jan 25 14:32:01 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6117         * Version 1.07.1.
6119         * manual/Makefile (%.z): Change target pattern to %.gz.
6120         (dist): Comment out dep.  Don't really need the separate doc dist.
6122         * stdio/stdio.h [__OPTIMIZE__] (getchar, putchar, getdelim,
6123         getline, __getline): Use extern inlines instead of macros.
6125         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Fix typo ($eax for %eax).
6127         * sysdeps/unix/siglist.c [! HAVE_GNU_LD] (_sys_siglist): #define
6128         to sys_siglist.
6129         * sysdeps/posix/__gettod.c [! HAVE_GNU_LD] (__daylight,
6130         __timezone, __tzname): #define to non-__ names.
6132         * math/math.h [__USE_BSD] (M_E, M_LOG2E, M_LOG10E, M_LN2, M-LN10,
6133         M_PI, M_PI_2, M_PI_4, M_1_PI, M_2_PI, M_2_SQRTPI, M_SQRT2,
6134         M_SQRT1_2): New macros.
6136 Tue Jan 25 14:01:28 1994  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
6138         * sysdeps/mach/hurd/start.c (start1): Decide separately whether to
6139         split argv and whether to split envp.
6141         * sysdeps/mach/hurd/i386/sysdep.h: File deleted.
6142         sysdeps/mach/i386/sysdep.h: Delete SET_SP macro.
6143         sysdeps/mach/hurd/start.c (_start): Don't call GET_SP; set globals
6144         instead of locals from exec_startup message.
6146         * misc/progname.c: Don't try to set
6147         program_invocation_name or program_invocation_short_name if argv
6148         or argv[0] is invalid.
6150 Mon Jan 24 16:51:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6152         * sysdeps/unix/sysv/sysv4/__waitpid.c: Return INFOP.__pid instead of
6153         the PID we were called with.
6155         * sysdeps/unix/sysv/__mkdir.c (__mkdir): Restore errno before
6156         returning, not after (lot of good that did).
6158         * sysdeps/unix/bsd/ultrix4/system.c, sysdeps/unix/bsd/bsd4.4/system.c,
6159         sysdeps/unix/bsd/osf1/system.c, sysdeps/unix/sysv/sco3.2.4/system.c,
6160         sysdeps/unix/bsd/sun/sunos4/system.c, sysdeps/unix/sysv/sysv4/system.c:
6161         New files.  Avoid sysdeps/unix/system.c, which defines NO_WAITPID.
6163         * set-init.c (__libc_init): Use `n' count field instead of
6164         checking for null terminator.  The latter loses when there are no
6165         set elts at all, and only one word is allocated for __libc_subinit.
6167         * sysdeps/generic/waitstatus.h (__WCOREFLAG): New macro.
6168         * posix/sys/wait.h [__USE_BSD] (WCOREFLAG): New; define to __WCOREFLAG.
6170         * stdio/fileno.c (fileno): Call __stdio_check_funcs.
6172         * stdio/tst-fileno.c: New file.
6174 Fri Jan 21 16:56:50 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6176         * Rules (dep-dummy-lib, make-dummy-lib): New variables.
6177         ($(objpfx)dummy.o): New file rule.
6178         * posix/Makefile ($(objpfx)libposix.a): Depend on
6179         $(dep-dummy-lib), and use $(make-dummy-lib) for commands.
6180         * math/Makefile ($(objpfx)libm.a): Likewise.
6182         * sysdeps/unix/sysv/sysv4/i386/__stat.S: New file.
6183         * sysdeps/unix/sysv/sysv4/i386/__lstat.S: Likewise.
6184         * sysdeps/unix/sysv/sysv4/i386/__fstat.S: Likewise.
6186         * sysdeps/sparc/bytesex.h: New file.
6188 Thu Jan 20 12:45:35 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6190         * sysdeps/stub/syscall.c (syscall): Declare arg type as int.
6192 Wed Jan 19 18:18:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6194         * Makerules ($(before-compile) rule): Protect w/`ifdef before-compile'.
6196         * manual/Makefile: Change all `mv' uses to `mv -f'.
6197         (subdir_install): Depend on stubs.
6199         * Makerules ($(objpfx)%.dep: %.s): Depend also on $(objpfx)dummy.dep.
6201 Tue Jan 18 19:12:57 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6203         * stdlib/testsort.c (main): Swap dimensions of BUFS array.
6205 Mon Jan 17 17:31:28 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6207         * Version 1.07 released.
6209         * Makerules (install-lib rules): Fix typos: missing / after $(libdir).
6211         * posix/Makefile (lib): Depend on $(objpfx)libposix.a
6212         * malloc/Makefile (lib): Depend on $(objpfx)libmcheck.a.
6213         * math/Makefile (lib): Depend on $(objpfx)libm.a.
6214         * misc/Makefile (lib): Depend on $(objpfx)libbsd-compat.a.
6216         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: New file.
6218         * stdio/internals.c (flushbuf): Don't try aligned-block writing
6219         calculation when FP->__buffer is nil.
6221 Mon Jan 17 17:27:56 1994  Jim Meyering  (meyering@comco.com)
6223         * sysdeps/generic/memcmp.c [!_LIBC]: Include <sys/types.h> for
6224         definition of size_t.
6226 Mon Jan 17 17:13:11 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6228         * sysdeps/unix/sysv/sco3.2.4/syscall.h: Add SYS_[gs]etitimer and
6229         SYS_pgrpsys (from scottb).
6231         * sysdeps/unix/configure: Check for getitimer and setitimer syscalls.
6233         * sysdeps/unix/bsd/sequent/i386/syscall.S: New file from jason.
6235 Sun Jan 16 00:41:03 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6237         * string/strerror.c (strerror): Declare BUF to be array of char.
6239         * Version 1.06.13.
6241 Sat Jan 15 17:27:26 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6243         * stdlib/testsort.c (main): Rewrite not to read any input; instead
6244         generate some random alphabetic strings.
6246         * stdlib/Makefile (testsort.input): Rules removed.
6248         * sysdeps/unix/sysv/i386/__sigret.S: New file.
6250         * stdio/Makefile (distribute): Add mpn-copy.mk.
6251         Remove 68k rules; include mpn-copy.mk for dir names needing
6252         translation, and rewrite no-68k rules to be generic for the rest.
6253         (mpn-copy-sysdep): New variable.
6254         (mpn-stuff): Include $(mpn-copy-sysdep).
6255         (clean-mpn): Use rm -f.
6257         * configure.in (machine): Match m68... and m88..., not mc[68]8....
6259         * stdio/printf_fp.c: For length arg to __mpn_extract_double, pass
6260         actual number of limbs allocated for F, not LDBL_MANT_DIG.
6262 Fri Jan 14 19:09:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6264         * sysdeps/unix/i386/sysdep.S: Fixed typo: `movl', not `move'.
6266         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Swap args in cmpl insn.
6268 Thu Jan 13 17:09:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6270         * Version 1.06.12.
6272         * sysdeps/mips/sqrt.c: File removed.  Ian says only the r[46]00
6273         have `sqrt.d' and GCC open codes it anyway.  Perhaps someday
6274         Brendan will be able to explain his rationale for writing this. :(
6276 Tue Jan 11 18:10:17 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6278         * posix/sys/wait.h (__WAIT_STATUS, __WAIT_STATUS_DEFN): Use snazzy
6279         version only for GCC >= 2.6 (was 2.4); 2.5.7 produces bad code on
6280         sparc when the union arg type is used.
6282         * Makeconfig (libprefix): New variable.
6283         * Makerules ($(libdir)/libc.a, install): Insert $(libprefix)
6284         between `lib' and `c' in the file name.
6285         [install-lib] (install-lib.a, install-lib-non.a): New variables
6286         separate out $(install-lib) elts which do or don't match lib%.a.
6287         ($(libdir)/...): Split into two rules for above two cases.  Put
6288         $(libprefix) on installed files; for lib%.a insert it before %
6289         rather than at beginning of file name.
6291         * Version 1.06.11.
6293         * Makerules (compilation rules): Move directoryless rules (for
6294         finding sources in .) before include sysd-rules.  Omit rules to
6295         compile from sources in $(objpfx) if not using $(objdir).
6297         * sysdeps/stub/errlist.c [! HAVE_GNU_LD]: #define _sys_errlist to
6298         sys_errlist and _sys_nerr to sys_nerr.
6300 Mon Jan 10 15:01:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6302         * time/Makefile (z.%): In generated rules, depend on yearistype.
6303         (tzcompile): Pass -y flag with file name of yearistype.
6305 Sun Jan  9 17:51:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6307         * misc/bsd-compat.c (longjmp): Use __NORETURN in type.
6309         * sysdeps/ieee754/dbl2mpn.c [N == 2]: For denormal, when
6310         RES_PTR[1] is zero, return 1 instead of 2.
6312 Sun Jan  9 13:10:25 1994  Torbjorn Granlund  (tege@adder.cygnus.com)
6314         * stdio/printf_fp.c: Solve 10+ problems.
6315         * ieee754/dbl2mpn.c: Correctly detect denorms.  Get the denom
6316         exponent right.
6318 Sun Jan  9 00:40:48 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6320         * sysdeps/ieee754/dbl2mpn.c: Test BITS_PER_MP_LIMB and handle
6321         either 32 or 64; #error if not one of those.
6323         * sysdeps/stub/udiv_qrnnd.c: Renamed from udiv_qrnnd.S.
6325 Sat Jan  8 00:25:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6327         * Version 1.06.10.
6329         * Makerules ($(libdir)/libc.a): Depend on subdir_install.
6331 Thu Jan  6 02:17:07 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6333         * Makerules ($(bindir)/$(install)): Use $(INSTALL_PROGRAM), not
6334         $(INSTALL).
6335         ($(libdir)/libc.a): Don't depend on lib-noranlib; on libobjs and
6336         ar-it instead.  Run ranlib on target after installing.
6337         (installdirs): Target removed; deps on it removed.
6338         (install-{bin,lib,data,headers,others,no-libc.a}): Renamed to
6339         `install-*-nosubdir'.
6340         (install-%): New pattern rule.
6341         (install): Depend only on install-no-libc.a-nosubdir.
6342         * Rules (subdir_install): Depend on lib-noranlib and stubs.
6343         * Makefile (headers): Remove stubs.h.
6344         (install-others): Define to include $(includedir)/stubs.h.
6345         ($(includedir)/stubs.h): New target for $(objpfx)stubs.h rule.
6346         Depend only on subdir_install, and install directly.
6348         * Makerules (sed-remove-objpfx): Require SPC before $(objpfx) to match.
6350         * time/zic.c (mkdirs): Duplicate passed string in allocated memory
6351         and free it when done.
6353         * dirent/dirent.h [__USE_BSD || __USE_MISC]: Get size_t from stddef.h.
6355         * sysdeps/ieee754/dbl2mpn.c: For zero value, return 1 limb not 0.
6357         * Makerules (make-dummy-dep): Use filter-out to invert sense of
6358         wildcard match, so we produce a command if $@ does *not* exist.c
6360         * stdio/Makefile (routines): Add dbl2mpn.
6362 Wed Jan  5 17:52:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6364         * sysdeps/unix/i386/sysdep.S (syscall_error): Reverse args in
6365         `cmpl' insn; non-GNU assembler is feeble-minded.
6367 Mon Jan  3 18:53:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6369         * configure.in (sysnames): Remove / before $mach; it is prepended
6370         already by the loop constructing $mach from $machine.
6372 Tue Dec 28 07:38:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6374         * stdio/Makefile [gmp-srcdir] (clean-mpn): New target.
6376         * configure.in (machine): Turn i[34]86 into i386/&, sparc* into
6377         sparc/&, m68k into m68k/mc68020, mc680?0 into m68k/&, mips or
6378         r2000 into mips/r3000, r[34]000 into mips/&.
6379         (mach): New variable; processed from $machine as $base from $base_os.
6380         Use that in place of $machine in loop finding sysdep directories.
6382         * stdio/Makefile (aux): Add mp_clz_tab.
6383         (mpn-copy): Add mp_clz_tab.c.
6384         (mpn-routines): Add udiv_qrnnd.
6385         (mpn-sysdep): Look for .s files too.
6386         * sysdeps/stub/udiv_qrnnd.S: New file.
6388 Sat Dec 25 00:20:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6390         * Version 1.06.9.
6392         * Makefile (distribute): Add install.sh.
6393         * install.sh: New file.
6395         * sysdeps/i386/Makefile: New file.
6396         (asm-CPPFLAGS): Add -DGAS_SYNTAX.
6398         * stdio/printf_fp.c: Major rewrite of sysdeps/generic/printf_fp.c,
6399         working with the fractional parts as multiprecision integers
6400         instead of doubles, using mpn functions from GNU MP.  Done with
6401         much help from tege@cygnus.com.
6402         * sysdeps/generic/printf_fp.c, sysdeps/ieee754/printf_fp.c,
6403         sysdeps/m68k/fpu/printf_fp.c: Files removed.
6405 Fri Dec 24 23:09:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6407         * sysdeps/stub/dbl2mpn.c, sysdeps/iee754/dbl2mpn.c: New files.
6408         * sysdeps/stub/asm.h: New file.
6409         * sysdeps/m68k/add_n.S, sysdeps/m68k/addmul_1.S,
6410         sysdeps/m68k/mul_1.S, sysdeps/m68k/sub_n.S,
6411         sysdeps/m68k/submul_1.S, sysdeps/m68k/asm.h,
6412         sysdeps/generic/add_1.c, sysdeps/generic/add_n.c,
6413         sysdeps/generic/addmul_1.c, sysdeps/generic/cmp.c,
6414         sysdeps/generic/divmod.c, sysdeps/generic/divmod_1.c,
6415         sysdeps/generic/lshift.c, sysdeps/generic/rshift.c,
6416         sysdeps/generic/mod_1.c, sysdeps/generic/mul.c,
6417         sysdeps/generic/mul_1.c, sysdeps/generic/mul_n.c,
6418         sysdeps/generic/sub_n.c, sysdeps/generic/submul_1.c,
6419         sysdeps/generic/get_str.c, sysdeps/i386/addmul_1.S,
6420         sysdeps/i386/mul_1.S, sysdeps/i386/submul_1.S,
6421         sysdeps/alpha/gmp-mparam.h, sysdeps/generic/gmp-mparam.h,
6422         sysdeps/i386/asm.h, stdio/longlong.h, stdio/gmp.h,
6423         stdio/gmp-impl.h: New files, taken from GNU MP.
6424         * stdio/Makefile (mpn-headers, mpn-routines): New variables.
6425         (routines): Include $(mpn-routines).
6426         (distribute): Include $(mpn-headers).
6427         [gmp-srcdir]: Much code to copy mpn source from $(gmp-srcdir).
6428         * configure.in: Check for a --with-gmp argument and set gmp-srcdir
6429         in config.make to its value (error if no arg given).  Move
6430         config_vars initialization before this (right after arg parsing).
6432 Thu Dec 23 01:44:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6434         * sysdeps/m68k/Makefile (m68k-syntax-flag): New variable.
6435         (compile-command.S): Include $(m68k-syntax-flag) in cpp flags.
6437         * manual/Makefile (install-data): New target.
6438         (install-%): New pattern rule.
6440         * Makerules ($(bindir)/...): Do $(make-target-directory) first.
6442 Thu Dec 23 01:03:19 1993  Brendan Kehoe  (brendan@zen.org)
6444         Port to the DEC Alpha running OSF/1. (75% done)
6445         * sysdeps/unix/bsd/osf1/alpha/start.S: New file.
6446         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: New file.
6447         * sysdeps/unix/bsd/osf1/alpha/sysdep.S: New file.
6448         * sysdeps/unix/bsd/osf1/alpha/__brk.S: New file (incomplete).
6449         * sysdeps/unix/bsd/osf1/alpha/__fork.S: New file.
6450         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: New file.
6451         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: New file.
6452         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: New file.
6453         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: New file.
6454         * sysdeps/unix/bsd/osf1/dirstream.h: New file.
6455         * sysdeps/unix/bsd/osf1/alpha/statbuf.h: New file.
6456         * sysdeps/unix/bsd/osf1/direct.h: New file.
6457         * sysdeps/unix/bsd/osf1/dirstream.h: New file.
6458         * sysdeps/unix/bsd/osf1/Makefile: New file, defining LDFLAGS.
6460         * sysdeps/unix/ioctls-tmpl.c [__osf1__ && __alpha__]: Clean up the
6461         ioctls that we get for an Alpha running OSF/1.
6463         * sysdeps/unix/common/glue-ctype.c: Add code for HAVE__LOCP.
6464         (main): If new macro TABLE_NAME is defined, use that for the name
6465         of the array we're writing out, rather than what's defined in TABLE.
6466         * sysdeps/unix/common/configure.in (AC_HAVE_FUNCS): Add `_locp'.
6468         * sysdeps/unix/bsd/osf1/sigaction.h: Add SA_ONSTACK, SA_RESTART,
6469         and SA_DISABLE.
6470         * sysdeps/alpha/setjmp.S: Add .end directive.
6472         * time/sys/time.h (struct timeval): Make members TV_SEC and
6473         TV_USEC be `int', not `long', since it won't hurt other hosts, but
6474         kills the Alpha.
6475         * resource/sys/resource.h (struct rusage): Make all non-timeval
6476         members be `long', not `int'.
6478         * sysdeps/alpha/strlen.c (strlen): Go from 0 to 7, not 3, since
6479         there are 8 bytes in a long on the Alpha.  Check for '\0' after
6480         checking for C in initial byte-by-byte loop.
6481         * sysdeps/alpha/strchr.c (strchr): Likewise. Shift out to 64 when
6482         setting CHARMASK.
6483         * sysdeps/alpha/memchr.c (memchr): Likewise.  Return NULL if we
6484         didn't find it in N characters, or N == 0.  Declare CP to be an
6485         unsigned char*.
6487         * sysdeps/alpha/Makefile: Add divrem stuff.
6488         * sysdeps/alpha/DEFS.h: New file.
6489         * sysdeps/alpha/divrem.m4: New file.
6490         * sysdeps/alpha/macros.m4: New file.
6491         * sysdeps/alpha/Dist: Add .S files, divrem.m4, macros.m4, and DEFS.h.
6493         * sysdeps/unix/bsd/osf1/alpha/vhangup.S: New file.  (Only a
6494         temporary workaround, until we figure out how to deal with the
6495         SYS_ult syscalls better.)
6496         * sysdeps/unix/bsd/osf1/alpha/killpg.S: Likewise.
6497         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
6498         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
6499         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
6500         * sysdeps/unix/bsd/osf1/alpha/recv.S: Likewise.
6501         * sysdeps/unix/bsd/osf1/alpha/send.S: Likewise.
6503         * sysdeps/alpha/__math.h (__copysign): Add __CONSTVALUE.
6504         * sysdeps/alpha/__copysign.c: Define __NO_MATH_INLINES.
6505         * sysdeps/alpha/fabs.c: Likewise.
6507 Wed Dec 22 17:55:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6509         * crypt/*: New version from glad.
6511         * sysdeps/unix/sysv/sysv4/Dist: Add __getpgid.c and __setpgid.c.
6513         * dirent/Makefile (headers): Define; include dirent.h & dirstream.h.
6515 Tue Dec 21 14:24:38 1993  Brendan Kehoe  (brendan@zen.org)
6517         * sysdeps/unix/sysv/sysv4/i386/statbuf.h (struct stat): Add
6518         missing member ST_FSTYPE.  Fixup types on various members to make
6519         this properly reflect what the system has.
6521         * misc/ioctl.c (ioctl): Declare 2nd arg to be unsigned long int to
6522         match the change in ioctl.h.
6524 Tue Dec 21 00:01:01 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6526         * Version 1.06.8.
6528         * dirent/dirent.h (struct dirent): Add `d_reclen'; make `d_namlen'
6529         an `unsigned short int' instead of `size_t'.
6530         (DIR): Move typedef to sysdep file dirstream.h.
6531         * sysdeps/unix/dirstream.h: New file, broken out of dirent.h.
6532         * sysdeps/stub/dirstream.h: New file.
6533         * sysdeps/unix/bsd/dirstream.h: New file.
6534         * sysdeps/unix/bsd/readdir.c: New file.
6536 Mon Dec 20 23:29:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6538         * sysdeps/unix/start.c: Include <sysdep.h>.
6539         * sysdeps/unix/sysv/sysv4/i386/start.c: File removed.
6541 Sat Dec 18 01:37:25 1993  Brendan Kehoe  (brendan@zen.org)
6543         * sysdeps/unix/sysv/sysv4/i386/start.c: New file.  Same as
6544         sysdeps/unix/i386/start.c, but defines NO_UNDERSCORES.
6546         * sysdeps/unix/sysv/sysv4/waitflags.h: New file, with non-standard
6547         WEXITED and WTRAPPED macros defined.
6548         * sysdeps/unix/sysv/sysv4/__waitpid.c: New file.
6549         * sysdeps/unix/sysv/sysv4/siginfo.h: New file.
6550         * sysdeps/unix/sysv/sysv4/__waitid.S: New file.
6551         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Mention __waitid.
6552         * sysdeps/unix/sysv/sysv4/pipestream.c: New file, to avoid having
6553         NO_WAITPID set.
6554         * sysdeps/unix/sysv/sysv4/Dist: Added __waitid.S and siginfo.h.
6556         * sysdeps/unix/sysv/sysv4/__getpgid.c: New file.
6557         * sysdeps/unix/sysv/sysv4/__setpgid.c: New file.
6558         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Add them.
6560         * sysdeps/unix/sysv/sysv4/__getpgrp.c (__getpgrp): It's the 0th
6561         subcall for getpgrp, not 4th.
6562         * sysdeps/unix/sysv/sysv4/__setpgrp.c (__setpgrp): Likewise, it's
6563         the 1st, not the 5th.
6565 Fri Dec 17 15:05:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6567         * misc/sys/ioctl.h (__ioctl, ioctl): Make second arg `unsigned
6568         long int' instead of `int' (4.4 uses unsigned long).
6570         * string/string.h (strcat): Parameters names were swapped.
6572 Fri Dec 17 01:18:27 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6574         * Made the Hurd error system 0x10 again; this undid many
6575         of the changes of Nov 23.  Affected all the err_ files in
6576         mach; recreated sysdeps/hurd/err_hurd.sub; changed back
6577         err_kern.sub to have the Unix error codes. 
6579 Thu Dec 16 15:40:25 1993  Brendan Kehoe  (brendan@zen.org)
6581         * stdio/temptest.c (main): Remove the files we created once we're
6582         done.  Make return type int, and exit with 0 status.
6584         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Fix typo of
6585         extra comma in sprintf call.
6587 Tue Dec 14 13:08:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6589         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Rewrote main
6590         logic.  Removed INFOS structure array and replaced it with
6591         INDICES, an array of size_t.  Removed INFO ptr and replaced it
6592         with IDX, which points to either elt of INDICES.  Rewrite main
6593         loop to increment *IDX until it hits 62*62*62.  Construct file
6594         name by dividing out two powers of 62 from *IDX and using the
6595         modulus as an index into `letters'.
6597         * sysdeps/unix/common/Makefile (sysdep_routines): Only add
6598         bsd_getgrp here if the sysdep __getgrps.? chosen is unix/common's.
6600         * posix/fnmatch.h: #undef FNM_PATHNAME, FNM_NOESCAPE, and
6601         FNM_PERIOD before defining them.
6603         * time/__tzset.c (compute_change): In M case when tallying time in
6604         months before specified month, count to RULE->m - 1, not ...+1.
6606         * manual/Makefile (realclean): Remove index, aux, and toc files
6607         created by TeX.
6609 Mon Dec 13 19:33:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6611         * sysdeps/posix/__wait3.c: Use __WAIT_STATUS_DEFN in place of
6612         __WAIT_STATUS in arg type.
6614 Wed Dec  8 15:59:45 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6616         * malloc/memalign.c: Set L->next and _aligned_blocks only when L
6617         is newly allocated, not when we reuse an old one.
6619 Tue Dec  7 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6621         * io/fcntl.c: Replace function_alias use with:
6622         [HAVE_GNU_LD]: Use symbol_alias.
6623         [! HAVE_GNU_LD]: Define fcntl to use stdarg and call __fcntl.
6625 Mon Dec  6 17:50:05 1993  Brendan Kehoe  (brendan@zen.org)
6627         * sysdeps/unix/i386/sysdep.S (syscall_error): Fix labels so
6628         they'll compile.
6630         Make the Solaris port work dammit.
6631         * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h (struct stat): Make
6632         ST_DEV member be unsigned long, not short.
6634         * sysdeps/unix/sysv/sysv4/solaris2/direct.h: New file, same as
6635         sysv4/direct.h but uses strlen instead of the offset-based
6636         computation of the name length, since that doesn't reliably work
6637         for Solaris.
6639         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h (PSEUDO): Don't move
6640         %g0 into %o0, since that will clobber the real return value. Take
6641         out the retl at the end, why in the world did I put it in there?
6643 Mon Dec  6 17:27:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6645         * Makefile ($(objpfx)crt1.o): Add target to $(objpfx)Mcrt1.o
6646         rule; generalize commands.
6647         (install-lib): Add crt1.o.
6649         * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Use -x flag to
6650         fgrep to match only entire lines.
6652 Sun Dec  5 01:53:43 1993  Brendan Kehoe  (brendan@zen.org)
6654         * sysdeps/unix/bsd/ultrix4/mips/start.S: New file.
6655         * sysdeps/unix/bsd/ultrix4/mips/start.c: Deleted.
6657 Thu Dec  2 18:29:01 1993  Brendan Kehoe  (brendan@zen.org)
6659         * sysdeps/unix/bsd/ultrix4/mips/sysdep.S: Don't use dollar signs
6660         with the errnos.
6662         * sysdeps/stub/{__wait, __wait3, __wait4}.c,
6663         sysdeps/unix/bsd/bsd4.4/{__wait, __wait3}.c,
6664         sysdeps/unix/bsd/sun/sunos4/__wait4.c,
6665         sysdeps/posix/{__wait, __wait3}.c, posix/{wait, wait3, wait4}.c: Use
6666         __WAIT_STATUS_DEFN, not __WAIT_STATUS.
6668         * sysdeps/posix/killpg.c (killpg): Make arg PGRP __pid_t, not pid_t.
6669         * sysdeps/stub/killpg.c (killpg): Likewise.
6671         * setjmp/longjmp.c (longjmp): Only use __NORETURN if !HAVE_GNU_LD.
6672         * setjmp/_longjmp.c (_longjmp): Likewise.
6674 Thu Dec  2 17:31:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6676         * posix/sys/wait.h (__WAIT_STATUS_DEFN): Define new macro.
6678         * Makerules (+install): Variable removed.
6679         (install-bin, install-lib, install-data, install-headers,
6680         install-others): New targets.
6681         (install-no-libc.a): Depend on them instead of $(+install).
6683         * Makefile (+subdir_targets): Add
6684         install-{no-libc.a,bin,lib,data,headers,others}.
6685         (install-no-libc.a): Don't depend on subdir_install.
6687 Thu Dec  2 17:14:39 1993  Brendan Kehoe  (brendan@zen.org)
6689         * sysdeps/ieee754/__isnan.c (__isnan): Return __CONSTVALUE, to
6690         match declaration in math/math.h.
6692 Thu Dec  2 15:48:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6694         * time/africa, time/antarctica, time/asia, time/australasia,
6695         time/emkdir.c, time/europe, time/ialloc.c, time/northamerica,
6696         time/pacificnew, time/private.h, time/solar87, time/solar88,
6697         time/southamerica time/systemv, time/tzfile.h, time/zdump.c,
6698         time/zic.c: New data and code from ADO.
6699         * time/Makefile (tzfiles): Added backward.
6700         * time/backward: New file from ADO.
6702         * locale/C-ctype_ct.c: Remove _ISspace bit from BS (8).
6704 Wed Dec  1 00:01:30 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6706         * mach/err_kern.sub: Frob around lack of GNU ld.
6708         * mach/errsystems.awk: The declaration of __mach_error_systems
6709         should not be static, but it should be const.
6711         * sysdeps/mach/hurd/errlist.awk (BEGIN): Deal with the case
6712         where you don't have GNU ld.
6714         * sysdeps/mach/hurd/Makefile: Define mib_hacks to make.
6716 Tue Nov 30 23:24:07 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6718         * Makefile: install-no-libc.a needs to depend on subdir_install.
6720 Mon Nov 29 16:21:38 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6722         * sysdeps/mach/_strerror.c: Include <mach/errorlib.h>.
6724         * hurd/setuids.c: Put entire file inside #ifndef MIB_HACKS; 
6725         it uses the old auth_makeauth call.
6727         * hurd/__setauth.c: Put entire file inside #ifndef MIB_HACKS;
6728         it depends on cthreads to compile, which is not yet integrated.
6730         * hurd/hurdpath.c (__hurd_path_lookup): cast to avoid GCC warning.
6732 Wed Nov 24 00:59:15 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6734         * hurd/Makefile: Commented out hurdauth; recent changes to
6735         auth.defs prevent it from working now.
6737         * mach/mach_error_string.c (do_compat): Change name to
6738         __mach_error_map_compat; make it no longer static.
6739         (mach_error_type, mach_error_string_int): Use 
6740         __mach_error_map_compat instead of do_compat.
6741         * sysdeps/mach/_strerror.c: Use __mach_error_map_compat.
6743         * mach/devstream (output/write_some): Cast fourth argument to
6744         device_write_inband to char * to avoid warning.
6745         (output): Call to write_some mentioned variable `start' from
6746         a previous version of the function; changed this to f->__buffer.
6748 Tue Nov 23 23:16:13 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6750         [ The net effect of the following change is to eliminate error
6751         systems which are specific to single-server Mach systems, and
6752         to put the Hurd errors where the Unix errors were. ]
6753         * mach/{err_bootstrap.sub,err_ipc.sub,err_server.sub,err_us.sub}:
6754         None of these are used for the Hurd; we shouldn't pretend that
6755         they are meaningful in our environment.  The files have been
6756         renamed to equivalent names with an equal sign prepended; this
6757         will inhibit distribution and prevent the Makefile from looking at
6758         them. 
6759         * mach/err_kern.sub: Deleted the definitios of err_codes_unix;
6760         get the strings from _sys_errlist.  Rename `unix' to `hurd'.
6761         Rename err_os_sub to be err_kern_sub to match what errsystems.awk
6762         expects.
6763         * sysdeps/mach/hurd/err_hurd.sub: Deleted this file.
6764         * sysdeps/mach/hurd/errnos.awk: Changed definition of _HURD_ERRNO
6765         to be correct.
6767         * sysdeps/mach/hurd/Makefile: use gawk, not awk.
6769         * mach/errsystems.awk: Generally rewrote the printf.  It's now
6770         closer to Roland's original, but without the $i mistake at all,
6771         in any form.
6773 Tue Nov 23 20:21:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6775         * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
6776         bsd/ultrix4/mips,bsd/vax}/sysdep.S: Define _ERRNO_H before
6777         including <errnos.h>; otherwise <errnos.h> does not define most
6778         macros (importantly, EAGAIN!).
6780 Tue Nov 23 12:43:38 1993  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
6782         * mach/errsystems.awk: $i is not an index; make i a variable and
6783         increment it properly.  Don't call `err_get_system'; use the
6784         system number as the index in the array directly. 
6786         * mach/errorlib.h: Added `const' in all the right places.
6787         * sysdeps/mach/hurd/err_hurd.sub: Cast _sys_errlist to
6788         the right type.  Better to declare it right in stdio/stdio.h, but
6789         I don't dare change that file lest Roland call me a twit.
6790         * mach/err_us.sub: Add more brackets to initializer to shut GCC up.
6792         * sysdeps/mach/hurd/err_hurd.sub: Delete keyword `const'; this
6793         is taken care of by the `#define static static const' found in
6794         errsystems.c as created by mach/errsystems.awk.
6795         * mach/errsystems.awk: Ditto for declaration of __mach_error_systems.
6797         * sysdeps/mach/hurd/err_hurd.sub: Change <errnos.h> to <errno.h>;
6798         errnos.h doesn't define most stuff unless it is included from errno.h.
6800         * mach/mach_error_string.c (mach_error_string_int): Delete unused
6801         variable `err_str'.
6803         * mach/mach_error_string.c (do_compat): Declare to be void.
6804         (mach_error_string,mach_error_type, mach_error_string_int):
6805         Declare return type as const char *.
6806         * mach/mach_error.h: Change declarations to match.
6808         * mach/errsystems.awk: The array that split creates is origin 1,
6809         not origin 0; fixed loop to match.
6811         * sysdeps/mach/hurd/errnos.awk: Ernst's awk doesn't grok 
6812         backslash-newline inside strings.  
6814 Sat Nov 20 19:02:25 1993  Brendan Kehoe  (brendan@zen.org)
6816         * math/__finite.c (__finite): Return __CONSTVALUE, to match math.h.
6817         * math/__scalb.c (__scalb): Likewise.
6818         * math/copysign.c (copysign): Likewise.
6819         * math/drem.c (drem): Likewise.
6820         * math/expm1.c (expm1): Likewise.
6821         * math/finite.c (finite): Likewise.
6822         * math/infnan.c (infnan): Likewise.
6823         * math/isinf.c (isinf): Likewise.
6824         * math/isnan.c (isnan): Likewise.
6825         * math/logb.c (logb): Likewise.
6826         * math/rint.c (rint): Likewise.
6827         * math/scalb.c (scalb): Likewise.
6828         * sysdeps/generic/atan.c (atan): Likewise.
6829         * sysdeps/ieee754/__copysign.c (__copysign): Likewise.
6830         * sysdeps/ieee754/__drem.c (__drem): Likewise.
6831         * sysdeps/ieee754/__isinf.c (__isinf): Likewise.
6832         * sysdeps/ieee754/__logb.c (__logb): Likewise.
6833         * sysdeps/ieee754/ldexp.c (ldexp): Likewise.
6834         * sysdeps/ieee754/log10.c (log10): Likewise.
6836         * setjmp/_longjmp (_longjmp): Add __NORETURN.
6837         * setjmp/longjmp (longjmp): Likewise.
6839 Thu Nov 18 04:16:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6841         * string/strerror.c (strerror): Call _strerror_internal to do the
6842         work, passing it a scratch buffer.
6843         * stdio/perror.c: Likewise.
6844         * string/Makefile (routines): Add _strerror.
6845         * sysdeps/generic/_strerror.c (_strerror_internal): New file.
6847         * configure.in (config.status): Make it pass its args to configure.
6849 Thu Nov 18 03:52:32 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
6851         * stdio/__vfscanf.c (__vfscanf): Put the floating point cases
6852         (e,E,f,g,G) inside #ifndef MIB_HACKS; roland thikgs strtod crashes
6853         the compiler.  Wheee.
6855 Thu Nov 18 03:21:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6857         * errno.h [__USE_GNU__]: Declare program_invocation_name and
6858         program_invocation_short_name.
6860 Thu Nov 18 00:07:37 1993  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
6862         * sysdeps/mach/hurd/start.c (start1): Don't add one to
6863         the return value of split_args; it counts them just fine by
6864         itself.  Do add one when sizing the arrays.
6866 Mon Nov 15 00:19:48 1993  Noel Cragg  (noel@geech.gnu.ai.mit.edu)
6868         * time/mktime.c: add TIMES_THROUGH_SEARCH variable to make sure
6869         that we don't get caught in an infinite loop (would be bad,
6870         indeed, for a library routine).
6872 Sun Nov 14 18:48:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6874         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Use
6875         `__attribute__', not `__attributes__'.
6876         Test __GNUC_MINOR__ < 6, not < 5.
6878 Wed Nov 10 05:39:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6880         * sysdeps/unix/morecore.c: Only declare sbrk #ifdef __GNU_LIBRARY__.
6881         Cast its return value.
6883         * sysdeps/unix/bsd/m68k/syscall.S: Use movel in place of moveal.
6885         * configure.in (signed size_t check): Don't use AC_DEFINE; do it
6886         by hand and insert -U__SIZE_TYPE__ before -D.
6888         * posix/unistd.h: Declare syscall.
6890         * sysdeps/m68k/fpu/__math.h (__isnan, __isinf): Use __CONSTVALUE
6891         in prototypes.
6893         * configure.in (Makefile): Write ARCH=`pwd`, rather than
6894         substituting in the directory name at configure time.
6896         * sysdeps/mach/i386/syscall.S: New file.
6898 Tue Nov  9 06:29:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6900         * configure.in (os = netbsd* | 386bsd*): base_os=unix/bsd/bsd4.4.
6901         Set --with-gnu-{ld,as} implicitly when base_os is bsd4.4.
6903         * Version 1.06.7.
6905         * misc/Makefile (routines): Add syscall.
6906         * sysdeps/unix/syscall.S, sysdeps/stub/syscall.c,
6907         sysdeps/unix/bsd/sun/m68k/syscall.S, sysdeps/unix/bsd/m68k/syscall.S,
6908         sysdeps/unix/i386/syscall.S: New files.
6909         * sysdeps/unix/bsd/hp/m68k/sysdep.h (DO_CALL): First arg
6910         is syscall number, not name.
6911         (PSEUDO): Pass POUND (SYS_ify (syscall_name)) to DO_CALL.
6912         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h (DO_CALL, PSEUDO):
6913         Likewise.  Also, do movel into d0 before linkw, so the argument
6914         could conceivably pop the stack.
6915         * sysdeps/unix/bsd/hp/m68k/__brk.S: Pass complete number to DO_CALL.
6917         * sysdeps/unix/sysv/Dist: sys_getdents.S was renamed s_getdents.S.
6919 Thu Nov  4 01:23:59 1993  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
6921         * string/stpncpy: Fix typo; according to gnu-stabs.h the name
6922         inside the DEFUN should be the *non* __ version.
6923         * sysdeps/generic/__stpncpy.c: Missing declaration of s.
6925 Wed Nov  3 09:35:30 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6927         * sysdeps/unix/Makefile ($(objpfx)errlist.c): Conditionalize these
6928         rules to be used only when errlist.c is otherwise a stub.
6930 Fri Oct 29 17:29:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6932         * string/stpncpy.c: New file.
6933         * sysdeps/generic/__stpncpy.c: New file.
6934         * string/Makefile (routines): Add stpncpy and __stpncpy.
6935         * string/string.h [__USE_GNU__]: Declare them.
6937 Thu Oct 28 17:13:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6939         * sysdeps/unix/errnos-tmpl.c (DO): If NAME is "EWOULDBLOCK",
6940         write "#define EWOULDBLOCK EAGAIN" and change NAME to
6941         "EWOULDBLOCK_sys".
6942         * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
6943         bsd/ultrix4/mips,bsd/vax}/sysdep.S [EWOULDBLOCK_sys]: Translate
6944         EWOULDBLOCK_sys into EAGAIN.
6945         * Makefile (distribute): Add move-if-change.
6946         * move-if-change: New file.
6948 Tue Oct 26 18:19:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6950         * misc/sys/cdefs.h: Define __NORETURN and __CONSTVALUE.
6951         For GCC 2.5 and later, use __attributes__ (({volatile,const})).
6952         * stdlib/stdlib.h: Don't define either here.
6953         * math/math.h: Likewise.
6954         * posix/unistd.h: Likewise.
6955         * time/time.h: Likewise.
6956         * stdio/stdio.h: Likewise.
6957         * setjmp/setjmp.h: Likewise.
6959         * posix/sys/wait.h (__WAIT_STATUS): Use union hack defn for GCC
6960         2.4 and up (testing __GNUC__ and __GNUC_MINOR__).
6962         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Don't include <limits.h>.
6964         * Makerules [inhibit-sysdep-asm] 
6965         (open-check-inhibit-asm, close-check-inhibit-asm): New variables.
6966         ($(+sysdir_pfx)sysd-rules): Use them around .s and .S rules.
6967         Depend on existing sysdep makefiles.
6969 Mon Oct 25 15:56:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6971         * sysdeps/mach/hurd/killpg.c: Include <sys/types.h> for pid_t.
6973         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Take new arg
6974         STREAMPTR.  When non-nil, use __open with O_EXCL to test for
6975         existence, and set *STREAMPTR to new stream on returned fd.
6976         * stdio/stdio.h: Update prototype.
6977         * sysdeps/stub/tempname.c: Here too.
6978         * stdio/tmpfile.c: Pass &F to __stdio_gen_tempname instead of
6979         using fopen.
6980         * stdio/tmpnam.c: Pass extra NULL arg.
6981         * stdio/tempnam.c: Likewise.
6983         * configure.in (switches): Only put --os-{release,version} here.
6984         (config.status): Write $configure_args in place of $config $switches.
6986         * signal/Makefile (routines): Renamed sigaltstack to sigaltstk.
6987         * sysdeps/stub/sigaltstack.c: Renamed to sigaltstk.c.
6988         * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: Renamed to sigaltstk.S.
6989         * sysdeps/unix/sysv/sys_getdents.S: Renamed to s_getdents.S.
6990         * sysdeps/unix/sysv/Makefile (sysdep_routines): Changed reference.
6992 Fri Oct 22 03:47:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
6994         * malloc/realloc.c [MEMMOVE_MISSING]: Test this to use safe_bcopy.
6995         [emacs]: Don't define safe_bcopy.
6997         * time/zdump.c, time/europe: New versions from ADO.
6999         * Rules (dont_distribute): Export this variable.
7000         (subdir_echo-distinfo): Echo its value for +nodist+.
7002 Thu Oct 21 15:58:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7004         * sysdeps/posix/__dup2.c: Include <limits.h>.
7005         [OPEN_MAX]: Fail with EBADF if FD2>=OPEN_MAX.
7007         * sysdeps/unix/Makefile (sys/param.h): Conditionalize all this
7008         code to happen only when there is no sysdep sys/param.h.
7010 Wed Oct 20 03:35:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7012         * Makerules (make-dummy-dep): Change to `ln $(objpfx)dummy.dep $@'.
7013         ($(objpfx)dummy.dep): Create new file containing comment.
7014         ($(objpfx)%.dep: $(objpfx)%.s): Depend on $(objpfx)dummy.dep.
7015         ($(+sysdir_pfx)sysd-rules): Likewise in generated rule.
7017 Mon Oct 18 04:22:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7019         * signal/signal.h (killpg): Make PGRP arg pid_t.
7020         * sysdeps/posix/killpg.c (killpg): Likewise.
7021         * sysdeps/stub/killpg.c (killpg): Here too.
7023         * posix/glob/configure.in: Use AC_HAVE_HEADERS instead of
7024         AC_MEMORY_H and AC_UNISTD_H; omit AC_USG (not needed).
7026         * Rules (generated): New target.
7028         * Makefile (subdirs): Use filters to put mach and hurd first in
7029         the list if they are in it at all.
7030         * Makerules (before-compile): Reorder similarly, matching any
7031         generated mach or hurd files.
7033 Fri Oct 15 17:57:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7035         * sysdeps/posix/mk-stdiolim.c [! OPEN_MAX]: Use _POSIX_OPEN_MAX
7036         for FOPEN_MAX value.
7037         [! PATH_MAX]: Use 1024 (twice _POSIX_PATH_MAX) for FILENAME_MAX value.
7039         * Makerules (in-Makerules): Define this variable before including
7040         sysd-Makefile.
7042 Sun Oct 10 14:31:35 1993  Jim Meyering  (meyering@comco.com)
7044         * posix/fnmatch.c [CONFIG_BROKETS]: Include <config.h> only under
7045         this condition, else "config.h".
7047 Tue Oct 05 16:08:39 1993  Jim Meyering  (meyering@comco.com)
7049         * time/mktime.c [CONFIG_BROKETS]: Include <config.h> only under
7050         this condition, else "config.h".
7052 Thu Sep 23 15:14:08 1993  Brendan Kehoe  (brendan@zen.org)
7054         * sysdeps/unix/sysv/sysv4/__dup2.c: New file.
7056 Wed Sep 22 16:58:29 1993  Brendan Kehoe  (brendan@zen.org)
7058         * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h: New file.
7059         * sysdeps/unix/sysv/sysv4/i386: New directory.
7060         * sysdeps/unix/sysv/sysv4/i386/statbuf.h: New file.
7062 Fri Sep 17 04:03:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7064         * Makerules (+make-deps): Put output in temp file and use atomic mv.
7066         * Makerules ($(+sysdir_pfx)sysd-rules): New target, the rule part
7067         of what was in sysd-Makefile.  Include it.
7068         ($(+sysdir_pfx)sysd-Makefile): Do just includes here.  Move the
7069         generated implicit rules to sysd-rules.  Put the output into a
7070         temp file and use atomic mv to final target.
7071         (before-compile): Filter out existing files from value, after
7072         sysd-Makefile but before sysd-rules.
7074 Thu Sep  9 22:28:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7076         * Makefile (%/configure): Copy rule from Make-dist.
7078 Mon Sep  6 19:57:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7080         * Makerules (sources, objects): Move override definitions to
7081         before +depfiles calculation.
7083         * time/{asia,australasia,europe,zdump.c}: New versions from ADO (93e).
7085 Mon Aug 30 13:40:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7087         * string/string.h (memmem): Reverse argument order, to be like strstr.
7088         * sysdeps/generic/memmem.c: Here too.
7090         * dirent/scandir.c: For error return, save errno around closedir.
7091         Call closedir (DP) before returning successfully.
7093 Thu Aug 26 19:26:06 1993  Brendan Kehoe  (brendan@zen.org)
7095         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h: Rewritten to not use
7096         the generic sparc sysdep.h.
7097         (PSEUDO): Use trap 8, not 0. Also just put %g0 in %o0, without
7098         subtracting 1.
7099         (ENTRY): Align on 4, and add a `.type' directive.
7100         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.S: New file.
7102 Fri Aug 20 19:37:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7104         * sysdeps/generic/abort.c: Remove unused variable ABORTING.
7106 Thu Aug 19 17:45:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7108         * Makeconfig [!objdir] [!..] (common-objdir): Set to `.'.
7110 Wed Aug 18 15:10:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7112         * stdio/__vfscanf.c (__vfscanf: number): Reverse sense of
7113         NUMBER_SIGNED conditional in assignment code.
7115 Mon Aug 16 15:49:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7117         * sysdeps/unix/Makefile (syscall.h): Add sed
7118         s/SYS_syscall_basenum/syscall_basenum/g.  SYSCALL_BASENUM is a
7119         macro both defined and used in <syscall.h>; we must undo our
7120         prependation of `SYS_'.
7122         * Version 1.06.6.
7124 Fri Aug 13 16:53:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7126         * stdio/__vfscanf.c: New local variable NUMBER_SIGNED.
7127         (%x, %X, %o, %u): Set it to zero.
7128         (%d, %i): Set it to one.
7129         (number): If NUMBER_SIGNED is set, use strtol and store in ...int*.
7130         If clear, use strtoul an store value in unsigned ...int*.
7132         * malloc/malloc.h: Undo last change (_AIX32).
7133         (memory_warnings): Use const instead of __const in prototype.
7135 Fri Aug 13 00:22:01 1993  John Grabowski  (johng@whiskey.media.mit.edu)
7137         * configure.in (os = osf1*): base_os=unix/bsd.
7139 Thu Aug 12 16:37:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7141         * malloc/valloc.c [__GNU_LIBRARY__ || _LIBC]: Include <stddef.h>
7142         before trying to use size_t to declare __getpagesize.
7143         Include <sys/cdefs.h> before trying to use __P.
7145         * posix/{fnmatch,glob}.c, malloc/malloc.h [HAVE_CONFIG_H]: Include
7146         <config.h> instead of "config.h".  This is so that a compilation
7147         using -I. -I$srcdir will use ./config.h rather than
7148         $srcdir/config.h (which it would do when glob.c was found in $srcdir).
7150         * malloc/malloc.h [_AIX32]: Use !__STDC__ defns of __P, const, __ptr_t.
7152 Mon Aug  9 16:56:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7154         * Makerules (-e check): Don't rely on $(findstring e,$(MAKEFLAGS))
7155         since that also trips for --no-print-directory.
7156         Instead actually see if -e's functionality is taking place.
7158         * malloc/realloc.c: Call _free_internal instead of free in most places.
7160         * configure.in (arg parsing): No spaces around = in eval.
7162         * sysdeps/i386/abort.c: New file.
7163         * stdlib/abort.c: Moved to sysdeps/generic/abort.c.
7164         (abort): Don't try to do stdio cleanup, since we can't guarantee
7165         it anyway.
7167 Fri Aug  6 17:59:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7169         * Makerules ($(+install)): Don't depend on installdirs.
7170         (make-target-directory): New define.
7171         (do-install): Do $(make-target-directory) beforehand.
7173 Tue Aug  3 02:22:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7175         * sysdeps/stub/sys/reboot.h: New file.
7176         * sysdeps/unix/bsd/sys/reboot.h: New file, snarfed from 4.4.
7177         * misc/Makefile (headers): Add sys/reboot.h.
7179         * stdio/stdio.h (__io_{read,write,seek,close,fileno}): Renamed to
7180         __io_*_fn, so as not to conflict with the Hurd mig stubs.
7181         * internals.c: Changed uses.
7183         * sysdeps/unix/bsd/signum.h (SIGINFO): Define as 29.
7185         * Makerules (+includes): Don't set this here.
7186         * Makeconfig (+includes): Put $(+sysdep-includes) in the value here.
7188         * posix/unistd.h [__USE_MISC]: Declare mktemp and mkstemp.
7190 Mon Aug  2 16:59:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7192         * malloc/valloc.c: Move getpagesize goop to before malloc.h.
7193         [_LIBC]: Test this as well as __GNU_LIBRARY__ (either one) to use
7194         __getpagesize instead of "getpagesize.h".
7196 Sun Aug  1 16:55:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7198         * configure.in (arg parsing): For `--with-foo=bar', do
7199         "with_foo='bar'".  For `--with-fnord', do "with_fnord=yes".
7200         * sysdeps/mach/configure: New file, groks `--with-mach=DIR'.
7202 Fri Jul 30 00:01:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7204         * configure.in (os = gnu*): Set $base_os, not $os, to mach/hurd.
7206 Thu Jul 29 17:46:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7208         * ctype/ctype.h (__isctype): Don't test !=0, to avoid possible
7209         extra test insn.
7211 Sun Jul 25 22:19:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7213         * setjmp/setjmp.h [! __FAVOR_BSD] (_longjmp): Define as longjmp.
7215 Thu Jul 22 14:57:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7217         * sysdeps/unix/bsd/osf1/sigaction.h: New file.
7219         * sysdeps/stub/signum.h: Deansideclized.
7220         * sysdeps/stub/pipestream.c (pclose): Test STREAM->__ispipe
7221         instead of __ispipe (STREAM).
7222         * sysdeps/stub/__wait3.c: Fix arg types.
7223         * sysdeps/stub/__ioctl.c: Add missing close paren.
7224         * sysdeps/stub/__getpgsz.c: Include <stddef.h> for size_t.
7225         * sysdeps/stub/__get[gu]id.c: Include <sys/types.h>; fix return type.
7226         * sysdeps/stub/__set[gu]id.c: Include <sys/types.h>; fix arg type.
7227         * sysdeps/stub/__mknod.c: Include <sys/types.h>; fix arg types.
7229         * sysdeps/generic/termbits.h (INLCR, ISTRIP): Fixed typo'd values.
7231         * stdio/stdio.h (vprintf): Fix last arg type to __gnuc_va_list.
7232         * stdio/vprintf.c (vprintf): Here too.
7234         * malloc/malloc.c (malloc) [SUNOS_LOCALTIME_BUG]: Put this crap
7235         after hook and initialization.
7237         * stdio/stdio.h (__validfp): Use a little anonymous struct to find
7238         the real stream ptr from in glue stream.  It used to rely on using
7239         `((int *) STREAM)[1]'; but that assumes no struct padding, and
7240         there will be some when int is 32 bits and pointers are 64.
7242         * malloc/mtrace.c: Use %lx instead of %x for `size_t' formats.
7244 Wed Jul 21 18:20:41 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
7246         * malloc/malloc.c (malloc): Handle SUNOS_LOCALTIME_BUG.
7248 Wed Jul 21 16:42:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7250         * time/Makefile (extra-objs): Remove gratuitous - in `z.%'.
7252         * Makefile [+gnu-stabs] (generated): Add $(objpfx)munch-init.c.
7253         (distclean): Also remove sysd-Makefile and sysd-dirs in $(objpfx).
7254         (distclean) [objdir]: Also remove $(objpfx)Makefile.
7256         * sysdeps/posix/Makefile (generated): Add $(common-objpfx)mk-stdiolim.
7257         (generated, before-compile): Take defns out of ifeq ($(subdir),posix).
7259         * sysdeps/unix/common/Makefile (generated): Include ctype-glue.c,
7260         not glue-ctype.c.
7262         * sysdeps/unix/configure (unix_generated): New variable; collect
7263         names of created files in it.
7264         (config_vars): Write an assignment for `unix-generated' to that list.
7265         * sysdeps/unix/Makefile (generated): Append $(unix-generated)
7266         (with either $(objpfx) or $(sysdep_dir)/unix/ prepended to each file).
7268         * Makefile (clean): Pass no_deps=t to subdir_clean make.
7270 Sun Jul 18 21:42:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7272         * malloc/malloc.c (malloc): After getting more core, recompute
7273         BLOCK before adding to _heapinfo[BLOCK].free.size.
7275 Fri Jul 16 16:32:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7277         * stdlib/Makefile (generated): Prepend $(objpfx).
7278         * sysdeps/unix/sysv/Makefile (generated): Likewise.
7280         * sysdeps/posix/mktemp.c: Return when stat fails with ENOENT, not
7281         when it succeeds.
7283 Wed Jul 14 14:51:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7285         * locale/localeconv.c: Fix copying notice to LGPL.
7287 Mon Jul 12 21:58:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7289         * malloc/mcheck.c (reallochook): Set HDR->magic to MAGICWORD.
7291 Mon Jul  5 15:55:08 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
7293         * malloc/realloc.c (memmove): Swap the args when calling safe_bcopy.
7295 Thu Jul  1 16:26:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7297         * malloc/malloc.c [_LIBC] (_malloc, _free, _realloc): Define these
7298         functions to just call malloc, free, and realloc, respectively.
7300 Wed Jun 30 16:42:10 1993  Torbjorn Granlund  (tege@gnu.ai.mit.edu)
7302         * sysdeps/generic/memcmp.c (memcmp_bytes): New function for
7303         little endian machines.
7304         (memcmp_common_alignment, memcmp_not_common_alignment): Rework
7305         code computing return values.
7307 Wed Jun 30 14:42:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7309         * sysdeps/unix/Makefile (local_lim.h): Only generate local_lim.h
7310         if the sysdep version would be stub.
7312         * sysdeps/unix/mk-local_lim.c: #include <stdio.h> before all else.
7314         * configure.in (config_{machine,vendor,os}): Store config.sub's
7315         output in these new variables.
7316         (machine, vendor, os): Set these from those.
7317         (config-name.h, config.make): Write $config_* (the original values
7318         from config.sub).
7320         * sysdeps/unix/sysv/sysv4/pgrpsys.S: Add arg count (3).
7322 Tue Jun 29 02:47:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7324         * Version 1.06.4.
7326 Mon Jun 28 00:37:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7328         * stdio/internals.c (__stdio_check_funcs): New function, broken out
7329         of init_stream.
7330         (init_stream): Call it.
7331         * sysdeps/posix/pipestream.c (popen): Call __stdio_check_funcs
7332         before frobnicating STREAM's functions.
7334         * sysdeps/posix/pipestream.c (pclose): Free C, our data structure,
7335         not STREAM->__cookie after it's been restored.
7337         * sysdeps/generic/strchr.c: Check for '\0' as well as C, in initial
7338         byte-by-byte loop.
7340         * conf/portability.h: #undef BSD.
7342 Sun Jun 27 23:46:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7344         * sysdeps/unix/bsd/m68k/__wait.S [__motorola__]: Use Motorola syntax.
7345         * sysdeps/unix/bsd/m68k/sysdep.S: Likewise.
7346         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
7347         * sysdeps/m68k/__longjmp.c (__longjmp) [__motorola__]: Use
7348         Motorola syntax in jmp insn.
7350 Fri Jun 25 16:17:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7352         * sysdeps/{stub,posix,unix/sysv/sysv4}/__sysconf.c (__sysconf):
7353         For _SC_TZNAME_MAX, just return __tzname_max ().
7354         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Define __sysconf, not
7355         sysconf.  For _SC_TZNAME_MAX, just jump to __tzname_max.
7357         Undo June 21 change that made __tzname_max a variable
7358         and expected TZNAME_MAX to sometimes be defined.
7359         POSIX.1 does not require that it be defined; sysconf is enough.
7360         * time/time.h (__tzname_max): Declare as a function.
7361         * posix/posix1_lim.h: Don't include <tzname_max.h>.
7362         * sysdeps/stub/tzname_max.h: File removed.
7363         * time/Makefile (headers): Remove tzname_max.h.
7364         (distribute): Remove make-tzlim.c.
7365         (extra-objs): Remove make-tzlim.o and make-tzlim.
7366         ($(common-objpfx)tzname_max.h): Target removed.
7367         * time/make-tzlim.c: File removed.
7368         * time/__tzset.c (__tzname_cur_max): Define this variable instead
7369         of __tzname_max.
7370         (__tz_compute): Set __tzname_cur_max, not __tzname_max.
7371         (__tzname_max): New function.
7372         * time/tzfile.c (compute_tzname_max): Set __tzname_cur_max, not
7373         __tzname_max.
7375         * malloc/malloc.h [_MALLOC_INTERNAL] [! (_LIBC || STDC_HEADERS || USG)]
7376         (memmove): Don't define.
7377         * malloc/realloc.c [!_LIBC && !STDC_HEADERS && !USG] (safe_bcopy):
7378         New static function.
7379         (memmove): Define to safe_bcopy.
7381 Wed Jun 23 15:10:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7383         * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: New file, #include sysv4 file.
7384         * sysdeps/unix/sysv/sco3.2.4/Dist: New file, list pgrpsys.S.
7386 Tue Jun 22 02:44:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7388         * sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Use
7389         pgrpsys instead of sco_pgrp.
7390         * sysdeps/unix/sysv/sco3.2.4/{Dist,sco_pgrp.S}: Files removed.
7391         * sysdeps/unix/sysv/sco3.2.4/__{getpgrp,setpgrp,setsid}.c: Just
7392         include the respective unix/sysv/sysv4 files.
7394         * sysdeps/unix/sysv/sysv4/pgrpsys.S: New file.
7395         * sysdeps/unix/sysv/sysv4/__getpgrp.c: New file.
7396         * sysdeps/unix/sysv/sysv4/__setpgrp.c: New file.
7397         * sysdeps/unix/sysv/sysv4/__setsid.c: New file.
7398         * sysdeps/unix/sysv/sysv4/Dist: Add pgrpsys.S.
7399         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Add pgrpsys.
7401         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Moved from unix/sysv/sysv4.
7402         * sysdeps/unix/{bsd/sun/sunos4,bsd/ultrix4,sysv/linux}/__setsid.S:
7403         Include bsd4.4 instead of sysv4 file.
7405 Mon Jun 21 19:08:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7407         * posix/posix1_lim.h: #include <tzname_max.h>.
7408         * sysdeps/stub/tzname_max.h: New file (no-op).
7409         * time/make-tzlim.c: New file.
7410         * time/Makefile (headers): Add tzname_max.h.
7411         (distribute): Add make-tzlim.c.
7412         (extra-objs): Add make-tzlim.o and make-tzlim.
7413         ($(common-objpfx)tzname_max.h): New target.
7415         * sysdeps/unix/sysv/sco3.2.4/confname.h (_SC_TZNAME_MAX): Define.
7416         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Detect arg being
7417         _SC_TZNAME_MAX, and return max of TZNAME_MAX and __tzname_max.
7419         * sysdeps/stub/__sysconf.c: Include <time.h> and <limits.h>.
7420         Handle _SC_TZNAME_MAX and return max of TZNAME_MAX and __tzname_max.
7421         * sysdeps/posix/__sysconf.c: Change _SC_TZNAME_MAX code to that.
7422         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
7424         * time/time.h (__tzname_max): Declare as variable, not function.
7425         * time/__tzset.c (__tzname_max): Function removed.
7426         (__tz_compute): Set the __tzname_max variable.
7427         * time/tzfile.c (compute_tzname_max): New function.
7428         (__tzfile_{read,default}): Call it.
7430 Sun Jun 20 18:32:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7432         * time/zic.c, time/asia: New versions from ADO.
7434 Wed Jun 16 17:24:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7436         * Version 1.06.3.
7438 Fri Jun 11 15:44:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7440         * sysdeps/unix/bsd/m68k/__pipe.S: Use `movel' instead of `moveal',
7441         which sun3 as does not appear to grok.
7442         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
7444 Thu Jun 10 20:23:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7446         * sysdeps/m68k/Makefile (as-pipe-ok): Define if -pipe is used in
7447         compiler invocations, or if using GNU as.
7448         (compile-command.S): Define using a pipe if `as-pipe-ok' is defined,
7449         otherwise with a temporary file.
7451         * Makeconfig (gnu-as): Define if -DHAVE_GNU_AS appears in $(CPPFLAGS).
7453 Wed Jun  9 15:14:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7455         * configure.in (os frobnication): Turn underscores as well as
7456         lowercase Vs into dots in os name.
7458         * sysdeps/unix/start.c [__GNUC__] (_start): Use asm name "start"
7459         only if [! NO_UNDERSCORES].
7461 Tue Jun  8 14:51:00 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
7463         * sysdeps/unix/bsd/ultrix4/mips/__handler.S: Don't save the stack
7464         pointer.
7466 Mon Jun  7 21:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7468         * time/Makefile (tzcompile): Remove -d switch, since zic-cmd has one.
7470         * time/{private.h,zic.c}: New versions from ADO.
7472         * sysdeps/unix/bsd/hp/m68k/__brk.S (error): Renamed label from `1',
7473         (__brk): Use DO_CALL instead of movel and trap.
7475         * sysdeps/unix/bsd/sony/newsos4: Renamed sysdeps/unix/bsd/sony/newsos.
7476         * sysdeps/unix/bsd/sony/m68k/{Implies,sysdep.h}: Moved there.
7478         * sysdeps/unix/bsd/hp/m68k/sysdep.h (DO_CALL): New macro, broken
7479         out of PSEUDO.
7480         (PSEUDO): Use it.
7481         * sysdeps/unix/bsd/sony/newsos4/m68k/sysdep.h
7482         (DO_CALL, PSEUDO): Likewise.
7484         * configure.in: Set --with-gnu-{ld,as} for os=bsd4.4.
7486 Fri Jun  4 14:11:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7488         * sysdeps/i386/{strlen,memchr}.c: Use `repnz' instead of `repne'.
7490         * time/Makefile (zonenames): Rename zones-* to z.* so they all fit
7491         in 14 chars.
7492         (extra-objs): Here too.
7494         * sysdeps/unix/sysv/direct.h (D_RECLEN): New macro.
7495         * sysdeps/unix/readdir.c (D_RECLEN): If not defined, define to use
7496         `d_reclen' member.
7497         (readdir): Use D_RECLEN (DP) in place of DP->d_reclen.
7499 Thu Jun  3 16:54:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7501         * sysdeps/m68k/bytesex.h: New file.
7503         * sysdeps/unix/ioctls-tmpl.c [sony_news]: Define KANJI before
7504         including <sys/ioctl.h>.
7506 Wed Jun  2 17:45:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7508         * malloc/Makefile (%.gz): Renamed target from %.z; use -v flag.
7509         (malloc/ChangeLog): Use mv -f.
7511 Mon May 31 21:49:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7513         * Version 1.06.2 released.
7515         * manual/Makefile: Remove all uses of $(objpfx).  Since the
7516         generated files are distributed, they reside in the source
7517         directory.
7519         * malloc/mtrace.c: #include <stdio.h>; malloc.h no longer does.
7521         * sysdeps/posix/sleep.c: Restore signal mask to OSET before
7522         returning.  Save errno on entry and restore it before returning.
7524         * Makeconfig (zonedir): New variable.
7525         * time/Makefile (localtime-file, posixrules-file, install-others,
7526         $(localtime-file), $(posixrules-file), tz-cc): Use $(zonedir) in
7527         place of $(datadir)/zoneinfo.
7528         (tzcompile): Omit -d switch.
7529         (zic-cmd): Add `-d $(zonedir)'.
7531 Sun May 30 20:04:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7533         * sysdeps/posix/stdio_init.c: (int)cookie is FD, not *(int*)cookie. 
7535         * time/Makefile ($({localtime,posixrules}-file)): Don't pass -d
7536         switch (no need, since directory is compiled into zic).  Don't use
7537         $(<F) to find arg for -{l,p}; just use $({localtime,posixrules}).
7539         * Makerules ($(libdir)/libc.a): Depend on installdirs.
7541         * malloc/malloc.c (malloc): #if 0 out ``if (SIZE == 0) return NULL''.
7543         * malloc/malloc.h [_MALLOC_INTERNAL]: Don't include <stdio.h>.
7544         [_MALLOC_INTERNAL]: Move config.h, limits.h, and mem* to front of file.
7545         (NULL): Move after stddef.h.
7547         * malloc/valloc.c: Don't include config.h; malloc.h already did.
7549         * malloc/malloc.c: Undo rms's change.
7551         * malloc/mcheck.c, malloc/malloc.h: Undo rms's change.
7553 Sat May 29 13:04:38 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
7555         * malloc/malloc.c (malloc) [emacs]: If size is 0, make it 1.
7557         * malloc/malloc.h (CONST): Define this always,
7558         rather than `const' sometimes.
7559         (memory_warnings): Use CONST, not __const, in decl.
7560         * malloc/mcheck.c (checkhdr): Use CONST, not const.
7562 Fri May 28 18:29:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7564         * sysdeps/unix/Makefile (ioctls): Use fgrep instead of egrep to
7565         omit unwanted symbols.  Filter the list of them through sort|uniq
7566         to remove duplicates first.
7568         * sysdeps/unix/Makefile (errlist.c): Use dir and notdir
7569         functions to guarantee qualified path name for make_errlist.
7571 Thu May 27 17:05:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7573         * Version 1.06.1.
7575         * sysdeps/sparc/Dist: Include sdiv.S, not div.S.
7577         * sysdeps/unix/common/Dist: Remove make_siglist.c.
7579         * stdio/internals.c: Declare __stdio_fileno before reference.
7581         * sysdeps/generic/{memchr,strchr,strlen}.c: Abort if words are
7582         bigger than 64 bits.
7584 Wed May 26 14:44:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7586         * Makerules [objects] (install-others): Don't add libc.a to this.
7587         (install): Depend on $(libdir)/libc.a.
7588         (intall-no-libc.a): New target, depends on $(+install).
7589         (install): Don't depend on $(+install), just on install-no-libc.a.
7590         * Rules (subdir_install): Depend on install-no-libc.a, not install.
7592         * Makefile ($(libc.a)): Don't depend on subdir_lib.
7593         (lib-noranlib): Depend on subdir_lib.
7595         Make `fileno' a per-FILE io operation.
7596         * stdio/stdio.h (__io_fileno): New typedef.
7597         (__io_functions): Add `__fileno' member.
7598         (struct __stdio_file): Remove `__fileno' member.
7599         [__USE_POSIX] [__OPTIMIZE__]: Remove fileno macro defn.
7600         [__USE_POSIX] (fileno): Remove `const' from arg in prototype.
7601         * stdio/fileno.c (fileno): Rewritten to call STREAM's __fileno fn.
7602         * sysdeps/stub/sysd-stdio.c (__stdio_fileno): New function.
7603         (__stdio_open): Return an int (zero for win, nonzero for lose),
7604         and make third arg PTR * (filled in with cookie).
7605         * stdio/stdio.h (__stdio_open): Changed prototype.
7606         * sysdeps/posix/sysd-stdio.c (__stdio_open): Likewise.
7607         (__stdio_{read,write,seek,close}): Use (int) COOKIE as the fd, rather
7608         than *(int *) COOKIE.
7609         (__stdio_fileno): New function; just returns (int) COOKIE.
7610         * sysdeps/posix/fdopen.c: Set cookie to (PTR) FD; don't set fileno.
7611         * stdio/vdprintf.c: Likewise.
7612         * stdio/fmemopen.c: Set STREAM->__io_funcs.__fileno to NULL.
7613         Set STREAM->__cookie to NULL and don't use STREAM->__fileno.
7614         * stdio/internals.c (__default_io_functions): Add __stdio_fileno.
7615         * sysdeps/posix/defs.c (stdstream): Initialize __cookie to (PTR) FD
7616         Remove __fileno initializer.
7617         Add NULL initializer for __io_funcs.__fileno.
7618         * sysdeps/posix/pipestream.c (struct child): Remove `fd' member.
7619         Add `cookie' and `funcs' members.
7620         (FUNC): Macro to define child io_funcs.
7621         (child_funcs): New variable, __io_functions struct of them.
7622         (popen): Store STREAM's original cookie and io_funcs in CHILD, and
7623         then set STREAM->__cookie to CHILD and stream->__io_funcs to
7624         child_funcs.
7625         (pclose): Restore STREAM's original cookie and io_funcs before
7626         calling fclose.
7628         * configure.in (autoconf checks): Add new check for a
7629         libc-friendly stddef.h.
7631         * sysdeps/unix/configure: Remove __getpgrp from list of syscalls.
7633         * sysdeps/generic/memchr.c: Handle 64-bit longwords.
7634         * sysdeps/generic/strlen.c: Likewise.
7635         * sysdeps/generic/strchr.c: Likewise.
7637         * sysdeps/unix/sysv/sco3.2.4/Makefile: Remove gratuitous `.c'.
7639         * Makerules [objects] (install-others): Add $(libdir)/libc.a to
7640         this, instead of adding $(libc.a) to install-lib.
7641         ($(libdir)/libc.a): New target to install from $(libc.a).
7643         * sysdeps/unix/sysv/sco3.2.4/__setsid.S: New file.
7644         * sysdeps/unix/bsd/bsd4.4/__setsid.S: New file.
7646 Mon May 24 16:49:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7648         * sysdeps/unix/sysv/linux/__setsid.S: Moved to unix/sysv/sysv4,
7649         and replaced with #include of that.
7650         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: New file.
7651         * sysdeps/unix/bsd/ultrix4/__setsid.S: New file.
7653         * posix/Makefile (install): Define to getconf.
7655         * crypt: New version from glad.
7657         * sysdeps/unix/sysv/sysv4/__sysconfig.S: Renamed to sysconfig.S.
7658         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Change reference.
7659         * sysdeps/unix/sysv/sysv4/Dist: Add sysconfig.S.
7661         * sysdeps/generic/Makefile (siglist.c): Use dir and notdir
7662         functions to guarantee qualified path name for make_siglist.
7664         * time/Makefile (tzcompile): Use $(@D) for target directory, not
7665         reference to nonexistent 4th dep.
7666         (localtime-file, posixrules-file): Turn these into absolute names.
7667         (install-others): Simply refer to them.
7668         ($(datadir)/zoneinfo/{localtime,posixrules}): Change targets of
7669         these rules to $(localtime-file) and $(posixrules-file), respectively.
7670         Use $(<D) for directory to pass zic.
7672         * Makerules (installdirs): Use `sort' function to uniquize list of
7673         directories. 
7675         * time/Makefile (install-others): Use $(datadir)/zoneinfo, not
7676         $(datadir)zoneinfo (missing /).
7678         * Makerules (install-lib): Refer to `$(libc.a)' instead of `libc.a'.
7680         * setjmp/sigjmp_save.c: Renamed to sigjmp.c.
7681         * setjmp/Makefile (routines): Change reference.
7683         * sysdeps/unix/common/Makefile (siglist.c, make_siglist): Targets
7684         removed.
7685         * sysdeps/unix/common/make_siglist.c: File removed.
7687 Sun May 23 01:00:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7689         * manual/Makefile (minimal-dist): Remove COPYING.LIB.
7690         (doc-only-dist): Put it here.
7692 Sun May 23 00:12:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7694         * Version 1.06 released.
7696         * sysdeps/sparc/Dist: Add {u,}{div,rem}.S.
7698 Sat May 22 18:17:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7700         * sysdeps/generic/make_siglist.c (main): Call signame_init, not
7701         init_sigs.
7703         * Makerules (native-compile): Compile $^, not just $<.
7705         * sysdeps/unix/i386/sysdep.h (PSEUDO): Omit `.text'.  Some
7706         assemblers don't like `.text; ...'.
7708         * Rules (all): Mention as target first, so it is the default goal.
7710         * sysdeps/unix/i386/sysdep.S: #undef syscall_error before using it
7711         as a label.
7712         [NO_UNDERSCORES]: Define __syscall_error instead of syscall_error.
7714         * sysdeps/unix/readdir.c: Decrement d_namlen until it no longer
7715         includes any nulls.
7717         * Makerules (+install-dirs): Variable removed.
7718         (install): Don't depend on $(+install-dirs).
7719         (installdirs): New target, to make $(dir $(+install)) using
7720         mkinstalldirs.  Make $(+install) depend on it.
7721         * Makefile (distribute): Add mkinstalldirs.
7722         * mkinstalldirs: New file.
7724         * manual/Makefile (installdirs):
7725         New target, using mkinstalldirs to create $(infodir).
7726         ($(infodir)/libc.info): Depend on installdirs.
7727         (minimal-dist): Remove Makefile.
7728         (doc-only-dist): New variable, containing Makefile and mkinstalldirs.
7729         (*.tar): Depend on $(doc-only-dist).
7731 Sat May 22 16:31:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7733         Compile zoneinfo files directly into $(datadir)/zoneinfo, rather
7734         than compiling them into the source directory and then copying.
7735         * time/Makefile (zones-%): Put targets of generated rule in
7736         $(datadir)/zoneinfo, not zoneinfo.
7737         Don't make generated rules depend on zoneinfo/.
7738         (zonenames, zones-%): Write into $@.new and then use atomic mv.
7739         (zones, zoneinfo): Targets removed.
7740         (zoneinfo/localtime, zoneinfo/posixrules): Change targets to be in
7741         $(datadir)/zoneinfo; find $(localtime) and $(posixrules) there as well.
7742         ($(localtime-file), $(posixrules-file)): Targets removed.
7743         (install-data): Definition removed.
7744         (install-others): Include $(zonenames) from $(datadir)/zoneinfo; and
7745         $(localtime-file) and $(posixrules-file), from $(datadir)/zoneinfo
7746         if they are not absolute file names.
7748         * time/zic.c (dolink): If FROMFILE or TOFILE begins with a slash,
7749         just set {FROM,TO}NAME to it, instead of prepending DIRECTORY.
7750         Don't free {FROM,TO}NAME if it is {FROM,TO}FILE.
7752 Fri May 21 13:23:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7754         * sysdeps/unix/i386/sysdep.S: Paste : onto syscall_error.
7756         * sysdeps/unix/configure: Use grep -i when looking for syscalls.
7757         (unix_syscall_h): Ignore syscall.h found in sysdeps/stub.
7758         Remove __setpgrp from list of syscalls.
7760         * sysdeps/unix/Makefile ($(common-objpfx)sys/param.h): Write defn
7761         for MAXHOSTNAMELEN.  The kludgemeister strikes again.
7763         * posix/Makefile (glob/ChangeLog): Use mv -f.
7765         * configure.in (os frobnication): Translate numbers separated by
7766         `v's into numbers separated by dots.
7768         * sysdeps/unix/sysv/sco3.2.4/syscall.h: New file.
7770         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Rewritten to do the
7771         canonical wait3-style magic.
7773         * sysdeps/unix/sysv/sco3.2.4/{Makefile,Dist,sco_pgrp.S,
7774         __getpgrp.c,__setpgrp.c,__setsid.c}: New files.
7776         * Makerules ($(common-objpfx)stub-$(subdir)): Add /dev/null to
7777         inner sed command.
7779         * manual/Makefile ($(objpfx)%.info, $(objpfx)%.dvi): New rules.
7780         ($(infodir)/libc.info): Take basename of each $<* before using it.
7781         (glibc-targets): Add stubs.
7782         (stubs, $(common-objpfx)stub-manual): New targets.
7784         * time/Makefile (distribute): Add yearistype.
7785         * time/yearistype: New file.
7787         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Don't use ARGS_4
7788         macro; just set %ecx to %esp instead.  Pop the stack before doing
7789         the system call, so the add doesn't clear the condition codes.
7791         * sysdeps/unix/start.c [HAVE_GNU_LD]: Put `start' symbol alias
7792         under [! NO_UNDERSCORES && ! __GNUC__].
7794         * sysdeps/unix/sysdep.h (C_LABEL): Use ## to paste NAME and : together.
7796         * sysdeps/unix/i386/sysdep.h (DO_CALL): Add missing backslash.
7798 Thu May 20 18:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7800         * Makefile ($(+subdir_targets)): Remove old rule.  Replace with
7801         static pattern rule to depend on DIR/TARGET for each subdir and target.
7802         (all-subdirs-targets): Define variable to contain names of all
7803         those targets.
7804         ($(all-subdir-targets)): Define rule for these to do sub-make.
7806         * sysdeps/unix/sysv/sysv4/direct.h (D_NAMLEN): Subtract one for
7807         the terminating null character.
7808         * sysdeps/unix/sysv/sco3.2.4/direct.h (D_NAMLEN): Copy defn from
7809         that file.
7811 Thu May 20 11:02:59 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
7813         * sysdeps/posix/__getpgsz.c: New file.
7814         * sysdeps/unix/sysv/sysv4/__getpgsz.c: New file, include the posix one.
7815         * sysdeps/posix/__getdtsz.c: New file.
7816         * sysdeps/unix/sysv/sysv4/__getdtsz.c: New file, include the posix one.
7818         * sysdeps/unix/sysv/sysv4/{__sysconf.c, __sysconfig.S,
7819         sysconfig.h, Makefile, Dist}: New files.
7821         * sysdeps/generic/confname.h (enum for sysconf): Add _SC_PAGESIZE.
7822         * sysdeps/posix/__sysconf.c: Include stddef.h.
7823         (__getpagesize): Declare.
7824         (__sysconf, case _SC_PAGESIZE): Call __getpagesize.
7826 Wed May 19 14:03:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7828         * manual/Makefile (routines, aux, sources, objects, headers):
7829         Define empty.
7831         * Makeconfig (infodir): Define.
7832         * Makefile (+other_dirs): Add manual.
7833         * manual/Makefile: Include ../Makeconfig if it exists.
7834         (subdir): Export it.
7835         (find-includes): Output variable name is $(@F), not $@.
7836         (distribute): Export it.
7837         (mostlyclean, distclean, realclean, clean, subdir_clean): New targets.
7838         (install, subdir_install): New targets.
7839         (infodir, prefix, INSTALL_DATA, INSTALL): Define vars if undefined.
7840         ($(infodir)/libc.info): New target.
7841         (dist): Use ../Make-dist if it exists.
7842         (glibc-targets): New variable.
7843         ($(glibc-targets)): Make no-op targets.
7845         * config.guess: New file, maintained by Cygnus.
7846         * configure.in: Move AC_PREPARE before arg lossage check.
7847         If $target is unset, try setting it from config.guess.
7848         * Makefile (distribute): Add config.guess.
7850         * inet/getnetbyad.c: Change first arg type to int32_t.
7851         * inet/inet_mkadr.c: Change arg types to u_int32_t.
7852         * inet/inet_lnaof.c: Change return type to u_int32_t.
7853         * inet/inet_net.c: Likewise.
7854         * inet/inet_netof.c: Likewise.
7855         * inet/res_send.c, inet/res_query.c, inet/res_mkqry.c,
7856         inet/res_init.c, inet/res_debug.c, inet/res_comp.c,
7857         inet/inet_addr.c, inet/herror.c, inet/gethstnmad.c, inet/resolv.h,
7858         inet/netdb.h, inet/arpa/nameser.h, inet/arpa/inet.h:
7859         Snarfed latest code from BIND 4.9.1.
7860         * inet/sys/bitypes.h: New file.
7861         * conf/portability.h: New file.
7862         * inet/Makefile (headers): Add sys/bitypes.h.
7863         (distribute): Define to ../conf/portability.h.
7865         * mach/__msg_destroy.c: Renamed to __msg_dest.c.
7866         * mach/mig_syms.c: Renamed from mig_support_syms.c.
7867         Added symbol alias for mig_strncpy.
7868         * mach/__mig_strncpy.c: Renamed to mig_strncpy.c.
7869         * mach/mig_strncpy.c: File removed.
7870         * mach/Makefile (routines): Remove __mig_strncpy; change
7871         mig_support_syms to mig_syms; change __msg_destroy to __msg_dest.
7873         * sysdeps/posix/Makefile: Replace instances of `objpfx' and
7874         `objdir' with `common-objpfx' and `common-objdir'.
7876 Mon May 17 16:29:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7878         * time/asctime.c: Replace ` %2d' with `%3d' in FORMAT.
7879         (asctime): Check return from sprintf being <0, not <25.
7881         * sysdeps/unix/opendir.c: Include <stdio.h> for BUFSIZ.
7883         * sysdeps/unix/i386/sysdep.h (PSEUDO): Put ; after DO_CALL use.
7885         * sysdeps/i386/ffs.c: Use `nonzero' for asm label, instead of `1f'.
7887 Sun May 16 17:59:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
7889         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Don't get fancy with
7890         xchg; just push $trampoline and then push our args again, pop them
7891         after the system call.
7893         * time/tzfile.c (__tzfile_default): Don't assume TYPES[0] is
7894         standard and TYPES[1] is DST.  Instead, loop through all types:
7895         if a type's isdst flag is set, set its idx to STDLEN and its
7896         offset to DSTOFF; if isdst is clear, set its idx to 0 and its
7897         offset to STDOFF.
7899         * time/__tzset.c: When __tzfile_default returns having set
7900         __use_tzfile, set __tzset_run before returning.
7902         * sysdeps/posix/sleep.c: Block SIGALRM with sigprocmask before
7903         changing its handler.  Use sigaction instead of signal to set the
7904         handler.  Use sigsuspend to restore the blocked signals and pause
7905         atomically, instead of using pause.  Be sure to disable the alarm
7906         when a signal other than SIGALRM wakes sigsuspend.
7908         * time/Makefile (zic-cmd): Put the directory before the nondirectory.
7910         * Makerules (stubs): Remove surrounding `ifdef +depfiles'...`endif'.
7912         * time/Makefile: Include ../Makeconfig before trying to use $(objpfx).
7914         * time/tzfile.c (__tzfile_compute): When there are transitions and
7915         TIMER is not before the first one, find the first transition after
7916         TIMER, and then set I to the type of the transition before it.
7917         Set INFO from types[I], not types[type_idxs[I]].
7919         * posix/Makefile (glob/configure): cd to glob before running autoconf.
7921         * time/__tzset.c (compute_change): Don't add 1900 to YEAR.
7922         (__tz_compute): Add 1900 to the year we pass to compute_change.
7924         * time/gmtime.c: After calling __offtime, zero tm_gmtoff and set
7925         tm_zone to "GMT".
7927         * time/time.h [__OPTIMIZE__]: Remove gmtime macro version.
7929         * time/tzfile.c (__tzfile_default): Fail if NUM_TYPES < 2, not if
7930         NUM_TYPES != 2.
7932         * time/tzfile.c (__tzfile_compute): Don't take arg TM.
7933         Instead take new args long int *LEAP_CORRECT and int *LEAP_HIT.
7934         Don't apply leap second correction to __timezone; instead set
7935         *LEAP_CORRECT and *LEAP_HIT.
7936         * time/__tzset.c (tzset_run): Renamed to __tzset_run, made global.
7937         (__tzset): Change uses.
7938         (__tz_compute): Change use here as well.
7939         Make second arg be a `const struct tm *'.  Don't call __tzfile_compute.
7940         * time/localtime.c: Call __tzset if __tzset_run is clear.
7941         New local vars LEAP_CORRECTION and LEAP_EXTRA_SECS.
7942         If __use_tzfile is set, call __tzfile_compute and pass it their
7943         addresses.  Only need to call gmtime if __use_tzfile is clear.  If
7944         it is clear, pass result of gmtime to __tz_compute, instead of
7945         dereferencing it first; and zero LEAP_CORRECTION and LEAP_EXTRA_SECS.
7946         Subtract LEAP_CORRECTION from __timezone in __offtime call.
7947         After __offtime, add LEAP_EXTRA_SECS to TP->tm_sec.
7949         * sysdeps/generic/strsep.c: Increment END when writing a null to
7950         it, and set *STRINGP to END rather than END+1, so *STRINGP never
7951         points past the null.
7953 Sat May 15 17:10:02 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
7955         * time/strftime.c: Alphabetize switch cases.
7956         Add GNU extensions %h, %C, %k, %l.
7958         * time/asctime.c: Make RESULT big enough for each %d to be 2^64.
7959         Protect against tm_wday and tm_mon being out of bounds; use "???"
7960         if they are.
7962         * time/{emkdir,ialloc,scheck,zic,zdump}.c: New versions from ADO.
7964         * time/africa, time/antarctica, time/asia, time/australasia,
7965         time/europe, time/northamerica, time/southamerica,
7966         time/pacificnew, time/etcetera, time/factory, time/systemv,
7967         time/solar87, time/solar88, time/solar89, time/leapseconds:
7968         Updated from Arthur David Olsen's latest.
7970         * sysdeps/generic/__expm1.c, sysdeps/generic/asinh.c,
7971         sysdeps/generic/exp__E.c, sysdeps/generic/log.c,
7972         sysdeps/generic/log1p.c, sysdeps/generic/mathimpl.h,
7973         sysdeps/generic/pow.c, sysdeps/mach/hurd/__ioctl.c,
7974         sysdeps/mach/hurd/stdio_init.c, sysdeps/unix/bsd/clock.c: Put
7975         `const' qualifier always after storage classes.
7977         * sysdeps/unix/bsd/sequent/i386/__sigvec.S (trampoline): Use
7978         `call', not `jsr'.
7979         (__sigvec): Exchange the scratch reg with 16(%esp) (fourth arg
7980         slot), not 0(%esp) (return PC slot).  Use ARGS_4 to point the
7981         syscall at the args.
7983         * sysdeps/unix/common/__getgrps.c: When gid_t==int, and SIZE!=0,
7984         return N from __bsd_getgroups.
7986         * posix/unistd.h (__need_NULL): Define before including <stddef.h>.
7987         1003.1-1990 2.7.1 says it should be here.
7989 Sat May 15 14:54:25 1993  Noah Friedman  (friedman@nutrimat.gnu.ai.mit.edu)
7991         * time/__tzset.c (compute_change): Add 1900 to YEAR, not 1970.
7993 Fri May 14 21:24:19 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
7995         * sysdeps/unix/sysv/sysv4/solaris2/start.c: Define NO_EXPLICIT_START.
7996         * sysdeps/unix/sparc/start.c [NO_EXPLICIT_START]: Don't asm
7997         `_start' into `start' (e.g., for Solaris).
7999         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h: New file.
8001 Fri May 14 19:34:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8003         * malloc/Makefile: Remove depend-malloc dependency on malloc/gmalloc.c.
8005         * posix/Makefile (headers): Add sys/unistd.h.
8006         * posix/sys/unistd.h: New file, just includes <unistd.h>.
8008         * sysdeps/unix/common/glue-ctype.c (main): Define generated array
8009         as `unsigned char' rather than `char'.
8011         * sysdeps/unix/start.c [__GNUC__]: Use asm frob to make `start'
8012         asm name of _start.
8014         * sysdeps/unix/opendir.c [! _STATBUF_ST_BLKSIZE]: Don't fstat and
8015         use st_blksize; try BUFSIZ instead.
8017         * sysdeps/unix/Makefile (ioctls): Don't use sed to remove final |
8018         from snarf-ioctls output; just append a dummy alternative instead.
8020         * sysdeps/posix/__wait3.c: Fix arg types.
8022         * Makerules ($(common-objpfx)stub-$(subdir)): Use @ for sed
8023         separator char.  Pass extra file /dev/null in case `...` gets empty.
8025         * sysdeps/unix/sysdep.h (C_LABEL): Define new macro.
8026         * sysdeps/unix/i386/sysdep.h (ENTRY): Use it.
8027         * sysdeps/unix/sparc/sysdep.h (ENTRY): Likewise.
8028         * sysdeps/unix/sparc/__brk.S: Use C_LABEL and ENTRY instead of
8029         C_SYMBOL_NAME.
8030         * sysdeps/unix/i386/__brk.S: Use C_LABEL instead of C_SYMBOL_NAME.
8032 Fri May 14 17:41:42 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
8034         * sysdeps/mips/sqrt.c [HAVE_GNU_AS]: Use the IEEE 754 version of
8035         sqrt since gas can't handle the `sqrt.d' synthetic instruction.
8037 Fri May 14 16:33:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8039         * stdio/Makefile (routines): Add tempname.
8041         * sysdeps/unix/common/make_siglist.c: #define const to empty
8042         around #include of <signal.h>.
8044         * sysdeps/unix/errnos.awk: Surround generated `DO' macro calls
8045         with #ifdef on the E* symbol.
8047         * sysdeps/unix/common/make_siglist.c [! HAVE_SYS_SIGLIST &&
8048         HAVE__SYS_SIGLIST]: Define sys_siglist to _sys_siglist.
8050         * termios/Makefile (headers): Add termbits.h.
8052         * posix/Makefile (headers): Add waitflags.h and waitstatus.h.
8054         * math/math.h (struct __complex): Rename to struct __cabs_complex.
8055         __complex is now a reserved word in GCC.
8056         * sysdeps/generic/cabs.c (cabs): Likewise.
8057         * sysdeps/ieee754/cabs.c (cabs, z_abs): Likewise.
8059         * sysdeps/unix/common/glue-ctype.c: Test for _ctype__ before _ctype_.
8061         * posix/Makefile (headers): Add confname.h.
8063 Thu May 13 00:25:53 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8065         * ctype/Makefile (tags_sources): Don't define.
8066         * MakeTAGS [subdir==ctype] (tags_sources): Put headers before sources.
8068         * time/__tzset.c (compute_change): Add 1970 to YEAR before using it.
8070         * sysdeps/unix/readdir.c: Pass a BASEP arg to __getdirentries.
8072 Wed May 12 20:36:51 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8074         * Makefile (distribute): Add aclocal.m4.
8076         * dirent/list.c (test): Clear errno before readdir loop.  Complain
8077         if errno is set thereafter.
8079         * sysdeps/unix/sysv/sysv4/solaris2/utsnamelen.h: New file.
8080         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: New file.
8081         * sysdeps/unix/sysv/sysv4/solaris2/sigaltstack.S: New file.
8082         * sysdeps/unix/sysv/sysv4/solaris2/Makefile: New file.
8084         * sysdeps/unix/bsd/sun/sparc/start.c: Moved to sysdeps/unix/sparc.
8085         * sysdeps/unix/sparc/start.c: Moved from sysdeps/unix/bsd/sun/sparc.
8086         Surround all shared library frobnication code with #ifndef NO_SHLIB.
8087         * sysdeps/unix/sysv/sysv4/solaris2/start.c: New file.
8089         * configure.in (os = solaris[2-9]*): base_os=unix/sysv/sysv4.
8091         * sysdeps/sparc/setjmp.S: Include <sysdep.h>, not "DEFS.h".
8092         Use ENTRY(__setjmp) instead of FUNC(___setjmp).
8094         * sysdeps/sparc/divrem.m4: [__svr4__]: Include <sys/trap.h>
8095         instead of <machine/trap.h>.
8097         * sysdeps/sparc/__longjmp.S: Include <sysdep.h>, not "DEFS.h".
8098         Use ENTRY(__longjmp) instead of FUNC(___longjmp).
8099         [__svr4__]: Use <sys/trap.h> instead of <machine/trap.h>.
8101         * sysdeps/unix/i386/sysdep.h (C_SYMBOL_NAME, SYS_ify): Moved to
8102         sysdeps/unix/sysdep.h.
8103         * sysdeps/unix/sparc/sysdep.h: New file.
8104         * sysdeps/unix/bsd/sun/sparc/sysdep.h: File removed.
8106         * sysdeps/unix/sparc/__brk.S: New file.
8107         * sysdeps/unix/sparc/__brk.c: File removed.
8109 Wed May 12 19:43:37 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
8111         * malloc/cfree.c: Put malloc.h include in _MALLOC_INTERNAL conditional.
8113 Wed May 12 16:24:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8115         * Makeconfig (+link): Put $(LDFLAGS) in the value.
8116         * sysdeps/unix/bsd/sun/sparc/Makefile (LDFLAGS): Set it.
8118         * posix/glob.c: Move include <unistd.h> before dir includes.
8119         [HAVE_UNISTD_H] [! POSIX] [_POSIX_SOURCE]: Define POSIX.
8121         * grp/initgroups.c [! NGROUPS_MAX || NGROUPS_MAX == 0]: Just
8122         return 0 and do nothing.
8124         * sysdeps/unix/sysv/sco3.2.4/__{sys,path}conf.S: New files.
8125         * posix/unistd.h: Include <confname.h>; remove _{SC,CS,PC}_* defns.
8126         * sysdeps/generic/confname.h: New file.
8127         * sysdeps/unix/sysv/sco3.2.4/confname.h: New file.
8129         * malloc/cfree.c: Include <malloc.h> instead of <stdlib.h>.
8130         [_LIBC]: Use function_alias only under this conditional.
8131         [! _LIBC] (cfree): Define a function that just calls free.
8133         * posix/Makefile (glob.tar): Depend on glob/ChangeLog.
8134         (glob/configure): Just run autoconf, don't do a sub-make.
8135         (glob/ChangeLog): New target.
8136         (%.Z, %.z): New rules.
8138 Mon May 10 16:56:09 1993  Jim Blandy  (jimb@geech.gnu.ai.mit.edu)
8140         * malloc/cfree.c: Put the meat of the file inside a "#if
8141         defined(__GNU_LIBRARY__)" clause, so that gmalloc.c, which
8142         incorporates this file, can be used outside of the C library.
8144 Sun May  9 16:57:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8146         * stdio/fseek.c: Don't call __flshfp unless STREAM is writable.
8148         * string/tester.c (main): Remove unused variable.
8150         * sysdeps/unix/bsd/set[er][gu]id.c: New files.
8152         * sysdeps/unix/mk-local_lim.c (NAME_MAX): Define to 255 if undefined.
8154         * malloc/Makefile (malloc-dist): Add ChangeLog and mem-limits.h.
8155         (malloc/ChangeLog): New rule using Noah's changelog-extract.
8156         (malloc.tar): Use o flag to tar to make compatible archives.
8157         (gmalloc-routines): Add calloc, valloc, and cfree.
8158         (dist-routines): Remove [cv]alloc from here.
8159         (routines): Remove cfree from here.
8161 Fri May  7 16:45:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8163         * sysdeps/posix/ttyname.c: Replace fixed-sized NAME array with
8164         static char *NAME and static size_t NAMELEN.
8165         Don't check S_ISCHR.
8166         Don't hack NAME before the loop.
8167         If need more than NAMELEN chars to hold the name, increase NAMELEN
8168         to more than big enough and malloc NAME.
8169         Save errno in local var SAVE before doing anything; restore it
8170         when returning non-error.
8172         * Makefile (generated): Add $(objpfx)stubs.h.
8173         (README): New rule to call Make-dist to do the work.
8175         * mach/Makefile: Don't include mach-syscalls.mk if no_deps=t.
8177         * crypt/GNUmakefile (%.z): New rule for gzipping.
8178         (crypt.tar): Use o flag to tar to make compatible archives.
8180         * Makeconfig: Find config.make in $(common-objpfx), not $(objpfx).
8182         * io/Makefile (headers): Remove filebits.h.
8184         * sysdeps/unix/sysv/sysv4/Dist: File removed.
8186         * Makefile (README): Move from here.
8187         * Make-dist (README): To here.
8189         * sysdeps/unix/Makefile (sys/param.h): Don't depend on sys/.  It
8190         was causing sys/param.h to be remade all the time.
8192         * aclocal.m4 (GLIBC_PROVIDES): Add shell comment about configure
8193         being generated and not to be editted.
8195         * sysdeps/unix/swapon.S: Moved to sysdeps/unix/common.
8196         * sysdeps/unix/configure: Add swapon to list of syscalls to check for.
8198         * sysdeps/unix/mk-local_lim.c: New file, modified from
8199         sysdeps/unix/common/mk-local_lim.c.
8200         * sysdeps/unix/common/Makefile: Move local_lim.h rules from here.
8201         * sysdeps/unix/Makefile: Put them there.
8202         (local_lim-CFLAGS): Define new variable.
8203         (mk-local_lim): Replace $(native-compile) with its value plus
8204         $(local_lim-CFLAGS).
8205         * sysdeps/unix/common/Dist: Remove mk-local_lim.c.
8206         * sysdeps/unix/Dist: Add it here.
8208         * Makerules (make-dummy-dep): New variable; canned command.
8209         ($(objpfx)%.dep: {$(objpfx),}%.s): New rules using $(make-dummy-dep).
8210         (sysd-Makefile): Write a $(objpfx)%.dep: $dir/%.s rule using it.
8212         * misc/ioctl.c: Replace function_alias with:
8213         [HAVE_GNU_LD]: Use symbol_alias.
8214         [! HAVE_GNU_LD]: Write out the function; it must fetch its third arg
8215         with va_arg and then call __ioctl.
8217 Thu May  6 14:56:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8219         * misc/sys/ioctl.h (__ioctl, ioctl): Changed prototype to take 2
8220         args and ... rather than a 3rd __ptr_t arg.
8221         * sysdeps/stub/__ioctl.c: Changed defn.
8223         * sysdeps/unix/bsd/sun/sunos4/tcflow.c: Include <sys/ioctl.h>.
8225         * sysdeps/unix/Makefile (make-ioctls-CFLAGS): Define as
8226         -DHAVE_SYS_TERMIOS_H if $(sysincludedir)/sys/termios.h exists.
8227         (make-ioctls): Replace command `$(common-objdir-compile)' with
8228         that var's contents from Makerules, plus $(make-ioctls-CFLAGS).
8229         * sysdeps/unix/ioctls-tmpl.c [HAVE_SYS_TERMIOS_H]: Get <sys/termios.h>.
8231         * misc/sys/ioctl.h: Include <sys/ttydefaults.h> after <ioctls.h>.
8233         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfget[io]speed): Return the
8234         raw speed, rather than using it as an index into `speeds'.
8235         (cfset[io]speed): Treat SPEED being an index into `speeds' just as
8236         if it were the value of that element.
8238         * termios/termios.h: Remove definitions of B[0-9]+ and EXT[AB].
8239         * sysdeps/generic/termbits.h: Put them here instead.
8240         * sysdeps/unix/bsd/sun/sunos4/termbits.h: Add new defns for those.
8242         * sysdeps/unix/Makefile (termbits-edit): If termbits.h is not the
8243         generic version, set this to an | egrep command which filters out
8244         symbols appearing in termbits.h.
8245         (ioctls): Depend on $(sysincludedir)sys/termios.h if it exists.
8246         Pass all deps after first to snarf-ioctls.
8247         Put $(termbits-edit) in cmd line; it may be empty or a pipe.
8248         Pipe through sort|uniq before tr (just to cut down on duplicates).
8250         * sysdeps/generic/Makefile, sysdeps/unix/Makefile: When deciding
8251         whether to generate files whose stub versions are chosen, also
8252         include the generation rules when the chosen directory is
8253         $(common-objpfx), so they continue to be defined after running once.
8255         * sysdeps/posix/Makefile: Use patsubst instead of substition
8256         references when the substitution or replacement contains a $.
8257         Make has a bug (which I just fixed) with such substitution references.
8259         * posix/wait3.c: Fixed arg types in fn alias.
8260         * posix/wait4.c: Likewise.
8262         * sysdeps/posix/Makefile: Remove vpath %.h line.
8263         * Makerules: Add vpath %.h directive.
8265         * sysdeps/posix/Makefile (generated, before-compile): Add
8266         $(common-objpfx)stdio_lim.h, not just plain stdio_lim.h.
8268         * Makerules (depend-$(subdir)): Put $(objpfx) in the output, not
8269         its expansion.
8270         (+make-deps): Add sed clause to translate the expansion of
8271         $(objpfx) back into the variable reference.
8273 Wed May  5 15:59:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8275         * sysdeps/unix/sysv/sco3.2/local_lim.h: New file.
8277         * sysdeps/unix/sysv/sco3.2/Makefile: New file
8278         * sysdeps/unix/sysv/sco3.2/Dist: New file.
8279         * sysdeps/unix/sysv/sco3.2/__fltused.c: New file.
8281         * sysdeps/unix/configure: New file.
8282         * sysdeps/unix/inet/__select.S: Moved to sysdeps/unix/common.
8283         This is because select is a call sysdeps/unix/configure wants to
8284         check for, and it simplifies life for all those to be in unix/common.
8286         * sysdeps/tahoe/Implies: Remove $(bsdmath)tahoe line.
8288         * sysdeps/unix/sysv/sco3.2.4/{__sigact,__sigproc,
8289         sigpending,sigsuspend}.S: New files.
8291         * Makefile (INSTALL): Depend on manual/maint.texi, not
8292         manual/maint.texinfo.  Use -- instead of + for long options.
8294         * configure.in: After setting $sysnames initially and adding the
8295         FPU directory, expand and uniquize the list with code that used to
8296         be in find-sysdirs.  Make $sysnames blank-separated rather than
8297         newline-separated.  Generalize loop iterating over $sysnames, so
8298         it sets $uname and sources sysdep configure scripts.  Move
8299         sys_siglist and ctype checks to sysdeps/unix/common/configure.in.
8300         Set Make variable `config-sysdirs' to $sysnames in config.make,
8301         and don't frob Sysnames or sysdirs files at all.
8302         * find-sysdirs: File removed.
8303         * Makefile (distribute): Remove find-sysdirs.
8304         (sysd-dirs): Depend on config.make instead of config.make.
8305         Use $(sysdirs) in place of `cat $<`.
8306         * aclocal.m4: New file.
8307         * sysdeps/unix/common/configure.in: New file, contains checks for
8308         sys_siglist and ctype glue moved from top-level configure.in.
8309         * Makerules (sysdirs, Sysnames): Rules removed.
8310         Don't include sysdirs.
8311         (sysdirs): Define variable from $(config-sysdirs).
8312         (sysd-Makefile): Depend on config.make instead of sysdirs.
8313         Use $(sysdirs) instead of filtering the sysdirs file.
8314         * Make-dist (+sysdep-tsrcs): Include configure and configure.in
8315         from sysdep dirs.
8316         (dist.tar): Use o flag to tar for compatible archives.
8317         (dist): Depend on foo.z instead of foo.Z.
8318         ($(tardir){-crypt,}.tar.z): Renamed from .Z.
8319         (%.z: %): New rule.
8320         (%/configure: %/configure.in): New rule.
8322 Mon May  3 17:45:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8324         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: New file.
8326         * sysdeps/unix/sysv/sco3.2.4/direct.h: New file.
8328         * sysdeps/unix/readdir.c: Moved from unix/bsd, rewritten to always
8329         use __getdirentries and D_NAMLEN macro, no #ifdefs.
8330         * sysdeps/unix/sysv/readdir.c, sysdeps/unix/bsd/bsd4.4/readdir.c,
8331         sysdeps/unix/bsd/ultrix4/readdir.c,
8332         sysdeps/unix/bsd/hp/m68k/readdir.c,
8333         sysdeps/unix/bsd/sun/readdir.c: Files removed.
8334         * sysdeps/unix/common/{close,open,rewind,seek,tell}dir.c: Moved to
8335         sysdeps/unix.
8336         * sysdeps/unix/sysv/direct.h: New file.
8337         * sysdeps/unix/bsd/direct.h (D_NAMLEN): Define to use d_namlen.
8338         * sysdeps/unix/sysv/sysv4/direct.h (D_NAMLEN): Define to calculate
8339         from d_reclen.
8340         * sysdeps/unix/__getdents.c: New file.
8341         * sysdeps/stub/direct.h: New file.
8342         * sysdeps/unix/bsd/Dist: Remove bsddir.h.
8343         * sysdeps/unix/sysv/sysv4/readdir.c: Moved to unix/sysv.
8344         * sysdeps/unix/sysv/sysv4/bsddir.h: Renamed to direct.h.
8345         * sysdeps/unix/bsd/bsddir.h: Likewise.
8346         * sysdeps/unix/common/opendir.c: Include "direct.h", not "bsddir.h".
8347         * sysdeps/unix/sysv/sysv4/readdir.c: Likewise.
8348         * dirent/Makefile (distribute): Define to include direct.h.
8350         * sysdeps/unix/common/opendir.c: Be sure to close FD if fcntl fails.
8352         * sysdeps/generic/memcopy.h: #include <sys/cdefs.h> and use __P
8353         prototypes instead of EXFUN.
8355         * sysdeps/generic/memcmp.c (__ptr_t, const): Define as appropriate
8356         conditional on [__cplusplus || __STDC__].
8358 Thu Apr 29 21:48:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8360         * Makefile ($(libc.a)): Make this, not lib, depend on subdir_lib.
8362         * Makerules ($(objpfx)%.{o,dep} rules): Remove spurious / after
8363         $(objpfx) in dependency patterns.
8365         * sysdeps/unix/bsd/sun/sparc/start.c (_start): Define with
8366         `asm ("start")', so its asm name is `start' rather than `__start'.
8367         Remove asm that did a `.set' pseudo-op, which Sun as seems not to grok.
8369 Wed Apr 28 12:59:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8371         * sysdeps/stub/system.c: Return 0 if LINE is nil.
8373         * sysdeps/unix/__execve.S [!SYS_execve && SYS_exec]: Define
8374         SYS_execve to be SYS_exec.
8376         * time/mktime.c: Include <sys/types.h>.
8378 Mon Apr 26 17:10:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8380         * sysdeps/generic/memcmp.c: Deansideclized.
8381         [HAVE_CONFIG_H]: Include "config.h".
8382         [HAVE_STRING_H || _LIBC]: Put #include <string.h> under this.
8383         [_LIBC]: Put #include <memcopy.h> under this conditional.
8384         [! _LIBC]: Define op_t, OPSIZ, byte, and MERGE.
8386         * time/mktime.c: Define __isleap if not defined.
8388 Fri Apr 23 18:08:33 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8390         * sysdeps/unix/sysv/__getdents.c: New file.
8391         * sysdeps/unix/sysv/sysv4/sys_getdents.S: Moved to unix/sysv.
8392         * sysdeps/unix/sysv/Makefile [subdir==dirent]: Add sys_getdents to
8393         sysdep_routines.
8394         * sysdeps/unix/sysv/Dist: Add sys_getdents.S.
8395         * sysdeps/unix/sysv/sysv4/Dist: Remove it from here.
8396         * sysdeps/unix/sysv/sysv4/Makefile: File removed.
8398 Thu Apr 22 17:40:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8400         * sysdeps/unix/bsd/sony/newsos4/m68k/sysdep.h: New file.
8402         * sysdeps/generic/strsep.c: Set *STRINGP to END+1, not END.
8404         * configure.in (arg parsing): Grok --verbose and set verbose=yes.
8406         * sysdeps/sparc/{umul,mul}.S: Remove ' from ! comment.
8408         * sysdeps/sparc/Makefile (*.S): Find divrem.m4 in this sysdeps dir.
8410         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfset[io]speed): Typo fix.
8412         * sysdeps/unix/bsd/sun/sparc/vfork.S: Use a sethi insn and %g1 as
8413         a temporary, rather than expecting the address to fit into a short
8414         jump.
8416         * sysdeps/unix/bsd/__fork.S: Moved to sysdeps/unix/__fork.S; we
8417         want unix/MACHINE/__fork.S to come first.
8419         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Make STAT_LOC type
8420         `__WAIT_STATUS' (defined in <sys/wait.h>).
8421         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
8423         * signal/sigvec.c: Change args from `struct __sigvec *' to
8424         `struct sigvec *' in function alias.
8426         * signal/sigproc.c: Make arg SET `const sigset_t *' in fn alias.
8428         * signal/sigaction.c: Change args from `struct __sigaction *' to
8429         `struct sigaction *' in function alias.
8431         * sysdeps/unix/common/glue-ctype.c (main) [! TABLE]: Write just a
8432         comment saying we don't know the table name, rather than barfing
8433         with `TABLE' an undefined variable.
8435         * sysdeps/generic/printf_fp.c: Fixed test to chose %e format.
8436         Make loop condition --J > 0; break out of loop when FPNUM < F.
8437         After loop, use %e format iff J <= 0.
8439         * posix/glob/Makefile.in (.c.o): Put $(CFLAGS) last.
8440         (glob.o): Depend on glob.c.
8441         (fnmatch.o): Depend on fnmatch.c.
8443 Wed Apr 21 12:40:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8445         * sysdeps/posix/Makefile (before-compile): Add stdio_lim.h.
8447         * configure.in (signed size_t test): Remove 's from rhs of AC_DEFINE.
8449         * stdio/internals.c (seek_to_target): If __stdio_check_offset
8450         fails with ESPIPE, do nothing.
8452         * sysdeps/generic/printf_fp.c: For %e type, add K-1 to CUTOFF,
8453         rather than K.
8454         When there are no post-decimal digits, never write a decimal point
8455         for a %g spec unless it had a # modifier.
8456         Move K==-1 test to write decimal point before K==CUTOFF test to
8457         round and write last digit.
8458         Merge code for first post-decimal digit with code for remaining digits.
8459         Move code to write leading fractional zeros inside K<0 test which
8460         determines if any will be needed.
8461         In decimal fraction notation code, use R10 temporary instead of
8462         repeating (R * 10) twice.
8464         * stdio/fwrite.c: Only fail when __stdio_check_offset fails if it
8465         failed with ESPIPE.  If offset==-1, don't change it or target.
8467         * sysdeps/posix/defs.c (stdstream): Rearrange initializers, as
8468         FILE has been rearranged.  Set offset and target to -1, not 0.
8470         * sysdeps/posix/stdio_init.c: If STREAM isatty, set its seek
8471         function to NULL.  Unix bites.
8473         * stdio/ungetc.c: Call __flshfp if linebuf_active or put_limit>buffer.
8475         * sysdeps/unix/bsd/sun/sparc/start.c [__GNUC__ < 2]: #error.
8477         * time/mktime.c: Deansideclized.
8478         Don't include <errno.h> or <limits.h>; we don't need them.
8479         [DEBUG] (printtm): Made static.
8480         [HAVE_CONFIG_H]: Include "config.h".
8481         [__GNU_LIBRARY__ || HAVE_LIMITS_H]: Surround #include <limits.h>
8482         with these conditionals.
8484         * time/offtime.c (__mon_lengths): Move defn to mktime.c; replace
8485         with extern decl.
8486         * time/mktime.c (__mon_lengths): Define here; remove extern decl.
8488 Mon Apr 19 18:42:59 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8490         * sysdeps/stub/tempname.c: New file.
8491         * sysdeps/stub/sysd-stdio.c (__stdio_gen_tempname): Moved there.
8492         * sysdeps/posix/tempname.c: New file.
8493         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Moved there.
8495         * stdio/fopen.c: Don't set the offset to zero.  That can falsely
8496         give the impression that an unseekable object is seekable.
8498         * stdio/internals.c (__flshfp): Discard any pushed back character
8499         first thing after sanity checks.
8500         (__flshfp): Deconditionalize code to call the output-room
8501         function; we always want to give it a chance to prime the stream.
8502         Remove code that reset bufp if put_limit==buffer.  We want to let
8503         the output-room function do that--that is priming the stream.
8505 Fri Apr 16 12:24:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8507         * Makerules ($(libc.a)): Depend on lib-noranlib and have ranlib
8508         command line.
8509         (lib): Just depend on $(libc.a).
8511         * sysdeps/unix/bsd/sun/sparc/start.c (init_shlib): Use __environ,
8512         not environ.
8514         * stdio/internals.c (__flshfp): Don't check that the buffer
8515         actually contains anything when setting the put_limit to the end of
8516         the buffer if linebuf_active.
8517         (__flshfp): To write C into the buffer !FLUSH_ONLY, don't check
8518         that bufp > buffer and get_limit == buffer.  Check against
8519         put_limit unless linebuf_active (in which case check against the
8520         real put_limit, fp->__buffer + fp->__bufsize).
8521         (__flshfp): Bother to call the output-room function if !FLUSH_ONLY
8522         or bufp > buffer and get_limit <= linebuf-corrected put_limit.
8523         (__flshfp): Check for a NULL output-room function before checking
8524         if C will fit in the buffer.
8525         (flushbuf): After putting C into the buffer,
8526         set BUFFER_WRITTEN to zero and goto end instead of returning.
8528         * stdio/ungetc.c: Test STREAM->__pushed_back before flushing the
8529         STREAM if it's writable.
8531         * posix/glob.c, posix/fnmatch.c: Surround code with 
8532         #if defined (_LIBC) || !defined (__GNU_LIBRARY__)
8534 Thu Apr 15 19:35:59 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8536         * string/tester.c (main): Added tests for strsep.
8538         * sysdeps/ieee754/frexp.c: New file.
8540 Wed Apr 14 12:49:10 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8542         * Makerules (ar-it): Add c flag to ar commands.
8544         * posix/glob.c [USG, NeXT]: Don't test these.
8545         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
8546         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
8547         [! ANSI_STRING]: Put decls of bcopy and #define of memcpy et al here.
8549         * posix/fnmatch.c [HAVE_CONFIG_H]: #include "config.h".
8551 Mon Apr 12 16:34:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8553         * posix/glob.c: Rationalize directory header conditionals.
8555 Sun Apr 11 18:53:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8557         * stdio/internals.c: Remove __libc_fatal.
8558         * sysdeps/stub/sysd-stdio.c: Remove __stdio_errmsg.
8559         * sysdeps/posix/sysd-stdio.c: Likewise.
8560         * sysdeps/stub/libc_fatal.c, sysdeps/posix/libc_fatal.c: New files.
8561         * stdio/Makefile (routines): Add libc_fatal.
8563         * stdio/stdio.h (FILE): Add new member `__linebuf_active' (flag).
8564         Rearranged order of members slightly.
8565         * stdio/setvbuf.c: Clear the linebuf_active flag.
8566         * stdio/fseek.c: Likewise.
8567         * stdio/internals.c (__flshfp): Test linebuf_active, not linebuf,
8568         to decide to reset put_limit before calling the output-room function.
8569         After calling it, if line-buffered, set put_limit to the
8570         beginning of the buffer and set the linebuf_active flag.
8571         (__fillbf): If linebuf_active is set, reset put_limit to the end
8572         of the buffer, and clear the flag.
8574         * stdio/ungetc.c: If STREAM is writable and has something in its
8575         buffer, flush it.
8577         * stdio/internals.c (__fillbf): When flushing all line-buffered
8578         streams, don't test for their put_limits being > than their
8579         buffers.  We should let __flshfp figure it out.
8581         * stdio/setvbuf.c: Always set the put_limit to the beginning of
8582         the buffer.
8584         * stdio/stdio.h (__putc): Rewritten to remove all knowledge of
8585         magic for line-buffered streams.  It now always calls __flshfp when
8586         the bufp hits the put_limit.
8588         * stdio/fwrite.c: When recalculating BUFFER_SPACE after calling
8589         __flshfp, ignore the put_limit for the sake of line-buffered streams.
8591         * stdio/fseek.c (fseek): Call __flshfp on STREAM unconditionally.
8592         We don't want to try to put the conditions for when it is
8593         necessary here as well.
8595         * sysdeps/generic/printf_fp.c: When deciding whether to use %e
8596         format for %g, break out of the loop on J as soon as F reaches
8597         FPNUM; after the loop, set TYPE to 'e' if J<0, meaning we went all
8598         the way through.
8600         * misc/getpass.c (TCSASOFT): Define to 0 if undefined.
8601         (getpass): Use a variable OUT to store the stream where output goes.
8602         Use a variable NREAD to notice how much was read; if the last char
8603         in the buffer is a newline, clobber it to a null terminator.
8605         * posix/fnmatch.h [__cplusplus || __STDC__]: Don't #define const.
8607 Thu Apr  8 19:29:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8609         * stdio/tst-printf.c (main): Added some floating-point tests.
8611         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: New file.
8613         * sysdeps/unix/sysv/i386/__sigret.S: Moved to sysdeps/unix/i386.
8614         Use DO_CALL instead of magic.
8616         * sysdeps/unix/bsd/i386/__wait3.S: Use DO_CALL instead of magic.
8617         Use scratch instead of %ecx and r1 instead of %edx.
8619         * sysdeps/unix/bsd/i386/__vfork.S: Rewritten to not use SYSCALL__.
8620         Use DO_CALL instead, and save the return PC in a register around
8621         the trap.
8623         * sysdeps/unix/i386/sysdep.h (DO_CALL): New macro to do syscall trap.
8624         (PSEUDO): Use it instead of putting the code here.
8626         * stdio/vfprintf.c (number): Write "0x" before padding, not after.
8628         * sysdeps/unix/bsd/sequent/i386/sysdep.h: New file.
8630         * sysdeps/unix/bsd/__setuid.c: #include <sys/types.h>.
8631         Change argument type to uid_t.
8632         * sysdeps/unix/bsd/__setgid.c: #include <sys/types.h>.
8633         Change argument type to gid_t.
8635         * sysdeps/unix/common/__getgrps.c: Restore errno after erroneous
8636         syscall failure.
8638         * stdio/tst-printf.c (fp_test): New function, batch of tests from
8639         a bug report.
8640         (main): Call it.
8642 Wed Apr  7 17:17:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8644         * sysdeps/generic/pow.c (pow_p): Don't initialize K; was a dead store.
8646 Mon Apr  5 21:17:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8648         * sysdeps/unix/common/__getgrps.c: If __bsd_getgroups returns an
8649         error and SIZE==0, alloc temp space for NGROUPS_MAX elts and call
8650         it again on that, so we can find the number of groups.
8652         * stdio/__vfscanf.c (input_error): If DONE is nonzero, return it;
8653         else return EOF.
8654         (%c): Don't check for C==EOF at the end; let the following spec get it.
8655         (%[eEfgG]): EOF after sign is conv_error, not input error.
8657         * sysdeps/unix/common/__getgrps.c: If gid_t==int, pass LIST to
8658         __bsd_getgroups, not NULL.
8659         No error for SIZE > NGROUPS_MAX.
8661 Sun Apr  4 18:52:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8663         * sysdeps/unix/{bsd,sysv}/i386/Implies: Files removed.
8664         They should no longer be necessary, since configure now tries more
8665         sysdeps directory permutations.
8667         * sysdeps/unix/bsd/{i386,sun/sparc,hp/m68k,ultrix4/mips}/__set[ug]id.S:
8668         Files removed.  They should no longer be necessary, since the new
8669         sysdeps scheme should find unix/bsd/__set[gu]id.c before
8670         unix/__set[gu]id.S.
8672         * sysdeps/unix/i386/__pipe.S: Use r1 in place of %edx and scratch
8673         in place of %ecx.
8674         * sysdeps/unix/i386/__wait.S: Likewise.
8675         * sysdeps/unix/i386/__fork.S: Use r1 in place of %edx and r0 in
8676         place of %eax.
8677         * sysdeps/unix/i386/__vfork.S: Likewise.
8678         * sysdeps/unix/i386/sysdep.h (scratch): #define as %ecx.
8679         * sysdeps/unix/sysv/i386/linux/sysdep.h: Likewise.
8681         * configure.in ($uname = generic): Set kernel_{version,release} to
8682         empty before all else.
8683         If /vmunix doesn't exist, try grovelling over /dynix instead.
8685         * sysdeps/unix/Makefile (syscall.h): Double $ in sed cmd.
8687 Fri Apr  2 15:15:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8689         * configure.in (config_vars): New variable; text to go in config.make.
8690         Use AC_HEADER_EGREP to grovel stdarg.h for __gnuc_va_list and set
8691         stdarg.h in config_vars if we find it.
8693         * sysdeps/unix/bsd/sun/sunos4/tcsendbrk.c,
8694         sysdeps/unix/bsd/sun/sunos4/tcflow.c,
8695         sysdeps/unix/bsd/sun/sunos4/tcflush.c,
8696         sysdeps/unix/bsd/sun/sunos4/tcsetattr.c,
8697         sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: New files.
8699         * sysdeps/unix/Makefile (syscall.h): Add sed cmd to terminate
8700         unterminated comments at the ends of lines.
8702         * sysdeps/posix/getcwd.c: Deansideclized and added four tons of
8703         portability goop.
8705 Mon Mar 29 13:18:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8707         * sysdeps/unix/bsd/sun/sunos4/speed.c: New file.
8709         * sysdeps/generic/termbits.h: New file, contents taken from termios.h.
8710         * termios/termios.h: Remove type & macro defns; #include <termbits.h>.
8711         [__OPTIMIZE__] (cf[gs]et[io]speed): Remove macro versions.  They
8712         just cause trouble because they want to be in termbits.h (since
8713         they are sysdep) and also to come after the prototypes (which must
8714         come after termbits.h to get speed_t and struct termios defined).
8715         The optimization was insignificant anyway.
8716         * termios/speed.c: Moved to sysdeps/generic.
8718         * termios/cfsetspeed.c: Call cfset[io]speed, rather than doing it
8719         ourselves.
8721         * time/__tzset.c (tz_rule): Make member `secs' not a bitfield.
8722         (compute_change): Complete rewrite; code basically stolen from
8723         localtime3/localtime.c:transtime.
8724         #include "tzfile.h" for SECSPERDAY; #define NOID first.
8726         * sysdeps/unix/bsd/i386/__vfork.S: Don't try to #include __fork.S.
8727         Instead, copy that code here and change `fork' to `vfork'.
8729         * Makeconfig (+default_cflags): Rename to default_cflags.
8730         (+cflags): Use that name.
8732         * Makefile (configure): New rule.
8734 Sun Mar 28 16:12:33 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8736         * posix/fnmatch.c (case '*'): Before final loop, fold C1, rather
8737         than foling *P before it goes into C1.  C might need folding instead.
8739         * posix/Makefile (tests): Add testfnm.
8740         * posix/testfnm.{c,args}: New files.
8742 Fri Mar 26 15:04:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8744         * time/mktime.c: Wholly new implementation from Noel Cragg.
8746         * sysdeps/unix/bsd/sun/__sigret.S: New file.
8747         * sysdeps/unix/bsd/sun/m68k/{Makefile,Dist}: New files.
8748         * sysdeps/unix/bsd/sun/m68k/{sigcontext.h,sigtramp.c}: New files.
8749         * sysdeps/unix/bsd/sun/sparc/__sigvec.S: Moved to sysdeps/unix/bsd/sun.
8751         * Makefile (clean): Remove sysd-Makefile, sysd-dirs, sysdirs
8752         (distclean): New target.
8753         * sysdeps/unix/common/Makefile (generated): Add local_lim.h,
8754         mk-local_lim, glue-ctype, glue-ctype.c, siglist.c, make_siglist.
8755         * sysdeps/generic/Makefile (generated): Add bytesex.h,
8756         det_endian, siglist.c, make_siglist.
8757         * sysdeps/unix/Makefile (generated): Add errnos.h, errnos,
8758         make-errnos, make-errnos.c, ioctls.h, ioctls, make-ioctls,
8759         make-ioctls.c, errlist.c, make_errlist, syscall.h, sys/param.h,
8760         param.h.c, param.h.dep, $(sys/param.h-includes).
8762         * misc/Makefile (extra-objs): Define new var to include bsd-compat.o.
8764 Fri Mar 26 14:53:30 1993  Michael John Haertel  (mike@skinner.cs.uoregon.edu)
8766         * malloc/malloc.c (malloc): Start searching at _heapindex, not
8767         MALLOC_SEARCH_START.
8768         * malloc/malloc.h (MALLOC_SEARCH_START): Macro removed.
8769         * malloc/realloc.c (realloc): When malloc returns NULL, handle the
8770         case of the block we need to unfree (which was just freed) having
8771         been coalesced with its neighbors.
8773 Thu Mar 25 13:40:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8775         * Rules (all): Depend on others.
8777         * time/Makefile (zonenames): Change target to $(objpfx)zonenames.
8778         Make the generated file prepend $(objpfx) to 
8779         Include that instead of zonenames.
8780         (zones-%): Change target to $(objpfx)zones-%.
8782         * Makefile ($(objpfx)Mcrt1.o): Put temporary Mcrt1.c file in
8783         $(objdir), rather than the current directory.
8785         * configure.in (arg parsing): Recognize `--exec-prefix' rather
8786         than `--exec_prefix'.
8788         * Rules (mostlyclean): Remove the .o files for $(tests) and $(others).
8789         Remove $(objpfx)depend-$(subdir).
8790         (clean): Remove $(extra-objs).
8791         * Makefile (clean): Remove $(install-lib) from $(objdir).
8792         Don't try to remove ansi/ and trad/ or dist.tar or lint.out.
8793         Remove $(objpfx)depend-.
8794         * time/Makefile (extra-objs): Define new var.
8795         * malloc/Makefile (extra-objs): Likewise.
8797         * Rules (+objs): Variable removed.
8798         (clean): Use $(objects) in place of $(+objs).
8800         * sysdeps/unix/Makefile (sys/param.h-includes): Move all this
8801         outside of ifeq ($(subdir),misc).
8802         Fixed sed command to filter out [hn]to[nh][sl].
8803         (sys/param.h-includes): New target; dep on $(sys/param.h-includes).
8805         * posix/fnmatch.h [!_POSIX_C_SOURCE || ...]: Make this test
8806         _GNU_SOURCE, not _BSD_SOURCE; these are our extensions, not theirs.
8807         (FNM_CASEFOLD): New bit.
8808         (__FNM_FLAGS): Removed macro.
8809         * posix/fnmatch.c (fnmatch): Don't test for bogus flag bits; who cares?
8810         (FOLD): New macro to casefold a char if FNM_CASEFOLD.
8811         Use it to fold all chars before comparison.
8813 Wed Mar 24 16:09:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8815         * malloc/Makefile (malloc/%.c, malloc/%.h): Rules removed.
8817         * stdio/stdio.h (fopencookie): Rename parameter IO_FUNCTIONS to
8818         IO_FUNCS.  The former conflicted with a typedef name, which ist
8819         verboten.
8821         * time/sys/time.h (enum __itimer_which): Remove trailing comma.
8823 Mon Mar 22 15:35:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8825         * malloc/malloc.h [_MALLOC_INTERNAL]
8826         [__GNU_LIBRARY__ || STDC_HEADERS || USG] (memmove): Define in
8827         terms of bcopy.
8828         * malloc/malloc/gmalloc-head.c: Redo previously undone change.
8830 Thu Mar 18 04:59:21 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
8832         * malloc/malloc/gmalloc-head.c: Undo previous change.
8834 Wed Mar 17 12:22:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8836         * mach/mach.h: New file.
8838         * Rules (clean): Remove $(generated), not $(clean-extras).
8839         (subdir_echo-distinfo): Use $(generated) instead of $(dont_distribute).
8840         (generated): Export this instead of dont_distribute.
8841         * stdlib/Makefile (generated): Set this, not dont_distribute.
8842         * sysdeps/posix/Makefile: Likewise.
8843         * sysdeps/unix/sysv/Makefile: Likewise.
8844         * sysdeps/unix/Makefile: Likewise.
8845         * Makefile (generated): Export this instead of dont_distribute.
8846         (parent_echo-distinfo): Use $(generated) instead of $(dont_distribute).
8847         * Make-dist (+tsrcs): Filter out $(generated), not $(dont_distribute).
8849         * mach/mach_init.h (__mach_task_self): Define so as not an lvalue.
8850         (mach_task_self): Surround defn with parens.
8852         * sysdeps/unix/Makefile (sys/param.h): Put "#include <endian.h>" in.
8853         ($(sys/param.h-includes)): Edit out #define's of *_ENDIAN and
8854         BYTE_ORDER.
8856         * stdlib/tst-strtol.c (tests): Fully bracket initializers.
8858         * stdio/bug4.c: Change #ifdef LIBC to #ifdef _LIBC.
8860         * misc/progname.c (set_progname): Make a useless reference to
8861         set_progname to avoid a `defined but not used' warning.
8863         * sysdeps/mach/i386/start.c (_cthread_{init,exit}_routine): Remove
8864         `extern'; these want to be uninitialized common defns.
8866 Mon Mar 15 18:41:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8868         * sysdeps/unix/bsd/__times.c (timeval_to_clock_t): Put __inline
8869         before storage class in defn.
8871         * sysdeps/unix/sysv/signum.h (SIG_ERR, SIG_DFL, SIG_IGN): Cast
8872         values to __sighandler_t, rather than obsolete ansidecl magic.
8874         * sysdeps/unix/__execve.S [!SYS_execve && SYS_exece]: Define
8875         SYS_execve to be SYS_exece.
8877         * sysvipc: New directory.
8878         * sysvipc/Makefile: New file.
8879         * sysvipc/sys/ipc.h: New file.
8881 Fri Mar 12 15:31:44 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8883         * posix/execlp.c (execlp): Remove spurious second declared parameter.
8884         Don't fill ARGV[0] specially; just let the loop do it.
8885         * posix/unistd.h (execlp): Remove spurious second declared parameter.
8887 Thu Mar 11 13:58:47 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8889         * Makerules (sysd-Makefile): Write %.dep: %.S and %.dep: %.c rules.
8890         Depend on Makerules.
8891         ($(objpfx)%.{o,dep}: $(objpfx)/%.{S,c,s}): New rules to find
8892         sources in $(objpfx) before sysdep directories.
8894         * configure.in (signed size_t check): Use eval on $CPP, since it
8895         contains unexpanded variable refs.
8896         Send grep output to /dev/null.
8897         Put quotes around 'unsigned long int'.
8899 Wed Mar 10 18:32:11 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8901         * features.h [! _LIBC]: #include <stubs.h>.
8902         * Makerules (stubs): New phony target.
8903         ($(common-objpfx)stub-$(subdir)): New target.
8904         * Makefile (headers): Add stubs.h.
8905         ($(objpfx)stubs.h): New target.
8907         * Makeconfig (CPPFLAGS): Define _LIBC, not LIBC.
8909         * Makerules (.SUFFIXES): Remove .m4; we no longer have any such files.
8911         * inet/netinet/in.h: Don't #include <inet-cvt.h>.
8912         (ntohl, ntohs, htonl, htons): Declare.
8913         #include <endian.h>.
8914         [__BYTE_ORDER == __BIG_ENDIAN] (ntohl, ntohs, htonl, htons):
8915         Define no-op macros.
8916         * inet/Makefile (headers): Remove inet-cvt.h.
8917         * sysdeps/vax/inet-cvt.h, sysdeps/generic/inet-cvt.h: Files removed.
8918         * sysdeps/generic/{ntohl,ntohs,htonl,htons}.c
8919         [BYTE_ORDER == LITTLE_ENDIAN]: Byte-swap X before returning it.
8921 Tue Mar  9 11:32:35 1993  Jim Blandy  (jimb@wookumz.gnu.ai.mit.edu)
8923         * malloc/malloc/gmalloc-head.c: Remove #definitions of memset,
8924         memcpy, and memmove; this is taken care of by malloc.h anyway.
8926 Mon Mar  8 15:12:32 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8928         * sysdeps/mips/jmp_buf.h (JB_PC): Protect with #ifdef __USE_MISC.
8930         * sysdeps/unix/sysv/sysv4/sigaction.h: Put SA_* except for
8931         SA_NOCLDSTOP inside #ifdef __USE_MISC.
8933 Mon Mar  8 15:05:13 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
8935         * sysdeps/mips/jmp_buf.h (jmp_buf): Use `__ptr_t', not `PTR', for
8936         member types.
8937         (JB_PC): New define, for backwards compatability with Ultrix.
8939         * sysdeps/unix/sysv/sysv4/sigaction.h: New file.
8941 Mon Mar  8 13:20:02 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
8943         * posix/glob/Makefile.in (VPATH): Set this to @srcdir@.
8944         (srcdir): Set this to $(VPATH).
8946         * posix/glob.c (glob): In no matches with GLOB_NOCHECK set case,
8947         add NULL terminator to PGLOB->gl_pathv.
8948         (prefix_array): Renamed arg PREFIX to DIRNAME, local var PRELEN to
8949         DIRLEN.  If DIRNAME is just "/", don't prepend it, so we get
8950         "/foo" instead of "//foo".
8951         (glob): Move qsort call outside of the else clause of the
8952         glob_pattern_p test; it should always be done.
8954 Thu Feb 25 14:49:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8956         * malloc/malloc.h [_MALLOC_INTERNAL]: Move #include <stdio.h> to
8957         front of file; it needs to come before size_t/ptrdiff_t frobnication.
8959 Wed Feb 24 16:34:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
8961         * Makerules (compile-command.[Ssc]): New variables; define them if
8962         they are not already defined.
8963         (sysd-Makefile): For each directory, write three rules:
8964                 %.o: $dir/%.[Ssc]; $(compile-command.[Ssc]).
8965         (sysdep_path): Remove definition and vpath directives.
8966         * sysdeps/m68k/Makefile (compile-command.S): Define our own version.
8967         ($(objpfx)%.o: %.S): Rule removed.
8969         * sysdeps/unix/sysv/linux/{__dup2,__mkdir,__rmdir,__setpgrp}.S:
8970         Removed.
8971         * sysdeps/unix/sysv/linux/Implies: Created; implies unix/common.
8973         * sysdeps/unix/sysv/sysv4/{sete[gu]id.S,fchdir.S,signum.h,__sigproc.S}:
8974         New files.
8976         * sysdeps/unix/sysv/sysv4/time.S: New file.
8978         * sysdeps/unix/common/Dist: New file; everything from
8979         sysdeps/unix/bsd/Dist except for bsdtty.h and bsddir.h.
8980         * sysdeps/unix/bsd/Dist: Remove things now in sysdeps/unix/common/Dist.
8982         * sysdeps/unix/bsd/sun/sparc/{__brk.c,__fork.S,__pipe.S,__vfork.S}:
8983         Moved to new directory sysdeps/unix/sparc.
8985         * sysdeps/unix/common/Implies: New file, in new directory; implies
8986         unix/inet only.
8987         * sysdeps/unix/bsd/Implies, sysdeps/unix/sysv/sysv4/Implies: New
8988         files; both imply unix/common.
8989         * sysdeps/unix/common/Makefile: Moved from sysdeps/unix/bsd.
8990         Changed references to unix/bsd to unix/common.
8991         * unix/bsd/{__access.S,__adjtime.S,__fchmod.S,__fchown.S,__getgrps.c,
8992         __getitmr.S,__getpgrp.S,__getrusag.S,__gettod.S,__lstat.S,__mkdir.S,
8993         __readlink.S,__rmdir.S,__setitmr.S,__setpgrp.S,__symlink.S,
8994         bsd_getgrp.S,closedir.c,ftruncate.S,getrlimit.S,glue-ctype.c,
8995         make_siglist.c,mk-local_lim.c,opendir.c,readv.S,rename.S,rewinddir.c,
8996         seekdir.c,setgroups.S,setrlimit.S,telldir.c,truncate.S,vhangup.S,
8997         writev.S,__dup2.S}: Moved to sysdeps/unix/common.
8998         * sysdeps/unix/sysv/sysv4/{__access.S,closedir.c,opendir.c,
8999         rewinddir.c,seekdir.c,telldir.c}: Removed.
9001 Mon Feb 22 12:19:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9003         * sysdeps/generic/pow.c (pow): Use __isnan to test for NaN rather
9004         than expecting "x!=x" to work.
9005         (pow_p): When testing if Y is an integer, use long int rather than
9006         int; they are different on some systems.  Compare against
9007         LONG_MIN+1, not LONG_MIN; (long int) (double) LONG_MIN might overflow.
9009         * malloc/dist-Makefile (gmalloc.c): Depend on Makefile.
9011         * malloc/Makefile (gmalloc-routines): New variable.
9012         (dist-routines): Use it.
9013         (malloc/Makefile): Also replace <GMALLOC-SOURCES> with
9014         $(gmalloc-routines).
9015         (malloc/Makefile): Make it unwritable to avoid accidental lossage.
9016         Depend on Makefile.
9018         * malloc/dist-Makefile (gmalloc): New variable: <GMALLOC-SOURCES>.
9019         (gmalloc.c): Use $(gmalloc), not $(sources).
9020         Make the file unwritable to avoid accidental lossage.
9022         * malloc/mtrace.c: Don't #include <stdio.h> because <malloc.h> did
9023         it for us.
9025         * malloc/valloc.c [! __GNU_LIBRARY__]: Replace hairy conditionals
9026         with #include "getpagesize.h".
9027         * malloc/Makefile (distribute, malloc-dist): Add getpagesize.h.
9029 Sun Feb 21 18:29:30 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9031         * sysdeps/sparc/Makefile (nodist-routines): Don't define.
9032         We want to distribute the generated divrem files; otherwise anyone
9033         building the library must have an m4 that works.
9034         ($(divrem).S): Put these in sysdeps/sparc, not in $(objdir).
9035         (routines): Only put this inside ifeq ($(subdir),gnulib).
9037         * sysdeps/unix/bsd/sun/m68k/Makefile: File removed.
9039 Sat Feb 20 16:43:55 1993  Torbjorn Granlund  (tege@sics.se)
9041         * sysdeps/i386/memset.c: Move adjustment of LEN before first stosb.
9042         * sysdeps/i386/bzero.c: Likewise.
9044 Thu Feb 18 14:34:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9046         * malloc/mcheck.c (checkhdr): Use `const', not `__const'.
9048 Mon Feb  1 19:19:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9050         * sysdeps/m68k/fpu/__logb.c: Use two-operand forms of 68881 insns
9051         rather than the one-operand source==dest form.  Sun's sun3
9052         assembler apparently doesn't grok the one-operand form.
9054         * sysdeps/posix/getcwd.c: Call __lstat instead of stat.
9055         We should not lose on nonexistent symlink targets.
9057 Thu Jan 21 20:12:25 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9059         * posix/glob.c: Put #includes of <glob.h> and <fnmatch.h> after
9060         all system includes, in case one of them has conflicting defns of
9061         FNM_* or GLOB_*, so we will redefine.  #undef FNM_* and GLOB_*
9062         before including our headers.
9064 Tue Jan 19 16:16:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9066         * mach/Makefile (routines): Removed __bcopy.
9067         * mach/__bcopy.c: File removed.
9069         * posix/glob.c (my_realloc): Cast result of malloc/realloc to (char *).
9071 Sat Jan 16 14:19:07 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
9073         * manual/summary.awk: Handle single word in braces.
9075 Thu Jan 14 13:52:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9077         * posix/glob/Makefile.in (realclean): Remove Makefile.
9079 Mon Jan 11 18:32:56 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9081         * sysdeps/unix/bsd/sony/m68k/Implies: Imply unix/bsd/hp/m68k, not
9082         unix/hp/m68k.
9084         * sysdeps/unix/bsd/tcsetattr.c: Use cbreak mode if ISIG is set,
9085         not if OPOST is set.
9086         Fixed typo in TOSTOP frobbing.
9088 Tue Jan  5 15:11:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9090         * posix/Makefile (glob.tar): Include glob/configure.in.
9092 Mon Jan  4 17:05:44 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9094         * posix/glob/Makefile.in (RANLIB): Define to @RANLIB@.
9095         (RANLIB_TEST): Removed.
9096         (libglob.a): Don't use it.
9098 Thu Dec 31 13:08:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9100         * sysdeps/unix/bsd/bsd4.4/{chflags,fchflags,setlogin}.S: Fix arg count.
9102         * sysdeps/posix/Makefile (mk-stdiolim): Use $(cded-objdir-CPPFLAGS).
9103         (cded-objdir-CPPFLAGS): Define new var.
9105         * sysdeps/unix/Makefile ($(sys/param.h-includes)): Strip trailing
9106         slash from directory name for mkdir.
9108 Tue Dec 29 18:18:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9110         * sysdeps/posix/sysd-stdio.c (exists): Return true if stat fails
9111         with other than ENOENT.
9113         * sysdeps/posix/__flock.c: New file.
9115         * malloc/Makefile (dist-headers): Define to malloc.h.
9116         (headers): Replace malloc.h with $(dist-headers).
9117         (malloc/Makefile): Use $(dist-headers) in place of $(headers).
9118         (malloc-dist, distribute): Replace ChangeLog with OChangeLog.
9120         * malloc/dist-Makefile (malloc.tar{,.Z}): Depend on FORCE.
9121         (FORCE): Define empty target.
9123 Tue Dec 29 16:45:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9125         * sysdeps/sparc/{umul,mul}.S: Use tege's shift+mask hack to avoid
9126         a test and branch for sign fixup.
9128         * limits.h [__GNUC__ >= 2]: #ifndef _GCC_LIMITS_H_, not _LIMITS_H_,
9129         to #include_next <limits.h>.
9131         * sysdeps/posix/getcwd.c: Call closedir after copying from the
9132         `struct dirent' buffer, not before.  That buffer is freed by closedir.
9134         * posix/gnu/types.h (__fd_set): Renamed member to `fds_bits' for
9135         compatibility with braindead extant code.
9137         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Check for BUF
9138         being too small before doing sprintf.
9140         * malloc/malloc.h [_MALLOC_INTERNAL], malloc/valloc.c
9141         [HAVE_CONFIG_H]: #include "config.h".
9143         * Makefile (doc): Removed rule.
9144         (dvi, info): New rule.
9146 Mon Dec 28 15:50:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9148         * posix/glob.c [HAVE_CONFIG_H]: Test this, not SHELL, to decide
9149         whether or not we want to #include "config.h".
9151 Wed Dec 16 12:01:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9153         * inet/Makefile (routines): Removed ruserpass.  Why did it get
9154         included in the first place?  That version does not match the one
9155         in the NET2 ftp source; whence came it?
9157 Sat Dec 12 16:41:03 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9159         * sysdeps/unix/bsd/sun/sparc/start.c: Use .set, not GNU ld magic,
9160         to alias asm symbol `start' to `__start'.
9162 Fri Nov 20 18:20:50 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9164         * stdio/vfprintf.c (%p): Tests of LEFT for "(nil)" were inverted.
9166         * stdio/tst-printf.c (main): Add `printf ("%#03x\n", 1);'.
9167         Add a width to %p test.
9169         * stdio/vfprintf.c (unsigned_integer): Clear SHOWSIGN and SPACE
9170         flags before falling into `number:'.  The `+' and ` ' flags are
9171         only meaningful for signed numbers.
9173         * string/tester.c (main): For strstr #11, correct return is first
9174         arg, not end of first arg.
9176         * stdlib/mbtowc.c: If S is "", return 0.  How was I convinced
9177         before that this is not what ANSI says?
9179         * stdio/__vfscanf.c: Initialize MALLOC_STRING to zero on each
9180         iteration (when we zero is_short et al).
9182         * sysdeps/posix/mkstemp.c (mkstemp): New file.
9183         * sysdeps/stub/mkstemp.c (mkstemp): New file.
9184         * misc/Makefile (routines): Add mkstemp.
9186         * sysdeps/posix/mktemp.c: Use `getpid ()' in place of undefined
9187         variable PID.
9188         #include <sys/stat.h>.
9190         * dirent/scandir.c: If SELECT is nil, don't try to call it.
9191         If CMP is nil, don't sort.
9193 Wed Nov 18 13:42:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9195         * sysdeps/stub/__wait4.c: Changed type of 2nd arg to __WAIT_STATUS.
9197         * posix/sys/wait.h (__WAIT_STATUS): #if 0 out gcc2 magic defn.
9198         GCC is broken as of 2.3.1.
9200         * signal/signal.h (__sigaction, sigaction): Fixed type in
9201         prototype from `struct __sigaction' to `struct sigaction'.
9203         * sysdeps/m68k/fpu/atan2.c (PI, PIo4, PIo2): Removed static vars.
9204         (atan2): Declare PIo4 and PIo2 locally, and compute them from pi.
9206         * Makerules (native-CFLAGS): Define as $(config-defines).
9208         * sysdeps/unix/bsd/glue-ctype.c: Upcased all HAVE_* names in #ifdef's.
9210         * posix/fnmatch.h (FNM_LEADING_DIR): New flag.
9211         * posix/fnmatch.c (fnmatch): Support it.
9213         * sysdeps/i386/bytesex.h: New file.
9214         * sysdeps/i386/endian.h: Removed.
9215         * sysdeps/stub/bytesex.h: New file.
9216         * sysdeps/stub/endian.h: Removed.
9217         * sysdeps/generic/Makefile (bytesex.h): Create with det_endian.
9218         (endian.h): Removed old rule.
9219         (before-compile): Replace endian.h with bytesex.h.
9220         * string/Makefile (headers): Add bytesex.h.
9221         * string/endian.h: New file.
9222         * sysdeps/generic/det_endian.c: Rewritten to output just one line,
9223         a #define of __BYTE_ORDER to 1234, or 4321, etc.
9224         * inet/arpa/nameser.h: #include <endian.h>, rather than #ifdef'ing
9225         on misc. things to #define BYTE_ORDER.
9226         * sysdeps/generic/waitstatus.h: Test value of __BYTE_ORDER, not
9227         whether __LITTLE_ENDIAN is #define'd.
9228         * sysdeps/generic/mathimpl.h: Likewise.
9229         * sysdeps/generic/memcopy.h: Likewise.
9230         * sysdeps/ieee754/huge_val.h: Likewise.
9231         * sysdeps/ieee754/nan.h: Likewise.
9232         * sysdeps/ieee754/ieee754.h: Likewise.
9234 Mon Nov 16 12:19:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9236         * Makeconfig (ARCH): Define to empty if $(..)config.make exists.
9238         * misc/getusersh.c (initshells): malloc (STATB.st_size + 1), to
9239         contain the terminating NUL.  Pass fgets the real amount of space
9240         left in the buffer, instead of the random number (MAXPATHLEN + 1).
9242         * configure.in (minix*): base_os=unix/sysv.
9243         * sysdeps/unix/sysv/minix/sigaction.h: New file.
9245         * sysdeps/generic/sigaction.h (__SA_*): Renamed to SA_*.
9246         [__USE_BSD]: Put all but SA_NOCLDSTOP under this #ifdef.
9247         * signal/signal.h (SA_*): Remove #define's.
9248         (SIG_*): Moved #define's to sigaction.h.
9250         * sysdeps/generic/sigset.h (__sigmask): Shift ((sigset_t) 1), not
9251         just 1.
9253         * signal/signal.h (kill): Fix type of first arg to __pid_t, not int.
9255         * sysdeps/unix/Makefile (errnos): Changed regexp to disallow
9256         E[^A-Z0-9], and not to require that the defn be numeric only.
9258         * stdlib/stdlib.h: Don't #include <huge_val.h>; ANSI doesn't say
9259         <stdlib.h> defines HUGE_VAL.
9261         * stdlib/stdlib.h (__compar_fn_t): Use __P around prototype.
9263         * posix/Makefile (headers): Add utsnamelen.h, so it gets installed.
9264         (distribute): Remove it from here.
9266         * setjmp/setjmp.h (sigjmp_buf): Rename `__savemask' to
9267         `__mask_was_saved' and `__sigmask' to `__saved_mask'.
9268         * setjmp/sigjmp_save.c (__sigjmp_save): Change use.
9269         * setjmp/siglongjmp.c (siglongjmp): Likewise.
9271 Fri Nov 13 17:34:00 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9273         * configure.in (config.make): Write assignments for INSTALL,
9274         INSTALL_PROGRAM, INSTALL_DATA, and RANLIB.
9276 Thu Nov 12 17:11:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9278         * sysdeps/stub/stime.c: #include <stddef.h> for NULL.
9280         * sysdeps/stub/morecore.c: Fixed arg type to ptrdiff_t.
9282         * sysdeps/stub/ptrace.c: Fixed `va_start' uses to pass 2nd arg.
9284         * sysdeps/unix/sysv/sysv4/fcntlbits.h: New file, modified from
9285         unix/bsd/sun/sunos4 version.
9287         * sysdeps/unix/bsd/bsd4.4/fcntlbits.h: New file, modified from
9288         unix/bsd version.
9290         * sysdeps/unix/bsd/ultrix4/fcntlbits.h: New file, modified from
9291         unix/bsd version.
9293         * sysdeps/unix/bsd/sun/sunos4/fcntlbits.h: New file, modified from
9294         unix/bsd version.
9296         * sysdeps/unix/sysv/fcntlbits.h: Rewritten from stub version.
9297         * sysdeps/unix/sysv/filebits.h: File removed.
9299         * sysdeps/unix/bsd/fcntlbits.h: Rewritten from stub version.
9300         * sysdeps/unix/bsd/filebits.h: File removed.
9302         * io/fcntl.h: Don't #include <filebits.h>.
9303         Removed all #define's of foo to __foo; <fcntlbits.h> now defines
9304         the unmarked cases.
9306         * sysdeps/stub/fcntlbits.h: Remove leading __ from all symbols.
9308         * misc/sys/file.h (L_SET, L_INCR, L_XTND): Define to literal
9309         values, not to __ versions.  These are not system-dependent.
9310         (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Define to literal values,
9311         not to __ versions.  These are not actually system-dependent,
9312         because no system has `flock' except for BSD compatibility, and
9313         then they use the same numbers.
9314         * sysdeps/stub/fcntlbits.h (__L_SET, __L_INCR, __L_XTND): Removed.
9315         (__LOCK_SH, __LOCK_EX, __LOCK_UN, __LOCK_NB): Removed.
9317 Tue Nov 10 17:01:11 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9319         * sysdeps/stub/fcntlbits.h: Merged in contents of filebits.h.
9320         (struct __flock): Renamed to `struct flock'.
9321         * sysdeps/stub/filebits.h: File removed.
9323         * posix/unistd.h (access, lseek, close, read, write, pipe, chown,
9324         fchown, chdir, dup, dup2, execve, pathconf, fpathconf, sysconf,
9325         getpid, getppid, setpgrp, setpgid, setsid, getuid, getgid,
9326         geteuid, getegid, setuid, setreuid, setgid, setregid, fork, vfork,
9327         isatty, link, symlink, readlink, unlink, rmdir, gethostname,
9328         getpagesize, getdtablesize): Remove #define's to __ versions.
9330         * posix/sys/types.h: Don't #include <gnu/time.h>.
9331         Instead, use forward decl `struct timeval;'.
9332         (__select): Use `struct timeval', not `struct __timeval', in prototype.
9333         Move into #ifdef __USE_BSD.
9334         (select): Removed #define to __select; added real prototype.
9336         * sysdeps/generic/waitstatus.h: New file.
9337         * sysdeps/stub/waitflags.h: New file.
9338         * sysdeps/unix/bsd/waitflags.h: New file.
9339         * posix/sys/wait.h: Don't #include <gnu/wait.h>.
9340         Do #include <waitflags.h> and <waitstatus.h>.
9341         (WHOHANG, WUNTRACED): Don't #define to __ versions; <waitflags.h>
9342         will define the unmarked cases.
9343         (union __wait): Remove type decl and associated #define's for w_*;
9344         `union wait' (no __) is now defined in <waitstatus.h>.
9345         [__USE_BSD && __GNUC__ >= 2] (__WAIT_STATUS): Define as funky union.
9346         (waitpid, wait3, wait4, wait): Removed #define's to __ versions;
9347         added real prototypes.
9348         * posix/gnu/wait.h: File removed.
9349         * posix/Makefile (headers): Remove gnu/wait.h.
9351         * posix/sys/times.h [__OPTIMIZE__] (times): Removed #define to __times.
9353         * posix/sys/utsname.h: Removed decl of __uname_getnode.
9355         * time/sys/time.h: Don't #include <gnu/time.h>.
9356         Don't support __need_timeval.
9357         (struct timeval, struct timezone, struct itimerval,
9358         enum __itimer_which): Declare these types here.
9359         (gettimeofday, settimeofday, adjtime, getitimer, setitimer,
9360         utimes): Removed #define's to __ versions.  Added real prototypes.
9361         Use `struct timeval' instead of `struct __timeval', etc.
9362         * time/gnu/time.h: File removed.
9363         * time/Makefile (headers): Removed gnu/time.h.
9365         * resource/sys/resource.h: Don't #include <gnu/time.h>.
9367 Mon Nov  9 18:41:03 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9369         * socket/sys/socket.h (SO_STYLE): Define instead of SO_TYPE.
9370         (SO_TYPE): Define as SO_STYLE.
9372         * inet/netinet/in.h (struct ip_opts): New type.
9373         (IP_*): New constants snarfed from 4.4's in.h.
9375 Fri Nov  6 15:34:41 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9377         * resource/sys/resource.h (struct rusage): #include <sys/time.h>
9378         before struct defn.  Use `struct timeval', not `struct __timeval'
9379         for `ru_utime' and `ru_stime' members.
9381         * resource/sys/resource.h [__OPTIMIZE__] (getrusage, ulimit),
9382         misc/sys/ioctl.h [__OPTIMIZE__] (ioctl): Remove #define's to __
9383         versions.
9385         * string/strings.h: Protect against multiple inclusion.
9386         * termios/sys/termios.h: Ditto.
9388         * string/string.h [__GNUC__ && __OPTIMIZE__] (ffs): Remove #define
9389         to __builtin_ffs.
9391         * stdlib/stdlib.h (comparison_fn_t): Use a typedef, not a #define.
9392         Define this #ifdef __USE_GNU, not #ifdef __GNUC__.
9393         [__GNUC__ && __OPTIMIZE__] (abs, labs): Remove #define's to __builtin_.
9395 Thu Nov  5 20:01:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9397         * signal/Makefile (headers): Remove gnu/signal.h;
9398         add sigaction.h, sigset.h.
9399         * sysdeps/generic/sigaction.h: New file.
9400         * sysdeps/generic/sigset.h: New file.
9401         * signal/gnu/signal.h: Removed.
9402         * signal/signal.h: Move __{BEGIN,END}_DECLS outside all the #if's
9403         (except the outermost one that protects against multiple inclusion).
9404         Don't #include <gnu/signal.h>.  Instead #include <sigset.h>
9405         outside of #if's, and #include <sigaction.h> inside #ifdef __USE_POSIX.
9406         (__sighandler_t): Define here; it is not system-specific.
9407         (kill, ssignal, gsignal, sigblock, sigsetmask, sigpause, sigvec,
9408         sigreturn): Remove #define's to __ versions.
9409         (sighandler_t, sigset_t): Use a typedef, not a #define.
9410         [__OPTIMIZE__] (sig{empty,fill,add,del}set, sigismember): Make
9411         these macros take args.
9412         (sigaction): Remove #define.
9413         (struct __sigvec): Renamed `struct sigvec'.
9414         (__sigvec): Use `struct sigvec', not `struct __sigvec', in prototype.
9416 Fri Oct 30 19:45:26 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9418         * configure.in (sco*): base_os=unix/sysv.
9420 Thu Oct 29 16:29:26 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9422         * configure.in: New file; mostly contents of old file `configure'.
9423         (srcdir guessing): Removed this code.
9424         Instead, call AC_PREPARE.
9425         Call AC_PROG_INSTALL and AC_PROG_RANLIB to find those programs.
9426         Use AC_HAVE_FUNCS to find what sys_siglist and _ctype_ are called.
9427         (config.make): Write new var `config-defines' with what autoconf
9428         put in $DEFS.
9429         Append -DHAVE_GNU_LD and -DHAVE_GNU_AS to DEFS if appropriate;
9430         don't write gnu_ld and gnu_as variables.
9431         * configure: Removed.
9432         * Makefile (distribute): Add configure.in.
9433         * Makeconfig (+defines): Include $(config-defines) before $(defines);
9434         don't include $(gnu_as) and $(gnu_ld).
9436         * sysdeps/unix/bsd/glue-ctype.c (TABLE): Test HAVE_* for several
9437         different names and #define this.
9438         (STRINGIFY): Define macro.
9439         (main): Use TABLE instead of hardcoded name.
9441         * configure (sysnames): Try successively less specific base os's.
9443         * Makerules (ar-it): Define commands only ifdef objects.
9445         * sysdeps/mips/setjmp.S: Jump to __setjmp_aux, not ___setjmp_aux.
9446         We are NO_UNDERSCORES.
9448 Tue Oct 27 18:11:19 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9450         * sysdeps/posix/pipestream.c, sysdeps/posix/system.c: Always use
9451         __vfork instead of expecting FORK to be defined.
9452         * sysdeps/unix/bsd/system.c, sysdeps/unix/bsd/pipestream.c:
9453         Removed.  sysdeps/unix versions are now what we want.
9455         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Removed.
9456         * sysdeps/unix/bsd/hp/m68k/__wait.S: Moved to unix/bsd/m68k.
9458         * sysdeps/unix/bsd/hp/m68k/{__pipe,sysdep}.S: Moved to unix/bsd/m68k.
9459         * sysdeps/unix/bsd/sun/m68k/{__pipe,sysdep}.S: Removed.
9461         * sysdeps/unix/bsd/sun/m68k/start.c: Moved to unix/bsd/m68k.
9462         * sysdeps/unix/bsd/sony/m68k/start.c: Removed.
9464         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Correct file name in #include.
9466         * sysdeps/unix/bsd/sun/m68k/__fork.S: Removed.
9467         * sysdeps/unix/bsd/hp/m68k/__fork.S: Removed.
9468         * sysdeps/unix/bsd/vax/__fork.S: Moved to unix/bsd.
9470         * sysdeps/generic/__vfork.c: New file; fn alias to __fork.
9471         * sysdeps/stub/__vfork.c: Removed.
9473         * limits.h: Only do #include_next #ifndef _LIMITS_H_.
9475         * malloc/mcheck.c (mcheck): Set abortfunc to either FUNC or abort;
9476         never leave it unchanged.
9477         Return 0 if mcheck_used; -1 if not.
9478         * malloc/malloc.h (mcheck): Change return type in decl.
9480         * Makerules (+depfiles): Don't include them if there are none.
9482 Mon Oct 26 16:30:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9484         * sysdeps/posix/fdopen.c: Use fcntl to check that FD is valid and
9485         allows the access MODE specifies.
9487         * sysdeps/stub/getcwd.c: #include <stddef.h>.
9489         * sysdeps/stub/sleep.c: #include <errno.h>.
9491 Sun Oct 25 02:24:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9493         * Makerules (+includes): Add $(+sysdep-includes) to this, leaving
9494         CPPFLAGS alone.
9496         * sysdeps/stub/stime.c: #include <time.h>.
9498 Thu Oct 22 13:36:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9500         * Rules (clean): Also remove $(clean-extras).
9502 Tue Oct 20 18:36:40 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9504         * configure: Write error message and lose for option with missing arg.
9506         * stdio/__vfscanf.c: Add `a' modifier, which makes %s and %[ fill
9507         in a char ** with a malloc'd string.
9508         (STRING_ADD_CHAR, STRING_ARG): New macros to deal with this hair.
9509         (%s, %[): Use them.
9511         * posix/gnu/types.h [__GNUC__] (__fsid_t): Define as long long.
9513         * stdio/vfprintf.c: Add %m, which is %s of strerror (errno).
9515 Mon Oct 19 14:19:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9517         * socket/sys/socket.h (PF_FILE, AF_FILE): Define new macros.
9518         (PF_UNIX, AF_UNIX): Make aliases for [PA]F_FILE.
9520         * sysdeps/ieee754/huge_val.h: #include <sys/cdefs.h>.
9521         [!__GNUC__]: Use __const, not CONST.
9523         * posix/wordexp.h: Fix indentation and syntax errors.
9525         * stdio/vasprintf.c (vasprintf): Set seen bit.
9527 Fri Oct 16 17:18:34 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9529         * Makefile (Mcrt1.o): Create an empty .c file and compile it,
9530         rather than creating an empty .o file.
9532         * sysdeps/unix/Makefile (sys/param.h): Strip / from name for mkdir.
9534         * sysdeps/m68k/fpu/atan2.c [! __GNUC__]: Include generic, not iee754.
9536         * sysdeps/sparc/Makefile ({divrem}.S): Use $(M4) for m4 in cmds.
9537         * Makeconfig (M4): Define it.
9539         * stdio/newstream.c (__newstream): Link STREAM onto __stdio_head
9540         after malloc'ing it.
9542         * time/emkdir.c: #define unix if not already defined.
9544 Thu Oct 15 19:55:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9546         * stdlib/wctomb.c: When passed 0, store a '\0' and return 1.
9547         * stdlib/mbtowc.c: When passed "", store a 0 and return 1.
9549         * sysdeps/generic/strstr.c: When NEEDLE is "", return HAYSTACK.
9551 Thu Oct 15 19:25:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9553         * malloc/malloc.h (__after_morecore_hook): Declare new var.
9554         * malloc/malloc.c (__after_morecore_hook): Define it.
9555         (align): Call it.
9557 Mon Oct 12 15:56:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9559         * malloc/malloc.h (r_alloc, r_alloc_free, r_re_alloc): Declare.
9561         * Makerules (native-compile, common-objdir-compile): Pass
9562         $(native-CFLAGS) to the compiler.
9564         * Makeconfig (+gccwarn): Removed -Wstrict-prototypes and
9565         -Wpointer-arith.  They were not really helping, and caused extra
9566         warnings for harmless code.
9568         * malloc/Makefile (dist-routines): Add ralloc.
9569         (gpl2lgpl): Add ralloc.c.
9571         * time/zic.c: #define unix if not already defined.
9573         * Makerules ($(gpl2lgpl)): Make output unwritable; use mv -f.
9575 Mon Oct 12 15:27:40 1992  Brendan Kehoe  (brendan@mole.gnu.ai.mit.edu)
9577         * sysdeps/unix/bsd/ultrix4/mips/__set[gu]id.S: Handle returning to
9578         the proper caller ourselves, since setre[gu]id won't be doing it.
9580 Mon Oct 12 13:37:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9582         * malloc/malloc.h: Declare memory_warnings.
9583         * malloc/Makefile (dist-routines): Add vm-limit.
9584         (distribute): Add mem-limits.h.
9585         (gpl2lgpl): Add vm-limit.c, mem-limits.h.
9587         * gpl2lgpl.sed: Remove "This file is part of ..." lines.
9588         Changed regexp to match "foo is free software", not just "This
9589         program ...".
9591         * Makerules (+make-deps): Put file name before options on command line.
9593         * Makefile (install-lib): Remove libc.a from here.
9594         * Makerules [objects] (install-lib): Append it here instead.
9596         * io/sys/stat.h (S_IRWXO): Fixed typo.
9598 Sun Oct 11 16:58:36 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9600         * posix/glob.c (__glob_{open,read,close}dir_hook): New vars.
9601         (glob_in_dir): Use them.
9602         * posix/glob.h: Declare them.
9604 Thu Oct  8 20:03:30 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
9606         * configure (config.make): Write comment to edit configparms instead.
9608 Wed Oct  7 17:15:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9610         * sysdeps/stub/__chown.c: Fixed arg types (int -> [ug]id_t).
9612         * sysdeps/stub/__geteuid.c: Fixed return type (int -> __uid_t).
9614         * sysdeps/stub/__getegid.c: Fixed return type (int -> __gid_t).
9616         * configure: Write defns in config.make for vars config-machine,
9617         config-vendor, and config-os.
9619         * ctype/ctype.h (__isctype, __tolower, __toupper): Cast argument
9620         and return value to `int'.
9622         * ctype/ctype.h (__ctype_tolower, __ctype_toupper): Changed type
9623         to `short int *'.
9624         (toupper, tolower): Removed inline functions; restored macros.
9625         * ctype/ctype.c (tolower, toupper): Just call the __ macros.
9626         * ctype/ctype-info.c: Change types here too.
9627         * locale/localeinfo.h: And here.
9628         * locale/C-ctype_ct.c: Ditto.
9630         * crypt: New code from Michael Glad.
9632         * Makefile (munch-init.c), sysdeps/unix/Makefile
9633         ($(sys/param.h-includes), make-errnos.c, make-ioctls.c),
9634         sysdeps/unix/bsd/Makefile (local_lim.h, ctype-glue.c),
9635         sysdeps/posix/Makefile (stdio_lim.h): Changed rules to use a
9636         shorter suffix than `-tmp', to avoid exceeding 14 char limit.
9638 Tue Oct  6 15:13:57 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9640         * Makefile (README, INSTALL): Moved rules here.
9641         * Make-dist: From here.
9643         * sysdeps/unix/bsd/sun/m68k/{__pipe,__fork,sysdep}.S: Change uses
9644         of sysdeps/unix/bsd/hp9k3bsd to sysdeps/unix/bsd/hp/m68k.
9646         * sysdeps/m68k/Makefile: Put .S rule here.
9647         * sysdeps/unix/bsd/hp/m68k/Makefile: Removed file.
9649 Mon Oct  5 19:40:22 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9651         * sysdeps/generic/pow.c (pow_p): Changed code to KY jelly.
9653         * sysdeps/unix/bsd/ultrix4/utsnamelen.h: New file.
9654         * sysdeps/unix/bsd/ultrix4/uname.S: New file.
9656 Fri Oct  2 17:43:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9658         * sysdeps/posix/mktemp.c: Don't use a static index and increment
9659         it on each call.  Instead, always start at the beginning and
9660         iterate until we find a file that does not exist.
9662         * sysdeps/unix/sysv/i386/signal.S: Use C_SYMBOL_NAME for __sigreturn.
9663         Added comment about gas bug with `lcall' insn.
9665         * sysdeps/unix/i386/__brk.S: Use C_SYMBOL_NAME for __curbrk and _end.
9667         * sysdeps/unix/i386/sysdep.S: #include <sysdep.h>.
9668         Use C_SYMBOL_NAME(errno) in place of _errno.
9670         * sysdeps/unix/sysdep.h (___errno): Removed #define to _errno.
9671         `errno' is an ANSI name; it doesn't need to be aliased.
9672         * sysdeps/unix/bsd/sun/m68k/sethostid.S,
9673         sysdeps/unix/bsd/sun/m68k/__vfork.S,
9674         sysdeps/unix/bsd/sun/sparc/sysdep.h,
9675         sysdeps/unix/bsd/sun/sparc/sethostid.S,
9676         sysdeps/unix/bsd/vax/sysdep.S,
9677         sysdeps/unix/bsd/vax/__vfork.S: Use _errno, not ___errno.
9679         * sysdeps/unix/sysv/sysdep.h: File removed.
9680         * sysdeps/unix/sysv/i386/sysdep.h: Don't #include it.
9681         #define NO_UNDERSCORES before #include <sysdeps/unix/i386/sysdep.h>.
9683         * sysdeps/unix/i386/sysdep.h (C_SYMBOL_NAME): Define new macro.
9684         [NO_UNDERSCORES]: #define syscall_error to __syscall_error, so we
9685         stay name space tidy.
9687         * sysdeps/unix/sysv/sysv4/sys_getdents.S: Added missing arg count (3).
9689         * sysdeps/unix/sysv/i386/time.S: Fixed to not use bogus addressing
9690         mode `4(%esp,1)'; use `4(%esp)' instead.  Added comments.
9692         * sysdeps/stub/__fchmod.c (__fchmod): Fixed arg type to mode_t.
9694         * sysdeps/posix/__wait3.c: #include <stddef.h> for NULL.
9696         * sysdeps/unix/i386/__wait.S: Use asm label `null' instead of
9697         `1f', and actually define the label!  Added comments.
9699         * sysdeps/i386/memchr.c: Renamed asm label to `done'; not all
9700         assemblers support numbered labels like `1f' or `1b'.
9702         * stdio/fseek.c (fseek): Discard char pushed back by ungetc.
9703         * stdio/ftell.c (ftell): If we have a pushed-back char, decrement
9704         the file position we return.
9706         * sysdeps/unix/bsd/sun/sparc/vfork.S: New file.
9708 Wed Sep 30 18:48:38 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9710         * limits.h (_LIBC_LIMITS_H_): Define today's name for this.
9711         RMS said it was to be `_LIBC_LIMITS_H', but that is not what
9712         gcc actually uses.
9714 Tue Sep 29 18:17:12 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9716         * time/Makefile (zic-cmd): Define variable.
9717         (tzcompile, zoneinfo/localtime, zoneinfo/posixrules): Use it for
9718         name of `zic' command.
9720         * sysdeps/unix/bsd/Makefile (ctype-glue.c): Make sure the command
9721         is not an unqualified name.
9723         * sysdeps/stub/statbuf.h (struct stat): Contain only POSIX.1
9724         members, with the POSIX.1 types.
9725         (_STATBUF_ST_BLKSIZE): #undef and comment.
9726         * sysdeps/unix/bsd/statbuf.h (_STATBUF_ST_BLKSIZE): Define it.
9727         * sysdeps/posix/stdio_init.c (__stdio_init_stream): Only try to
9728         use st_blksize #ifdef _STATBUF_ST_BLKSIZE.
9730         * sysdeps/unix/__getpgsz.c: #include <stddef.h> for size_t.
9732         * sysdeps/stub/__fchown.c: Fixed arg types ([ug]id_t, not int).
9734         * io/sys/stat.h: #include <gnu/types.h> for __mode_t et al.
9736         * sysdeps/unix/__gete[ug]id.S [SYS_gete[ug]id]: Add arg count of 0.
9737         [! SYS_gete[ug]id]: Fixed arg count to be 0.
9739         * sysdeps/unix/__get[ug]id.S: Fixed arg count to be 0.
9741         * sysdeps/unix/sysv/linux/syscall.h: #if 0'd out 2nd defn of SYS_brk.
9743 Sun Sep 27 21:56:56 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9745         * sysdeps/unix/Makefile (sys/param.h): Depend on $(common-objpfx)sys/.
9747 Fri Sep 25 12:47:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9749         * Makeconfig (INSTALL_DATA): Pass -m 644.
9751 Thu Sep 24 16:13:47 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9753         * sysdeps/unix/sysv/linux/getpeername.S: Renamed to getpeernam.S.
9754         * sysdeps/unix/sysv/linux/getsockname.S: Renamed to getsocknam.S.
9755         * sysdeps/unix/sysv/linux/setsid.S: Renamed to __setsid.S;
9756         function renamed to __setsid.
9758         * Version 1.05.
9760         * Makefile (dist): Depend on $(distribute).
9762         * stdio/__vfscanf.c (%c): Fixed DO_ASSIGN case loop condition to
9763         not write one char too many.
9765 Wed Sep 23 16:32:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9767         * stdlib/qsort.c (_quicksort): Return immediately if TOTAL_ELEMS==0.
9769 Tue Sep 22 19:10:59 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9771         * Makerules [! OUTPUT_OPTION && objpfx]: Define OUTPUT_OPTION.
9773 Mon Sep 21 22:40:55 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9775         * sysdeps/unix/bsd/mk-local_lim.c: Use MAXNAMLEN for NAME_MAX,
9776         rather than hard-wiring 255.
9777         [! MAXNAMLEN]: Define it to 255.
9778         [LINK_MAX && ! MAXLINK]: #define MAXLINK LINK_MAX.
9780         * sysdeps/unix/bsd/glue-ctype.c [ultrix]: #define _ctype_ _ctype__.
9782         * configure: Rename var `gas' to `gnu_as' and use consistently.
9784 Fri Sep 18 16:32:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9786         * sys/errno.h: New file.
9787         * Makefile (headers): Add it.
9789         * Makeconfig (+make-deps): Use = not define.
9791         * time/Makefile (zones-%): Don't clobber zonenames; append to it.
9792         Depend on Makefile so we rebuild when the rule changes.
9793         Changed implicit rule from zoneinfo/%/... to zone%/... so it will
9794         actually match.
9796         * sysdeps/unix/Makefile (syscall.h): Filter out "#ident" lines.
9798         * Makeconfig (+link): Use $(gnulib) instead of -lgcc.
9799         (gnulib): Define to -lgcc.
9801         * posix/glob/Makefile.in (AR, ARFLAGS): Define.
9802         (libglob.a): Use those vars instead of hardcoding.
9804         * Makeconfig (ARCH) [machine]: Don't define if $(..)config.make exists.
9806         * Makerules (compile.S): Include $(asm-CPPFLAGS).
9807         (S-CPPFLAGS): Define = $(asm-CPPFLAGS).
9808         (+make-deps): Include $(sfx-CPPFLAGS), where `sfx' is S or c.
9809         * Makeconfig (asm-CPPFLAGS): Define (empty) and comment.
9811         * sysdeps/unix/Makefile ($(sys/param.h-includes)): Filter out
9812         decls or macros for host<->net conversion (htonl et al).
9814 Thu Sep 17 17:33:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9816         * sysdeps/unix/sysv/statbuf.h: Define __S_*.
9818         * misc/Makefile (headers): syslog.h -> sys/syslog.h.
9819         * misc/syslog.h: Moved to misc/sys/syslog.h.
9821         * limits.h [__GNUC__ >= 2]: #define _LIBC_LIMITS_H before
9822         #include_next <limits.h>.
9823         Define _LIMITS_H unconditionally.
9825 Wed Sep 16 17:43:59 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9827         * sysdeps/unix/Makefile (syscall.h): Don't use \< in sed commands.
9828         Some seds don't seem to grok it.
9830         * Makerules (+install-dirs): Sort them.
9832         * Makeconfig (stdarg.h): Use $(wildcard va-*.h) instead of va-*.h,
9833         and := instead of =.
9835         * Makeconfig (prefix): Default to $(exec_prefix), not /usr/local.
9837         * Makeconfig (+link): Use $(common-objpfx) rather than $(objpfx)
9838         to find start.o; use $(libc.a) instead of $(objpfx)libc.a.
9840         * sysdeps/sparc/Makefile: crypt subdir is not called uf-crypt.
9842         * sysdeps/unix/Makefile (sys/param.h-includes): Fixed filtering
9843         out of existent glibc headers to remove $(..) pfx after wildcard.
9845         * misc/paths.h: New file, snarfed from 4.4 BSD.
9846         * misc/Makefile (headers): Add paths.h.
9848 Tue Sep 15 14:55:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9850         * Makerules (+sysdir_pfx): Define as $(common-objpfx).
9852         * MakeTAGS (TAGS) [subdir && ! tags_sources]: Create an empty
9853         file, rather than no commands at all.
9855         * string/string.h [__GNUC__ && __OPTIMIZE__] (ffs): Take arg.
9857         * sysdeps/unix/sysv/linux/__wait4.S: New file.
9859         * sysdeps/unix/sysv/linux/syscall.h: New version from hlu.
9861         * sysdeps/unix/Makefile (syscall.h): Upcase `sys_' in input.
9863         * sysdeps/unix/bsd/ultrix4/mips/sysdep.h (MOVE): Insn is `move',
9864         not `movl'.
9866         * sysdeps/unix/bsd/ultrix4/mips/sigcontext.h: Deansideclized.
9868         * sysdeps/unix/ioctls-tmpl.c [DIOCGETPT, DEVGETGEOM]: Include
9869         headers for these.
9870         [ultrix]: Mondo cruft.
9872 Sat Sep 12 12:08:29 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
9874         * misc/Makefile (routines): Add ttyslot, syslog.
9875         * misc/ttyslot.c, misc/syslog.[ch]: New, snarfed from 4.4 BSD.
9876         (headers): Add syslog.h
9878         * misc/getttyent.c (getttyent): Parse _TTYS_TRUSTED keyword and
9879         set TTY_TRUSTED bit.
9880         * misc/ttyent.h (TTY_TRUSTED): New bit in ty_status.
9881         (_TTYS_TRUSTED): New keyword.
9882         (_TTYS_CONSOLE): New keyword.
9883         (TTY_CONSOLE): New bit in ty_status.
9885         * dirent/scandir.c (scandir): Don't keep using V after realloc'ing
9886         it.  Use the returned new ptr instead.
9888 Thu Sep 10 18:59:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9890         * stdlib/div.c, stdlib/ldiv.c: Rewritten from Berkeley code that works.
9892         * Makeconfig (stdarg.h): Add va-*.h.
9894         * stdlib/Makefile (dont_distribute): Define: testsort.input.
9896         * sysdeps/mach/hurd/i386/_hurd_start_sigthread.c,
9897         sysdeps/stub/_hurd_start_sigthread.c: Renamed to .../startsig.c.
9898         * sysdeps/mach/hurd/sys_errlist.awk: Renamed to .../errlist.awk.
9899         * sysdeps/mach/hurd/Makefile (sys_errlist.c): Change dep.
9900         * sysdeps/unix/bsd/make-local_lim.c: Renamed to .../mk-local_lim.c.
9901         * sysdeps/unix/bsd/Makefile (local_lim.h): Change dep.
9902         (make-local_lim): Change target and dep.
9903         * hurd/_hurd_dead_recv.c: Renamed to hurd/dead_recv.c.
9904         * hurd/setdtablesize.c: Renamed to hurd/setdtsz.c.
9905         * hurd/Makefile (routines): Change references.
9906         * stdio/tstgetline.c: Renamed to stdio/tstgetln.c.
9907         * stdio/tstgetline.input: Renamed to stdio/tstgetln.input.
9908         * stdio/Makefile (tests): Change ref.
9909         * README.template: Remove note about long file names.
9911         * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h (_UTSNAME_LENGTH):
9912         Define here, rather than #include'ing sysv/utsnamelen.h.
9913         This file gets installed.
9915 Wed Sep  9 17:06:14 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
9917         * Makeconfig (localtime-file): Put in $(prefix)/etc, not /etc.
9919         * setjmp/Makefile (routines): Remove sigsetjmp.
9921         * sysdeps/posix/Makefile (objdir-CPPFLAGS) [! subdir]: Rewrote
9922         totally broken defn.
9924         * sysdeps/unix/Makefile (syscall.h): Keep lines starting
9925         with #, not only those starting with #define.
9926         We want to preserve any #ifdef in the original.
9928         * Makerules (install): Dep $(+install-dirs), not $(dir $(+install)).
9929         (+install-dirs): Define to get two levels of dirs.
9931         * time/Makefile (tz-cc): Use = instead of define directive.
9933         * sysdeps/unix/bsd/sun/sparc/start.c (_start): Give ARGC, ARGV,
9934         and ENVP `register' storage class; can then clear the FP early.
9936 Sat Sep  5 13:14:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
9938         * Makerules (sysdirs): Pass sysdep_dir in child's environment.
9940 Fri Sep  4 15:37:23 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
9942         * Makeconfig (common-objpfx): Add trailing slash.
9943         Move comment to prev line to avoid extra whitespace.
9945 Thu Sep  3 17:31:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9947         * sysdeps/unix/bsd/setgroups.S: New file.  How did this manage not
9948         to exist already??
9950         * Version 1.04.
9952         * sysdeps/generic/memmem.c (memmem): Fixed loop condition not to
9953         use nonexistent variable.
9955         * string/string.h (memmem): Put const qualifier on args.
9957         * sysdeps/stub/sigaltstack.c (sigaltstack): Fix arg type.
9959         * setjmp/sigsetjmp.c: #undef sigsetjmp before defining the function.
9961 Wed Sep  2 16:43:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
9963         * misc/Makefile (headers): Add syscall.h.
9964         * sysdeps/unix/Makefile: Only generate syscall.h if it would
9965         otherwise come from stub.
9966         * sysdeps/stub/syscall.h: New file.
9968         * time/Makefile (routines): Add stime.
9970         * io/Makefile (routines): Add fchdir.
9972         * signal/Makefile (routines): Add sigaltstack.
9974         * string/Makefile (routines): Add memmem.
9976         * setjmp/Makefile (routines): Add sigsetjmp, _setjmp.
9978         * misc/Makefile (routines): Add getpass.
9980         * Makefile (distribute): Add NEWS.
9982         * Makerules (ar-it) [! objdir]: Pass `ru' instead of `u' to ar.
9983         Use $(..)libc.a instead of $(libc.a).
9985         * sysdeps/unix/sysv/i386/linux/sysdep.h (PSEUDO): Call numbers are
9986         SYS_*, not __NR_*.
9988         * sysdeps/unix/sysv/i386/linux/__wait.S: Prepend extra _ to
9989         `__waitpid' for jmp.
9991         * Makerules (check): New rule; alias for `tests'.
9993         * sysdeps/stub/__setregid.c: Args are gid_t, not int.
9995         * sysdeps/posix/readv.c: #include <string.h>.
9997         * sysdeps/generic/printf_fp.c: If LDBL_DIG or LDBL_MAX_10_EXP is
9998         defined by float.h, #define each to DBL_*.
10000 Tue Sep  1 16:29:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10002         * sysdeps/unix/Makefile (syscall.h): Add missing backslashes.
10004         * Makeconfig [!objdir && !..] (common-objpfx): Define as
10005         `sysdeps/..'; The Almighty KludgeMeister 2000 wins again.
10007         * Makerules (sysdep-Makefile): Rename to sysd-Makefile.
10009         * Makeconfig (CC): Don't use -pipe by default.
10011         * configure (switches): Put quotes around os-release and
10012         os-version values.
10014 Mon Aug 31 19:33:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10016         * sysdeps/stub/cbrt.c: New file.
10018         * sysdeps/generic/cabs.c: New file.
10020         * sysdeps/generic/ceil.c: New file, split from floor.c.
10021         * sysdeps/generic/__rint.c: Replaced with code split from floor.c.
10022         * sysdeps/generic/Makefile (routines): Don't remove ceil, __rint.
10024 Thu Aug 27 15:58:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
10026         * malloc/malloc.h [! __STDC__] (ptrdiff_t): #define.
10028 Wed Aug 26 18:15:47 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10030         * malloc/free.c (__free): Rename to _free_internal.
10031         (free), malloc/malloc.c (morecore): Change callers.
10032         * malloc/malloc.h: Change decl.
10034 Tue Aug 18 17:38:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10036         * sysdeps/generic/__copysign.c: New file.
10038         * sysdeps/unix/sysv/sysdep.h: #include <syscall.h>, not
10039         <sys/syscall.h>.  Don't #define _SYS_SYS_S; should no longer be
10040         necessary.
10042         * sysdeps/unix/Makefile (syscall.h): Replaced simple code to just
10043         find the file in any of several places, with hairier code to find
10044         it and massage it.
10046         * malloc/Makefile (obstack.%): Remove rule.
10047         (gpl2lgpl): Define this instead.
10048         * posix/Makefile (gpl2lgpl): Define to include getopt source files.
10049         * Makerules ($(gpl2lgpl)): New rule to snarf code and frob its
10050         copying notices.
10052 Fri Aug 14 13:28:39 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10054         * Makeconfig (common-objdir, common-objpfx): Define new vars.
10055         (libc.a): Define in terms of $(common-objpfx).
10056         Find config.make with $(common-objpfx), not $(objpfx).
10057         * Makerules (common-objdir-compile): Define canned sequence.
10058         (native-compile): Use $(@D)/$(@F) instead of stripping off $(objpfx).
10059         * sysdeps/unix/Makefile, sysdeps/unix/bsd/Makefile,
10060         sysdeps/generic/Makefile: Use it.
10061         Use $(common-objpfx) for generated things not specific to one subdir.
10063         * sysdeps/unix/Makefile (sysdep_headers): Add
10064         $(sys/param.h-includes) to this instead of to headers.
10066 Thu Aug 13 18:30:58 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10068         * posix/glob.c: Always #include <sys/types.h>.
10069         [! USG]: Don't do it here.
10070         [STDC_HEADERS]: Test this instead of __STDC__ for size_t.
10071         [HAVE_STRCOLL]: Test this instead of ANSI_STRING for strcoll.
10073         * posix/glob/Makefile.in (Makefile): Remove rule.
10075 Wed Aug 12 16:12:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10077         * sysdeps/sparc/jmp_buf.h: Deansideclized.
10079         * sysdeps/generic/make_siglist.c: #undef HAVE_SYS_SIGLIST, not
10080         SYS_SIGLIST_MISSING.
10081         * sysdeps/generic/signame.[ch]: Re-symlinked from /gd/gnu/lib.
10082         Who's been removing random things from my source tree??
10084 Tue Aug 11 15:01:50 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10086         * posix/getconf.c (main): Cast printf field with arg to int.
10088         * Makefile (distribute): Remove ansidecl, ansidecl.m4.
10090         * posix/glob.c [_AIX]: Don't declare alloca.
10092 Mon Aug 10 17:09:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10094         * sysdeps/m68k/fpu/__math.h (__expm1): Define just like expm1.
10096         * sysdeps/unix/ioctls-tmpl.c [SMIOSTATS, SMIOGETREBOOT0,
10097         ZIOCBCMD]: Include headers for these.
10099 Fri Aug  7 16:01:43 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10101         * string/tester.c (main): Use sys_nerr and sys_errlist, not _sys_*.
10103         * stdio/stdio.h [__USE_GNU] (_sys_nerr, _sys_errlist): Declare.
10105         * string/strerror.c, stdio/perror.c
10106         [HAVE_GNU_LD] (_sys_errlist, _sys_nerr): Remove decls.
10108         * stdio/memstream.c (enlarge_buffer): Notice when target is -1 and
10109         don't treat it as a huge value.
10111         * stdio/tst-printf.c: #if 0 code that tickles printf_fp bugs.
10113         * grp/testgrp.c: Don't bomb if uid not in passwd file.
10115         * stdlib/tst-strtol.c (tests): C-t on LONG_MIN and LONG_MIN-1 elts.
10117         * stdlib/strtol.c: Use int flag NEGATIVE instead of char 1/-1 SIGN.
10118         Fixed checking for overflow of long int that fits in unsigned long
10119         int--must cast LONG_MIN before negating!
10121 Thu Aug  6 18:46:24 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10123         * stdio/bug3.c (main): Define ansideclifily.
10125         * sysdeps/unix/bsd/sun/sparc/__pipe.S: Define __pipe, not ___pipe.
10127         * math/test-math.c (main): Remove unused vars.
10129         * io/flock.c: #include <sys/file.h>, and not fcntl.h or sys/types.h.
10131         * sysdeps/m68k/fpu/__math.h (__rint): Define just like rint.
10133         * math/math.h (__rint): Declare.
10135         * configure (esix*): base_os=unix/sysv.
10137         * dirent/getdents.c: #include <dirent.h>.
10139         * Rules (subdir): Avoid TAB before # at end of defn.
10141         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Last arg type is struct rusage *.
10143 Tue Aug  4 18:19:43 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10145         * sysdeps/ieee754/Makefile: Removed.
10147         * math/math.h: Declare __expm1.
10149 Mon Aug  3 13:02:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10151         * sysdeps/ieee754/cabs.c (cabs, z_abs): Members of structure have __.
10153         * sysdeps/unix/bsd/seq386: Remove directory.
10155 Thu Jul 30 15:42:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10157         * sysdeps/unix/bsd/sun/sparc/sigcontext.h: Deansideclized.
10159         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Make last arg struct rusage
10160         instead of PTR.
10162         * sysdeps/unix/morecore.c (__default_morecore): Make arg ptrdiff_t.
10164         * sysdeps/ieee754/cabs.c (cabs, z_abs): Use `struct __complex' for arg.
10166         * sysdeps/generic/pow.c: #include <limits.h>.
10168         * sysdeps/generic/mathimpl.c: #include <math.h> before frobnication.
10170         * misc/getusersh.c (okshells): Make const.
10171         (initshells): Properly declare static.
10173         * sysdeps/unix/bsd/__tcgetatr.c: Cast sg_[io]speed to (unsigned char) 
10174         to avoid gcc warnings.
10176         * math/bsd/common/atan2.c, math/bsd/common/tan.c,
10177         math/bsd/common/sincos.c, math/bsd/common/trig.h,
10178         math/bsd/common_source/__expm1.c, math/bsd/common_source/fmod.c,
10179         math/bsd/common_source/acosh.c, math/bsd/common_source/log.c,
10180         math/bsd/common_source/asincos.c, math/bsd/common_source/asinh.c,
10181         math/bsd/common_source/log1p.c, math/bsd/common_source/atan.c,
10182         math/bsd/common_source/log__L.c, math/bsd/common_source/atanh.c,
10183         math/bsd/common_source/mathimpl.h, math/bsd/common_source/cosh.c,
10184         math/bsd/common_source/exp.c, math/bsd/common_source/sinh.c,
10185         math/bsd/common_source/exp__E.c, math/bsd/common_source/tanh.c,
10186         math/bsd/common_source/floor.c: Moved to sysdeps/generic.
10187         * math/bsd/ieee/{cabs,cbrt,support}.c: Moved to sysdeps/ieee754.
10188         * All above + sysdeps/generic/mathimpl.h, sysdeps/generic/pow.c: New
10189         code from 4.4/net2.
10191         * sysdeps/generic/ffs.c: #include <string.h>, not <bstring.h>.
10193         * posix/glob/Makefile.in (Makefile): Depend on config.status; invoke
10194         it directly instead of using $(SHELL).
10196         * posix/glob.c [! USG]: #include <sys/types.h> before <sys/dir.h>.
10198 Tue Jul 28 17:54:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10200         * sysdeps/unix/bsd/ultrix42: Renamed to ultrix4.
10202         * sysdeps/unix/sysv/isc2.2/__rename.S: New.
10203         * configure (isc*): base_os=unix/sysv.
10205         * Makefile, Makerules, Rules, math/Makefile, ctype/Makefile: Use
10206         "export foo := $(foo)" instead of ifdef have_export_directive.
10207         * Makeconfig (have_export_directive): Remove; move .NOEXPORT down.
10209 Mon Jul 27 18:01:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10211         * configure: Remove redundant test to set os_used.
10213 Sun Jul 26 17:03:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10215         * README.template: Don't mention Q+A.
10216         * Makefile (distribute): Remove Q+A.
10218         * Makefile, Makerules, Rules, math/Makefile, ctype/Makefile: Put
10219         "ifdef have_export_directive" around uses of `export' directive.
10220         They are only needed for dist and tags anyway.
10221         * Makeconfig (have_export_directive): Add commented-out defn, and
10222         comment to explain.
10223         (.NOEXPORT): Add special target for old versions of GNU make.
10225         * posix/glob.c [_AIX]: #pragma alloca first thing.
10226         [ANSI_STRING]: Remove #define's for index et al.
10228 Thu Jul 23 21:49:53 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10230         * misc/getpass.c: New.
10231         * posix/unistd.h (getpass): Declare.
10233         * posix/unistd.h (getusershell, setusershell, endusershell): Declare.
10234         * misc/Makefile (routines): Add getusersh.
10235         * misc/getusersh.c: New.
10237 Tue Jul 14 20:03:57 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10239         * stdlib/Makefile (tests): Add testdiv.
10240         * stdlib/testdiv.c: New.
10242         * sysdeps/unix/sysv/i386/linux/{rename,__mkdir,__rmdir,__dup2,
10243         getpgrp,__setpgrp,setsid}.S: New files.
10245         * sysdeps/unix/__getppid.S: If SYS_getppid is defined, use it rather
10246         than alternate value of getpid.
10247         * __gete[ug]id.S: Similar.
10249         * sysdeps/unix/sysv/i386/linux/__waitpid.S: New file.
10250         * sysdeps/unix/sysv/i386/linux/__wait.S: New file.
10251         * sysdeps/posix/__wait3.c: New file.
10253         * sysdeps/unix/sysv/i386/linux/socket.S: New file.
10254         * bind.S, connect.S, listen.S, accept.S, getsockname.S,
10255         getpeername.S, socketpair.S: Also new (and trivial).
10257 Mon Jul 13 17:41:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10259         * sysdeps/unix/sysv/i386/linux/sysdep.[hS]: New files.
10261         * configure (linux*): base_os=unix/sysv
10262         (gnu*, linux*): Always set --with-gnu-ld and --with-gnu-as.
10264         * stdio/obstream.c: #include <string.h>
10265         (obstack_vprintf): Use bzero rather than memset.
10267         * stdio/glue.c (unix_FILE.glue): Add two members, which will overlap
10268         get_limit and put_limit in GNU stdio.
10269         (_iob): Initialize them to same as `streamp'.
10271 Thu Jul  9 21:27:39 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10273         * stdio/stdio.h (open_obstack_stream, obstack_printf,
10274         obstack_vprintf): Declare.
10276         * posix/glob.c [STDC_STRINGS]: Don't test this.
10277         [! ANSI_STRING]: Put memcpy, strrchr, memset defns here instead.
10279         * posix/glob/Makefile.in (glob.o, fnmatch.o): / after $(srcdir).
10281 Tue Jul  7 03:11:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10283         * stdio/Makefile (routines): Add obstream.
10285         * Makerules (%.o: %.S, %.o: %.c): If using gcc, put the file name
10286         before the options on the command line.
10288         * malloc/Makefile (dist-routines): Define with routines for malloc.tar.
10289         (routines): Define with that plus the rest.
10290         (nodist): Remove.
10291         (routines): Add obstack.
10292         (headers): Add obstack.h.
10293         (obstack.%): New rule.
10295         * stdio/glue.c: Add comments.
10297         * stdio/printf.h (struct printf_info.spec): Make unsigned char.
10299         * stdio/stdio.h (__validfp): Fixed glued-stream snarfing.
10301 Mon Jul  6 20:00:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10303         * sysdeps/i386/jmp_buf.h: Deansideclized.
10305         * sysdeps/posix/Makefile (objdir-CPPFLAGS): Define; if in parent
10306         dir, add ..s to -Is.
10307         (mk-stdiolim): Use it in place of $(CPPFLAGS).
10309 Sat Jul  4 20:44:42 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10311         * posix/glob/Makefile.in (glob.o, fnmatch.o): Put $(srcdir) on deps.
10313 Wed Jul  1 00:13:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10315         * sysdeps/generic/strstr.c: If NEEDLE is "", return end of HAYSTACK.
10317         * string/tester.c (main): Remove decls of sys_nerr and sys_errlist.
10319         * configure: Accept --prefix=*, --exec_prefix=* options.
10320         Set values in config.make and config.status.
10322         * io/umask.c: Fixed return type in fn alias.
10324         * posix/glob.c [! ANSI_STRING]: #define strcoll to strcmp.
10325         Remove extra decls of free, qsort, malloc, and realloc.
10327         * dirent/alphasort.c: #include <string.h>, and not <stdlib.h>.
10329         * sysdeps/unix/bsd/i386/__wait3.S: Load SYS_wait into %eax before
10330         trapping.  Use literal .byte instead of lcall to avoid gas bug.
10331         Use 0(REG), not (REG), for register-indirect addressing.
10333         * configure: Make config.status executable.
10335 Tue Jun 30 21:14:53 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10337         * configure: Add --os-release=* and --os-version=* options.  Record
10338         settings (which might be automagically guessed) in config.status.
10340         * misc/mknod.c: Use __mode_t for arg in fn alias.
10342         * posix/unistd.h (setregid): Declare to take __gid_t args.
10344         * sysdeps/unix/bsd/i386/__wait3.S: Don't use lcall insn gas barfs on.
10346         * posix/vfork.c: Move to sysdeps/generic/.
10348         * Rules (others, tests): Export them.
10350         * io/umask.c, io/mkdir.c, io/chmod.c: Use mode_t not int in arg decls.
10352         * sysdeps/i386/ffs.c: #include <string.h>, not <bstring.h>.
10354         * stdio/vfscanf.c: Use function_alias.
10356         * stdio/vsscanf.c: Use va_list, not PTR, in arg decl in fn alias.
10358         * sysdeps/unix/i386/sysdep.h (PSEUDO): Enough backslashes and
10359         semicolons.
10361         * stdio/stdio.h: For __gnuc_va_list, #test __GNUC_VA_LIST, not
10362         __va_list_defined.
10364         * stdio/fmemopen.c: Use memchr to find NUL for append mode.
10366         * stdio/memstream.c (enlarge_buffer): Double the buffer size, rather
10367         than adding 100.  Don't clobber *INFO->bufsize when called with the
10368         put limit reset.  If the target has been set, extend and zero-fill
10369         the buffer.
10370         (seek): New function.
10371         (open_memstream): Use it for seek io fn.  Call fmemopen with "w+" mode.
10373 Sun Jun 28 19:01:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10375         * stdio/fseek.c: Fail with EINVAL for a negative file pos.
10377 Fri Jun 26 00:07:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10379         * Makeconfig (stdarg.h): New variable.
10380         * Makefile (headers): Add $(stdarg.h).
10382         * stdio/stdio.h: Change __va_list to __gnuc_va_list in decls.
10384         * sysdeps/unix/morecore.c: Include malloc.h #ifndef _MALLOC_INTERNAL.
10385         Don't include <stdio.h>.
10386         (NULL): Define to 0 if not defined.
10388         * sysdeps/i386/bzero.c: Include string.h, not bstring.h.
10390 Thu Jun 25 21:01:40 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10392         * stdio/perror.c, string/strerror.c (_sys_errlist, _sys_nerr): Don't
10393         declare #ifndef HAVE_GNU_LD.
10395         * stdio/fwrite.c: Cast arg to write io func to const char * (from uns).
10397         * sysdeps/unix/Makefile: If syscall.h doesn't exist in
10398         $(sysincludedir), look for sys/syscall.h and create $(objpfx)syscall.h
10399         to #include it.
10401         * sysdeps/unix/morecore.c (__default_morecore): Deansideclized.
10402         * malloc/*.c: Only #include <malloc.h> #ifndef _MALLOC_INTERNAL.
10404 Wed Jun 24 19:09:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10406         * sysdeps/unix/snarf-ioctls: Avoid looking at a few particular
10407         headers which tend to mislead us.
10409         * Makefile (distribute): Add COPYING.
10411         * configure (Makefile): When invoking make in srcdir, set ARCH
10412         rather than objdir on the cmd line.
10414         * posix/glob.c [DIRENT] (direct): Don't define to dirent.
10415         [! DIRENT] (direct): Define to dirent.
10417         * Make-dist [!subdir] (+tsrcs): Don't include $(distribute).  It was
10418         already included above.
10420 Mon Jun 22 16:58:34 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10422         * Makerules (sysdep_routines): Export it.
10424 Wed Jun 17 17:58:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10426         * posix/glob.c (my_realloc): Test only __GNU_LIBRARY__.  Can't trust
10427         STDC_HEADERS.
10429 Tue Jun 16 20:20:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10431         * resource/sys/resource.h (enum __rlimit_resource): Added MEMLOCK,
10432         NPROC, OFILE.
10434         * posix/Makefile (glob.tar): Include Makefile.in & configure, and not
10435         Makefile.
10436         (glob/configure): New rule.
10438         * posix/glob/Makefile: Moved to posix/glob/Makefile.in.
10439         (VPATH, srcdir, CPPFLAGS): Define to be replaced by autoconf.
10441         * posix/glob.c: Rearranged conditionals for use with autoconf.
10443 Thu Jun 11 15:47:43 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10445         * sysdeps/unix/bsd/sun/sparc/start.c: Added alias for start -> __start.
10447 Tue Jun  9 20:15:12 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10449         * sysdeps/posix/rename.c: Return failure and don't remove the old
10450         link if the link failed with other than EEXIST.
10452         * posix/glob/Makefile: Fixed copyright notice.
10453         (realclean): Don't remove ~ backup files.
10455 Thu Jun  4 16:41:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10457         * time/Makefile (install-data): Don't include zoneinfo/.
10458         Makerules already makes sure the necessary directories exist.
10460         * setjmp/setjmp.h (sigsetjmp) [__GNUC__]: Use typeof hackery to
10461         construct the type of the temporary var for the arg.
10462         (_setjmp) [__FAVOR_BSD]: Make same as setjmp.
10464         * malloc/malloc.h (mtrace): Declare.
10466         * malloc/malloc.h, malloc/calloc.c, malloc/free.c, malloc/malloc.c,
10467         malloc/mcheck.c, malloc/memalign.c, malloc/mstats.c,
10468         malloc/mtrace.c, malloc/realloc.c, malloc/valloc.c: Deansideclized;
10469         changed copyright notices to be independent of libc.
10470         * malloc/Makefile (glob/%.c, glob/%.h): Don't need to ansideclificate.
10472         * io/ftw.h, io/ftw.c: New.
10473         * io/Makefile (headers): Added ftw.h.
10474         (routines): Added ftw.
10476 Tue Jun  2 21:49:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10478         * sysdeps/unix/bsd/signum.h (SIG_ERR, SIG_DFL, SIG_IGN): Use
10479         __sighandler_t.
10481         * posix/glob.c (__ptr_t): Define.
10483 Thu May 28 06:57:14 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10485         * sysdeps/m68k/jmp_buf.h: Don't use PTR.
10487 Wed May 27 18:09:40 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10489         * posix/{glob,fnmatch}.[ch]: Deansideclized; changed copyright
10490         notice to be independent of libc.
10491         * posix/Makefile (glob/%.c, glob/%.h): Don't need to ansideclificate.
10493         * posix/unistd.h (_SC_2_FORT_RUN, _SC_2_LOCALDEF): Define.
10495         * posix/unistd.h: Define _POSIX2_* without #ifdef __USE_POSIX2.
10497         * posix/unistd.h (_POSIX2_FORT_DEV): Removed.
10499         * posix/fnmatch.h (FNM_FILE_NAME): Alias for FNM_PATHNAME.
10501 Tue May 26 00:39:39 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10503         * time/Makefile (install-data): Include zoneinfo/, so the directory
10504         gets made.
10506         * Makeconfig (+gcc-nowarn): Define to -w if using gcc.
10507         * time/Makefile (tz-cc): Use it to suppress warnings for grody code.
10509         * posix/Makefile (libposix.a), math/Makefile (libm.a): Make archive
10510         containing /dev/null instead of nothing; ar won't create an empty
10511         archive.
10513         * Makerules (%/): Added generic mkdir rule.
10515         * posix/Makefile (install-lib): Define to libposix.a.
10516         (libposix.a): Create empty archive.
10518         * posix/Makefile (distribute): Added utsnamelen.h.
10520         * ctype/ctype.c (tolower, toupper): If the arg doesn't fit in a
10521         char, return it unchanged.
10522         * ctype/ctype.h (tolower, toupper): Don't define as macros.
10523         [__GNUC__]: Define as extern inline functions.
10525         * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h,
10526         sysdeps/unix/bsd/sun/sunos4/uname.S: New.
10528         * configure: Only do hacking to snarf uname info if the config uses
10529         the generic uname implementation.
10531         * Makeconfig (+defines): Define to include $(gnu_ld), rather than
10532         -DHAVE_GNU_LD.
10533         * configure: Write config.make with gnu_ld/gnu_as defns.
10535         * sysdeps/unix/bsd/sun/sunos411: Renamed back to .../sunos4.
10536         * sysdeps/unix/bsd/bsd44: Renamed to .../bsd4.4.
10538         * Makeconfig: include $(objpfx)configparms instead of
10539         $(objdir)/Makeconfig.
10540         Define objpfx as soon as objdir is defined, so we can use it.
10542         * sysdeps/generic/uname.c: Use UNAME_* from config-name.h.
10544 Mon May 25 19:33:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10546         * configure: Accept all standard GNU configure options.
10547         Expect to be run in object directory, and find source directory
10548         elsewhere.
10549         Write config.status as a shell script that can be run to recreate
10550         the configuration.
10551         Grok os names containing dots by trying each successively
10552         less-precise substring.
10553         Write Sysnames and config-name.h in current directory.
10554         Write #define's for uname sysname, release, version, and machine
10555         elts in config-name.h.  Hackery to intuit release and version info.
10557         * stdio/vsnprintf.c, stdio/vsprintf.c, stdio/vasprintf.c,
10558         stdio/vdprintf.c, stdio/vfscanf.c, stdio/vscanf.c,
10559         stdio/__vsscanf.c: Take arg list as va_list, not PTR.
10561         * stdio/stdio.h: Replaced #include <stdarg.h> with magic.
10562         Properly use __va_list in prototypes.
10564         * Makeconfig (exec_prefix): Define.
10565         (libdir, includedir, bindir): Use it.
10567         * sysdeps/unix/sysv/Makefile [subdir==io] (sysdep-routines): Removed
10568         __utssys.
10569         * sysdeps/unix/sysv/Dist: Removed __utssys.S.
10570         * sysdeps/unix/sysv/__utssys.S, sysdeps/unix/sysv/uname.c: Removed.
10571         * sysdeps/unix/sysv/uname.S, sysdeps/unix/sysv/utsnamelen.h: New.
10573         * posix/sys/utsname.h (_UTSNAME_LENGTH): Don't define; instead,
10574         #include <utsnamelen.h> to define it.
10575         * sysdeps/generic/utsnamelen.h: New.
10577 Sun May 24 00:07:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10579         * sysdeps/generic/inet-cvt.h: Deansideclized.
10581         * string/string.h (memfrob): First arg is __ptr_t, not char *.
10583         * misc/sys/cdefs.h (__ptr_t): Made #define rather than a typedef.
10585 Fri May 22 01:52:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10587         * Makefile, Rules, Makerules: Remove all rules for ansideclificating
10588         headers.
10590         * posix/glob.h, posix/fnmatch.h: Use explicit cruft for C++.
10591         Define __P and const for C++/ANSI vs old C ourselves, to avoid
10592         dependence on <sys/cdefs.h>.
10594         * inet/Makefile: Remove cruft to snarf things from bsd/.
10595         * inet/bsd/*.c: Moved to inet/.
10597         * Makerules: Install headers from source directories into
10598         $(includedir), rather than ansidecl madness.
10599         * Makeconfig (ansi-incldir, trad-incldir): Removed.
10600         (includedir): Define instead.
10602         * assert/assert.h, ctype/ctype.h, dirent/dirent.h, grp/grp.h,
10603           locale/locale.h, locale/localeinfo.h, math/math.h,
10604           misc/sys/file.h, misc/sys/ioctl.h, misc/sys/ptrace.h,
10605           misc/sys/uio.h, misc/sgtty.h, misc/nlist.h, posix/gnu/types.h,
10606           posix/sys/wait.h, posix/sys/types.h, posix/sys/times.h,
10607           posix/sys/utsname.h, posix/unistd.h, posix/tar.h, posix/utime.h,
10608           posix/wordexp.h, posix/glob.h, posix/fnmatch.h, pwd/pwd.h,
10609           resource/sys/resource.h, resource/sys/vlimit.h,
10610           resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
10611           signal/gnu/signal.h, socket/sys/socket.h, stdio/stdio.h,
10612           stdio/printf.h, stdlib/alloca.h, stdlib/stdlib.h, string/string.h,
10613           termios/termios.h, time/sys/time.h, time/time.h, io/sys/stat.h,
10614           io/fcntl.h, errno.h, stddef.h, malloc/malloc.h:
10615         Deansideclized.  Use <sys/cdefs.h> macros instead of ansidecl and
10616         C++ cruft.
10617         * features.h: #include <sys/cdefs.h>.
10619         * string/string.h (strfry, memfrob): Declare.
10620         * string/Makefile (routines): Added strfry and memfrob.
10621         * string/strfry.c, string/memfrob.c: New.
10623         * locale/C-ctype_ct.c: Made BS be isspace.
10625         * sysdeps/generic/strstr.c: Return HAYSTACK, not its end, if NEEDLE
10626         is the empty string.
10628         * sysdeps/generic/strncase.c: Fixed for case of empty string.
10630 Wed May 20 02:36:09 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10632         * io/sys/stat.h (fchmod): Declare, rather than two __fchmod decls.
10634         * configure (sysv, bsd): Don't make base_os=unix; unix/{sysv,bsd}
10635         instead.
10636         Set os_used if base_os is used.
10638 Tue May 19 21:00:11 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10640         * crypt/*: New files from glad.
10642         * stdio/stdio.h (sys_nerr, sys_errlist): Don't declare const.
10644 Sun May 17 15:50:00 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10646         * io/Makefile (headers): Remove gnu/stat.h; add sys/stat.h.
10648         * posix/glob.c (glob): Don't let us fall off the end without returning.
10650         * sysdeps/stub/setenv.c, sysdeps/posix/setenv.c: New.
10651         * stdlib/stdlib.h [__USE_BSD] (setenv): Declare.
10652         * stdlib/Makefile (routines): Add setenv.
10654         * malloc/mtrace.c (old_{free,malloc,realloc}_hook): Renamed to tr_&
10655         to not conflict with mcheck.c when combined into gmalloc.c.
10657 Fri May 15 19:07:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10659         * socket/sys/socket.h (PF_NBS, AF_NBS): Removed.
10660         (PF_ISO, PF_OSI, PF_APPLETALK, PF_ROUTE, PF_LINK): Define.
10661         (PF_MAX): Increase accordingly.
10663         * inet/bsd/*.c: Snarfed latest code from 4.4.
10665         * misc/sys/cdefs.h (__BEGIN_DECLS, __END_DECLS): Define cruft for C++.
10667 Thu May 14 01:45:12 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10669         * posix/glob.h (GLOB_MAGCHAR): Check user feature-test macros,
10670         rather than __USE_BSD, so we don't depend on features.h.
10672         * sysdeps/stub/__wait4.c: Last arg is struct rusage *, not PTR.
10674         * math/bsd/common_source/mathimpl.h: Don't #define const.
10675         #include <sys/cdefs.h> instead.
10677         * Makefile (+other_dirs): Add crypt, but only if it exists at run time.
10678         * crypt/GNUmakefile: New file.
10679         * sysdeps/sparc/Makefile, sysdeps/m68k/Makefile (crypt):
10680         Define to use machine-dependent assembly code in crypt/crypt.*.S.
10681         * crypt: New directory.
10683         * find-sysdirs: Don't lose if there are no sysnames.
10685         * termios/Makefile (headers): Added sys/termios.h.
10686         * termios/sys/termios.h: New file; just #include <termios.h>.
10688         * stdlib/qsort.c: Define _quicksort rather than qsort.
10689         * stdlib/msort.c: New file; defines qsort function that does merge
10690         sort.  Falls back to _quicksort if it fails to allocate a temp array.
10691         * stdlib/Makefile (routines): Added msort.
10693         * string/string.h (memccpy, strdup): Also declare #ifdef __USE_BSD.
10694         [__USE_BSD] (index, rindex, bcmp, bzero, ffs): Declare.
10695         * string/strings.h: Just #include <string.h>.
10696         * string/Makefile (headers): Removed bstring.h.
10698         * misc/Makefile (routines): Removed swab.
10699         * string/Makefile (routines): Put it here instead.
10700         * misc/swab.c: Moved to string/swab.c.
10702         * stdio/stdio.h [__USE_BSD] (sys_nerr, sys_errlist): Declare.
10704         * grp/grp.h (setgrent, endgrent, getgrent): Also do #ifdef __USE_BSD.
10706         * posix/glob.h [__USE_BSD] (GLOB_MAGCHAR): Declare.
10707         (glob_t): Added member `gl_flags'.
10708         * posix/glob.c (glob, glob_in_dir): Set gl_flags member to FLAGS;
10709         or in GLOB_MAGCHAR if any metachars are seen.
10711         * sysdeps/unix/bsd/bsd44/readdir.c: New.
10713         * sysdeps/unix/bsd/sun/readdir.c: Don't need to declare
10714         __getdirentries here.  Use off_t and ssize_t.
10716         * misc/Makefile (routines): Removed getdents and __getdents.
10717         * dirent/Makefile (routines): Put them here instead.
10718         * misc/getdents.c: Moved to dirent/getdents.c.
10719         * dirent/dirent.h [__USE_BSD] (__getdirentries, getdirentries):
10720         Declare.
10722         * dirent/Makefile (routines): Added scandir and alphasort.
10723         * dirent/scandir.c, dirent/alphasort.c: New.
10724         * dirent/dirent.h [__USE_BSD] (scandir, alphasort): Declare.
10726         * sysdeps/unix/bsd/nice.c, sysdeps/unix/sysv/nice.S,
10727         sysdeps/stub/nice.c: New.
10728         * resource/Makefile (routines): Added nice.
10730         * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): #define to
10731         __ versions, for the sake of 4.4 header files.
10733 Wed May 13 00:35:12 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10735         * stdlib/tst-strtol.c: Fixed typo in test table.
10737         * stdlib/strtol.c: Fixed checking for overflow of long int that fits
10738         in unsigned long int.
10740         * misc/Makefile (headers): Added ttyent.h.
10741         (routines): Added getttyent.
10742         * misc/ttyent.h, misc/getttyent.h: New; snarfed from 4.4.
10744         * posix/sys/wait.h [__USE_BSD]: Added forward decl for struct rusage.
10745         (__wait4, __wait3): Declare arg as struct rusage, not PTR.
10747         * inet/arpa/*.h, inet/protocols/*.h, inet/netdb.h, inet/resolv.h:
10748         New files from 4.4.
10749         * inet/Makefile (headers): Snarf *.h from arpa/ and protocols/.
10751         * sysdeps/m68k/fpu/__math.h, assert/assert.h: #include <sys/cdefs.h>
10752         and use its macros rather than rolling our own.
10754         * misc/sys/cdefs.h: New file.
10755         * misc/Makefile (headers): Add it.
10757         * Makerules: Moved check for headers coming from env to Rules.
10759 Tue May 12 01:04:10 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10761         * sysdeps/generic/strsep.c: New.
10762         * string/string.h [__USE_BSD] (strsep): Declare.
10763         * string/Makefile (routines): Added strsep.
10765         * sysdeps/unix/sysv/__settod.c, sysdeps/unix/sysv/stime.S,
10766         sysdeps/unix/bsd/stime.c, sysdeps/stub/stime.c: New.
10767         * time/time.h [__USE_SVID] (stime): Declare it.
10769         * sysdeps/unix/bsd/bsd44/__getdents.S: New.
10771         * posix/wordexp.h, posix/utime.h, posix/unistd.h, time/time.h,
10772         termios/termios.h, posix/tar.h, string/strings.h, string/string.h,
10773         stdlib/stdlib.h, signal/signal.h, stdio/stdio.h, misc/sgtty.h,
10774         setjmp/setjmp.h, inet/resolv.h, pwd/pwd.h, stdio/printf.h,
10775         misc/nlist.h, inet/netdb.h, math/math.h, malloc/malloc.h,
10776         locale/locale.h, grp/grp.h, posix/glob.h, posix/getopt.h,
10777         posix/fnmatch.h, io/fcntl.h, errno.h, dirent/dirent.h,
10778         ctype/ctype.h, string/bstring.h, assert/assert.h, stdlib/alloca.h,
10779         misc/a.out.h [__cplusplus]: Added stupid cruft for losing C++.
10781 Mon May 11 01:40:49 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10783         * math/Makefile (headers): Added huge_val.h and nan.h.
10785         * io/Makefile (headers): Changed gnu/stat.h to statbuf.h.
10787         * time/Makefile (install-data): Include $(localtime-file) and
10788         $(posixrules-file) if they are relative.
10789         (install-others): Include them if absolute.
10790         ($(posixrules-file), $(localtime-file)): Define rules to install if
10791         absolute file names.
10792         * Makerules (+install): Include $(install-others) verbatim.
10793         * Makeconfig (localtime-file): Made default /etc/localtime.
10795         * sysdeps/generic/Makefile (endian.h): Only generate if would
10796         otherwise use stub version.
10797         * sysdeps/stub/endian.h, sysdeps/i386/endian.h: New.
10799         * Rules, Makefile: Export distribute and dont_distribute.
10800         * Make-dist: Export sysdep_dirs.  Unexport things rather than
10801         clobbering their values.
10803         * misc/sys/ptrace.h: Fixed typo.
10805         * stdio/stdio.h (__io_read, __io_write, __io_seek, __io_close):
10806         Added comments.
10808         * stdio/internals.c (flushbuf): If in append mode, don't do aligned
10809         writing, seek to the target, or update the offset.
10811         * posix/unistd.h (lseek): Doc fix.
10813         * misc/swab.c: New.
10814         * misc/Makefile (routines): Added swab.
10816 Wed May  6 12:32:18 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10818         * math/Makefile, inet/Makefile (source_dirs): Export it.
10819         * MakeTAGS (all-dirs): Include $(source_dirs).
10821         * Makefile (TAGS): Removed dep on subdir_TAGS.
10822         (+subdir_targets): Removed subdir_TAGS.
10823         * MakeTAGS [! subdir] (TAGS): Depend on subdir_TAGS.
10824         [! subdir] (subdir_TAGS): Recurse on subdirectories.
10826         * Makerules (headers): Don't take value from the environment.
10828         * Makerules (sysdirs, sysdep_dir): Export them.
10830         * MakeTAGS: New makefile.
10831         * Makefile (distribute): Include it.
10832         * Makefile (TAGS), Rules (TAGS): Removed rules.
10833         * Makerules (TAGS): New rule that uses MakeTAGS.
10834         * Makefile (TAGS): Depend on subdir_TAGS.
10836         * Makerules (install, install-lib, install-data, routines, aux):
10837         Don't bother removing these if they come from the environment, since
10838         they won't with make >= 3.62.8.
10839         * Rules (distribute, headers): Ditto.
10840         (subdir): Export it.
10841         * Makerules (sources, headers): Export these.
10842         * Makefile (subdirs): Export it.
10844         * Rules (+tags_sources): Removed.
10845         * Makerules (tags-sources): Define here.
10846         * ctype/Makefile (tags-sources): Redefine to give headers precedence
10847         over sources.
10848         * Rules (TAGS), Makefile (TAGS): Rewrote rules.
10849         * Makeconfig (+ctags): Removed.
10850         (ETAGS): Define.
10852         * sysdeps/posix/getcwd.c: Don't closedir twice.
10854         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Define __wait3, not ___wait3.
10856         * posix/sys/types.h [__USE_BSD] (fsid_t): Define.
10857         * posix/gnu/types.h (__fsid_t): Define.
10859         * io/fcntl.h (F_GETLK): Define.
10861 Tue May  5 18:36:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10863         * misc/Makefile (routines): Added seteuid and setegid.
10864         * sysdeps/stub/sete[ug]id.c, sysdeps/unix/bsd/bsd44/sete[ug]id.S: New.
10865         * posix/unistd.h [__USE_BSD] (seteuid, setegid): Declare.
10867         * sysdeps/unix/bsd/tcsendbrk.c: #include <sys/types.h>
10869         * Makerules: Strip whitespace from $(headers) so ifdef wins.
10871         * sysdeps/unix/bsd/bsdtty.h: #undef a bunch more things.
10873         * sysdeps/unix/bsd/bsd44/errnos.h: New, hacked from 4.4 <sys/errno.h>.
10875         * sysdeps/unix/Makefile (ioctls.h, errnos.h): Only generate if
10876         the files that would be used otherwise are the stub versions.
10878         * sysdeps/unix/bsd/tcflow.c: Don't write VSTOP or VSTART if it is
10879         _POSIX_VDISABLE.
10881         * sysdeps/unix/bsd/tcflush.c: Use FREAD|FWRITE for TCIOFLUSH.
10883         * sysdeps/unix/bsd/usleep.c: Use select rather than itimers to wait.
10885         * sysdeps/unix/bsd/tcsendbrk.c: Use select rather than itimers to wait.
10887         * termios/cfmakeraw.c: New.
10888         * termios/Makefile (routines): Added cfmakeraw.
10890         * sysdeps/unix/bsd/bsd44/ioctls.h: New file, hacked from 4.4
10891         <sys/ioctl.h>.
10892         * sysdeps/unix/bsd/bsd44/__tcgetatr.c: New.
10893         * sysdeps/unix/bsd/bsd44/tcsetattr.c: New.
10894         * sysdeps/unix/bsd/bsd44/tcdrain.c: New.
10896         * termios/sys/ttydefaults.h: New, snarfed from 4.4.
10897         * termios/Makefile (headers): Define.
10898         * termios/termios.h [__USE_BSD]: #include <sys/ttydefaults.h>
10900         * sysdeps/posix/getcwd.c: Removed unused variable.
10902         * time/__tzset.c: Cast string literal to (char *).
10904         * setjmp/sigjmp_save.c: Declare properly to return void.
10906         * sysdeps/ieee754/nan.h: Created; somehow it disappeared.
10908 Mon May  4 18:30:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
10910         * sysdeps/unix/bsd/bsd44/__wait4.S: New.
10912         * sysdeps/unix/bsd/4.4: Renamed to sysdeps/unix/bsd/bsd44.
10914         * signal/gnu/signal.h (__SA_DISABLE, __SA_NOCLDSTOP): Use same bits
10915         4.4 uses.
10917 Sun May  3 13:57:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
10919         * stdio/fwrite.c: Use unsigned char to avoid sign extension.
10921         * stdlib/__random.c (randtbl): Replaced default constants so they
10922         match the state produced by "srandom (1)".
10924         * stdlib/mbtowc.c: Test for S == "" before testing for no mbchars.
10926         * stdlib/Makefile (tests): Added testrand.
10927         * stdlib/testrand.c: New test for rand.
10929         * stdlib/testmb.c: Added 2 mblen tests.
10931         * stdlib/wcstombs.c: Don't do anything strange for EOF.
10932         Copy non-MB characters as they are.
10933         Properly increment S after writing.
10935         * stdlib/testmb.c: Added test case for wcstombs.
10937         * signal/signal.h (SA_DISABLE): Define.
10938         * signal/gnu/signal.h (__SA_DISABLE): Define.
10940         * signal/signal.h (struct sigaltstack): Define new type.
10941         (sigaltstack): Declare new fn.
10942         * sysdeps/stub/sigaltstack.c: New.
10943         * sysdeps/unix/bsd/4.4/sigaltstack.S: New.
10945         * misc/Makefile (routines): Added reboot.
10946         * posix/unistd.h (reboot): Declare.
10947         * sysdeps/stub/reboot.c: New.
10949         * sysdeps/unix/bsd/ulimit.c [! HAVE_GNU_LD]: #define _etext -> etext.
10951         * sysdeps/unix/bsd/sun/sparc/sethostid.S: #define _ERRNO_H before
10952         #include <errnos.h>.
10954         * configure (newos*): base_os=unix/bsd.
10956 Fri May  1 12:21:47 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10958         * io/gnu/stat.h: Moved to sysdeps/unix/bsd/statbuf.h.
10959         * sysdeps/unix/bsd/statbuf.h: Define struct stat, not struct __stat.
10960         * io/stat.c: Use struct stat, not struct __stat.
10961         * sysdeps/stub/statbuf.h: New.
10962         * io/sys/stat.h: #include <statbuf.h> instead of gnu/stat.h.
10963         (stat, fstat, lstat, chmod, fchmod, umask, mkdir, mknod): Don't
10964         #define; declare as fns instead.
10965         * sysdeps/unix/sysv/stat.h: New.
10966         * sysdeps/unix/sysv/sysv_stat.h, sysdeps/unix/sysv/sys_stat.S,
10967         sysdeps/unix/sysv/sys_fstat.S: Removed.
10968         * sysdeps/unix/sysv/Makefile (sysdep_routines): Removed sys_stat,
10969         sys_fstat.
10970         * sysdeps/unix/sysv/Dist: Removed sys_stat.S, sys_fstat.S.
10971         * sysdeps/unix/bsd/__stat.S, sysdeps/unix/bsd/__fstat.S: Moved to
10972         sysdeps/unix.
10974         * sysdeps/m68k/fpu/switch/Makefile: Refer to dirs fpu and
10975         fpu/switch, not 68881 and 68881-switch.
10977         * sysdeps/m68k/fpu/switch/switch.c: #include <68881-sw.h>, not
10978           68881-switch.h.
10980         * sysdeps/m68k/fpu/__expm1.c, sysdeps/m68k/fpu/__rint.c,
10981         sysdeps/m68k/fpu/asin.c, sysdeps/m68k/fpu/atan.c,
10982         sysdeps/m68k/fpu/atanh.c, sysdeps/m68k/fpu/ceil.c,
10983         sysdeps/m68k/fpu/cos.c, sysdeps/m68k/fpu/cosh.c,
10984         sysdeps/m68k/fpu/exp.c, sysdeps/m68k/fpu/fabs.c,
10985         sysdeps/m68k/fpu/floor.c, sysdeps/m68k/fpu/log.c,
10986         sysdeps/m68k/fpu/log10.c, sysdeps/m68k/fpu/log1p.c,
10987         sysdeps/m68k/fpu/sin.c, sysdeps/m68k/fpu/sinh.c,
10988         sysdeps/m68k/fpu/sqrt.c, sysdeps/m68k/fpu/tan.c,
10989         sysdeps/m68k/fpu/tanh.c: #include <acos.c> without explicit path
10990         (which has changed).
10992         * sysdeps/unix/bsd/sun/sparc/start.c: #include <syscall.h>.
10993         (syscall): Removed C function; define all inside asm instead.
10994         (init_shlib): Cast return value of syscall to right types.
10996 Thu Apr 30 01:15:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
10998         * sysdeps/unix/bsd/sun/sparc/start.c: Added code to use dynamic
10999         linker from trq@dionysos.thphys.ox.ac.uk.
11001         * sysdeps/unix/bsd/sun/sunos4: Renamed to sunos411.
11003         * setjmp/setjmp.h (sigsetjmp): Don't declare as a function.
11004         Define as a macro instead.
11005         (__sigjmp_save): Declare; internal fn used by sigsetjmp macro.
11006         (_setjmp), [__FAVOR_BSD] (setjmp): Always define as a macro.
11007         * setjmp/sigjmp_save.c: New file.
11008         * setjmp/_setjmp.c, setjmp/sigsetjmp.c: Removed.
11009         * Makefile (routines): Removed _setjmp, sigsetjmp; added sigjmp_save.
11010         * misc/bsd-compat.c (setjmp): Don't define.
11012         * configure (sysv, bsd): base_os=unix
11014         * configure: Fatal error if the machine or os did not generate any
11015         sysdep dirs.
11017         * configure: No error message after config.sub fails.
11019         * sysdeps/mips, sysdeps/unix/bsd/ultrix42: New port from
11020         brendan@cs.widener.edu.
11022         * Reorganized sysdeps:
11023           unix/bsd/
11024               hp9k3bsd -> hp/m68k
11025               news -> sony/m68k
11026               sun/
11027                   sun3/os3 -> sunos3/m68k
11028                   sun3 -> m68k
11029                   sun4 -> sparc
11030           unix/sysv/
11031               r4 -> sysv4
11032           m68k/
11033               68881 -> fpu
11034               68881/68881-switch -> fpu/switch
11035         * sysdeps/unix/bsd/sony/m68k/start.c: Changed #include.
11036         * configure: Use config.sub to canonicalize name.
11037         Then use combinations of machine, vendor, and os (with special
11038         hacks for os flavors) for sysdep dirs to try.
11039         * Makefile (distribute): Added config.sub.
11041 Wed Apr 29 23:06:06 1992  Brendan Kehoe  (brendan@churchy.gnu.ai.mit.edu)
11043         * sysdeps/unix/bsd/hp9k3bsd/sysdep.h,
11044         sysdeps/unix/bsd/sun/sun3/sysdep.h, sysdeps/unix/bsd/sun/sun4/sysdep.h,
11045         sysdeps/unix/bsd/vax/sysdep.h,sysdeps/unix/i386/sysdep.h,
11046         sysdeps/mach/i386/sysdep.h: Change all definitions of movl/mov to
11047         MOVE(s, d), for insn sets with d,s instead of s,d move insns.
11048         * sysdeps/unix/__getegid.S, sysdeps/unix/__geteuid.S,
11049         sysdeps/unix/__getppid.S: Use that in each of these.
11051 Wed Apr 29 17:58:21 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11053         * io/getwd.c: Default PATH_MAX if not defined.
11055         * sysdeps/unix/getlogin.c, sysdeps/posix/ttyname.c: Make buffers
11056         only as big as needed, avoiding PATH_MAX.
11058         * sysdeps/posix/getcwd.c: Dynamically extend the buffer as we go,
11059         not afterwards; default PATH_MAX if not defined.
11061         * posix/execvp.c: Dynamically allocate an array on the stack for the
11062         path name, rather than using a fixed-size array.
11064         * pwd/putpwent.c: Print pw_dir field.
11066         * sysdeps/posix/mktemp.c: If the pid has changed, update OLDPID.
11068 Tue Apr 28 19:25:21 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11070         * malloc/valloc.c [emacs]: #include "config.h"
11072 Thu Apr 23 13:55:34 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11074         * sysdeps/m68k/68881/__drem.c: Define __drem, not drem.
11075         Call ____drem, not __drem.
11077         * malloc/realloc.c, malloc/malloc.c: Don't #define memcpy or memset
11078         if already #define'd.
11080 Tue Apr 21 04:16:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11082         * malloc/Makefile: Moved include ../Rules after malloc.tar rules.
11083         They need $(routines), which Rules clears.
11085         * malloc/realloc.c (MIN): Renamed to min.  Conflicted with HPUX
11086         system header files.
11088         * Makefile (sysdep-subdirs): Is not called +sysdep-subdirs.
11090         * configure: Don't try to create config.status if . is not writable.
11092         * sysdeps/generic/printf_fp.c: Fixed padding loop condition for zero
11093         case.
11095         * math/math.h: Don't #include <float.h> for HUGE_VAL.
11096         Instead, #include <huge_val.h>.
11097         * stdlib/stdlib.h: Ditto.
11098         * math/math.h [__USE_GNU]: #include <nan.h> to get NAN value.
11099         * float.h: Removed.
11100         * Makefile (headers): Removed float.h and fl.h.
11101         * sysdeps/ieee754/huge_val.h, sysdeps/ieee754/nan.h,
11102         sysdeps/stub/huge_val.h, sysdeps/stub/nan.h, sysdeps/vax/huge_val.h:
11103         Created (from old fl.h files).
11105         * math/bsd/common_source/pow.c (pow_p): When checking if Y is an
11106         integer, don't let it overflow a `long int'.
11107         (pow): Check for NaN with __isnan, not (X != X).
11109 Tue Apr 21 02:26:19 1992  Brendan Kehoe  (brendan@cs.widener.edu)
11111         * sysdeps/unix/bsd/sun/sun4/__pipe.S,
11112         sysdeps/unix/bsd/vax/__wait3.S, sysdeps/unix/bsd/hp9k3bsd/__wait3.S:
11113         Use the ENTRY macro for each beginning
11115         * sysdeps/unix/sysdep.h, sysdeps/unix/bsd/hp9k3bsd/sysdep.h,
11116         sysdeps/unix/bsd/sun/sun3/sysdep.h,
11117         sysdeps/unix/bsd/sun/sun4/sysdep.h, sysdeps/unix/bsd/vax/sysdep.h,
11118         sysdeps/unix/i386/sysdep.h, sysdeps/unix/sysdep.h,
11119         sysdeps/unix/sysv/sysdep.h [SYSCALL, SYSCALL__, PSEUDO]: Modify to
11120         also receive the number of args the syscall takes; added for future
11121         ports that will require this information.
11123         * sysdeps/unix/i386/__pipe.S, sysdeps/unix/bsd/vax/__pipe.S,
11124         sysdeps/unix/bsd/sun/sun4/__pipe.S,
11125         sysdeps/unix/bsd/hp9k3bsd/__pipe.S, sysdeps/unix/i386/__brk.S,
11126         sysdeps/unix/bsd/sun/__getdents.S, sysdeps/unix/i386/__fork.S,
11127         sysdeps/unix/bsd/vax/__fork.S, sysdeps/unix/bsd/sun/sun4/__fork.S,
11128         sysdeps/unix/__setgid.S, sysdeps/unix/__setuid.S,
11129         sysdeps/unix/bsd/sun/sun3/__vfork.S,
11130         sysdeps/unix/bsd/sun/sun4/__vfork.S,
11131         sysdeps/unix/bsd/vax/__wait.S, sysdeps/unix/bsd/hp9k3bsd/__wait.S,
11132         sysdeps/unix/i386/__wait.S,
11133         sysdeps/unix/bsd/sun/sunos4/sys_wait4.S,
11134         sysdeps/unix/bsd/sun/sun3/sethostid.S,
11135         sysdeps/unix/bsd/sun/sun4/sethostid.S,
11136         sysdeps/unix/bsd/__sigvec.S, sysdeps/unix/bsd/sun/sun4/__sigvec.S,
11137         sysdeps/unix/sysv/i386/__sigret.S, sysdeps/unix/__getppid.S,
11138         sysdeps/unix/bsd/__access.S, sysdeps/unix/sysv/signal.S,
11139         sysdeps/unix/__getegid.S, sysdeps/unix/__geteuid.S,
11140         sysdeps/unix/bsd/bsd_getgrp.S, sysdeps/unix/bsd/__dup2.S,
11141         sysdeps/unix/bsd/__fchmod.S, sysdeps/unix/bsd/__fchown.S,
11142         sysdeps/unix/bsd/__flock.S, sysdeps/unix/bsd/__fstat.S,
11143         sysdeps/unix/bsd/__lstat.S, sysdeps/unix/bsd/__mkdir.S,
11144         sysdeps/unix/bsd/__readlink.S, sysdeps/unix/bsd/__rmdir.S,
11145         sysdeps/unix/bsd/__stat.S, sysdeps/unix/bsd/__symlink.S,
11146         sysdeps/unix/bsd/4.4/chflags.S, sysdeps/unix/bsd/4.4/fchflags.S,
11147         sysdeps/unix/bsd/4.4/sstk.S, sysdeps/unix/bsd/4.4/setlogin.S,
11148         sysdeps/unix/bsd/__getdtsz.S, sysdeps/unix/bsd/__getpgsz.S,
11149         sysdeps/unix/bsd/__setregid.S, sysdeps/unix/bsd/__setreuid.S,
11150         sysdeps/unix/bsd/__utimes.S, sysdeps/unix/bsd/ftruncate.S,
11151         sysdeps/unix/bsd/readv.S, sysdeps/unix/bsd/truncate.S,
11152         sysdeps/unix/bsd/vhangup.S, sysdeps/unix/bsd/writev.S,
11153         sysdeps/unix/bsd/__getpgrp.S, sysdeps/unix/bsd/__setpgrp.S,
11154         sysdeps/unix/bsd/__getrusag.S, sysdeps/unix/bsd/getprio.S,
11155         sysdeps/unix/bsd/getrlimit.S, sysdeps/unix/bsd/setprio.S,
11156         sysdeps/unix/bsd/__sigblock.S,
11157         sysdeps/unix/bsd/__sigpause.S, sysdeps/unix/bsd/__sigstmsk.S,
11158         sysdeps/unix/bsd/killpg.S, sysdeps/unix/bsd/sigstack.S,
11159         sysdeps/unix/bsd/rename.S, sysdeps/unix/bsd/__adjtime.S,
11160         sysdeps/unix/bsd/__setitmr.S, sysdeps/unix/bsd/__settod.S,
11161         sysdeps/unix/sysv/sys_stat.S, sysdeps/unix/sysv/sys_fstat.S,
11162         sysdeps/unix/sysv/__utssys.S, sysdeps/unix/sysv/utime.S,
11163         sysdeps/unix/sysv/__times.S, sysdeps/unix/sysv/i386/time.S,
11164         sysdeps/unix/sysv/alarm.S, sysdeps/unix/sysv/pause.S,
11165         sysdeps/unix/sysv/ulimit.S, sysdeps/unix/__chdir.S,
11166         sysdeps/unix/__chmod.S, sysdeps/unix/__chown.S,
11167         sysdeps/unix/__close.S, sysdeps/unix/__dup.S,
11168         sysdeps/unix/__fcntl.S, sysdeps/unix/__link.S,
11169         sysdeps/unix/__lseek.S, sysdeps/unix/__open.S,
11170         sysdeps/unix/__read.S, sysdeps/unix/__umask.S,
11171         sysdeps/unix/__unlink.S, sysdeps/unix/__write.S,
11172         sysdeps/unix/__ioctl.S, sysdeps/unix/__mknod.S,
11173         sysdeps/unix/acct.S, sysdeps/unix/chroot.S, sysdeps/unix/fsync.S,
11174         sysdeps/unix/ptrace.S, sysdeps/unix/swapon.S, sysdeps/unix/sync.S,
11175         sysdeps/unix/__execve.S, sysdeps/unix/__getgid.S,
11176         sysdeps/unix/__getpid.S, sysdeps/unix/__getuid.S,
11177         sysdeps/unix/_exit.S, sysdeps/unix/__kill.S,
11178         sysdeps/unix/inet/__gethstnm.S, sysdeps/unix/inet/__select.S,
11179         sysdeps/unix/inet/gethostid.S, sysdeps/unix/inet/sethostid.S,
11180         sysdeps/unix/inet/sethostnam.S, sysdeps/unix/inet/accept.S,
11181         sysdeps/unix/inet/bind.S, sysdeps/unix/inet/connect.S,
11182         sysdeps/unix/inet/getpeernam.S, sysdeps/unix/inet/getsocknam.S,
11183         sysdeps/unix/inet/getsockopt.S, sysdeps/unix/inet/listen.S,
11184         sysdeps/unix/inet/recv.S, sysdeps/unix/inet/recvfrom.S,
11185         sysdeps/unix/inet/recvmsg.S, sysdeps/unix/inet/send.S,
11186         sysdeps/unix/inet/sendmsg.S, sysdeps/unix/inet/sendto.S,
11187         sysdeps/unix/bsd/vax/__wait3.S, sysdeps/unix/bsd/hp9k3bsd/__wait3.S,
11188         sysdeps/unix/inet/setsockopt.S, sysdeps/unix/inet/shutdown.S,
11189         sysdeps/unix/inet/socket.S, sysdeps/unix/inet/socketpair.S: Added the
11190         argument count to every use of SYSCALL, SYSCALL__ or PSEUDO.
11192 Tue Apr 21 00:06:52 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11194         * limits.h [__GNUC__ >= 2]: Use #include_next to get GCC's <limits.h>.
11196         * sysdeps/posix/sysd-stdio.c (__stdio_read, __stdio_write,
11197         __stdio_errmsg) [EINTR && EINTR_REPEAT]: Do EINTR looping.
11198         * sysdeps/unix/sysv/sysd-stdio.c: New.
11199         #define EINTR_REPEAT and #include posix/sysd-stdio.c.
11201         * stdlib/mbstowcs.c: Copy non-MB chars verbatim, instead of error.
11203         * sysdeps/generic/printf_fp.c: Note sign of exponent and take its
11204         absolute value for arithmetic.
11206         * stdlib/testmb.c: New.
11207         * stdlib/Makefile (tests): Added testmb.
11209         * sysdeps/generic/frexp.c [NAN]: If VALUE is infinite, return NAN.
11210         If VALUE is NAN, set errno to EDOM and return VALUE.
11211         If VALUE is zero, return it.  In all special cases, clear *EXP.
11213         * stdio/test-fseek.c: New.
11214         * stdio/Makefile (tests): Added test-fseek.
11216         * stdio/fseek.c: Position returned from io_funcs.seek is absolute,
11217         not EOF-relative when using SEEK_END.
11219         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Set errno to
11220         EEXIST when we run out.
11222         * sysdeps/posix/sysd-stdio.c (exists): Use stat rather than open, so
11223         we don't need read access.
11225         * sysdeps/posix/mk-stdiolim.c (TMP_NAM): is 62 ** 3.
11227 Mon Apr 20 23:08:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11229         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Don't return
11230         the same name twice when the file doesn't exist.
11232         * stdio/vfprintf.c (%c format): Tests of LEFT for padding were
11233         reversed.
11235         * sysdeps/generic/printf_fp.c: If we have written some fractional
11236         digits, write zeros up to the precision.
11238         * sysdeps/unix/bsd/sun/sun4/start.c: Don't clear the FP until just
11239         before calling main.
11241 Wed Apr 15 01:43:38 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11243         * Makerules (libc.a): Don't depend on libc.a(...); only on lib.
11244         (lib-noranlib): Depend on libobjs.
11245         (+libobjs): New var.
11246         (libobjs): Depend on $(+libobjs).
11247         * Rules (others, tests): Don't depend on lib; on libc.a instead.
11249         * locale/C-numeric.c: grouping is "".
11251         * locale/localeconv.c: Set int_frac_digits.
11253         * locale/setlocale.c: Accept "" to mean "C".
11255         * sysdeps/unix/sysv/r4/bsddir.h: Protect against multiple inclusion.
11257         * sysdeps/unix/sysv/r4/Dist: Created; includes bsddir.h and
11258         sys_getdents.S.
11260         * sysdeps/unix/i386/sysdep.h [! HAVE_SYSCALLS]: Don't #inlcude
11261         unix/sysdep.h.
11262         * sysdeps/unix/sysv/sysdep.h, sysdeps/unix/sysdep.h
11263         (HAVE_SYSCALLS): #define.
11264         * sysdeps/unix/sysv/i386/sysdep.h: #include unix/sysv/sysdep.h, then
11265         unix/i386/sysdep.h.
11267         * sysdeps/unix/sysv/Makefile: Fixed typos.
11269         * sysdeps/unix/sysv/Dist: Add utmp.h.
11271         * sysdeps/posix/Makefile (mk-stdiolim): Explicit commands, to
11272         compile it without normal gcc flags.
11274         * configure (i386-sysv): unix/i386/sysv -> unix/sysv/i386.
11275         (i386-sysvr4): New configuration.
11277 Tue Apr 14 16:47:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11279         * setjmp/setjmp.h: Put sigjmp_buf before typedef for jmp_buf, which
11280         needs sigjmp_buf #ifdef __FAVOR_BSD.
11282         * posix/unistd.h (getgroups): Don't #define.
11284         * sysdeps/stub/ptrace.c: #include <stdarg.h>; declare AP in fn.
11285         Avoid "PTR a, b".
11287         * sysdeps/posix/sigintr.c: New; sets global sigset_t `_sigintr'.
11288         * sysdeps/posix/signal.c: Use SA_RESTART unless SIG is in _sigintr.
11289         * signal/sigintr.c: Removed.
11290         * sysdeps/stub/sigintr.c: New.
11292         * sysdeps/posix/sysd-stdio.c (__stdio_read, __stdio_write,
11293         __stdio_errmsg): Don't treat EINTR specially.
11295         * sysdeps/unix/Makefile (sys/param.h): Touch the target after mv'ing
11296         from the tmp file, so the file is newer than the directory.
11298         * sysdeps/generic/strcasecmp.c: Simplified loop; fixed returning
11299         wrong value on equal comparison.
11301         * stdlib/bsearch.c: Don't lose if NMEMB is zero.
11303         * sysdeps/unix/bsd/__times.c (timeval_to_clock_t): Microseconds are
11304         not milliseconds.
11306 Mon Apr 13 18:25:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11308         * sysdeps/generic/strncase.c: New.
11309         * string/Makefile (routines): Add strncase.
11310         * string/string.h [__USE_GNU]: Declare strncasecmp.
11312         * time/__tzset.c: Correctly default DST offset to one hour later
11313         than standard offset.
11315         * time/__tzset.c (tz_rule): Made `name' not be const.
11317         * string/tester.c [! HAVE_GNU_LD]: #define _sys_nerr and
11318         _sys_errlist to sys_nerr and sys_errlist.
11320         * stdio/test_rdwr.c: Fixed printf call missing arg.
11322         * posix/getgrps.c: #undef getgroups first.
11324         * misc/brk.c: Declare __brk.
11325         * misc/sbrk.c: Declare __sbrk.
11326         * misc/setreuid.c, misc/setregid.c: #include <unistd.h>.
11327         Fixed types in DEFUN in fn alias.
11328         * misc/getpgsz.c, misc/getdtsz.c, misc/gethstnm.c: #include <unistd.h>.
11329         * misc/getdents.c: Declare __getdirentries.
11330         * misc/mknod.c: #include <sys/stat.h>.
11331         * posix/unistd.h: Declare many __ versions of things.
11332         [__OPTIMIZE__]: Many #define foo(...) -> __foo(...).
11334         * io/fcntl.c: #include <sys/file.h>.
11336         * sysdeps/unix/Makefile: New hair to install other headers the
11337         system sys/param.h #includes.
11339         * time/__tzset.c (__tzfile_default): Declare.
11341         * time/sys/time.h (timezone): #define to __timezone.
11343         * sysdeps/ieee754/printf_fp.c: #undef outchar before #including
11344         generic/printf_fp.c.
11346         * stdio/__vfscanf.c: For %c, don't lose the first char.
11347         For %s, properly consume the last char when we hit max width.
11349         * posix/gnu/types.h (__dev_t, __mode_t): Made int rather than short.
11350         * io/gnu/stat.h (struct stat): Made st_dev, st_rdev, and st_mode use
11351         {,unsigned} short int instead of __dev_t/__mode_t.
11353 Fri Apr 10 13:55:07 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11355         * setjmp/setjmp.h: Rearranged so that jmp_buf is defined before any
11356         prototypes are used.
11357         (longjmp): Declare with jmp_buf, not __jmp_buf, to win in BSD mode.
11358         (_longjmp): #define as __longjmp, not longjmp.
11359         (_longjmp, _setjmp): Take jmp_buf args, not __jmp_buf.
11360         Call sig{set,long}jmp with SAVEMASK==0, rather than __{set,long}jmp.
11361         * _longjmp.c, _setjmp.c: #define _BSD_SOURCE before all else.
11362         (_setjmp): Call sigsetjmp, not __setjmp.
11364         * io/sys/stat.h (__fchmod, __mknod): Fixed arg types.
11366         * io/fchmod.c: Fixed typo.
11368         * time/Makefile (\n): Renamed to nl.
11370         * Makerules (native-compile): New variable.
11371         * sysdeps/generic/Makefile, sysdeps/unix/Makefile,
11372         sysdeps/unix/bsd/Makefile: Use it in cmds for generator progs.
11374         * sysdeps/unix/sysv/sysv_termio.h (_SYSV_TAB3): New; same as XTABS.
11376         * sysdeps/unix/sysv/setrlimit.c: Removed extern decl of etext (unused).
11378         * sysdeps/unix/sysv/__tcgetatr.c, sysdeps/unix/sysv/tcdrain.c,
11379         sysdeps/unix/sysv/tcflow.c, sysdeps/unix/sysv/tcflush.c,
11380         sysdeps/unix/sysv/tcgetpgrp.c, sysdeps/unix/sysv/tcsendbrk.c,
11381         sysdeps/unix/sysv/tcsetattr.c, sysdeps/unix/sysv/tcsetpgrp.c:
11382         #include <sys/ioctl.h>
11384         * sysdeps/unix/sysv/__rmdir.c, sysdeps/unix/sysv/__mkdir.c,
11385         sysdeps/posix/writev.c: #include <string.h>.
11387         * sysdeps/posix/clock.c: Removed unused variable.
11389 Thu Apr  9 01:49:39 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11391         * Version 1.03.
11393         * grp/testgrp.c: Print members correctly.
11395         * stdio/test-popen.c: Pipe to cat rather than more, and then check
11396         output file.  Better error checking.
11398         * setjmp/tst-setjmp.c: Notice if we didn't jump the right number of
11399         times.
11401         * signal/tst-signal.c, string/testcopy.c, stdio/bug[12345].c: Print
11402         msgs that more clearly say whether we won or lost.  Better error
11403         checking.
11405         * sysdeps/generic/printf_fp.c: Completely rewritten from scratch.
11406         Now uses Steele & White's "Dragon4" algorithm to do things right.
11408 Wed Apr  8 01:08:41 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11410         * sysdeps/i386/__longjmp.c: Test for VAL==0 before clobbering regs.
11411         Wire V to AX, rather than DX.  Use "a" constraint on unused operand
11412         in jmp asm, rather than global reg var, to force value into AX.
11414 Tue Apr  7 17:51:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11416         * posix/Makefile (headers): Added tar.h.
11417         * posix/tar.h: New file, from djm.
11419 Mon Apr  6 01:39:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11421         * time/tzfile.c (struct ttinfo): Made `isstd' member be unsigned
11422         char instead of 1-bit bitfield.
11424         * time/tzfile.c (__tzfile_default): New function.
11425         * time/__tzset.c: Call it when no rule is given.
11426         * time/Makefile: Install posixrules just like localtime.
11427         * time/Makeconfig (posixrules, posixrules-file): New config vars.
11429         * time/time.h (struct tm): Add `tz_gmtoff', `tz_zone'.
11430         * time/localtime.c: Set those members.
11432         * sysdeps/ieee754/__drem.c: XOR the signs of X and the result,
11433         rather than setting the sign of the result to that of X.
11435         * sysdeps/unix/bsd/make-local_lim.c: Don't do MAXUPRC or MAXLINK if
11436         <sys/param.h> didn't define them.
11438         * sysdeps/posix/__sigvec.c: Fixed braino: SA_ONSTACK should be
11439         SA_RESTART.
11441         * pwd/getpw.c, pwd/putpwent.c: Use %u fmt for uid and gid (which are
11442         unsigned).
11444         * time/time.h (tzname, daylight, timezone): Don't #define to __.
11445         * time/tzfile.c, time/__tzset.c, time/localtime.c, time/strftime.c
11446         [! HAVE_GNU_LD]: #define __ to plain for above three vars.
11448 Thu Apr  2 03:39:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11450         * locale/Makefile (routines): Add localeconv.
11452         * sysdeps/i386/jmp_buf.h: Removed `__dx' elt; replaced with `__pc'.
11453         __bp and __sp are PTRs.
11454         * sysdeps/i386/setjmp.c: Rewritten.  Use global reg vars to save regs.
11455         Use arithmetic on address of arg to get caller's PC, BP, and SP.
11456         * sysdeps/i386/__longjmp.c: Rewritten.  Use global reg vars to
11457         restore regs.
11459 Wed Apr  1 23:13:57 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11461         * Moved sysdeps/unix/i386/{bsd,sysv} to
11462         sysdeps/unix/{bsd,sysv}/i386, and updated Implies files.
11463         Implied dirs come before parents, and we want unix/i386 before
11464         unix/{sysv,bsd}.
11466         * io/chown.c: Fixed types in fn alias.
11468 Wed Apr  1 14:18:58 1992  Torbjorn Granlund  (tege@mole.gnu.ai.mit.edu)
11470         * sysdeps/generic/memcmp.c
11471         (memcmp_common_alignment, memcmp_not_common_alignment):
11472         Move back do0 label to its original position, after the loop.
11473         Add comment before do0 labels.
11474         * sysdeps/generic/wordcopy.c (_wordcopy_fwd_aligned): Indentation.
11475         Add comment before do0 labels.
11477 Wed Apr  1 02:16:19 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11479         * sysdeps/unix/sysv/Makefile [subdir==misc]: Generate sysdep header
11480         termio.h from sysv_termio.h.
11482         * sysdeps/generic/make_siglist.c: New file.
11483         * sysdeps/generic/signame.[ch]: Symlink'd from /gd/gnu/lib.
11484         * sysdeps/generic/Makefile: Generate siglist.c with above.
11485         * sysdeps/generic/Dist: Add make_siglist.c, signame.[ch].
11487         * sysdeps/unix/bsd/Makefile (before-compile): Define properly as a
11488         variable.
11490         * sysdeps/unix/bsd/make_siglist.c: Generate #define _sys_siglist
11491         sys_siglist #ifndef HAVE_GNU_LD.
11492         * stdio/psignal.h, string/strsignal.h [! HAVE_GNU_LD]:
11493         #define _sys_siglist sys_siglist.
11495         * sysdeps/unix/sysv/signum.h (SIGCHLD): Changed #.
11496         (SIGUSR1, SIGUSR2, SIGPWR): Added.
11497         (_NSIG): Updated.
11499         * sysdeps/unix/sysv/utmp.h: New.
11501         * sysdeps/unix/bsd/getlogin.c: Moved to sysdeps/unix/getlogin.c.
11503         * sysdeps/unix/sysv/r4/bsddir.h, sysdeps/unix/sysv/r4/readdir.c,
11504         sysdeps/unix/sysv/r4/closedir.c, sysdeps/unix/sysv/r4/rewinddir.c,
11505         sysdeps/unix/sysv/r4/opendir.c, sysdeps/unix/sysv/r4/sys_getdents.S,
11506         sysdeps/unix/sysv/r4/Makefile: New.
11508         * sysdeps/unix/sysv/tcflow.c: New.
11510         * sysdeps/unix/sysv/sysv_termio.h: Add lots of bits; VMIN and VTIME
11511         elts of c_cc.
11512         * sysdeps/unix/sysv/__tcgetatr.c, sysdeps/unix/sysv/tcsetattr.c: Use
11513         VMIN and VTIME elts from sysv termio struct.
11515         * sysdeps/unix/sysv/__gethstnm.c: New.
11517         * sysdeps/unix/sysv/local_lim.h (NGROUPS_MAX): Define as 0.
11519         * sysdeps/unix/sysv/fcntlbits.h (struct __flock): Changed l_pid to
11520         short; added l_sysid.
11522         * sysdeps/unix/sysv/__sigact.c: New.
11524         * sysdeps/unix/sysv/r4/__access.S: New; just #include bsd/__access.S.
11526         * sysdeps/unix/sysv/Makefile: Fixed typo: sysdep-routines =>
11527         sysdep_routines.
11529         * sysdeps/unix/i386/sysv/__sigret.S,
11530         sysdeps/unix/i386/sysv/signal.S: New.
11532         * signal/Makefile (routines): Added sigret, __sigret.
11533         * signal/sigret.c: New; fn alias to __sigreturn.
11534         * sysdeps/stub/__sigret.c: New.
11536         * sysdeps/unix/i386/sysdep.h (PSEUDO): Use hard-coded numbers for
11537         lcalls insn--GAS bug.
11539         * sysdeps/unix/bsd/readdir.c (D_NAMLEN): New macro; define if not
11540         already defined, to return length of a direct elt.
11542         * sysdeps/stub/__getgrps.c: #include <limits.h>; if NGROUPS_MAX is
11543         defined as 0, always return 0, and no stub warning.
11545         * sysdeps/posix/system.c: Don't fail if sigprocmask fails with ENOSYS.
11547         * sysdeps/posix/sysd-stdio.c, sysdeps/stub/sysd-stdio.c: Doc fix.
11549         * sysdeps/posix/__gettod.c: Use CONST where appropriate and not
11550         where not.
11552         * sysdeps/i386/memchr.c, sysdeps/i386/strlen.c: Changed `repnz' to
11553         `repne'.
11555         * stdio/fgets.c: Notice returned char from __fillbf in length calc.
11557         * misc/sys/ioctl.h: Always define `struct sgttyb'.
11559         * stdlib/alloca.h: #undef __alloca, too.
11560         Always #define alloca == __alloca.
11562         * signal/signal.h (__kill): Fixed type in decl.
11563         * posix/unistd.h (setgid): Fixed type in decl.
11564         * posix/setpgid.c, posix/setgid.c, signal/kill.c, posix/fork.c,
11565           posix/vfork.c, posix/getpid.c, posix/getppid.c, posix/setsid.c:
11566         Fixed DEFUNs in fn aliases.
11567         * pwd/getpw.c: Fixed type in defn.
11569 Mon Mar 30 17:06:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11571         * sysdeps/generic/printf_fp.c: In %f, decrement PREC for each
11572         leading zero in the fractional part.
11574         * sysdeps/ieee754/ieee754.h: Made all elts unsigned.
11575         * sysdeps/ieee754/__drem.c: Return NAN if Y is zero.
11576         * sysdeps/ieee754/ldexp.c: Rewritten.
11577         * sysdeps/ieee754/__logb.c: Handle denormalized numbers.
11579         * posix/sys/wait.h: #include <endian.h>
11581         * sysdeps/ieee754/fl.h: Fixed NAN and HUGE_VAL bit patterns; added
11582         code for little endian.
11584         * sysdeps/generic/frexp.c: Add one to exponent to give the result a
11585         digit before the point.  Use negative exponent rather than division.
11587         * math/__finite.c: Return zero for NaN.
11588         * math/math.h: Doc fix for same.
11590         * stdio/__getdelim.c: Correctly notice when the buffer is full.
11592         * sysdeps/unix/bsd/opendir.c: Pass arg to fcntl F_SETFD by value,
11593         not by reference.
11595         * time/__tzset.c: Correct default rule: M4.1.0,M10.5.0.
11597         * time/__tzset.c: Move ptr past Mfoobar syntax after parsing it.
11599         * time/__tzset.c: Properly parse the DST offset (or its absence).
11601         * sysdeps/unix/make_errlist.c: Write an #ifdef HAVE_GNU_LD, rather
11602         than testing it when compiling make_errlist.
11604         * time/tzfile.c (__tzfile_read): Convert transitions to host byte
11605         order.
11607         * Makeconfig (localtime-file): New config var.
11608         * time/Makefile (tzfile.o, zic.o): Use it for TZDEFAULT.
11610         * stdio/Makefile (tests): Added tstgetline.
11611         * stdio/tstgetline.c: New; test for getline.
11613         * Makeconfig (sysincludedir): Define and document.
11614         * sysdeps/unix/snarf-ioctls, sysdeps/unix/Makefile: Use
11615         ${sysincludedirs} in place of hard-coded /usr/include.
11617 Fri Mar 27 13:33:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11619         * string/Makefile (headers): Added endian.h.
11621         * sysdeps/ieee754/__drem.c: Fixed typo which made X and Y be the
11622         same location.
11624         * sysdeps/generic/__lstat.c: #include <gnu-stabs.h>
11626         * stdio/internals.c (flushbuf): Increment target as well as offset
11627         when we write out the single char.
11629         * grp/Makefile (tests): Add testgrp (formerly bug1).
11631 Thu Mar 26 14:59:45 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11633         * stdio/fread.c: Don't read directly when we need to seek first.
11635 Wed Mar 25 02:34:49 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11637         * sysdeps/unix/bsd/alarm.c: There are 1000000 usecs in a sec.
11639         * sysdeps/unix/bsd/sun/ptrace.c: Removed.
11641         * stdio/fgets.c: For unbuffered stream, don't return EOF after
11642         reading some data.
11643         Added missing parens.
11645 Tue Mar 24 18:31:07 1992  Torbjorn Granlund  (tege@hal)
11647         * sysdeps/i386/memset.c: Move code that puts C in all four nibbles of
11648         X inside `if' statement.  Include sysdeps/i386/memset.c (not bzero).
11649         * sysdeps/i386/memchr.c: Rewrite to be faster.  Include
11650         sysdeps/generic/memchr.c (not bzero).
11652 Tue Mar 24 01:21:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11654         * io/Makefile (routines): Add getdirname.
11655         * posix/unistd.h [__USE_GNU]: Declare getdirname.
11656         * io/getdirname.c: New.
11658         * Makeconfig (stddef.h): Define and document.
11659         * Makefile (headers): Use $(stddef.h) for stddef.h.
11661 Mon Mar 23 18:04:56 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11663         * sysdeps/posix/mktemp.c: Do PID % 100000 for 5 digits.
11665         * time/Makefile (tzfiles): Remove pacificnew; it won't compile.
11666         (distribute): Put it here instead.
11668         * stdio/printf-prs.c [HAVE_LONGLONG]: Fixed missed var name change
11669         from code snarf.
11671         * stdio/fgets.c: Return NULL when we get EOF.
11673         * posix/execvp.c, sysdeps/posix/putenv.c [! HAVE_GNU_LD]: Define
11674         __environ as environ.
11676         * sysdeps/unix/bsd/Makefile, sysdeps/unix/Makefile: In rules to
11677         compile generator programs, cd into $(objdir) first to avoid
11678         braindead cc clobbering foo.o in cwdir.
11680         * sysdeps/m68k/setjmp.c: Deref fpregs array in asm.
11682         * time/Makefile (zones-%): Fixed generated rules.
11684         * math/Makefile (libm.a): Use r cmd to ar.
11686         * time/Makefile (zones-%): In echo commands, put \\\\n outside of
11687         quotes instead of \\n inside single quotes.  SysV echo is braindead.
11689         * io/fchown.c, io/fchmod.c, misc/bsd-compat.c: Fixed DEFUNs in fn
11690         aliases.
11692         * time/Makefile (echo-zonenames): New target; tell user what all
11693         timezones defined in all zone files are.
11694         * Makeconfig (localtime): Comment about using above.
11696 Sun Mar 22 18:34:02 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11698         * time/australasia (NZ): Updated rules.
11700 Sat Mar 21 01:00:49 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11702         * stdio/printf-prs.c [__GNUC__]: Define HAVE_LONGLONG.
11704 Fri Mar 20 00:35:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11706         * Version 1.02.
11708         * stdio/Makefile (routines): Add __getdelim, __getline.
11710         * sysdeps/unix/i386/start.c: No ../ in #include file name.
11712         * sysdeps/posix/sysd-stdio.c, sysdeps/stub/sysd-stdio.c
11713         (__stdio_seek): Doc fix.
11715         * sysdeps/posix/mk-stdiolim.c: Add one to L_tmpnam, for the null
11716         terminator.
11718         * sysdeps/posix/__dup2.c: Use an extra fcntl call to check that the
11719         first fd is valid.  Close the second fd before doing the dup.
11721         * pwd/pwdread.c, grp/grpread.c: Use __getline.  Ignore lines
11722         beginning with #.
11724         * Makeconfig (objdir): If $(ARCH) starts with a slash, don't prepend
11725         $(..).
11727 Thu Mar 19 21:36:57 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11729         * Makefile (install-lib): Add Mcrt1.o.
11730         (Mcrt1.o): Create empty file.
11732 Wed Mar 18 16:00:18 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11734         * Makeconfig (+link): Use $(libdir) for gnulib.
11736 Tue Mar 17 20:12:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11738         * math/bsd/common_source/mathimpl.h: Include <endian.h>.
11739         [__LITTLE_ENDIAN]: #define national.
11741         * stdio/__vfscanf.c: EOF at end of string is not
11742         an error.
11744         * stdio/tstscanf.c: Added new sscanf test.
11746         * stdio/vfprintf.c: For %#x, print 0x after padding 0s, not before.
11748         * stdio/fputs.c: Reverse size args to fwrite and test for returning
11749         LEN, rather than 1, so 0-length wins.
11751         * io/gnu/fcntl.h: Moved to sysdeps/unix/bsd/fcntlbits.h.
11752         * io/Makefile (headers), io/fcntl.h: gnu/fcntl.h -> fcntlbits.h.
11753         * sysdeps/stub/fcntlbits.h, sysdeps/unix/sysv/fcntlbits.h: New.
11755         * stdio/fopen.c (__getmode): Don't fall through in switch after 'a'
11756         case.
11758         * locale/C-ctype_ct.c (__ctype_b_C): Use symbolic constants.
11759         9..12 are not _NOgraph.
11761 Tue Mar 17 19:04:01 1992  Torbjorn Granlund  (tege@hal.gnu.ai.mit.edu)
11763         * string/testcopy.c: Fix typo in comment.
11765 Tue Mar 17 19:57:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11767         * sysdeps/generic/strstr.c, string/string.h, string/tester.c
11768         (strstr): Arguments were reversed.
11770 Tue Mar 17 18:52:39 1992  Torbjorn Granlund  (tege@hal.gnu.ai.mit.edu)
11772         * sysdeps/i386/memcopy.h (WORD_COPY_BWD): Divide nbytes by 4.
11773         * sysdeps/i386/memchr.c: Rewrite.  Handle zero length correctly.
11774         Don't ask gcc to allocate eax to two regs.
11776 Tue Mar 17 17:31:06 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11778         * posix/unistd.h (getpagesize): Declare as size_t.
11780         * Makeconfig (CC): Define unless origin is default.
11782         * stdio/__getdelim.c: Be sure to leave room for the terminating null.
11784         * string/testcopy.c: New version from tege.
11786         * malloc/dist-README: Changed mailing list addr to bug-glibc.
11788         * sysdeps/unix/bsd/__sigproc.c: Use right mask for SIG_UNBLOCK.
11790         * Makefile, Rules (clean, mostlyclean): Put - before rm commands.
11792 Tue Mar 17 11:14:40 1992  Torbjorn Granlund  (tege@hal.gnu.ai.mit.edu)
11794         * sysdeps/rs6000/memcopy.h (BYTE_COPY_BWD): Assign __nbytes.
11795         * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Copy memory, not just
11796         pointers.  Clean up switch expression.
11798 Mon Mar 16 05:09:23 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11800         * posix/wordexp.c: New.
11802         * time/tzfile.c (__tzfile_read): Don't die if some of the sections
11803         of the datafile are empty.
11805         * stdio/getline.c, stdio/getdelim.c: Moved to
11806         __getline.c/__getdelim.c.
11807         New files with fn aliases.
11808         * stdio/stdio.h (__getline, __getdelim): Declare.
11810         * time/Makefile (zonenames): Hair to find the names of zones
11811         described by $(tzfiles).
11812         (install-data): Install zoneinfo/$(zonenames).
11813         Rules to make zones from tzfiles.
11814         [localtime] (zoneinfo/localtime): Make from zoneinfo/$(localtime).
11815         * Makeconfig (localtime): New user-frobbable variable.
11817 Sun Mar 15 00:01:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11819         * Makerules (sysdep-Makefile): Do if ... else true to avoid bogus
11820         nonzero status.
11822         * Makefile: Denewlinify +sysdep-subdirs after including sysd-dirs.
11824         * sysdeps/vax/__infnan.c [!__GNUC__]: Error.
11826         * zic.c, scheck.c, emkdir.c, ialloc.c, private.h, tzfile.h: Snarfed
11827         from localtime3 dist.
11828         * time/Makefile (others): Added zic.
11829         (distribute): Added private.h, emkdir.c, ialloc.c, scheck.c.
11830         (install): Defined: zic, zdump.
11832         * Makeconfig (bindir): Define.
11833         * Makerules: Add rule to install $(install) in $(bindir).
11834         (+install): Include $(install) in $(bindir).
11836         * sysdeps/unix/Makefile: Moved siglist.c rules to unix/bsd/Makefile.
11837         * sysdeps/unix/make_siglist.c: Moved to bsd/.
11838         * sysdeps/unix/Dist: Remove it.
11839         * sysdeps/unix/bsd/Dist: Add it.
11841         * malloc/Makefile (malloc/gmalloc.c): Depend on headers and sources.
11843         * sysdeps/unix/bsd/sun/sun4/__sigvec.S: Doc fix.
11845         * sysdeps/stub/stty.c, sysdeps/stub/gtty.c: Include <stddef.h>.
11847         * sysdeps/unix/sysv/__fstat.c: Include sysv_stat.h.
11849         * misc/bsd-compat.c: Define _BSD_SOURCE rather than __FAVOR_BSD.
11850         (longjmp): Use function_alias_void.
11852         * time/Makefile (tzfile.o): Compile with
11853         -DTZDIR='"$(datadir)/zoneinfo"'.d
11855 Sat Mar 14 23:26:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
11857         * Makeconfig (INSTALL_DATA, INSTALL_PROGRAM, INSTALL): Don't define
11858         if already defined.
11860         * setjmp/longjmp.c: Use function_alias_void.
11862         * gnu-stabs.h (function_alias_void): New macro.
11864         * gnu-stabs.h [!HAVE_GNU_LD] (function_alias): Fixed not to loop.
11866 Fri Mar 13 17:20:19 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
11868         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Include null
11869         terminator in length calculation.
11871         * stdio/fgets.c: Be sure to return NULL on error/eof for unbuffered
11872         stream.  If N==1, don't write the first char if !seen.
11873         When the buffer is empty, notice the effect of __fillbf after
11874         calling it, avoiding a (costly) no-op iteration.
11875         Don't return NULL for reading no chars; only for EOF or error.
11876         Don't write terminator at beginning of S if eof on first char.
11878         * malloc/Makefile (libmcheck.a), Makefile (crt0.o): Remove target
11879         first; don't use -f to ln.
11881         * posix/execl.c, posix/execv.c, sysdeps/posix/getenv.c,
11882         sysdeps/posix/system.c [HAVE_GNU_LD]: #define __environ environ
11884         * posix/unistd.h [__OPTIMIZE__] (execv): Removed defn.  Can't know
11885         whether to use __environ or environ.
11887         * io/fchown.c, io/chown.c, io/open.c, misc/select.c,
11888         signal/sigvec.c, time/adjtime.c: Fixed DEFUNs in fn aliases.
11890         * time/__tzset.c: Don't dereference NULL if getenv returns it.
11892 Thu Mar 12 16:01:33 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11894         * sysdeps/ieee754/sqrt.c: Replaced undefined var ref `k' with constant.
11896         * sysdeps/i386/__longjmp.c: #include <stdlib.h>.
11898         * time/tzfile.c (__tzfile_compute): Use types[0] if TIMER falls
11899         between transitions[0] and transitions[1].
11900         Always set __tzname[INFO->isdst] to the name for INFO.
11902         * sysdeps/i386/__longjmp.c: Changed register names for gcc; eax/%eax
11903         -> ax.
11905         * sysdeps/unix/snarf-ioctls: Avoid infinite recursion.
11907 Wed Mar 11 00:16:18 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11909         * Version 1.01.
11911         * Makefile (munch-init.c): Made $(objpfx)munch-init.c.
11913         * signal/sigvec.c, signal/sigaction.c, stdio/vsscanf.c: Fixed DEFUNs
11914         in fn aliases.
11916         * sysdeps/m68k/68881/68881-switch/switch.c: Merged vars have_fpu and
11917         test_fpu into one.
11919         * sysdeps/mach/i386/start.c, sysdeps/vax/setjmp.c,
11920         sysdeps/vax/__longjmp.c, sysdeps/vax/__infnan.c,
11921         sysdeps/unix/start.c, sysdeps/unix/bsd/sun/sun4/sigtramp.c,
11922         sysdeps/unix/bsd/sun/sun4/start.c,
11923         sysdeps/unix/bsd/hp9k3bsd/start.c, sysdeps/sparc/sqrt.c,
11924         sysdeps/rs6000/ffs.c, sysdeps/m88k/ffs.c, sysdeps/m68k/setjmp.c,
11925         sysdeps/m68k/__longjmp.c, sysdeps/m68k/68881/printf_fp.c,
11926         sysdeps/m68k/68881/atan2.c, sysdeps/m68k/68881/__logb.c,
11927         sysdeps/m68k/68881/68881-switch/switch.c, sysdeps/m68k/ffs.c,
11928         sysdeps/i386/memset.c, sysdeps/i386/memchr.c, sysdeps/i386/ffs.c,
11929         sysdeps/i386/bzero.c, sysdeps/i386/__longjmp.c, sysdeps/am29k/ffs.c
11930         [! __GNUC__]: Either include the generic (or in some cases, ieee754)
11931         version, or do a #error.
11933         * Rules: Null out `objects' at end to shrink environment some.
11934         (+objs): Define with := from $(objects).
11935         (clean): Use that instead of $(objects).
11937         * sysdeps/i386/setjmp.c: Doubled % where it wanted to be literal.
11939         * posix/getgrps.c, io/flock.c, io/mkdir.c, io/read.c, io/write.c,
11940         io/stat.c, misc/getdents.c, misc/mknod.c, misc/utimes.c: Fixed
11941         DEFUNs in fn aliases.
11943         * sysdeps/unix/bsd/hp9k3bsd/sysdep.S: Use # instead of kludge cookie.
11945         * posix/getegid.c: Fixed type in DEFUN.
11947         * time/tzfile.c (__tzfile_compute): If TIMER is before any
11948         transition in the file, use the first non-DST type, rather than the
11949         type of the first transition in the file.
11951 Tue Mar 10 20:01:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11953         * configure: Take optional -nfp arg.
11954         (news, sun3, hp300): Prepend m68k/68881 unless -nfp is given.
11955         * sysdeps/unix/bsd/hp9k3bsd/Implies: Don't specify 68881.
11957         * stdio/getdelim.c: When the buffer is empty, notice the effect of
11958         __fillbf after calling it, avoiding a (costly) no-op iteration.
11960         * sysdeps/vax/__memccpy.c: Fixed comments.
11962         * stdio/fmemopen.c: Set all fns and seen bit before we might call
11963         something that would care (fclose).
11965         * configure (sun3, sun-3): Mean sun3os4, not sun3os3.
11966         (sun3os3): Use just unix/bsd/sun/sun3/os3.
11967         * sysdeps/unix/bsd/sun/sun3/os3: New directory.
11968         (sysdeps/unix/bsd/sun/sunos3/__wait.S): Moved to there.
11969         * sysdeps/unix/bsd/sun/sun3/sysdep.h: Fixed; took hp9k3bsd/sysdep.h
11970         and changed movel foo, d0 to pea foo for syscall no.
11971         * sysdeps/unix/bsd/sun/sun3/__brk.S: Fixed pea addr mode.
11972         * sysdeps/unix/bsd/sun/sun3/sethostid.S: errnos.h, not gnu/errno.h.
11973         Use .stabs directly, not gnu-stabs.h (which uses `asm').
11974         * sysdeps/m68k/setjmp.c: Changed asm for first moveml, so it works
11975         on sun3.
11976         * sysdeps/unix/bsd/sun/sun3/start.c: Removed ../ from #include path.
11978 Sun Mar  8 16:33:33 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11980         * misc/makefile (headers): Added stab.h, stab.def.
11981         * Many files: Changed __GNU_STAB__ to HAVE_GNU_LD.
11983 Sat Mar  7 21:21:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
11985         * time/mktime.c: Normalize the struct values before checking for out
11986         of range values.
11988 Fri Mar  6 11:43:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
11990         * sysdeps/ieee754/ldexp.c: New.
11992         * stdio/internals.c (flushbuf): When priming the stream for writing,
11993         advance the target pos to account for chars gotten from the buffer.
11995         * sysdeps/generic/Makefile: For math routines, don't filter out
11996         __finite.
11998         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Fixed bugs.
12000         * misc/Makefile (routines): Remove flock.
12002         * stdlib/strtod.c: Fixed typo in checking for exponent overflow.
12003         Do set *ENDPTR on overflow or underflow.
12005         * sysdeps/sparc/fl.h: Removed.  Should use ieee754 version.
12007         * sysdeps/generic/Makefile: For math routines, don't filter out
12008         __copysign, __scalb, __drem and __logb; and don't add support.
12010         * sysdeps/ieee754/__drem.c: New.
12011         * sysdeps/ieee754/sqrt.c: New.
12012         * sysdeps/stub/__drem.c: New.
12013         * sysdeps/stub/sqrt.c: New.
12014         * sysdeps/stub/__logb.c: New.
12015         * sysdeps/ieee754/__logb.c: New.
12017         * sysdeps/ieee754/__infnan.c: Include <float.h> and use NAN macro
12018         rather than cooking one up by hand.
12020         * sysdeps/unix/bsd/getlogin.c: Open /dev/tty, rather than using stdin.
12021         Make sure the name is always null-terminated.
12023 Thu Mar  5 17:11:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
12025         * sysdeps/m68k/68881/__scalb.c: Removed.
12026         * sysdeps/m68k/68881/__math.h: Removed defn of __scalb.
12027         * math/math.h [__OPTIMIZE__]: Define __scalb to be ldexp.
12028         * math/__scalb.c: New; fn alias for ldexp.
12030         * stdio/Makefile (tests): Added bug4 and bug5.
12031         * stdio/bug4.c, stdio/bug5.c: Test cases from reported bugs just fixed.
12033         * stdio/internals.c (flushbuf): If nothing was written by the user,
12034         but there is previously gotten data, don't write anything out.
12036         * stdio/internals.c (seek_to_target): Call __stdio_check_offset first.
12038         * sysdeps/unix/sysv/sysv_termio.h: New file.
12039         * sysdeps/unix/sysv/Dist: Include it.
12040         * sysdeps/unix/sysv/tcsetattr.c, sysdeps/unix/sysv/tcsetpgrp.c,
12041         sysdeps/unix/sysv/tcsendbrk.c, sysdeps/unix/sysv/tcgetpgrp.c,
12042         sysdeps/unix/sysv/tcflush.c, sysdeps/unix/sysv/tcdrain.c,
12043         sysdeps/unix/sysv/__tcgetatr.c: New files.
12045         * stdio/internals.c (fillbuf): Don't set the put_limit on writable
12046         streams.  Wait for first write attempt to prime them, so we don't
12047         flush the unchanged data unnecessarily.
12049         * stdlib/exit.c: Look for NULL terminator on ld set, rather than
12050         using length word.
12052         * Makefile (headers): Remove stdarg.h and varargs.h.
12053         Users will get them from GCC.
12054         * stdio/printf.h: Include <stdarg.h> to use va_list.
12055         * stdio/stdio.h: Don't include <stdarg.h> with magic.
12056         Use PTR in place of __va_list in prototypes.
12057         * stdio/__vsscanf.c, stdio/vscanf.c, stdio/vfscanf.c,
12058         stdio/__vfscanf.c, stdio/vdprintf.c, stdio/vasprintf.c,
12059         stdio/vsprintf.c, stdio/vsnprintf.c, stdio/vprintf.c,
12060         stdio/vfprintf.c: Fixed DEFUNs.
12062         * sysdeps/ieee754/ieee754.h: New file; declares union ieee754_double.
12063         * sysdeps/ieee754/Dist: Add it.
12064         * sysdeps/ieee754/__copysign.c, sysdeps/ieee754/__infnan.c,
12065         sysdeps/ieee754/__isinf.c, sysdeps/ieee754/__isnan.c,
12066         sysdeps/ieee754/__printf_fp.c: Use it.
12068         * sysdeps/unix/sysv/uname.c: New.
12069         * sysdeps/unix/sysv/__utssys.S: New.
12070         * sysdeps/unix/sysv/Makefile (routines): Add __utssys.
12071         * sysdeps/unix/sysv/Dist: Add __utssys.S.
12073         * sysdeps/unix/sysv/__rmdir.c: New; runs `rmdir' shell command.
12075         * sysdeps/unix/sysv/__mkdir.c: New; runs `mkdir' shell command.
12077         * sysdeps/generic/__lstat.c: New; fn alias for __stat.
12079         * sysdeps/unix/sysv/__gethostname.c: New; uses uname.
12081         * sysdeps/unix/Makefile (sys/params.h): Protect with
12082         _GNU_SYS_PARAM_H, in case the system's file uses _SYS_PARAM_H itself.
12084         * stdio/internals.c (__stdio_check_offset): Call init_stream to make
12085         sure we have fns.
12087         * stdio/fread.c: Don't call __fillbf if the put_limit is past the
12088         beginning of the buffer; only if !seen, no buffer, or pushed back.
12090         * stdio/fopen.c (__getmode): Set create bit for "a" mode.
12092         * io/mkdir.c: #undef mkdir before fn alias.
12094         * time/tzfile.c (__tzfile_compute): Don't decrement I if it's zero.
12096         * Makefile (crt0.o): Use ln -f.
12098         * math/Makefile (install): Install libm.a.
12099         (libm.a): Make an empty archive.
12101 Wed Mar  4 19:54:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12103         * README.template: Added note about long filenames in dist.
12105         * io/Makefile (routines): flock -> __flock
12106         * flock.c: New file, fn alias.
12107         * sysdeps/unix/bsd/flock.S: Renamed to sysdeps/unix/bsd/__flock.S;
12108         made __flock.
12109         * sysdeps/mach/hurd/flock.c: Renamed to sysdeps/mach/hurd/__flock.c;
12110         made __flock.
12111         * sysdeps/stub/flock.c: Renamed to sysdeps/stub/__flock.c; made
12112         __flock.
12114         * time/time.h (__isleap): Fixed; every 400th year is not a leap
12115         year, not every 1000th.
12117         * stdio/internals.c (flushbuf): Increment the target position the
12118         amount the user wrote into the buffer, not the amount we wrote out
12119         to the file (which is greater if we read a block and modified it
12120         in the middle).
12122         * stdio/internals.c (flushbuf): Set get_limit to the beginning of
12123         the buffer for all streams, except when we have just read in a block.
12125 Sat Feb 29 15:56:22 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12127         * posix/Makefile (others): Removed logname, id.
12128         * time/Makefile (others): Removed date.
12130         * sysdeps/unix/bsd/sun/sun4/start.c: Make an alias called `start'
12131         (no leading underscore, so it can't conflict with C symbols) for
12132         `_start'.
12134 Thu Feb 27 14:32:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12136         * set-init.c: Look for NULL terminator on set.  ld is broken and
12137         doesn't set the length word correctly.
12139         * setjmp/_longjmp.c, signal/sigaction.c, signal/sigvec.c,
12140         signal/ssignal.c, string/bcmp.c, time/setitmr.c, posix/execve.c,
12141         posix/getegid.c, posix/geteuid.c, posix/getgid.c, posix/getuid.c,
12142         posix/getgrps.c, posix/setuid.c, posix/wait3.c, posix/wait4.c,
12143         posix/waitpid.c, io/lseek.c, io/open.c, io/read.c, io/write.c,
12144         resource/getrusage.c, misc/getpgsz.c, misc/gethstnm.c,
12145         misc/select.c: Fixed DEFUNs in fn aliases.
12147 Wed Feb 26 00:20:25 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12149         * sysdeps/generic/Makefile (routines): Add asincos.
12151         * time/tzfile.c (__tzfile_compute): Set __tzname properly, so isdst
12152         is the right index into it.
12154 Tue Feb 25 01:42:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12156         * sysdeps/unix/bsd/sun/sun4/sysdep.h (ENTRY): .align 2, not .align 4.
12157         This one is powers of two.
12159         * time/__tzset.c: If TZ is :FILE, try FILE and if __tzfile_read
12160         fails, then use defaults.
12162         * sysdeps/generic/Makefile (routines): Add sincos.
12164         * sysdeps/posix/cuserid.c: Set the result to the empty string on
12165         failure.
12167         * string/string.h, string/strings.h, sysdeps/i386/memchr.c: Fixed
12168         spelling in comment.
12170         * string/makefile (tests): Include (uncomment) testcopy.  We do have
12171         papers for it from tege.
12173         * malloc/dist-README: Fixed mailing list addr.
12175         * resource/sys/vtimes.h (struct vtimes): Renamed vm_outblk to
12176         vm_oublk; fixed comment.
12177         * sysdeps/generic/vtimes.c: Renamed here too.
12179         * Make-dist (README): Depend on version.c.
12181 Tue Feb 18 18:14:50 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12183         * Version 1.00.
12185         * time/tzfile.c (__tzfile_compute): Fixed transition comparison.
12187         * sysdeps/unix/bsd/sun/sun3/Makefile: Fixed typo.
12189 Mon Feb 17 05:04:00 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12191         * Version 0.6.
12193         * Makefile (distribute): Add Q+A.
12194         * Q+A: New doc file from rich@cygnus.com.
12196         * malloc/Makefile (distribute): Add mcheck-init.c.
12198 Mon Feb 17 00:39:38 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12200         * sysdeps/unix/sysv/utime.c: Removed.
12201         * sysdeps/unix/sysv/utime.S: New file.
12203         * sysdeps/unix/sysv/signum.h: New file.
12205         * sysdeps/unix/sysv/local_lim.h: New file.
12207         * sysdeps/unix/sysv/sysv_stat.h: New file.
12208         * sysdeps/unix/sysv/__stat.c, sysdeps/unix/sysv/__fstat.c: New files.
12209         * sysdeps/unix/sysv/Makefile: New file.
12210         (+sysdep-routines): Define to sys_stat and sys_fstat.
12211         * sysdeps/unix/sysv/sys_stat.S, sysdeps/unix/sysv/sys_fstat.S: New
12212         files.
12213         * sysdeps/unix/sysv/Dist: Created to include sysv_stat.h,
12214         sys_stat.S, and sys_fstat.S.
12216         * sysdeps/stub/__setreuid.c: Include <sys/types.h>.
12218         * sysdeps/posix/__sigblock.c: Fixed typo.
12220         * stdio/internals.c (__flshfp): Don't return EOF if at EOF; only
12221         for errors.
12223         * signal/gnu/signal.h: Move #include <signum.h> outside repeat #ifdef.
12225         * sysdeps/unix/sysv/filebits.h: Created.
12227         * misc/Makefile (distribute): Define to bsd-compat.c.
12229         * misc/Makefile (headers): Remove filebits.h.
12230         * io/Makefile (headers): Put it here.
12232         * Makefile (+posix_dirs): Add io.
12233         * io/Makefile: New file for new subdir.
12234         Contains many headers and routines moved from posix.
12235         * posix/Makefile: Remove many headers and routines now in io.
12236         * Moved many files from posix to io.
12238         * stdlib/alloca.h: Get size_t from stddef.h.
12240         * misc/bsd-compat.c (getgroups): Removed.  Not needed, because gid_t
12241         is now the same size as int.
12243         * Makefile (distribute): Include NOTES.
12244         * NOTES: New file, infoized node from intro.texinfo about the
12245         feature-test macros.
12246         * README.template: Mention NOTES.
12248         * sysdeps/unix/bsd/sun/sun3/Makefile: include hp9k3bsd version.
12250         * Makeconfig: Use $(..) for config.status.
12252         * configure (i386-sysv): unix/i386/sysv, not unix/sysv/i386.
12253         * unix/i386/sysv/Implies: unix/sysv, not unix/i386.
12255 Sun Feb 16 00:42:53 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12257         * Version 0.5.
12259         * posix/Makefile (headers): Remove confstr.h.
12260         (distribute): Define this instead to contain it.
12262         * ansidecl: Added copyright notice.
12264         * stdio/getdelim.c: New file.
12265         * stdio/getline.c (getsome): Renamed to getdelim and moved there.
12266         * stdio/Makefile (routines): Add getdelim.
12267         * stdio/stdio.h: Declare getdelim.
12269         * misc/gnu/file.h: Moved to sysdeps/unix/bsd/filebits.h.
12270         * sysdeps/stub/filebits.h: New file.
12271         * misc/Makefile: gnu/file.h is now filebits.h.
12272         * posix/fcntl.h: Changed #include.
12274         * stdio/getline.c (getsome): If MAX_CANON isn't defined, use a default.
12275         Don't leak old *LINEPTR storage if *N < 2.
12276         Don't bang *LINEPTR to NULL if realloc fails.
12278         * Makerules: Don't use override when nulling out sources, routines,
12279         and aux if they came from the environment.  Better not make with -e.
12281         * Makefile (sysdirs, Sysnames): Put outside of ifndef sysdirs.
12283         * string/Makefile (tests): No testcopy, pending papers.
12285         * Makefile (headers): No sysdep.h.
12286         (distribute): Here instead.
12287         (no-install): No longer needed.
12289 Sat Feb 15 17:10:38 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12291         * Makefile (distribute): Add INSTALL.
12292         * Make-dist (INSTALL): Make from manual/maint.texinfo.
12293         (README): Make from README.template.
12295         * Makefile (+other-dirs): Removed inet.
12296         * sysdeps/unix/inet/Subdirs: Created, adding inet.
12298         * sysdeps/unix/sysv/setrlimit.c: Include stddef and errno.h.
12300         * math/drem.c, setjmp/longjmp.c, malloc/cfree.c, string/bcmp.c,
12301         time/getitmr.c, misc/ioctl.c: Fixed defuns in function_alias.
12303         * Makefile (headers): Put sysdep.h back.
12304         (no-install): And define this to it.
12305         * Makerules (+install): Filter out $(no-install) from the list.
12307         * string/testcopy.c: New test program for bcopy from tege.
12308         * string/Makefile (tests): Add it.
12310         * Makefile (sysdep-subdirs): Renamed to sysd-dirs.
12312         * Make-dist (tardir): Omit the release name; it made names too long.
12314 Sat Feb 15 12:53:02 1992  Torbjorn Granlund  (tege at mole.gnu.ai.mit.edu)
12316         * sysdeps/rs6000/memcopy.h (WORD_COPY_FWD, WORD_COPY_BWD):
12317         Use CTR register for looping (speed enhancement).  Don't emit
12318         labels, jump relative from `$' instead (makes multiple expansions
12319         possible).  Clean up indentation of asm code (were different in each
12320         macro).
12321         * sysdeps/rs6000/memcopy.h (WORD_COPY_BWD):
12322         Add asm output specs (were missing completely).
12324         * sysdeps/generic/{memcpy.c,memmove.c}: Make DSTP and SRCP unsigned
12325         (safer with non-ANSI compilers).
12327 Fri Feb 14 01:52:12 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12329         * Version 0.4.1.
12331         * Makefile, Rules: Changed clean and clobber targets into
12332         mostlyclean, clean, and realclean.
12334         * Makeconfig: Added comments describing objdir/Makeconfig and
12335         editting Makeconfig.
12336         (prefix, libdir, INSTALL, INSTALL_DATA): New variables for installing.
12337         * Makerules (install): New target.
12338         * Makefile (+subdir_targets): Add subdir_install.
12339         (install): Depend on subdir_install.
12340         (install-lib): Define variable to install libc.a and crt0.o.
12341         * misc/Makefile (install-lib): Install bsd-compat.
12342         * malloc/Makefile (install-lib): Install mcheck-init.
12344         * Version 0.4.
12346 Thu Feb 13 21:39:31 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12348         * sysdeps/unix/glue-ctype.c: Moved to unix/bsd.
12349         * sysdeps/unix/Makefile: Moved glue-ctype stuff to unix/bsd/Makefile.
12350         * sysdeps/unix/Dist: No glue-ctype.
12351         * sysdeps/unix/bsd/Dist: Here instead.
12353         * sysdeps/sparc/divrem.m4: Don't use insn aliases Sun as doesn't grok.
12355 Wed Feb 12 12:12:12 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12357         * sysdeps/m68k/setjmp.c: Use m, rather than g, constraint when
12358         saving fp regs.
12360         * Renamed oodles of files, changed all the relevant Makefiles (I
12361         think).  File names now fit in 14 chars for losing System V.  Gag me
12362         with a death star.
12363         See =longnames for translations, and =shorten.el for method.
12365         * grp/initgroups.c: Removed redundant test.
12367         * malloc/mtrace.c: Use %p fmt for pointers.
12369 Tue Feb 11 02:04:39 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12371         * stdlib/alloca.h: New file.
12372         * stdlib/stdlib.h: Moved alloca decls there; #include <alloca.h>
12373         instead.
12374         * stdlib/Makefile (headers): Added alloca.h.
12376         * stdio/getline.c (getsome): Fixed bugs.
12378         * math/bsd/common_source/mathimpl.h: #define expm1 __expm1.
12379         * math/bsd/common_source/expm1.c: Renamed to __expm1.c
12380         * math/bsd/mc68881/expm1.s: Renamed to __expm1.s; renamed fn too.
12381         * math/expm1.c: New file, fn alias expm1 -> __expm1.
12383         * math/Makefile (routines): Add __rint.
12384         * math/rint.c: New file, fn alias rint -> __rint.
12385         * math/bsd/common_source/floor.c (rint): Renamed to __rint.
12386         * sysdeps/generic/Makefile: Remove __rint, not rint.
12388         * math/Makefile (BSDmath-files): Always include it, and don't depend
12389         on undependable things.
12391         * Makerules (sysdep-Makefile): Always include it, and make it
12392         without depending on make vars that might not be right yet.
12394 Mon Feb 10 00:55:58 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12396         * stdlib/stdlib.h: #undef alloca before declaring it.
12398         * sysdeps/sparc/__longjmp.S: Use be instead of bz.
12400         * sysdeps/unix/bsd/Dist: Add bsdtty.h.
12402         * tzfile.c (__tzfile_read): Don't allocate space for 0 leaps.
12403         Don't loop infinitely.
12405         * sysdeps/unix/Makefile (make-errnos.c): Use tr to eat newlines in
12406         errnos file.
12408         * sysdeps/unix/bsd/sun/sun4/__brk.S: Fix andn arg order.
12410         * posix/Makefile: Don't get getopt by vpath.  Turns out to be too
12411         much hassle for dist.  Just made symlinks in posix/ instead.
12413         * manual/Makefile: Renamed summary.out to summary.texinfo.
12415         * manual/summary.awk: New file, to make summary.out.
12416         Replaces `process-definitions.el'.
12417         * manual/Makefile (summary.out): Create using summary.awk.
12419         * manual/Makefile: Created.
12420         * Makefile, Make-dist: Use it to format and distribute the manual.
12422 Mon Feb 10 00:32:17 1992  Jim Meyering  (meyering@churchy.gnu.ai.mit.edu)
12424         * All Makefiles:
12425         Whenever using shell redirection to create a target,
12426         do not create the target directly like this
12428             foo: bar
12429                     process $< > $@
12431         That loses when `process' fails (interrupt, disk full, ...)
12432         and bar exists and looks up-to-date, but isn't.
12433         This sort of failure is particularly insidious when
12434         the initial error message is obscured by lots of subsequent
12435         output (echoed commands etc).
12437         Instead use rules like this
12439             foo: bar
12440                     process $< > $@-tmp
12441                     mv $@-tmp $@
12443         Using this paradigm, as long as process returns non-zero
12444         whenever it fails, the target won't be touched.
12446 Sun Feb  9 22:58:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12448         * posix/unistd.h (getopt): Fixed prototype.
12449         * sysdeps/generic/memset.c, stdio/vdprintf.c: Fixed DEFUNs.
12451         * Makerules (lib): Use $(RANLIB) for ranlib.
12452         * Makeconfig: Define it.
12454         * configure: Create config.status to set ARCH, if successful.
12455         * Makeconfig: include config.status ifndef ARCH.
12457 Thu Feb  6 20:57:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12459         * ansidecl.h (INCLUDE, STARTCOMMENT, ENDCOMMENT): New magic words.
12460         * sysdeps/m68k/68881/fl.h: Use new magic to snarf ieee754/fl.h during
12461         ansideclification.
12463         * sysdeps/ieee754/fl.h: New file, taken mostly from the old
12464         68881 file.  HUGE_VAL redone to be machine independent.
12465         (NAN): New macro for an IEEE NaN, done like HUGE_VAL.
12466         * sysdeps/m68k/68881/fl.h: Now #includes ieee754/fl.h, and overrides
12467         FLT_ROUNDS for 68881 magic.  NB: the #include is a prob. for install.
12469 Wed Jan 29 17:11:25 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
12471         * sysdeps/posix/getcwd.c: Don't use chdir; use a long ../../../...
12472         path name instead.
12474 Fri Jan 17 02:51:10 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
12476         * posix/Makefile (headers): Added getopt.h.
12477         (routines): Added getopt1.
12478         Get getopt* from /home/gd/gnu/lib by vpath.
12480         * Makerules (+ansideclificate): Don't assume . is in PATH.
12482 Thu Jan 16 18:43:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
12484         * posix/glob.c [sgi]: No alloca.h, after all.
12486 Wed Jan 15 14:17:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
12488         * termios/termios.h: Reworked to be compatible with 4.4BSD.
12489         * termios/speed.c, sysdeps/unix/bsd/{__tcgetattr,tcsetattr}.c: Store
12490         speeds as their own values (B9600==9600, etc.) and translate to BSD
12491         values only for ioctl.
12492         * termios/cfsetpseed.c: New fn to set both speeds at once (from 4.4).
12494 Tue Jan 14 21:18:10 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
12496         * sysdeps/unix/i386/__brk.S: __end, not ___end.
12497         Get the arg off the stack correctly.
12499         * sysdeps/unix/Makefile: Allow errnos like EL3HLT.
12501         * sysdeps/posix/{readv,writev}.c: Typos.
12503         * sysdeps/posix/__sigpause.c: Rewritten to know that sigset_t is a
12504         mask, and to pass a (sigset_t *) instead of sigset_t to sigsuspend.
12506         * sysdeps/i386/memset.c: Include <memcopy.h>.
12508         * sysdeps/generic/uname.c (uname): Save and restore errno if
12509         gethostname gets ENOSYS.
12511         * stdio/perror.c (perror): Check correctly for S == "".
12512         Check correctly for ERRNUM being in range.
12514         * find-sysdirs: Don't use fgrep -s, since USG apparently doesn't
12515         have that flag.  Just >/dev/null instead.
12517 Mon Jan 13 17:00:15 1992  Torbjorn Granlund  (tege at mole.gnu.ai.mit.edu)
12519         * sysdeps/generic/wordcopy.c (all four functions): Move do0 label to
12520         the ultimate store statement at the end of each function.  (Used to
12521         be in the loop.)
12523 Tue Jan  7 18:40:18 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
12525         * resource/sys/resource.h (struct rusage): Change `ru_outblock' to
12526         `ru_oublock'.
12528         * sysdeps/generic/stpcpy.c: Fixed off-by-one bug.
12530 Thu Jan  2 15:19:01 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
12532         * sysdeps/sparc/Dist: Add umul.S and mul.S.
12534 Tue Dec 31 15:33:39 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
12536         * signal/signal.h [__USE_GNU]: Add user-visible `sighandler_t' ==
12537         __sighandler_t.
12539         * termios/speed.c (speedtab): Made const.
12541         * posix/Makefile (routines): Add flock.
12543 Tue Dec 31 03:38:30 1991  Richard Stallman  (rms at mole.gnu.ai.mit.edu)
12545         * termios/speed.c: Accept and return speeds as actual baud rates.
12546         * termios/termios.h (B110, etc.): Define B110 as 110, etc.
12547         Likewise for _B110, etc.
12549 Thu Oct 24 16:19:49 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
12551         * ansidecl: Put `M4OPTS=+quiet' in the environment make GNU m4 quiet.
12553 Sun Oct 20 19:31:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12555         * Make-dist (tardir): Define as `libc-RELEASE-VERSION', strings
12556         snarfed from version.c.
12557         ($(..)$(tardir)): Add rule to make as symlink to . (parent dir).
12558         [subdir] (dist), [parent] (dist.tar): Depend on that.
12559         [subdir] (tarsources), [parent] (+tsrcs): Add $(tardir)/ to files.
12561         * sysdeps/sparc/Makefile (distribute): Move data into Dist file.
12563 Fri Oct 18 15:27:58 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12565         * Makefile (subdirs): Add $(sysdep-subdirs), so sysdep makefiles can
12566         add subdirs.
12568         * posix/glob.c [sgi]: Use <sys/dir.h>.
12570         * stdio/fopen.c: If not appending, initialize the offset to 0.
12572         * sysdeps/generic/strcasecmp.c: Fixed losing braindead code.
12574 Tue Oct  8 15:27:54 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
12576         * Version 0.1.
12577         * This ChangeLog is lacking much information.
12578         * After this release, I hope to maintain the log well. 
12580 Fri Jul 26 18:02:57 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12582         * stdio/Makefile (routines): Remove _cleanup.
12584 Thu Jul 25 23:12:45 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12586         * stdio/memstream.c (close_memstream): Removed.
12587         (trim_buffer): New fn to be io_funcs->__close for memstreams.
12588         (open_memstream): Take arg char **BUFLOC.  Stuff it in
12589         stream->__fd, and store the location of the initial buffer in
12590         *BUFLOC.
12591         (enlarge_buffer): Keep *(char **) stream->__fd updated to be the
12592         location of the buffer.
12594 Tue Jul 23 14:11:29 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12596         * posix/glob.c: Don't #include <stddef.h> #ifdef sun.
12597         Is there anyone on the face of the planet other than me capable of
12598         implementing the ANSI C standard to spec????
12600         * posix/glob.c [DIRENT]: #include <sys/types.h> before <dirent.h>
12601         #ifdef USG.
12603 Mon Jul 22 17:06:24 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
12605         * sysdeps/posix/make-stdio_limits.c: #include <posix1_limits.h>,
12606         not <posix_limits.h>.
12608         * README: Refer to COPYING.LIB, not COPYING.
12610         * config.libc: Renamed to `configure'.
12612 Local Variables:
12613 mode: change-log
12614 End: