Relocate AArch64 from ports to libc.
[jlayton/glibc.git] / ChangeLog.2
1 Mon Jan 17 17:31:28 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2
3         * Version 1.07 released.
4
5         * Makerules (install-lib rules): Fix typos: missing / after $(libdir).
6
7         * posix/Makefile (lib): Depend on $(objpfx)libposix.a
8         * malloc/Makefile (lib): Depend on $(objpfx)libmcheck.a.
9         * math/Makefile (lib): Depend on $(objpfx)libm.a.
10         * misc/Makefile (lib): Depend on $(objpfx)libbsd-compat.a.
11
12         * sysdeps/unix/sysv/sco3.2.4/__setpgid.c: New file.
13
14         * stdio/internals.c (flushbuf): Don't try aligned-block writing
15         calculation when FP->__buffer is nil.
16
17 Mon Jan 17 17:27:56 1994  Jim Meyering  (meyering@comco.com)
18
19         * sysdeps/generic/memcmp.c [!_LIBC]: Include <sys/types.h> for
20         definition of size_t.
21
22 Mon Jan 17 17:13:11 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
23
24         * sysdeps/unix/sysv/sco3.2.4/syscall.h: Add SYS_[gs]etitimer and
25         SYS_pgrpsys (from scottb).
26
27         * sysdeps/unix/configure: Check for getitimer and setitimer syscalls.
28
29         * sysdeps/unix/bsd/sequent/i386/syscall.S: New file from jason.
30
31 Sun Jan 16 00:41:03 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
32
33         * string/strerror.c (strerror): Declare BUF to be array of char.
34
35         * Version 1.06.13.
36
37 Sat Jan 15 17:27:26 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
38
39         * stdlib/testsort.c (main): Rewrite not to read any input; instead
40         generate some random alphabetic strings.
41
42         * stdlib/Makefile (testsort.input): Rules removed.
43
44         * sysdeps/unix/sysv/i386/__sigret.S: New file.
45
46         * stdio/Makefile (distribute): Add mpn-copy.mk.
47         Remove 68k rules; include mpn-copy.mk for dir names needing
48         translation, and rewrite no-68k rules to be generic for the rest.
49         (mpn-copy-sysdep): New variable.
50         (mpn-stuff): Include $(mpn-copy-sysdep).
51         (clean-mpn): Use rm -f.
52
53         * configure.in (machine): Match m68... and m88..., not mc[68]8....
54
55         * stdio/printf_fp.c: For length arg to __mpn_extract_double, pass
56         actual number of limbs allocated for F, not LDBL_MANT_DIG.
57
58 Fri Jan 14 19:09:29 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
59
60         * sysdeps/unix/i386/sysdep.S: Fixed typo: `movl', not `move'.
61
62         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Swap args in cmpl insn.
63
64 Thu Jan 13 17:09:19 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
65
66         * Version 1.06.12.
67
68         * sysdeps/mips/sqrt.c: File removed.  Ian says only the r[46]00
69         have `sqrt.d' and GCC open codes it anyway.  Perhaps someday
70         Brendan will be able to explain his rationale for writing this. :(
71
72 Tue Jan 11 18:10:17 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
73
74         * posix/sys/wait.h (__WAIT_STATUS, __WAIT_STATUS_DEFN): Use snazzy
75         version only for GCC >= 2.6 (was 2.4); 2.5.7 produces bad code on
76         sparc when the union arg type is used.
77
78         * Makeconfig (libprefix): New variable.
79         * Makerules ($(libdir)/libc.a, install): Insert $(libprefix)
80         between `lib' and `c' in the file name.
81         [install-lib] (install-lib.a, install-lib-non.a): New variables
82         separate out $(install-lib) elts which do or don't match lib%.a.
83         ($(libdir)/...): Split into two rules for above two cases.  Put
84         $(libprefix) on installed files; for lib%.a insert it before %
85         rather than at beginning of file name.
86
87         * Version 1.06.11.
88
89         * Makerules (compilation rules): Move directoryless rules (for
90         finding sources in .) before include sysd-rules.  Omit rules to
91         compile from sources in $(objpfx) if not using $(objdir).
92
93         * sysdeps/stub/errlist.c [! HAVE_GNU_LD]: #define _sys_errlist to
94         sys_errlist and _sys_nerr to sys_nerr.
95
96 Mon Jan 10 15:01:32 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
97
98         * time/Makefile (z.%): In generated rules, depend on yearistype.
99         (tzcompile): Pass -y flag with file name of yearistype.
100
101 Sun Jan  9 17:51:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
102
103         * misc/bsd-compat.c (longjmp): Use __NORETURN in type.
104
105         * sysdeps/ieee754/dbl2mpn.c [N == 2]: For denormal, when
106         RES_PTR[1] is zero, return 1 instead of 2.
107
108 Sun Jan  9 13:10:25 1994  Torbjorn Granlund  (tege@adder.cygnus.com)
109
110         * stdio/printf_fp.c: Solve 10+ problems.
111         * ieee754/dbl2mpn.c: Correctly detect denorms.  Get the denom
112         exponent right.
113
114 Sun Jan  9 00:40:48 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
115
116         * sysdeps/ieee754/dbl2mpn.c: Test BITS_PER_MP_LIMB and handle
117         either 32 or 64; #error if not one of those.
118
119         * sysdeps/stub/udiv_qrnnd.c: Renamed from udiv_qrnnd.S.
120
121 Sat Jan  8 00:25:15 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
122
123         * Version 1.06.10.
124
125         * Makerules ($(libdir)/libc.a): Depend on subdir_install.
126
127 Thu Jan  6 02:17:07 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
128
129         * Makerules ($(bindir)/$(install)): Use $(INSTALL_PROGRAM), not
130         $(INSTALL).
131         ($(libdir)/libc.a): Don't depend on lib-noranlib; on libobjs and
132         ar-it instead.  Run ranlib on target after installing.
133         (installdirs): Target removed; deps on it removed.
134         (install-{bin,lib,data,headers,others,no-libc.a}): Renamed to
135         `install-*-nosubdir'.
136         (install-%): New pattern rule.
137         (install): Depend only on install-no-libc.a-nosubdir.
138         * Rules (subdir_install): Depend on lib-noranlib and stubs.
139         * Makefile (headers): Remove stubs.h.
140         (install-others): Define to include $(includedir)/stubs.h.
141         ($(includedir)/stubs.h): New target for $(objpfx)stubs.h rule.
142         Depend only on subdir_install, and install directly.
143
144         * Makerules (sed-remove-objpfx): Require SPC before $(objpfx) to match.
145
146         * time/zic.c (mkdirs): Duplicate passed string in allocated memory
147         and free it when done.
148
149         * dirent/dirent.h [__USE_BSD || __USE_MISC]: Get size_t from stddef.h.
150
151         * sysdeps/ieee754/dbl2mpn.c: For zero value, return 1 limb not 0.
152
153         * Makerules (make-dummy-dep): Use filter-out to invert sense of
154         wildcard match, so we produce a command if $@ does *not* exist.c
155
156         * stdio/Makefile (routines): Add dbl2mpn.
157
158 Wed Jan  5 17:52:43 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
159
160         * sysdeps/unix/i386/sysdep.S (syscall_error): Reverse args in
161         `cmpl' insn; non-GNU assembler is feeble-minded.
162
163 Mon Jan  3 18:53:45 1994  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
164
165         * configure.in (sysnames): Remove / before $mach; it is prepended
166         already by the loop constructing $mach from $machine.
167
168 Tue Dec 28 07:38:23 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
169
170         * stdio/Makefile [gmp-srcdir] (clean-mpn): New target.
171
172         * configure.in (machine): Turn i[34]86 into i386/&, sparc* into
173         sparc/&, m68k into m68k/mc68020, mc680?0 into m68k/&, mips or
174         r2000 into mips/r3000, r[34]000 into mips/&.
175         (mach): New variable; processed from $machine as $base from $base_os.
176         Use that in place of $machine in loop finding sysdep directories.
177
178         * stdio/Makefile (aux): Add mp_clz_tab.
179         (mpn-copy): Add mp_clz_tab.c.
180         (mpn-routines): Add udiv_qrnnd.
181         (mpn-sysdep): Look for .s files too.
182         * sysdeps/stub/udiv_qrnnd.S: New file.
183
184 Sat Dec 25 00:20:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
185
186         * Version 1.06.9.
187
188         * Makefile (distribute): Add install.sh.
189         * install.sh: New file.
190
191         * sysdeps/i386/Makefile: New file.
192         (asm-CPPFLAGS): Add -DGAS_SYNTAX.
193
194         * stdio/printf_fp.c: Major rewrite of sysdeps/generic/printf_fp.c,
195         working with the fractional parts as multiprecision integers
196         instead of doubles, using mpn functions from GNU MP.  Done with
197         much help from tege@cygnus.com.
198         * sysdeps/generic/printf_fp.c, sysdeps/ieee754/printf_fp.c,
199         sysdeps/m68k/fpu/printf_fp.c: Files removed.
200
201 Fri Dec 24 23:09:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
202
203         * sysdeps/stub/dbl2mpn.c, sysdeps/iee754/dbl2mpn.c: New files.
204         * sysdeps/stub/asm.h: New file.
205         * sysdeps/m68k/add_n.S, sysdeps/m68k/addmul_1.S,
206         sysdeps/m68k/mul_1.S, sysdeps/m68k/sub_n.S,
207         sysdeps/m68k/submul_1.S, sysdeps/m68k/asm.h,
208         sysdeps/generic/add_1.c, sysdeps/generic/add_n.c,
209         sysdeps/generic/addmul_1.c, sysdeps/generic/cmp.c,
210         sysdeps/generic/divmod.c, sysdeps/generic/divmod_1.c,
211         sysdeps/generic/lshift.c, sysdeps/generic/rshift.c,
212         sysdeps/generic/mod_1.c, sysdeps/generic/mul.c,
213         sysdeps/generic/mul_1.c, sysdeps/generic/mul_n.c,
214         sysdeps/generic/sub_n.c, sysdeps/generic/submul_1.c,
215         sysdeps/generic/get_str.c, sysdeps/i386/addmul_1.S,
216         sysdeps/i386/mul_1.S, sysdeps/i386/submul_1.S,
217         sysdeps/alpha/gmp-mparam.h, sysdeps/generic/gmp-mparam.h,
218         sysdeps/i386/asm.h, stdio/longlong.h, stdio/gmp.h,
219         stdio/gmp-impl.h: New files, taken from GNU MP.
220         * stdio/Makefile (mpn-headers, mpn-routines): New variables.
221         (routines): Include $(mpn-routines).
222         (distribute): Include $(mpn-headers).
223         [gmp-srcdir]: Much code to copy mpn source from $(gmp-srcdir).
224         * configure.in: Check for a --with-gmp argument and set gmp-srcdir
225         in config.make to its value (error if no arg given).  Move
226         config_vars initialization before this (right after arg parsing).
227
228 Thu Dec 23 01:44:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
229
230         * sysdeps/m68k/Makefile (m68k-syntax-flag): New variable.
231         (compile-command.S): Include $(m68k-syntax-flag) in cpp flags.
232
233         * manual/Makefile (install-data): New target.
234         (install-%): New pattern rule.
235
236         * Makerules ($(bindir)/...): Do $(make-target-directory) first.
237
238 Thu Dec 23 01:03:19 1993  Brendan Kehoe  (brendan@zen.org)
239
240         Port to the DEC Alpha running OSF/1. (75% done)
241         * sysdeps/unix/bsd/osf1/alpha/start.S: New file.
242         * sysdeps/unix/bsd/osf1/alpha/sysdep.h: New file.
243         * sysdeps/unix/bsd/osf1/alpha/sysdep.S: New file.
244         * sysdeps/unix/bsd/osf1/alpha/__brk.S: New file (incomplete).
245         * sysdeps/unix/bsd/osf1/alpha/__fork.S: New file.
246         * sysdeps/unix/bsd/osf1/alpha/__pipe.S: New file.
247         * sysdeps/unix/bsd/osf1/alpha/__getdents.S: New file.
248         * sysdeps/unix/bsd/osf1/alpha/__waitpid.c: New file.
249         * sysdeps/unix/bsd/osf1/alpha/__wait4.S: New file.
250         * sysdeps/unix/bsd/osf1/dirstream.h: New file.
251         * sysdeps/unix/bsd/osf1/alpha/statbuf.h: New file.
252         * sysdeps/unix/bsd/osf1/direct.h: New file.
253         * sysdeps/unix/bsd/osf1/dirstream.h: New file.
254         * sysdeps/unix/bsd/osf1/Makefile: New file, defining LDFLAGS.
255
256         * sysdeps/unix/ioctls-tmpl.c [__osf1__ && __alpha__]: Clean up the
257         ioctls that we get for an Alpha running OSF/1.
258
259         * sysdeps/unix/common/glue-ctype.c: Add code for HAVE__LOCP.
260         (main): If new macro TABLE_NAME is defined, use that for the name
261         of the array we're writing out, rather than what's defined in TABLE.
262         * sysdeps/unix/common/configure.in (AC_HAVE_FUNCS): Add `_locp'.
263
264         * sysdeps/unix/bsd/osf1/sigaction.h: Add SA_ONSTACK, SA_RESTART,
265         and SA_DISABLE.
266         * sysdeps/alpha/setjmp.S: Add .end directive.
267
268         * time/sys/time.h (struct timeval): Make members TV_SEC and
269         TV_USEC be `int', not `long', since it won't hurt other hosts, but
270         kills the Alpha.
271         * resource/sys/resource.h (struct rusage): Make all non-timeval
272         members be `long', not `int'.
273
274         * sysdeps/alpha/strlen.c (strlen): Go from 0 to 7, not 3, since
275         there are 8 bytes in a long on the Alpha.  Check for '\0' after
276         checking for C in initial byte-by-byte loop.
277         * sysdeps/alpha/strchr.c (strchr): Likewise. Shift out to 64 when
278         setting CHARMASK.
279         * sysdeps/alpha/memchr.c (memchr): Likewise.  Return NULL if we
280         didn't find it in N characters, or N == 0.  Declare CP to be an
281         unsigned char*.
282
283         * sysdeps/alpha/Makefile: Add divrem stuff.
284         * sysdeps/alpha/DEFS.h: New file.
285         * sysdeps/alpha/divrem.m4: New file.
286         * sysdeps/alpha/macros.m4: New file.
287         * sysdeps/alpha/Dist: Add .S files, divrem.m4, macros.m4, and DEFS.h.
288
289         * sysdeps/unix/bsd/osf1/alpha/vhangup.S: New file.  (Only a
290         temporary workaround, until we figure out how to deal with the
291         SYS_ult syscalls better.)
292         * sysdeps/unix/bsd/osf1/alpha/killpg.S: Likewise.
293         * sysdeps/unix/bsd/osf1/alpha/__sigvec.S: Likewise.
294         * sysdeps/unix/bsd/osf1/alpha/__sigpause.S: Likewise.
295         * sysdeps/unix/bsd/osf1/alpha/__sigstmsk.S: Likewise.
296         * sysdeps/unix/bsd/osf1/alpha/recv.S: Likewise.
297         * sysdeps/unix/bsd/osf1/alpha/send.S: Likewise.
298
299         * sysdeps/alpha/__math.h (__copysign): Add __CONSTVALUE.
300         * sysdeps/alpha/__copysign.c: Define __NO_MATH_INLINES.
301         * sysdeps/alpha/fabs.c: Likewise.
302
303 Wed Dec 22 17:55:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
304
305         * crypt/*: New version from glad.
306
307         * sysdeps/unix/sysv/sysv4/Dist: Add __getpgid.c and __setpgid.c.
308
309         * dirent/Makefile (headers): Define; include dirent.h & dirstream.h.
310
311 Tue Dec 21 14:24:38 1993  Brendan Kehoe  (brendan@zen.org)
312
313         * sysdeps/unix/sysv/sysv4/i386/statbuf.h (struct stat): Add
314         missing member ST_FSTYPE.  Fixup types on various members to make
315         this properly reflect what the system has.
316
317         * misc/ioctl.c (ioctl): Declare 2nd arg to be unsigned long int to
318         match the change in ioctl.h.
319
320 Tue Dec 21 00:01:01 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
321
322         * Version 1.06.8.
323
324         * dirent/dirent.h (struct dirent): Add `d_reclen'; make `d_namlen'
325         an `unsigned short int' instead of `size_t'.
326         (DIR): Move typedef to sysdep file dirstream.h.
327         * sysdeps/unix/dirstream.h: New file, broken out of dirent.h.
328         * sysdeps/stub/dirstream.h: New file.
329         * sysdeps/unix/bsd/dirstream.h: New file.
330         * sysdeps/unix/bsd/readdir.c: New file.
331
332 Mon Dec 20 23:29:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
333
334         * sysdeps/unix/start.c: Include <sysdep.h>.
335         * sysdeps/unix/sysv/sysv4/i386/start.c: File removed.
336
337 Sat Dec 18 01:37:25 1993  Brendan Kehoe  (brendan@zen.org)
338
339         * sysdeps/unix/sysv/sysv4/i386/start.c: New file.  Same as
340         sysdeps/unix/i386/start.c, but defines NO_UNDERSCORES.
341
342         * sysdeps/unix/sysv/sysv4/waitflags.h: New file, with non-standard
343         WEXITED and WTRAPPED macros defined.
344         * sysdeps/unix/sysv/sysv4/__waitpid.c: New file.
345         * sysdeps/unix/sysv/sysv4/siginfo.h: New file.
346         * sysdeps/unix/sysv/sysv4/__waitid.S: New file.
347         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Mention __waitid.
348         * sysdeps/unix/sysv/sysv4/pipestream.c: New file, to avoid having
349         NO_WAITPID set.
350         * sysdeps/unix/sysv/sysv4/Dist: Added __waitid.S and siginfo.h.
351
352         * sysdeps/unix/sysv/sysv4/__getpgid.c: New file.
353         * sysdeps/unix/sysv/sysv4/__setpgid.c: New file.
354         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Add them.
355
356         * sysdeps/unix/sysv/sysv4/__getpgrp.c (__getpgrp): It's the 0th
357         subcall for getpgrp, not 4th.
358         * sysdeps/unix/sysv/sysv4/__setpgrp.c (__setpgrp): Likewise, it's
359         the 1st, not the 5th.
360
361 Fri Dec 17 15:05:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
362
363         * misc/sys/ioctl.h (__ioctl, ioctl): Make second arg `unsigned
364         long int' instead of `int' (4.4 uses unsigned long).
365
366         * string/string.h (strcat): Parameters names were swapped.
367
368 Fri Dec 17 01:18:27 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
369
370         * Made the Hurd error system 0x10 again; this undid many
371         of the changes of Nov 23.  Affected all the err_ files in
372         mach; recreated sysdeps/hurd/err_hurd.sub; changed back
373         err_kern.sub to have the Unix error codes. 
374
375 Thu Dec 16 15:40:25 1993  Brendan Kehoe  (brendan@zen.org)
376
377         * stdio/temptest.c (main): Remove the files we created once we're
378         done.  Make return type int, and exit with 0 status.
379
380         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Fix typo of
381         extra comma in sprintf call.
382
383 Tue Dec 14 13:08:35 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
384
385         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Rewrote main
386         logic.  Removed INFOS structure array and replaced it with
387         INDICES, an array of size_t.  Removed INFO ptr and replaced it
388         with IDX, which points to either elt of INDICES.  Rewrite main
389         loop to increment *IDX until it hits 62*62*62.  Construct file
390         name by dividing out two powers of 62 from *IDX and using the
391         modulus as an index into `letters'.
392
393         * sysdeps/unix/common/Makefile (sysdep_routines): Only add
394         bsd_getgrp here if the sysdep __getgrps.? chosen is unix/common's.
395
396         * posix/fnmatch.h: #undef FNM_PATHNAME, FNM_NOESCAPE, and
397         FNM_PERIOD before defining them.
398
399         * time/__tzset.c (compute_change): In M case when tallying time in
400         months before specified month, count to RULE->m - 1, not ...+1.
401
402         * manual/Makefile (realclean): Remove index, aux, and toc files
403         created by TeX.
404
405 Mon Dec 13 19:33:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
406
407         * sysdeps/posix/__wait3.c: Use __WAIT_STATUS_DEFN in place of
408         __WAIT_STATUS in arg type.
409
410 Wed Dec  8 15:59:45 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
411
412         * malloc/memalign.c: Set L->next and _aligned_blocks only when L
413         is newly allocated, not when we reuse an old one.
414
415 Tue Dec  7 16:04:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
416
417         * io/fcntl.c: Replace function_alias use with:
418         [HAVE_GNU_LD]: Use symbol_alias.
419         [! HAVE_GNU_LD]: Define fcntl to use stdarg and call __fcntl.
420
421 Mon Dec  6 17:50:05 1993  Brendan Kehoe  (brendan@zen.org)
422
423         * sysdeps/unix/i386/sysdep.S (syscall_error): Fix labels so
424         they'll compile.
425
426         Make the Solaris port work dammit.
427         * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h (struct stat): Make
428         ST_DEV member be unsigned long, not short.
429
430         * sysdeps/unix/sysv/sysv4/solaris2/direct.h: New file, same as
431         sysv4/direct.h but uses strlen instead of the offset-based
432         computation of the name length, since that doesn't reliably work
433         for Solaris.
434
435         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h (PSEUDO): Don't move
436         %g0 into %o0, since that will clobber the real return value. Take
437         out the retl at the end, why in the world did I put it in there?
438
439 Mon Dec  6 17:27:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
440
441         * Makefile ($(objpfx)crt1.o): Add target to $(objpfx)Mcrt1.o
442         rule; generalize commands.
443         (install-lib): Add crt1.o.
444
445         * sysdeps/unix/Makefile ($(common-objpfx)ioctls): Use -x flag to
446         fgrep to match only entire lines.
447
448 Sun Dec  5 01:53:43 1993  Brendan Kehoe  (brendan@zen.org)
449
450         * sysdeps/unix/bsd/ultrix4/mips/start.S: New file.
451         * sysdeps/unix/bsd/ultrix4/mips/start.c: Deleted.
452
453 Thu Dec  2 18:29:01 1993  Brendan Kehoe  (brendan@zen.org)
454
455         * sysdeps/unix/bsd/ultrix4/mips/sysdep.S: Don't use dollar signs
456         with the errnos.
457
458         * sysdeps/stub/{__wait, __wait3, __wait4}.c,
459         sysdeps/unix/bsd/bsd4.4/{__wait, __wait3}.c,
460         sysdeps/unix/bsd/sun/sunos4/__wait4.c,
461         sysdeps/posix/{__wait, __wait3}.c, posix/{wait, wait3, wait4}.c: Use
462         __WAIT_STATUS_DEFN, not __WAIT_STATUS.
463
464         * sysdeps/posix/killpg.c (killpg): Make arg PGRP __pid_t, not pid_t.
465         * sysdeps/stub/killpg.c (killpg): Likewise.
466
467         * setjmp/longjmp.c (longjmp): Only use __NORETURN if !HAVE_GNU_LD.
468         * setjmp/_longjmp.c (_longjmp): Likewise.
469
470 Thu Dec  2 17:31:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
471
472         * posix/sys/wait.h (__WAIT_STATUS_DEFN): Define new macro.
473
474         * Makerules (+install): Variable removed.
475         (install-bin, install-lib, install-data, install-headers,
476         install-others): New targets.
477         (install-no-libc.a): Depend on them instead of $(+install).
478
479         * Makefile (+subdir_targets): Add
480         install-{no-libc.a,bin,lib,data,headers,others}.
481         (install-no-libc.a): Don't depend on subdir_install.
482
483 Thu Dec  2 17:14:39 1993  Brendan Kehoe  (brendan@zen.org)
484
485         * sysdeps/ieee754/__isnan.c (__isnan): Return __CONSTVALUE, to
486         match declaration in math/math.h.
487
488 Thu Dec  2 15:48:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
489
490         * time/africa, time/antarctica, time/asia, time/australasia,
491         time/emkdir.c, time/europe, time/ialloc.c, time/northamerica,
492         time/pacificnew, time/private.h, time/solar87, time/solar88,
493         time/southamerica time/systemv, time/tzfile.h, time/zdump.c,
494         time/zic.c: New data and code from ADO.
495         * time/Makefile (tzfiles): Added backward.
496         * time/backward: New file from ADO.
497
498         * locale/C-ctype_ct.c: Remove _ISspace bit from BS (8).
499
500 Wed Dec  1 00:01:30 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
501
502         * mach/err_kern.sub: Frob around lack of GNU ld.
503
504         * mach/errsystems.awk: The declaration of __mach_error_systems
505         should not be static, but it should be const.
506
507         * sysdeps/mach/hurd/errlist.awk (BEGIN): Deal with the case
508         where you don't have GNU ld.
509
510         * sysdeps/mach/hurd/Makefile: Define mib_hacks to make.
511
512 Tue Nov 30 23:24:07 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
513
514         * Makefile: install-no-libc.a needs to depend on subdir_install.
515
516 Mon Nov 29 16:21:38 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
517
518         * sysdeps/mach/_strerror.c: Include <mach/errorlib.h>.
519
520         * hurd/setuids.c: Put entire file inside #ifndef MIB_HACKS; 
521         it uses the old auth_makeauth call.
522
523         * hurd/__setauth.c: Put entire file inside #ifndef MIB_HACKS;
524         it depends on cthreads to compile, which is not yet integrated.
525
526         * hurd/hurdpath.c (__hurd_path_lookup): cast to avoid GCC warning.
527
528 Wed Nov 24 00:59:15 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
529
530         * hurd/Makefile: Commented out hurdauth; recent changes to
531         auth.defs prevent it from working now.
532
533         * mach/mach_error_string.c (do_compat): Change name to
534         __mach_error_map_compat; make it no longer static.
535         (mach_error_type, mach_error_string_int): Use 
536         __mach_error_map_compat instead of do_compat.
537         * sysdeps/mach/_strerror.c: Use __mach_error_map_compat.
538
539         * mach/devstream (output/write_some): Cast fourth argument to
540         device_write_inband to char * to avoid warning.
541         (output): Call to write_some mentioned variable `start' from
542         a previous version of the function; changed this to f->__buffer.
543
544 Tue Nov 23 23:16:13 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
545
546         [ The net effect of the following change is to eliminate error
547         systems which are specific to single-server Mach systems, and
548         to put the Hurd errors where the Unix errors were. ]
549         * mach/{err_bootstrap.sub,err_ipc.sub,err_server.sub,err_us.sub}:
550         None of these are used for the Hurd; we shouldn't pretend that
551         they are meaningful in our environment.  The files have been
552         renamed to equivalent names with an equal sign prepended; this
553         will inhibit distribution and prevent the Makefile from looking at
554         them. 
555         * mach/err_kern.sub: Deleted the definitios of err_codes_unix;
556         get the strings from _sys_errlist.  Rename `unix' to `hurd'.
557         Rename err_os_sub to be err_kern_sub to match what errsystems.awk
558         expects.
559         * sysdeps/mach/hurd/err_hurd.sub: Deleted this file.
560         * sysdeps/mach/hurd/errnos.awk: Changed definition of _HURD_ERRNO
561         to be correct.
562
563         * sysdeps/mach/hurd/Makefile: use gawk, not awk.
564
565         * mach/errsystems.awk: Generally rewrote the printf.  It's now
566         closer to Roland's original, but without the $i mistake at all,
567         in any form.
568
569 Tue Nov 23 20:21:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
570
571         * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
572         bsd/ultrix4/mips,bsd/vax}/sysdep.S: Define _ERRNO_H before
573         including <errnos.h>; otherwise <errnos.h> does not define most
574         macros (importantly, EAGAIN!).
575
576 Tue Nov 23 12:43:38 1993  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
577
578         * mach/errsystems.awk: $i is not an index; make i a variable and
579         increment it properly.  Don't call `err_get_system'; use the
580         system number as the index in the array directly. 
581
582         * mach/errorlib.h: Added `const' in all the right places.
583         * sysdeps/mach/hurd/err_hurd.sub: Cast _sys_errlist to
584         the right type.  Better to declare it right in stdio/stdio.h, but
585         I don't dare change that file lest Roland call me a twit.
586         * mach/err_us.sub: Add more brackets to initializer to shut GCC up.
587
588         * sysdeps/mach/hurd/err_hurd.sub: Delete keyword `const'; this
589         is taken care of by the `#define static static const' found in
590         errsystems.c as created by mach/errsystems.awk.
591         * mach/errsystems.awk: Ditto for declaration of __mach_error_systems.
592
593         * sysdeps/mach/hurd/err_hurd.sub: Change <errnos.h> to <errno.h>;
594         errnos.h doesn't define most stuff unless it is included from errno.h.
595
596         * mach/mach_error_string.c (mach_error_string_int): Delete unused
597         variable `err_str'.
598
599         * mach/mach_error_string.c (do_compat): Declare to be void.
600         (mach_error_string,mach_error_type, mach_error_string_int):
601         Declare return type as const char *.
602         * mach/mach_error.h: Change declarations to match.
603
604         * mach/errsystems.awk: The array that split creates is origin 1,
605         not origin 0; fixed loop to match.
606
607         * sysdeps/mach/hurd/errnos.awk: Ernst's awk doesn't grok 
608         backslash-newline inside strings.  
609
610 Sat Nov 20 19:02:25 1993  Brendan Kehoe  (brendan@zen.org)
611
612         * math/__finite.c (__finite): Return __CONSTVALUE, to match math.h.
613         * math/__scalb.c (__scalb): Likewise.
614         * math/copysign.c (copysign): Likewise.
615         * math/drem.c (drem): Likewise.
616         * math/expm1.c (expm1): Likewise.
617         * math/finite.c (finite): Likewise.
618         * math/infnan.c (infnan): Likewise.
619         * math/isinf.c (isinf): Likewise.
620         * math/isnan.c (isnan): Likewise.
621         * math/logb.c (logb): Likewise.
622         * math/rint.c (rint): Likewise.
623         * math/scalb.c (scalb): Likewise.
624         * sysdeps/generic/atan.c (atan): Likewise.
625         * sysdeps/ieee754/__copysign.c (__copysign): Likewise.
626         * sysdeps/ieee754/__drem.c (__drem): Likewise.
627         * sysdeps/ieee754/__isinf.c (__isinf): Likewise.
628         * sysdeps/ieee754/__logb.c (__logb): Likewise.
629         * sysdeps/ieee754/ldexp.c (ldexp): Likewise.
630         * sysdeps/ieee754/log10.c (log10): Likewise.
631
632         * setjmp/_longjmp (_longjmp): Add __NORETURN.
633         * setjmp/longjmp (longjmp): Likewise.
634
635 Thu Nov 18 04:16:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
636
637         * string/strerror.c (strerror): Call _strerror_internal to do the
638         work, passing it a scratch buffer.
639         * stdio/perror.c: Likewise.
640         * string/Makefile (routines): Add _strerror.
641         * sysdeps/generic/_strerror.c (_strerror_internal): New file.
642
643         * configure.in (config.status): Make it pass its args to configure.
644
645 Thu Nov 18 03:52:32 1993  Michael I Bushnell  (mib@geech.gnu.ai.mit.edu)
646
647         * stdio/__vfscanf.c (__vfscanf): Put the floating point cases
648         (e,E,f,g,G) inside #ifndef MIB_HACKS; roland thikgs strtod crashes
649         the compiler.  Wheee.
650
651 Thu Nov 18 03:21:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
652
653         * errno.h [__USE_GNU__]: Declare program_invocation_name and
654         program_invocation_short_name.
655
656 Thu Nov 18 00:07:37 1993  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
657
658         * sysdeps/mach/hurd/start.c (start1): Don't add one to
659         the return value of split_args; it counts them just fine by
660         itself.  Do add one when sizing the arrays.
661
662 Mon Nov 15 00:19:48 1993  Noel Cragg  (noel@geech.gnu.ai.mit.edu)
663
664         * time/mktime.c: add TIMES_THROUGH_SEARCH variable to make sure
665         that we don't get caught in an infinite loop (would be bad,
666         indeed, for a library routine).
667
668 Sun Nov 14 18:48:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
669
670         * misc/sys/cdefs.h (__NORETURN, __CONSTVALUE): Use
671         `__attribute__', not `__attributes__'.
672         Test __GNUC_MINOR__ < 6, not < 5.
673
674 Wed Nov 10 05:39:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
675
676         * sysdeps/unix/morecore.c: Only declare sbrk #ifdef __GNU_LIBRARY__.
677         Cast its return value.
678
679         * sysdeps/unix/bsd/m68k/syscall.S: Use movel in place of moveal.
680
681         * configure.in (signed size_t check): Don't use AC_DEFINE; do it
682         by hand and insert -U__SIZE_TYPE__ before -D.
683
684         * posix/unistd.h: Declare syscall.
685
686         * sysdeps/m68k/fpu/__math.h (__isnan, __isinf): Use __CONSTVALUE
687         in prototypes.
688
689         * configure.in (Makefile): Write ARCH=`pwd`, rather than
690         substituting in the directory name at configure time.
691
692         * sysdeps/mach/i386/syscall.S: New file.
693
694 Tue Nov  9 06:29:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
695
696         * configure.in (os = netbsd* | 386bsd*): base_os=unix/bsd/bsd4.4.
697         Set --with-gnu-{ld,as} implicitly when base_os is bsd4.4.
698
699         * Version 1.06.7.
700
701         * misc/Makefile (routines): Add syscall.
702         * sysdeps/unix/syscall.S, sysdeps/stub/syscall.c,
703         sysdeps/unix/bsd/sun/m68k/syscall.S, sysdeps/unix/bsd/m68k/syscall.S,
704         sysdeps/unix/i386/syscall.S: New files.
705         * sysdeps/unix/bsd/hp/m68k/sysdep.h (DO_CALL): First arg
706         is syscall number, not name.
707         (PSEUDO): Pass POUND (SYS_ify (syscall_name)) to DO_CALL.
708         * sysdeps/unix/bsd/sony/newsos/m68k/sysdep.h (DO_CALL, PSEUDO):
709         Likewise.  Also, do movel into d0 before linkw, so the argument
710         could conceivably pop the stack.
711         * sysdeps/unix/bsd/hp/m68k/__brk.S: Pass complete number to DO_CALL.
712
713         * sysdeps/unix/sysv/Dist: sys_getdents.S was renamed s_getdents.S.
714
715 Thu Nov  4 01:23:59 1993  Michael I. Bushnell  (mib at ernst.gnu.ai.mit.edu)
716
717         * string/stpncpy: Fix typo; according to gnu-stabs.h the name
718         inside the DEFUN should be the *non* __ version.
719         * sysdeps/generic/__stpncpy.c: Missing declaration of s.
720
721 Wed Nov  3 09:35:30 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
722
723         * sysdeps/unix/Makefile ($(objpfx)errlist.c): Conditionalize these
724         rules to be used only when errlist.c is otherwise a stub.
725
726 Fri Oct 29 17:29:20 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
727
728         * string/stpncpy.c: New file.
729         * sysdeps/generic/__stpncpy.c: New file.
730         * string/Makefile (routines): Add stpncpy and __stpncpy.
731         * string/string.h [__USE_GNU__]: Declare them.
732
733 Thu Oct 28 17:13:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
734
735         * sysdeps/unix/errnos-tmpl.c (DO): If NAME is "EWOULDBLOCK",
736         write "#define EWOULDBLOCK EAGAIN" and change NAME to
737         "EWOULDBLOCK_sys".
738         * sysdeps/unix/{i386,sysv/sysv4/solaris2,sysv/i386/linux,bsd/m68k,
739         bsd/ultrix4/mips,bsd/vax}/sysdep.S [EWOULDBLOCK_sys]: Translate
740         EWOULDBLOCK_sys into EAGAIN.
741         * Makefile (distribute): Add move-if-change.
742         * move-if-change: New file.
743
744 Tue Oct 26 18:19:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
745
746         * misc/sys/cdefs.h: Define __NORETURN and __CONSTVALUE.
747         For GCC 2.5 and later, use __attributes__ (({volatile,const})).
748         * stdlib/stdlib.h: Don't define either here.
749         * math/math.h: Likewise.
750         * posix/unistd.h: Likewise.
751         * time/time.h: Likewise.
752         * stdio/stdio.h: Likewise.
753         * setjmp/setjmp.h: Likewise.
754
755         * posix/sys/wait.h (__WAIT_STATUS): Use union hack defn for GCC
756         2.4 and up (testing __GNUC__ and __GNUC_MINOR__).
757
758         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Don't include <limits.h>.
759
760         * Makerules [inhibit-sysdep-asm] 
761         (open-check-inhibit-asm, close-check-inhibit-asm): New variables.
762         ($(+sysdir_pfx)sysd-rules): Use them around .s and .S rules.
763         Depend on existing sysdep makefiles.
764
765 Mon Oct 25 15:56:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
766
767         * sysdeps/mach/hurd/killpg.c: Include <sys/types.h> for pid_t.
768
769         * sysdeps/posix/tempname.c (__stdio_gen_tempname): Take new arg
770         STREAMPTR.  When non-nil, use __open with O_EXCL to test for
771         existence, and set *STREAMPTR to new stream on returned fd.
772         * stdio/stdio.h: Update prototype.
773         * sysdeps/stub/tempname.c: Here too.
774         * stdio/tmpfile.c: Pass &F to __stdio_gen_tempname instead of
775         using fopen.
776         * stdio/tmpnam.c: Pass extra NULL arg.
777         * stdio/tempnam.c: Likewise.
778
779         * configure.in (switches): Only put --os-{release,version} here.
780         (config.status): Write $configure_args in place of $config $switches.
781
782         * signal/Makefile (routines): Renamed sigaltstack to sigaltstk.
783         * sysdeps/stub/sigaltstack.c: Renamed to sigaltstk.c.
784         * sysdeps/unix/bsd/bsd4.4/sigaltstack.S: Renamed to sigaltstk.S.
785         * sysdeps/unix/sysv/sys_getdents.S: Renamed to s_getdents.S.
786         * sysdeps/unix/sysv/Makefile (sysdep_routines): Changed reference.
787
788 Fri Oct 22 03:47:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
789
790         * malloc/realloc.c [MEMMOVE_MISSING]: Test this to use safe_bcopy.
791         [emacs]: Don't define safe_bcopy.
792
793         * time/zdump.c, time/europe: New versions from ADO.
794
795         * Rules (dont_distribute): Export this variable.
796         (subdir_echo-distinfo): Echo its value for +nodist+.
797
798 Thu Oct 21 15:58:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
799
800         * sysdeps/posix/__dup2.c: Include <limits.h>.
801         [OPEN_MAX]: Fail with EBADF if FD2>=OPEN_MAX.
802
803         * sysdeps/unix/Makefile (sys/param.h): Conditionalize all this
804         code to happen only when there is no sysdep sys/param.h.
805
806 Wed Oct 20 03:35:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
807
808         * Makerules (make-dummy-dep): Change to `ln $(objpfx)dummy.dep $@'.
809         ($(objpfx)dummy.dep): Create new file containing comment.
810         ($(objpfx)%.dep: $(objpfx)%.s): Depend on $(objpfx)dummy.dep.
811         ($(+sysdir_pfx)sysd-rules): Likewise in generated rule.
812
813 Mon Oct 18 04:22:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
814
815         * signal/signal.h (killpg): Make PGRP arg pid_t.
816         * sysdeps/posix/killpg.c (killpg): Likewise.
817         * sysdeps/stub/killpg.c (killpg): Here too.
818
819         * posix/glob/configure.in: Use AC_HAVE_HEADERS instead of
820         AC_MEMORY_H and AC_UNISTD_H; omit AC_USG (not needed).
821
822         * Rules (generated): New target.
823
824         * Makefile (subdirs): Use filters to put mach and hurd first in
825         the list if they are in it at all.
826         * Makerules (before-compile): Reorder similarly, matching any
827         generated mach or hurd files.
828
829 Fri Oct 15 17:57:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
830
831         * sysdeps/posix/mk-stdiolim.c [! OPEN_MAX]: Use _POSIX_OPEN_MAX
832         for FOPEN_MAX value.
833         [! PATH_MAX]: Use 1024 (twice _POSIX_PATH_MAX) for FILENAME_MAX value.
834
835         * Makerules (in-Makerules): Define this variable before including
836         sysd-Makefile.
837
838 Sun Oct 10 14:31:35 1993  Jim Meyering  (meyering@comco.com)
839
840         * posix/fnmatch.c [CONFIG_BROKETS]: Include <config.h> only under
841         this condition, else "config.h".
842
843 Tue Oct 05 16:08:39 1993  Jim Meyering  (meyering@comco.com)
844
845         * time/mktime.c [CONFIG_BROKETS]: Include <config.h> only under
846         this condition, else "config.h".
847
848 Thu Sep 23 15:14:08 1993  Brendan Kehoe  (brendan@zen.org)
849
850         * sysdeps/unix/sysv/sysv4/__dup2.c: New file.
851
852 Wed Sep 22 16:58:29 1993  Brendan Kehoe  (brendan@zen.org)
853
854         * sysdeps/unix/sysv/sysv4/solaris2/statbuf.h: New file.
855         * sysdeps/unix/sysv/sysv4/i386: New directory.
856         * sysdeps/unix/sysv/sysv4/i386/statbuf.h: New file.
857
858 Fri Sep 17 04:03:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
859
860         * Makerules (+make-deps): Put output in temp file and use atomic mv.
861
862         * Makerules ($(+sysdir_pfx)sysd-rules): New target, the rule part
863         of what was in sysd-Makefile.  Include it.
864         ($(+sysdir_pfx)sysd-Makefile): Do just includes here.  Move the
865         generated implicit rules to sysd-rules.  Put the output into a
866         temp file and use atomic mv to final target.
867         (before-compile): Filter out existing files from value, after
868         sysd-Makefile but before sysd-rules.
869
870 Thu Sep  9 22:28:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
871
872         * Makefile (%/configure): Copy rule from Make-dist.
873
874 Mon Sep  6 19:57:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
875
876         * Makerules (sources, objects): Move override definitions to
877         before +depfiles calculation.
878
879         * time/{asia,australasia,europe,zdump.c}: New versions from ADO (93e).
880
881 Mon Aug 30 13:40:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
882
883         * string/string.h (memmem): Reverse argument order, to be like strstr.
884         * sysdeps/generic/memmem.c: Here too.
885
886         * dirent/scandir.c: For error return, save errno around closedir.
887         Call closedir (DP) before returning successfully.
888
889 Thu Aug 26 19:26:06 1993  Brendan Kehoe  (brendan@zen.org)
890
891         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h: Rewritten to not use
892         the generic sparc sysdep.h.
893         (PSEUDO): Use trap 8, not 0. Also just put %g0 in %o0, without
894         subtracting 1.
895         (ENTRY): Align on 4, and add a `.type' directive.
896         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.S: New file.
897
898 Fri Aug 20 19:37:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
899
900         * sysdeps/generic/abort.c: Remove unused variable ABORTING.
901
902 Thu Aug 19 17:45:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
903
904         * Makeconfig [!objdir] [!..] (common-objdir): Set to `.'.
905
906 Wed Aug 18 15:10:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
907
908         * stdio/__vfscanf.c (__vfscanf: number): Reverse sense of
909         NUMBER_SIGNED conditional in assignment code.
910
911 Mon Aug 16 15:49:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
912
913         * sysdeps/unix/Makefile (syscall.h): Add sed
914         s/SYS_syscall_basenum/syscall_basenum/g.  SYSCALL_BASENUM is a
915         macro both defined and used in <syscall.h>; we must undo our
916         prependation of `SYS_'.
917
918         * Version 1.06.6.
919
920 Fri Aug 13 16:53:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
921
922         * stdio/__vfscanf.c: New local variable NUMBER_SIGNED.
923         (%x, %X, %o, %u): Set it to zero.
924         (%d, %i): Set it to one.
925         (number): If NUMBER_SIGNED is set, use strtol and store in ...int*.
926         If clear, use strtoul an store value in unsigned ...int*.
927
928         * malloc/malloc.h: Undo last change (_AIX32).
929         (memory_warnings): Use const instead of __const in prototype.
930
931 Fri Aug 13 00:22:01 1993  John Grabowski  (johng@whiskey.media.mit.edu)
932
933         * configure.in (os = osf1*): base_os=unix/bsd.
934
935 Thu Aug 12 16:37:13 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
936
937         * malloc/valloc.c [__GNU_LIBRARY__ || _LIBC]: Include <stddef.h>
938         before trying to use size_t to declare __getpagesize.
939         Include <sys/cdefs.h> before trying to use __P.
940
941         * posix/{fnmatch,glob}.c, malloc/malloc.h [HAVE_CONFIG_H]: Include
942         <config.h> instead of "config.h".  This is so that a compilation
943         using -I. -I$srcdir will use ./config.h rather than
944         $srcdir/config.h (which it would do when glob.c was found in $srcdir).
945
946         * malloc/malloc.h [_AIX32]: Use !__STDC__ defns of __P, const, __ptr_t.
947
948 Mon Aug  9 16:56:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
949
950         * Makerules (-e check): Don't rely on $(findstring e,$(MAKEFLAGS))
951         since that also trips for --no-print-directory.
952         Instead actually see if -e's functionality is taking place.
953
954         * malloc/realloc.c: Call _free_internal instead of free in most places.
955
956         * configure.in (arg parsing): No spaces around = in eval.
957
958         * sysdeps/i386/abort.c: New file.
959         * stdlib/abort.c: Moved to sysdeps/generic/abort.c.
960         (abort): Don't try to do stdio cleanup, since we can't guarantee
961         it anyway.
962
963 Fri Aug  6 17:59:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
964
965         * Makerules ($(+install)): Don't depend on installdirs.
966         (make-target-directory): New define.
967         (do-install): Do $(make-target-directory) beforehand.
968
969 Tue Aug  3 02:22:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
970
971         * sysdeps/stub/sys/reboot.h: New file.
972         * sysdeps/unix/bsd/sys/reboot.h: New file, snarfed from 4.4.
973         * misc/Makefile (headers): Add sys/reboot.h.
974
975         * stdio/stdio.h (__io_{read,write,seek,close,fileno}): Renamed to
976         __io_*_fn, so as not to conflict with the Hurd mig stubs.
977         * internals.c: Changed uses.
978
979         * sysdeps/unix/bsd/signum.h (SIGINFO): Define as 29.
980
981         * Makerules (+includes): Don't set this here.
982         * Makeconfig (+includes): Put $(+sysdep-includes) in the value here.
983
984         * posix/unistd.h [__USE_MISC]: Declare mktemp and mkstemp.
985
986 Mon Aug  2 16:59:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
987
988         * malloc/valloc.c: Move getpagesize goop to before malloc.h.
989         [_LIBC]: Test this as well as __GNU_LIBRARY__ (either one) to use
990         __getpagesize instead of "getpagesize.h".
991
992 Sun Aug  1 16:55:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
993
994         * configure.in (arg parsing): For `--with-foo=bar', do
995         "with_foo='bar'".  For `--with-fnord', do "with_fnord=yes".
996         * sysdeps/mach/configure: New file, groks `--with-mach=DIR'.
997
998 Fri Jul 30 00:01:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
999
1000         * configure.in (os = gnu*): Set $base_os, not $os, to mach/hurd.
1001
1002 Thu Jul 29 17:46:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1003
1004         * ctype/ctype.h (__isctype): Don't test !=0, to avoid possible
1005         extra test insn.
1006
1007 Sun Jul 25 22:19:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1008
1009         * setjmp/setjmp.h [! __FAVOR_BSD] (_longjmp): Define as longjmp.
1010
1011 Thu Jul 22 14:57:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1012
1013         * sysdeps/unix/bsd/osf1/sigaction.h: New file.
1014
1015         * sysdeps/stub/signum.h: Deansideclized.
1016         * sysdeps/stub/pipestream.c (pclose): Test STREAM->__ispipe
1017         instead of __ispipe (STREAM).
1018         * sysdeps/stub/__wait3.c: Fix arg types.
1019         * sysdeps/stub/__ioctl.c: Add missing close paren.
1020         * sysdeps/stub/__getpgsz.c: Include <stddef.h> for size_t.
1021         * sysdeps/stub/__get[gu]id.c: Include <sys/types.h>; fix return type.
1022         * sysdeps/stub/__set[gu]id.c: Include <sys/types.h>; fix arg type.
1023         * sysdeps/stub/__mknod.c: Include <sys/types.h>; fix arg types.
1024
1025         * sysdeps/generic/termbits.h (INLCR, ISTRIP): Fixed typo'd values.
1026
1027         * stdio/stdio.h (vprintf): Fix last arg type to __gnuc_va_list.
1028         * stdio/vprintf.c (vprintf): Here too.
1029
1030         * malloc/malloc.c (malloc) [SUNOS_LOCALTIME_BUG]: Put this crap
1031         after hook and initialization.
1032
1033         * stdio/stdio.h (__validfp): Use a little anonymous struct to find
1034         the real stream ptr from in glue stream.  It used to rely on using
1035         `((int *) STREAM)[1]'; but that assumes no struct padding, and
1036         there will be some when int is 32 bits and pointers are 64.
1037
1038         * malloc/mtrace.c: Use %lx instead of %x for `size_t' formats.
1039
1040 Wed Jul 21 18:20:41 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
1041
1042         * malloc/malloc.c (malloc): Handle SUNOS_LOCALTIME_BUG.
1043
1044 Wed Jul 21 16:42:14 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1045
1046         * time/Makefile (extra-objs): Remove gratuitous - in `z.%'.
1047
1048         * Makefile [+gnu-stabs] (generated): Add $(objpfx)munch-init.c.
1049         (distclean): Also remove sysd-Makefile and sysd-dirs in $(objpfx).
1050         (distclean) [objdir]: Also remove $(objpfx)Makefile.
1051
1052         * sysdeps/posix/Makefile (generated): Add $(common-objpfx)mk-stdiolim.
1053         (generated, before-compile): Take defns out of ifeq ($(subdir),posix).
1054
1055         * sysdeps/unix/common/Makefile (generated): Include ctype-glue.c,
1056         not glue-ctype.c.
1057
1058         * sysdeps/unix/configure (unix_generated): New variable; collect
1059         names of created files in it.
1060         (config_vars): Write an assignment for `unix-generated' to that list.
1061         * sysdeps/unix/Makefile (generated): Append $(unix-generated)
1062         (with either $(objpfx) or $(sysdep_dir)/unix/ prepended to each file).
1063
1064         * Makefile (clean): Pass no_deps=t to subdir_clean make.
1065
1066 Sun Jul 18 21:42:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1067
1068         * malloc/malloc.c (malloc): After getting more core, recompute
1069         BLOCK before adding to _heapinfo[BLOCK].free.size.
1070
1071 Fri Jul 16 16:32:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1072
1073         * stdlib/Makefile (generated): Prepend $(objpfx).
1074         * sysdeps/unix/sysv/Makefile (generated): Likewise.
1075
1076         * sysdeps/posix/mktemp.c: Return when stat fails with ENOENT, not
1077         when it succeeds.
1078
1079 Wed Jul 14 14:51:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1080
1081         * locale/localeconv.c: Fix copying notice to LGPL.
1082
1083 Mon Jul 12 21:58:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1084
1085         * malloc/mcheck.c (reallochook): Set HDR->magic to MAGICWORD.
1086
1087 Mon Jul  5 15:55:08 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
1088
1089         * malloc/realloc.c (memmove): Swap the args when calling safe_bcopy.
1090
1091 Thu Jul  1 16:26:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1092
1093         * malloc/malloc.c [_LIBC] (_malloc, _free, _realloc): Define these
1094         functions to just call malloc, free, and realloc, respectively.
1095
1096 Wed Jun 30 16:42:10 1993  Torbjorn Granlund  (tege@gnu.ai.mit.edu)
1097
1098         * sysdeps/generic/memcmp.c (memcmp_bytes): New function for
1099         little endian machines.
1100         (memcmp_common_alignment, memcmp_not_common_alignment): Rework
1101         code computing return values.
1102
1103 Wed Jun 30 14:42:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1104
1105         * sysdeps/unix/Makefile (local_lim.h): Only generate local_lim.h
1106         if the sysdep version would be stub.
1107
1108         * sysdeps/unix/mk-local_lim.c: #include <stdio.h> before all else.
1109
1110         * configure.in (config_{machine,vendor,os}): Store config.sub's
1111         output in these new variables.
1112         (machine, vendor, os): Set these from those.
1113         (config-name.h, config.make): Write $config_* (the original values
1114         from config.sub).
1115
1116         * sysdeps/unix/sysv/sysv4/pgrpsys.S: Add arg count (3).
1117
1118 Tue Jun 29 02:47:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1119
1120         * Version 1.06.4.
1121
1122 Mon Jun 28 00:37:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1123
1124         * stdio/internals.c (__stdio_check_funcs): New function, broken out
1125         of init_stream.
1126         (init_stream): Call it.
1127         * sysdeps/posix/pipestream.c (popen): Call __stdio_check_funcs
1128         before frobnicating STREAM's functions.
1129
1130         * sysdeps/posix/pipestream.c (pclose): Free C, our data structure,
1131         not STREAM->__cookie after it's been restored.
1132
1133         * sysdeps/generic/strchr.c: Check for '\0' as well as C, in initial
1134         byte-by-byte loop.
1135
1136         * conf/portability.h: #undef BSD.
1137
1138 Sun Jun 27 23:46:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1139
1140         * sysdeps/unix/bsd/m68k/__wait.S [__motorola__]: Use Motorola syntax.
1141         * sysdeps/unix/bsd/m68k/sysdep.S: Likewise.
1142         * sysdeps/unix/bsd/m68k/__pipe.S: Likewise.
1143         * sysdeps/m68k/__longjmp.c (__longjmp) [__motorola__]: Use
1144         Motorola syntax in jmp insn.
1145
1146 Fri Jun 25 16:17:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1147
1148         * sysdeps/{stub,posix,unix/sysv/sysv4}/__sysconf.c (__sysconf):
1149         For _SC_TZNAME_MAX, just return __tzname_max ().
1150         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Define __sysconf, not
1151         sysconf.  For _SC_TZNAME_MAX, just jump to __tzname_max.
1152
1153         Undo June 21 change that made __tzname_max a variable
1154         and expected TZNAME_MAX to sometimes be defined.
1155         POSIX.1 does not require that it be defined; sysconf is enough.
1156         * time/time.h (__tzname_max): Declare as a function.
1157         * posix/posix1_lim.h: Don't include <tzname_max.h>.
1158         * sysdeps/stub/tzname_max.h: File removed.
1159         * time/Makefile (headers): Remove tzname_max.h.
1160         (distribute): Remove make-tzlim.c.
1161         (extra-objs): Remove make-tzlim.o and make-tzlim.
1162         ($(common-objpfx)tzname_max.h): Target removed.
1163         * time/make-tzlim.c: File removed.
1164         * time/__tzset.c (__tzname_cur_max): Define this variable instead
1165         of __tzname_max.
1166         (__tz_compute): Set __tzname_cur_max, not __tzname_max.
1167         (__tzname_max): New function.
1168         * time/tzfile.c (compute_tzname_max): Set __tzname_cur_max, not
1169         __tzname_max.
1170
1171         * malloc/malloc.h [_MALLOC_INTERNAL] [! (_LIBC || STDC_HEADERS || USG)]
1172         (memmove): Don't define.
1173         * malloc/realloc.c [!_LIBC && !STDC_HEADERS && !USG] (safe_bcopy):
1174         New static function.
1175         (memmove): Define to safe_bcopy.
1176
1177 Wed Jun 23 15:10:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1178
1179         * sysdeps/unix/sysv/sco3.2.4/pgrpsys.S: New file, #include sysv4 file.
1180         * sysdeps/unix/sysv/sco3.2.4/Dist: New file, list pgrpsys.S.
1181
1182 Tue Jun 22 02:44:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1183
1184         * sysdeps/unix/sysv/sco3.2.4/Makefile (sysdep_routines): Use
1185         pgrpsys instead of sco_pgrp.
1186         * sysdeps/unix/sysv/sco3.2.4/{Dist,sco_pgrp.S}: Files removed.
1187         * sysdeps/unix/sysv/sco3.2.4/__{getpgrp,setpgrp,setsid}.c: Just
1188         include the respective unix/sysv/sysv4 files.
1189
1190         * sysdeps/unix/sysv/sysv4/pgrpsys.S: New file.
1191         * sysdeps/unix/sysv/sysv4/__getpgrp.c: New file.
1192         * sysdeps/unix/sysv/sysv4/__setpgrp.c: New file.
1193         * sysdeps/unix/sysv/sysv4/__setsid.c: New file.
1194         * sysdeps/unix/sysv/sysv4/Dist: Add pgrpsys.S.
1195         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Add pgrpsys.
1196
1197         * sysdeps/unix/bsd/bsd4.4/__setsid.S: Moved from unix/sysv/sysv4.
1198         * sysdeps/unix/{bsd/sun/sunos4,bsd/ultrix4,sysv/linux}/__setsid.S:
1199         Include bsd4.4 instead of sysv4 file.
1200
1201 Mon Jun 21 19:08:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1202
1203         * posix/posix1_lim.h: #include <tzname_max.h>.
1204         * sysdeps/stub/tzname_max.h: New file (no-op).
1205         * time/make-tzlim.c: New file.
1206         * time/Makefile (headers): Add tzname_max.h.
1207         (distribute): Add make-tzlim.c.
1208         (extra-objs): Add make-tzlim.o and make-tzlim.
1209         ($(common-objpfx)tzname_max.h): New target.
1210
1211         * sysdeps/unix/sysv/sco3.2.4/confname.h (_SC_TZNAME_MAX): Define.
1212         * sysdeps/unix/sysv/sco3.2.4/__sysconf.S: Detect arg being
1213         _SC_TZNAME_MAX, and return max of TZNAME_MAX and __tzname_max.
1214
1215         * sysdeps/stub/__sysconf.c: Include <time.h> and <limits.h>.
1216         Handle _SC_TZNAME_MAX and return max of TZNAME_MAX and __tzname_max.
1217         * sysdeps/posix/__sysconf.c: Change _SC_TZNAME_MAX code to that.
1218         * sysdeps/unix/sysv/sysv4/__sysconf.c: Likewise.
1219
1220         * time/time.h (__tzname_max): Declare as variable, not function.
1221         * time/__tzset.c (__tzname_max): Function removed.
1222         (__tz_compute): Set the __tzname_max variable.
1223         * time/tzfile.c (compute_tzname_max): New function.
1224         (__tzfile_{read,default}): Call it.
1225
1226 Sun Jun 20 18:32:49 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1227
1228         * time/zic.c, time/asia: New versions from ADO.
1229
1230 Wed Jun 16 17:24:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1231
1232         * Version 1.06.3.
1233
1234 Fri Jun 11 15:44:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1235
1236         * sysdeps/unix/bsd/m68k/__pipe.S: Use `movel' instead of `moveal',
1237         which sun3 as does not appear to grok.
1238         * sysdeps/unix/bsd/sun/m68k/__vfork.S: Likewise.
1239
1240 Thu Jun 10 20:23:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1241
1242         * sysdeps/m68k/Makefile (as-pipe-ok): Define if -pipe is used in
1243         compiler invocations, or if using GNU as.
1244         (compile-command.S): Define using a pipe if `as-pipe-ok' is defined,
1245         otherwise with a temporary file.
1246
1247         * Makeconfig (gnu-as): Define if -DHAVE_GNU_AS appears in $(CPPFLAGS).
1248
1249 Wed Jun  9 15:14:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1250
1251         * configure.in (os frobnication): Turn underscores as well as
1252         lowercase Vs into dots in os name.
1253
1254         * sysdeps/unix/start.c [__GNUC__] (_start): Use asm name "start"
1255         only if [! NO_UNDERSCORES].
1256
1257 Tue Jun  8 14:51:00 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
1258
1259         * sysdeps/unix/bsd/ultrix4/mips/__handler.S: Don't save the stack
1260         pointer.
1261
1262 Mon Jun  7 21:01:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1263
1264         * time/Makefile (tzcompile): Remove -d switch, since zic-cmd has one.
1265
1266         * time/{private.h,zic.c}: New versions from ADO.
1267
1268         * sysdeps/unix/bsd/hp/m68k/__brk.S (error): Renamed label from `1',
1269         (__brk): Use DO_CALL instead of movel and trap.
1270
1271         * sysdeps/unix/bsd/sony/newsos4: Renamed sysdeps/unix/bsd/sony/newsos.
1272         * sysdeps/unix/bsd/sony/m68k/{Implies,sysdep.h}: Moved there.
1273
1274         * sysdeps/unix/bsd/hp/m68k/sysdep.h (DO_CALL): New macro, broken
1275         out of PSEUDO.
1276         (PSEUDO): Use it.
1277         * sysdeps/unix/bsd/sony/newsos4/m68k/sysdep.h
1278         (DO_CALL, PSEUDO): Likewise.
1279
1280         * configure.in: Set --with-gnu-{ld,as} for os=bsd4.4.
1281
1282 Fri Jun  4 14:11:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1283
1284         * sysdeps/i386/{strlen,memchr}.c: Use `repnz' instead of `repne'.
1285
1286         * time/Makefile (zonenames): Rename zones-* to z.* so they all fit
1287         in 14 chars.
1288         (extra-objs): Here too.
1289
1290         * sysdeps/unix/sysv/direct.h (D_RECLEN): New macro.
1291         * sysdeps/unix/readdir.c (D_RECLEN): If not defined, define to use
1292         `d_reclen' member.
1293         (readdir): Use D_RECLEN (DP) in place of DP->d_reclen.
1294
1295 Thu Jun  3 16:54:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1296
1297         * sysdeps/m68k/bytesex.h: New file.
1298
1299         * sysdeps/unix/ioctls-tmpl.c [sony_news]: Define KANJI before
1300         including <sys/ioctl.h>.
1301
1302 Wed Jun  2 17:45:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1303
1304         * malloc/Makefile (%.gz): Renamed target from %.z; use -v flag.
1305         (malloc/ChangeLog): Use mv -f.
1306
1307 Mon May 31 21:49:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1308
1309         * Version 1.06.2 released.
1310
1311         * manual/Makefile: Remove all uses of $(objpfx).  Since the
1312         generated files are distributed, they reside in the source
1313         directory.
1314
1315         * malloc/mtrace.c: #include <stdio.h>; malloc.h no longer does.
1316
1317         * sysdeps/posix/sleep.c: Restore signal mask to OSET before
1318         returning.  Save errno on entry and restore it before returning.
1319
1320         * Makeconfig (zonedir): New variable.
1321         * time/Makefile (localtime-file, posixrules-file, install-others,
1322         $(localtime-file), $(posixrules-file), tz-cc): Use $(zonedir) in
1323         place of $(datadir)/zoneinfo.
1324         (tzcompile): Omit -d switch.
1325         (zic-cmd): Add `-d $(zonedir)'.
1326
1327 Sun May 30 20:04:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1328
1329         * sysdeps/posix/stdio_init.c: (int)cookie is FD, not *(int*)cookie. 
1330
1331         * time/Makefile ($({localtime,posixrules}-file)): Don't pass -d
1332         switch (no need, since directory is compiled into zic).  Don't use
1333         $(<F) to find arg for -{l,p}; just use $({localtime,posixrules}).
1334
1335         * Makerules ($(libdir)/libc.a): Depend on installdirs.
1336
1337         * malloc/malloc.c (malloc): #if 0 out ``if (SIZE == 0) return NULL''.
1338
1339         * malloc/malloc.h [_MALLOC_INTERNAL]: Don't include <stdio.h>.
1340         [_MALLOC_INTERNAL]: Move config.h, limits.h, and mem* to front of file.
1341         (NULL): Move after stddef.h.
1342
1343         * malloc/valloc.c: Don't include config.h; malloc.h already did.
1344
1345         * malloc/malloc.c: Undo rms's change.
1346
1347         * malloc/mcheck.c, malloc/malloc.h: Undo rms's change.
1348
1349 Sat May 29 13:04:38 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
1350
1351         * malloc/malloc.c (malloc) [emacs]: If size is 0, make it 1.
1352
1353         * malloc/malloc.h (CONST): Define this always,
1354         rather than `const' sometimes.
1355         (memory_warnings): Use CONST, not __const, in decl.
1356         * malloc/mcheck.c (checkhdr): Use CONST, not const.
1357
1358 Fri May 28 18:29:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1359
1360         * sysdeps/unix/Makefile (ioctls): Use fgrep instead of egrep to
1361         omit unwanted symbols.  Filter the list of them through sort|uniq
1362         to remove duplicates first.
1363
1364         * sysdeps/unix/Makefile (errlist.c): Use dir and notdir
1365         functions to guarantee qualified path name for make_errlist.
1366
1367 Thu May 27 17:05:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1368
1369         * Version 1.06.1.
1370
1371         * sysdeps/sparc/Dist: Include sdiv.S, not div.S.
1372
1373         * sysdeps/unix/common/Dist: Remove make_siglist.c.
1374
1375         * stdio/internals.c: Declare __stdio_fileno before reference.
1376
1377         * sysdeps/generic/{memchr,strchr,strlen}.c: Abort if words are
1378         bigger than 64 bits.
1379
1380 Wed May 26 14:44:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1381
1382         * Makerules [objects] (install-others): Don't add libc.a to this.
1383         (install): Depend on $(libdir)/libc.a.
1384         (intall-no-libc.a): New target, depends on $(+install).
1385         (install): Don't depend on $(+install), just on install-no-libc.a.
1386         * Rules (subdir_install): Depend on install-no-libc.a, not install.
1387
1388         * Makefile ($(libc.a)): Don't depend on subdir_lib.
1389         (lib-noranlib): Depend on subdir_lib.
1390
1391         Make `fileno' a per-FILE io operation.
1392         * stdio/stdio.h (__io_fileno): New typedef.
1393         (__io_functions): Add `__fileno' member.
1394         (struct __stdio_file): Remove `__fileno' member.
1395         [__USE_POSIX] [__OPTIMIZE__]: Remove fileno macro defn.
1396         [__USE_POSIX] (fileno): Remove `const' from arg in prototype.
1397         * stdio/fileno.c (fileno): Rewritten to call STREAM's __fileno fn.
1398         * sysdeps/stub/sysd-stdio.c (__stdio_fileno): New function.
1399         (__stdio_open): Return an int (zero for win, nonzero for lose),
1400         and make third arg PTR * (filled in with cookie).
1401         * stdio/stdio.h (__stdio_open): Changed prototype.
1402         * sysdeps/posix/sysd-stdio.c (__stdio_open): Likewise.
1403         (__stdio_{read,write,seek,close}): Use (int) COOKIE as the fd, rather
1404         than *(int *) COOKIE.
1405         (__stdio_fileno): New function; just returns (int) COOKIE.
1406         * sysdeps/posix/fdopen.c: Set cookie to (PTR) FD; don't set fileno.
1407         * stdio/vdprintf.c: Likewise.
1408         * stdio/fmemopen.c: Set STREAM->__io_funcs.__fileno to NULL.
1409         Set STREAM->__cookie to NULL and don't use STREAM->__fileno.
1410         * stdio/internals.c (__default_io_functions): Add __stdio_fileno.
1411         * sysdeps/posix/defs.c (stdstream): Initialize __cookie to (PTR) FD
1412         Remove __fileno initializer.
1413         Add NULL initializer for __io_funcs.__fileno.
1414         * sysdeps/posix/pipestream.c (struct child): Remove `fd' member.
1415         Add `cookie' and `funcs' members.
1416         (FUNC): Macro to define child io_funcs.
1417         (child_funcs): New variable, __io_functions struct of them.
1418         (popen): Store STREAM's original cookie and io_funcs in CHILD, and
1419         then set STREAM->__cookie to CHILD and stream->__io_funcs to
1420         child_funcs.
1421         (pclose): Restore STREAM's original cookie and io_funcs before
1422         calling fclose.
1423
1424         * configure.in (autoconf checks): Add new check for a
1425         libc-friendly stddef.h.
1426
1427         * sysdeps/unix/configure: Remove __getpgrp from list of syscalls.
1428
1429         * sysdeps/generic/memchr.c: Handle 64-bit longwords.
1430         * sysdeps/generic/strlen.c: Likewise.
1431         * sysdeps/generic/strchr.c: Likewise.
1432
1433         * sysdeps/unix/sysv/sco3.2.4/Makefile: Remove gratuitous `.c'.
1434
1435         * Makerules [objects] (install-others): Add $(libdir)/libc.a to
1436         this, instead of adding $(libc.a) to install-lib.
1437         ($(libdir)/libc.a): New target to install from $(libc.a).
1438
1439         * sysdeps/unix/sysv/sco3.2.4/__setsid.S: New file.
1440         * sysdeps/unix/bsd/bsd4.4/__setsid.S: New file.
1441
1442 Mon May 24 16:49:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1443
1444         * sysdeps/unix/sysv/linux/__setsid.S: Moved to unix/sysv/sysv4,
1445         and replaced with #include of that.
1446         * sysdeps/unix/bsd/sun/sunos4/__setsid.S: New file.
1447         * sysdeps/unix/bsd/ultrix4/__setsid.S: New file.
1448
1449         * posix/Makefile (install): Define to getconf.
1450
1451         * crypt: New version from glad.
1452
1453         * sysdeps/unix/sysv/sysv4/__sysconfig.S: Renamed to sysconfig.S.
1454         * sysdeps/unix/sysv/sysv4/Makefile (sysdep_routines): Change reference.
1455         * sysdeps/unix/sysv/sysv4/Dist: Add sysconfig.S.
1456
1457         * sysdeps/generic/Makefile (siglist.c): Use dir and notdir
1458         functions to guarantee qualified path name for make_siglist.
1459
1460         * time/Makefile (tzcompile): Use $(@D) for target directory, not
1461         reference to nonexistent 4th dep.
1462         (localtime-file, posixrules-file): Turn these into absolute names.
1463         (install-others): Simply refer to them.
1464         ($(datadir)/zoneinfo/{localtime,posixrules}): Change targets of
1465         these rules to $(localtime-file) and $(posixrules-file), respectively.
1466         Use $(<D) for directory to pass zic.
1467
1468         * Makerules (installdirs): Use `sort' function to uniquize list of
1469         directories. 
1470
1471         * time/Makefile (install-others): Use $(datadir)/zoneinfo, not
1472         $(datadir)zoneinfo (missing /).
1473
1474         * Makerules (install-lib): Refer to `$(libc.a)' instead of `libc.a'.
1475
1476         * setjmp/sigjmp_save.c: Renamed to sigjmp.c.
1477         * setjmp/Makefile (routines): Change reference.
1478
1479         * sysdeps/unix/common/Makefile (siglist.c, make_siglist): Targets
1480         removed.
1481         * sysdeps/unix/common/make_siglist.c: File removed.
1482
1483 Sun May 23 01:00:00 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1484
1485         * manual/Makefile (minimal-dist): Remove COPYING.LIB.
1486         (doc-only-dist): Put it here.
1487
1488 Sun May 23 00:12:24 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1489
1490         * Version 1.06 released.
1491
1492         * sysdeps/sparc/Dist: Add {u,}{div,rem}.S.
1493
1494 Sat May 22 18:17:08 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1495
1496         * sysdeps/generic/make_siglist.c (main): Call signame_init, not
1497         init_sigs.
1498
1499         * Makerules (native-compile): Compile $^, not just $<.
1500
1501         * sysdeps/unix/i386/sysdep.h (PSEUDO): Omit `.text'.  Some
1502         assemblers don't like `.text; ...'.
1503
1504         * Rules (all): Mention as target first, so it is the default goal.
1505
1506         * sysdeps/unix/i386/sysdep.S: #undef syscall_error before using it
1507         as a label.
1508         [NO_UNDERSCORES]: Define __syscall_error instead of syscall_error.
1509
1510         * sysdeps/unix/readdir.c: Decrement d_namlen until it no longer
1511         includes any nulls.
1512
1513         * Makerules (+install-dirs): Variable removed.
1514         (install): Don't depend on $(+install-dirs).
1515         (installdirs): New target, to make $(dir $(+install)) using
1516         mkinstalldirs.  Make $(+install) depend on it.
1517         * Makefile (distribute): Add mkinstalldirs.
1518         * mkinstalldirs: New file.
1519
1520         * manual/Makefile (installdirs):
1521         New target, using mkinstalldirs to create $(infodir).
1522         ($(infodir)/libc.info): Depend on installdirs.
1523         (minimal-dist): Remove Makefile.
1524         (doc-only-dist): New variable, containing Makefile and mkinstalldirs.
1525         (*.tar): Depend on $(doc-only-dist).
1526
1527 Sat May 22 16:31:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1528
1529         Compile zoneinfo files directly into $(datadir)/zoneinfo, rather
1530         than compiling them into the source directory and then copying.
1531         * time/Makefile (zones-%): Put targets of generated rule in
1532         $(datadir)/zoneinfo, not zoneinfo.
1533         Don't make generated rules depend on zoneinfo/.
1534         (zonenames, zones-%): Write into $@.new and then use atomic mv.
1535         (zones, zoneinfo): Targets removed.
1536         (zoneinfo/localtime, zoneinfo/posixrules): Change targets to be in
1537         $(datadir)/zoneinfo; find $(localtime) and $(posixrules) there as well.
1538         ($(localtime-file), $(posixrules-file)): Targets removed.
1539         (install-data): Definition removed.
1540         (install-others): Include $(zonenames) from $(datadir)/zoneinfo; and
1541         $(localtime-file) and $(posixrules-file), from $(datadir)/zoneinfo
1542         if they are not absolute file names.
1543
1544         * time/zic.c (dolink): If FROMFILE or TOFILE begins with a slash,
1545         just set {FROM,TO}NAME to it, instead of prepending DIRECTORY.
1546         Don't free {FROM,TO}NAME if it is {FROM,TO}FILE.
1547
1548 Fri May 21 13:23:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1549
1550         * sysdeps/unix/i386/sysdep.S: Paste : onto syscall_error.
1551
1552         * sysdeps/unix/configure: Use grep -i when looking for syscalls.
1553         (unix_syscall_h): Ignore syscall.h found in sysdeps/stub.
1554         Remove __setpgrp from list of syscalls.
1555
1556         * sysdeps/unix/Makefile ($(common-objpfx)sys/param.h): Write defn
1557         for MAXHOSTNAMELEN.  The kludgemeister strikes again.
1558
1559         * posix/Makefile (glob/ChangeLog): Use mv -f.
1560
1561         * configure.in (os frobnication): Translate numbers separated by
1562         `v's into numbers separated by dots.
1563
1564         * sysdeps/unix/sysv/sco3.2.4/syscall.h: New file.
1565
1566         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: Rewritten to do the
1567         canonical wait3-style magic.
1568
1569         * sysdeps/unix/sysv/sco3.2.4/{Makefile,Dist,sco_pgrp.S,
1570         __getpgrp.c,__setpgrp.c,__setsid.c}: New files.
1571
1572         * Makerules ($(common-objpfx)stub-$(subdir)): Add /dev/null to
1573         inner sed command.
1574
1575         * manual/Makefile ($(objpfx)%.info, $(objpfx)%.dvi): New rules.
1576         ($(infodir)/libc.info): Take basename of each $<* before using it.
1577         (glibc-targets): Add stubs.
1578         (stubs, $(common-objpfx)stub-manual): New targets.
1579
1580         * time/Makefile (distribute): Add yearistype.
1581         * time/yearistype: New file.
1582
1583         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Don't use ARGS_4
1584         macro; just set %ecx to %esp instead.  Pop the stack before doing
1585         the system call, so the add doesn't clear the condition codes.
1586
1587         * sysdeps/unix/start.c [HAVE_GNU_LD]: Put `start' symbol alias
1588         under [! NO_UNDERSCORES && ! __GNUC__].
1589
1590         * sysdeps/unix/sysdep.h (C_LABEL): Use ## to paste NAME and : together.
1591
1592         * sysdeps/unix/i386/sysdep.h (DO_CALL): Add missing backslash.
1593
1594 Thu May 20 18:01:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1595
1596         * Makefile ($(+subdir_targets)): Remove old rule.  Replace with
1597         static pattern rule to depend on DIR/TARGET for each subdir and target.
1598         (all-subdirs-targets): Define variable to contain names of all
1599         those targets.
1600         ($(all-subdir-targets)): Define rule for these to do sub-make.
1601
1602         * sysdeps/unix/sysv/sysv4/direct.h (D_NAMLEN): Subtract one for
1603         the terminating null character.
1604         * sysdeps/unix/sysv/sco3.2.4/direct.h (D_NAMLEN): Copy defn from
1605         that file.
1606
1607 Thu May 20 11:02:59 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
1608
1609         * sysdeps/posix/__getpgsz.c: New file.
1610         * sysdeps/unix/sysv/sysv4/__getpgsz.c: New file, include the posix one.
1611         * sysdeps/posix/__getdtsz.c: New file.
1612         * sysdeps/unix/sysv/sysv4/__getdtsz.c: New file, include the posix one.
1613
1614         * sysdeps/unix/sysv/sysv4/{__sysconf.c, __sysconfig.S,
1615         sysconfig.h, Makefile, Dist}: New files.
1616
1617         * sysdeps/generic/confname.h (enum for sysconf): Add _SC_PAGESIZE.
1618         * sysdeps/posix/__sysconf.c: Include stddef.h.
1619         (__getpagesize): Declare.
1620         (__sysconf, case _SC_PAGESIZE): Call __getpagesize.
1621
1622 Wed May 19 14:03:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1623
1624         * manual/Makefile (routines, aux, sources, objects, headers):
1625         Define empty.
1626
1627         * Makeconfig (infodir): Define.
1628         * Makefile (+other_dirs): Add manual.
1629         * manual/Makefile: Include ../Makeconfig if it exists.
1630         (subdir): Export it.
1631         (find-includes): Output variable name is $(@F), not $@.
1632         (distribute): Export it.
1633         (mostlyclean, distclean, realclean, clean, subdir_clean): New targets.
1634         (install, subdir_install): New targets.
1635         (infodir, prefix, INSTALL_DATA, INSTALL): Define vars if undefined.
1636         ($(infodir)/libc.info): New target.
1637         (dist): Use ../Make-dist if it exists.
1638         (glibc-targets): New variable.
1639         ($(glibc-targets)): Make no-op targets.
1640
1641         * config.guess: New file, maintained by Cygnus.
1642         * configure.in: Move AC_PREPARE before arg lossage check.
1643         If $target is unset, try setting it from config.guess.
1644         * Makefile (distribute): Add config.guess.
1645
1646         * inet/getnetbyad.c: Change first arg type to int32_t.
1647         * inet/inet_mkadr.c: Change arg types to u_int32_t.
1648         * inet/inet_lnaof.c: Change return type to u_int32_t.
1649         * inet/inet_net.c: Likewise.
1650         * inet/inet_netof.c: Likewise.
1651         * inet/res_send.c, inet/res_query.c, inet/res_mkqry.c,
1652         inet/res_init.c, inet/res_debug.c, inet/res_comp.c,
1653         inet/inet_addr.c, inet/herror.c, inet/gethstnmad.c, inet/resolv.h,
1654         inet/netdb.h, inet/arpa/nameser.h, inet/arpa/inet.h:
1655         Snarfed latest code from BIND 4.9.1.
1656         * inet/sys/bitypes.h: New file.
1657         * conf/portability.h: New file.
1658         * inet/Makefile (headers): Add sys/bitypes.h.
1659         (distribute): Define to ../conf/portability.h.
1660
1661         * mach/__msg_destroy.c: Renamed to __msg_dest.c.
1662         * mach/mig_syms.c: Renamed from mig_support_syms.c.
1663         Added symbol alias for mig_strncpy.
1664         * mach/__mig_strncpy.c: Renamed to mig_strncpy.c.
1665         * mach/mig_strncpy.c: File removed.
1666         * mach/Makefile (routines): Remove __mig_strncpy; change
1667         mig_support_syms to mig_syms; change __msg_destroy to __msg_dest.
1668
1669         * sysdeps/posix/Makefile: Replace instances of `objpfx' and
1670         `objdir' with `common-objpfx' and `common-objdir'.
1671
1672 Mon May 17 16:29:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1673
1674         * time/asctime.c: Replace ` %2d' with `%3d' in FORMAT.
1675         (asctime): Check return from sprintf being <0, not <25.
1676
1677         * sysdeps/unix/opendir.c: Include <stdio.h> for BUFSIZ.
1678
1679         * sysdeps/unix/i386/sysdep.h (PSEUDO): Put ; after DO_CALL use.
1680
1681         * sysdeps/i386/ffs.c: Use `nonzero' for asm label, instead of `1f'.
1682
1683 Sun May 16 17:59:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1684
1685         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: Don't get fancy with
1686         xchg; just push $trampoline and then push our args again, pop them
1687         after the system call.
1688
1689         * time/tzfile.c (__tzfile_default): Don't assume TYPES[0] is
1690         standard and TYPES[1] is DST.  Instead, loop through all types:
1691         if a type's isdst flag is set, set its idx to STDLEN and its
1692         offset to DSTOFF; if isdst is clear, set its idx to 0 and its
1693         offset to STDOFF.
1694
1695         * time/__tzset.c: When __tzfile_default returns having set
1696         __use_tzfile, set __tzset_run before returning.
1697
1698         * sysdeps/posix/sleep.c: Block SIGALRM with sigprocmask before
1699         changing its handler.  Use sigaction instead of signal to set the
1700         handler.  Use sigsuspend to restore the blocked signals and pause
1701         atomically, instead of using pause.  Be sure to disable the alarm
1702         when a signal other than SIGALRM wakes sigsuspend.
1703
1704         * time/Makefile (zic-cmd): Put the directory before the nondirectory.
1705
1706         * Makerules (stubs): Remove surrounding `ifdef +depfiles'...`endif'.
1707
1708         * time/Makefile: Include ../Makeconfig before trying to use $(objpfx).
1709
1710         * time/tzfile.c (__tzfile_compute): When there are transitions and
1711         TIMER is not before the first one, find the first transition after
1712         TIMER, and then set I to the type of the transition before it.
1713         Set INFO from types[I], not types[type_idxs[I]].
1714
1715         * posix/Makefile (glob/configure): cd to glob before running autoconf.
1716
1717         * time/__tzset.c (compute_change): Don't add 1900 to YEAR.
1718         (__tz_compute): Add 1900 to the year we pass to compute_change.
1719
1720         * time/gmtime.c: After calling __offtime, zero tm_gmtoff and set
1721         tm_zone to "GMT".
1722
1723         * time/time.h [__OPTIMIZE__]: Remove gmtime macro version.
1724
1725         * time/tzfile.c (__tzfile_default): Fail if NUM_TYPES < 2, not if
1726         NUM_TYPES != 2.
1727
1728         * time/tzfile.c (__tzfile_compute): Don't take arg TM.
1729         Instead take new args long int *LEAP_CORRECT and int *LEAP_HIT.
1730         Don't apply leap second correction to __timezone; instead set
1731         *LEAP_CORRECT and *LEAP_HIT.
1732         * time/__tzset.c (tzset_run): Renamed to __tzset_run, made global.
1733         (__tzset): Change uses.
1734         (__tz_compute): Change use here as well.
1735         Make second arg be a `const struct tm *'.  Don't call __tzfile_compute.
1736         * time/localtime.c: Call __tzset if __tzset_run is clear.
1737         New local vars LEAP_CORRECTION and LEAP_EXTRA_SECS.
1738         If __use_tzfile is set, call __tzfile_compute and pass it their
1739         addresses.  Only need to call gmtime if __use_tzfile is clear.  If
1740         it is clear, pass result of gmtime to __tz_compute, instead of
1741         dereferencing it first; and zero LEAP_CORRECTION and LEAP_EXTRA_SECS.
1742         Subtract LEAP_CORRECTION from __timezone in __offtime call.
1743         After __offtime, add LEAP_EXTRA_SECS to TP->tm_sec.
1744
1745         * sysdeps/generic/strsep.c: Increment END when writing a null to
1746         it, and set *STRINGP to END rather than END+1, so *STRINGP never
1747         points past the null.
1748
1749 Sat May 15 17:10:02 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1750
1751         * time/strftime.c: Alphabetize switch cases.
1752         Add GNU extensions %h, %C, %k, %l.
1753
1754         * time/asctime.c: Make RESULT big enough for each %d to be 2^64.
1755         Protect against tm_wday and tm_mon being out of bounds; use "???"
1756         if they are.
1757
1758         * time/{emkdir,ialloc,scheck,zic,zdump}.c: New versions from ADO.
1759
1760         * time/africa, time/antarctica, time/asia, time/australasia,
1761         time/europe, time/northamerica, time/southamerica,
1762         time/pacificnew, time/etcetera, time/factory, time/systemv,
1763         time/solar87, time/solar88, time/solar89, time/leapseconds:
1764         Updated from Arthur David Olsen's latest.
1765
1766         * sysdeps/generic/__expm1.c, sysdeps/generic/asinh.c,
1767         sysdeps/generic/exp__E.c, sysdeps/generic/log.c,
1768         sysdeps/generic/log1p.c, sysdeps/generic/mathimpl.h,
1769         sysdeps/generic/pow.c, sysdeps/mach/hurd/__ioctl.c,
1770         sysdeps/mach/hurd/stdio_init.c, sysdeps/unix/bsd/clock.c: Put
1771         `const' qualifier always after storage classes.
1772
1773         * sysdeps/unix/bsd/sequent/i386/__sigvec.S (trampoline): Use
1774         `call', not `jsr'.
1775         (__sigvec): Exchange the scratch reg with 16(%esp) (fourth arg
1776         slot), not 0(%esp) (return PC slot).  Use ARGS_4 to point the
1777         syscall at the args.
1778
1779         * sysdeps/unix/common/__getgrps.c: When gid_t==int, and SIZE!=0,
1780         return N from __bsd_getgroups.
1781
1782         * posix/unistd.h (__need_NULL): Define before including <stddef.h>.
1783         1003.1-1990 2.7.1 says it should be here.
1784
1785 Sat May 15 14:54:25 1993  Noah Friedman  (friedman@nutrimat.gnu.ai.mit.edu)
1786
1787         * time/__tzset.c (compute_change): Add 1900 to YEAR, not 1970.
1788
1789 Fri May 14 21:24:19 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
1790
1791         * sysdeps/unix/sysv/sysv4/solaris2/start.c: Define NO_EXPLICIT_START.
1792         * sysdeps/unix/sparc/start.c [NO_EXPLICIT_START]: Don't asm
1793         `_start' into `start' (e.g., for Solaris).
1794
1795         * sysdeps/unix/sysv/sysv4/solaris2/sysdep.h: New file.
1796
1797 Fri May 14 19:34:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1798
1799         * malloc/Makefile: Remove depend-malloc dependency on malloc/gmalloc.c.
1800
1801         * posix/Makefile (headers): Add sys/unistd.h.
1802         * posix/sys/unistd.h: New file, just includes <unistd.h>.
1803
1804         * sysdeps/unix/common/glue-ctype.c (main): Define generated array
1805         as `unsigned char' rather than `char'.
1806
1807         * sysdeps/unix/start.c [__GNUC__]: Use asm frob to make `start'
1808         asm name of _start.
1809
1810         * sysdeps/unix/opendir.c [! _STATBUF_ST_BLKSIZE]: Don't fstat and
1811         use st_blksize; try BUFSIZ instead.
1812
1813         * sysdeps/unix/Makefile (ioctls): Don't use sed to remove final |
1814         from snarf-ioctls output; just append a dummy alternative instead.
1815
1816         * sysdeps/posix/__wait3.c: Fix arg types.
1817
1818         * Makerules ($(common-objpfx)stub-$(subdir)): Use @ for sed
1819         separator char.  Pass extra file /dev/null in case `...` gets empty.
1820
1821         * sysdeps/unix/sysdep.h (C_LABEL): Define new macro.
1822         * sysdeps/unix/i386/sysdep.h (ENTRY): Use it.
1823         * sysdeps/unix/sparc/sysdep.h (ENTRY): Likewise.
1824         * sysdeps/unix/sparc/__brk.S: Use C_LABEL and ENTRY instead of
1825         C_SYMBOL_NAME.
1826         * sysdeps/unix/i386/__brk.S: Use C_LABEL instead of C_SYMBOL_NAME.
1827
1828 Fri May 14 17:41:42 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
1829
1830         * sysdeps/mips/sqrt.c [HAVE_GNU_AS]: Use the IEEE 754 version of
1831         sqrt since gas can't handle the `sqrt.d' synthetic instruction.
1832
1833 Fri May 14 16:33:47 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1834
1835         * stdio/Makefile (routines): Add tempname.
1836
1837         * sysdeps/unix/common/make_siglist.c: #define const to empty
1838         around #include of <signal.h>.
1839
1840         * sysdeps/unix/errnos.awk: Surround generated `DO' macro calls
1841         with #ifdef on the E* symbol.
1842
1843         * sysdeps/unix/common/make_siglist.c [! HAVE_SYS_SIGLIST &&
1844         HAVE__SYS_SIGLIST]: Define sys_siglist to _sys_siglist.
1845
1846         * termios/Makefile (headers): Add termbits.h.
1847
1848         * posix/Makefile (headers): Add waitflags.h and waitstatus.h.
1849
1850         * math/math.h (struct __complex): Rename to struct __cabs_complex.
1851         __complex is now a reserved word in GCC.
1852         * sysdeps/generic/cabs.c (cabs): Likewise.
1853         * sysdeps/ieee754/cabs.c (cabs, z_abs): Likewise.
1854
1855         * sysdeps/unix/common/glue-ctype.c: Test for _ctype__ before _ctype_.
1856
1857         * posix/Makefile (headers): Add confname.h.
1858
1859 Thu May 13 00:25:53 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1860
1861         * ctype/Makefile (tags_sources): Don't define.
1862         * MakeTAGS [subdir==ctype] (tags_sources): Put headers before sources.
1863
1864         * time/__tzset.c (compute_change): Add 1970 to YEAR before using it.
1865
1866         * sysdeps/unix/readdir.c: Pass a BASEP arg to __getdirentries.
1867
1868 Wed May 12 20:36:51 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1869
1870         * Makefile (distribute): Add aclocal.m4.
1871
1872         * dirent/list.c (test): Clear errno before readdir loop.  Complain
1873         if errno is set thereafter.
1874
1875         * sysdeps/unix/sysv/sysv4/solaris2/utsnamelen.h: New file.
1876         * sysdeps/unix/sysv/sysv4/solaris2/__utimes.S: New file.
1877         * sysdeps/unix/sysv/sysv4/solaris2/sigaltstack.S: New file.
1878         * sysdeps/unix/sysv/sysv4/solaris2/Makefile: New file.
1879
1880         * sysdeps/unix/bsd/sun/sparc/start.c: Moved to sysdeps/unix/sparc.
1881         * sysdeps/unix/sparc/start.c: Moved from sysdeps/unix/bsd/sun/sparc.
1882         Surround all shared library frobnication code with #ifndef NO_SHLIB.
1883         * sysdeps/unix/sysv/sysv4/solaris2/start.c: New file.
1884
1885         * configure.in (os = solaris[2-9]*): base_os=unix/sysv/sysv4.
1886
1887         * sysdeps/sparc/setjmp.S: Include <sysdep.h>, not "DEFS.h".
1888         Use ENTRY(__setjmp) instead of FUNC(___setjmp).
1889
1890         * sysdeps/sparc/divrem.m4: [__svr4__]: Include <sys/trap.h>
1891         instead of <machine/trap.h>.
1892
1893         * sysdeps/sparc/__longjmp.S: Include <sysdep.h>, not "DEFS.h".
1894         Use ENTRY(__longjmp) instead of FUNC(___longjmp).
1895         [__svr4__]: Use <sys/trap.h> instead of <machine/trap.h>.
1896
1897         * sysdeps/unix/i386/sysdep.h (C_SYMBOL_NAME, SYS_ify): Moved to
1898         sysdeps/unix/sysdep.h.
1899         * sysdeps/unix/sparc/sysdep.h: New file.
1900         * sysdeps/unix/bsd/sun/sparc/sysdep.h: File removed.
1901
1902         * sysdeps/unix/sparc/__brk.S: New file.
1903         * sysdeps/unix/sparc/__brk.c: File removed.
1904
1905 Wed May 12 19:43:37 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
1906
1907         * malloc/cfree.c: Put malloc.h include in _MALLOC_INTERNAL conditional.
1908
1909 Wed May 12 16:24:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
1910
1911         * Makeconfig (+link): Put $(LDFLAGS) in the value.
1912         * sysdeps/unix/bsd/sun/sparc/Makefile (LDFLAGS): Set it.
1913
1914         * posix/glob.c: Move include <unistd.h> before dir includes.
1915         [HAVE_UNISTD_H] [! POSIX] [_POSIX_SOURCE]: Define POSIX.
1916
1917         * grp/initgroups.c [! NGROUPS_MAX || NGROUPS_MAX == 0]: Just
1918         return 0 and do nothing.
1919
1920         * sysdeps/unix/sysv/sco3.2.4/__{sys,path}conf.S: New files.
1921         * posix/unistd.h: Include <confname.h>; remove _{SC,CS,PC}_* defns.
1922         * sysdeps/generic/confname.h: New file.
1923         * sysdeps/unix/sysv/sco3.2.4/confname.h: New file.
1924
1925         * malloc/cfree.c: Include <malloc.h> instead of <stdlib.h>.
1926         [_LIBC]: Use function_alias only under this conditional.
1927         [! _LIBC] (cfree): Define a function that just calls free.
1928
1929         * posix/Makefile (glob.tar): Depend on glob/ChangeLog.
1930         (glob/configure): Just run autoconf, don't do a sub-make.
1931         (glob/ChangeLog): New target.
1932         (%.Z, %.z): New rules.
1933
1934 Mon May 10 16:56:09 1993  Jim Blandy  (jimb@geech.gnu.ai.mit.edu)
1935
1936         * malloc/cfree.c: Put the meat of the file inside a "#if
1937         defined(__GNU_LIBRARY__)" clause, so that gmalloc.c, which
1938         incorporates this file, can be used outside of the C library.
1939
1940 Sun May  9 16:57:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1941
1942         * stdio/fseek.c: Don't call __flshfp unless STREAM is writable.
1943
1944         * string/tester.c (main): Remove unused variable.
1945
1946         * sysdeps/unix/bsd/set[er][gu]id.c: New files.
1947
1948         * sysdeps/unix/mk-local_lim.c (NAME_MAX): Define to 255 if undefined.
1949
1950         * malloc/Makefile (malloc-dist): Add ChangeLog and mem-limits.h.
1951         (malloc/ChangeLog): New rule using Noah's changelog-extract.
1952         (malloc.tar): Use o flag to tar to make compatible archives.
1953         (gmalloc-routines): Add calloc, valloc, and cfree.
1954         (dist-routines): Remove [cv]alloc from here.
1955         (routines): Remove cfree from here.
1956
1957 Fri May  7 16:45:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
1958
1959         * sysdeps/posix/ttyname.c: Replace fixed-sized NAME array with
1960         static char *NAME and static size_t NAMELEN.
1961         Don't check S_ISCHR.
1962         Don't hack NAME before the loop.
1963         If need more than NAMELEN chars to hold the name, increase NAMELEN
1964         to more than big enough and malloc NAME.
1965         Save errno in local var SAVE before doing anything; restore it
1966         when returning non-error.
1967
1968         * Makefile (generated): Add $(objpfx)stubs.h.
1969         (README): New rule to call Make-dist to do the work.
1970
1971         * mach/Makefile: Don't include mach-syscalls.mk if no_deps=t.
1972
1973         * crypt/GNUmakefile (%.z): New rule for gzipping.
1974         (crypt.tar): Use o flag to tar to make compatible archives.
1975
1976         * Makeconfig: Find config.make in $(common-objpfx), not $(objpfx).
1977
1978         * io/Makefile (headers): Remove filebits.h.
1979
1980         * sysdeps/unix/sysv/sysv4/Dist: File removed.
1981
1982         * Makefile (README): Move from here.
1983         * Make-dist (README): To here.
1984
1985         * sysdeps/unix/Makefile (sys/param.h): Don't depend on sys/.  It
1986         was causing sys/param.h to be remade all the time.
1987
1988         * aclocal.m4 (GLIBC_PROVIDES): Add shell comment about configure
1989         being generated and not to be editted.
1990
1991         * sysdeps/unix/swapon.S: Moved to sysdeps/unix/common.
1992         * sysdeps/unix/configure: Add swapon to list of syscalls to check for.
1993
1994         * sysdeps/unix/mk-local_lim.c: New file, modified from
1995         sysdeps/unix/common/mk-local_lim.c.
1996         * sysdeps/unix/common/Makefile: Move local_lim.h rules from here.
1997         * sysdeps/unix/Makefile: Put them there.
1998         (local_lim-CFLAGS): Define new variable.
1999         (mk-local_lim): Replace $(native-compile) with its value plus
2000         $(local_lim-CFLAGS).
2001         * sysdeps/unix/common/Dist: Remove mk-local_lim.c.
2002         * sysdeps/unix/Dist: Add it here.
2003
2004         * Makerules (make-dummy-dep): New variable; canned command.
2005         ($(objpfx)%.dep: {$(objpfx),}%.s): New rules using $(make-dummy-dep).
2006         (sysd-Makefile): Write a $(objpfx)%.dep: $dir/%.s rule using it.
2007
2008         * misc/ioctl.c: Replace function_alias with:
2009         [HAVE_GNU_LD]: Use symbol_alias.
2010         [! HAVE_GNU_LD]: Write out the function; it must fetch its third arg
2011         with va_arg and then call __ioctl.
2012
2013 Thu May  6 14:56:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2014
2015         * misc/sys/ioctl.h (__ioctl, ioctl): Changed prototype to take 2
2016         args and ... rather than a 3rd __ptr_t arg.
2017         * sysdeps/stub/__ioctl.c: Changed defn.
2018
2019         * sysdeps/unix/bsd/sun/sunos4/tcflow.c: Include <sys/ioctl.h>.
2020
2021         * sysdeps/unix/Makefile (make-ioctls-CFLAGS): Define as
2022         -DHAVE_SYS_TERMIOS_H if $(sysincludedir)/sys/termios.h exists.
2023         (make-ioctls): Replace command `$(common-objdir-compile)' with
2024         that var's contents from Makerules, plus $(make-ioctls-CFLAGS).
2025         * sysdeps/unix/ioctls-tmpl.c [HAVE_SYS_TERMIOS_H]: Get <sys/termios.h>.
2026
2027         * misc/sys/ioctl.h: Include <sys/ttydefaults.h> after <ioctls.h>.
2028
2029         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfget[io]speed): Return the
2030         raw speed, rather than using it as an index into `speeds'.
2031         (cfset[io]speed): Treat SPEED being an index into `speeds' just as
2032         if it were the value of that element.
2033
2034         * termios/termios.h: Remove definitions of B[0-9]+ and EXT[AB].
2035         * sysdeps/generic/termbits.h: Put them here instead.
2036         * sysdeps/unix/bsd/sun/sunos4/termbits.h: Add new defns for those.
2037
2038         * sysdeps/unix/Makefile (termbits-edit): If termbits.h is not the
2039         generic version, set this to an | egrep command which filters out
2040         symbols appearing in termbits.h.
2041         (ioctls): Depend on $(sysincludedir)sys/termios.h if it exists.
2042         Pass all deps after first to snarf-ioctls.
2043         Put $(termbits-edit) in cmd line; it may be empty or a pipe.
2044         Pipe through sort|uniq before tr (just to cut down on duplicates).
2045
2046         * sysdeps/generic/Makefile, sysdeps/unix/Makefile: When deciding
2047         whether to generate files whose stub versions are chosen, also
2048         include the generation rules when the chosen directory is
2049         $(common-objpfx), so they continue to be defined after running once.
2050
2051         * sysdeps/posix/Makefile: Use patsubst instead of substition
2052         references when the substitution or replacement contains a $.
2053         Make has a bug (which I just fixed) with such substitution references.
2054
2055         * posix/wait3.c: Fixed arg types in fn alias.
2056         * posix/wait4.c: Likewise.
2057
2058         * sysdeps/posix/Makefile: Remove vpath %.h line.
2059         * Makerules: Add vpath %.h directive.
2060
2061         * sysdeps/posix/Makefile (generated, before-compile): Add
2062         $(common-objpfx)stdio_lim.h, not just plain stdio_lim.h.
2063
2064         * Makerules (depend-$(subdir)): Put $(objpfx) in the output, not
2065         its expansion.
2066         (+make-deps): Add sed clause to translate the expansion of
2067         $(objpfx) back into the variable reference.
2068
2069 Wed May  5 15:59:40 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2070
2071         * sysdeps/unix/sysv/sco3.2/local_lim.h: New file.
2072
2073         * sysdeps/unix/sysv/sco3.2/Makefile: New file
2074         * sysdeps/unix/sysv/sco3.2/Dist: New file.
2075         * sysdeps/unix/sysv/sco3.2/__fltused.c: New file.
2076
2077         * sysdeps/unix/configure: New file.
2078         * sysdeps/unix/inet/__select.S: Moved to sysdeps/unix/common.
2079         This is because select is a call sysdeps/unix/configure wants to
2080         check for, and it simplifies life for all those to be in unix/common.
2081
2082         * sysdeps/tahoe/Implies: Remove $(bsdmath)tahoe line.
2083
2084         * sysdeps/unix/sysv/sco3.2.4/{__sigact,__sigproc,
2085         sigpending,sigsuspend}.S: New files.
2086
2087         * Makefile (INSTALL): Depend on manual/maint.texi, not
2088         manual/maint.texinfo.  Use -- instead of + for long options.
2089
2090         * configure.in: After setting $sysnames initially and adding the
2091         FPU directory, expand and uniquize the list with code that used to
2092         be in find-sysdirs.  Make $sysnames blank-separated rather than
2093         newline-separated.  Generalize loop iterating over $sysnames, so
2094         it sets $uname and sources sysdep configure scripts.  Move
2095         sys_siglist and ctype checks to sysdeps/unix/common/configure.in.
2096         Set Make variable `config-sysdirs' to $sysnames in config.make,
2097         and don't frob Sysnames or sysdirs files at all.
2098         * find-sysdirs: File removed.
2099         * Makefile (distribute): Remove find-sysdirs.
2100         (sysd-dirs): Depend on config.make instead of config.make.
2101         Use $(sysdirs) in place of `cat $<`.
2102         * aclocal.m4: New file.
2103         * sysdeps/unix/common/configure.in: New file, contains checks for
2104         sys_siglist and ctype glue moved from top-level configure.in.
2105         * Makerules (sysdirs, Sysnames): Rules removed.
2106         Don't include sysdirs.
2107         (sysdirs): Define variable from $(config-sysdirs).
2108         (sysd-Makefile): Depend on config.make instead of sysdirs.
2109         Use $(sysdirs) instead of filtering the sysdirs file.
2110         * Make-dist (+sysdep-tsrcs): Include configure and configure.in
2111         from sysdep dirs.
2112         (dist.tar): Use o flag to tar for compatible archives.
2113         (dist): Depend on foo.z instead of foo.Z.
2114         ($(tardir){-crypt,}.tar.z): Renamed from .Z.
2115         (%.z: %): New rule.
2116         (%/configure: %/configure.in): New rule.
2117
2118 Mon May  3 17:45:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2119
2120         * sysdeps/unix/sysv/sco3.2.4/__waitpid.S: New file.
2121
2122         * sysdeps/unix/sysv/sco3.2.4/direct.h: New file.
2123
2124         * sysdeps/unix/readdir.c: Moved from unix/bsd, rewritten to always
2125         use __getdirentries and D_NAMLEN macro, no #ifdefs.
2126         * sysdeps/unix/sysv/readdir.c, sysdeps/unix/bsd/bsd4.4/readdir.c,
2127         sysdeps/unix/bsd/ultrix4/readdir.c,
2128         sysdeps/unix/bsd/hp/m68k/readdir.c,
2129         sysdeps/unix/bsd/sun/readdir.c: Files removed.
2130         * sysdeps/unix/common/{close,open,rewind,seek,tell}dir.c: Moved to
2131         sysdeps/unix.
2132         * sysdeps/unix/sysv/direct.h: New file.
2133         * sysdeps/unix/bsd/direct.h (D_NAMLEN): Define to use d_namlen.
2134         * sysdeps/unix/sysv/sysv4/direct.h (D_NAMLEN): Define to calculate
2135         from d_reclen.
2136         * sysdeps/unix/__getdents.c: New file.
2137         * sysdeps/stub/direct.h: New file.
2138         * sysdeps/unix/bsd/Dist: Remove bsddir.h.
2139         * sysdeps/unix/sysv/sysv4/readdir.c: Moved to unix/sysv.
2140         * sysdeps/unix/sysv/sysv4/bsddir.h: Renamed to direct.h.
2141         * sysdeps/unix/bsd/bsddir.h: Likewise.
2142         * sysdeps/unix/common/opendir.c: Include "direct.h", not "bsddir.h".
2143         * sysdeps/unix/sysv/sysv4/readdir.c: Likewise.
2144         * dirent/Makefile (distribute): Define to include direct.h.
2145
2146         * sysdeps/unix/common/opendir.c: Be sure to close FD if fcntl fails.
2147
2148         * sysdeps/generic/memcopy.h: #include <sys/cdefs.h> and use __P
2149         prototypes instead of EXFUN.
2150
2151         * sysdeps/generic/memcmp.c (__ptr_t, const): Define as appropriate
2152         conditional on [__cplusplus || __STDC__].
2153
2154 Thu Apr 29 21:48:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2155
2156         * Makefile ($(libc.a)): Make this, not lib, depend on subdir_lib.
2157
2158         * Makerules ($(objpfx)%.{o,dep} rules): Remove spurious / after
2159         $(objpfx) in dependency patterns.
2160
2161         * sysdeps/unix/bsd/sun/sparc/start.c (_start): Define with
2162         `asm ("start")', so its asm name is `start' rather than `__start'.
2163         Remove asm that did a `.set' pseudo-op, which Sun as seems not to grok.
2164
2165 Wed Apr 28 12:59:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2166
2167         * sysdeps/stub/system.c: Return 0 if LINE is nil.
2168
2169         * sysdeps/unix/__execve.S [!SYS_execve && SYS_exec]: Define
2170         SYS_execve to be SYS_exec.
2171
2172         * time/mktime.c: Include <sys/types.h>.
2173
2174 Mon Apr 26 17:10:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2175
2176         * sysdeps/generic/memcmp.c: Deansideclized.
2177         [HAVE_CONFIG_H]: Include "config.h".
2178         [HAVE_STRING_H || _LIBC]: Put #include <string.h> under this.
2179         [_LIBC]: Put #include <memcopy.h> under this conditional.
2180         [! _LIBC]: Define op_t, OPSIZ, byte, and MERGE.
2181
2182         * time/mktime.c: Define __isleap if not defined.
2183
2184 Fri Apr 23 18:08:33 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2185
2186         * sysdeps/unix/sysv/__getdents.c: New file.
2187         * sysdeps/unix/sysv/sysv4/sys_getdents.S: Moved to unix/sysv.
2188         * sysdeps/unix/sysv/Makefile [subdir==dirent]: Add sys_getdents to
2189         sysdep_routines.
2190         * sysdeps/unix/sysv/Dist: Add sys_getdents.S.
2191         * sysdeps/unix/sysv/sysv4/Dist: Remove it from here.
2192         * sysdeps/unix/sysv/sysv4/Makefile: File removed.
2193
2194 Thu Apr 22 17:40:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2195
2196         * sysdeps/unix/bsd/sony/newsos4/m68k/sysdep.h: New file.
2197
2198         * sysdeps/generic/strsep.c: Set *STRINGP to END+1, not END.
2199
2200         * configure.in (arg parsing): Grok --verbose and set verbose=yes.
2201
2202         * sysdeps/sparc/{umul,mul}.S: Remove ' from ! comment.
2203
2204         * sysdeps/sparc/Makefile (*.S): Find divrem.m4 in this sysdeps dir.
2205
2206         * sysdeps/unix/bsd/sun/sunos4/speed.c (cfset[io]speed): Typo fix.
2207
2208         * sysdeps/unix/bsd/sun/sparc/vfork.S: Use a sethi insn and %g1 as
2209         a temporary, rather than expecting the address to fit into a short
2210         jump.
2211
2212         * sysdeps/unix/bsd/__fork.S: Moved to sysdeps/unix/__fork.S; we
2213         want unix/MACHINE/__fork.S to come first.
2214
2215         * sysdeps/unix/bsd/bsd4.4/__wait3.c: Make STAT_LOC type
2216         `__WAIT_STATUS' (defined in <sys/wait.h>).
2217         * sysdeps/unix/bsd/sun/sunos4/__wait4.c: Likewise.
2218
2219         * signal/sigvec.c: Change args from `struct __sigvec *' to
2220         `struct sigvec *' in function alias.
2221
2222         * signal/sigproc.c: Make arg SET `const sigset_t *' in fn alias.
2223
2224         * signal/sigaction.c: Change args from `struct __sigaction *' to
2225         `struct sigaction *' in function alias.
2226
2227         * sysdeps/unix/common/glue-ctype.c (main) [! TABLE]: Write just a
2228         comment saying we don't know the table name, rather than barfing
2229         with `TABLE' an undefined variable.
2230
2231         * sysdeps/generic/printf_fp.c: Fixed test to chose %e format.
2232         Make loop condition --J > 0; break out of loop when FPNUM < F.
2233         After loop, use %e format iff J <= 0.
2234
2235         * posix/glob/Makefile.in (.c.o): Put $(CFLAGS) last.
2236         (glob.o): Depend on glob.c.
2237         (fnmatch.o): Depend on fnmatch.c.
2238
2239 Wed Apr 21 12:40:03 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2240
2241         * sysdeps/posix/Makefile (before-compile): Add stdio_lim.h.
2242
2243         * configure.in (signed size_t test): Remove 's from rhs of AC_DEFINE.
2244
2245         * stdio/internals.c (seek_to_target): If __stdio_check_offset
2246         fails with ESPIPE, do nothing.
2247
2248         * sysdeps/generic/printf_fp.c: For %e type, add K-1 to CUTOFF,
2249         rather than K.
2250         When there are no post-decimal digits, never write a decimal point
2251         for a %g spec unless it had a # modifier.
2252         Move K==-1 test to write decimal point before K==CUTOFF test to
2253         round and write last digit.
2254         Merge code for first post-decimal digit with code for remaining digits.
2255         Move code to write leading fractional zeros inside K<0 test which
2256         determines if any will be needed.
2257         In decimal fraction notation code, use R10 temporary instead of
2258         repeating (R * 10) twice.
2259
2260         * stdio/fwrite.c: Only fail when __stdio_check_offset fails if it
2261         failed with ESPIPE.  If offset==-1, don't change it or target.
2262
2263         * sysdeps/posix/defs.c (stdstream): Rearrange initializers, as
2264         FILE has been rearranged.  Set offset and target to -1, not 0.
2265
2266         * sysdeps/posix/stdio_init.c: If STREAM isatty, set its seek
2267         function to NULL.  Unix bites.
2268
2269         * stdio/ungetc.c: Call __flshfp if linebuf_active or put_limit>buffer.
2270
2271         * sysdeps/unix/bsd/sun/sparc/start.c [__GNUC__ < 2]: #error.
2272
2273         * time/mktime.c: Deansideclized.
2274         Don't include <errno.h> or <limits.h>; we don't need them.
2275         [DEBUG] (printtm): Made static.
2276         [HAVE_CONFIG_H]: Include "config.h".
2277         [__GNU_LIBRARY__ || HAVE_LIMITS_H]: Surround #include <limits.h>
2278         with these conditionals.
2279
2280         * time/offtime.c (__mon_lengths): Move defn to mktime.c; replace
2281         with extern decl.
2282         * time/mktime.c (__mon_lengths): Define here; remove extern decl.
2283
2284 Mon Apr 19 18:42:59 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2285
2286         * sysdeps/stub/tempname.c: New file.
2287         * sysdeps/stub/sysd-stdio.c (__stdio_gen_tempname): Moved there.
2288         * sysdeps/posix/tempname.c: New file.
2289         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Moved there.
2290
2291         * stdio/fopen.c: Don't set the offset to zero.  That can falsely
2292         give the impression that an unseekable object is seekable.
2293
2294         * stdio/internals.c (__flshfp): Discard any pushed back character
2295         first thing after sanity checks.
2296         (__flshfp): Deconditionalize code to call the output-room
2297         function; we always want to give it a chance to prime the stream.
2298         Remove code that reset bufp if put_limit==buffer.  We want to let
2299         the output-room function do that--that is priming the stream.
2300
2301 Fri Apr 16 12:24:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2302
2303         * Makerules ($(libc.a)): Depend on lib-noranlib and have ranlib
2304         command line.
2305         (lib): Just depend on $(libc.a).
2306
2307         * sysdeps/unix/bsd/sun/sparc/start.c (init_shlib): Use __environ,
2308         not environ.
2309
2310         * stdio/internals.c (__flshfp): Don't check that the buffer
2311         actually contains anything when setting the put_limit to the end of
2312         the buffer if linebuf_active.
2313         (__flshfp): To write C into the buffer !FLUSH_ONLY, don't check
2314         that bufp > buffer and get_limit == buffer.  Check against
2315         put_limit unless linebuf_active (in which case check against the
2316         real put_limit, fp->__buffer + fp->__bufsize).
2317         (__flshfp): Bother to call the output-room function if !FLUSH_ONLY
2318         or bufp > buffer and get_limit <= linebuf-corrected put_limit.
2319         (__flshfp): Check for a NULL output-room function before checking
2320         if C will fit in the buffer.
2321         (flushbuf): After putting C into the buffer,
2322         set BUFFER_WRITTEN to zero and goto end instead of returning.
2323
2324         * stdio/ungetc.c: Test STREAM->__pushed_back before flushing the
2325         STREAM if it's writable.
2326
2327         * posix/glob.c, posix/fnmatch.c: Surround code with 
2328         #if defined (_LIBC) || !defined (__GNU_LIBRARY__)
2329
2330 Thu Apr 15 19:35:59 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2331
2332         * string/tester.c (main): Added tests for strsep.
2333
2334         * sysdeps/ieee754/frexp.c: New file.
2335
2336 Wed Apr 14 12:49:10 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2337
2338         * Makerules (ar-it): Add c flag to ar commands.
2339
2340         * posix/glob.c [USG, NeXT]: Don't test these.
2341         [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
2342         [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
2343         [! ANSI_STRING]: Put decls of bcopy and #define of memcpy et al here.
2344
2345         * posix/fnmatch.c [HAVE_CONFIG_H]: #include "config.h".
2346
2347 Mon Apr 12 16:34:53 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2348
2349         * posix/glob.c: Rationalize directory header conditionals.
2350
2351 Sun Apr 11 18:53:50 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2352
2353         * stdio/internals.c: Remove __libc_fatal.
2354         * sysdeps/stub/sysd-stdio.c: Remove __stdio_errmsg.
2355         * sysdeps/posix/sysd-stdio.c: Likewise.
2356         * sysdeps/stub/libc_fatal.c, sysdeps/posix/libc_fatal.c: New files.
2357         * stdio/Makefile (routines): Add libc_fatal.
2358
2359         * stdio/stdio.h (FILE): Add new member `__linebuf_active' (flag).
2360         Rearranged order of members slightly.
2361         * stdio/setvbuf.c: Clear the linebuf_active flag.
2362         * stdio/fseek.c: Likewise.
2363         * stdio/internals.c (__flshfp): Test linebuf_active, not linebuf,
2364         to decide to reset put_limit before calling the output-room function.
2365         After calling it, if line-buffered, set put_limit to the
2366         beginning of the buffer and set the linebuf_active flag.
2367         (__fillbf): If linebuf_active is set, reset put_limit to the end
2368         of the buffer, and clear the flag.
2369
2370         * stdio/ungetc.c: If STREAM is writable and has something in its
2371         buffer, flush it.
2372
2373         * stdio/internals.c (__fillbf): When flushing all line-buffered
2374         streams, don't test for their put_limits being > than their
2375         buffers.  We should let __flshfp figure it out.
2376
2377         * stdio/setvbuf.c: Always set the put_limit to the beginning of
2378         the buffer.
2379
2380         * stdio/stdio.h (__putc): Rewritten to remove all knowledge of
2381         magic for line-buffered streams.  It now always calls __flshfp when
2382         the bufp hits the put_limit.
2383
2384         * stdio/fwrite.c: When recalculating BUFFER_SPACE after calling
2385         __flshfp, ignore the put_limit for the sake of line-buffered streams.
2386
2387         * stdio/fseek.c (fseek): Call __flshfp on STREAM unconditionally.
2388         We don't want to try to put the conditions for when it is
2389         necessary here as well.
2390
2391         * sysdeps/generic/printf_fp.c: When deciding whether to use %e
2392         format for %g, break out of the loop on J as soon as F reaches
2393         FPNUM; after the loop, set TYPE to 'e' if J<0, meaning we went all
2394         the way through.
2395
2396         * misc/getpass.c (TCSASOFT): Define to 0 if undefined.
2397         (getpass): Use a variable OUT to store the stream where output goes.
2398         Use a variable NREAD to notice how much was read; if the last char
2399         in the buffer is a newline, clobber it to a null terminator.
2400
2401         * posix/fnmatch.h [__cplusplus || __STDC__]: Don't #define const.
2402
2403 Thu Apr  8 19:29:37 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2404
2405         * stdio/tst-printf.c (main): Added some floating-point tests.
2406
2407         * sysdeps/unix/bsd/sequent/i386/__sigvec.S: New file.
2408
2409         * sysdeps/unix/sysv/i386/__sigret.S: Moved to sysdeps/unix/i386.
2410         Use DO_CALL instead of magic.
2411
2412         * sysdeps/unix/bsd/i386/__wait3.S: Use DO_CALL instead of magic.
2413         Use scratch instead of %ecx and r1 instead of %edx.
2414
2415         * sysdeps/unix/bsd/i386/__vfork.S: Rewritten to not use SYSCALL__.
2416         Use DO_CALL instead, and save the return PC in a register around
2417         the trap.
2418
2419         * sysdeps/unix/i386/sysdep.h (DO_CALL): New macro to do syscall trap.
2420         (PSEUDO): Use it instead of putting the code here.
2421
2422         * stdio/vfprintf.c (number): Write "0x" before padding, not after.
2423
2424         * sysdeps/unix/bsd/sequent/i386/sysdep.h: New file.
2425
2426         * sysdeps/unix/bsd/__setuid.c: #include <sys/types.h>.
2427         Change argument type to uid_t.
2428         * sysdeps/unix/bsd/__setgid.c: #include <sys/types.h>.
2429         Change argument type to gid_t.
2430
2431         * sysdeps/unix/common/__getgrps.c: Restore errno after erroneous
2432         syscall failure.
2433
2434         * stdio/tst-printf.c (fp_test): New function, batch of tests from
2435         a bug report.
2436         (main): Call it.
2437
2438 Wed Apr  7 17:17:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2439
2440         * sysdeps/generic/pow.c (pow_p): Don't initialize K; was a dead store.
2441
2442 Mon Apr  5 21:17:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2443
2444         * sysdeps/unix/common/__getgrps.c: If __bsd_getgroups returns an
2445         error and SIZE==0, alloc temp space for NGROUPS_MAX elts and call
2446         it again on that, so we can find the number of groups.
2447
2448         * stdio/__vfscanf.c (input_error): If DONE is nonzero, return it;
2449         else return EOF.
2450         (%c): Don't check for C==EOF at the end; let the following spec get it.
2451         (%[eEfgG]): EOF after sign is conv_error, not input error.
2452
2453         * sysdeps/unix/common/__getgrps.c: If gid_t==int, pass LIST to
2454         __bsd_getgroups, not NULL.
2455         No error for SIZE > NGROUPS_MAX.
2456
2457 Sun Apr  4 18:52:34 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2458
2459         * sysdeps/unix/{bsd,sysv}/i386/Implies: Files removed.
2460         They should no longer be necessary, since configure now tries more
2461         sysdeps directory permutations.
2462
2463         * sysdeps/unix/bsd/{i386,sun/sparc,hp/m68k,ultrix4/mips}/__set[ug]id.S:
2464         Files removed.  They should no longer be necessary, since the new
2465         sysdeps scheme should find unix/bsd/__set[gu]id.c before
2466         unix/__set[gu]id.S.
2467
2468         * sysdeps/unix/i386/__pipe.S: Use r1 in place of %edx and scratch
2469         in place of %ecx.
2470         * sysdeps/unix/i386/__wait.S: Likewise.
2471         * sysdeps/unix/i386/__fork.S: Use r1 in place of %edx and r0 in
2472         place of %eax.
2473         * sysdeps/unix/i386/__vfork.S: Likewise.
2474         * sysdeps/unix/i386/sysdep.h (scratch): #define as %ecx.
2475         * sysdeps/unix/sysv/i386/linux/sysdep.h: Likewise.
2476
2477         * configure.in ($uname = generic): Set kernel_{version,release} to
2478         empty before all else.
2479         If /vmunix doesn't exist, try grovelling over /dynix instead.
2480
2481         * sysdeps/unix/Makefile (syscall.h): Double $ in sed cmd.
2482
2483 Fri Apr  2 15:15:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2484
2485         * configure.in (config_vars): New variable; text to go in config.make.
2486         Use AC_HEADER_EGREP to grovel stdarg.h for __gnuc_va_list and set
2487         stdarg.h in config_vars if we find it.
2488
2489         * sysdeps/unix/bsd/sun/sunos4/tcsendbrk.c,
2490         sysdeps/unix/bsd/sun/sunos4/tcflow.c,
2491         sysdeps/unix/bsd/sun/sunos4/tcflush.c,
2492         sysdeps/unix/bsd/sun/sunos4/tcsetattr.c,
2493         sysdeps/unix/bsd/sun/sunos4/__tcgetatr.c: New files.
2494
2495         * sysdeps/unix/Makefile (syscall.h): Add sed cmd to terminate
2496         unterminated comments at the ends of lines.
2497
2498         * sysdeps/posix/getcwd.c: Deansideclized and added four tons of
2499         portability goop.
2500
2501 Mon Mar 29 13:18:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2502
2503         * sysdeps/unix/bsd/sun/sunos4/speed.c: New file.
2504
2505         * sysdeps/generic/termbits.h: New file, contents taken from termios.h.
2506         * termios/termios.h: Remove type & macro defns; #include <termbits.h>.
2507         [__OPTIMIZE__] (cf[gs]et[io]speed): Remove macro versions.  They
2508         just cause trouble because they want to be in termbits.h (since
2509         they are sysdep) and also to come after the prototypes (which must
2510         come after termbits.h to get speed_t and struct termios defined).
2511         The optimization was insignificant anyway.
2512         * termios/speed.c: Moved to sysdeps/generic.
2513
2514         * termios/cfsetspeed.c: Call cfset[io]speed, rather than doing it
2515         ourselves.
2516
2517         * time/__tzset.c (tz_rule): Make member `secs' not a bitfield.
2518         (compute_change): Complete rewrite; code basically stolen from
2519         localtime3/localtime.c:transtime.
2520         #include "tzfile.h" for SECSPERDAY; #define NOID first.
2521
2522         * sysdeps/unix/bsd/i386/__vfork.S: Don't try to #include __fork.S.
2523         Instead, copy that code here and change `fork' to `vfork'.
2524
2525         * Makeconfig (+default_cflags): Rename to default_cflags.
2526         (+cflags): Use that name.
2527
2528         * Makefile (configure): New rule.
2529
2530 Sun Mar 28 16:12:33 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2531
2532         * posix/fnmatch.c (case '*'): Before final loop, fold C1, rather
2533         than foling *P before it goes into C1.  C might need folding instead.
2534
2535         * posix/Makefile (tests): Add testfnm.
2536         * posix/testfnm.{c,args}: New files.
2537
2538 Fri Mar 26 15:04:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2539
2540         * time/mktime.c: Wholly new implementation from Noel Cragg.
2541
2542         * sysdeps/unix/bsd/sun/__sigret.S: New file.
2543         * sysdeps/unix/bsd/sun/m68k/{Makefile,Dist}: New files.
2544         * sysdeps/unix/bsd/sun/m68k/{sigcontext.h,sigtramp.c}: New files.
2545         * sysdeps/unix/bsd/sun/sparc/__sigvec.S: Moved to sysdeps/unix/bsd/sun.
2546
2547         * Makefile (clean): Remove sysd-Makefile, sysd-dirs, sysdirs
2548         (distclean): New target.
2549         * sysdeps/unix/common/Makefile (generated): Add local_lim.h,
2550         mk-local_lim, glue-ctype, glue-ctype.c, siglist.c, make_siglist.
2551         * sysdeps/generic/Makefile (generated): Add bytesex.h,
2552         det_endian, siglist.c, make_siglist.
2553         * sysdeps/unix/Makefile (generated): Add errnos.h, errnos,
2554         make-errnos, make-errnos.c, ioctls.h, ioctls, make-ioctls,
2555         make-ioctls.c, errlist.c, make_errlist, syscall.h, sys/param.h,
2556         param.h.c, param.h.dep, $(sys/param.h-includes).
2557
2558         * misc/Makefile (extra-objs): Define new var to include bsd-compat.o.
2559
2560 Fri Mar 26 14:53:30 1993  Michael John Haertel  (mike@skinner.cs.uoregon.edu)
2561
2562         * malloc/malloc.c (malloc): Start searching at _heapindex, not
2563         MALLOC_SEARCH_START.
2564         * malloc/malloc.h (MALLOC_SEARCH_START): Macro removed.
2565         * malloc/realloc.c (realloc): When malloc returns NULL, handle the
2566         case of the block we need to unfree (which was just freed) having
2567         been coalesced with its neighbors.
2568
2569 Thu Mar 25 13:40:17 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2570
2571         * Rules (all): Depend on others.
2572
2573         * time/Makefile (zonenames): Change target to $(objpfx)zonenames.
2574         Make the generated file prepend $(objpfx) to 
2575         Include that instead of zonenames.
2576         (zones-%): Change target to $(objpfx)zones-%.
2577
2578         * Makefile ($(objpfx)Mcrt1.o): Put temporary Mcrt1.c file in
2579         $(objdir), rather than the current directory.
2580
2581         * configure.in (arg parsing): Recognize `--exec-prefix' rather
2582         than `--exec_prefix'.
2583
2584         * Rules (mostlyclean): Remove the .o files for $(tests) and $(others).
2585         Remove $(objpfx)depend-$(subdir).
2586         (clean): Remove $(extra-objs).
2587         * Makefile (clean): Remove $(install-lib) from $(objdir).
2588         Don't try to remove ansi/ and trad/ or dist.tar or lint.out.
2589         Remove $(objpfx)depend-.
2590         * time/Makefile (extra-objs): Define new var.
2591         * malloc/Makefile (extra-objs): Likewise.
2592
2593         * Rules (+objs): Variable removed.
2594         (clean): Use $(objects) in place of $(+objs).
2595
2596         * sysdeps/unix/Makefile (sys/param.h-includes): Move all this
2597         outside of ifeq ($(subdir),misc).
2598         Fixed sed command to filter out [hn]to[nh][sl].
2599         (sys/param.h-includes): New target; dep on $(sys/param.h-includes).
2600
2601         * posix/fnmatch.h [!_POSIX_C_SOURCE || ...]: Make this test
2602         _GNU_SOURCE, not _BSD_SOURCE; these are our extensions, not theirs.
2603         (FNM_CASEFOLD): New bit.
2604         (__FNM_FLAGS): Removed macro.
2605         * posix/fnmatch.c (fnmatch): Don't test for bogus flag bits; who cares?
2606         (FOLD): New macro to casefold a char if FNM_CASEFOLD.
2607         Use it to fold all chars before comparison.
2608
2609 Wed Mar 24 16:09:26 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2610
2611         * malloc/Makefile (malloc/%.c, malloc/%.h): Rules removed.
2612
2613         * stdio/stdio.h (fopencookie): Rename parameter IO_FUNCTIONS to
2614         IO_FUNCS.  The former conflicted with a typedef name, which ist
2615         verboten.
2616
2617         * time/sys/time.h (enum __itimer_which): Remove trailing comma.
2618
2619 Mon Mar 22 15:35:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2620
2621         * malloc/malloc.h [_MALLOC_INTERNAL]
2622         [__GNU_LIBRARY__ || STDC_HEADERS || USG] (memmove): Define in
2623         terms of bcopy.
2624         * malloc/malloc/gmalloc-head.c: Redo previously undone change.
2625
2626 Thu Mar 18 04:59:21 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
2627
2628         * malloc/malloc/gmalloc-head.c: Undo previous change.
2629
2630 Wed Mar 17 12:22:21 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2631
2632         * mach/mach.h: New file.
2633
2634         * Rules (clean): Remove $(generated), not $(clean-extras).
2635         (subdir_echo-distinfo): Use $(generated) instead of $(dont_distribute).
2636         (generated): Export this instead of dont_distribute.
2637         * stdlib/Makefile (generated): Set this, not dont_distribute.
2638         * sysdeps/posix/Makefile: Likewise.
2639         * sysdeps/unix/sysv/Makefile: Likewise.
2640         * sysdeps/unix/Makefile: Likewise.
2641         * Makefile (generated): Export this instead of dont_distribute.
2642         (parent_echo-distinfo): Use $(generated) instead of $(dont_distribute).
2643         * Make-dist (+tsrcs): Filter out $(generated), not $(dont_distribute).
2644
2645         * mach/mach_init.h (__mach_task_self): Define so as not an lvalue.
2646         (mach_task_self): Surround defn with parens.
2647
2648         * sysdeps/unix/Makefile (sys/param.h): Put "#include <endian.h>" in.
2649         ($(sys/param.h-includes)): Edit out #define's of *_ENDIAN and
2650         BYTE_ORDER.
2651
2652         * stdlib/tst-strtol.c (tests): Fully bracket initializers.
2653
2654         * stdio/bug4.c: Change #ifdef LIBC to #ifdef _LIBC.
2655
2656         * misc/progname.c (set_progname): Make a useless reference to
2657         set_progname to avoid a `defined but not used' warning.
2658
2659         * sysdeps/mach/i386/start.c (_cthread_{init,exit}_routine): Remove
2660         `extern'; these want to be uninitialized common defns.
2661
2662 Mon Mar 15 18:41:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2663
2664         * sysdeps/unix/bsd/__times.c (timeval_to_clock_t): Put __inline
2665         before storage class in defn.
2666
2667         * sysdeps/unix/sysv/signum.h (SIG_ERR, SIG_DFL, SIG_IGN): Cast
2668         values to __sighandler_t, rather than obsolete ansidecl magic.
2669
2670         * sysdeps/unix/__execve.S [!SYS_execve && SYS_exece]: Define
2671         SYS_execve to be SYS_exece.
2672
2673         * sysvipc: New directory.
2674         * sysvipc/Makefile: New file.
2675         * sysvipc/sys/ipc.h: New file.
2676
2677 Fri Mar 12 15:31:44 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2678
2679         * posix/execlp.c (execlp): Remove spurious second declared parameter.
2680         Don't fill ARGV[0] specially; just let the loop do it.
2681         * posix/unistd.h (execlp): Remove spurious second declared parameter.
2682
2683 Thu Mar 11 13:58:47 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2684
2685         * Makerules (sysd-Makefile): Write %.dep: %.S and %.dep: %.c rules.
2686         Depend on Makerules.
2687         ($(objpfx)%.{o,dep}: $(objpfx)/%.{S,c,s}): New rules to find
2688         sources in $(objpfx) before sysdep directories.
2689
2690         * configure.in (signed size_t check): Use eval on $CPP, since it
2691         contains unexpanded variable refs.
2692         Send grep output to /dev/null.
2693         Put quotes around 'unsigned long int'.
2694
2695 Wed Mar 10 18:32:11 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2696
2697         * features.h [! _LIBC]: #include <stubs.h>.
2698         * Makerules (stubs): New phony target.
2699         ($(common-objpfx)stub-$(subdir)): New target.
2700         * Makefile (headers): Add stubs.h.
2701         ($(objpfx)stubs.h): New target.
2702
2703         * Makeconfig (CPPFLAGS): Define _LIBC, not LIBC.
2704
2705         * Makerules (.SUFFIXES): Remove .m4; we no longer have any such files.
2706
2707         * inet/netinet/in.h: Don't #include <inet-cvt.h>.
2708         (ntohl, ntohs, htonl, htons): Declare.
2709         #include <endian.h>.
2710         [__BYTE_ORDER == __BIG_ENDIAN] (ntohl, ntohs, htonl, htons):
2711         Define no-op macros.
2712         * inet/Makefile (headers): Remove inet-cvt.h.
2713         * sysdeps/vax/inet-cvt.h, sysdeps/generic/inet-cvt.h: Files removed.
2714         * sysdeps/generic/{ntohl,ntohs,htonl,htons}.c
2715         [BYTE_ORDER == LITTLE_ENDIAN]: Byte-swap X before returning it.
2716
2717 Tue Mar  9 11:32:35 1993  Jim Blandy  (jimb@wookumz.gnu.ai.mit.edu)
2718
2719         * malloc/malloc/gmalloc-head.c: Remove #definitions of memset,
2720         memcpy, and memmove; this is taken care of by malloc.h anyway.
2721
2722 Mon Mar  8 15:12:32 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2723
2724         * sysdeps/mips/jmp_buf.h (JB_PC): Protect with #ifdef __USE_MISC.
2725
2726         * sysdeps/unix/sysv/sysv4/sigaction.h: Put SA_* except for
2727         SA_NOCLDSTOP inside #ifdef __USE_MISC.
2728
2729 Mon Mar  8 15:05:13 1993  Brendan Kehoe  (brendan@lisa.cygnus.com)
2730
2731         * sysdeps/mips/jmp_buf.h (jmp_buf): Use `__ptr_t', not `PTR', for
2732         member types.
2733         (JB_PC): New define, for backwards compatability with Ultrix.
2734
2735         * sysdeps/unix/sysv/sysv4/sigaction.h: New file.
2736
2737 Mon Mar  8 13:20:02 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2738
2739         * posix/glob/Makefile.in (VPATH): Set this to @srcdir@.
2740         (srcdir): Set this to $(VPATH).
2741
2742         * posix/glob.c (glob): In no matches with GLOB_NOCHECK set case,
2743         add NULL terminator to PGLOB->gl_pathv.
2744         (prefix_array): Renamed arg PREFIX to DIRNAME, local var PRELEN to
2745         DIRLEN.  If DIRNAME is just "/", don't prepend it, so we get
2746         "/foo" instead of "//foo".
2747         (glob): Move qsort call outside of the else clause of the
2748         glob_pattern_p test; it should always be done.
2749
2750 Thu Feb 25 14:49:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2751
2752         * malloc/malloc.h [_MALLOC_INTERNAL]: Move #include <stdio.h> to
2753         front of file; it needs to come before size_t/ptrdiff_t frobnication.
2754
2755 Wed Feb 24 16:34:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2756
2757         * Makerules (compile-command.[Ssc]): New variables; define them if
2758         they are not already defined.
2759         (sysd-Makefile): For each directory, write three rules:
2760                 %.o: $dir/%.[Ssc]; $(compile-command.[Ssc]).
2761         (sysdep_path): Remove definition and vpath directives.
2762         * sysdeps/m68k/Makefile (compile-command.S): Define our own version.
2763         ($(objpfx)%.o: %.S): Rule removed.
2764
2765         * sysdeps/unix/sysv/linux/{__dup2,__mkdir,__rmdir,__setpgrp}.S:
2766         Removed.
2767         * sysdeps/unix/sysv/linux/Implies: Created; implies unix/common.
2768
2769         * sysdeps/unix/sysv/sysv4/{sete[gu]id.S,fchdir.S,signum.h,__sigproc.S}:
2770         New files.
2771
2772         * sysdeps/unix/sysv/sysv4/time.S: New file.
2773
2774         * sysdeps/unix/common/Dist: New file; everything from
2775         sysdeps/unix/bsd/Dist except for bsdtty.h and bsddir.h.
2776         * sysdeps/unix/bsd/Dist: Remove things now in sysdeps/unix/common/Dist.
2777
2778         * sysdeps/unix/bsd/sun/sparc/{__brk.c,__fork.S,__pipe.S,__vfork.S}:
2779         Moved to new directory sysdeps/unix/sparc.
2780
2781         * sysdeps/unix/common/Implies: New file, in new directory; implies
2782         unix/inet only.
2783         * sysdeps/unix/bsd/Implies, sysdeps/unix/sysv/sysv4/Implies: New
2784         files; both imply unix/common.
2785         * sysdeps/unix/common/Makefile: Moved from sysdeps/unix/bsd.
2786         Changed references to unix/bsd to unix/common.
2787         * unix/bsd/{__access.S,__adjtime.S,__fchmod.S,__fchown.S,__getgrps.c,
2788         __getitmr.S,__getpgrp.S,__getrusag.S,__gettod.S,__lstat.S,__mkdir.S,
2789         __readlink.S,__rmdir.S,__setitmr.S,__setpgrp.S,__symlink.S,
2790         bsd_getgrp.S,closedir.c,ftruncate.S,getrlimit.S,glue-ctype.c,
2791         make_siglist.c,mk-local_lim.c,opendir.c,readv.S,rename.S,rewinddir.c,
2792         seekdir.c,setgroups.S,setrlimit.S,telldir.c,truncate.S,vhangup.S,
2793         writev.S,__dup2.S}: Moved to sysdeps/unix/common.
2794         * sysdeps/unix/sysv/sysv4/{__access.S,closedir.c,opendir.c,
2795         rewinddir.c,seekdir.c,telldir.c}: Removed.
2796
2797 Mon Feb 22 12:19:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2798
2799         * sysdeps/generic/pow.c (pow): Use __isnan to test for NaN rather
2800         than expecting "x!=x" to work.
2801         (pow_p): When testing if Y is an integer, use long int rather than
2802         int; they are different on some systems.  Compare against
2803         LONG_MIN+1, not LONG_MIN; (long int) (double) LONG_MIN might overflow.
2804
2805         * malloc/dist-Makefile (gmalloc.c): Depend on Makefile.
2806
2807         * malloc/Makefile (gmalloc-routines): New variable.
2808         (dist-routines): Use it.
2809         (malloc/Makefile): Also replace <GMALLOC-SOURCES> with
2810         $(gmalloc-routines).
2811         (malloc/Makefile): Make it unwritable to avoid accidental lossage.
2812         Depend on Makefile.
2813
2814         * malloc/dist-Makefile (gmalloc): New variable: <GMALLOC-SOURCES>.
2815         (gmalloc.c): Use $(gmalloc), not $(sources).
2816         Make the file unwritable to avoid accidental lossage.
2817
2818         * malloc/mtrace.c: Don't #include <stdio.h> because <malloc.h> did
2819         it for us.
2820
2821         * malloc/valloc.c [! __GNU_LIBRARY__]: Replace hairy conditionals
2822         with #include "getpagesize.h".
2823         * malloc/Makefile (distribute, malloc-dist): Add getpagesize.h.
2824
2825 Sun Feb 21 18:29:30 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2826
2827         * sysdeps/sparc/Makefile (nodist-routines): Don't define.
2828         We want to distribute the generated divrem files; otherwise anyone
2829         building the library must have an m4 that works.
2830         ($(divrem).S): Put these in sysdeps/sparc, not in $(objdir).
2831         (routines): Only put this inside ifeq ($(subdir),gnulib).
2832
2833         * sysdeps/unix/bsd/sun/m68k/Makefile: File removed.
2834
2835 Sat Feb 20 16:43:55 1993  Torbjorn Granlund  (tege@sics.se)
2836
2837         * sysdeps/i386/memset.c: Move adjustment of LEN before first stosb.
2838         * sysdeps/i386/bzero.c: Likewise.
2839
2840 Thu Feb 18 14:34:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2841
2842         * malloc/mcheck.c (checkhdr): Use `const', not `__const'.
2843
2844 Mon Feb  1 19:19:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2845
2846         * sysdeps/m68k/fpu/__logb.c: Use two-operand forms of 68881 insns
2847         rather than the one-operand source==dest form.  Sun's sun3
2848         assembler apparently doesn't grok the one-operand form.
2849
2850         * sysdeps/posix/getcwd.c: Call __lstat instead of stat.
2851         We should not lose on nonexistent symlink targets.
2852
2853 Thu Jan 21 20:12:25 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2854
2855         * posix/glob.c: Put #includes of <glob.h> and <fnmatch.h> after
2856         all system includes, in case one of them has conflicting defns of
2857         FNM_* or GLOB_*, so we will redefine.  #undef FNM_* and GLOB_*
2858         before including our headers.
2859
2860 Tue Jan 19 16:16:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2861
2862         * mach/Makefile (routines): Removed __bcopy.
2863         * mach/__bcopy.c: File removed.
2864
2865         * posix/glob.c (my_realloc): Cast result of malloc/realloc to (char *).
2866
2867 Sat Jan 16 14:19:07 1993  Richard Stallman  (rms@mole.gnu.ai.mit.edu)
2868
2869         * manual/summary.awk: Handle single word in braces.
2870
2871 Thu Jan 14 13:52:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2872
2873         * posix/glob/Makefile.in (realclean): Remove Makefile.
2874
2875 Mon Jan 11 18:32:56 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2876
2877         * sysdeps/unix/bsd/sony/m68k/Implies: Imply unix/bsd/hp/m68k, not
2878         unix/hp/m68k.
2879
2880         * sysdeps/unix/bsd/tcsetattr.c: Use cbreak mode if ISIG is set,
2881         not if OPOST is set.
2882         Fixed typo in TOSTOP frobbing.
2883
2884 Tue Jan  5 15:11:31 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2885
2886         * posix/Makefile (glob.tar): Include glob/configure.in.
2887
2888 Mon Jan  4 17:05:44 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2889
2890         * posix/glob/Makefile.in (RANLIB): Define to @RANLIB@.
2891         (RANLIB_TEST): Removed.
2892         (libglob.a): Don't use it.
2893
2894 Thu Dec 31 13:08:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2895
2896         * sysdeps/unix/bsd/bsd4.4/{chflags,fchflags,setlogin}.S: Fix arg count.
2897
2898         * sysdeps/posix/Makefile (mk-stdiolim): Use $(cded-objdir-CPPFLAGS).
2899         (cded-objdir-CPPFLAGS): Define new var.
2900
2901         * sysdeps/unix/Makefile ($(sys/param.h-includes)): Strip trailing
2902         slash from directory name for mkdir.
2903
2904 Tue Dec 29 18:18:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2905
2906         * sysdeps/posix/sysd-stdio.c (exists): Return true if stat fails
2907         with other than ENOENT.
2908
2909         * sysdeps/posix/__flock.c: New file.
2910
2911         * malloc/Makefile (dist-headers): Define to malloc.h.
2912         (headers): Replace malloc.h with $(dist-headers).
2913         (malloc/Makefile): Use $(dist-headers) in place of $(headers).
2914         (malloc-dist, distribute): Replace ChangeLog with OChangeLog.
2915
2916         * malloc/dist-Makefile (malloc.tar{,.Z}): Depend on FORCE.
2917         (FORCE): Define empty target.
2918
2919 Tue Dec 29 16:45:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2920
2921         * sysdeps/sparc/{umul,mul}.S: Use tege's shift+mask hack to avoid
2922         a test and branch for sign fixup.
2923
2924         * limits.h [__GNUC__ >= 2]: #ifndef _GCC_LIMITS_H_, not _LIMITS_H_,
2925         to #include_next <limits.h>.
2926
2927         * sysdeps/posix/getcwd.c: Call closedir after copying from the
2928         `struct dirent' buffer, not before.  That buffer is freed by closedir.
2929
2930         * posix/gnu/types.h (__fd_set): Renamed member to `fds_bits' for
2931         compatibility with braindead extant code.
2932
2933         * sysdeps/posix/sysd-stdio.c (__stdio_gen_tempname): Check for BUF
2934         being too small before doing sprintf.
2935
2936         * malloc/malloc.h [_MALLOC_INTERNAL], malloc/valloc.c
2937         [HAVE_CONFIG_H]: #include "config.h".
2938
2939         * Makefile (doc): Removed rule.
2940         (dvi, info): New rule.
2941
2942 Mon Dec 28 15:50:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2943
2944         * posix/glob.c [HAVE_CONFIG_H]: Test this, not SHELL, to decide
2945         whether or not we want to #include "config.h".
2946
2947 Wed Dec 16 12:01:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2948
2949         * inet/Makefile (routines): Removed ruserpass.  Why did it get
2950         included in the first place?  That version does not match the one
2951         in the NET2 ftp source; whence came it?
2952
2953 Sat Dec 12 16:41:03 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2954
2955         * sysdeps/unix/bsd/sun/sparc/start.c: Use .set, not GNU ld magic,
2956         to alias asm symbol `start' to `__start'.
2957
2958 Fri Nov 20 18:20:50 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
2959
2960         * stdio/vfprintf.c (%p): Tests of LEFT for "(nil)" were inverted.
2961
2962         * stdio/tst-printf.c (main): Add `printf ("%#03x\n", 1);'.
2963         Add a width to %p test.
2964
2965         * stdio/vfprintf.c (unsigned_integer): Clear SHOWSIGN and SPACE
2966         flags before falling into `number:'.  The `+' and ` ' flags are
2967         only meaningful for signed numbers.
2968
2969         * string/tester.c (main): For strstr #11, correct return is first
2970         arg, not end of first arg.
2971
2972         * stdlib/mbtowc.c: If S is "", return 0.  How was I convinced
2973         before that this is not what ANSI says?
2974
2975         * stdio/__vfscanf.c: Initialize MALLOC_STRING to zero on each
2976         iteration (when we zero is_short et al).
2977
2978         * sysdeps/posix/mkstemp.c (mkstemp): New file.
2979         * sysdeps/stub/mkstemp.c (mkstemp): New file.
2980         * misc/Makefile (routines): Add mkstemp.
2981
2982         * sysdeps/posix/mktemp.c: Use `getpid ()' in place of undefined
2983         variable PID.
2984         #include <sys/stat.h>.
2985
2986         * dirent/scandir.c: If SELECT is nil, don't try to call it.
2987         If CMP is nil, don't sort.
2988
2989 Wed Nov 18 13:42:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
2990
2991         * sysdeps/stub/__wait4.c: Changed type of 2nd arg to __WAIT_STATUS.
2992
2993         * posix/sys/wait.h (__WAIT_STATUS): #if 0 out gcc2 magic defn.
2994         GCC is broken as of 2.3.1.
2995
2996         * signal/signal.h (__sigaction, sigaction): Fixed type in
2997         prototype from `struct __sigaction' to `struct sigaction'.
2998
2999         * sysdeps/m68k/fpu/atan2.c (PI, PIo4, PIo2): Removed static vars.
3000         (atan2): Declare PIo4 and PIo2 locally, and compute them from pi.
3001
3002         * Makerules (native-CFLAGS): Define as $(config-defines).
3003
3004         * sysdeps/unix/bsd/glue-ctype.c: Upcased all HAVE_* names in #ifdef's.
3005
3006         * posix/fnmatch.h (FNM_LEADING_DIR): New flag.
3007         * posix/fnmatch.c (fnmatch): Support it.
3008
3009         * sysdeps/i386/bytesex.h: New file.
3010         * sysdeps/i386/endian.h: Removed.
3011         * sysdeps/stub/bytesex.h: New file.
3012         * sysdeps/stub/endian.h: Removed.
3013         * sysdeps/generic/Makefile (bytesex.h): Create with det_endian.
3014         (endian.h): Removed old rule.
3015         (before-compile): Replace endian.h with bytesex.h.
3016         * string/Makefile (headers): Add bytesex.h.
3017         * string/endian.h: New file.
3018         * sysdeps/generic/det_endian.c: Rewritten to output just one line,
3019         a #define of __BYTE_ORDER to 1234, or 4321, etc.
3020         * inet/arpa/nameser.h: #include <endian.h>, rather than #ifdef'ing
3021         on misc. things to #define BYTE_ORDER.
3022         * sysdeps/generic/waitstatus.h: Test value of __BYTE_ORDER, not
3023         whether __LITTLE_ENDIAN is #define'd.
3024         * sysdeps/generic/mathimpl.h: Likewise.
3025         * sysdeps/generic/memcopy.h: Likewise.
3026         * sysdeps/ieee754/huge_val.h: Likewise.
3027         * sysdeps/ieee754/nan.h: Likewise.
3028         * sysdeps/ieee754/ieee754.h: Likewise.
3029
3030 Mon Nov 16 12:19:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3031
3032         * Makeconfig (ARCH): Define to empty if $(..)config.make exists.
3033
3034         * misc/getusersh.c (initshells): malloc (STATB.st_size + 1), to
3035         contain the terminating NUL.  Pass fgets the real amount of space
3036         left in the buffer, instead of the random number (MAXPATHLEN + 1).
3037
3038         * configure.in (minix*): base_os=unix/sysv.
3039         * sysdeps/unix/sysv/minix/sigaction.h: New file.
3040
3041         * sysdeps/generic/sigaction.h (__SA_*): Renamed to SA_*.
3042         [__USE_BSD]: Put all but SA_NOCLDSTOP under this #ifdef.
3043         * signal/signal.h (SA_*): Remove #define's.
3044         (SIG_*): Moved #define's to sigaction.h.
3045
3046         * sysdeps/generic/sigset.h (__sigmask): Shift ((sigset_t) 1), not
3047         just 1.
3048
3049         * signal/signal.h (kill): Fix type of first arg to __pid_t, not int.
3050
3051         * sysdeps/unix/Makefile (errnos): Changed regexp to disallow
3052         E[^A-Z0-9], and not to require that the defn be numeric only.
3053
3054         * stdlib/stdlib.h: Don't #include <huge_val.h>; ANSI doesn't say
3055         <stdlib.h> defines HUGE_VAL.
3056
3057         * stdlib/stdlib.h (__compar_fn_t): Use __P around prototype.
3058
3059         * posix/Makefile (headers): Add utsnamelen.h, so it gets installed.
3060         (distribute): Remove it from here.
3061
3062         * setjmp/setjmp.h (sigjmp_buf): Rename `__savemask' to
3063         `__mask_was_saved' and `__sigmask' to `__saved_mask'.
3064         * setjmp/sigjmp_save.c (__sigjmp_save): Change use.
3065         * setjmp/siglongjmp.c (siglongjmp): Likewise.
3066
3067 Fri Nov 13 17:34:00 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3068
3069         * configure.in (config.make): Write assignments for INSTALL,
3070         INSTALL_PROGRAM, INSTALL_DATA, and RANLIB.
3071
3072 Thu Nov 12 17:11:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3073
3074         * sysdeps/stub/stime.c: #include <stddef.h> for NULL.
3075
3076         * sysdeps/stub/morecore.c: Fixed arg type to ptrdiff_t.
3077
3078         * sysdeps/stub/ptrace.c: Fixed `va_start' uses to pass 2nd arg.
3079
3080         * sysdeps/unix/sysv/sysv4/fcntlbits.h: New file, modified from
3081         unix/bsd/sun/sunos4 version.
3082
3083         * sysdeps/unix/bsd/bsd4.4/fcntlbits.h: New file, modified from
3084         unix/bsd version.
3085
3086         * sysdeps/unix/bsd/ultrix4/fcntlbits.h: New file, modified from
3087         unix/bsd version.
3088
3089         * sysdeps/unix/bsd/sun/sunos4/fcntlbits.h: New file, modified from
3090         unix/bsd version.
3091
3092         * sysdeps/unix/sysv/fcntlbits.h: Rewritten from stub version.
3093         * sysdeps/unix/sysv/filebits.h: File removed.
3094
3095         * sysdeps/unix/bsd/fcntlbits.h: Rewritten from stub version.
3096         * sysdeps/unix/bsd/filebits.h: File removed.
3097
3098         * io/fcntl.h: Don't #include <filebits.h>.
3099         Removed all #define's of foo to __foo; <fcntlbits.h> now defines
3100         the unmarked cases.
3101
3102         * sysdeps/stub/fcntlbits.h: Remove leading __ from all symbols.
3103
3104         * misc/sys/file.h (L_SET, L_INCR, L_XTND): Define to literal
3105         values, not to __ versions.  These are not system-dependent.
3106         (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Define to literal values,
3107         not to __ versions.  These are not actually system-dependent,
3108         because no system has `flock' except for BSD compatibility, and
3109         then they use the same numbers.
3110         * sysdeps/stub/fcntlbits.h (__L_SET, __L_INCR, __L_XTND): Removed.
3111         (__LOCK_SH, __LOCK_EX, __LOCK_UN, __LOCK_NB): Removed.
3112
3113 Tue Nov 10 17:01:11 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3114
3115         * sysdeps/stub/fcntlbits.h: Merged in contents of filebits.h.
3116         (struct __flock): Renamed to `struct flock'.
3117         * sysdeps/stub/filebits.h: File removed.
3118
3119         * posix/unistd.h (access, lseek, close, read, write, pipe, chown,
3120         fchown, chdir, dup, dup2, execve, pathconf, fpathconf, sysconf,
3121         getpid, getppid, setpgrp, setpgid, setsid, getuid, getgid,
3122         geteuid, getegid, setuid, setreuid, setgid, setregid, fork, vfork,
3123         isatty, link, symlink, readlink, unlink, rmdir, gethostname,
3124         getpagesize, getdtablesize): Remove #define's to __ versions.
3125
3126         * posix/sys/types.h: Don't #include <gnu/time.h>.
3127         Instead, use forward decl `struct timeval;'.
3128         (__select): Use `struct timeval', not `struct __timeval', in prototype.
3129         Move into #ifdef __USE_BSD.
3130         (select): Removed #define to __select; added real prototype.
3131
3132         * sysdeps/generic/waitstatus.h: New file.
3133         * sysdeps/stub/waitflags.h: New file.
3134         * sysdeps/unix/bsd/waitflags.h: New file.
3135         * posix/sys/wait.h: Don't #include <gnu/wait.h>.
3136         Do #include <waitflags.h> and <waitstatus.h>.
3137         (WHOHANG, WUNTRACED): Don't #define to __ versions; <waitflags.h>
3138         will define the unmarked cases.
3139         (union __wait): Remove type decl and associated #define's for w_*;
3140         `union wait' (no __) is now defined in <waitstatus.h>.
3141         [__USE_BSD && __GNUC__ >= 2] (__WAIT_STATUS): Define as funky union.
3142         (waitpid, wait3, wait4, wait): Removed #define's to __ versions;
3143         added real prototypes.
3144         * posix/gnu/wait.h: File removed.
3145         * posix/Makefile (headers): Remove gnu/wait.h.
3146
3147         * posix/sys/times.h [__OPTIMIZE__] (times): Removed #define to __times.
3148
3149         * posix/sys/utsname.h: Removed decl of __uname_getnode.
3150
3151         * time/sys/time.h: Don't #include <gnu/time.h>.
3152         Don't support __need_timeval.
3153         (struct timeval, struct timezone, struct itimerval,
3154         enum __itimer_which): Declare these types here.
3155         (gettimeofday, settimeofday, adjtime, getitimer, setitimer,
3156         utimes): Removed #define's to __ versions.  Added real prototypes.
3157         Use `struct timeval' instead of `struct __timeval', etc.
3158         * time/gnu/time.h: File removed.
3159         * time/Makefile (headers): Removed gnu/time.h.
3160
3161         * resource/sys/resource.h: Don't #include <gnu/time.h>.
3162
3163 Mon Nov  9 18:41:03 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3164
3165         * socket/sys/socket.h (SO_STYLE): Define instead of SO_TYPE.
3166         (SO_TYPE): Define as SO_STYLE.
3167
3168         * inet/netinet/in.h (struct ip_opts): New type.
3169         (IP_*): New constants snarfed from 4.4's in.h.
3170
3171 Fri Nov  6 15:34:41 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3172
3173         * resource/sys/resource.h (struct rusage): #include <sys/time.h>
3174         before struct defn.  Use `struct timeval', not `struct __timeval'
3175         for `ru_utime' and `ru_stime' members.
3176
3177         * resource/sys/resource.h [__OPTIMIZE__] (getrusage, ulimit),
3178         misc/sys/ioctl.h [__OPTIMIZE__] (ioctl): Remove #define's to __
3179         versions.
3180
3181         * string/strings.h: Protect against multiple inclusion.
3182         * termios/sys/termios.h: Ditto.
3183
3184         * string/string.h [__GNUC__ && __OPTIMIZE__] (ffs): Remove #define
3185         to __builtin_ffs.
3186
3187         * stdlib/stdlib.h (comparison_fn_t): Use a typedef, not a #define.
3188         Define this #ifdef __USE_GNU, not #ifdef __GNUC__.
3189         [__GNUC__ && __OPTIMIZE__] (abs, labs): Remove #define's to __builtin_.
3190
3191 Thu Nov  5 20:01:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3192
3193         * signal/Makefile (headers): Remove gnu/signal.h;
3194         add sigaction.h, sigset.h.
3195         * sysdeps/generic/sigaction.h: New file.
3196         * sysdeps/generic/sigset.h: New file.
3197         * signal/gnu/signal.h: Removed.
3198         * signal/signal.h: Move __{BEGIN,END}_DECLS outside all the #if's
3199         (except the outermost one that protects against multiple inclusion).
3200         Don't #include <gnu/signal.h>.  Instead #include <sigset.h>
3201         outside of #if's, and #include <sigaction.h> inside #ifdef __USE_POSIX.
3202         (__sighandler_t): Define here; it is not system-specific.
3203         (kill, ssignal, gsignal, sigblock, sigsetmask, sigpause, sigvec,
3204         sigreturn): Remove #define's to __ versions.
3205         (sighandler_t, sigset_t): Use a typedef, not a #define.
3206         [__OPTIMIZE__] (sig{empty,fill,add,del}set, sigismember): Make
3207         these macros take args.
3208         (sigaction): Remove #define.
3209         (struct __sigvec): Renamed `struct sigvec'.
3210         (__sigvec): Use `struct sigvec', not `struct __sigvec', in prototype.
3211
3212 Fri Oct 30 19:45:26 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3213
3214         * configure.in (sco*): base_os=unix/sysv.
3215
3216 Thu Oct 29 16:29:26 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3217
3218         * configure.in: New file; mostly contents of old file `configure'.
3219         (srcdir guessing): Removed this code.
3220         Instead, call AC_PREPARE.
3221         Call AC_PROG_INSTALL and AC_PROG_RANLIB to find those programs.
3222         Use AC_HAVE_FUNCS to find what sys_siglist and _ctype_ are called.
3223         (config.make): Write new var `config-defines' with what autoconf
3224         put in $DEFS.
3225         Append -DHAVE_GNU_LD and -DHAVE_GNU_AS to DEFS if appropriate;
3226         don't write gnu_ld and gnu_as variables.
3227         * configure: Removed.
3228         * Makefile (distribute): Add configure.in.
3229         * Makeconfig (+defines): Include $(config-defines) before $(defines);
3230         don't include $(gnu_as) and $(gnu_ld).
3231
3232         * sysdeps/unix/bsd/glue-ctype.c (TABLE): Test HAVE_* for several
3233         different names and #define this.
3234         (STRINGIFY): Define macro.
3235         (main): Use TABLE instead of hardcoded name.
3236
3237         * configure (sysnames): Try successively less specific base os's.
3238
3239         * Makerules (ar-it): Define commands only ifdef objects.
3240
3241         * sysdeps/mips/setjmp.S: Jump to __setjmp_aux, not ___setjmp_aux.
3242         We are NO_UNDERSCORES.
3243
3244 Tue Oct 27 18:11:19 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3245
3246         * sysdeps/posix/pipestream.c, sysdeps/posix/system.c: Always use
3247         __vfork instead of expecting FORK to be defined.
3248         * sysdeps/unix/bsd/system.c, sysdeps/unix/bsd/pipestream.c:
3249         Removed.  sysdeps/unix versions are now what we want.
3250
3251         * sysdeps/unix/bsd/sun/sunos3/m68k/__wait.S: Removed.
3252         * sysdeps/unix/bsd/hp/m68k/__wait.S: Moved to unix/bsd/m68k.
3253
3254         * sysdeps/unix/bsd/hp/m68k/{__pipe,sysdep}.S: Moved to unix/bsd/m68k.
3255         * sysdeps/unix/bsd/sun/m68k/{__pipe,sysdep}.S: Removed.
3256
3257         * sysdeps/unix/bsd/sun/m68k/start.c: Moved to unix/bsd/m68k.
3258         * sysdeps/unix/bsd/sony/m68k/start.c: Removed.
3259
3260         * sysdeps/unix/bsd/bsd4.4/__sigstmsk.c: Correct file name in #include.
3261
3262         * sysdeps/unix/bsd/sun/m68k/__fork.S: Removed.
3263         * sysdeps/unix/bsd/hp/m68k/__fork.S: Removed.
3264         * sysdeps/unix/bsd/vax/__fork.S: Moved to unix/bsd.
3265
3266         * sysdeps/generic/__vfork.c: New file; fn alias to __fork.
3267         * sysdeps/stub/__vfork.c: Removed.
3268
3269         * limits.h: Only do #include_next #ifndef _LIMITS_H_.
3270
3271         * malloc/mcheck.c (mcheck): Set abortfunc to either FUNC or abort;
3272         never leave it unchanged.
3273         Return 0 if mcheck_used; -1 if not.
3274         * malloc/malloc.h (mcheck): Change return type in decl.
3275
3276         * Makerules (+depfiles): Don't include them if there are none.
3277
3278 Mon Oct 26 16:30:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3279
3280         * sysdeps/posix/fdopen.c: Use fcntl to check that FD is valid and
3281         allows the access MODE specifies.
3282
3283         * sysdeps/stub/getcwd.c: #include <stddef.h>.
3284
3285         * sysdeps/stub/sleep.c: #include <errno.h>.
3286
3287 Sun Oct 25 02:24:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3288
3289         * Makerules (+includes): Add $(+sysdep-includes) to this, leaving
3290         CPPFLAGS alone.
3291
3292         * sysdeps/stub/stime.c: #include <time.h>.
3293
3294 Thu Oct 22 13:36:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3295
3296         * Rules (clean): Also remove $(clean-extras).
3297
3298 Tue Oct 20 18:36:40 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3299
3300         * configure: Write error message and lose for option with missing arg.
3301
3302         * stdio/__vfscanf.c: Add `a' modifier, which makes %s and %[ fill
3303         in a char ** with a malloc'd string.
3304         (STRING_ADD_CHAR, STRING_ARG): New macros to deal with this hair.
3305         (%s, %[): Use them.
3306
3307         * posix/gnu/types.h [__GNUC__] (__fsid_t): Define as long long.
3308
3309         * stdio/vfprintf.c: Add %m, which is %s of strerror (errno).
3310
3311 Mon Oct 19 14:19:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3312
3313         * socket/sys/socket.h (PF_FILE, AF_FILE): Define new macros.
3314         (PF_UNIX, AF_UNIX): Make aliases for [PA]F_FILE.
3315
3316         * sysdeps/ieee754/huge_val.h: #include <sys/cdefs.h>.
3317         [!__GNUC__]: Use __const, not CONST.
3318
3319         * posix/wordexp.h: Fix indentation and syntax errors.
3320
3321         * stdio/vasprintf.c (vasprintf): Set seen bit.
3322
3323 Fri Oct 16 17:18:34 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3324
3325         * Makefile (Mcrt1.o): Create an empty .c file and compile it,
3326         rather than creating an empty .o file.
3327
3328         * sysdeps/unix/Makefile (sys/param.h): Strip / from name for mkdir.
3329
3330         * sysdeps/m68k/fpu/atan2.c [! __GNUC__]: Include generic, not iee754.
3331
3332         * sysdeps/sparc/Makefile ({divrem}.S): Use $(M4) for m4 in cmds.
3333         * Makeconfig (M4): Define it.
3334
3335         * stdio/newstream.c (__newstream): Link STREAM onto __stdio_head
3336         after malloc'ing it.
3337
3338         * time/emkdir.c: #define unix if not already defined.
3339
3340 Thu Oct 15 19:55:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3341
3342         * stdlib/wctomb.c: When passed 0, store a '\0' and return 1.
3343         * stdlib/mbtowc.c: When passed "", store a 0 and return 1.
3344
3345         * sysdeps/generic/strstr.c: When NEEDLE is "", return HAYSTACK.
3346
3347 Thu Oct 15 19:25:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3348
3349         * malloc/malloc.h (__after_morecore_hook): Declare new var.
3350         * malloc/malloc.c (__after_morecore_hook): Define it.
3351         (align): Call it.
3352
3353 Mon Oct 12 15:56:07 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3354
3355         * malloc/malloc.h (r_alloc, r_alloc_free, r_re_alloc): Declare.
3356
3357         * Makerules (native-compile, common-objdir-compile): Pass
3358         $(native-CFLAGS) to the compiler.
3359
3360         * Makeconfig (+gccwarn): Removed -Wstrict-prototypes and
3361         -Wpointer-arith.  They were not really helping, and caused extra
3362         warnings for harmless code.
3363
3364         * malloc/Makefile (dist-routines): Add ralloc.
3365         (gpl2lgpl): Add ralloc.c.
3366
3367         * time/zic.c: #define unix if not already defined.
3368
3369         * Makerules ($(gpl2lgpl)): Make output unwritable; use mv -f.
3370
3371 Mon Oct 12 15:27:40 1992  Brendan Kehoe  (brendan@mole.gnu.ai.mit.edu)
3372
3373         * sysdeps/unix/bsd/ultrix4/mips/__set[gu]id.S: Handle returning to
3374         the proper caller ourselves, since setre[gu]id won't be doing it.
3375
3376 Mon Oct 12 13:37:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3377
3378         * malloc/malloc.h: Declare memory_warnings.
3379         * malloc/Makefile (dist-routines): Add vm-limit.
3380         (distribute): Add mem-limits.h.
3381         (gpl2lgpl): Add vm-limit.c, mem-limits.h.
3382
3383         * gpl2lgpl.sed: Remove "This file is part of ..." lines.
3384         Changed regexp to match "foo is free software", not just "This
3385         program ...".
3386
3387         * Makerules (+make-deps): Put file name before options on command line.
3388
3389         * Makefile (install-lib): Remove libc.a from here.
3390         * Makerules [objects] (install-lib): Append it here instead.
3391
3392         * io/sys/stat.h (S_IRWXO): Fixed typo.
3393
3394 Sun Oct 11 16:58:36 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3395
3396         * posix/glob.c (__glob_{open,read,close}dir_hook): New vars.
3397         (glob_in_dir): Use them.
3398         * posix/glob.h: Declare them.
3399
3400 Thu Oct  8 20:03:30 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
3401
3402         * configure (config.make): Write comment to edit configparms instead.
3403
3404 Wed Oct  7 17:15:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3405
3406         * sysdeps/stub/__chown.c: Fixed arg types (int -> [ug]id_t).
3407
3408         * sysdeps/stub/__geteuid.c: Fixed return type (int -> __uid_t).
3409
3410         * sysdeps/stub/__getegid.c: Fixed return type (int -> __gid_t).
3411
3412         * configure: Write defns in config.make for vars config-machine,
3413         config-vendor, and config-os.
3414
3415         * ctype/ctype.h (__isctype, __tolower, __toupper): Cast argument
3416         and return value to `int'.
3417
3418         * ctype/ctype.h (__ctype_tolower, __ctype_toupper): Changed type
3419         to `short int *'.
3420         (toupper, tolower): Removed inline functions; restored macros.
3421         * ctype/ctype.c (tolower, toupper): Just call the __ macros.
3422         * ctype/ctype-info.c: Change types here too.
3423         * locale/localeinfo.h: And here.
3424         * locale/C-ctype_ct.c: Ditto.
3425
3426         * crypt: New code from Michael Glad.
3427
3428         * Makefile (munch-init.c), sysdeps/unix/Makefile
3429         ($(sys/param.h-includes), make-errnos.c, make-ioctls.c),
3430         sysdeps/unix/bsd/Makefile (local_lim.h, ctype-glue.c),
3431         sysdeps/posix/Makefile (stdio_lim.h): Changed rules to use a
3432         shorter suffix than `-tmp', to avoid exceeding 14 char limit.
3433
3434 Tue Oct  6 15:13:57 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3435
3436         * Makefile (README, INSTALL): Moved rules here.
3437         * Make-dist: From here.
3438
3439         * sysdeps/unix/bsd/sun/m68k/{__pipe,__fork,sysdep}.S: Change uses
3440         of sysdeps/unix/bsd/hp9k3bsd to sysdeps/unix/bsd/hp/m68k.
3441
3442         * sysdeps/m68k/Makefile: Put .S rule here.
3443         * sysdeps/unix/bsd/hp/m68k/Makefile: Removed file.
3444
3445 Mon Oct  5 19:40:22 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3446
3447         * sysdeps/generic/pow.c (pow_p): Changed code to KY jelly.
3448
3449         * sysdeps/unix/bsd/ultrix4/utsnamelen.h: New file.
3450         * sysdeps/unix/bsd/ultrix4/uname.S: New file.
3451
3452 Fri Oct  2 17:43:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3453
3454         * sysdeps/posix/mktemp.c: Don't use a static index and increment
3455         it on each call.  Instead, always start at the beginning and
3456         iterate until we find a file that does not exist.
3457
3458         * sysdeps/unix/sysv/i386/signal.S: Use C_SYMBOL_NAME for __sigreturn.
3459         Added comment about gas bug with `lcall' insn.
3460
3461         * sysdeps/unix/i386/__brk.S: Use C_SYMBOL_NAME for __curbrk and _end.
3462
3463         * sysdeps/unix/i386/sysdep.S: #include <sysdep.h>.
3464         Use C_SYMBOL_NAME(errno) in place of _errno.
3465
3466         * sysdeps/unix/sysdep.h (___errno): Removed #define to _errno.
3467         `errno' is an ANSI name; it doesn't need to be aliased.
3468         * sysdeps/unix/bsd/sun/m68k/sethostid.S,
3469         sysdeps/unix/bsd/sun/m68k/__vfork.S,
3470         sysdeps/unix/bsd/sun/sparc/sysdep.h,
3471         sysdeps/unix/bsd/sun/sparc/sethostid.S,
3472         sysdeps/unix/bsd/vax/sysdep.S,
3473         sysdeps/unix/bsd/vax/__vfork.S: Use _errno, not ___errno.
3474
3475         * sysdeps/unix/sysv/sysdep.h: File removed.
3476         * sysdeps/unix/sysv/i386/sysdep.h: Don't #include it.
3477         #define NO_UNDERSCORES before #include <sysdeps/unix/i386/sysdep.h>.
3478
3479         * sysdeps/unix/i386/sysdep.h (C_SYMBOL_NAME): Define new macro.
3480         [NO_UNDERSCORES]: #define syscall_error to __syscall_error, so we
3481         stay name space tidy.
3482
3483         * sysdeps/unix/sysv/sysv4/sys_getdents.S: Added missing arg count (3).
3484
3485         * sysdeps/unix/sysv/i386/time.S: Fixed to not use bogus addressing
3486         mode `4(%esp,1)'; use `4(%esp)' instead.  Added comments.
3487
3488         * sysdeps/stub/__fchmod.c (__fchmod): Fixed arg type to mode_t.
3489
3490         * sysdeps/posix/__wait3.c: #include <stddef.h> for NULL.
3491
3492         * sysdeps/unix/i386/__wait.S: Use asm label `null' instead of
3493         `1f', and actually define the label!  Added comments.
3494
3495         * sysdeps/i386/memchr.c: Renamed asm label to `done'; not all
3496         assemblers support numbered labels like `1f' or `1b'.
3497
3498         * stdio/fseek.c (fseek): Discard char pushed back by ungetc.
3499         * stdio/ftell.c (ftell): If we have a pushed-back char, decrement
3500         the file position we return.
3501
3502         * sysdeps/unix/bsd/sun/sparc/vfork.S: New file.
3503
3504 Wed Sep 30 18:48:38 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3505
3506         * limits.h (_LIBC_LIMITS_H_): Define today's name for this.
3507         RMS said it was to be `_LIBC_LIMITS_H', but that is not what
3508         gcc actually uses.
3509
3510 Tue Sep 29 18:17:12 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3511
3512         * time/Makefile (zic-cmd): Define variable.
3513         (tzcompile, zoneinfo/localtime, zoneinfo/posixrules): Use it for
3514         name of `zic' command.
3515
3516         * sysdeps/unix/bsd/Makefile (ctype-glue.c): Make sure the command
3517         is not an unqualified name.
3518
3519         * sysdeps/stub/statbuf.h (struct stat): Contain only POSIX.1
3520         members, with the POSIX.1 types.
3521         (_STATBUF_ST_BLKSIZE): #undef and comment.
3522         * sysdeps/unix/bsd/statbuf.h (_STATBUF_ST_BLKSIZE): Define it.
3523         * sysdeps/posix/stdio_init.c (__stdio_init_stream): Only try to
3524         use st_blksize #ifdef _STATBUF_ST_BLKSIZE.
3525
3526         * sysdeps/unix/__getpgsz.c: #include <stddef.h> for size_t.
3527
3528         * sysdeps/stub/__fchown.c: Fixed arg types ([ug]id_t, not int).
3529
3530         * io/sys/stat.h: #include <gnu/types.h> for __mode_t et al.
3531
3532         * sysdeps/unix/__gete[ug]id.S [SYS_gete[ug]id]: Add arg count of 0.
3533         [! SYS_gete[ug]id]: Fixed arg count to be 0.
3534
3535         * sysdeps/unix/__get[ug]id.S: Fixed arg count to be 0.
3536
3537         * sysdeps/unix/sysv/linux/syscall.h: #if 0'd out 2nd defn of SYS_brk.
3538
3539 Sun Sep 27 21:56:56 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3540
3541         * sysdeps/unix/Makefile (sys/param.h): Depend on $(common-objpfx)sys/.
3542
3543 Fri Sep 25 12:47:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3544
3545         * Makeconfig (INSTALL_DATA): Pass -m 644.
3546
3547 Thu Sep 24 16:13:47 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3548
3549         * sysdeps/unix/sysv/linux/getpeername.S: Renamed to getpeernam.S.
3550         * sysdeps/unix/sysv/linux/getsockname.S: Renamed to getsocknam.S.
3551         * sysdeps/unix/sysv/linux/setsid.S: Renamed to __setsid.S;
3552         function renamed to __setsid.
3553
3554         * Version 1.05.
3555
3556         * Makefile (dist): Depend on $(distribute).
3557
3558         * stdio/__vfscanf.c (%c): Fixed DO_ASSIGN case loop condition to
3559         not write one char too many.
3560
3561 Wed Sep 23 16:32:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3562
3563         * stdlib/qsort.c (_quicksort): Return immediately if TOTAL_ELEMS==0.
3564
3565 Tue Sep 22 19:10:59 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3566
3567         * Makerules [! OUTPUT_OPTION && objpfx]: Define OUTPUT_OPTION.
3568
3569 Mon Sep 21 22:40:55 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3570
3571         * sysdeps/unix/bsd/mk-local_lim.c: Use MAXNAMLEN for NAME_MAX,
3572         rather than hard-wiring 255.
3573         [! MAXNAMLEN]: Define it to 255.
3574         [LINK_MAX && ! MAXLINK]: #define MAXLINK LINK_MAX.
3575
3576         * sysdeps/unix/bsd/glue-ctype.c [ultrix]: #define _ctype_ _ctype__.
3577
3578         * configure: Rename var `gas' to `gnu_as' and use consistently.
3579
3580 Fri Sep 18 16:32:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3581
3582         * sys/errno.h: New file.
3583         * Makefile (headers): Add it.
3584
3585         * Makeconfig (+make-deps): Use = not define.
3586
3587         * time/Makefile (zones-%): Don't clobber zonenames; append to it.
3588         Depend on Makefile so we rebuild when the rule changes.
3589         Changed implicit rule from zoneinfo/%/... to zone%/... so it will
3590         actually match.
3591
3592         * sysdeps/unix/Makefile (syscall.h): Filter out "#ident" lines.
3593
3594         * Makeconfig (+link): Use $(gnulib) instead of -lgcc.
3595         (gnulib): Define to -lgcc.
3596
3597         * posix/glob/Makefile.in (AR, ARFLAGS): Define.
3598         (libglob.a): Use those vars instead of hardcoding.
3599
3600         * Makeconfig (ARCH) [machine]: Don't define if $(..)config.make exists.
3601
3602         * Makerules (compile.S): Include $(asm-CPPFLAGS).
3603         (S-CPPFLAGS): Define = $(asm-CPPFLAGS).
3604         (+make-deps): Include $(sfx-CPPFLAGS), where `sfx' is S or c.
3605         * Makeconfig (asm-CPPFLAGS): Define (empty) and comment.
3606
3607         * sysdeps/unix/Makefile ($(sys/param.h-includes)): Filter out
3608         decls or macros for host<->net conversion (htonl et al).
3609
3610 Thu Sep 17 17:33:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3611
3612         * sysdeps/unix/sysv/statbuf.h: Define __S_*.
3613
3614         * misc/Makefile (headers): syslog.h -> sys/syslog.h.
3615         * misc/syslog.h: Moved to misc/sys/syslog.h.
3616
3617         * limits.h [__GNUC__ >= 2]: #define _LIBC_LIMITS_H before
3618         #include_next <limits.h>.
3619         Define _LIMITS_H unconditionally.
3620
3621 Wed Sep 16 17:43:59 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
3622
3623         * sysdeps/unix/Makefile (syscall.h): Don't use \< in sed commands.
3624         Some seds don't seem to grok it.
3625
3626         * Makerules (+install-dirs): Sort them.
3627
3628         * Makeconfig (stdarg.h): Use $(wildcard va-*.h) instead of va-*.h,
3629         and := instead of =.
3630
3631         * Makeconfig (prefix): Default to $(exec_prefix), not /usr/local.
3632
3633         * Makeconfig (+link): Use $(common-objpfx) rather than $(objpfx)
3634         to find start.o; use $(libc.a) instead of $(objpfx)libc.a.
3635
3636         * sysdeps/sparc/Makefile: crypt subdir is not called uf-crypt.
3637
3638         * sysdeps/unix/Makefile (sys/param.h-includes): Fixed filtering
3639         out of existent glibc headers to remove $(..) pfx after wildcard.
3640
3641         * misc/paths.h: New file, snarfed from 4.4 BSD.
3642         * misc/Makefile (headers): Add paths.h.
3643
3644 Tue Sep 15 14:55:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3645
3646         * Makerules (+sysdir_pfx): Define as $(common-objpfx).
3647
3648         * MakeTAGS (TAGS) [subdir && ! tags_sources]: Create an empty
3649         file, rather than no commands at all.
3650
3651         * string/string.h [__GNUC__ && __OPTIMIZE__] (ffs): Take arg.
3652
3653         * sysdeps/unix/sysv/linux/__wait4.S: New file.
3654
3655         * sysdeps/unix/sysv/linux/syscall.h: New version from hlu.
3656
3657         * sysdeps/unix/Makefile (syscall.h): Upcase `sys_' in input.
3658
3659         * sysdeps/unix/bsd/ultrix4/mips/sysdep.h (MOVE): Insn is `move',
3660         not `movl'.
3661
3662         * sysdeps/unix/bsd/ultrix4/mips/sigcontext.h: Deansideclized.
3663
3664         * sysdeps/unix/ioctls-tmpl.c [DIOCGETPT, DEVGETGEOM]: Include
3665         headers for these.
3666         [ultrix]: Mondo cruft.
3667
3668 Sat Sep 12 12:08:29 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3669
3670         * misc/Makefile (routines): Add ttyslot, syslog.
3671         * misc/ttyslot.c, misc/syslog.[ch]: New, snarfed from 4.4 BSD.
3672         (headers): Add syslog.h
3673
3674         * misc/getttyent.c (getttyent): Parse _TTYS_TRUSTED keyword and
3675         set TTY_TRUSTED bit.
3676         * misc/ttyent.h (TTY_TRUSTED): New bit in ty_status.
3677         (_TTYS_TRUSTED): New keyword.
3678         (_TTYS_CONSOLE): New keyword.
3679         (TTY_CONSOLE): New bit in ty_status.
3680
3681         * dirent/scandir.c (scandir): Don't keep using V after realloc'ing
3682         it.  Use the returned new ptr instead.
3683
3684 Thu Sep 10 18:59:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3685
3686         * stdlib/div.c, stdlib/ldiv.c: Rewritten from Berkeley code that works.
3687
3688         * Makeconfig (stdarg.h): Add va-*.h.
3689
3690         * stdlib/Makefile (dont_distribute): Define: testsort.input.
3691
3692         * sysdeps/mach/hurd/i386/_hurd_start_sigthread.c,
3693         sysdeps/stub/_hurd_start_sigthread.c: Renamed to .../startsig.c.
3694         * sysdeps/mach/hurd/sys_errlist.awk: Renamed to .../errlist.awk.
3695         * sysdeps/mach/hurd/Makefile (sys_errlist.c): Change dep.
3696         * sysdeps/unix/bsd/make-local_lim.c: Renamed to .../mk-local_lim.c.
3697         * sysdeps/unix/bsd/Makefile (local_lim.h): Change dep.
3698         (make-local_lim): Change target and dep.
3699         * hurd/_hurd_dead_recv.c: Renamed to hurd/dead_recv.c.
3700         * hurd/setdtablesize.c: Renamed to hurd/setdtsz.c.
3701         * hurd/Makefile (routines): Change references.
3702         * stdio/tstgetline.c: Renamed to stdio/tstgetln.c.
3703         * stdio/tstgetline.input: Renamed to stdio/tstgetln.input.
3704         * stdio/Makefile (tests): Change ref.
3705         * README.template: Remove note about long file names.
3706
3707         * sysdeps/unix/bsd/sun/sunos4/utsnamelen.h (_UTSNAME_LENGTH):
3708         Define here, rather than #include'ing sysv/utsnamelen.h.
3709         This file gets installed.
3710
3711 Wed Sep  9 17:06:14 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
3712
3713         * Makeconfig (localtime-file): Put in $(prefix)/etc, not /etc.
3714
3715         * setjmp/Makefile (routines): Remove sigsetjmp.
3716
3717         * sysdeps/posix/Makefile (objdir-CPPFLAGS) [! subdir]: Rewrote
3718         totally broken defn.
3719
3720         * sysdeps/unix/Makefile (syscall.h): Keep lines starting
3721         with #, not only those starting with #define.
3722         We want to preserve any #ifdef in the original.
3723
3724         * Makerules (install): Dep $(+install-dirs), not $(dir $(+install)).
3725         (+install-dirs): Define to get two levels of dirs.
3726
3727         * time/Makefile (tz-cc): Use = instead of define directive.
3728
3729         * sysdeps/unix/bsd/sun/sparc/start.c (_start): Give ARGC, ARGV,
3730         and ENVP `register' storage class; can then clear the FP early.
3731
3732 Sat Sep  5 13:14:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3733
3734         * Makerules (sysdirs): Pass sysdep_dir in child's environment.
3735
3736 Fri Sep  4 15:37:23 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
3737
3738         * Makeconfig (common-objpfx): Add trailing slash.
3739         Move comment to prev line to avoid extra whitespace.
3740 \f
3741
3742 See ChangeLog.1 for earlier changes.