* manual/llio.texi: Document MTASC-safety properties.
[jlayton/glibc.git] / ChangeLog.1
1 Thu Sep  3 17:31:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2
3         * sysdeps/unix/bsd/setgroups.S: New file.  How did this manage not
4         to exist already??
5
6         * Version 1.04.
7
8         * sysdeps/generic/memmem.c (memmem): Fixed loop condition not to
9         use nonexistent variable.
10
11         * string/string.h (memmem): Put const qualifier on args.
12
13         * sysdeps/stub/sigaltstack.c (sigaltstack): Fix arg type.
14
15         * setjmp/sigsetjmp.c: #undef sigsetjmp before defining the function.
16
17 Wed Sep  2 16:43:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
18
19         * misc/Makefile (headers): Add syscall.h.
20         * sysdeps/unix/Makefile: Only generate syscall.h if it would
21         otherwise come from stub.
22         * sysdeps/stub/syscall.h: New file.
23
24         * time/Makefile (routines): Add stime.
25
26         * io/Makefile (routines): Add fchdir.
27
28         * signal/Makefile (routines): Add sigaltstack.
29
30         * string/Makefile (routines): Add memmem.
31
32         * setjmp/Makefile (routines): Add sigsetjmp, _setjmp.
33
34         * misc/Makefile (routines): Add getpass.
35
36         * Makefile (distribute): Add NEWS.
37
38         * Makerules (ar-it) [! objdir]: Pass `ru' instead of `u' to ar.
39         Use $(..)libc.a instead of $(libc.a).
40
41         * sysdeps/unix/sysv/i386/linux/sysdep.h (PSEUDO): Call numbers are
42         SYS_*, not __NR_*.
43
44         * sysdeps/unix/sysv/i386/linux/__wait.S: Prepend extra _ to
45         `__waitpid' for jmp.
46
47         * Makerules (check): New rule; alias for `tests'.
48
49         * sysdeps/stub/__setregid.c: Args are gid_t, not int.
50
51         * sysdeps/posix/readv.c: #include <string.h>.
52
53         * sysdeps/generic/printf_fp.c: If LDBL_DIG or LDBL_MAX_10_EXP is
54         defined by float.h, #define each to DBL_*.
55
56 Tue Sep  1 16:29:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
57
58         * sysdeps/unix/Makefile (syscall.h): Add missing backslashes.
59
60         * Makeconfig [!objdir && !..] (common-objpfx): Define as
61         `sysdeps/..'; The Almighty KludgeMeister 2000 wins again.
62
63         * Makerules (sysdep-Makefile): Rename to sysd-Makefile.
64
65         * Makeconfig (CC): Don't use -pipe by default.
66
67         * configure (switches): Put quotes around os-release and
68         os-version values.
69
70 Mon Aug 31 19:33:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
71
72         * sysdeps/stub/cbrt.c: New file.
73
74         * sysdeps/generic/cabs.c: New file.
75
76         * sysdeps/generic/ceil.c: New file, split from floor.c.
77         * sysdeps/generic/__rint.c: Replaced with code split from floor.c.
78         * sysdeps/generic/Makefile (routines): Don't remove ceil, __rint.
79
80 Thu Aug 27 15:58:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
81
82         * malloc/malloc.h [! __STDC__] (ptrdiff_t): #define.
83
84 Wed Aug 26 18:15:47 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
85
86         * malloc/free.c (__free): Rename to _free_internal.
87         (free), malloc/malloc.c (morecore): Change callers.
88         * malloc/malloc.h: Change decl.
89
90 Tue Aug 18 17:38:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
91
92         * sysdeps/generic/__copysign.c: New file.
93
94         * sysdeps/unix/sysv/sysdep.h: #include <syscall.h>, not
95         <sys/syscall.h>.  Don't #define _SYS_SYS_S; should no longer be
96         necessary.
97
98         * sysdeps/unix/Makefile (syscall.h): Replaced simple code to just
99         find the file in any of several places, with hairier code to find
100         it and massage it.
101
102         * malloc/Makefile (obstack.%): Remove rule.
103         (gpl2lgpl): Define this instead.
104         * posix/Makefile (gpl2lgpl): Define to include getopt source files.
105         * Makerules ($(gpl2lgpl)): New rule to snarf code and frob its
106         copying notices.
107
108 Fri Aug 14 13:28:39 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
109
110         * Makeconfig (common-objdir, common-objpfx): Define new vars.
111         (libc.a): Define in terms of $(common-objpfx).
112         Find config.make with $(common-objpfx), not $(objpfx).
113         * Makerules (common-objdir-compile): Define canned sequence.
114         (native-compile): Use $(@D)/$(@F) instead of stripping off $(objpfx).
115         * sysdeps/unix/Makefile, sysdeps/unix/bsd/Makefile,
116         sysdeps/generic/Makefile: Use it.
117         Use $(common-objpfx) for generated things not specific to one subdir.
118
119         * sysdeps/unix/Makefile (sysdep_headers): Add
120         $(sys/param.h-includes) to this instead of to headers.
121
122 Thu Aug 13 18:30:58 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
123
124         * posix/glob.c: Always #include <sys/types.h>.
125         [! USG]: Don't do it here.
126         [STDC_HEADERS]: Test this instead of __STDC__ for size_t.
127         [HAVE_STRCOLL]: Test this instead of ANSI_STRING for strcoll.
128
129         * posix/glob/Makefile.in (Makefile): Remove rule.
130
131 Wed Aug 12 16:12:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
132
133         * sysdeps/sparc/jmp_buf.h: Deansideclized.
134
135         * sysdeps/generic/make_siglist.c: #undef HAVE_SYS_SIGLIST, not
136         SYS_SIGLIST_MISSING.
137         * sysdeps/generic/signame.[ch]: Re-symlinked from /gd/gnu/lib.
138         Who's been removing random things from my source tree??
139
140 Tue Aug 11 15:01:50 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
141
142         * posix/getconf.c (main): Cast printf field with arg to int.
143
144         * Makefile (distribute): Remove ansidecl, ansidecl.m4.
145
146         * posix/glob.c [_AIX]: Don't declare alloca.
147
148 Mon Aug 10 17:09:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
149
150         * sysdeps/m68k/fpu/__math.h (__expm1): Define just like expm1.
151
152         * sysdeps/unix/ioctls-tmpl.c [SMIOSTATS, SMIOGETREBOOT0,
153         ZIOCBCMD]: Include headers for these.
154
155 Fri Aug  7 16:01:43 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
156
157         * string/tester.c (main): Use sys_nerr and sys_errlist, not _sys_*.
158
159         * stdio/stdio.h [__USE_GNU] (_sys_nerr, _sys_errlist): Declare.
160
161         * string/strerror.c, stdio/perror.c
162         [HAVE_GNU_LD] (_sys_errlist, _sys_nerr): Remove decls.
163
164         * stdio/memstream.c (enlarge_buffer): Notice when target is -1 and
165         don't treat it as a huge value.
166
167         * stdio/tst-printf.c: #if 0 code that tickles printf_fp bugs.
168
169         * grp/testgrp.c: Don't bomb if uid not in passwd file.
170
171         * stdlib/tst-strtol.c (tests): C-t on LONG_MIN and LONG_MIN-1 elts.
172
173         * stdlib/strtol.c: Use int flag NEGATIVE instead of char 1/-1 SIGN.
174         Fixed checking for overflow of long int that fits in unsigned long
175         int--must cast LONG_MIN before negating!
176
177 Thu Aug  6 18:46:24 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
178
179         * stdio/bug3.c (main): Define ansideclifily.
180
181         * sysdeps/unix/bsd/sun/sparc/__pipe.S: Define __pipe, not ___pipe.
182
183         * math/test-math.c (main): Remove unused vars.
184
185         * io/flock.c: #include <sys/file.h>, and not fcntl.h or sys/types.h.
186
187         * sysdeps/m68k/fpu/__math.h (__rint): Define just like rint.
188
189         * math/math.h (__rint): Declare.
190
191         * configure (esix*): base_os=unix/sysv.
192
193         * dirent/getdents.c: #include <dirent.h>.
194
195         * Rules (subdir): Avoid TAB before # at end of defn.
196
197         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Last arg type is struct rusage *.
198
199 Tue Aug  4 18:19:43 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
200
201         * sysdeps/ieee754/Makefile: Removed.
202
203         * math/math.h: Declare __expm1.
204
205 Mon Aug  3 13:02:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
206
207         * sysdeps/ieee754/cabs.c (cabs, z_abs): Members of structure have __.
208
209         * sysdeps/unix/bsd/seq386: Remove directory.
210
211 Thu Jul 30 15:42:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
212
213         * sysdeps/unix/bsd/sun/sparc/sigcontext.h: Deansideclized.
214
215         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Make last arg struct rusage
216         instead of PTR.
217
218         * sysdeps/unix/morecore.c (__default_morecore): Make arg ptrdiff_t.
219
220         * sysdeps/ieee754/cabs.c (cabs, z_abs): Use `struct __complex' for arg.
221
222         * sysdeps/generic/pow.c: #include <limits.h>.
223
224         * sysdeps/generic/mathimpl.c: #include <math.h> before frobnication.
225
226         * misc/getusersh.c (okshells): Make const.
227         (initshells): Properly declare static.
228
229         * sysdeps/unix/bsd/__tcgetatr.c: Cast sg_[io]speed to (unsigned char) 
230         to avoid gcc warnings.
231
232         * math/bsd/common/atan2.c, math/bsd/common/tan.c,
233         math/bsd/common/sincos.c, math/bsd/common/trig.h,
234         math/bsd/common_source/__expm1.c, math/bsd/common_source/fmod.c,
235         math/bsd/common_source/acosh.c, math/bsd/common_source/log.c,
236         math/bsd/common_source/asincos.c, math/bsd/common_source/asinh.c,
237         math/bsd/common_source/log1p.c, math/bsd/common_source/atan.c,
238         math/bsd/common_source/log__L.c, math/bsd/common_source/atanh.c,
239         math/bsd/common_source/mathimpl.h, math/bsd/common_source/cosh.c,
240         math/bsd/common_source/exp.c, math/bsd/common_source/sinh.c,
241         math/bsd/common_source/exp__E.c, math/bsd/common_source/tanh.c,
242         math/bsd/common_source/floor.c: Moved to sysdeps/generic.
243         * math/bsd/ieee/{cabs,cbrt,support}.c: Moved to sysdeps/ieee754.
244         * All above + sysdeps/generic/mathimpl.h, sysdeps/generic/pow.c: New
245         code from 4.4/net2.
246
247         * sysdeps/generic/ffs.c: #include <string.h>, not <bstring.h>.
248
249         * posix/glob/Makefile.in (Makefile): Depend on config.status; invoke
250         it directly instead of using $(SHELL).
251
252         * posix/glob.c [! USG]: #include <sys/types.h> before <sys/dir.h>.
253
254 Tue Jul 28 17:54:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
255
256         * sysdeps/unix/bsd/ultrix42: Renamed to ultrix4.
257
258         * sysdeps/unix/sysv/isc2.2/__rename.S: New.
259         * configure (isc*): base_os=unix/sysv.
260
261         * Makefile, Makerules, Rules, math/Makefile, ctype/Makefile: Use
262         "export foo := $(foo)" instead of ifdef have_export_directive.
263         * Makeconfig (have_export_directive): Remove; move .NOEXPORT down.
264
265 Mon Jul 27 18:01:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
266
267         * configure: Remove redundant test to set os_used.
268
269 Sun Jul 26 17:03:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
270
271         * README.template: Don't mention Q+A.
272         * Makefile (distribute): Remove Q+A.
273
274         * Makefile, Makerules, Rules, math/Makefile, ctype/Makefile: Put
275         "ifdef have_export_directive" around uses of `export' directive.
276         They are only needed for dist and tags anyway.
277         * Makeconfig (have_export_directive): Add commented-out defn, and
278         comment to explain.
279         (.NOEXPORT): Add special target for old versions of GNU make.
280
281         * posix/glob.c [_AIX]: #pragma alloca first thing.
282         [ANSI_STRING]: Remove #define's for index et al.
283
284 Thu Jul 23 21:49:53 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
285
286         * misc/getpass.c: New.
287         * posix/unistd.h (getpass): Declare.
288
289         * posix/unistd.h (getusershell, setusershell, endusershell): Declare.
290         * misc/Makefile (routines): Add getusersh.
291         * misc/getusersh.c: New.
292
293 Tue Jul 14 20:03:57 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
294
295         * stdlib/Makefile (tests): Add testdiv.
296         * stdlib/testdiv.c: New.
297
298         * sysdeps/unix/sysv/i386/linux/{rename,__mkdir,__rmdir,__dup2,
299         getpgrp,__setpgrp,setsid}.S: New files.
300
301         * sysdeps/unix/__getppid.S: If SYS_getppid is defined, use it rather
302         than alternate value of getpid.
303         * __gete[ug]id.S: Similar.
304
305         * sysdeps/unix/sysv/i386/linux/__waitpid.S: New file.
306         * sysdeps/unix/sysv/i386/linux/__wait.S: New file.
307         * sysdeps/posix/__wait3.c: New file.
308
309         * sysdeps/unix/sysv/i386/linux/socket.S: New file.
310         * bind.S, connect.S, listen.S, accept.S, getsockname.S,
311         getpeername.S, socketpair.S: Also new (and trivial).
312
313 Mon Jul 13 17:41:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
314
315         * sysdeps/unix/sysv/i386/linux/sysdep.[hS]: New files.
316
317         * configure (linux*): base_os=unix/sysv
318         (gnu*, linux*): Always set --with-gnu-ld and --with-gnu-as.
319
320         * stdio/obstream.c: #include <string.h>
321         (obstack_vprintf): Use bzero rather than memset.
322
323         * stdio/glue.c (unix_FILE.glue): Add two members, which will overlap
324         get_limit and put_limit in GNU stdio.
325         (_iob): Initialize them to same as `streamp'.
326
327 Thu Jul  9 21:27:39 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
328
329         * stdio/stdio.h (open_obstack_stream, obstack_printf,
330         obstack_vprintf): Declare.
331
332         * posix/glob.c [STDC_STRINGS]: Don't test this.
333         [! ANSI_STRING]: Put memcpy, strrchr, memset defns here instead.
334
335         * posix/glob/Makefile.in (glob.o, fnmatch.o): / after $(srcdir).
336
337 Tue Jul  7 03:11:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
338
339         * stdio/Makefile (routines): Add obstream.
340
341         * Makerules (%.o: %.S, %.o: %.c): If using gcc, put the file name
342         before the options on the command line.
343
344         * malloc/Makefile (dist-routines): Define with routines for malloc.tar.
345         (routines): Define with that plus the rest.
346         (nodist): Remove.
347         (routines): Add obstack.
348         (headers): Add obstack.h.
349         (obstack.%): New rule.
350
351         * stdio/glue.c: Add comments.
352
353         * stdio/printf.h (struct printf_info.spec): Make unsigned char.
354
355         * stdio/stdio.h (__validfp): Fixed glued-stream snarfing.
356
357 Mon Jul  6 20:00:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
358
359         * sysdeps/i386/jmp_buf.h: Deansideclized.
360
361         * sysdeps/posix/Makefile (objdir-CPPFLAGS): Define; if in parent
362         dir, add ..s to -Is.
363         (mk-stdiolim): Use it in place of $(CPPFLAGS).
364
365 Sat Jul  4 20:44:42 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
366
367         * posix/glob/Makefile.in (glob.o, fnmatch.o): Put $(srcdir) on deps.
368
369 Wed Jul  1 00:13:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
370
371         * sysdeps/generic/strstr.c: If NEEDLE is "", return end of HAYSTACK.
372
373         * string/tester.c (main): Remove decls of sys_nerr and sys_errlist.
374
375         * configure: Accept --prefix=*, --exec_prefix=* options.
376         Set values in config.make and config.status.
377
378         * io/umask.c: Fixed return type in fn alias.
379
380         * posix/glob.c [! ANSI_STRING]: #define strcoll to strcmp.
381         Remove extra decls of free, qsort, malloc, and realloc.
382
383         * dirent/alphasort.c: #include <string.h>, and not <stdlib.h>.
384
385         * sysdeps/unix/bsd/i386/__wait3.S: Load SYS_wait into %eax before
386         trapping.  Use literal .byte instead of lcall to avoid gas bug.
387         Use 0(REG), not (REG), for register-indirect addressing.
388
389         * configure: Make config.status executable.
390
391 Tue Jun 30 21:14:53 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
392
393         * configure: Add --os-release=* and --os-version=* options.  Record
394         settings (which might be automagically guessed) in config.status.
395
396         * misc/mknod.c: Use __mode_t for arg in fn alias.
397
398         * posix/unistd.h (setregid): Declare to take __gid_t args.
399
400         * sysdeps/unix/bsd/i386/__wait3.S: Don't use lcall insn gas barfs on.
401
402         * posix/vfork.c: Move to sysdeps/generic/.
403
404         * Rules (others, tests): Export them.
405
406         * io/umask.c, io/mkdir.c, io/chmod.c: Use mode_t not int in arg decls.
407
408         * sysdeps/i386/ffs.c: #include <string.h>, not <bstring.h>.
409
410         * stdio/vfscanf.c: Use function_alias.
411
412         * stdio/vsscanf.c: Use va_list, not PTR, in arg decl in fn alias.
413
414         * sysdeps/unix/i386/sysdep.h (PSEUDO): Enough backslashes and
415         semicolons.
416
417         * stdio/stdio.h: For __gnuc_va_list, #test __GNUC_VA_LIST, not
418         __va_list_defined.
419
420         * stdio/fmemopen.c: Use memchr to find NUL for append mode.
421
422         * stdio/memstream.c (enlarge_buffer): Double the buffer size, rather
423         than adding 100.  Don't clobber *INFO->bufsize when called with the
424         put limit reset.  If the target has been set, extend and zero-fill
425         the buffer.
426         (seek): New function.
427         (open_memstream): Use it for seek io fn.  Call fmemopen with "w+" mode.
428
429 Sun Jun 28 19:01:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
430
431         * stdio/fseek.c: Fail with EINVAL for a negative file pos.
432
433 Fri Jun 26 00:07:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
434
435         * Makeconfig (stdarg.h): New variable.
436         * Makefile (headers): Add $(stdarg.h).
437
438         * stdio/stdio.h: Change __va_list to __gnuc_va_list in decls.
439
440         * sysdeps/unix/morecore.c: Include malloc.h #ifndef _MALLOC_INTERNAL.
441         Don't include <stdio.h>.
442         (NULL): Define to 0 if not defined.
443
444         * sysdeps/i386/bzero.c: Include string.h, not bstring.h.
445
446 Thu Jun 25 21:01:40 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
447
448         * stdio/perror.c, string/strerror.c (_sys_errlist, _sys_nerr): Don't
449         declare #ifndef HAVE_GNU_LD.
450
451         * stdio/fwrite.c: Cast arg to write io func to const char * (from uns).
452
453         * sysdeps/unix/Makefile: If syscall.h doesn't exist in
454         $(sysincludedir), look for sys/syscall.h and create $(objpfx)syscall.h
455         to #include it.
456
457         * sysdeps/unix/morecore.c (__default_morecore): Deansideclized.
458         * malloc/*.c: Only #include <malloc.h> #ifndef _MALLOC_INTERNAL.
459
460 Wed Jun 24 19:09:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
461
462         * sysdeps/unix/snarf-ioctls: Avoid looking at a few particular
463         headers which tend to mislead us.
464
465         * Makefile (distribute): Add COPYING.
466
467         * configure (Makefile): When invoking make in srcdir, set ARCH
468         rather than objdir on the cmd line.
469
470         * posix/glob.c [DIRENT] (direct): Don't define to dirent.
471         [! DIRENT] (direct): Define to dirent.
472
473         * Make-dist [!subdir] (+tsrcs): Don't include $(distribute).  It was
474         already included above.
475
476 Mon Jun 22 16:58:34 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
477
478         * Makerules (sysdep_routines): Export it.
479
480 Wed Jun 17 17:58:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
481
482         * posix/glob.c (my_realloc): Test only __GNU_LIBRARY__.  Can't trust
483         STDC_HEADERS.
484
485 Tue Jun 16 20:20:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
486
487         * resource/sys/resource.h (enum __rlimit_resource): Added MEMLOCK,
488         NPROC, OFILE.
489
490         * posix/Makefile (glob.tar): Include Makefile.in & configure, and not
491         Makefile.
492         (glob/configure): New rule.
493
494         * posix/glob/Makefile: Moved to posix/glob/Makefile.in.
495         (VPATH, srcdir, CPPFLAGS): Define to be replaced by autoconf.
496
497         * posix/glob.c: Rearranged conditionals for use with autoconf.
498
499 Thu Jun 11 15:47:43 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
500
501         * sysdeps/unix/bsd/sun/sparc/start.c: Added alias for start -> __start.
502
503 Tue Jun  9 20:15:12 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
504
505         * sysdeps/posix/rename.c: Return failure and don't remove the old
506         link if the link failed with other than EEXIST.
507
508         * posix/glob/Makefile: Fixed copyright notice.
509         (realclean): Don't remove ~ backup files.
510
511 Thu Jun  4 16:41:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
512
513         * time/Makefile (install-data): Don't include zoneinfo/.
514         Makerules already makes sure the necessary directories exist.
515
516         * setjmp/setjmp.h (sigsetjmp) [__GNUC__]: Use typeof hackery to
517         construct the type of the temporary var for the arg.
518         (_setjmp) [__FAVOR_BSD]: Make same as setjmp.
519
520         * malloc/malloc.h (mtrace): Declare.
521
522         * malloc/malloc.h, malloc/calloc.c, malloc/free.c, malloc/malloc.c,
523         malloc/mcheck.c, malloc/memalign.c, malloc/mstats.c,
524         malloc/mtrace.c, malloc/realloc.c, malloc/valloc.c: Deansideclized;
525         changed copyright notices to be independent of libc.
526         * malloc/Makefile (glob/%.c, glob/%.h): Don't need to ansideclificate.
527
528         * io/ftw.h, io/ftw.c: New.
529         * io/Makefile (headers): Added ftw.h.
530         (routines): Added ftw.
531
532 Tue Jun  2 21:49:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
533
534         * sysdeps/unix/bsd/signum.h (SIG_ERR, SIG_DFL, SIG_IGN): Use
535         __sighandler_t.
536
537         * posix/glob.c (__ptr_t): Define.
538
539 Thu May 28 06:57:14 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
540
541         * sysdeps/m68k/jmp_buf.h: Don't use PTR.
542
543 Wed May 27 18:09:40 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
544
545         * posix/{glob,fnmatch}.[ch]: Deansideclized; changed copyright
546         notice to be independent of libc.
547         * posix/Makefile (glob/%.c, glob/%.h): Don't need to ansideclificate.
548
549         * posix/unistd.h (_SC_2_FORT_RUN, _SC_2_LOCALDEF): Define.
550
551         * posix/unistd.h: Define _POSIX2_* without #ifdef __USE_POSIX2.
552
553         * posix/unistd.h (_POSIX2_FORT_DEV): Removed.
554
555         * posix/fnmatch.h (FNM_FILE_NAME): Alias for FNM_PATHNAME.
556
557 Tue May 26 00:39:39 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
558
559         * time/Makefile (install-data): Include zoneinfo/, so the directory
560         gets made.
561
562         * Makeconfig (+gcc-nowarn): Define to -w if using gcc.
563         * time/Makefile (tz-cc): Use it to suppress warnings for grody code.
564
565         * posix/Makefile (libposix.a), math/Makefile (libm.a): Make archive
566         containing /dev/null instead of nothing; ar won't create an empty
567         archive.
568
569         * Makerules (%/): Added generic mkdir rule.
570
571         * posix/Makefile (install-lib): Define to libposix.a.
572         (libposix.a): Create empty archive.
573
574         * posix/Makefile (distribute): Added utsnamelen.h.
575
576         * ctype/ctype.c (tolower, toupper): If the arg doesn't fit in a
577         char, return it unchanged.
578         * ctype/ctype.h (tolower, toupper): Don't define as macros.
579         [__GNUC__]: Define as extern inline functions.
580
581         * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h,
582         sysdeps/unix/bsd/sun/sunos4/uname.S: New.
583
584         * configure: Only do hacking to snarf uname info if the config uses
585         the generic uname implementation.
586
587         * Makeconfig (+defines): Define to include $(gnu_ld), rather than
588         -DHAVE_GNU_LD.
589         * configure: Write config.make with gnu_ld/gnu_as defns.
590
591         * sysdeps/unix/bsd/sun/sunos411: Renamed back to .../sunos4.
592         * sysdeps/unix/bsd/bsd44: Renamed to .../bsd4.4.
593
594         * Makeconfig: include $(objpfx)configparms instead of
595         $(objdir)/Makeconfig.
596         Define objpfx as soon as objdir is defined, so we can use it.
597
598         * sysdeps/generic/uname.c: Use UNAME_* from config-name.h.
599
600 Mon May 25 19:33:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
601
602         * configure: Accept all standard GNU configure options.
603         Expect to be run in object directory, and find source directory
604         elsewhere.
605         Write config.status as a shell script that can be run to recreate
606         the configuration.
607         Grok os names containing dots by trying each successively
608         less-precise substring.
609         Write Sysnames and config-name.h in current directory.
610         Write #define's for uname sysname, release, version, and machine
611         elts in config-name.h.  Hackery to intuit release and version info.
612
613         * stdio/vsnprintf.c, stdio/vsprintf.c, stdio/vasprintf.c,
614         stdio/vdprintf.c, stdio/vfscanf.c, stdio/vscanf.c,
615         stdio/__vsscanf.c: Take arg list as va_list, not PTR.
616
617         * stdio/stdio.h: Replaced #include <stdarg.h> with magic.
618         Properly use __va_list in prototypes.
619
620         * Makeconfig (exec_prefix): Define.
621         (libdir, includedir, bindir): Use it.
622
623         * sysdeps/unix/sysv/Makefile [subdir==io] (sysdep-routines): Removed
624         __utssys.
625         * sysdeps/unix/sysv/Dist: Removed __utssys.S.
626         * sysdeps/unix/sysv/__utssys.S, sysdeps/unix/sysv/uname.c: Removed.
627         * sysdeps/unix/sysv/uname.S, sysdeps/unix/sysv/utsnamelen.h: New.
628
629         * posix/sys/utsname.h (_UTSNAME_LENGTH): Don't define; instead,
630         #include <utsnamelen.h> to define it.
631         * sysdeps/generic/utsnamelen.h: New.
632
633 Sun May 24 00:07:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
634
635         * sysdeps/generic/inet-cvt.h: Deansideclized.
636
637         * string/string.h (memfrob): First arg is __ptr_t, not char *.
638
639         * misc/sys/cdefs.h (__ptr_t): Made #define rather than a typedef.
640
641 Fri May 22 01:52:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
642
643         * Makefile, Rules, Makerules: Remove all rules for ansideclificating
644         headers.
645
646         * posix/glob.h, posix/fnmatch.h: Use explicit cruft for C++.
647         Define __P and const for C++/ANSI vs old C ourselves, to avoid
648         dependence on <sys/cdefs.h>.
649
650         * inet/Makefile: Remove cruft to snarf things from bsd/.
651         * inet/bsd/*.c: Moved to inet/.
652
653         * Makerules: Install headers from source directories into
654         $(includedir), rather than ansidecl madness.
655         * Makeconfig (ansi-incldir, trad-incldir): Removed.
656         (includedir): Define instead.
657
658         * assert/assert.h, ctype/ctype.h, dirent/dirent.h, grp/grp.h,
659           locale/locale.h, locale/localeinfo.h, math/math.h,
660           misc/sys/file.h, misc/sys/ioctl.h, misc/sys/ptrace.h,
661           misc/sys/uio.h, misc/sgtty.h, misc/nlist.h, posix/gnu/types.h,
662           posix/sys/wait.h, posix/sys/types.h, posix/sys/times.h,
663           posix/sys/utsname.h, posix/unistd.h, posix/tar.h, posix/utime.h,
664           posix/wordexp.h, posix/glob.h, posix/fnmatch.h, pwd/pwd.h,
665           resource/sys/resource.h, resource/sys/vlimit.h,
666           resource/sys/vtimes.h, setjmp/setjmp.h, signal/signal.h,
667           signal/gnu/signal.h, socket/sys/socket.h, stdio/stdio.h,
668           stdio/printf.h, stdlib/alloca.h, stdlib/stdlib.h, string/string.h,
669           termios/termios.h, time/sys/time.h, time/time.h, io/sys/stat.h,
670           io/fcntl.h, errno.h, stddef.h, malloc/malloc.h:
671         Deansideclized.  Use <sys/cdefs.h> macros instead of ansidecl and
672         C++ cruft.
673         * features.h: #include <sys/cdefs.h>.
674
675         * string/string.h (strfry, memfrob): Declare.
676         * string/Makefile (routines): Added strfry and memfrob.
677         * string/strfry.c, string/memfrob.c: New.
678
679         * locale/C-ctype_ct.c: Made BS be isspace.
680
681         * sysdeps/generic/strstr.c: Return HAYSTACK, not its end, if NEEDLE
682         is the empty string.
683
684         * sysdeps/generic/strncase.c: Fixed for case of empty string.
685
686 Wed May 20 02:36:09 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
687
688         * io/sys/stat.h (fchmod): Declare, rather than two __fchmod decls.
689
690         * configure (sysv, bsd): Don't make base_os=unix; unix/{sysv,bsd}
691         instead.
692         Set os_used if base_os is used.
693
694 Tue May 19 21:00:11 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
695
696         * crypt/*: New files from glad.
697
698         * stdio/stdio.h (sys_nerr, sys_errlist): Don't declare const.
699
700 Sun May 17 15:50:00 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
701
702         * io/Makefile (headers): Remove gnu/stat.h; add sys/stat.h.
703
704         * posix/glob.c (glob): Don't let us fall off the end without returning.
705
706         * sysdeps/stub/setenv.c, sysdeps/posix/setenv.c: New.
707         * stdlib/stdlib.h [__USE_BSD] (setenv): Declare.
708         * stdlib/Makefile (routines): Add setenv.
709
710         * malloc/mtrace.c (old_{free,malloc,realloc}_hook): Renamed to tr_&
711         to not conflict with mcheck.c when combined into gmalloc.c.
712
713 Fri May 15 19:07:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
714
715         * socket/sys/socket.h (PF_NBS, AF_NBS): Removed.
716         (PF_ISO, PF_OSI, PF_APPLETALK, PF_ROUTE, PF_LINK): Define.
717         (PF_MAX): Increase accordingly.
718
719         * inet/bsd/*.c: Snarfed latest code from 4.4.
720
721         * misc/sys/cdefs.h (__BEGIN_DECLS, __END_DECLS): Define cruft for C++.
722
723 Thu May 14 01:45:12 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
724
725         * posix/glob.h (GLOB_MAGCHAR): Check user feature-test macros,
726         rather than __USE_BSD, so we don't depend on features.h.
727
728         * sysdeps/stub/__wait4.c: Last arg is struct rusage *, not PTR.
729
730         * math/bsd/common_source/mathimpl.h: Don't #define const.
731         #include <sys/cdefs.h> instead.
732
733         * Makefile (+other_dirs): Add crypt, but only if it exists at run time.
734         * crypt/GNUmakefile: New file.
735         * sysdeps/sparc/Makefile, sysdeps/m68k/Makefile (crypt):
736         Define to use machine-dependent assembly code in crypt/crypt.*.S.
737         * crypt: New directory.
738
739         * find-sysdirs: Don't lose if there are no sysnames.
740
741         * termios/Makefile (headers): Added sys/termios.h.
742         * termios/sys/termios.h: New file; just #include <termios.h>.
743
744         * stdlib/qsort.c: Define _quicksort rather than qsort.
745         * stdlib/msort.c: New file; defines qsort function that does merge
746         sort.  Falls back to _quicksort if it fails to allocate a temp array.
747         * stdlib/Makefile (routines): Added msort.
748
749         * string/string.h (memccpy, strdup): Also declare #ifdef __USE_BSD.
750         [__USE_BSD] (index, rindex, bcmp, bzero, ffs): Declare.
751         * string/strings.h: Just #include <string.h>.
752         * string/Makefile (headers): Removed bstring.h.
753
754         * misc/Makefile (routines): Removed swab.
755         * string/Makefile (routines): Put it here instead.
756         * misc/swab.c: Moved to string/swab.c.
757
758         * stdio/stdio.h [__USE_BSD] (sys_nerr, sys_errlist): Declare.
759
760         * grp/grp.h (setgrent, endgrent, getgrent): Also do #ifdef __USE_BSD.
761
762         * posix/glob.h [__USE_BSD] (GLOB_MAGCHAR): Declare.
763         (glob_t): Added member `gl_flags'.
764         * posix/glob.c (glob, glob_in_dir): Set gl_flags member to FLAGS;
765         or in GLOB_MAGCHAR if any metachars are seen.
766
767         * sysdeps/unix/bsd/bsd44/readdir.c: New.
768
769         * sysdeps/unix/bsd/sun/readdir.c: Don't need to declare
770         __getdirentries here.  Use off_t and ssize_t.
771
772         * misc/Makefile (routines): Removed getdents and __getdents.
773         * dirent/Makefile (routines): Put them here instead.
774         * misc/getdents.c: Moved to dirent/getdents.c.
775         * dirent/dirent.h [__USE_BSD] (__getdirentries, getdirentries):
776         Declare.
777
778         * dirent/Makefile (routines): Added scandir and alphasort.
779         * dirent/scandir.c, dirent/alphasort.c: New.
780         * dirent/dirent.h [__USE_BSD] (scandir, alphasort): Declare.
781
782         * sysdeps/unix/bsd/nice.c, sysdeps/unix/sysv/nice.S,
783         sysdeps/stub/nice.c: New.
784         * resource/Makefile (routines): Added nice.
785
786         * misc/sys/cdefs.h [__USE_BSD] (const, signed, volatile): #define to
787         __ versions, for the sake of 4.4 header files.
788
789 Wed May 13 00:35:12 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
790
791         * stdlib/tst-strtol.c: Fixed typo in test table.
792
793         * stdlib/strtol.c: Fixed checking for overflow of long int that fits
794         in unsigned long int.
795
796         * misc/Makefile (headers): Added ttyent.h.
797         (routines): Added getttyent.
798         * misc/ttyent.h, misc/getttyent.h: New; snarfed from 4.4.
799
800         * posix/sys/wait.h [__USE_BSD]: Added forward decl for struct rusage.
801         (__wait4, __wait3): Declare arg as struct rusage, not PTR.
802
803         * inet/arpa/*.h, inet/protocols/*.h, inet/netdb.h, inet/resolv.h:
804         New files from 4.4.
805         * inet/Makefile (headers): Snarf *.h from arpa/ and protocols/.
806
807         * sysdeps/m68k/fpu/__math.h, assert/assert.h: #include <sys/cdefs.h>
808         and use its macros rather than rolling our own.
809
810         * misc/sys/cdefs.h: New file.
811         * misc/Makefile (headers): Add it.
812
813         * Makerules: Moved check for headers coming from env to Rules.
814
815 Tue May 12 01:04:10 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
816
817         * sysdeps/generic/strsep.c: New.
818         * string/string.h [__USE_BSD] (strsep): Declare.
819         * string/Makefile (routines): Added strsep.
820
821         * sysdeps/unix/sysv/__settod.c, sysdeps/unix/sysv/stime.S,
822         sysdeps/unix/bsd/stime.c, sysdeps/stub/stime.c: New.
823         * time/time.h [__USE_SVID] (stime): Declare it.
824
825         * sysdeps/unix/bsd/bsd44/__getdents.S: New.
826
827         * posix/wordexp.h, posix/utime.h, posix/unistd.h, time/time.h,
828         termios/termios.h, posix/tar.h, string/strings.h, string/string.h,
829         stdlib/stdlib.h, signal/signal.h, stdio/stdio.h, misc/sgtty.h,
830         setjmp/setjmp.h, inet/resolv.h, pwd/pwd.h, stdio/printf.h,
831         misc/nlist.h, inet/netdb.h, math/math.h, malloc/malloc.h,
832         locale/locale.h, grp/grp.h, posix/glob.h, posix/getopt.h,
833         posix/fnmatch.h, io/fcntl.h, errno.h, dirent/dirent.h,
834         ctype/ctype.h, string/bstring.h, assert/assert.h, stdlib/alloca.h,
835         misc/a.out.h [__cplusplus]: Added stupid cruft for losing C++.
836
837 Mon May 11 01:40:49 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
838
839         * math/Makefile (headers): Added huge_val.h and nan.h.
840
841         * io/Makefile (headers): Changed gnu/stat.h to statbuf.h.
842
843         * time/Makefile (install-data): Include $(localtime-file) and
844         $(posixrules-file) if they are relative.
845         (install-others): Include them if absolute.
846         ($(posixrules-file), $(localtime-file)): Define rules to install if
847         absolute file names.
848         * Makerules (+install): Include $(install-others) verbatim.
849         * Makeconfig (localtime-file): Made default /etc/localtime.
850
851         * sysdeps/generic/Makefile (endian.h): Only generate if would
852         otherwise use stub version.
853         * sysdeps/stub/endian.h, sysdeps/i386/endian.h: New.
854
855         * Rules, Makefile: Export distribute and dont_distribute.
856         * Make-dist: Export sysdep_dirs.  Unexport things rather than
857         clobbering their values.
858
859         * misc/sys/ptrace.h: Fixed typo.
860
861         * stdio/stdio.h (__io_read, __io_write, __io_seek, __io_close):
862         Added comments.
863
864         * stdio/internals.c (flushbuf): If in append mode, don't do aligned
865         writing, seek to the target, or update the offset.
866
867         * posix/unistd.h (lseek): Doc fix.
868
869         * misc/swab.c: New.
870         * misc/Makefile (routines): Added swab.
871
872 Wed May  6 12:32:18 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
873
874         * math/Makefile, inet/Makefile (source_dirs): Export it.
875         * MakeTAGS (all-dirs): Include $(source_dirs).
876
877         * Makefile (TAGS): Removed dep on subdir_TAGS.
878         (+subdir_targets): Removed subdir_TAGS.
879         * MakeTAGS [! subdir] (TAGS): Depend on subdir_TAGS.
880         [! subdir] (subdir_TAGS): Recurse on subdirectories.
881
882         * Makerules (headers): Don't take value from the environment.
883
884         * Makerules (sysdirs, sysdep_dir): Export them.
885
886         * MakeTAGS: New makefile.
887         * Makefile (distribute): Include it.
888         * Makefile (TAGS), Rules (TAGS): Removed rules.
889         * Makerules (TAGS): New rule that uses MakeTAGS.
890         * Makefile (TAGS): Depend on subdir_TAGS.
891
892         * Makerules (install, install-lib, install-data, routines, aux):
893         Don't bother removing these if they come from the environment, since
894         they won't with make >= 3.62.8.
895         * Rules (distribute, headers): Ditto.
896         (subdir): Export it.
897         * Makerules (sources, headers): Export these.
898         * Makefile (subdirs): Export it.
899
900         * Rules (+tags_sources): Removed.
901         * Makerules (tags-sources): Define here.
902         * ctype/Makefile (tags-sources): Redefine to give headers precedence
903         over sources.
904         * Rules (TAGS), Makefile (TAGS): Rewrote rules.
905         * Makeconfig (+ctags): Removed.
906         (ETAGS): Define.
907
908         * sysdeps/posix/getcwd.c: Don't closedir twice.
909
910         * sysdeps/unix/bsd/hp/m68k/__wait3.S: Define __wait3, not ___wait3.
911
912         * posix/sys/types.h [__USE_BSD] (fsid_t): Define.
913         * posix/gnu/types.h (__fsid_t): Define.
914
915         * io/fcntl.h (F_GETLK): Define.
916
917 Tue May  5 18:36:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
918
919         * misc/Makefile (routines): Added seteuid and setegid.
920         * sysdeps/stub/sete[ug]id.c, sysdeps/unix/bsd/bsd44/sete[ug]id.S: New.
921         * posix/unistd.h [__USE_BSD] (seteuid, setegid): Declare.
922
923         * sysdeps/unix/bsd/tcsendbrk.c: #include <sys/types.h>
924
925         * Makerules: Strip whitespace from $(headers) so ifdef wins.
926
927         * sysdeps/unix/bsd/bsdtty.h: #undef a bunch more things.
928
929         * sysdeps/unix/bsd/bsd44/errnos.h: New, hacked from 4.4 <sys/errno.h>.
930
931         * sysdeps/unix/Makefile (ioctls.h, errnos.h): Only generate if
932         the files that would be used otherwise are the stub versions.
933
934         * sysdeps/unix/bsd/tcflow.c: Don't write VSTOP or VSTART if it is
935         _POSIX_VDISABLE.
936
937         * sysdeps/unix/bsd/tcflush.c: Use FREAD|FWRITE for TCIOFLUSH.
938
939         * sysdeps/unix/bsd/usleep.c: Use select rather than itimers to wait.
940
941         * sysdeps/unix/bsd/tcsendbrk.c: Use select rather than itimers to wait.
942
943         * termios/cfmakeraw.c: New.
944         * termios/Makefile (routines): Added cfmakeraw.
945
946         * sysdeps/unix/bsd/bsd44/ioctls.h: New file, hacked from 4.4
947         <sys/ioctl.h>.
948         * sysdeps/unix/bsd/bsd44/__tcgetatr.c: New.
949         * sysdeps/unix/bsd/bsd44/tcsetattr.c: New.
950         * sysdeps/unix/bsd/bsd44/tcdrain.c: New.
951
952         * termios/sys/ttydefaults.h: New, snarfed from 4.4.
953         * termios/Makefile (headers): Define.
954         * termios/termios.h [__USE_BSD]: #include <sys/ttydefaults.h>
955
956         * sysdeps/posix/getcwd.c: Removed unused variable.
957
958         * time/__tzset.c: Cast string literal to (char *).
959
960         * setjmp/sigjmp_save.c: Declare properly to return void.
961
962         * sysdeps/ieee754/nan.h: Created; somehow it disappeared.
963
964 Mon May  4 18:30:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
965
966         * sysdeps/unix/bsd/bsd44/__wait4.S: New.
967
968         * sysdeps/unix/bsd/4.4: Renamed to sysdeps/unix/bsd/bsd44.
969
970         * signal/gnu/signal.h (__SA_DISABLE, __SA_NOCLDSTOP): Use same bits
971         4.4 uses.
972
973 Sun May  3 13:57:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
974
975         * stdio/fwrite.c: Use unsigned char to avoid sign extension.
976
977         * stdlib/__random.c (randtbl): Replaced default constants so they
978         match the state produced by "srandom (1)".
979
980         * stdlib/mbtowc.c: Test for S == "" before testing for no mbchars.
981
982         * stdlib/Makefile (tests): Added testrand.
983         * stdlib/testrand.c: New test for rand.
984
985         * stdlib/testmb.c: Added 2 mblen tests.
986
987         * stdlib/wcstombs.c: Don't do anything strange for EOF.
988         Copy non-MB characters as they are.
989         Properly increment S after writing.
990
991         * stdlib/testmb.c: Added test case for wcstombs.
992
993         * signal/signal.h (SA_DISABLE): Define.
994         * signal/gnu/signal.h (__SA_DISABLE): Define.
995
996         * signal/signal.h (struct sigaltstack): Define new type.
997         (sigaltstack): Declare new fn.
998         * sysdeps/stub/sigaltstack.c: New.
999         * sysdeps/unix/bsd/4.4/sigaltstack.S: New.
1000
1001         * misc/Makefile (routines): Added reboot.
1002         * posix/unistd.h (reboot): Declare.
1003         * sysdeps/stub/reboot.c: New.
1004
1005         * sysdeps/unix/bsd/ulimit.c [! HAVE_GNU_LD]: #define _etext -> etext.
1006
1007         * sysdeps/unix/bsd/sun/sparc/sethostid.S: #define _ERRNO_H before
1008         #include <errnos.h>.
1009
1010         * configure (newos*): base_os=unix/bsd.
1011
1012 Fri May  1 12:21:47 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1013
1014         * io/gnu/stat.h: Moved to sysdeps/unix/bsd/statbuf.h.
1015         * sysdeps/unix/bsd/statbuf.h: Define struct stat, not struct __stat.
1016         * io/stat.c: Use struct stat, not struct __stat.
1017         * sysdeps/stub/statbuf.h: New.
1018         * io/sys/stat.h: #include <statbuf.h> instead of gnu/stat.h.
1019         (stat, fstat, lstat, chmod, fchmod, umask, mkdir, mknod): Don't
1020         #define; declare as fns instead.
1021         * sysdeps/unix/sysv/stat.h: New.
1022         * sysdeps/unix/sysv/sysv_stat.h, sysdeps/unix/sysv/sys_stat.S,
1023         sysdeps/unix/sysv/sys_fstat.S: Removed.
1024         * sysdeps/unix/sysv/Makefile (sysdep_routines): Removed sys_stat,
1025         sys_fstat.
1026         * sysdeps/unix/sysv/Dist: Removed sys_stat.S, sys_fstat.S.
1027         * sysdeps/unix/bsd/__stat.S, sysdeps/unix/bsd/__fstat.S: Moved to
1028         sysdeps/unix.
1029
1030         * sysdeps/m68k/fpu/switch/Makefile: Refer to dirs fpu and
1031         fpu/switch, not 68881 and 68881-switch.
1032
1033         * sysdeps/m68k/fpu/switch/switch.c: #include <68881-sw.h>, not
1034           68881-switch.h.
1035
1036         * sysdeps/m68k/fpu/__expm1.c, sysdeps/m68k/fpu/__rint.c,
1037         sysdeps/m68k/fpu/asin.c, sysdeps/m68k/fpu/atan.c,
1038         sysdeps/m68k/fpu/atanh.c, sysdeps/m68k/fpu/ceil.c,
1039         sysdeps/m68k/fpu/cos.c, sysdeps/m68k/fpu/cosh.c,
1040         sysdeps/m68k/fpu/exp.c, sysdeps/m68k/fpu/fabs.c,
1041         sysdeps/m68k/fpu/floor.c, sysdeps/m68k/fpu/log.c,
1042         sysdeps/m68k/fpu/log10.c, sysdeps/m68k/fpu/log1p.c,
1043         sysdeps/m68k/fpu/sin.c, sysdeps/m68k/fpu/sinh.c,
1044         sysdeps/m68k/fpu/sqrt.c, sysdeps/m68k/fpu/tan.c,
1045         sysdeps/m68k/fpu/tanh.c: #include <acos.c> without explicit path
1046         (which has changed).
1047
1048         * sysdeps/unix/bsd/sun/sparc/start.c: #include <syscall.h>.
1049         (syscall): Removed C function; define all inside asm instead.
1050         (init_shlib): Cast return value of syscall to right types.
1051
1052 Thu Apr 30 01:15:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1053
1054         * sysdeps/unix/bsd/sun/sparc/start.c: Added code to use dynamic
1055         linker from trq@dionysos.thphys.ox.ac.uk.
1056
1057         * sysdeps/unix/bsd/sun/sunos4: Renamed to sunos411.
1058
1059         * setjmp/setjmp.h (sigsetjmp): Don't declare as a function.
1060         Define as a macro instead.
1061         (__sigjmp_save): Declare; internal fn used by sigsetjmp macro.
1062         (_setjmp), [__FAVOR_BSD] (setjmp): Always define as a macro.
1063         * setjmp/sigjmp_save.c: New file.
1064         * setjmp/_setjmp.c, setjmp/sigsetjmp.c: Removed.
1065         * Makefile (routines): Removed _setjmp, sigsetjmp; added sigjmp_save.
1066         * misc/bsd-compat.c (setjmp): Don't define.
1067
1068         * configure (sysv, bsd): base_os=unix
1069
1070         * configure: Fatal error if the machine or os did not generate any
1071         sysdep dirs.
1072
1073         * configure: No error message after config.sub fails.
1074
1075         * sysdeps/mips, sysdeps/unix/bsd/ultrix42: New port from
1076         brendan@cs.widener.edu.
1077
1078         * Reorganized sysdeps:
1079           unix/bsd/
1080               hp9k3bsd -> hp/m68k
1081               news -> sony/m68k
1082               sun/
1083                   sun3/os3 -> sunos3/m68k
1084                   sun3 -> m68k
1085                   sun4 -> sparc
1086           unix/sysv/
1087               r4 -> sysv4
1088           m68k/
1089               68881 -> fpu
1090               68881/68881-switch -> fpu/switch
1091         * sysdeps/unix/bsd/sony/m68k/start.c: Changed #include.
1092         * configure: Use config.sub to canonicalize name.
1093         Then use combinations of machine, vendor, and os (with special
1094         hacks for os flavors) for sysdep dirs to try.
1095         * Makefile (distribute): Added config.sub.
1096
1097 Wed Apr 29 23:06:06 1992  Brendan Kehoe  (brendan@churchy.gnu.ai.mit.edu)
1098
1099         * sysdeps/unix/bsd/hp9k3bsd/sysdep.h,
1100         sysdeps/unix/bsd/sun/sun3/sysdep.h, sysdeps/unix/bsd/sun/sun4/sysdep.h,
1101         sysdeps/unix/bsd/vax/sysdep.h,sysdeps/unix/i386/sysdep.h,
1102         sysdeps/mach/i386/sysdep.h: Change all definitions of movl/mov to
1103         MOVE(s, d), for insn sets with d,s instead of s,d move insns.
1104         * sysdeps/unix/__getegid.S, sysdeps/unix/__geteuid.S,
1105         sysdeps/unix/__getppid.S: Use that in each of these.
1106
1107 Wed Apr 29 17:58:21 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1108
1109         * io/getwd.c: Default PATH_MAX if not defined.
1110
1111         * sysdeps/unix/getlogin.c, sysdeps/posix/ttyname.c: Make buffers
1112         only as big as needed, avoiding PATH_MAX.
1113
1114         * sysdeps/posix/getcwd.c: Dynamically extend the buffer as we go,
1115         not afterwards; default PATH_MAX if not defined.
1116
1117         * posix/execvp.c: Dynamically allocate an array on the stack for the
1118         path name, rather than using a fixed-size array.
1119
1120         * pwd/putpwent.c: Print pw_dir field.
1121
1122         * sysdeps/posix/mktemp.c: If the pid has changed, update OLDPID.
1123
1124 Tue Apr 28 19:25:21 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1125
1126         * malloc/valloc.c [emacs]: #include "config.h"
1127
1128 Thu Apr 23 13:55:34 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1129
1130         * sysdeps/m68k/68881/__drem.c: Define __drem, not drem.
1131         Call ____drem, not __drem.
1132
1133         * malloc/realloc.c, malloc/malloc.c: Don't #define memcpy or memset
1134         if already #define'd.
1135
1136 Tue Apr 21 04:16:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1137
1138         * malloc/Makefile: Moved include ../Rules after malloc.tar rules.
1139         They need $(routines), which Rules clears.
1140
1141         * malloc/realloc.c (MIN): Renamed to min.  Conflicted with HPUX
1142         system header files.
1143
1144         * Makefile (sysdep-subdirs): Is not called +sysdep-subdirs.
1145
1146         * configure: Don't try to create config.status if . is not writable.
1147
1148         * sysdeps/generic/printf_fp.c: Fixed padding loop condition for zero
1149         case.
1150
1151         * math/math.h: Don't #include <float.h> for HUGE_VAL.
1152         Instead, #include <huge_val.h>.
1153         * stdlib/stdlib.h: Ditto.
1154         * math/math.h [__USE_GNU]: #include <nan.h> to get NAN value.
1155         * float.h: Removed.
1156         * Makefile (headers): Removed float.h and fl.h.
1157         * sysdeps/ieee754/huge_val.h, sysdeps/ieee754/nan.h,
1158         sysdeps/stub/huge_val.h, sysdeps/stub/nan.h, sysdeps/vax/huge_val.h:
1159         Created (from old fl.h files).
1160
1161         * math/bsd/common_source/pow.c (pow_p): When checking if Y is an
1162         integer, don't let it overflow a `long int'.
1163         (pow): Check for NaN with __isnan, not (X != X).
1164
1165 Tue Apr 21 02:26:19 1992  Brendan Kehoe  (brendan@cs.widener.edu)
1166
1167         * sysdeps/unix/bsd/sun/sun4/__pipe.S,
1168         sysdeps/unix/bsd/vax/__wait3.S, sysdeps/unix/bsd/hp9k3bsd/__wait3.S:
1169         Use the ENTRY macro for each beginning
1170
1171         * sysdeps/unix/sysdep.h, sysdeps/unix/bsd/hp9k3bsd/sysdep.h,
1172         sysdeps/unix/bsd/sun/sun3/sysdep.h,
1173         sysdeps/unix/bsd/sun/sun4/sysdep.h, sysdeps/unix/bsd/vax/sysdep.h,
1174         sysdeps/unix/i386/sysdep.h, sysdeps/unix/sysdep.h,
1175         sysdeps/unix/sysv/sysdep.h [SYSCALL, SYSCALL__, PSEUDO]: Modify to
1176         also receive the number of args the syscall takes; added for future
1177         ports that will require this information.
1178
1179         * sysdeps/unix/i386/__pipe.S, sysdeps/unix/bsd/vax/__pipe.S,
1180         sysdeps/unix/bsd/sun/sun4/__pipe.S,
1181         sysdeps/unix/bsd/hp9k3bsd/__pipe.S, sysdeps/unix/i386/__brk.S,
1182         sysdeps/unix/bsd/sun/__getdents.S, sysdeps/unix/i386/__fork.S,
1183         sysdeps/unix/bsd/vax/__fork.S, sysdeps/unix/bsd/sun/sun4/__fork.S,
1184         sysdeps/unix/__setgid.S, sysdeps/unix/__setuid.S,
1185         sysdeps/unix/bsd/sun/sun3/__vfork.S,
1186         sysdeps/unix/bsd/sun/sun4/__vfork.S,
1187         sysdeps/unix/bsd/vax/__wait.S, sysdeps/unix/bsd/hp9k3bsd/__wait.S,
1188         sysdeps/unix/i386/__wait.S,
1189         sysdeps/unix/bsd/sun/sunos4/sys_wait4.S,
1190         sysdeps/unix/bsd/sun/sun3/sethostid.S,
1191         sysdeps/unix/bsd/sun/sun4/sethostid.S,
1192         sysdeps/unix/bsd/__sigvec.S, sysdeps/unix/bsd/sun/sun4/__sigvec.S,
1193         sysdeps/unix/sysv/i386/__sigret.S, sysdeps/unix/__getppid.S,
1194         sysdeps/unix/bsd/__access.S, sysdeps/unix/sysv/signal.S,
1195         sysdeps/unix/__getegid.S, sysdeps/unix/__geteuid.S,
1196         sysdeps/unix/bsd/bsd_getgrp.S, sysdeps/unix/bsd/__dup2.S,
1197         sysdeps/unix/bsd/__fchmod.S, sysdeps/unix/bsd/__fchown.S,
1198         sysdeps/unix/bsd/__flock.S, sysdeps/unix/bsd/__fstat.S,
1199         sysdeps/unix/bsd/__lstat.S, sysdeps/unix/bsd/__mkdir.S,
1200         sysdeps/unix/bsd/__readlink.S, sysdeps/unix/bsd/__rmdir.S,
1201         sysdeps/unix/bsd/__stat.S, sysdeps/unix/bsd/__symlink.S,
1202         sysdeps/unix/bsd/4.4/chflags.S, sysdeps/unix/bsd/4.4/fchflags.S,
1203         sysdeps/unix/bsd/4.4/sstk.S, sysdeps/unix/bsd/4.4/setlogin.S,
1204         sysdeps/unix/bsd/__getdtsz.S, sysdeps/unix/bsd/__getpgsz.S,
1205         sysdeps/unix/bsd/__setregid.S, sysdeps/unix/bsd/__setreuid.S,
1206         sysdeps/unix/bsd/__utimes.S, sysdeps/unix/bsd/ftruncate.S,
1207         sysdeps/unix/bsd/readv.S, sysdeps/unix/bsd/truncate.S,
1208         sysdeps/unix/bsd/vhangup.S, sysdeps/unix/bsd/writev.S,
1209         sysdeps/unix/bsd/__getpgrp.S, sysdeps/unix/bsd/__setpgrp.S,
1210         sysdeps/unix/bsd/__getrusag.S, sysdeps/unix/bsd/getprio.S,
1211         sysdeps/unix/bsd/getrlimit.S, sysdeps/unix/bsd/setprio.S,
1212         sysdeps/unix/bsd/__sigblock.S,
1213         sysdeps/unix/bsd/__sigpause.S, sysdeps/unix/bsd/__sigstmsk.S,
1214         sysdeps/unix/bsd/killpg.S, sysdeps/unix/bsd/sigstack.S,
1215         sysdeps/unix/bsd/rename.S, sysdeps/unix/bsd/__adjtime.S,
1216         sysdeps/unix/bsd/__setitmr.S, sysdeps/unix/bsd/__settod.S,
1217         sysdeps/unix/sysv/sys_stat.S, sysdeps/unix/sysv/sys_fstat.S,
1218         sysdeps/unix/sysv/__utssys.S, sysdeps/unix/sysv/utime.S,
1219         sysdeps/unix/sysv/__times.S, sysdeps/unix/sysv/i386/time.S,
1220         sysdeps/unix/sysv/alarm.S, sysdeps/unix/sysv/pause.S,
1221         sysdeps/unix/sysv/ulimit.S, sysdeps/unix/__chdir.S,
1222         sysdeps/unix/__chmod.S, sysdeps/unix/__chown.S,
1223         sysdeps/unix/__close.S, sysdeps/unix/__dup.S,
1224         sysdeps/unix/__fcntl.S, sysdeps/unix/__link.S,
1225         sysdeps/unix/__lseek.S, sysdeps/unix/__open.S,
1226         sysdeps/unix/__read.S, sysdeps/unix/__umask.S,
1227         sysdeps/unix/__unlink.S, sysdeps/unix/__write.S,
1228         sysdeps/unix/__ioctl.S, sysdeps/unix/__mknod.S,
1229         sysdeps/unix/acct.S, sysdeps/unix/chroot.S, sysdeps/unix/fsync.S,
1230         sysdeps/unix/ptrace.S, sysdeps/unix/swapon.S, sysdeps/unix/sync.S,
1231         sysdeps/unix/__execve.S, sysdeps/unix/__getgid.S,
1232         sysdeps/unix/__getpid.S, sysdeps/unix/__getuid.S,
1233         sysdeps/unix/_exit.S, sysdeps/unix/__kill.S,
1234         sysdeps/unix/inet/__gethstnm.S, sysdeps/unix/inet/__select.S,
1235         sysdeps/unix/inet/gethostid.S, sysdeps/unix/inet/sethostid.S,
1236         sysdeps/unix/inet/sethostnam.S, sysdeps/unix/inet/accept.S,
1237         sysdeps/unix/inet/bind.S, sysdeps/unix/inet/connect.S,
1238         sysdeps/unix/inet/getpeernam.S, sysdeps/unix/inet/getsocknam.S,
1239         sysdeps/unix/inet/getsockopt.S, sysdeps/unix/inet/listen.S,
1240         sysdeps/unix/inet/recv.S, sysdeps/unix/inet/recvfrom.S,
1241         sysdeps/unix/inet/recvmsg.S, sysdeps/unix/inet/send.S,
1242         sysdeps/unix/inet/sendmsg.S, sysdeps/unix/inet/sendto.S,
1243         sysdeps/unix/bsd/vax/__wait3.S, sysdeps/unix/bsd/hp9k3bsd/__wait3.S,
1244         sysdeps/unix/inet/setsockopt.S, sysdeps/unix/inet/shutdown.S,
1245         sysdeps/unix/inet/socket.S, sysdeps/unix/inet/socketpair.S: Added the
1246         argument count to every use of SYSCALL, SYSCALL__ or PSEUDO.
1247
1248 Tue Apr 21 00:06:52 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1249
1250         * limits.h [__GNUC__ >= 2]: Use #include_next to get GCC's <limits.h>.
1251
1252         * sysdeps/posix/sysd-stdio.c (__stdio_read, __stdio_write,
1253         __stdio_errmsg) [EINTR && EINTR_REPEAT]: Do EINTR looping.
1254         * sysdeps/unix/sysv/sysd-stdio.c: New.
1255         #define EINTR_REPEAT and #include posix/sysd-stdio.c.
1256
1257         * stdlib/mbstowcs.c: Copy non-MB chars verbatim, instead of error.
1258
1259         * sysdeps/generic/printf_fp.c: Note sign of exponent and take its
1260         absolute value for arithmetic.
1261
1262         * stdlib/testmb.c: New.
1263         * stdlib/Makefile (tests): Added testmb.
1264
1265         * sysdeps/generic/frexp.c [NAN]: If VALUE is infinite, return NAN.
1266         If VALUE is NAN, set errno to EDOM and return VALUE.
1267         If VALUE is zero, return it.  In all special cases, clear *EXP.
1268
1269         * stdio/test-fseek.c: New.
1270         * stdio/Makefile (tests): Added test-fseek.
1271
1272         * stdio/fseek.c: Position returned from io_funcs.seek is absolute,
1273         not EOF-relative when using SEEK_END.
1274
1275         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Set errno to
1276         EEXIST when we run out.
1277
1278         * sysdeps/posix/sysd-stdio.c (exists): Use stat rather than open, so
1279         we don't need read access.
1280
1281         * sysdeps/posix/mk-stdiolim.c (TMP_NAM): is 62 ** 3.
1282
1283 Mon Apr 20 23:08:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1284
1285         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Don't return
1286         the same name twice when the file doesn't exist.
1287
1288         * stdio/vfprintf.c (%c format): Tests of LEFT for padding were
1289         reversed.
1290
1291         * sysdeps/generic/printf_fp.c: If we have written some fractional
1292         digits, write zeros up to the precision.
1293
1294         * sysdeps/unix/bsd/sun/sun4/start.c: Don't clear the FP until just
1295         before calling main.
1296
1297 Wed Apr 15 01:43:38 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1298
1299         * Makerules (libc.a): Don't depend on libc.a(...); only on lib.
1300         (lib-noranlib): Depend on libobjs.
1301         (+libobjs): New var.
1302         (libobjs): Depend on $(+libobjs).
1303         * Rules (others, tests): Don't depend on lib; on libc.a instead.
1304
1305         * locale/C-numeric.c: grouping is "".
1306
1307         * locale/localeconv.c: Set int_frac_digits.
1308
1309         * locale/setlocale.c: Accept "" to mean "C".
1310
1311         * sysdeps/unix/sysv/r4/bsddir.h: Protect against multiple inclusion.
1312
1313         * sysdeps/unix/sysv/r4/Dist: Created; includes bsddir.h and
1314         sys_getdents.S.
1315
1316         * sysdeps/unix/i386/sysdep.h [! HAVE_SYSCALLS]: Don't #inlcude
1317         unix/sysdep.h.
1318         * sysdeps/unix/sysv/sysdep.h, sysdeps/unix/sysdep.h
1319         (HAVE_SYSCALLS): #define.
1320         * sysdeps/unix/sysv/i386/sysdep.h: #include unix/sysv/sysdep.h, then
1321         unix/i386/sysdep.h.
1322
1323         * sysdeps/unix/sysv/Makefile: Fixed typos.
1324
1325         * sysdeps/unix/sysv/Dist: Add utmp.h.
1326
1327         * sysdeps/posix/Makefile (mk-stdiolim): Explicit commands, to
1328         compile it without normal gcc flags.
1329
1330         * configure (i386-sysv): unix/i386/sysv -> unix/sysv/i386.
1331         (i386-sysvr4): New configuration.
1332
1333 Tue Apr 14 16:47:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1334
1335         * setjmp/setjmp.h: Put sigjmp_buf before typedef for jmp_buf, which
1336         needs sigjmp_buf #ifdef __FAVOR_BSD.
1337
1338         * posix/unistd.h (getgroups): Don't #define.
1339
1340         * sysdeps/stub/ptrace.c: #include <stdarg.h>; declare AP in fn.
1341         Avoid "PTR a, b".
1342
1343         * sysdeps/posix/sigintr.c: New; sets global sigset_t `_sigintr'.
1344         * sysdeps/posix/signal.c: Use SA_RESTART unless SIG is in _sigintr.
1345         * signal/sigintr.c: Removed.
1346         * sysdeps/stub/sigintr.c: New.
1347
1348         * sysdeps/posix/sysd-stdio.c (__stdio_read, __stdio_write,
1349         __stdio_errmsg): Don't treat EINTR specially.
1350
1351         * sysdeps/unix/Makefile (sys/param.h): Touch the target after mv'ing
1352         from the tmp file, so the file is newer than the directory.
1353
1354         * sysdeps/generic/strcasecmp.c: Simplified loop; fixed returning
1355         wrong value on equal comparison.
1356
1357         * stdlib/bsearch.c: Don't lose if NMEMB is zero.
1358
1359         * sysdeps/unix/bsd/__times.c (timeval_to_clock_t): Microseconds are
1360         not milliseconds.
1361
1362 Mon Apr 13 18:25:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1363
1364         * sysdeps/generic/strncase.c: New.
1365         * string/Makefile (routines): Add strncase.
1366         * string/string.h [__USE_GNU]: Declare strncasecmp.
1367
1368         * time/__tzset.c: Correctly default DST offset to one hour later
1369         than standard offset.
1370
1371         * time/__tzset.c (tz_rule): Made `name' not be const.
1372
1373         * string/tester.c [! HAVE_GNU_LD]: #define _sys_nerr and
1374         _sys_errlist to sys_nerr and sys_errlist.
1375
1376         * stdio/test_rdwr.c: Fixed printf call missing arg.
1377
1378         * posix/getgrps.c: #undef getgroups first.
1379
1380         * misc/brk.c: Declare __brk.
1381         * misc/sbrk.c: Declare __sbrk.
1382         * misc/setreuid.c, misc/setregid.c: #include <unistd.h>.
1383         Fixed types in DEFUN in fn alias.
1384         * misc/getpgsz.c, misc/getdtsz.c, misc/gethstnm.c: #include <unistd.h>.
1385         * misc/getdents.c: Declare __getdirentries.
1386         * misc/mknod.c: #include <sys/stat.h>.
1387         * posix/unistd.h: Declare many __ versions of things.
1388         [__OPTIMIZE__]: Many #define foo(...) -> __foo(...).
1389
1390         * io/fcntl.c: #include <sys/file.h>.
1391
1392         * sysdeps/unix/Makefile: New hair to install other headers the
1393         system sys/param.h #includes.
1394
1395         * time/__tzset.c (__tzfile_default): Declare.
1396
1397         * time/sys/time.h (timezone): #define to __timezone.
1398
1399         * sysdeps/ieee754/printf_fp.c: #undef outchar before #including
1400         generic/printf_fp.c.
1401
1402         * stdio/__vfscanf.c: For %c, don't lose the first char.
1403         For %s, properly consume the last char when we hit max width.
1404
1405         * posix/gnu/types.h (__dev_t, __mode_t): Made int rather than short.
1406         * io/gnu/stat.h (struct stat): Made st_dev, st_rdev, and st_mode use
1407         {,unsigned} short int instead of __dev_t/__mode_t.
1408
1409 Fri Apr 10 13:55:07 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
1410
1411         * setjmp/setjmp.h: Rearranged so that jmp_buf is defined before any
1412         prototypes are used.
1413         (longjmp): Declare with jmp_buf, not __jmp_buf, to win in BSD mode.
1414         (_longjmp): #define as __longjmp, not longjmp.
1415         (_longjmp, _setjmp): Take jmp_buf args, not __jmp_buf.
1416         Call sig{set,long}jmp with SAVEMASK==0, rather than __{set,long}jmp.
1417         * _longjmp.c, _setjmp.c: #define _BSD_SOURCE before all else.
1418         (_setjmp): Call sigsetjmp, not __setjmp.
1419
1420         * io/sys/stat.h (__fchmod, __mknod): Fixed arg types.
1421
1422         * io/fchmod.c: Fixed typo.
1423
1424         * time/Makefile (\n): Renamed to nl.
1425
1426         * Makerules (native-compile): New variable.
1427         * sysdeps/generic/Makefile, sysdeps/unix/Makefile,
1428         sysdeps/unix/bsd/Makefile: Use it in cmds for generator progs.
1429
1430         * sysdeps/unix/sysv/sysv_termio.h (_SYSV_TAB3): New; same as XTABS.
1431
1432         * sysdeps/unix/sysv/setrlimit.c: Removed extern decl of etext (unused).
1433
1434         * sysdeps/unix/sysv/__tcgetatr.c, sysdeps/unix/sysv/tcdrain.c,
1435         sysdeps/unix/sysv/tcflow.c, sysdeps/unix/sysv/tcflush.c,
1436         sysdeps/unix/sysv/tcgetpgrp.c, sysdeps/unix/sysv/tcsendbrk.c,
1437         sysdeps/unix/sysv/tcsetattr.c, sysdeps/unix/sysv/tcsetpgrp.c:
1438         #include <sys/ioctl.h>
1439
1440         * sysdeps/unix/sysv/__rmdir.c, sysdeps/unix/sysv/__mkdir.c,
1441         sysdeps/posix/writev.c: #include <string.h>.
1442
1443         * sysdeps/posix/clock.c: Removed unused variable.
1444
1445 Thu Apr  9 01:49:39 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1446
1447         * Version 1.03.
1448
1449         * grp/testgrp.c: Print members correctly.
1450
1451         * stdio/test-popen.c: Pipe to cat rather than more, and then check
1452         output file.  Better error checking.
1453
1454         * setjmp/tst-setjmp.c: Notice if we didn't jump the right number of
1455         times.
1456
1457         * signal/tst-signal.c, string/testcopy.c, stdio/bug[12345].c: Print
1458         msgs that more clearly say whether we won or lost.  Better error
1459         checking.
1460
1461         * sysdeps/generic/printf_fp.c: Completely rewritten from scratch.
1462         Now uses Steele & White's "Dragon4" algorithm to do things right.
1463
1464 Wed Apr  8 01:08:41 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1465
1466         * sysdeps/i386/__longjmp.c: Test for VAL==0 before clobbering regs.
1467         Wire V to AX, rather than DX.  Use "a" constraint on unused operand
1468         in jmp asm, rather than global reg var, to force value into AX.
1469
1470 Tue Apr  7 17:51:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1471
1472         * posix/Makefile (headers): Added tar.h.
1473         * posix/tar.h: New file, from djm.
1474
1475 Mon Apr  6 01:39:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1476
1477         * time/tzfile.c (struct ttinfo): Made `isstd' member be unsigned
1478         char instead of 1-bit bitfield.
1479
1480         * time/tzfile.c (__tzfile_default): New function.
1481         * time/__tzset.c: Call it when no rule is given.
1482         * time/Makefile: Install posixrules just like localtime.
1483         * time/Makeconfig (posixrules, posixrules-file): New config vars.
1484
1485         * time/time.h (struct tm): Add `tz_gmtoff', `tz_zone'.
1486         * time/localtime.c: Set those members.
1487
1488         * sysdeps/ieee754/__drem.c: XOR the signs of X and the result,
1489         rather than setting the sign of the result to that of X.
1490
1491         * sysdeps/unix/bsd/make-local_lim.c: Don't do MAXUPRC or MAXLINK if
1492         <sys/param.h> didn't define them.
1493
1494         * sysdeps/posix/__sigvec.c: Fixed braino: SA_ONSTACK should be
1495         SA_RESTART.
1496
1497         * pwd/getpw.c, pwd/putpwent.c: Use %u fmt for uid and gid (which are
1498         unsigned).
1499
1500         * time/time.h (tzname, daylight, timezone): Don't #define to __.
1501         * time/tzfile.c, time/__tzset.c, time/localtime.c, time/strftime.c
1502         [! HAVE_GNU_LD]: #define __ to plain for above three vars.
1503
1504 Thu Apr  2 03:39:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1505
1506         * locale/Makefile (routines): Add localeconv.
1507
1508         * sysdeps/i386/jmp_buf.h: Removed `__dx' elt; replaced with `__pc'.
1509         __bp and __sp are PTRs.
1510         * sysdeps/i386/setjmp.c: Rewritten.  Use global reg vars to save regs.
1511         Use arithmetic on address of arg to get caller's PC, BP, and SP.
1512         * sysdeps/i386/__longjmp.c: Rewritten.  Use global reg vars to
1513         restore regs.
1514
1515 Wed Apr  1 23:13:57 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1516
1517         * Moved sysdeps/unix/i386/{bsd,sysv} to
1518         sysdeps/unix/{bsd,sysv}/i386, and updated Implies files.
1519         Implied dirs come before parents, and we want unix/i386 before
1520         unix/{sysv,bsd}.
1521
1522         * io/chown.c: Fixed types in fn alias.
1523
1524 Wed Apr  1 14:18:58 1992  Torbjorn Granlund  (tege@mole.gnu.ai.mit.edu)
1525
1526         * sysdeps/generic/memcmp.c
1527         (memcmp_common_alignment, memcmp_not_common_alignment):
1528         Move back do0 label to its original position, after the loop.
1529         Add comment before do0 labels.
1530         * sysdeps/generic/wordcopy.c (_wordcopy_fwd_aligned): Indentation.
1531         Add comment before do0 labels.
1532
1533 Wed Apr  1 02:16:19 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1534
1535         * sysdeps/unix/sysv/Makefile [subdir==misc]: Generate sysdep header
1536         termio.h from sysv_termio.h.
1537
1538         * sysdeps/generic/make_siglist.c: New file.
1539         * sysdeps/generic/signame.[ch]: Symlink'd from /gd/gnu/lib.
1540         * sysdeps/generic/Makefile: Generate siglist.c with above.
1541         * sysdeps/generic/Dist: Add make_siglist.c, signame.[ch].
1542
1543         * sysdeps/unix/bsd/Makefile (before-compile): Define properly as a
1544         variable.
1545
1546         * sysdeps/unix/bsd/make_siglist.c: Generate #define _sys_siglist
1547         sys_siglist #ifndef HAVE_GNU_LD.
1548         * stdio/psignal.h, string/strsignal.h [! HAVE_GNU_LD]:
1549         #define _sys_siglist sys_siglist.
1550
1551         * sysdeps/unix/sysv/signum.h (SIGCHLD): Changed #.
1552         (SIGUSR1, SIGUSR2, SIGPWR): Added.
1553         (_NSIG): Updated.
1554
1555         * sysdeps/unix/sysv/utmp.h: New.
1556
1557         * sysdeps/unix/bsd/getlogin.c: Moved to sysdeps/unix/getlogin.c.
1558
1559         * sysdeps/unix/sysv/r4/bsddir.h, sysdeps/unix/sysv/r4/readdir.c,
1560         sysdeps/unix/sysv/r4/closedir.c, sysdeps/unix/sysv/r4/rewinddir.c,
1561         sysdeps/unix/sysv/r4/opendir.c, sysdeps/unix/sysv/r4/sys_getdents.S,
1562         sysdeps/unix/sysv/r4/Makefile: New.
1563
1564         * sysdeps/unix/sysv/tcflow.c: New.
1565
1566         * sysdeps/unix/sysv/sysv_termio.h: Add lots of bits; VMIN and VTIME
1567         elts of c_cc.
1568         * sysdeps/unix/sysv/__tcgetatr.c, sysdeps/unix/sysv/tcsetattr.c: Use
1569         VMIN and VTIME elts from sysv termio struct.
1570
1571         * sysdeps/unix/sysv/__gethstnm.c: New.
1572
1573         * sysdeps/unix/sysv/local_lim.h (NGROUPS_MAX): Define as 0.
1574
1575         * sysdeps/unix/sysv/fcntlbits.h (struct __flock): Changed l_pid to
1576         short; added l_sysid.
1577
1578         * sysdeps/unix/sysv/__sigact.c: New.
1579
1580         * sysdeps/unix/sysv/r4/__access.S: New; just #include bsd/__access.S.
1581
1582         * sysdeps/unix/sysv/Makefile: Fixed typo: sysdep-routines =>
1583         sysdep_routines.
1584
1585         * sysdeps/unix/i386/sysv/__sigret.S,
1586         sysdeps/unix/i386/sysv/signal.S: New.
1587
1588         * signal/Makefile (routines): Added sigret, __sigret.
1589         * signal/sigret.c: New; fn alias to __sigreturn.
1590         * sysdeps/stub/__sigret.c: New.
1591
1592         * sysdeps/unix/i386/sysdep.h (PSEUDO): Use hard-coded numbers for
1593         lcalls insn--GAS bug.
1594
1595         * sysdeps/unix/bsd/readdir.c (D_NAMLEN): New macro; define if not
1596         already defined, to return length of a direct elt.
1597
1598         * sysdeps/stub/__getgrps.c: #include <limits.h>; if NGROUPS_MAX is
1599         defined as 0, always return 0, and no stub warning.
1600
1601         * sysdeps/posix/system.c: Don't fail if sigprocmask fails with ENOSYS.
1602
1603         * sysdeps/posix/sysd-stdio.c, sysdeps/stub/sysd-stdio.c: Doc fix.
1604
1605         * sysdeps/posix/__gettod.c: Use CONST where appropriate and not
1606         where not.
1607
1608         * sysdeps/i386/memchr.c, sysdeps/i386/strlen.c: Changed `repnz' to
1609         `repne'.
1610
1611         * stdio/fgets.c: Notice returned char from __fillbf in length calc.
1612
1613         * misc/sys/ioctl.h: Always define `struct sgttyb'.
1614
1615         * stdlib/alloca.h: #undef __alloca, too.
1616         Always #define alloca == __alloca.
1617
1618         * signal/signal.h (__kill): Fixed type in decl.
1619         * posix/unistd.h (setgid): Fixed type in decl.
1620         * posix/setpgid.c, posix/setgid.c, signal/kill.c, posix/fork.c,
1621           posix/vfork.c, posix/getpid.c, posix/getppid.c, posix/setsid.c:
1622         Fixed DEFUNs in fn aliases.
1623         * pwd/getpw.c: Fixed type in defn.
1624
1625 Mon Mar 30 17:06:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1626
1627         * sysdeps/generic/printf_fp.c: In %f, decrement PREC for each
1628         leading zero in the fractional part.
1629
1630         * sysdeps/ieee754/ieee754.h: Made all elts unsigned.
1631         * sysdeps/ieee754/__drem.c: Return NAN if Y is zero.
1632         * sysdeps/ieee754/ldexp.c: Rewritten.
1633         * sysdeps/ieee754/__logb.c: Handle denormalized numbers.
1634
1635         * posix/sys/wait.h: #include <endian.h>
1636
1637         * sysdeps/ieee754/fl.h: Fixed NAN and HUGE_VAL bit patterns; added
1638         code for little endian.
1639
1640         * sysdeps/generic/frexp.c: Add one to exponent to give the result a
1641         digit before the point.  Use negative exponent rather than division.
1642
1643         * math/__finite.c: Return zero for NaN.
1644         * math/math.h: Doc fix for same.
1645
1646         * stdio/__getdelim.c: Correctly notice when the buffer is full.
1647
1648         * sysdeps/unix/bsd/opendir.c: Pass arg to fcntl F_SETFD by value,
1649         not by reference.
1650
1651         * time/__tzset.c: Correct default rule: M4.1.0,M10.5.0.
1652
1653         * time/__tzset.c: Move ptr past Mfoobar syntax after parsing it.
1654
1655         * time/__tzset.c: Properly parse the DST offset (or its absence).
1656
1657         * sysdeps/unix/make_errlist.c: Write an #ifdef HAVE_GNU_LD, rather
1658         than testing it when compiling make_errlist.
1659
1660         * time/tzfile.c (__tzfile_read): Convert transitions to host byte
1661         order.
1662
1663         * Makeconfig (localtime-file): New config var.
1664         * time/Makefile (tzfile.o, zic.o): Use it for TZDEFAULT.
1665
1666         * stdio/Makefile (tests): Added tstgetline.
1667         * stdio/tstgetline.c: New; test for getline.
1668
1669         * Makeconfig (sysincludedir): Define and document.
1670         * sysdeps/unix/snarf-ioctls, sysdeps/unix/Makefile: Use
1671         ${sysincludedirs} in place of hard-coded /usr/include.
1672
1673 Fri Mar 27 13:33:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1674
1675         * string/Makefile (headers): Added endian.h.
1676
1677         * sysdeps/ieee754/__drem.c: Fixed typo which made X and Y be the
1678         same location.
1679
1680         * sysdeps/generic/__lstat.c: #include <gnu-stabs.h>
1681
1682         * stdio/internals.c (flushbuf): Increment target as well as offset
1683         when we write out the single char.
1684
1685         * grp/Makefile (tests): Add testgrp (formerly bug1).
1686
1687 Thu Mar 26 14:59:45 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1688
1689         * stdio/fread.c: Don't read directly when we need to seek first.
1690
1691 Wed Mar 25 02:34:49 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1692
1693         * sysdeps/unix/bsd/alarm.c: There are 1000000 usecs in a sec.
1694
1695         * sysdeps/unix/bsd/sun/ptrace.c: Removed.
1696
1697         * stdio/fgets.c: For unbuffered stream, don't return EOF after
1698         reading some data.
1699         Added missing parens.
1700
1701 Tue Mar 24 18:31:07 1992  Torbjorn Granlund  (tege@hal)
1702
1703         * sysdeps/i386/memset.c: Move code that puts C in all four nibbles of
1704         X inside `if' statement.  Include sysdeps/i386/memset.c (not bzero).
1705         * sysdeps/i386/memchr.c: Rewrite to be faster.  Include
1706         sysdeps/generic/memchr.c (not bzero).
1707
1708 Tue Mar 24 01:21:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1709
1710         * io/Makefile (routines): Add getdirname.
1711         * posix/unistd.h [__USE_GNU]: Declare getdirname.
1712         * io/getdirname.c: New.
1713
1714         * Makeconfig (stddef.h): Define and document.
1715         * Makefile (headers): Use $(stddef.h) for stddef.h.
1716
1717 Mon Mar 23 18:04:56 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
1718
1719         * sysdeps/posix/mktemp.c: Do PID % 100000 for 5 digits.
1720
1721         * time/Makefile (tzfiles): Remove pacificnew; it won't compile.
1722         (distribute): Put it here instead.
1723
1724         * stdio/printf-prs.c [HAVE_LONGLONG]: Fixed missed var name change
1725         from code snarf.
1726
1727         * stdio/fgets.c: Return NULL when we get EOF.
1728
1729         * posix/execvp.c, sysdeps/posix/putenv.c [! HAVE_GNU_LD]: Define
1730         __environ as environ.
1731
1732         * sysdeps/unix/bsd/Makefile, sysdeps/unix/Makefile: In rules to
1733         compile generator programs, cd into $(objdir) first to avoid
1734         braindead cc clobbering foo.o in cwdir.
1735
1736         * sysdeps/m68k/setjmp.c: Deref fpregs array in asm.
1737
1738         * time/Makefile (zones-%): Fixed generated rules.
1739
1740         * math/Makefile (libm.a): Use r cmd to ar.
1741
1742         * time/Makefile (zones-%): In echo commands, put \\\\n outside of
1743         quotes instead of \\n inside single quotes.  SysV echo is braindead.
1744
1745         * io/fchown.c, io/fchmod.c, misc/bsd-compat.c: Fixed DEFUNs in fn
1746         aliases.
1747
1748         * time/Makefile (echo-zonenames): New target; tell user what all
1749         timezones defined in all zone files are.
1750         * Makeconfig (localtime): Comment about using above.
1751
1752 Sun Mar 22 18:34:02 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1753
1754         * time/australasia (NZ): Updated rules.
1755
1756 Sat Mar 21 01:00:49 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1757
1758         * stdio/printf-prs.c [__GNUC__]: Define HAVE_LONGLONG.
1759
1760 Fri Mar 20 00:35:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1761
1762         * Version 1.02.
1763
1764         * stdio/Makefile (routines): Add __getdelim, __getline.
1765
1766         * sysdeps/unix/i386/start.c: No ../ in #include file name.
1767
1768         * sysdeps/posix/sysd-stdio.c, sysdeps/stub/sysd-stdio.c
1769         (__stdio_seek): Doc fix.
1770
1771         * sysdeps/posix/mk-stdiolim.c: Add one to L_tmpnam, for the null
1772         terminator.
1773
1774         * sysdeps/posix/__dup2.c: Use an extra fcntl call to check that the
1775         first fd is valid.  Close the second fd before doing the dup.
1776
1777         * pwd/pwdread.c, grp/grpread.c: Use __getline.  Ignore lines
1778         beginning with #.
1779
1780         * Makeconfig (objdir): If $(ARCH) starts with a slash, don't prepend
1781         $(..).
1782
1783 Thu Mar 19 21:36:57 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1784
1785         * Makefile (install-lib): Add Mcrt1.o.
1786         (Mcrt1.o): Create empty file.
1787
1788 Wed Mar 18 16:00:18 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1789
1790         * Makeconfig (+link): Use $(libdir) for gnulib.
1791
1792 Tue Mar 17 20:12:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1793
1794         * math/bsd/common_source/mathimpl.h: Include <endian.h>.
1795         [__LITTLE_ENDIAN]: #define national.
1796
1797         * stdio/__vfscanf.c: EOF at end of string is not
1798         an error.
1799
1800         * stdio/tstscanf.c: Added new sscanf test.
1801
1802         * stdio/vfprintf.c: For %#x, print 0x after padding 0s, not before.
1803
1804         * stdio/fputs.c: Reverse size args to fwrite and test for returning
1805         LEN, rather than 1, so 0-length wins.
1806
1807         * io/gnu/fcntl.h: Moved to sysdeps/unix/bsd/fcntlbits.h.
1808         * io/Makefile (headers), io/fcntl.h: gnu/fcntl.h -> fcntlbits.h.
1809         * sysdeps/stub/fcntlbits.h, sysdeps/unix/sysv/fcntlbits.h: New.
1810
1811         * stdio/fopen.c (__getmode): Don't fall through in switch after 'a'
1812         case.
1813
1814         * locale/C-ctype_ct.c (__ctype_b_C): Use symbolic constants.
1815         9..12 are not _NOgraph.
1816
1817 Tue Mar 17 19:04:01 1992  Torbjorn Granlund  (tege@hal.gnu.ai.mit.edu)
1818
1819         * string/testcopy.c: Fix typo in comment.
1820
1821 Tue Mar 17 19:57:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1822
1823         * sysdeps/generic/strstr.c, string/string.h, string/tester.c
1824         (strstr): Arguments were reversed.
1825
1826 Tue Mar 17 18:52:39 1992  Torbjorn Granlund  (tege@hal.gnu.ai.mit.edu)
1827
1828         * sysdeps/i386/memcopy.h (WORD_COPY_BWD): Divide nbytes by 4.
1829         * sysdeps/i386/memchr.c: Rewrite.  Handle zero length correctly.
1830         Don't ask gcc to allocate eax to two regs.
1831
1832 Tue Mar 17 17:31:06 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1833
1834         * posix/unistd.h (getpagesize): Declare as size_t.
1835
1836         * Makeconfig (CC): Define unless origin is default.
1837
1838         * stdio/__getdelim.c: Be sure to leave room for the terminating null.
1839
1840         * string/testcopy.c: New version from tege.
1841
1842         * malloc/dist-README: Changed mailing list addr to bug-glibc.
1843
1844         * sysdeps/unix/bsd/__sigproc.c: Use right mask for SIG_UNBLOCK.
1845
1846         * Makefile, Rules (clean, mostlyclean): Put - before rm commands.
1847
1848 Tue Mar 17 11:14:40 1992  Torbjorn Granlund  (tege@hal.gnu.ai.mit.edu)
1849
1850         * sysdeps/rs6000/memcopy.h (BYTE_COPY_BWD): Assign __nbytes.
1851         * sysdeps/m68k/memcopy.h (WORD_COPY_BWD): Copy memory, not just
1852         pointers.  Clean up switch expression.
1853
1854 Mon Mar 16 05:09:23 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1855
1856         * posix/wordexp.c: New.
1857
1858         * time/tzfile.c (__tzfile_read): Don't die if some of the sections
1859         of the datafile are empty.
1860
1861         * stdio/getline.c, stdio/getdelim.c: Moved to
1862         __getline.c/__getdelim.c.
1863         New files with fn aliases.
1864         * stdio/stdio.h (__getline, __getdelim): Declare.
1865
1866         * time/Makefile (zonenames): Hair to find the names of zones
1867         described by $(tzfiles).
1868         (install-data): Install zoneinfo/$(zonenames).
1869         Rules to make zones from tzfiles.
1870         [localtime] (zoneinfo/localtime): Make from zoneinfo/$(localtime).
1871         * Makeconfig (localtime): New user-frobbable variable.
1872
1873 Sun Mar 15 00:01:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1874
1875         * Makerules (sysdep-Makefile): Do if ... else true to avoid bogus
1876         nonzero status.
1877
1878         * Makefile: Denewlinify +sysdep-subdirs after including sysd-dirs.
1879
1880         * sysdeps/vax/__infnan.c [!__GNUC__]: Error.
1881
1882         * zic.c, scheck.c, emkdir.c, ialloc.c, private.h, tzfile.h: Snarfed
1883         from localtime3 dist.
1884         * time/Makefile (others): Added zic.
1885         (distribute): Added private.h, emkdir.c, ialloc.c, scheck.c.
1886         (install): Defined: zic, zdump.
1887
1888         * Makeconfig (bindir): Define.
1889         * Makerules: Add rule to install $(install) in $(bindir).
1890         (+install): Include $(install) in $(bindir).
1891
1892         * sysdeps/unix/Makefile: Moved siglist.c rules to unix/bsd/Makefile.
1893         * sysdeps/unix/make_siglist.c: Moved to bsd/.
1894         * sysdeps/unix/Dist: Remove it.
1895         * sysdeps/unix/bsd/Dist: Add it.
1896
1897         * malloc/Makefile (malloc/gmalloc.c): Depend on headers and sources.
1898
1899         * sysdeps/unix/bsd/sun/sun4/__sigvec.S: Doc fix.
1900
1901         * sysdeps/stub/stty.c, sysdeps/stub/gtty.c: Include <stddef.h>.
1902
1903         * sysdeps/unix/sysv/__fstat.c: Include sysv_stat.h.
1904
1905         * misc/bsd-compat.c: Define _BSD_SOURCE rather than __FAVOR_BSD.
1906         (longjmp): Use function_alias_void.
1907
1908         * time/Makefile (tzfile.o): Compile with
1909         -DTZDIR='"$(datadir)/zoneinfo"'.d
1910
1911 Sat Mar 14 23:26:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
1912
1913         * Makeconfig (INSTALL_DATA, INSTALL_PROGRAM, INSTALL): Don't define
1914         if already defined.
1915
1916         * setjmp/longjmp.c: Use function_alias_void.
1917
1918         * gnu-stabs.h (function_alias_void): New macro.
1919
1920         * gnu-stabs.h [!HAVE_GNU_LD] (function_alias): Fixed not to loop.
1921
1922 Fri Mar 13 17:20:19 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
1923
1924         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Include null
1925         terminator in length calculation.
1926
1927         * stdio/fgets.c: Be sure to return NULL on error/eof for unbuffered
1928         stream.  If N==1, don't write the first char if !seen.
1929         When the buffer is empty, notice the effect of __fillbf after
1930         calling it, avoiding a (costly) no-op iteration.
1931         Don't return NULL for reading no chars; only for EOF or error.
1932         Don't write terminator at beginning of S if eof on first char.
1933
1934         * malloc/Makefile (libmcheck.a), Makefile (crt0.o): Remove target
1935         first; don't use -f to ln.
1936
1937         * posix/execl.c, posix/execv.c, sysdeps/posix/getenv.c,
1938         sysdeps/posix/system.c [HAVE_GNU_LD]: #define __environ environ
1939
1940         * posix/unistd.h [__OPTIMIZE__] (execv): Removed defn.  Can't know
1941         whether to use __environ or environ.
1942
1943         * io/fchown.c, io/chown.c, io/open.c, misc/select.c,
1944         signal/sigvec.c, time/adjtime.c: Fixed DEFUNs in fn aliases.
1945
1946         * time/__tzset.c: Don't dereference NULL if getenv returns it.
1947
1948 Thu Mar 12 16:01:33 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1949
1950         * sysdeps/ieee754/sqrt.c: Replaced undefined var ref `k' with constant.
1951
1952         * sysdeps/i386/__longjmp.c: #include <stdlib.h>.
1953
1954         * time/tzfile.c (__tzfile_compute): Use types[0] if TIMER falls
1955         between transitions[0] and transitions[1].
1956         Always set __tzname[INFO->isdst] to the name for INFO.
1957
1958         * sysdeps/i386/__longjmp.c: Changed register names for gcc; eax/%eax
1959         -> ax.
1960
1961         * sysdeps/unix/snarf-ioctls: Avoid infinite recursion.
1962
1963 Wed Mar 11 00:16:18 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1964
1965         * Version 1.01.
1966
1967         * Makefile (munch-init.c): Made $(objpfx)munch-init.c.
1968
1969         * signal/sigvec.c, signal/sigaction.c, stdio/vsscanf.c: Fixed DEFUNs
1970         in fn aliases.
1971
1972         * sysdeps/m68k/68881/68881-switch/switch.c: Merged vars have_fpu and
1973         test_fpu into one.
1974
1975         * sysdeps/mach/i386/start.c, sysdeps/vax/setjmp.c,
1976         sysdeps/vax/__longjmp.c, sysdeps/vax/__infnan.c,
1977         sysdeps/unix/start.c, sysdeps/unix/bsd/sun/sun4/sigtramp.c,
1978         sysdeps/unix/bsd/sun/sun4/start.c,
1979         sysdeps/unix/bsd/hp9k3bsd/start.c, sysdeps/sparc/sqrt.c,
1980         sysdeps/rs6000/ffs.c, sysdeps/m88k/ffs.c, sysdeps/m68k/setjmp.c,
1981         sysdeps/m68k/__longjmp.c, sysdeps/m68k/68881/printf_fp.c,
1982         sysdeps/m68k/68881/atan2.c, sysdeps/m68k/68881/__logb.c,
1983         sysdeps/m68k/68881/68881-switch/switch.c, sysdeps/m68k/ffs.c,
1984         sysdeps/i386/memset.c, sysdeps/i386/memchr.c, sysdeps/i386/ffs.c,
1985         sysdeps/i386/bzero.c, sysdeps/i386/__longjmp.c, sysdeps/am29k/ffs.c
1986         [! __GNUC__]: Either include the generic (or in some cases, ieee754)
1987         version, or do a #error.
1988
1989         * Rules: Null out `objects' at end to shrink environment some.
1990         (+objs): Define with := from $(objects).
1991         (clean): Use that instead of $(objects).
1992
1993         * sysdeps/i386/setjmp.c: Doubled % where it wanted to be literal.
1994
1995         * posix/getgrps.c, io/flock.c, io/mkdir.c, io/read.c, io/write.c,
1996         io/stat.c, misc/getdents.c, misc/mknod.c, misc/utimes.c: Fixed
1997         DEFUNs in fn aliases.
1998
1999         * sysdeps/unix/bsd/hp9k3bsd/sysdep.S: Use # instead of kludge cookie.
2000
2001         * posix/getegid.c: Fixed type in DEFUN.
2002
2003         * time/tzfile.c (__tzfile_compute): If TIMER is before any
2004         transition in the file, use the first non-DST type, rather than the
2005         type of the first transition in the file.
2006
2007 Tue Mar 10 20:01:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2008
2009         * configure: Take optional -nfp arg.
2010         (news, sun3, hp300): Prepend m68k/68881 unless -nfp is given.
2011         * sysdeps/unix/bsd/hp9k3bsd/Implies: Don't specify 68881.
2012
2013         * stdio/getdelim.c: When the buffer is empty, notice the effect of
2014         __fillbf after calling it, avoiding a (costly) no-op iteration.
2015
2016         * sysdeps/vax/__memccpy.c: Fixed comments.
2017
2018         * stdio/fmemopen.c: Set all fns and seen bit before we might call
2019         something that would care (fclose).
2020
2021         * configure (sun3, sun-3): Mean sun3os4, not sun3os3.
2022         (sun3os3): Use just unix/bsd/sun/sun3/os3.
2023         * sysdeps/unix/bsd/sun/sun3/os3: New directory.
2024         (sysdeps/unix/bsd/sun/sunos3/__wait.S): Moved to there.
2025         * sysdeps/unix/bsd/sun/sun3/sysdep.h: Fixed; took hp9k3bsd/sysdep.h
2026         and changed movel foo, d0 to pea foo for syscall no.
2027         * sysdeps/unix/bsd/sun/sun3/__brk.S: Fixed pea addr mode.
2028         * sysdeps/unix/bsd/sun/sun3/sethostid.S: errnos.h, not gnu/errno.h.
2029         Use .stabs directly, not gnu-stabs.h (which uses `asm').
2030         * sysdeps/m68k/setjmp.c: Changed asm for first moveml, so it works
2031         on sun3.
2032         * sysdeps/unix/bsd/sun/sun3/start.c: Removed ../ from #include path.
2033
2034 Sun Mar  8 16:33:33 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2035
2036         * misc/makefile (headers): Added stab.h, stab.def.
2037         * Many files: Changed __GNU_STAB__ to HAVE_GNU_LD.
2038
2039 Sat Mar  7 21:21:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2040
2041         * time/mktime.c: Normalize the struct values before checking for out
2042         of range values.
2043
2044 Fri Mar  6 11:43:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2045
2046         * sysdeps/ieee754/ldexp.c: New.
2047
2048         * stdio/internals.c (flushbuf): When priming the stream for writing,
2049         advance the target pos to account for chars gotten from the buffer.
2050
2051         * sysdeps/generic/Makefile: For math routines, don't filter out
2052         __finite.
2053
2054         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Fixed bugs.
2055
2056         * misc/Makefile (routines): Remove flock.
2057
2058         * stdlib/strtod.c: Fixed typo in checking for exponent overflow.
2059         Do set *ENDPTR on overflow or underflow.
2060
2061         * sysdeps/sparc/fl.h: Removed.  Should use ieee754 version.
2062
2063         * sysdeps/generic/Makefile: For math routines, don't filter out
2064         __copysign, __scalb, __drem and __logb; and don't add support.
2065
2066         * sysdeps/ieee754/__drem.c: New.
2067         * sysdeps/ieee754/sqrt.c: New.
2068         * sysdeps/stub/__drem.c: New.
2069         * sysdeps/stub/sqrt.c: New.
2070         * sysdeps/stub/__logb.c: New.
2071         * sysdeps/ieee754/__logb.c: New.
2072
2073         * sysdeps/ieee754/__infnan.c: Include <float.h> and use NAN macro
2074         rather than cooking one up by hand.
2075
2076         * sysdeps/unix/bsd/getlogin.c: Open /dev/tty, rather than using stdin.
2077         Make sure the name is always null-terminated.
2078
2079 Thu Mar  5 17:11:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2080
2081         * sysdeps/m68k/68881/__scalb.c: Removed.
2082         * sysdeps/m68k/68881/__math.h: Removed defn of __scalb.
2083         * math/math.h [__OPTIMIZE__]: Define __scalb to be ldexp.
2084         * math/__scalb.c: New; fn alias for ldexp.
2085
2086         * stdio/Makefile (tests): Added bug4 and bug5.
2087         * stdio/bug4.c, stdio/bug5.c: Test cases from reported bugs just fixed.
2088
2089         * stdio/internals.c (flushbuf): If nothing was written by the user,
2090         but there is previously gotten data, don't write anything out.
2091
2092         * stdio/internals.c (seek_to_target): Call __stdio_check_offset first.
2093
2094         * sysdeps/unix/sysv/sysv_termio.h: New file.
2095         * sysdeps/unix/sysv/Dist: Include it.
2096         * sysdeps/unix/sysv/tcsetattr.c, sysdeps/unix/sysv/tcsetpgrp.c,
2097         sysdeps/unix/sysv/tcsendbrk.c, sysdeps/unix/sysv/tcgetpgrp.c,
2098         sysdeps/unix/sysv/tcflush.c, sysdeps/unix/sysv/tcdrain.c,
2099         sysdeps/unix/sysv/__tcgetatr.c: New files.
2100
2101         * stdio/internals.c (fillbuf): Don't set the put_limit on writable
2102         streams.  Wait for first write attempt to prime them, so we don't
2103         flush the unchanged data unnecessarily.
2104
2105         * stdlib/exit.c: Look for NULL terminator on ld set, rather than
2106         using length word.
2107
2108         * Makefile (headers): Remove stdarg.h and varargs.h.
2109         Users will get them from GCC.
2110         * stdio/printf.h: Include <stdarg.h> to use va_list.
2111         * stdio/stdio.h: Don't include <stdarg.h> with magic.
2112         Use PTR in place of __va_list in prototypes.
2113         * stdio/__vsscanf.c, stdio/vscanf.c, stdio/vfscanf.c,
2114         stdio/__vfscanf.c, stdio/vdprintf.c, stdio/vasprintf.c,
2115         stdio/vsprintf.c, stdio/vsnprintf.c, stdio/vprintf.c,
2116         stdio/vfprintf.c: Fixed DEFUNs.
2117
2118         * sysdeps/ieee754/ieee754.h: New file; declares union ieee754_double.
2119         * sysdeps/ieee754/Dist: Add it.
2120         * sysdeps/ieee754/__copysign.c, sysdeps/ieee754/__infnan.c,
2121         sysdeps/ieee754/__isinf.c, sysdeps/ieee754/__isnan.c,
2122         sysdeps/ieee754/__printf_fp.c: Use it.
2123
2124         * sysdeps/unix/sysv/uname.c: New.
2125         * sysdeps/unix/sysv/__utssys.S: New.
2126         * sysdeps/unix/sysv/Makefile (routines): Add __utssys.
2127         * sysdeps/unix/sysv/Dist: Add __utssys.S.
2128
2129         * sysdeps/unix/sysv/__rmdir.c: New; runs `rmdir' shell command.
2130
2131         * sysdeps/unix/sysv/__mkdir.c: New; runs `mkdir' shell command.
2132
2133         * sysdeps/generic/__lstat.c: New; fn alias for __stat.
2134
2135         * sysdeps/unix/sysv/__gethostname.c: New; uses uname.
2136
2137         * sysdeps/unix/Makefile (sys/params.h): Protect with
2138         _GNU_SYS_PARAM_H, in case the system's file uses _SYS_PARAM_H itself.
2139
2140         * stdio/internals.c (__stdio_check_offset): Call init_stream to make
2141         sure we have fns.
2142
2143         * stdio/fread.c: Don't call __fillbf if the put_limit is past the
2144         beginning of the buffer; only if !seen, no buffer, or pushed back.
2145
2146         * stdio/fopen.c (__getmode): Set create bit for "a" mode.
2147
2148         * io/mkdir.c: #undef mkdir before fn alias.
2149
2150         * time/tzfile.c (__tzfile_compute): Don't decrement I if it's zero.
2151
2152         * Makefile (crt0.o): Use ln -f.
2153
2154         * math/Makefile (install): Install libm.a.
2155         (libm.a): Make an empty archive.
2156
2157 Wed Mar  4 19:54:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2158
2159         * README.template: Added note about long filenames in dist.
2160
2161         * io/Makefile (routines): flock -> __flock
2162         * flock.c: New file, fn alias.
2163         * sysdeps/unix/bsd/flock.S: Renamed to sysdeps/unix/bsd/__flock.S;
2164         made __flock.
2165         * sysdeps/mach/hurd/flock.c: Renamed to sysdeps/mach/hurd/__flock.c;
2166         made __flock.
2167         * sysdeps/stub/flock.c: Renamed to sysdeps/stub/__flock.c; made
2168         __flock.
2169
2170         * time/time.h (__isleap): Fixed; every 400th year is not a leap
2171         year, not every 1000th.
2172
2173         * stdio/internals.c (flushbuf): Increment the target position the
2174         amount the user wrote into the buffer, not the amount we wrote out
2175         to the file (which is greater if we read a block and modified it
2176         in the middle).
2177
2178         * stdio/internals.c (flushbuf): Set get_limit to the beginning of
2179         the buffer for all streams, except when we have just read in a block.
2180
2181 Sat Feb 29 15:56:22 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2182
2183         * posix/Makefile (others): Removed logname, id.
2184         * time/Makefile (others): Removed date.
2185
2186         * sysdeps/unix/bsd/sun/sun4/start.c: Make an alias called `start'
2187         (no leading underscore, so it can't conflict with C symbols) for
2188         `_start'.
2189
2190 Thu Feb 27 14:32:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2191
2192         * set-init.c: Look for NULL terminator on set.  ld is broken and
2193         doesn't set the length word correctly.
2194
2195         * setjmp/_longjmp.c, signal/sigaction.c, signal/sigvec.c,
2196         signal/ssignal.c, string/bcmp.c, time/setitmr.c, posix/execve.c,
2197         posix/getegid.c, posix/geteuid.c, posix/getgid.c, posix/getuid.c,
2198         posix/getgrps.c, posix/setuid.c, posix/wait3.c, posix/wait4.c,
2199         posix/waitpid.c, io/lseek.c, io/open.c, io/read.c, io/write.c,
2200         resource/getrusage.c, misc/getpgsz.c, misc/gethstnm.c,
2201         misc/select.c: Fixed DEFUNs in fn aliases.
2202
2203 Wed Feb 26 00:20:25 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2204
2205         * sysdeps/generic/Makefile (routines): Add asincos.
2206
2207         * time/tzfile.c (__tzfile_compute): Set __tzname properly, so isdst
2208         is the right index into it.
2209
2210 Tue Feb 25 01:42:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2211
2212         * sysdeps/unix/bsd/sun/sun4/sysdep.h (ENTRY): .align 2, not .align 4.
2213         This one is powers of two.
2214
2215         * time/__tzset.c: If TZ is :FILE, try FILE and if __tzfile_read
2216         fails, then use defaults.
2217
2218         * sysdeps/generic/Makefile (routines): Add sincos.
2219
2220         * sysdeps/posix/cuserid.c: Set the result to the empty string on
2221         failure.
2222
2223         * string/string.h, string/strings.h, sysdeps/i386/memchr.c: Fixed
2224         spelling in comment.
2225
2226         * string/makefile (tests): Include (uncomment) testcopy.  We do have
2227         papers for it from tege.
2228
2229         * malloc/dist-README: Fixed mailing list addr.
2230
2231         * resource/sys/vtimes.h (struct vtimes): Renamed vm_outblk to
2232         vm_oublk; fixed comment.
2233         * sysdeps/generic/vtimes.c: Renamed here too.
2234
2235         * Make-dist (README): Depend on version.c.
2236
2237 Tue Feb 18 18:14:50 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2238
2239         * Version 1.00.
2240
2241         * time/tzfile.c (__tzfile_compute): Fixed transition comparison.
2242
2243         * sysdeps/unix/bsd/sun/sun3/Makefile: Fixed typo.
2244
2245 Mon Feb 17 05:04:00 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2246
2247         * Version 0.6.
2248
2249         * Makefile (distribute): Add Q+A.
2250         * Q+A: New doc file from rich@cygnus.com.
2251
2252         * malloc/Makefile (distribute): Add mcheck-init.c.
2253
2254 Mon Feb 17 00:39:38 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2255
2256         * sysdeps/unix/sysv/utime.c: Removed.
2257         * sysdeps/unix/sysv/utime.S: New file.
2258
2259         * sysdeps/unix/sysv/signum.h: New file.
2260
2261         * sysdeps/unix/sysv/local_lim.h: New file.
2262
2263         * sysdeps/unix/sysv/sysv_stat.h: New file.
2264         * sysdeps/unix/sysv/__stat.c, sysdeps/unix/sysv/__fstat.c: New files.
2265         * sysdeps/unix/sysv/Makefile: New file.
2266         (+sysdep-routines): Define to sys_stat and sys_fstat.
2267         * sysdeps/unix/sysv/sys_stat.S, sysdeps/unix/sysv/sys_fstat.S: New
2268         files.
2269         * sysdeps/unix/sysv/Dist: Created to include sysv_stat.h,
2270         sys_stat.S, and sys_fstat.S.
2271
2272         * sysdeps/stub/__setreuid.c: Include <sys/types.h>.
2273
2274         * sysdeps/posix/__sigblock.c: Fixed typo.
2275
2276         * stdio/internals.c (__flshfp): Don't return EOF if at EOF; only
2277         for errors.
2278
2279         * signal/gnu/signal.h: Move #include <signum.h> outside repeat #ifdef.
2280
2281         * sysdeps/unix/sysv/filebits.h: Created.
2282
2283         * misc/Makefile (distribute): Define to bsd-compat.c.
2284
2285         * misc/Makefile (headers): Remove filebits.h.
2286         * io/Makefile (headers): Put it here.
2287
2288         * Makefile (+posix_dirs): Add io.
2289         * io/Makefile: New file for new subdir.
2290         Contains many headers and routines moved from posix.
2291         * posix/Makefile: Remove many headers and routines now in io.
2292         * Moved many files from posix to io.
2293
2294         * stdlib/alloca.h: Get size_t from stddef.h.
2295
2296         * misc/bsd-compat.c (getgroups): Removed.  Not needed, because gid_t
2297         is now the same size as int.
2298
2299         * Makefile (distribute): Include NOTES.
2300         * NOTES: New file, infoized node from intro.texinfo about the
2301         feature-test macros.
2302         * README.template: Mention NOTES.
2303
2304         * sysdeps/unix/bsd/sun/sun3/Makefile: include hp9k3bsd version.
2305
2306         * Makeconfig: Use $(..) for config.status.
2307
2308         * configure (i386-sysv): unix/i386/sysv, not unix/sysv/i386.
2309         * unix/i386/sysv/Implies: unix/sysv, not unix/i386.
2310
2311 Sun Feb 16 00:42:53 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2312
2313         * Version 0.5.
2314
2315         * posix/Makefile (headers): Remove confstr.h.
2316         (distribute): Define this instead to contain it.
2317
2318         * ansidecl: Added copyright notice.
2319
2320         * stdio/getdelim.c: New file.
2321         * stdio/getline.c (getsome): Renamed to getdelim and moved there.
2322         * stdio/Makefile (routines): Add getdelim.
2323         * stdio/stdio.h: Declare getdelim.
2324
2325         * misc/gnu/file.h: Moved to sysdeps/unix/bsd/filebits.h.
2326         * sysdeps/stub/filebits.h: New file.
2327         * misc/Makefile: gnu/file.h is now filebits.h.
2328         * posix/fcntl.h: Changed #include.
2329
2330         * stdio/getline.c (getsome): If MAX_CANON isn't defined, use a default.
2331         Don't leak old *LINEPTR storage if *N < 2.
2332         Don't bang *LINEPTR to NULL if realloc fails.
2333
2334         * Makerules: Don't use override when nulling out sources, routines,
2335         and aux if they came from the environment.  Better not make with -e.
2336
2337         * Makefile (sysdirs, Sysnames): Put outside of ifndef sysdirs.
2338
2339         * string/Makefile (tests): No testcopy, pending papers.
2340
2341         * Makefile (headers): No sysdep.h.
2342         (distribute): Here instead.
2343         (no-install): No longer needed.
2344
2345 Sat Feb 15 17:10:38 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2346
2347         * Makefile (distribute): Add INSTALL.
2348         * Make-dist (INSTALL): Make from manual/maint.texinfo.
2349         (README): Make from README.template.
2350
2351         * Makefile (+other-dirs): Removed inet.
2352         * sysdeps/unix/inet/Subdirs: Created, adding inet.
2353
2354         * sysdeps/unix/sysv/setrlimit.c: Include stddef and errno.h.
2355
2356         * math/drem.c, setjmp/longjmp.c, malloc/cfree.c, string/bcmp.c,
2357         time/getitmr.c, misc/ioctl.c: Fixed defuns in function_alias.
2358
2359         * Makefile (headers): Put sysdep.h back.
2360         (no-install): And define this to it.
2361         * Makerules (+install): Filter out $(no-install) from the list.
2362
2363         * string/testcopy.c: New test program for bcopy from tege.
2364         * string/Makefile (tests): Add it.
2365
2366         * Makefile (sysdep-subdirs): Renamed to sysd-dirs.
2367
2368         * Make-dist (tardir): Omit the release name; it made names too long.
2369
2370 Sat Feb 15 12:53:02 1992  Torbjorn Granlund  (tege at mole.gnu.ai.mit.edu)
2371
2372         * sysdeps/rs6000/memcopy.h (WORD_COPY_FWD, WORD_COPY_BWD):
2373         Use CTR register for looping (speed enhancement).  Don't emit
2374         labels, jump relative from `$' instead (makes multiple expansions
2375         possible).  Clean up indentation of asm code (were different in each
2376         macro).
2377         * sysdeps/rs6000/memcopy.h (WORD_COPY_BWD):
2378         Add asm output specs (were missing completely).
2379
2380         * sysdeps/generic/{memcpy.c,memmove.c}: Make DSTP and SRCP unsigned
2381         (safer with non-ANSI compilers).
2382
2383 Fri Feb 14 01:52:12 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2384
2385         * Version 0.4.1.
2386
2387         * Makefile, Rules: Changed clean and clobber targets into
2388         mostlyclean, clean, and realclean.
2389
2390         * Makeconfig: Added comments describing objdir/Makeconfig and
2391         editting Makeconfig.
2392         (prefix, libdir, INSTALL, INSTALL_DATA): New variables for installing.
2393         * Makerules (install): New target.
2394         * Makefile (+subdir_targets): Add subdir_install.
2395         (install): Depend on subdir_install.
2396         (install-lib): Define variable to install libc.a and crt0.o.
2397         * misc/Makefile (install-lib): Install bsd-compat.
2398         * malloc/Makefile (install-lib): Install mcheck-init.
2399
2400         * Version 0.4.
2401
2402 Thu Feb 13 21:39:31 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2403
2404         * sysdeps/unix/glue-ctype.c: Moved to unix/bsd.
2405         * sysdeps/unix/Makefile: Moved glue-ctype stuff to unix/bsd/Makefile.
2406         * sysdeps/unix/Dist: No glue-ctype.
2407         * sysdeps/unix/bsd/Dist: Here instead.
2408
2409         * sysdeps/sparc/divrem.m4: Don't use insn aliases Sun as doesn't grok.
2410
2411 Wed Feb 12 12:12:12 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2412
2413         * sysdeps/m68k/setjmp.c: Use m, rather than g, constraint when
2414         saving fp regs.
2415
2416         * Renamed oodles of files, changed all the relevant Makefiles (I
2417         think).  File names now fit in 14 chars for losing System V.  Gag me
2418         with a death star.
2419         See =longnames for translations, and =shorten.el for method.
2420
2421         * grp/initgroups.c: Removed redundant test.
2422
2423         * malloc/mtrace.c: Use %p fmt for pointers.
2424
2425 Tue Feb 11 02:04:39 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2426
2427         * stdlib/alloca.h: New file.
2428         * stdlib/stdlib.h: Moved alloca decls there; #include <alloca.h>
2429         instead.
2430         * stdlib/Makefile (headers): Added alloca.h.
2431
2432         * stdio/getline.c (getsome): Fixed bugs.
2433
2434         * math/bsd/common_source/mathimpl.h: #define expm1 __expm1.
2435         * math/bsd/common_source/expm1.c: Renamed to __expm1.c
2436         * math/bsd/mc68881/expm1.s: Renamed to __expm1.s; renamed fn too.
2437         * math/expm1.c: New file, fn alias expm1 -> __expm1.
2438
2439         * math/Makefile (routines): Add __rint.
2440         * math/rint.c: New file, fn alias rint -> __rint.
2441         * math/bsd/common_source/floor.c (rint): Renamed to __rint.
2442         * sysdeps/generic/Makefile: Remove __rint, not rint.
2443
2444         * math/Makefile (BSDmath-files): Always include it, and don't depend
2445         on undependable things.
2446
2447         * Makerules (sysdep-Makefile): Always include it, and make it
2448         without depending on make vars that might not be right yet.
2449
2450 Mon Feb 10 00:55:58 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2451
2452         * stdlib/stdlib.h: #undef alloca before declaring it.
2453
2454         * sysdeps/sparc/__longjmp.S: Use be instead of bz.
2455
2456         * sysdeps/unix/bsd/Dist: Add bsdtty.h.
2457
2458         * tzfile.c (__tzfile_read): Don't allocate space for 0 leaps.
2459         Don't loop infinitely.
2460
2461         * sysdeps/unix/Makefile (make-errnos.c): Use tr to eat newlines in
2462         errnos file.
2463
2464         * sysdeps/unix/bsd/sun/sun4/__brk.S: Fix andn arg order.
2465
2466         * posix/Makefile: Don't get getopt by vpath.  Turns out to be too
2467         much hassle for dist.  Just made symlinks in posix/ instead.
2468
2469         * manual/Makefile: Renamed summary.out to summary.texinfo.
2470
2471         * manual/summary.awk: New file, to make summary.out.
2472         Replaces `process-definitions.el'.
2473         * manual/Makefile (summary.out): Create using summary.awk.
2474
2475         * manual/Makefile: Created.
2476         * Makefile, Make-dist: Use it to format and distribute the manual.
2477
2478 Mon Feb 10 00:32:17 1992  Jim Meyering  (meyering@churchy.gnu.ai.mit.edu)
2479
2480         * All Makefiles:
2481         Whenever using shell redirection to create a target,
2482         do not create the target directly like this
2483
2484             foo: bar
2485                     process $< > $@
2486
2487         That loses when `process' fails (interrupt, disk full, ...)
2488         and bar exists and looks up-to-date, but isn't.
2489         This sort of failure is particularly insidious when
2490         the initial error message is obscured by lots of subsequent
2491         output (echoed commands etc).
2492
2493         Instead use rules like this
2494
2495             foo: bar
2496                     process $< > $@-tmp
2497                     mv $@-tmp $@
2498
2499         Using this paradigm, as long as process returns non-zero
2500         whenever it fails, the target won't be touched.
2501
2502 Sun Feb  9 22:58:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2503
2504         * posix/unistd.h (getopt): Fixed prototype.
2505         * sysdeps/generic/memset.c, stdio/vdprintf.c: Fixed DEFUNs.
2506
2507         * Makerules (lib): Use $(RANLIB) for ranlib.
2508         * Makeconfig: Define it.
2509
2510         * configure: Create config.status to set ARCH, if successful.
2511         * Makeconfig: include config.status ifndef ARCH.
2512
2513 Thu Feb  6 20:57:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2514
2515         * ansidecl.h (INCLUDE, STARTCOMMENT, ENDCOMMENT): New magic words.
2516         * sysdeps/m68k/68881/fl.h: Use new magic to snarf ieee754/fl.h during
2517         ansideclification.
2518
2519         * sysdeps/ieee754/fl.h: New file, taken mostly from the old
2520         68881 file.  HUGE_VAL redone to be machine independent.
2521         (NAN): New macro for an IEEE NaN, done like HUGE_VAL.
2522         * sysdeps/m68k/68881/fl.h: Now #includes ieee754/fl.h, and overrides
2523         FLT_ROUNDS for 68881 magic.  NB: the #include is a prob. for install.
2524
2525 Wed Jan 29 17:11:25 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2526
2527         * sysdeps/posix/getcwd.c: Don't use chdir; use a long ../../../...
2528         path name instead.
2529
2530 Fri Jan 17 02:51:10 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2531
2532         * posix/Makefile (headers): Added getopt.h.
2533         (routines): Added getopt1.
2534         Get getopt* from /home/gd/gnu/lib by vpath.
2535
2536         * Makerules (+ansideclificate): Don't assume . is in PATH.
2537
2538 Thu Jan 16 18:43:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2539
2540         * posix/glob.c [sgi]: No alloca.h, after all.
2541
2542 Wed Jan 15 14:17:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2543
2544         * termios/termios.h: Reworked to be compatible with 4.4BSD.
2545         * termios/speed.c, sysdeps/unix/bsd/{__tcgetattr,tcsetattr}.c: Store
2546         speeds as their own values (B9600==9600, etc.) and translate to BSD
2547         values only for ioctl.
2548         * termios/cfsetpseed.c: New fn to set both speeds at once (from 4.4).
2549
2550 Tue Jan 14 21:18:10 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2551
2552         * sysdeps/unix/i386/__brk.S: __end, not ___end.
2553         Get the arg off the stack correctly.
2554
2555         * sysdeps/unix/Makefile: Allow errnos like EL3HLT.
2556
2557         * sysdeps/posix/{readv,writev}.c: Typos.
2558
2559         * sysdeps/posix/__sigpause.c: Rewritten to know that sigset_t is a
2560         mask, and to pass a (sigset_t *) instead of sigset_t to sigsuspend.
2561
2562         * sysdeps/i386/memset.c: Include <memcopy.h>.
2563
2564         * sysdeps/generic/uname.c (uname): Save and restore errno if
2565         gethostname gets ENOSYS.
2566
2567         * stdio/perror.c (perror): Check correctly for S == "".
2568         Check correctly for ERRNUM being in range.
2569
2570         * find-sysdirs: Don't use fgrep -s, since USG apparently doesn't
2571         have that flag.  Just >/dev/null instead.
2572
2573 Mon Jan 13 17:00:15 1992  Torbjorn Granlund  (tege at mole.gnu.ai.mit.edu)
2574
2575         * sysdeps/generic/wordcopy.c (all four functions): Move do0 label to
2576         the ultimate store statement at the end of each function.  (Used to
2577         be in the loop.)
2578
2579 Tue Jan  7 18:40:18 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2580
2581         * resource/sys/resource.h (struct rusage): Change `ru_outblock' to
2582         `ru_oublock'.
2583
2584         * sysdeps/generic/stpcpy.c: Fixed off-by-one bug.
2585
2586 Thu Jan  2 15:19:01 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2587
2588         * sysdeps/sparc/Dist: Add umul.S and mul.S.
2589
2590 Tue Dec 31 15:33:39 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2591
2592         * signal/signal.h [__USE_GNU]: Add user-visible `sighandler_t' ==
2593         __sighandler_t.
2594
2595         * termios/speed.c (speedtab): Made const.
2596
2597         * posix/Makefile (routines): Add flock.
2598
2599 Tue Dec 31 03:38:30 1991  Richard Stallman  (rms at mole.gnu.ai.mit.edu)
2600
2601         * termios/speed.c: Accept and return speeds as actual baud rates.
2602         * termios/termios.h (B110, etc.): Define B110 as 110, etc.
2603         Likewise for _B110, etc.
2604
2605 Thu Oct 24 16:19:49 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
2606
2607         * ansidecl: Put `M4OPTS=+quiet' in the environment make GNU m4 quiet.
2608
2609 Sun Oct 20 19:31:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2610
2611         * Make-dist (tardir): Define as `libc-RELEASE-VERSION', strings
2612         snarfed from version.c.
2613         ($(..)$(tardir)): Add rule to make as symlink to . (parent dir).
2614         [subdir] (dist), [parent] (dist.tar): Depend on that.
2615         [subdir] (tarsources), [parent] (+tsrcs): Add $(tardir)/ to files.
2616
2617         * sysdeps/sparc/Makefile (distribute): Move data into Dist file.
2618
2619 Fri Oct 18 15:27:58 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2620
2621         * Makefile (subdirs): Add $(sysdep-subdirs), so sysdep makefiles can
2622         add subdirs.
2623
2624         * posix/glob.c [sgi]: Use <sys/dir.h>.
2625
2626         * stdio/fopen.c: If not appending, initialize the offset to 0.
2627
2628         * sysdeps/generic/strcasecmp.c: Fixed losing braindead code.
2629
2630 Tue Oct  8 15:27:54 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
2631
2632         * Version 0.1.
2633         * This ChangeLog is lacking much information.
2634         * After this release, I hope to maintain the log well. 
2635
2636 Fri Jul 26 18:02:57 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2637
2638         * stdio/Makefile (routines): Remove _cleanup.
2639
2640 Thu Jul 25 23:12:45 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2641
2642         * stdio/memstream.c (close_memstream): Removed.
2643         (trim_buffer): New fn to be io_funcs->__close for memstreams.
2644         (open_memstream): Take arg char **BUFLOC.  Stuff it in
2645         stream->__fd, and store the location of the initial buffer in
2646         *BUFLOC.
2647         (enlarge_buffer): Keep *(char **) stream->__fd updated to be the
2648         location of the buffer.
2649
2650 Tue Jul 23 14:11:29 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2651
2652         * posix/glob.c: Don't #include <stddef.h> #ifdef sun.
2653         Is there anyone on the face of the planet other than me capable of
2654         implementing the ANSI C standard to spec????
2655
2656         * posix/glob.c [DIRENT]: #include <sys/types.h> before <dirent.h>
2657         #ifdef USG.
2658
2659 Mon Jul 22 17:06:24 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2660
2661         * sysdeps/posix/make-stdio_limits.c: #include <posix1_limits.h>,
2662         not <posix_limits.h>.
2663
2664         * README: Refer to COPYING.LIB, not COPYING.
2665
2666         * config.libc: Renamed to `configure'.
2667 \f
2668 Local Variables:
2669 mode: change-log
2670 End: